From d0b21614422d7ecd787aeffb894eba1a6973f4fa Mon Sep 17 00:00:00 2001 From: Kwon Date: Tue, 10 May 2016 05:13:56 -0700 Subject: Revert "Imported upstream version 1.6.7" This reverts commit a3777a6b2cde2c7133141474dd4c428220a3e9cc. Change-Id: I5c3c27a5a5677c20afb1a8e69c6ac99785cb37d1 --- AUTHORS | 2 +- FAQ | 466 +- Makefile.in | 865 -- README | 10 +- TODO | 4 +- aclocal.m4 | 1767 --- autogen.sh | 8 +- compile | 347 - config.guess | 1420 -- config.h.in | 327 - config.rpath | 614 - config.sub | 1799 --- configure | 20843 --------------------------- configure.ac | 57 +- depcomp | 791 - docs/ChangeLog.old | 16 +- docs/doxygen_index | 2 +- docs/v1.6.3-ReleaseNotes | 50 - docs/v1.6.4-ReleaseNotes | 57 - docs/v1.6.5-ReleaseNotes | 54 - docs/v1.6.6-ReleaseNotes | 29 - docs/v1.6.7-ReleaseNotes | 84 - install-sh | 527 - lib/Makefile.am | 1 + lib/Makefile.in | 1023 -- lib/crypt_plain.c | 21 +- lib/crypto_backend/Makefile.am | 2 +- lib/crypto_backend/Makefile.in | 738 - lib/crypto_backend/crypto_backend.h | 24 +- lib/crypto_backend/crypto_cipher_kernel.c | 59 +- lib/crypto_backend/crypto_gcrypt.c | 89 +- lib/crypto_backend/crypto_kernel.c | 21 +- lib/crypto_backend/crypto_nettle.c | 22 +- lib/crypto_backend/crypto_nss.c | 23 +- lib/crypto_backend/crypto_openssl.c | 6 +- lib/crypto_backend/crypto_storage.c | 293 - lib/crypto_backend/pbkdf2_generic.c | 243 +- lib/crypto_backend/pbkdf_check.c | 16 +- lib/internal.h | 6 +- lib/libcryptsetup.h | 42 +- lib/libdevmapper.c | 138 +- lib/loopaes/Makefile.in | 645 - lib/loopaes/loopaes.c | 2 +- lib/luks1/Makefile.in | 665 - lib/luks1/keyencryption.c | 131 +- lib/luks1/keymanage.c | 77 +- lib/luks1/luks.h | 1 + lib/setup.c | 284 +- lib/tcrypt/Makefile.in | 645 - lib/tcrypt/tcrypt.c | 345 +- lib/tcrypt/tcrypt.h | 3 +- lib/utils.c | 2 +- lib/utils_benchmark.c | 78 +- lib/utils_crypt.c | 28 +- lib/utils_crypt.h | 2 - lib/utils_device.c | 160 +- lib/utils_devpath.c | 59 +- lib/utils_dm.h | 10 +- lib/utils_fips.c | 40 +- lib/utils_fips.h | 6 +- lib/verity/Makefile.in | 655 - lib/verity/verity.c | 12 +- lib/volumekey.c | 4 +- ltmain.sh | 9661 ------------- m4/gettext.m4 | 631 - m4/iconv.m4 | 101 - m4/lib-ld.m4 | 110 - m4/lib-link.m4 | 630 - m4/lib-prefix.m4 | 185 - m4/libtool.m4 | 7997 ---------- m4/ltoptions.m4 | 384 - m4/ltsugar.m4 | 123 - m4/ltversion.m4 | 23 - m4/lt~obsolete.m4 | 98 - m4/nls.m4 | 31 - m4/po.m4 | 428 - m4/progtest.m4 | 92 - man/Makefile.in | 559 - man/cryptsetup-reencrypt.8 | 69 +- man/cryptsetup.8 | 227 +- man/veritysetup.8 | 10 +- misc/11-dm-crypt.rules | 17 - misc/dracut_90reencrypt/README | 21 +- misc/dracut_90reencrypt/module-setup.sh | 13 +- misc/dracut_90reencrypt/parse-reencrypt.sh | 11 +- misc/dracut_90reencrypt/reencrypt.sh | 39 +- missing | 215 - packaging/cryptsetup.manifest | 6 - packaging/cryptsetup.spec | 110 - po/LINGUAS | 1 - po/Makefile.in.in | 393 - po/Rules-quot | 47 - po/boldquot.sed | 10 - po/cryptsetup.pot | 1760 --- po/cs.gmo | Bin 45904 -> 0 bytes po/cs.po | 1015 +- po/de.gmo | Bin 47405 -> 0 bytes po/de.po | 1417 +- po/en@boldquot.header | 25 - po/en@quot.header | 22 - po/es.gmo | Bin 48642 -> 0 bytes po/es.po | 2022 --- po/fi.gmo | Bin 45357 -> 0 bytes po/fi.po | 1127 +- po/fr.gmo | Bin 49036 -> 0 bytes po/fr.po | 1261 +- po/id.gmo | Bin 12915 -> 0 bytes po/id.po | 1953 +-- po/insert-header.sin | 23 - po/it.gmo | Bin 45975 -> 0 bytes po/it.po | 1772 +-- po/nl.gmo | Bin 44375 -> 0 bytes po/nl.po | 1171 +- po/pl.gmo | Bin 45984 -> 0 bytes po/pl.po | 1046 +- po/quot.sed | 6 - po/remove-potcdate.sin | 19 - po/stamp-po | 1 - po/sv.gmo | Bin 12816 -> 0 bytes po/sv.po | 1942 +-- po/uk.gmo | Bin 62176 -> 0 bytes po/uk.po | 1166 +- po/vi.gmo | Bin 50709 -> 0 bytes po/vi.po | 1349 +- python/Makefile.am | 2 +- python/Makefile.in | 825 -- python/pycryptsetup-test.py | 72 +- python/pycryptsetup.c | 203 +- src/Makefile.am | 1 + src/Makefile.in | 1265 -- src/cryptsetup.c | 376 +- src/cryptsetup.h | 6 +- src/cryptsetup_reencrypt.c | 344 +- src/utils_password.c | 2 +- src/utils_tools.c | 21 +- src/veritysetup.c | 3 +- tests/Makefile.am | 10 +- tests/Makefile.in | 839 -- tests/align-test | 32 +- tests/api-test.c | 105 +- tests/compat-test | 20 +- tests/device-test | 86 - tests/discards-test | 2 +- tests/img_fs_ext4.img.bz2 | Bin 871 -> 0 bytes tests/img_fs_vfat.img.bz2 | Bin 1425 -> 0 bytes tests/img_fs_xfs.img.bz2 | Bin 4135 -> 0 bytes tests/luks1-compat-test | 80 - tests/luks1-images.tar.bz2 | Bin 54222 -> 0 bytes tests/mode-test | 4 +- tests/password-hash-test | 46 +- tests/reencryption-compat-test | 205 +- tests/tcrypt-compat-test | 33 +- tests/tcrypt-images.tar.bz2 | Bin 254672 -> 200923 bytes 153 files changed, 6317 insertions(+), 76364 deletions(-) delete mode 100644 Makefile.in delete mode 100644 aclocal.m4 delete mode 100755 compile delete mode 100755 config.guess delete mode 100644 config.h.in delete mode 100755 config.rpath delete mode 100755 config.sub delete mode 100755 configure delete mode 100755 depcomp delete mode 100644 docs/v1.6.3-ReleaseNotes delete mode 100644 docs/v1.6.4-ReleaseNotes delete mode 100644 docs/v1.6.5-ReleaseNotes delete mode 100644 docs/v1.6.6-ReleaseNotes delete mode 100644 docs/v1.6.7-ReleaseNotes delete mode 100755 install-sh delete mode 100644 lib/Makefile.in delete mode 100644 lib/crypto_backend/Makefile.in delete mode 100644 lib/crypto_backend/crypto_storage.c delete mode 100644 lib/loopaes/Makefile.in delete mode 100644 lib/luks1/Makefile.in delete mode 100644 lib/tcrypt/Makefile.in delete mode 100644 lib/verity/Makefile.in delete mode 100644 ltmain.sh delete mode 100644 m4/gettext.m4 delete mode 100644 m4/iconv.m4 delete mode 100644 m4/lib-ld.m4 delete mode 100644 m4/lib-link.m4 delete mode 100644 m4/lib-prefix.m4 delete mode 100644 m4/libtool.m4 delete mode 100644 m4/ltoptions.m4 delete mode 100644 m4/ltsugar.m4 delete mode 100644 m4/ltversion.m4 delete mode 100644 m4/lt~obsolete.m4 delete mode 100644 m4/nls.m4 delete mode 100644 m4/po.m4 delete mode 100644 m4/progtest.m4 delete mode 100644 man/Makefile.in delete mode 100644 misc/11-dm-crypt.rules delete mode 100755 missing delete mode 100644 packaging/cryptsetup.manifest delete mode 100644 packaging/cryptsetup.spec delete mode 100644 po/Makefile.in.in delete mode 100644 po/Rules-quot delete mode 100644 po/boldquot.sed delete mode 100644 po/cryptsetup.pot delete mode 100644 po/cs.gmo delete mode 100644 po/de.gmo delete mode 100644 po/en@boldquot.header delete mode 100644 po/en@quot.header delete mode 100644 po/es.gmo delete mode 100644 po/es.po delete mode 100644 po/fi.gmo delete mode 100644 po/fr.gmo delete mode 100644 po/id.gmo delete mode 100644 po/insert-header.sin delete mode 100644 po/it.gmo delete mode 100644 po/nl.gmo delete mode 100644 po/pl.gmo delete mode 100644 po/quot.sed delete mode 100644 po/remove-potcdate.sin delete mode 100644 po/stamp-po delete mode 100644 po/sv.gmo delete mode 100644 po/uk.gmo delete mode 100644 po/vi.gmo delete mode 100644 python/Makefile.in delete mode 100644 src/Makefile.in delete mode 100644 tests/Makefile.in delete mode 100755 tests/device-test delete mode 100644 tests/img_fs_ext4.img.bz2 delete mode 100644 tests/img_fs_vfat.img.bz2 delete mode 100644 tests/img_fs_xfs.img.bz2 delete mode 100755 tests/luks1-compat-test delete mode 100644 tests/luks1-images.tar.bz2 diff --git a/AUTHORS b/AUTHORS index 38c73fc..31f5575 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,3 @@ -Jana Saout +Christophe Saout Clemens Fruhwirth Milan Broz diff --git a/FAQ b/FAQ index 08b52ad..49c77a9 100644 --- a/FAQ +++ b/FAQ @@ -23,7 +23,7 @@ A. Contributors with one master key, anti-forensic features, metadata block at start of device, ...). The latest version of this FAQ should usually be available at - https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions + http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions * 1.2 WARNINGS @@ -41,7 +41,7 @@ A. Contributors SSDs/FLASH DRIVES: SSDs and Flash are different. Currently it is unclear how to get LUKS or plain dm-crypt to run on them with the full set of security features intact. This may or may not be a - problem, depending on the attacker model. See Section 5.19. + problem, depending on the attacher model. See Section 5.19. BACKUP: Yes, encrypted disks die, just as normal ones do. A full backup is mandatory, see Section "6. Backup and Data Recovery" on @@ -171,14 +171,14 @@ A. Contributors least problems. - * 1.6 Where is the project website? + * 1.5 Where is the project website? - There is the project website at https://gitlab.com/cryptsetup/cryptsetup/ + There is the project website at http://code.google.com/p/cryptsetup/ Please do not post questions there, nobody will read them. Use the mailing-list instead. - * 1.7 Is there a mailing-list? + * 1.6 Is there a mailing-list? Instructions on how to subscribe to the mailing-list are at on the project website. People are generally helpful and friendly on the @@ -198,7 +198,7 @@ A. Contributors http://dir.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt - * 1.8 Unsubscribe from the mailing-list + * 1.7 Unsubscribe from the mailing-list Send mail to dm-crypt-unsubscribe@saout.de from the subscribed account. You will get an email with instructions. @@ -268,9 +268,6 @@ A. Contributors Note that automatic wiping is on the TODO list for cryptsetup, so at some time in the future this will become unnecessary. - Alternatively, plain cm-crypt can be used for a very fast wipe with - crypto-grade randomness, see Item 2.19 - 04) Create the LUKS container: cryptsetup luksFormat @@ -325,85 +322,7 @@ A. Contributors easy to make, but will compromise your security. - * 2.2 LUKS on partitions or raw disks? - - This is a complicated question, and made more so by the availability - of RAID and LVM. I will try to give some scenarios and discuss - advantages and disadvantages. Note that I say LUKS for simplicity, - but you can do all the things described with plain dm-crypt as well. - Also note that your specific scenario may be so special that most - or even all things I say below do not apply. - - Be aware that if you add LVM into the mix, things can get very - complicated. Same with RAID but less so. In particular, data - recovery can get exceedingly difficult. Only do so if you have a - really good reason and always remember KISS is what separates an - engineer from an amateur. Of course, if you really need the added - complexity, KISS is satisfied. But be very sure as there is a price - to pay for it. In engineering, complexity is always the enemy and - needs to be fought without mercy when encountered. - - Also consider using RAID instead of LVM, as at least with the old - superblock format 0.90, the RAID superblock is in the place (end - of disk) where the risk of it permanently damaging the LUKS header - is smallest and you can have your array assembled by the RAID - controller (i.e. the kernel), as it should be. Use partition type - 0xfd for that. I recommend staying away from superblock formats - 1.0, 1.1 and 1.2 unless you really need them. Be aware that you - lose autodetection with them and have to fall back to some - user-space script to do it. - - Scenarios: - - (1) Encrypted partition: Just make a partition to your liking, - and put LUKS on top of it and a filesystem into the LUKS container. - This gives you isolation of differently-tasked data areas, just as - ordinary partitioning does. You can have confidential data, - non-confidential data, data for some specific applications, - user-homes, root, etc. Advantages are simplicity as there is a 1:1 - mapping between partitions and filesystems, clear security - functionality and the ability to separate data into different, - independent (!) containers. - - Note that you cannot do this for encrypted root, that requires an - initrd. On the other hand, an initrd is about as vulnerable to a - competent attacker as a non-encrypted root, so there really is no - security advantage to doing it that way. An attacker that wants to - compromise your system will just compromise the initrd or the - kernel itself. The better way to deal with this is to make sure the - root partition does not store any critical data and move that to - additional encrypted partitions. If you really are concerned your - root partition may be sabotaged by somebody with physical access - (that would however strangely not, say, sabotage your BIOS, - keyboard, etc.), protect it in some other way. The PC is just not - set-up for a really secure boot-chain (whatever some people may - claim). - - (2) Fully encrypted raw block device: For this, put LUKS on the - raw device (e.g. /dev/sdb) and put a filesystem into the LUKS - container, no partitioning whatsoever involved. This is very - suitable for things like external USB disks used for backups or - offline data-storage. - - (3) Encrypted RAID: Create your RAID from partitions and/or full - devices. Put LUKS on top of the RAID device, just if it were an - ordinary block device. Applications are just the same as above, but - you get redundancy. (Side note as many people seem to be unaware of - it: You can do RAID1 with an arbitrary number of components in - Linux.) See also Item 2.8. - - (4) Now, some people advocate doing the encryption below the RAID - layer. That has several serious problems. One is that suddenly - debugging RAID issues becomes much harder. You cannot do automatic - RAID assembly anymore. You need to keep the encryption keys for the - components in sync or manage them somehow. The only possible - advantage is that things may run a little faster as more CPUs do - the encryption, but if speed is a priority over security and - simplicity, you are doing this wrong anyways. A good way to - mitigate a speed issue is to get a CPU that does hardware AES. - - - * 2.3 How do I set up encrypted swap? + * 2.2 How do I set up encrypted swap? As things that are confidential can end up in swap (keys, passphrases, etc. are usually protected against being swapped to @@ -425,16 +344,15 @@ A. Contributors Warning: While Debian refuses to overwrite partitions with a filesystem or RAID signature on it, if your disk IDs may change (adding or removing disks, failure of disk during boot, etc.), you - may want to take additional precautions. Yes, this means that your - kernel device names like sda, sdb, ... can change between reboots! - This is not a concern if you have only one disk. One possibility is - to make sure the partition number is not present on additional - disks or also swap there. Another is to encapsulate the swap - partition (by making it a 1-disk RAID1 or by using LVM), so that it - gets a persistent identifier. Specifying it directly by UUID does - not work, unfortunately, as the UUID is part of the swap signature - and that is not visible from the outside due to the encryption and - in addition changes on each reboot with this setup. + may want to take additional precautions. This is not a concern if + you have only one disk. One possibility is to make sure the + partition number is not present on additional disks or also swap + there. Another is to encapsulate the swap partition (by making it a + 1-disk RAID1 or by using LVM), so that it gets a persistent + identifier. Specifying it directly by UUID does not work, + unfortunately, as the UUID is part of the swap signature and that + is not visible from the outside due to the encryption and in + addition changes on each reboot with this setup. Note: Use /dev/random if you are paranoid or in a potential low-entropy situation (embedded system, etc.). This may cause the @@ -459,7 +377,7 @@ A. Contributors swapon /dev/mapper/swap - * 2.4 What is the difference between "plain" and LUKS format? + * 2.3 What is the difference between "plain" and LUKS format? First, unless you happen to understand the cryptographic background well, you should use LUKS. It does protect the user from a lot of @@ -524,7 +442,7 @@ A. Contributors non-default XTS mode). - * 2.5 Can I encrypt an already existing, non-empty partition to use + * 2.4 Can I encrypt an already existing, non-empty partition to use LUKS? There is no converter, and it is not really needed. The way to do @@ -539,7 +457,7 @@ A. Contributors to be in a filesystem. - * 2.6 How do I use LUKS with a loop-device? + * 2.5 How do I use LUKS with a loop-device? This can be very handy for experiments. Setup is just the same as with any block device. If you want, for example, to use a 100MiB @@ -553,7 +471,7 @@ A. Contributors To unmap the file when done, use "losetup -d /dev/loop0". - * 2.7 When I add a new key-slot to LUKS, it asks for a passphrase but + * 2.6 When I add a new key-slot to LUKS, it asks for a passphrase but then complains about there not being a key-slot with that passphrase? @@ -565,7 +483,7 @@ A. Contributors new key-slot. - * 2.8 Encryption on top of RAID or the other way round? + * 2.7 Encryption on top of RAID or the other way round? Unless you have special needs, place encryption between RAID and filesystem, i.e. encryption on top of RAID. You can do it the other @@ -591,7 +509,7 @@ A. Contributors encrypted. - * 2.9 How do I read a dm-crypt key from file? + * 2.8 How do I read a dm-crypt key from file? Use the --key-file option, like this: @@ -606,7 +524,7 @@ A. Contributors detail. - * 2.10 How do I read a LUKS slot key from file? + * 2.9 How do I read a LUKS slot key from file? What you really do here is to read a passphrase from file, just as you would with manual entry of a passphrase for a key-slot. You can @@ -632,7 +550,7 @@ A. Contributors cryptsetup luksOpen --key-file keyfile /dev/loop0 e1 - * 2.11 How do I read the LUKS master key from file? + * 2.10 How do I read the LUKS master key from file? The question you should ask yourself first is why you would want to do this. The only legitimate reason I can think of is if you want @@ -643,7 +561,7 @@ A. Contributors do this here. - * 2.12 What are the security requirements for a key read from file? + * 2.11 What are the security requirements for a key read from file? A file-stored key or passphrase has the same security requirements as one entered interactively, however you can use random bytes and @@ -655,7 +573,7 @@ A. Contributors head -c 256 /dev/random > keyfile - * 2.13 If I map a journaled file system using dm-crypt/LUKS, does it + * 2.12 If I map a journaled file system using dm-crypt/LUKS, does it still provide its usual transactional guarantees? Yes, it does, unless a very old kernel is used. The required flags @@ -683,7 +601,7 @@ A. Contributors should improve further and eventually the problem should go away. - * 2.14 Can I use LUKS or cryptsetup with a more secure (external) + * 2.13 Can I use LUKS or cryptsetup with a more secure (external) medium for key storage, e.g. TPM or a smartcard? Yes, see the answers on using a file-supplied key. You do have to @@ -697,7 +615,7 @@ A. Contributors related to the cryptsetup project. - * 2.15 Can I resize a dm-crypt or LUKS partition? + * 2.14 Can I resize a dm-crypt or LUKS partition? Yes, you can, as neither dm-crypt nor LUKS stores partition size. Whether you should is a different question. Personally I recommend @@ -717,7 +635,7 @@ A. Contributors for that. - * 2.16 How do I Benchmark the Ciphers, Hashes and Modes? + * 2.15 How do I Benchmark the Ciphers, Hashes and Modes? Since version 1.60 cryptsetup supports the "benchmark" command. Simply run as root: @@ -733,7 +651,7 @@ A. Contributors and half of it is the cipher key, the other half is the XTS key. - * 2.17 How do I Verify I have an Authentic cryptsetup Source Package? + * 2.16 How do I Verify I have an Authentic cryptsetup Source Package? Current maintainer is Milan Broz and he signs the release packages with his PGP key. The key he currently uses is the "RSA key ID @@ -758,51 +676,6 @@ A. Contributors longer as an FAQ can sustain. If in doubt, ask on the mailing list. - * 2.18 Is there a concern with 4k Sectors? - - Not from dm-crypt itself. Encryption will be done in 512B blocks, - but if the partition and filesystem are aligned correctly and the - filesystem uses multiples of 4kiB as block size, the dm-crypt layer - will just process 8 x 512B = 4096B at a time with negligible - overhead. LUKS does place data at an offset, which is 2MiB per - default and will not break alignment. See also Item 6.12 of this - FAQ for more details. Note that if your partition or filesystem is - misaligned, dm-crypt can make the effect worse though. - - - * 2.19 How can I wipe a device with crypto-grade randomness? - - The conventional recommendation if you want to not just do a - zero-wipe is to use something like - - cat /dev/urandom > - - That is very slow and painful at 10-20MB/s on a fast computer. - Using cryptsetup and a plain dm-crypt device with a random key, it - is much faster and gives you the same level of security. The - defaults are quite enough. - - For device set-up, do the following: - - cryptsetup open --type plain -d /dev/urandom /dev/ to_be_wiped - - Then you have several options. Simple wipe without - progress-indicator: - - cat /dev/zero > /dev/mapper/to_be_wiped - - Progress-indicator by dd_rescue: - - dd_rescue -w /dev/zero /dev/mapper/to_be_wiped - - Progress-indicator by my "wcs" stream meter (available from - http://www.tansi.org/tools/index.html ): - - cat /dev/zero | wcs > /dev/mapper/to_be_wiped - - Remove the mapping at the end and you are done. - - 3. Common Problems @@ -1238,9 +1111,9 @@ A. Contributors new filesystem on the raw LUKS partition, making the raw partition part of a raid array and just writing to the raw partition. - The LUKS header contains a 256 bit "salt" per key-slot and without - that no decryption is possible. While the salts are not secret, - they are key-grade material and cannot be reconstructed. This is a + The LUKS header contains a 256 bit "salt" value and without that no + decryption is possible. While the salt is not secret, it is + key-grade material and cannot be reconstructed. This is a cryptographically strong "cannot". From observations on the cryptsetup mailing-list, people typically go though the usual stages of grief (Denial, Anger, Bargaining, Depression, Acceptance) @@ -1249,13 +1122,12 @@ A. Contributors fine. Even if we usually cannot help with getting back your data, most people found the feedback comforting. - If your header does not contain an intact key-slot salt, best go - directly to the last stage ("Acceptance") and think about what to - do now. There is one exception that I know of: If your LUKS - container is still open, then it may be possible to extract the - master key from the running system. See Item "How do I recover the - master key from a mapped LUKS container?" in Section "Backup and - Data Recovery". + If your header does not contain an intact salt, best go directly + to the last stage ("Acceptance") and think about what to do now. + There is one exception that I know of: If your LUKS container is + still open, then it may be possible to extract the master key from + the running system. See Item "How do I recover the master key from + a mapped LUKS container?" in Section "Backup and Data Recovery". * 5.8 What is a "salt"? @@ -1507,9 +1379,7 @@ A. Contributors XTS mode is potentially even more secure than cbc-essiv (but only if cbc-essiv is insecure in your scenario). It is a NIST standard and - used, e.g. in Truecrypt. From version 1.6.0 of cryptsetup onwards, - aes-xts-plain64 is the default for LUKS. If you want to use it - with a cryptsetup before version 1.6.0 or with plain dm-crypt, you + used, e.g. in Truecrypt. At the moment, if you want to use it, you have to specify it manually as "aes-xts-plain", i.e. cryptsetup -c aes-xts-plain luksFormat @@ -1645,8 +1515,8 @@ A. Contributors try an ATA "secure erase" command for SSDs. That does not work for USB keys though and may or may not be secure for a hybrid drive. If it finishes on an SSD after a few seconds, it was possibly faked. - Unfortunately, for hybrid drives that indicator does not work, as - the drive may well take the time to truly erase the magnetic part, + UNfortunately, for hybrid drives that indicator does not work, as + the drive may well take the time to dully erase the magnetic part, but only mark the SSD/Flash part as erased while data is still in there. @@ -1655,7 +1525,7 @@ A. Contributors one or several full overwrites!), you can use plain dm-crypt or LUKS. - If you want or need all the original LUKS security features to work, + If you want or need the original LUKS security features to work, you can use a detached LUKS header and put that on a conventional, magnetic disk. That leaves potentially old encrypted data in the pools on the disk, but otherwise you get LUKS with the same @@ -1671,81 +1541,6 @@ A. Contributors at your data, you should be fine. - * 5.20 LUKS is broken! It uses SHA-1! - - No, it is not. SHA-1 is (academically) broken for finding - collisions, but not for using it in a key-derivation function. And - that collision vulnerability is for non-iterated use only. And you - need the hash-value in verbatim. - - This basically means that if you already have a slot-key, and you - have set the PBKDF2 iteration count to 1 (it is > 10'000 normally), - you could (maybe) derive a different passphrase that gives you the - the same slot-key. But if you have the slot-key, you can already - unlock the key-slot and get the master key, breaking everything. So - basically, this SHA-1 vulnerability allows you to open a LUKS - container with high effort when you already have it open. - - The real problem here is people that do not understand crypto and - claim things are broken just because some mechanism is used that - has been broken for a specific different use. The way the mechanism - is used matters very much. A hash that is broken for one use can be - completely secure for other uses and here it is. - - - * 5.21 Why is there no "Nuke-Option"? - - A "Nuke-Option" or "Kill-switch" is a password that when entered - upon unlocking instead wipes the header and all passwords. So when - somebody forces you to enter your password, you can destroy the - data instead. - - While this sounds attractive at first glance, it does not make sense - once a real security analysis is done. One problem is that you have - to have some kind of HSM (Hardware Security Module) in order to - implement it securely. In the movies, a HSM starts to smoke and - melt once the Nuke-Option has been activated. In reality, it just - wipes some battery-backed RAM cells. A proper HSM costs something - like 20'000...100'000 EUR/USD and there a Nuke-Option may make some - sense. BTW, a chipcard or a TPM is not a HSM, although some - vendors are promoting that myth. - - Now, a proper HSMs will have a wipe option but not a Nuke-Option, - i.e. you can explicitly wipe the HSM, but by a different process - than unlocking it takes. Why is that? Simple: If somebody can force - you to reveal passwords, then they can also do bad things to you if - you do not or if you enter a nuke password instead. Think locking - you up for a few years for "destroying evidence" or for far longer - and without trial for being a "terrorist suspect". No HSM maker - will want to expose its customers to that risk. - - Now think of the typical LUKS application scenario, i.e. disk - encryption. Usually the ones forcing you to hand over your password - will have access to the disk as well, and, if they have any real - suspicion, they will mirror your disk before entering anything - supplied by you. This neatly negates any Nuke-Option. If they have - no suspicion (just harassing people that cross some border for - example), the Nuke-Option would work, but see above about likely - negative consequences and remember that a Nuke-Option may not work - reliably on SSD and hybrid drives anyways. - - Hence my advice is to never take data that you do not want to reveal - into any such situation in the first place. There is no need to - transfer data on physical carriers today. The Internet makes it - quite possible to transfer data between arbitrary places and modern - encryption makes it secure. If you do it right, nobody will even be - able to identify source or destination. (How to do that is out of - scope of this document. It does require advanced skills in this age - of pervasive surveillance.) - - Hence, LUKS has not kill option because it would do much more harm - than good. - - Still, if you have a good use-case (i.e. non-abstract real-world - situation) where a Nuke-Option would actually be beneficial, please - let me know. - - 6. Backup and Data Recovery @@ -1784,16 +1579,6 @@ A. Contributors cryptsetup luksHeaderRestore --header-backup-file - If you are unsure about a header to be restored, make a backup of - the current one first! You can also test the header-file without - restoring it by using the --header option for a detached header - like this: - - cryptsetup --header luksOpen - - If that unlocks your keys-lot, you are good. Do not forget to close - the device again. - * 6.3 How do I test a LUKS header? @@ -1844,16 +1629,7 @@ A. Contributors cat backup.tbz2.gpg | gpg - | tar djf - - Note: Always verify backups, especially encrypted ones! - - There is one problem with verifying like this: The kernel may still - have some files cached and in fact verify them against RAM or may - even verify RAM against RAM, which defeats the purpose of the - exercise. The following command empties the kernel caches: - - echo 3 > /proc/sys/vm/drop_caches - - Run it after backup and before verify. + Note: Always verify backups, especially encrypted ones. In both cases GnuPG will ask you interactively for your symmetric key. The verify will only output errors. Use "tar dvjf -" to get @@ -1861,13 +1637,6 @@ A. Contributors unencrypted, turn off swap if it is not encrypted before doing the backup. - Restore works like certification with the 'd' ('difference') - replaced by 'x' ('eXtract'). Refer to the man-page of tar for more - explanations and instructions. Note that with default options tar - will overwrite already existing files without warning. If you are - unsure about how to use tar, experiment with it in a location - where you cannot do damage. - You can of course use different or no compression and you can use an asymmetric key if you have one and have a backup of the secret key that belongs to it. @@ -1951,15 +1720,14 @@ A. Contributors damage the LUKS header or key-slots? There are two critical components for decryption: The salt values - in the key-slot descriptors of the header and the key-slots. If the - salt values are overwritten or changed, nothing (in the - cryptographically strong sense) can be done to access the data, - unless there is a backup of the LUKS header. If a key-slot is - damaged, the data can still be read with a different key-slot, if - there is a remaining undamaged and used key-slot. Note that in - order to make a key-slot unrecoverable in a cryptographically - strong sense, changing about 4-6 bits in random locations of its - 128kiB size is quite enough. + in the header itself and the key-slots. If the salt values are + overwritten or changed, nothing (in the cryptographically strong + sense) can be done to access the data, unless there is a backup + of the LUKS header. If a key-slot is damaged, the data can still + be read with a different key-slot, if there is a remaining + undamaged and used key-slot. Note that in order to make a key-slot + unrecoverable in a cryptographically strong sense, changing about + 4-6 bits in random locations of its 128kiB size is quite enough. * 6.9 What happens if I (quick) format a LUKS partition? @@ -1993,7 +1761,7 @@ A. Contributors process, except generating a new LUKS header with the old master key (it prints the command for that though): - https://gitlab.com/cryptsetup/cryptsetup/blob/master/misc/luks-header-from-active +http://code.google.com/p/cryptsetup/source/browse/misc/luks-header-from-active You can also do this manually. Here is how: @@ -2051,7 +1819,7 @@ A. Contributors change the password, you basically have to create a second encrypted device with the new passphrase and copy your data over. On the plus side, if you accidentally overwrite any part of a - dm-crypt device, the damage will be limited to the area you + dm-crypt device, the damage will be limited to the are you overwrote. @@ -2091,69 +1859,8 @@ A. Contributors bulk data at 0x200000. The exact specification of the format is here: - https://gitlab.com/cryptsetup/cryptsetup/wikis/Specification - - For your convenience, here is the LUKS header with hex offsets. - NOTE: The spec counts key-slots from 1 to 8, but the cryptsetup - tool counts from 0 to 7. The numbers here refer to the cryptsetup - numbers. - -Refers to LUKS On-Disk Format Specification Version 1.2.1 -LUKS header: -offset length name data type description ------------------------------------------------------------------------ -0x0000 0x06 magic byte[] 'L','U','K','S', 0xba, 0xbe - 0 6 -0x0006 0x02 version uint16_t LUKS version - 6 3 -0x0008 0x20 cipher-name char[] cipher name spec. - 8 32 -0x0028 0x20 cipher-mode char[] cipher mode spec. - 40 32 -0x0048 0x20 hash-spec char[] hash spec. - 72 32 -0x0068 0x04 payload-offset uint32_t bulk data offset in sectors - 104 4 (512 bytes per sector) -0x006c 0x04 key-bytes uint32_t number of bytes in key - 108 4 -0x0070 0x14 mk-digest byte[] master key checksum - 112 20 calculated with PBKDF2 -0x0084 0x20 mk-digest-salt byte[] salt for PBKDF2 when - 132 32 calculating mk-digest -0x00a4 0x04 mk-digest-iter uint32_t iteration count for PBKDF2 - 164 4 when calculating mk-digest -0x00a8 0x28 uuid char[] partition UUID - 168 40 -0x00d0 0x30 key-slot-0 key slot key slot 0 - 208 48 -0x0100 0x30 key-slot-1 key slot key slot 1 - 256 48 -0x0130 0x30 key-slot-2 key slot key slot 2 - 304 48 -0x0160 0x30 key-slot-3 key slot key slot 3 - 352 48 -0x0190 0x30 key-slot-4 key slot key slot 4 - 400 48 -0x01c0 0x30 key-slot-5 key slot key slot 5 - 448 48 -0x01f0 0x30 key-slot-6 key slot key slot 6 - 496 48 -0x0220 0x30 key-slot-7 key slot key slot 7 - 544 48 -Key slot: -offset length name data type description -------------------------------------------------------------------------- -0x0000 0x04 active uint32_t key slot enabled/disabled - 0 4 -0x0004 0x04 iterations uint32_t PBKDF2 iteration count - 4 4 -0x0008 0x20 salt byte[] PBKDF2 salt - 8 32 -0x0028 0x04 key-material-offset uint32_t key start sector - 40 4 (512 bytes/sector) -0x002c 0x04 stripes uint32_t number of anti-forensic - 44 4 stripes - + http://code.google.com/p/cryptsetup/wiki/Specification + * 6.13 What is the smallest possible LUKS container? @@ -2360,10 +2067,10 @@ offset length name data type description accessible anymore! With cryptsetup 1.1.x, the distro maintainer can define different - default encryption modes. You can check the compiled-in defaults - using "cryptsetup --help". Moreover, the plain device default - changed because the old IV mode was vulnerable to a watermarking - attack. + default encryption modes for LUKS and plain devices. You can check + these compiled-in defaults using "cryptsetup --help". Moreover, the + plain device default changed because the old IV mode was + vulnerable to a watermarking attack. If you are using a plain device and you need a compatible mode, just specify cipher, key size and hash algorithm explicitly. For @@ -2384,56 +2091,6 @@ offset length name data type description not be used anymore as well. My advice would be to drop SLED 10. - * 8.3 Gcrypt after 1.5.3 breaks Whirlpool - - It is the other way round: In gcrypt 1.5.3 and before Whirlpool is - broken and it was fixed in the next version. If you selected - whirlpool as hash on creation of a LUKS container, it does not work - anymore with the fixed library. This shows one serious risk of - using rarely used settings. - - The only two ways to deal with this are either to decrypt with an - old gcrypt version that has the flaw or to use a compatibility - feature introduced in cryptsetup 1.6.4 and gcrypt 1.6.1 or later. - Versions of gcrypt between 1.5.4 and 1.6.0 cannot be used. - - Steps: - - - Make a least a header backup or better, refresh your full - backup. (You have a full backup, right? See Item 6.1 and - following.) - - - Make sure you have cryptsetup 1.6.4 or later and check the gcrypt - version: - - - cryptsetup luksDump --debug | grep backend - - If gcrypt is at version 1.5.3 or before: - - - Reencrypt the LUKS header with a different hash. (Requires - entering all keyslot passphrases. If you do not have all, remove - the ones you do not have before.): - - cryptsetup-reencrypt --keep-key --hash sha256 - - If gcrypt is at version 1.6.1 or later: - - - Patch the hash name in the LUKS header from "whirlpool" to - "whirlpool_gcryptbug". This activates the broken implementation. - The detailed header layout is in Item 6.12 of this FAQ and in the - LUKS on-disk format specification. One way to change the hash is - with the following command: - - echo -n -e 'whirlpool_gcryptbug\0' | dd of= bs=1 seek=72 conv=notrunc - - - You can now open the device again. It is highly advisable to - change the hash now with cryptsetup-reencrypt as described above. - While you can reencrypt to use the fixed whirlpool, that may not - be a good idea as almost nobody seems to use it and hence the long - time until the bug was discovered. - - 9. References and Further Reading @@ -2458,7 +2115,8 @@ offset length name data type description * Specifications - LUKS on-disk format spec: - https://gitlab.com/cryptsetup/cryptsetup/wikis/Specification + http://code.google.com/p/cryptsetup/wiki/Specification + * Code Examples diff --git a/Makefile.in b/Makefile.in deleted file mode 100644 index 64d2b0c..0000000 --- a/Makefile.in +++ /dev/null @@ -1,865 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = . -DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ - $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(top_srcdir)/configure $(am__configure_deps) \ - $(srcdir)/config.h.in ABOUT-NLS COPYING TODO compile \ - config.guess config.rpath config.sub depcomp install-sh \ - missing ltmain.sh -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/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 = $(install_sh) -d -CONFIG_HEADER = config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ - ctags-recursive dvi-recursive html-recursive info-recursive \ - install-data-recursive install-dvi-recursive \ - install-exec-recursive install-html-recursive \ - install-info-recursive install-pdf-recursive \ - install-ps-recursive install-recursive installcheck-recursive \ - installdirs-recursive pdf-recursive ps-recursive \ - tags-recursive uninstall-recursive -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ - distclean-recursive maintainer-clean-recursive -am__recursive_targets = \ - $(RECURSIVE_TARGETS) \ - $(RECURSIVE_CLEAN_TARGETS) \ - $(am__extra_recursive_targets) -AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ - cscope distdir dist dist-all distcheck -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ - $(LISP)config.h.in -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -CSCOPE = cscope -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - if test -d "$(distdir)"; then \ - find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -rf "$(distdir)" \ - || { sleep 5 && rm -rf "$(distdir)"; }; \ - else :; fi -am__post_remove_distdir = $(am__remove_distdir) -am__relativize = \ - dir0=`pwd`; \ - sed_first='s,^\([^/]*\)/.*$$,\1,'; \ - sed_rest='s,^[^/]*/*,,'; \ - sed_last='s,^.*/\([^/]*\)$$,\1,'; \ - sed_butlast='s,/*[^/]*$$,,'; \ - while test -n "$$dir1"; do \ - first=`echo "$$dir1" | sed -e "$$sed_first"`; \ - if test "$$first" != "."; then \ - if test "$$first" = ".."; then \ - dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ - dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ - else \ - first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ - if test "$$first2" = "$$first"; then \ - dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ - else \ - dir2="../$$dir2"; \ - fi; \ - dir0="$$dir0"/"$$first"; \ - fi; \ - fi; \ - dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ - done; \ - reldir="$$dir2" -DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz -GZIP_ENV = --best -DIST_TARGETS = dist-xz dist-gzip -distuninstallcheck_listfiles = find . -type f -print -am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ - | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -EXTRA_DIST = COPYING.LGPL FAQ docs misc -SUBDIRS = \ - lib \ - src \ - man \ - python \ - tests \ - po - -ACLOCAL_AMFLAGS = -I m4 -all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive - -.SUFFIXES: -am--refresh: Makefile - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - $(am__cd) $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -$(am__aclocal_m4_deps): - -config.h: stamp-h1 - @test -f $@ || rm -f stamp-h1 - @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 - -stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config.h -$(srcdir)/config.h.in: $(am__configure_deps) - ($(am__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 config.lt - -# This directory's subdirectories are mostly independent; you can cd -# into them and run 'make' without going through this Makefile. -# To change the values of 'make' variables: instead of editing Makefiles, -# (1) if the variable is set in 'config.status', edit 'config.status' -# (which will cause the Makefiles to be regenerated when you run 'make'); -# (2) otherwise, pass the desired values on the 'make' command line. -$(am__recursive_targets): - @fail=; \ - if $(am__make_keepgoing); then \ - failcom='fail=yes'; \ - else \ - failcom='exit 1'; \ - fi; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-recursive -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-recursive - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscope: cscope.files - test ! -s cscope.files \ - || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) -clean-cscope: - -rm -f cscope.files -cscope.files: clean-cscope cscopelist -cscopelist: cscopelist-recursive - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -rm -f cscope.out cscope.in.out cscope.po.out cscope.files - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d "$(distdir)" || mkdir "$(distdir)" - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - $(am__make_dryrun) \ - || test -d "$(distdir)/$$subdir" \ - || $(MKDIR_P) "$(distdir)/$$subdir" \ - || exit 1; \ - dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ - $(am__relativize); \ - new_distdir=$$reldir; \ - dir1=$$subdir; dir2="$(top_distdir)"; \ - $(am__relativize); \ - new_top_distdir=$$reldir; \ - echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ - echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ - ($(am__cd) $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$new_top_distdir" \ - distdir="$$new_distdir" \ - am__remove_distdir=: \ - am__skip_length_check=: \ - am__skip_mode_fix=: \ - distdir) \ - || exit 1; \ - fi; \ - done - -test -n "$(am__skip_mode_fix)" \ - || find "$(distdir)" -type d ! -perm -755 \ - -exec chmod u+rwx,go+rx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r "$(distdir)" -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__post_remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 - $(am__post_remove_distdir) - -dist-lzip: distdir - tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz - $(am__post_remove_distdir) -dist-xz: distdir - tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz - $(am__post_remove_distdir) - -dist-tarZ: distdir - @echo WARNING: "Support for shar distribution archives is" \ - "deprecated." >&2 - @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__post_remove_distdir) - -dist-shar: distdir - @echo WARNING: "Support for distribution archives compressed with" \ - "legacy program 'compress' is deprecated." >&2 - @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__post_remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__post_remove_distdir) - -dist dist-all: - $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' - $(am__post_remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.lz*) \ - lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ - *.tar.xz*) \ - xz -dc $(distdir).tar.xz | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir) - chmod u+w $(distdir) - mkdir $(distdir)/_build $(distdir)/_inst - chmod a-w $(distdir) - test -d $(distdir)/_build || exit 0; \ - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && am__cwd=`pwd` \ - && $(am__cd) $(distdir)/_build \ - && ../configure \ - $(AM_DISTCHECK_CONFIGURE_FLAGS) \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - --srcdir=.. --prefix="$$dc_install_base" \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ - && cd "$$am__cwd" \ - || exit 1 - $(am__post_remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @test -n '$(distuninstallcheck_dir)' || { \ - echo 'ERROR: trying to run $@ with an empty' \ - '$$(distuninstallcheck_dir)' >&2; \ - exit 1; \ - }; \ - $(am__cd) '$(distuninstallcheck_dir)' || { \ - echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ - exit 1; \ - }; \ - test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile config.h -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libtool clean-local mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-hdr \ - distclean-libtool distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: - -install-dvi: install-dvi-recursive - -install-dvi-am: - -install-exec-am: - -install-html: install-html-recursive - -install-html-am: - -install-info: install-info-recursive - -install-info-am: - -install-man: - -install-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: - -.MAKE: $(am__recursive_targets) all install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ - am--refresh check check-am clean clean-cscope clean-generic \ - clean-libtool clean-local cscope cscopelist-am ctags ctags-am \ - dist dist-all dist-bzip2 dist-gzip dist-lzip dist-shar \ - dist-tarZ dist-xz dist-zip distcheck distclean \ - distclean-generic distclean-hdr distclean-libtool \ - distclean-tags distcleancheck distdir distuninstallcheck dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs installdirs-am \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - - -clean-local: - -rm -rf docs/doxygen_api_docs - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/README b/README index 613aa09..36eb3b5 100644 --- a/README +++ b/README @@ -5,11 +5,11 @@ setup cryptographic volumes for dm-crypt (including LUKS extension) WEB PAGE: - https://gitlab.com/cryptsetup/cryptsetup/ + http://code.google.com/p/cryptsetup/ FAQ: - https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions + http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions MAILING LIST: @@ -18,12 +18,12 @@ MAILING LIST: DOWNLOAD: - https://www.kernel.org/pub/linux/utils/cryptsetup/ + http://code.google.com/p/cryptsetup/downloads/ SOURCE CODE: - URL: https://gitlab.com/cryptsetup/cryptsetup/tree/master - Checkout: git clone https://gitlab.com/cryptsetup/cryptsetup.git + URL: http://code.google.com/p/cryptsetup/source/browse/ + Checkout: git clone https://code.google.com/p/cryptsetup/ NLS (PO TRANSLATIONS): diff --git a/TODO b/TODO index b5a66e1..edf3089 100644 --- a/TODO +++ b/TODO @@ -4,5 +4,5 @@ Version 1.7: - TRIM for keyslots - Do we need crypt_data_path() - path to data device (if differs)? - Resync ETA time is not accurate, calculate it better (last minute window?). -- Extend existing LUKS header to use another KDF? (https://password-hashing.net/) -- Fix all crazy automake warnings (or switch to Cmake). +- Crypt benchmark cannot ttest ECB mode. +- Log doesn't work yet in early binary start (FIPS message). diff --git a/aclocal.m4 b/aclocal.m4 deleted file mode 100644 index 5185896..0000000 --- a/aclocal.m4 +++ /dev/null @@ -1,1767 +0,0 @@ -# generated automatically by aclocal 1.14.1 -*- Autoconf -*- - -# Copyright (C) 1996-2013 Free Software Foundation, Inc. - -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, -[m4_warning([this file was generated for autoconf 2.69. -You have another version of autoconf. It may work, but is not guaranteed to. -If you have problems, you may need to regenerate the build system entirely. -To do so, use the procedure documented by the package, typically 'autoreconf'.])]) - -dnl Autoconf macros for libgcrypt -dnl Copyright (C) 2002, 2004, 2011 Free Software Foundation, Inc. -dnl -dnl This file is free software; as a special exception the author gives -dnl unlimited permission to copy and/or distribute it, with or without -dnl modifications, as long as this notice is preserved. -dnl -dnl This file is distributed in the hope that it will be useful, but -dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the -dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - -dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION, -dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) -dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS. -dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed -dnl with the API version to also check the API compatibility. Example: -dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed -dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using -dnl this features allows to prevent build against newer versions of libgcrypt -dnl with a changed API. -dnl -AC_DEFUN([AM_PATH_LIBGCRYPT], -[ AC_REQUIRE([AC_CANONICAL_HOST]) - AC_ARG_WITH(libgcrypt-prefix, - AC_HELP_STRING([--with-libgcrypt-prefix=PFX], - [prefix where LIBGCRYPT is installed (optional)]), - libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="") - if test x$libgcrypt_config_prefix != x ; then - if test x${LIBGCRYPT_CONFIG+set} != xset ; then - LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config - fi - fi - - AC_PATH_TOOL(LIBGCRYPT_CONFIG, libgcrypt-config, no) - tmp=ifelse([$1], ,1:1.2.0,$1) - if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then - req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` - min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` - else - req_libgcrypt_api=0 - min_libgcrypt_version="$tmp" - fi - - AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version) - ok=no - if test "$LIBGCRYPT_CONFIG" != "no" ; then - req_major=`echo $min_libgcrypt_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` - req_minor=`echo $min_libgcrypt_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` - req_micro=`echo $min_libgcrypt_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` - libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` - major=`echo $libgcrypt_config_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` - minor=`echo $libgcrypt_config_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'` - micro=`echo $libgcrypt_config_version | \ - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` - if test "$major" -gt "$req_major"; then - ok=yes - else - if test "$major" -eq "$req_major"; then - if test "$minor" -gt "$req_minor"; then - ok=yes - else - if test "$minor" -eq "$req_minor"; then - if test "$micro" -ge "$req_micro"; then - ok=yes - fi - fi - fi - fi - fi - fi - if test $ok = yes; then - AC_MSG_RESULT([yes ($libgcrypt_config_version)]) - else - AC_MSG_RESULT(no) - fi - if test $ok = yes; then - # If we have a recent libgcrypt, we should also check that the - # API is compatible - if test "$req_libgcrypt_api" -gt 0 ; then - tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` - if test "$tmp" -gt 0 ; then - AC_MSG_CHECKING([LIBGCRYPT API version]) - if test "$req_libgcrypt_api" -eq "$tmp" ; then - AC_MSG_RESULT([okay]) - else - ok=no - AC_MSG_RESULT([does not match. want=$req_libgcrypt_api got=$tmp]) - fi - fi - fi - fi - if test $ok = yes; then - LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` - LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` - ifelse([$2], , :, [$2]) - libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` - if test x"$libgcrypt_config_host" != xnone ; then - if test x"$libgcrypt_config_host" != x"$host" ; then - AC_MSG_WARN([[ -*** -*** The config script $LIBGCRYPT_CONFIG was -*** built for $libgcrypt_config_host and thus may not match the -*** used host $host. -*** You may want to use the configure option --with-libgcrypt-prefix -*** to specify a matching config script. -***]]) - fi - fi - else - LIBGCRYPT_CFLAGS="" - LIBGCRYPT_LIBS="" - ifelse([$3], , :, [$3]) - fi - AC_SUBST(LIBGCRYPT_CFLAGS) - AC_SUBST(LIBGCRYPT_LIBS) -]) - -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -# serial 1 (pkg-config-0.24) -# -# Copyright © 2004 Scott James Remnant . -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# PKG_PROG_PKG_CONFIG([MIN-VERSION]) -# ---------------------------------- -AC_DEFUN([PKG_PROG_PKG_CONFIG], -[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) -m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) -AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) -AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=m4_default([$1], [0.9.0]) - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - PKG_CONFIG="" - fi -fi[]dnl -])# PKG_PROG_PKG_CONFIG - -# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# -# Check to see whether a particular set of modules exists. Similar -# to PKG_CHECK_MODULES(), but does not set variables or print errors. -# -# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -# only at the first occurence in configure.ac, so if the first place -# it's called might be skipped (such as if it is within an "if", you -# have to call PKG_CHECK_EXISTS manually -# -------------------------------------------------------------- -AC_DEFUN([PKG_CHECK_EXISTS], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -if test -n "$PKG_CONFIG" && \ - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then - m4_default([$2], [:]) -m4_ifvaln([$3], [else - $3])dnl -fi]) - -# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) -# --------------------------------------------- -m4_define([_PKG_CONFIG], -[if test -n "$$1"; then - pkg_cv_[]$1="$$1" - elif test -n "$PKG_CONFIG"; then - PKG_CHECK_EXISTS([$3], - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes ], - [pkg_failed=yes]) - else - pkg_failed=untried -fi[]dnl -])# _PKG_CONFIG - -# _PKG_SHORT_ERRORS_SUPPORTED -# ----------------------------- -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi[]dnl -])# _PKG_SHORT_ERRORS_SUPPORTED - - -# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -# [ACTION-IF-NOT-FOUND]) -# -# -# Note that if there is a possibility the first call to -# PKG_CHECK_MODULES might not happen, you should be sure to include an -# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac -# -# -# -------------------------------------------------------------- -AC_DEFUN([PKG_CHECK_MODULES], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl - -pkg_failed=no -AC_MSG_CHECKING([for $1]) - -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) -_PKG_CONFIG([$1][_LIBS], [libs], [$2]) - -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS -and $1[]_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details.]) - -if test $pkg_failed = yes; then - AC_MSG_RESULT([no]) - _PKG_SHORT_ERRORS_SUPPORTED - if test $_pkg_short_errors_supported = yes; then - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` - else - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD - - m4_default([$4], [AC_MSG_ERROR( -[Package requirements ($2) were not met: - -$$1_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -_PKG_TEXT])[]dnl - ]) -elif test $pkg_failed = untried; then - AC_MSG_RESULT([no]) - m4_default([$4], [AC_MSG_FAILURE( -[The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -_PKG_TEXT - -To get pkg-config, see .])[]dnl - ]) -else - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS - AC_MSG_RESULT([yes]) - $3 -fi[]dnl -])# PKG_CHECK_MODULES - - -# PKG_INSTALLDIR(DIRECTORY) -# ------------------------- -# Substitutes the variable pkgconfigdir as the location where a module -# should install pkg-config .pc files. By default the directory is -# $libdir/pkgconfig, but the default can be changed by passing -# DIRECTORY. The user can override through the --with-pkgconfigdir -# parameter. -AC_DEFUN([PKG_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([pkgconfigdir], - [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, - [with_pkgconfigdir=]pkg_default) -AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -]) dnl PKG_INSTALLDIR - - -# PKG_NOARCH_INSTALLDIR(DIRECTORY) -# ------------------------- -# Substitutes the variable noarch_pkgconfigdir as the location where a -# module should install arch-independent pkg-config .pc files. By -# default the directory is $datadir/pkgconfig, but the default can be -# changed by passing DIRECTORY. The user can override through the -# --with-noarch-pkgconfigdir parameter. -AC_DEFUN([PKG_NOARCH_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([noarch-pkgconfigdir], - [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, - [with_noarch_pkgconfigdir=]pkg_default) -AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -]) dnl PKG_NOARCH_INSTALLDIR - - -# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, -# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# ------------------------------------------- -# Retrieves the value of the pkg-config variable for the given module. -AC_DEFUN([PKG_CHECK_VAR], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl - -_PKG_CONFIG([$1], [variable="][$3]["], [$2]) -AS_VAR_COPY([$1], [pkg_cv_][$1]) - -AS_VAR_IF([$1], [""], [$5], [$4])dnl -])# PKG_CHECK_VAR - -# Copyright (C) 2002-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.14' -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.14.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 AM_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.14.1])dnl -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to -# '$srcdir', '$srcdir/..', or '$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is '.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ([2.52])dnl - m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -m4_define([_AM_COND_VALUE_$1], [$2])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], - [$1], [CXX], [depcc="$CXX" am_compiler_list=], - [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], - [$1], [UPC], [depcc="$UPC" am_compiler_list=], - [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - am__universal=false - m4_case([$1], [CC], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac], - [CXX], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac]) - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES. -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE([dependency-tracking], [dnl -AS_HELP_STRING( - [--enable-dependency-tracking], - [do not reject slow dependency extractors]) -AS_HELP_STRING( - [--disable-dependency-tracking], - [speeds up one-time build])]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -AC_SUBST([am__nodep])dnl -_AM_SUBST_NOTMAKE([am__nodep])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[{ - # Older Autoconf quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac - shift - for mf - do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done - done -} -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each '.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. -m4_define([AC_PROG_CC], -m4_defn([AC_PROG_CC]) -[_AM_PROG_CC_C_O -]) - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.65])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[AC_DIAGNOSE([obsolete], - [$0: two- and three-arguments forms are deprecated.]) -m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if( - m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), - [ok:ok],, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) - AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) -AM_MISSING_PROG([AUTOCONF], [autoconf]) -AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) -AM_MISSING_PROG([AUTOHEADER], [autoheader]) -AM_MISSING_PROG([MAKEINFO], [makeinfo]) -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -AC_SUBST([mkdir_p], ['$(MKDIR_P)']) -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES([CC])], - [m4_define([AC_PROG_CC], - m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES([CXX])], - [m4_define([AC_PROG_CXX], - m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES([OBJC])], - [m4_define([AC_PROG_OBJC], - m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], - [_AM_DEPENDENCIES([OBJCXX])], - [m4_define([AC_PROG_OBJCXX], - m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl -]) -AC_REQUIRE([AM_SILENT_RULES])dnl -dnl The testsuite driver may need to know about EXEEXT, so add the -dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This -dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. -AC_CONFIG_COMMANDS_PRE(dnl -[m4_provide_if([_AM_COMPILER_EXEEXT], - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) - fi -fi -]) - -dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not -dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further -dnl mangled by Autoconf and run in a shell conditional statement. -m4_define([_AC_COMPILER_EXEEXT], -m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_arg=$1 -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $_am_arg | $_am_arg:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -if test x"${install_sh}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi -AC_SUBST([install_sh])]) - -# Copyright (C) 2003-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it is modern enough. -# If it is, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - AC_MSG_WARN(['missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for 'mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl FIXME we are no longer going to remove this! adjust warning -dnl FIXME message accordingly. -AC_DIAGNOSE([obsolete], -[$0: this macro is deprecated, and will soon be removed. -You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead, -and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.]) -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# -------------------- -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) - -# _AM_SET_OPTIONS(OPTIONS) -# ------------------------ -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Copyright (C) 1999-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_PROG_CC_C_O -# --------------- -# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC -# to automatically call this. -AC_DEFUN([_AM_PROG_CC_C_O], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([compile])dnl -AC_LANG_PUSH([C])dnl -AC_CACHE_CHECK( - [whether $CC understands -c and -o together], - [am_cv_prog_cc_c_o], - [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i]) -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -AC_LANG_POP([C])]) - -# For backward compatibility. -AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) - -# Copyright (C) 1999-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# --------------------------------------------------------------------------- -# Adds support for distributing Python modules and packages. To -# install modules, copy them to $(pythondir), using the python_PYTHON -# automake variable. To install a package with the same name as the -# automake package, install to $(pkgpythondir), or use the -# pkgpython_PYTHON automake variable. -# -# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as -# locations to install python extension modules (shared libraries). -# Another macro is required to find the appropriate flags to compile -# extension modules. -# -# If your package is configured with a different prefix to python, -# users will have to add the install directory to the PYTHONPATH -# environment variable, or create a .pth file (see the python -# documentation for details). -# -# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will -# cause an error if the version of python installed on the system -# doesn't meet the requirement. MINIMUM-VERSION should consist of -# numbers and dots only. -AC_DEFUN([AM_PATH_PYTHON], - [ - dnl Find a Python interpreter. Python versions prior to 2.0 are not - dnl supported. (2.0 was released on October 16, 2000). - m4_define_default([_AM_PYTHON_INTERPRETER_LIST], -[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl - python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0]) - - AC_ARG_VAR([PYTHON], [the Python interpreter]) - - m4_if([$1],[],[ - dnl No version check is needed. - # Find any Python interpreter. - if test -z "$PYTHON"; then - AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :) - fi - am_display_PYTHON=python - ], [ - dnl A version check is needed. - if test -n "$PYTHON"; then - # If the user set $PYTHON, use it and don't search something else. - AC_MSG_CHECKING([whether $PYTHON version is >= $1]) - AM_PYTHON_CHECK_VERSION([$PYTHON], [$1], - [AC_MSG_RESULT([yes])], - [AC_MSG_RESULT([no]) - AC_MSG_ERROR([Python interpreter is too old])]) - am_display_PYTHON=$PYTHON - else - # Otherwise, try each interpreter until we find one that satisfies - # VERSION. - AC_CACHE_CHECK([for a Python interpreter with version >= $1], - [am_cv_pathless_PYTHON],[ - for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do - test "$am_cv_pathless_PYTHON" = none && break - AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break]) - done]) - # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. - if test "$am_cv_pathless_PYTHON" = none; then - PYTHON=: - else - AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON]) - fi - am_display_PYTHON=$am_cv_pathless_PYTHON - fi - ]) - - if test "$PYTHON" = :; then - dnl Run any user-specified action, or abort. - m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])]) - else - - dnl Query Python for its version number. Getting [:3] seems to be - dnl the best way to do this; it's what "site.py" does in the standard - dnl library. - - AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version], - [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`]) - AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) - - dnl Use the values of $prefix and $exec_prefix for the corresponding - dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made - dnl distinct variables so they can be overridden if need be. However, - dnl general consensus is that you shouldn't need this ability. - - AC_SUBST([PYTHON_PREFIX], ['${prefix}']) - AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}']) - - dnl At times (like when building shared libraries) you may want - dnl to know which OS platform Python thinks this is. - - AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform], - [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`]) - AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform]) - - # Just factor out some code duplication. - am_python_setup_sysconfig="\ -import sys -# Prefer sysconfig over distutils.sysconfig, for better compatibility -# with python 3.x. See automake bug#10227. -try: - import sysconfig -except ImportError: - can_use_sysconfig = 0 -else: - can_use_sysconfig = 1 -# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: -# -try: - from platform import python_implementation - if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7': - can_use_sysconfig = 0 -except ImportError: - pass" - - dnl Set up 4 directories: - - dnl pythondir -- where to install python scripts. This is the - dnl site-packages directory, not the python standard library - dnl directory like in previous automake betas. This behavior - dnl is more consistent with lispdir.m4 for example. - dnl Query distutils for this directory. - AC_CACHE_CHECK([for $am_display_PYTHON script directory], - [am_cv_python_pythondir], - [if test "x$prefix" = xNONE - then - am_py_prefix=$ac_default_prefix - else - am_py_prefix=$prefix - fi - am_cv_python_pythondir=`$PYTHON -c " -$am_python_setup_sysconfig -if can_use_sysconfig: - sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) -else: - from distutils import sysconfig - sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') -sys.stdout.write(sitedir)"` - case $am_cv_python_pythondir in - $am_py_prefix*) - am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` - am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` - ;; - *) - case $am_py_prefix in - /usr|/System*) ;; - *) - am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages - ;; - esac - ;; - esac - ]) - AC_SUBST([pythondir], [$am_cv_python_pythondir]) - - dnl pkgpythondir -- $PACKAGE directory under pythondir. Was - dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is - dnl more consistent with the rest of automake. - - AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE]) - - dnl pyexecdir -- directory for installing python extension modules - dnl (shared libraries) - dnl Query distutils for this directory. - AC_CACHE_CHECK([for $am_display_PYTHON extension module directory], - [am_cv_python_pyexecdir], - [if test "x$exec_prefix" = xNONE - then - am_py_exec_prefix=$am_py_prefix - else - am_py_exec_prefix=$exec_prefix - fi - am_cv_python_pyexecdir=`$PYTHON -c " -$am_python_setup_sysconfig -if can_use_sysconfig: - sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) -else: - from distutils import sysconfig - sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') -sys.stdout.write(sitedir)"` - case $am_cv_python_pyexecdir in - $am_py_exec_prefix*) - am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` - am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` - ;; - *) - case $am_py_exec_prefix in - /usr|/System*) ;; - *) - am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages - ;; - esac - ;; - esac - ]) - AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir]) - - dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE) - - AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE]) - - dnl Run any user-specified action. - $2 - fi - -]) - - -# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) -# --------------------------------------------------------------------------- -# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION. -# Run ACTION-IF-FALSE otherwise. -# This test uses sys.hexversion instead of the string equivalent (first -# word of sys.version), in order to cope with versions such as 2.2c1. -# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000). -AC_DEFUN([AM_PYTHON_CHECK_VERSION], - [prog="import sys -# split strings by '.' and convert to numeric. Append some zeros -# because we need at least 4 digits for the hex conversion. -# map returns an iterator in Python 3.0 and a list in 2.x -minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]] -minverhex = 0 -# xrange is not present in Python 3.0 and range returns an iterator -for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]] -sys.exit(sys.hexversion < minverhex)" - AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])]) - -# Copyright (C) 2001-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_RUN_LOG(COMMAND) -# ------------------- -# Run COMMAND, save the exit status in ac_status, and log it. -# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) -AC_DEFUN([AM_RUN_LOG], -[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[[\\\"\#\$\&\'\`$am_lf]]*) - AC_MSG_ERROR([unsafe absolute working directory name]);; -esac -case $srcdir in - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) - AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken - alias in your environment]) - fi - if test "$[2]" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT([yes]) -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi -AC_CONFIG_COMMANDS_PRE( - [AC_MSG_CHECKING([that generated files are newer than configure]) - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - AC_MSG_RESULT([done])]) -rm -f conftest.file -]) - -# Copyright (C) 2009-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SILENT_RULES([DEFAULT]) -# -------------------------- -# Enable less verbose build rules; with the default set to DEFAULT -# ("yes" being less verbose, "no" or empty being verbose). -AC_DEFUN([AM_SILENT_RULES], -[AC_ARG_ENABLE([silent-rules], [dnl -AS_HELP_STRING( - [--enable-silent-rules], - [less verbose build output (undo: "make V=1")]) -AS_HELP_STRING( - [--disable-silent-rules], - [verbose build output (undo: "make V=0")])dnl -]) -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; -esac -dnl -dnl A few 'make' implementations (e.g., NonStop OS and NextStep) -dnl do not support nested variable expansions. -dnl See automake bug#9928 and bug#10237. -am_make=${MAKE-make} -AC_CACHE_CHECK([whether $am_make supports nested variables], - [am_cv_make_support_nested_variables], - [if AS_ECHO([['TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi]) -if test $am_cv_make_support_nested_variables = yes; then - dnl Using '$V' instead of '$(V)' breaks IRIX make. - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AC_SUBST([AM_V])dnl -AM_SUBST_NOTMAKE([AM_V])dnl -AC_SUBST([AM_DEFAULT_V])dnl -AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl -AC_SUBST([AM_DEFAULT_VERBOSITY])dnl -AM_BACKSLASH='\' -AC_SUBST([AM_BACKSLASH])dnl -_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl -]) - -# Copyright (C) 2001-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor 'install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in "make install-strip", and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# AM_SUBST_NOTMAKE(VARIABLE) -# -------------------------- -# Public sister of _AM_SUBST_NOTMAKE. -AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004-2013 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of 'v7', 'ustar', or 'pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -# -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AC_SUBST([AMTAR], ['$${TAR-tar}']) - -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' - -m4_if([$1], [v7], - [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], - - [m4_case([$1], - [ustar], - [# The POSIX 1988 'ustar' format is defined with fixed-size fields. - # There is notably a 21 bits limit for the UID and the GID. In fact, - # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 - # and bug#13588). - am_max_uid=2097151 # 2^21 - 1 - am_max_gid=$am_max_uid - # The $UID and $GID variables are not portable, so we need to resort - # to the POSIX-mandated id(1) utility. Errors in the 'id' calls - # below are definitely unexpected, so allow the users to see them - # (that is, avoid stderr redirection). - am_uid=`id -u || echo unknown` - am_gid=`id -g || echo unknown` - AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) - if test $am_uid -le $am_max_uid; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - _am_tools=none - fi - AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) - if test $am_gid -le $am_max_gid; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - _am_tools=none - fi], - - [pax], - [], - - [m4_fatal([Unknown tar format])]) - - AC_MSG_CHECKING([how to create a $1 tar archive]) - - # Go ahead even if we have the value already cached. We do so because we - # need to set the values for the 'am__tar' and 'am__untar' variables. - _am_tools=${am_cv_prog_tar_$1-$_am_tools} - - for _am_tool in $_am_tools; do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works. - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi - done - rm -rf conftest.dir - - AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) - AC_MSG_RESULT([$am_cv_prog_tar_$1])]) - -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -m4_include([m4/gettext.m4]) -m4_include([m4/iconv.m4]) -m4_include([m4/lib-ld.m4]) -m4_include([m4/lib-link.m4]) -m4_include([m4/lib-prefix.m4]) -m4_include([m4/libtool.m4]) -m4_include([m4/ltoptions.m4]) -m4_include([m4/ltsugar.m4]) -m4_include([m4/ltversion.m4]) -m4_include([m4/lt~obsolete.m4]) -m4_include([m4/nls.m4]) -m4_include([m4/po.m4]) -m4_include([m4/progtest.m4]) diff --git a/autogen.sh b/autogen.sh index 3c0022d..ffc3002 100755 --- a/autogen.sh +++ b/autogen.sh @@ -82,9 +82,9 @@ automake --add-missing --copy --gnu $AM_OPTS autoconf $AC_OPTS if test x$NOCONFIGURE = x; then - echo Running $srcdir/configure $conf_flags "$@" ... - $srcdir/configure $conf_flags "$@" \ - && echo Now type \`make\' to compile $PKG_NAME + echo Running $srcdir/configure $conf_flags "$@" ... + $srcdir/configure $conf_flags "$@" \ + && echo Now type \`make\' to compile $PKG_NAME else - echo Skipping configure process. + echo Skipping configure process. fi diff --git a/compile b/compile deleted file mode 100755 index 531136b..0000000 --- a/compile +++ /dev/null @@ -1,347 +0,0 @@ -#! /bin/sh -# Wrapper for compilers which do not understand '-c -o'. - -scriptversion=2012-10-14.11; # UTC - -# Copyright (C) 1999-2013 Free Software Foundation, Inc. -# Written by Tom Tromey . -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# This file is maintained in Automake, please report -# bugs to or send patches to -# . - -nl=' -' - -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent tools from complaining about whitespace usage. -IFS=" "" $nl" - -file_conv= - -# func_file_conv build_file lazy -# Convert a $build file to $host form and store it in $file -# Currently only supports Windows hosts. If the determined conversion -# type is listed in (the comma separated) LAZY, no conversion will -# take place. -func_file_conv () -{ - file=$1 - case $file in - / | /[!/]*) # absolute file, and not a UNC file - if test -z "$file_conv"; then - # lazily determine how to convert abs files - case `uname -s` in - MINGW*) - file_conv=mingw - ;; - CYGWIN*) - file_conv=cygwin - ;; - *) - file_conv=wine - ;; - esac - fi - case $file_conv/,$2, in - *,$file_conv,*) - ;; - mingw/*) - file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` - ;; - cygwin/*) - file=`cygpath -m "$file" || echo "$file"` - ;; - wine/*) - file=`winepath -w "$file" || echo "$file"` - ;; - esac - ;; - esac -} - -# func_cl_dashL linkdir -# Make cl look for libraries in LINKDIR -func_cl_dashL () -{ - func_file_conv "$1" - if test -z "$lib_path"; then - lib_path=$file - else - lib_path="$lib_path;$file" - fi - linker_opts="$linker_opts -LIBPATH:$file" -} - -# func_cl_dashl library -# Do a library search-path lookup for cl -func_cl_dashl () -{ - lib=$1 - found=no - save_IFS=$IFS - IFS=';' - for dir in $lib_path $LIB - do - IFS=$save_IFS - if $shared && test -f "$dir/$lib.dll.lib"; then - found=yes - lib=$dir/$lib.dll.lib - break - fi - if test -f "$dir/$lib.lib"; then - found=yes - lib=$dir/$lib.lib - break - fi - if test -f "$dir/lib$lib.a"; then - found=yes - lib=$dir/lib$lib.a - break - fi - done - IFS=$save_IFS - - if test "$found" != yes; then - lib=$lib.lib - fi -} - -# func_cl_wrapper cl arg... -# Adjust compile command to suit cl -func_cl_wrapper () -{ - # Assume a capable shell - lib_path= - shared=: - linker_opts= - for arg - do - if test -n "$eat"; then - eat= - else - case $1 in - -o) - # configure might choose to run compile as 'compile cc -o foo foo.c'. - eat=1 - case $2 in - *.o | *.[oO][bB][jJ]) - func_file_conv "$2" - set x "$@" -Fo"$file" - shift - ;; - *) - func_file_conv "$2" - set x "$@" -Fe"$file" - shift - ;; - esac - ;; - -I) - eat=1 - func_file_conv "$2" mingw - set x "$@" -I"$file" - shift - ;; - -I*) - func_file_conv "${1#-I}" mingw - set x "$@" -I"$file" - shift - ;; - -l) - eat=1 - func_cl_dashl "$2" - set x "$@" "$lib" - shift - ;; - -l*) - func_cl_dashl "${1#-l}" - set x "$@" "$lib" - shift - ;; - -L) - eat=1 - func_cl_dashL "$2" - ;; - -L*) - func_cl_dashL "${1#-L}" - ;; - -static) - shared=false - ;; - -Wl,*) - arg=${1#-Wl,} - save_ifs="$IFS"; IFS=',' - for flag in $arg; do - IFS="$save_ifs" - linker_opts="$linker_opts $flag" - done - IFS="$save_ifs" - ;; - -Xlinker) - eat=1 - linker_opts="$linker_opts $2" - ;; - -*) - set x "$@" "$1" - shift - ;; - *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) - func_file_conv "$1" - set x "$@" -Tp"$file" - shift - ;; - *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) - func_file_conv "$1" mingw - set x "$@" "$file" - shift - ;; - *) - set x "$@" "$1" - shift - ;; - esac - fi - shift - done - if test -n "$linker_opts"; then - linker_opts="-link$linker_opts" - fi - exec "$@" $linker_opts - exit 1 -} - -eat= - -case $1 in - '') - echo "$0: No command. Try '$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: compile [--help] [--version] PROGRAM [ARGS] - -Wrapper for compilers which do not understand '-c -o'. -Remove '-o dest.o' from ARGS, run PROGRAM with the remaining -arguments, and rename the output as expected. - -If you are trying to build a whole package this is not the -right script to run: please start by reading the file 'INSTALL'. - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "compile $scriptversion" - exit $? - ;; - cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) - func_cl_wrapper "$@" # Doesn't return... - ;; -esac - -ofile= -cfile= - -for arg -do - if test -n "$eat"; then - eat= - else - case $1 in - -o) - # configure might choose to run compile as 'compile cc -o foo foo.c'. - # So we strip '-o arg' only if arg is an object. - eat=1 - case $2 in - *.o | *.obj) - ofile=$2 - ;; - *) - set x "$@" -o "$2" - shift - ;; - esac - ;; - *.c) - cfile=$1 - set x "$@" "$1" - shift - ;; - *) - set x "$@" "$1" - shift - ;; - esac - fi - shift -done - -if test -z "$ofile" || test -z "$cfile"; then - # If no '-o' option was seen then we might have been invoked from a - # pattern rule where we don't need one. That is ok -- this is a - # normal compilation that the losing compiler can handle. If no - # '.c' file was seen then we are probably linking. That is also - # ok. - exec "$@" -fi - -# Name of file we expect compiler to create. -cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` - -# Create the lock directory. -# Note: use '[/\\:.-]' here to ensure that we don't use the same name -# that we are using for the .o file. Also, base the name on the expected -# object file name, since that is what matters with a parallel build. -lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d -while true; do - if mkdir "$lockdir" >/dev/null 2>&1; then - break - fi - sleep 1 -done -# FIXME: race condition here if user kills between mkdir and trap. -trap "rmdir '$lockdir'; exit 1" 1 2 15 - -# Run the compile. -"$@" -ret=$? - -if test -f "$cofile"; then - test "$cofile" = "$ofile" || mv "$cofile" "$ofile" -elif test -f "${cofile}bj"; then - test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" -fi - -rmdir "$lockdir" -exit $ret - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/config.guess b/config.guess deleted file mode 100755 index 1f5c50c..0000000 --- a/config.guess +++ /dev/null @@ -1,1420 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright 1992-2014 Free Software Foundation, Inc. - -timestamp='2014-03-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 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see . -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that -# program. This Exception is an additional permission under section 7 -# of the GNU General Public License, version 3 ("GPLv3"). -# -# Originally written by Per Bothner. -# -# You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD -# -# Please send patches with a ChangeLog entry to config-patches@gnu.org. - - -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 1992-2014 Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -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 - -case "${UNAME_SYSTEM}" in -Linux|GNU|GNU/*) - # If the system lacks a compiler, then just pick glibc. - # We could probably try harder. - LIBC=gnu - - eval $set_cc_for_build - cat <<-EOF > $dummy.c - #include - #if defined(__UCLIBC__) - LIBC=uclibc - #elif defined(__dietlibc__) - LIBC=dietlibc - #else - LIBC=gnu - #endif - EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` - ;; -esac - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:NetBSD:*:*) - # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # - # Note: NetBSD doesn't particularly care about the vendor - # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` - case "${UNAME_MACHINE_ARCH}" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - sh5el) machine=sh5le-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; - esac - # The Operating System including object format, if it has switched - # to ELF recently, or will in the future. - case "${UNAME_MACHINE_ARCH}" in - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ELF__ - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - ;; - *) - os=netbsd - ;; - esac - # The OS release - # Debian GNU/NetBSD machines have a different userland, and - # thus, need a distinct triplet. However, they do not need - # kernel version information, so it can be replaced with a - # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in - Debian*) - release='-gnu' - ;; - *) - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}" - exit ;; - *:Bitrig:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_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'` - # Reset EXIT trap before exiting to avoid spurious non-zero exit code. - exitcode=$? - trap '' 0 - exit $exitcode ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit ;; - *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos - exit ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit ;; - *:z/VM:*:*) - echo s390-ibm-zvmoe - exit ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit ;; - arm*:riscos:*:*|arm*:RISCOS:*:*) - echo arm-unknown-riscos - exit ;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit ;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit ;; - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7; exit ;; - esac ;; - s390x:SunOS:*:*) - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - echo i386-pc-auroraux${UNAME_RELEASE} - exit ;; - i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval $set_cc_for_build - SUN_ARCH="i386" - # If there is a compiler, see if it is configured for 64-bit objects. - # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. - # This test works for both compilers. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - SUN_ARCH="x86_64" - fi - fi - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit ;; - # The situation for MiNT is a little confusing. The machine name - # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" - # to the lowercase version "mint" (or "freemint"). Finally - # the system name "TOS" denotes a system which is actually not - # MiNT. But MiNT is downward compatible to TOS, so this should - # be no problem. - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit ;; - m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} - exit ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c -#ifdef __cplusplus -#include /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && - { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos${UNAME_RELEASE} - exit ;; - Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit ;; - Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] - then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else - echo i586-dg-dgux${UNAME_RELEASE} - fi - exit ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - echo i386-ibm-aix - exit ;; - ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` - then - echo "$SYSTEM_NAME" - else - echo rs6000-ibm-aix3.2.5 - fi - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit ;; - *:AIX:*:[4567]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit ;; - 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac - fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` - test -z "$HP_ARCH" && HP_ARCH=hppa - fi ;; - esac - if [ ${HP_ARCH} = "hppa2.0w" ] - then - eval $set_cc_for_build - - # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating - # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler - # generating 64-bit code. GNU and HP use different nomenclature: - # - # $ CC_FOR_BUILD=cc ./config.guess - # => hppa2.0w-hp-hpux11.23 - # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess - # => hppa64-hp-hpux11.23 - - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | - grep -q __LP64__ - then - HP_ARCH="hppa2.0w" - else - HP_ARCH="hppa64" - fi - fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} - exit ;; - 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - echo unknown-hitachi-hiuxwe2 - exit ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit ;; - i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ - -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` - case ${UNAME_PROCESSOR} in - amd64) - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - *) - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - esac - exit ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit ;; - *:MINGW64*:*) - echo ${UNAME_MACHINE}-pc-mingw64 - exit ;; - *:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit ;; - *:MSYS*:*) - echo ${UNAME_MACHINE}-pc-msys - exit ;; - i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 - exit ;; - i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 - exit ;; - *:Interix*:*) - case ${UNAME_MACHINE} in - x86) - echo i586-pc-interix${UNAME_RELEASE} - exit ;; - authenticamd | genuineintel | EM64T) - echo x86_64-unknown-interix${UNAME_RELEASE} - exit ;; - IA64) - echo ia64-unknown-interix${UNAME_RELEASE} - exit ;; - esac ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit ;; - 8664:Windows_NT:*) - echo x86_64-pc-mks - exit ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit ;; - i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin - exit ;; - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - *:GNU:*:*) - # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`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/[-(].*//'`-${LIBC} - exit ;; - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit ;; - aarch64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - aarch64_be:Linux:*:*) - UNAME_MACHINE=aarch64_be - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep -q ld.so.1 - if test "$?" = 0 ; then LIBC="gnulibc1" ; fi - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - arc:Linux:*:* | arceb:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - arm*:Linux:*:*) - eval $set_cc_for_build - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_EABI__ - then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - else - if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_PCS_VFP - then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi - else - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf - fi - fi - exit ;; - avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - cris:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} - exit ;; - crisv32:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} - exit ;; - frv:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - hexagon:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - i*86:Linux:*:*) - echo ${UNAME_MACHINE}-pc-linux-${LIBC} - exit ;; - ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - mips:Linux:*:* | mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef ${UNAME_MACHINE} - #undef ${UNAME_MACHINE}el - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=${UNAME_MACHINE}el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=${UNAME_MACHINE} - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } - ;; - openrisc*:Linux:*:*) - echo or1k-unknown-linux-${LIBC} - exit ;; - or32:Linux:*:* | or1k*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - padre:Linux:*:*) - echo sparc-unknown-linux-${LIBC} - exit ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-${LIBC} - exit ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; - PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; - *) echo hppa-unknown-linux-${LIBC} ;; - esac - exit ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-${LIBC} - exit ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-${LIBC} - exit ;; - ppc64le:Linux:*:*) - echo powerpc64le-unknown-linux-${LIBC} - exit ;; - ppcle:Linux:*:*) - echo powerpcle-unknown-linux-${LIBC} - exit ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux-${LIBC} - exit ;; - sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - tile*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-${LIBC} - exit ;; - x86_64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - i*86:DYNIX/ptx:4*:*) - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. - # earlier versions are messed up and put the nodename in both - # sysname and nodename. - echo i386-sequent-sysv4 - exit ;; - i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos - exit ;; - i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable - exit ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} - fi - exit ;; - i*86:*:5:[678]*) - # UnixWare 7.x, OpenUNIX and OpenServer 6. - case `/bin/uname -X | grep "^Machine"` in - *486*) UNAME_MACHINE=i486 ;; - *Pentium) UNAME_MACHINE=i586 ;; - *Pent*|*Celeron) UNAME_MACHINE=i686 ;; - esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit ;; - i*86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ - && UNAME_MACHINE=i686 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ - && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit ;; - pc:*:*:*) - # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i586. - # Note: whatever this is, it MUST be the same as what config.sub - # prints for the "djgpp" host, or else GDB configury will decide that - # this is a cross-build. - echo i586-pc-msdosdjgpp - exit ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit ;; - mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit ;; - M68*:*:R3V[5678]*:*) - test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4; exit; } ;; - NCR*:*:4.2:* | MPRAS*:*:4.2:*) - OS_REL='.3' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit ;; - rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit ;; - i*86:VOS:*:*) - # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos - exit ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit ;; - BePC:Haiku:*:*) # Haiku running on Intel PC compatible. - echo i586-pc-haiku - exit ;; - x86_64:Haiku:*:*) - echo x86_64-unknown-haiku - exit ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit ;; - SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} - exit ;; - SX-7:SUPER-UX:*:*) - echo sx7-nec-superux${UNAME_RELEASE} - exit ;; - SX-8:SUPER-UX:*:*) - echo sx8-nec-superux${UNAME_RELEASE} - exit ;; - SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux${UNAME_RELEASE} - exit ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - eval $set_cc_for_build - if test "$UNAME_PROCESSOR" = unknown ; then - UNAME_PROCESSOR=powerpc - fi - if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - case $UNAME_PROCESSOR in - i386) UNAME_PROCESSOR=x86_64 ;; - powerpc) UNAME_PROCESSOR=powerpc64 ;; - esac - fi - fi - elif test "$UNAME_PROCESSOR" = i386 ; then - # Avoid executing cc on OS X 10.9, as it ships with a stub - # that puts up a graphical alert prompting to install - # developer tools. Any system running Mac OS X 10.7 or - # later (Darwin 11 and later) is required to have a 64-bit - # processor. This is not true of the ARM version of Darwin - # that Apple uses in portable devices. - UNAME_PROCESSOR=x86_64 - fi - 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 ;; - NEO-?:NONSTOP_KERNEL:*:*) - echo neo-tandem-nsk${UNAME_RELEASE} - exit ;; - NSE-*:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} - exit ;; - NSR-?:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} - exit ;; - *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit ;; - DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit ;; - *:Plan9:*:*) - # "uname -m" is not consistent, so use $cputype instead. 386 - # is converted to i386 for consistency with other x86 - # operating systems. - if test "$cputype" = "386"; then - UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" - fi - echo ${UNAME_MACHINE}-unknown-plan9 - exit ;; - *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit ;; - *:TENEX:*:*) - echo pdp10-unknown-tenex - exit ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit ;; - *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit ;; - *:ITS:*:*) - echo pdp10-unknown-its - exit ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit ;; - *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit ;; - *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in - A*) echo alpha-dec-vms ; exit ;; - I*) echo ia64-dec-vms ; exit ;; - V*) echo vax-dec-vms ; exit ;; - esac ;; - *:XENIX:*:SysV) - echo i386-pc-xenix - exit ;; - i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' - exit ;; - i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos - exit ;; - i*86:AROS:*:*) - echo ${UNAME_MACHINE}-pc-aros - exit ;; - x86_64:VMkernel:*:*) - echo ${UNAME_MACHINE}-unknown-esx - exit ;; -esac - -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: diff --git a/config.h.in b/config.h.in deleted file mode 100644 index 408e256..0000000 --- a/config.h.in +++ /dev/null @@ -1,327 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define if building universal (internal helper macro) */ -#undef AC_APPLE_UNIVERSAL_BUILD - -/* maximum keyfile size (in KiB) */ -#undef DEFAULT_KEYFILE_SIZE_MAXKB - -/* cipher for loop-AES mode */ -#undef DEFAULT_LOOPAES_CIPHER - -/* key length in bits for loop-AES mode */ -#undef DEFAULT_LOOPAES_KEYBITS - -/* cipher for LUKS1 */ -#undef DEFAULT_LUKS1_CIPHER - -/* hash function for LUKS1 header */ -#undef DEFAULT_LUKS1_HASH - -/* PBKDF2 iteration time for LUKS1 (in ms) */ -#undef DEFAULT_LUKS1_ITER_TIME - -/* key length in bits for LUKS1 */ -#undef DEFAULT_LUKS1_KEYBITS - -/* cipher mode for LUKS1 */ -#undef DEFAULT_LUKS1_MODE - -/* maximum keyfile size (in characters) */ -#undef DEFAULT_PASSPHRASE_SIZE_MAX - -/* cipher for plain mode */ -#undef DEFAULT_PLAIN_CIPHER - -/* password hashing function for plain mode */ -#undef DEFAULT_PLAIN_HASH - -/* key length in bits for plain mode */ -#undef DEFAULT_PLAIN_KEYBITS - -/* cipher mode for plain mode */ -#undef DEFAULT_PLAIN_MODE - -/* default RNG type for key generator */ -#undef DEFAULT_RNG - -/* data block size for verity mode */ -#undef DEFAULT_VERITY_DATA_BLOCK - -/* hash function for verity mode */ -#undef DEFAULT_VERITY_HASH - -/* hash block size for verity mode */ -#undef DEFAULT_VERITY_HASH_BLOCK - -/* salt size for verity mode */ -#undef DEFAULT_VERITY_SALT_SIZE - -/* Enable using of kernel userspace crypto */ -#undef ENABLE_AF_ALG - -/* Enable FIPS mode restrictions */ -#undef ENABLE_FIPS - -/* Define to 1 if translation of program messages to the user's native - language is requested. */ -#undef ENABLE_NLS - -/* Enable password quality checking */ -#undef ENABLE_PWQUALITY - -/* Requested gcrypt version */ -#undef GCRYPT_REQ_VERSION - -/* Define to 1 if you have the header file. */ -#undef HAVE_BYTESWAP_H - -/* 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 `clock_gettime' function. */ -#undef HAVE_CLOCK_GETTIME - -/* Define to 1 if you have the header file. */ -#undef HAVE_CTYPE_H - -/* Define if the GNU dcgettext() function is already present or preinstalled. - */ -#undef HAVE_DCGETTEXT - -/* Define to 1 if you have the declaration of `dm_task_retry_remove', and to 0 - if you don't. */ -#undef HAVE_DECL_DM_TASK_RETRY_REMOVE - -/* Define to 1 if you have the declaration of `dm_task_secure_data', and to 0 - if you don't. */ -#undef HAVE_DECL_DM_TASK_SECURE_DATA - -/* Define to 1 if you have the declaration of - `DM_UDEV_DISABLE_DISK_RULES_FLAG', and to 0 if you don't. */ -#undef HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG - -/* Define to 1 if you have the declaration of `NSS_GetVersion', and to 0 if - you don't. */ -#undef HAVE_DECL_NSS_GETVERSION - -/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you - don't. */ -#undef HAVE_DECL_STRERROR_R - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -#undef HAVE_DIRENT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_ENDIAN_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_FCNTL_H - -/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ -#undef HAVE_FSEEKO - -/* Define if the GNU gettext() function is already present or preinstalled. */ -#undef HAVE_GETTEXT - -/* 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 `devmapper' library (-ldevmapper). */ -#undef HAVE_LIBDEVMAPPER - -/* Define to 1 if you have the `gcrypt' library (-lgcrypt). */ -#undef HAVE_LIBGCRYPT - -/* Define to 1 if you have the `nettle' library (-lnettle). */ -#undef HAVE_LIBNETTLE - -/* Define to 1 if you have the `popt' library (-lpopt). */ -#undef HAVE_LIBPOPT - -/* Define to 1 if you have the `selinux' library (-lselinux). */ -#undef HAVE_LIBSELINUX - -/* Define to 1 if you have the `sepol' library (-lsepol). */ -#undef HAVE_LIBSEPOL - -/* Define to 1 if you have the `uuid' library (-luuid). */ -#undef HAVE_LIBUUID - -/* Define to 1 if you have the header file. */ -#undef HAVE_LINUX_IF_ALG_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_LOCALE_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, and it defines `DIR'. */ -#undef HAVE_NDIR_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NETTLE_SHA_H - -/* Define to 1 if you have the `posix_memalign' function. */ -#undef HAVE_POSIX_MEMALIGN - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the `strerror_r' function. */ -#undef HAVE_STRERROR_R - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -#undef HAVE_SYS_DIR_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_IOCTL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_MMAN_H - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -#undef HAVE_SYS_NDIR_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_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 have the header file. */ -#undef HAVE_UUID_UUID_H - -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#undef LT_OBJDIR - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#undef PACKAGE_URL - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if strerror_r returns char *. */ -#undef STRERROR_R_CHAR_P - -/* Use internal PBKDF2 */ -#undef USE_INTERNAL_PBKDF2 - -/* Enable extensions on AIX 3, Interix. */ -#ifndef _ALL_SOURCE -# undef _ALL_SOURCE -#endif -/* Enable GNU extensions on systems that have them. */ -#ifndef _GNU_SOURCE -# undef _GNU_SOURCE -#endif -/* Enable threading extensions on Solaris. */ -#ifndef _POSIX_PTHREAD_SEMANTICS -# undef _POSIX_PTHREAD_SEMANTICS -#endif -/* Enable extensions on HP NonStop. */ -#ifndef _TANDEM_SOURCE -# undef _TANDEM_SOURCE -#endif -/* Enable general extensions on Solaris. */ -#ifndef __EXTENSIONS__ -# undef __EXTENSIONS__ -#endif - - -/* Try to use udev synchronisation? */ -#undef USE_UDEV - -/* Version number of package */ -#undef VERSION - -/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most - significant byte first (like Motorola and SPARC, unlike Intel). */ -#if defined AC_APPLE_UNIVERSAL_BUILD -# if defined __BIG_ENDIAN__ -# define WORDS_BIGENDIAN 1 -# endif -#else -# ifndef WORDS_BIGENDIAN -# undef WORDS_BIGENDIAN -# endif -#endif - -/* Enable large inode numbers on Mac OS X 10.5. */ -#ifndef _DARWIN_USE_64_BIT_INODE -# define _DARWIN_USE_64_BIT_INODE 1 -#endif - -/* Number of bits in a file offset, on hosts where this is settable. */ -#undef _FILE_OFFSET_BITS - -/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ -#undef _LARGEFILE_SOURCE - -/* Define for large files, on AIX-style hosts. */ -#undef _LARGE_FILES - -/* Define to 1 if on MINIX. */ -#undef _MINIX - -/* Define to 2 if the system does not provide POSIX.1 features except with - this defined. */ -#undef _POSIX_1_SOURCE - -/* Define to 1 if you need to in order for `stat' and other things to work. */ -#undef _POSIX_SOURCE - -/* Define to empty if `const' does not conform to ANSI C. */ -#undef const - -/* Define to `long int' if does not define. */ -#undef off_t diff --git a/config.rpath b/config.rpath deleted file mode 100755 index c492a93..0000000 --- a/config.rpath +++ /dev/null @@ -1,614 +0,0 @@ -#! /bin/sh -# Output a system dependent set of variables, describing how to set the -# run time search path of shared libraries in an executable. -# -# Copyright 1996-2006 Free Software Foundation, Inc. -# Taken from GNU libtool, 2001 -# Originally by Gordon Matzigkeit , 1996 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. -# -# The first argument passed to this file is the canonical host specification, -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld -# should be set by the caller. -# -# The set of defined variables is at the end of this script. - -# Known limitations: -# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer -# than 256 bytes, otherwise the compiler driver will dump core. The only -# known workaround is to choose shorter directory names for the build -# directory and/or the installation directory. - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -shrext=.so - -host="$1" -host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - -# Code taken from libtool.m4's _LT_CC_BASENAME. - -for cc_temp in $CC""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` - -# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. - -wl= -if test "$GCC" = yes; then - wl='-Wl,' -else - case "$host_os" in - aix*) - wl='-Wl,' - ;; - darwin*) - case $cc_basename in - xlc*) - wl='-Wl,' - ;; - esac - ;; - mingw* | pw32* | os2*) - ;; - hpux9* | hpux10* | hpux11*) - wl='-Wl,' - ;; - irix5* | irix6* | nonstopux*) - wl='-Wl,' - ;; - newsos6) - ;; - linux*) - case $cc_basename in - icc* | ecc*) - wl='-Wl,' - ;; - pgcc | pgf77 | pgf90) - wl='-Wl,' - ;; - ccc*) - wl='-Wl,' - ;; - como) - wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - wl='-Wl,' - ;; - esac - ;; - esac - ;; - osf3* | osf4* | osf5*) - wl='-Wl,' - ;; - sco3.2v5*) - ;; - solaris*) - wl='-Wl,' - ;; - sunos4*) - wl='-Qoption ld ' - ;; - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - wl='-Wl,' - ;; - sysv4*MP*) - ;; - unicos*) - wl='-Wl,' - ;; - uts4*) - ;; - esac -fi - -# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. - -hardcode_libdir_flag_spec= -hardcode_libdir_separator= -hardcode_direct=no -hardcode_minus_L=no - -case "$host_os" in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; -esac - -ld_shlibs=yes -if test "$with_gnu_ld" = yes; then - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - # Unlike libtool, we use -rpath here, not --rpath, since the documented - # option of GNU ld is called -rpath, not --rpath. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - case "$host_os" in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - fi - ;; - amigaos*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we cannot use - # them. - ld_shlibs=no - ;; - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - cygwin* | mingw* | pw32*) - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - interix3*) - hardcode_direct=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - linux*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - netbsd*) - ;; - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - else - ld_shlibs=no - fi - ;; - esac - ;; - sunos4*) - hardcode_direct=yes - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - esac - if test "$ld_shlibs" = no; then - hardcode_libdir_flag_spec= - fi -else - case "$host_os" in - aix3*) - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - else - aix_use_runtimelinking=no - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - fi - hardcode_direct=yes - hardcode_libdir_separator=':' - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - hardcode_direct=yes - else - # We have old collect2 - hardcode_direct=unsupported - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - fi - # Begin _LT_AC_SYS_LIBPATH_AIX. - echo 'int main () { return 0; }' > conftest.c - ${CC} ${LDFLAGS} conftest.c -o conftest - aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } -}'` - if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } -}'` - fi - if test -z "$aix_libpath"; then - aix_libpath="/usr/lib:/lib" - fi - rm -f conftest.c conftest - # End _LT_AC_SYS_LIBPATH_AIX. - if test "$aix_use_runtimelinking" = yes; then - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - else - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - fi - fi - ;; - amigaos*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - bsdi[45]*) - ;; - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - libext=lib - ;; - darwin* | rhapsody*) - hardcode_direct=no - if test "$GCC" = yes ; then - : - else - case $cc_basename in - xlc*) - ;; - *) - ld_shlibs=no - ;; - esac - fi - ;; - dgux*) - hardcode_libdir_flag_spec='-L$libdir' - ;; - freebsd1*) - ld_shlibs=no - ;; - freebsd2.2*) - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - ;; - freebsd2*) - hardcode_direct=yes - hardcode_minus_L=yes - ;; - freebsd* | kfreebsd*-gnu | dragonfly*) - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - ;; - hpux9*) - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - hpux10*) - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - hpux11*) - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct=no - ;; - *) - hardcode_direct=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - irix5* | irix6* | nonstopux*) - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - netbsd*) - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - ;; - newsos6) - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - openbsd*) - hardcode_direct=yes - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - else - case "$host_os" in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - ;; - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - osf3*) - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - osf4* | osf5*) - if test "$GCC" = yes; then - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - # Both cc and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; - solaris*) - hardcode_libdir_flag_spec='-R$libdir' - ;; - sunos4*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - ;; - sysv4) - case $host_vendor in - sni) - hardcode_direct=yes # is this really true??? - ;; - siemens) - hardcode_direct=no - ;; - motorola) - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - ;; - sysv4.3*) - ;; - sysv4*MP*) - if test -d /usr/nec; then - ld_shlibs=yes - fi - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) - ;; - sysv5* | sco3.2v5* | sco5v6*) - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - ;; - uts4*) - hardcode_libdir_flag_spec='-L$libdir' - ;; - *) - ld_shlibs=no - ;; - esac -fi - -# Check dynamic linker characteristics -# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. -libname_spec='lib$name' -case "$host_os" in - aix3*) - ;; - aix4* | aix5*) - ;; - amigaos*) - ;; - beos*) - ;; - bsdi[45]*) - ;; - cygwin* | mingw* | pw32*) - shrext=.dll - ;; - darwin* | rhapsody*) - shrext=.dylib - ;; - dgux*) - ;; - freebsd1*) - ;; - kfreebsd*-gnu) - ;; - freebsd* | dragonfly*) - ;; - gnu*) - ;; - hpux9* | hpux10* | hpux11*) - case $host_cpu in - ia64*) - shrext=.so - ;; - hppa*64*) - shrext=.sl - ;; - *) - shrext=.sl - ;; - esac - ;; - interix3*) - ;; - irix5* | irix6* | nonstopux*) - case "$host_os" in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; - *) libsuff= shlibsuff= ;; - esac - ;; - esac - ;; - linux*oldld* | linux*aout* | linux*coff*) - ;; - linux*) - ;; - knetbsd*-gnu) - ;; - netbsd*) - ;; - newsos6) - ;; - nto-qnx*) - ;; - openbsd*) - ;; - os2*) - libname_spec='$name' - shrext=.dll - ;; - osf3* | osf4* | osf5*) - ;; - solaris*) - ;; - sunos4*) - ;; - sysv4 | sysv4.3*) - ;; - sysv4*MP*) - ;; - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - ;; - uts4*) - ;; -esac - -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' -escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` -shlibext=`echo "$shrext" | sed -e 's,^\.,,'` -escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` - -LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that -# program. This Exception is an additional permission under section 7 -# of the GNU General Public License, version 3 ("GPLv3"). - - -# Please send patches with a ChangeLog entry to config-patches@gnu.org. -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS - -Canonicalize a configuration name. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.sub ($timestamp) - -Copyright 1992-2014 Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -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-android* | linux-dietlibc | linux-newlib* | \ - linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ - knetbsd*-gnu* | netbsd*-gnu* | \ - kopensolaris*-gnu* | \ - storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - android-linux) - os=-linux-android - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray | -microblaze*) - os= - basic_machine=$1 - ;; - -bluegene*) - os=-cnk - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco6) - os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5v6*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*178) - os=-lynxos178 - ;; - -lynx*5) - os=-lynxos5 - ;; - -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 \ - | aarch64 | aarch64_be \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arceb \ - | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ - | avr | avr32 \ - | be32 | be64 \ - | bfin \ - | c4x | c8051 | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | epiphany \ - | fido | fr30 | frv \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | hexagon \ - | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ - | k1om \ - | le32 | le64 \ - | lm32 \ - | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64octeon | mips64octeonel \ - | mips64orion | mips64orionel \ - | mips64r5900 | mips64r5900el \ - | mips64vr | mips64vrel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa32r6 | mipsisa32r6el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64r6 | mipsisa64r6el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipsr5900 | mipsr5900el \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | moxie \ - | mt \ - | msp430 \ - | nds32 | nds32le | nds32be \ - | nios | nios2 | nios2eb | nios2el \ - | ns16k | ns32k \ - | open8 | or1k | or1knd | or32 \ - | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle \ - | pyramid \ - | riscv32 | riscv64 \ - | rl78 | rx \ - | score \ - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu \ - | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ - | ubicom32 \ - | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ - | we32k \ - | x86 | xc16x | xstormy16 | xtensa \ - | z8k | z80) - basic_machine=$basic_machine-unknown - ;; - c54x) - basic_machine=tic54x-unknown - ;; - c55x) - basic_machine=tic55x-unknown - ;; - c6x) - basic_machine=tic6x-unknown - ;; - m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) - ;; - ms1) - basic_machine=mt-unknown - ;; - - strongarm | thumb | xscale) - basic_machine=arm-unknown - ;; - xgate) - basic_machine=$basic_machine-unknown - os=-none - ;; - xscaleeb) - basic_machine=armeb-unknown - ;; - - xscaleel) - basic_machine=armel-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-* \ - | aarch64-* | aarch64_be-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* | avr32-* \ - | be32-* | be64-* \ - | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* \ - | c8051-* | 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-* \ - | hexagon-* \ - | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ - | k1om-* \ - | le32-* | le64-* \ - | lm32-* \ - | m32c-* | m32r-* | m32rle-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ - | microblaze-* | microblazeel-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64octeon-* | mips64octeonel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64r5900-* | mips64r5900el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mips64vr5900-* | mips64vr5900el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa32r6-* | mipsisa32r6el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64r6-* | mipsisa64r6el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipsr5900-* | mipsr5900el-* \ - | mipstx39-* | mipstx39el-* \ - | mmix-* \ - | mt-* \ - | msp430-* \ - | nds32-* | nds32le-* | nds32be-* \ - | nios-* | nios2-* | nios2eb-* | nios2el-* \ - | none-* | np1-* | ns16k-* | ns32k-* \ - | open8-* \ - | or1k*-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ - | pyramid-* \ - | rl78-* | romp-* | rs6000-* | rx-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ - | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ - | tahoe-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ - | tile*-* \ - | tron-* \ - | ubicom32-* \ - | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ - | vax-* \ - | we32k-* \ - | x86-* | x86_64-* | xc16x-* | xps100-* \ - | xstormy16-* | xtensa*-* \ - | ymp-* \ - | z8k-* | z80-*) - ;; - # Recognize the basic CPU types without company name, with glob match. - xtensa*) - basic_machine=$basic_machine-unknown - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-unknown - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - abacus) - basic_machine=abacus-unknown - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aros) - basic_machine=i386-pc - os=-aros - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - blackfin) - basic_machine=bfin-unknown - os=-linux - ;; - blackfin-*) - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - bluegene*) - basic_machine=powerpc-ibm - os=-cnk - ;; - c54x-*) - basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c55x-*) - basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c6x-*) - basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - cegcc) - basic_machine=arm-unknown - os=-cegcc - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - craynv) - basic_machine=craynv-cray - os=-unicosmp - ;; - cr16 | cr16-*) - basic_machine=cr16-unknown - os=-elf - ;; - crds | unos) - basic_machine=m68k-crds - ;; - crisv32 | crisv32-* | etraxfs*) - basic_machine=crisv32-axis - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - crx) - basic_machine=crx-unknown - os=-elf - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dicos) - basic_machine=i686-pc - os=-dicos - ;; - djgpp) - basic_machine=i586-pc - os=-msdosdjgpp - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; - i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - i386-vsta | vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m68knommu) - basic_machine=m68k-unknown - os=-linux - ;; - m68knommu-*) - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - microblaze*) - basic_machine=microblaze-xilinx - ;; - mingw64) - basic_machine=x86_64-pc - os=-mingw64 - ;; - mingw32) - basic_machine=i686-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 - ;; - moxiebox) - basic_machine=moxie-unknown - os=-moxiebox - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` - ;; - msys) - basic_machine=i686-pc - os=-msys - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - nacl) - basic_machine=le32-unknown - os=-nacl - ;; - 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 - ;; - neo-tandem) - basic_machine=neo-tandem - ;; - nse-tandem) - basic_machine=nse-tandem - ;; - 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 | ppcbe) basic_machine=powerpc-unknown - ;; - ppc-* | ppcbe-*) - 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 | rdos64) - basic_machine=x86_64-pc - os=-rdos - ;; - rdos32) - 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 - ;; - strongarm-* | thumb-*) - basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - 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 - ;; - tile*) - basic_machine=$basic_machine-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 - ;; - xscale-* | xscalee[bl]-*) - basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - z80-*-coff) - basic_machine=z80-unknown - os=-sim - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - mmix) - basic_machine=mmix-knuth - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown - ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -auroraux) - os=-auroraux - ;; - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ - | -sym* | -kopensolaris* | -plan9* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* | -aros* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ - | -bitrig* | -openbsd* | -solidbsd* \ - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* | -cegcc* \ - | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ - | -linux-newlib* | -linux-musl* | -linux-uclibc* \ - | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) - # 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 - ;; - -zvmoe) - os=-zvmoe - ;; - -dicos*) - os=-dicos - ;; - -nacl*) - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - score-*) - os=-elf - ;; - spu-*) - os=-elf - ;; - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - c4x-* | tic4x-*) - os=-coff - ;; - c8051-*) - os=-elf - ;; - hexagon-*) - os=-elf - ;; - tic54x-*) - os=-coff - ;; - tic55x-*) - os=-coff - ;; - tic6x-*) - 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 - ;; - m68*-cisco) - os=-aout - ;; - mep-*) - os=-elf - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - or32-*) - os=-coff - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-haiku) - os=-haiku - ;; - *-ibm) - os=-aix - ;; - *-knuth) - os=-mmixware - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f30[01]-fujitsu | f700-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -cnk*|-aix*) - vendor=ibm - ;; - -beos*) - vendor=be - ;; - -hpux*) - vendor=hp - ;; - -mpeix*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -os400*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -tpf*) - vendor=ibm - ;; - -vxsim* | -vxworks* | -windiss*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - -hms*) - vendor=hitachi - ;; - -mpw* | -macos*) - vendor=apple - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - vendor=atari - ;; - -vos*) - vendor=stratus - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os -exit - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/configure b/configure deleted file mode 100755 index 0067979..0000000 --- a/configure +++ /dev/null @@ -1,20843 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for cryptsetup 1.6.7. -# -# -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. -# -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Use a proper internal environment variable to ensure we don't fall - # into an infinite loop, continuously re-executing ourselves. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then - _as_can_reexec=no; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 - fi - # We don't want this to propagate to other subprocesses. - { _as_can_reexec=; unset _as_can_reexec;} -if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi -" - as_required="as_fn_return () { (exit \$1); } -as_fn_success () { as_fn_return 0; } -as_fn_failure () { as_fn_return 1; } -as_fn_ret_success () { return 0; } -as_fn_ret_failure () { return 1; } - -exitcode=0 -as_fn_success || { exitcode=1; echo as_fn_success failed.; } -as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } -as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } -as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : - -else - exitcode=1; echo positional parameters were not saved. -fi -test x\$exitcode = x0 || exit 1 -test -x / || exit 1" - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1 - - test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO - PATH=/empty FPATH=/empty; export PATH FPATH - test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" - if (eval "$as_required") 2>/dev/null; then : - as_have_required=yes -else - as_have_required=no -fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : - -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_found=false -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - as_found=: - case $as_dir in #( - /*) - for as_base in sh bash ksh sh5; do - # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : - CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : - break 2 -fi -fi - done;; - esac - as_found=false -done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } -IFS=$as_save_IFS - - - if test "x$CONFIG_SHELL" != x; then : - export CONFIG_SHELL - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 -fi - - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." - else - $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, -$0: including any error possibly output before this -$0: message. Then install a modern shell, or manually run -$0: the script under such a shell if you do have one." - fi - exit 1 -fi -fi -fi -SHELL=${CONFIG_SHELL-/bin/sh} -export SHELL -# Unset more variables known to interfere with behavior of common tools. -CLICOLOR_FORCE= GREP_OPTIONS= -unset CLICOLOR_FORCE GREP_OPTIONS - -## --------------------- ## -## M4sh Shell Functions. ## -## --------------------- ## -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -# as_fn_append VAR VALUE -# ---------------------- -# Append the text in VALUE to the end of the definition contained in VAR. Take -# advantage of any shell optimizations that allow amortized linear growth over -# repeated appends, instead of the typical quadratic growth present in naive -# implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# Perform arithmetic evaluation on the ARGs, and store the result in the -# global $as_val. Take advantage of shells that can avoid forks. The arguments -# must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - - - as_lineno_1=$LINENO as_lineno_1a=$LINENO - as_lineno_2=$LINENO as_lineno_2a=$LINENO - eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && - test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - - # If we had to re-execute with $CONFIG_SHELL, we're ensured to have - # already done that, so ensure we don't try to do so again and fall - # in an infinite loop. This has already happened in practice. - _as_can_reexec=no; export _as_can_reexec - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -SHELL=${CONFIG_SHELL-/bin/sh} - - -test -n "$DJDIR" || exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= - -# Identity of this package. -PACKAGE_NAME='cryptsetup' -PACKAGE_TARNAME='cryptsetup' -PACKAGE_VERSION='1.6.7' -PACKAGE_STRING='cryptsetup 1.6.7' -PACKAGE_BUGREPORT='' -PACKAGE_URL='' - -ac_unique_file="src/cryptsetup.c" -ac_default_prefix=/usr -# 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='am__EXEEXT_FALSE -am__EXEEXT_TRUE -LTLIBOBJS -LIBOBJS -PYTHON_CRYPTSETUP_FALSE -PYTHON_CRYPTSETUP_TRUE -PYTHON_LIBS -PYTHON_INCLUDES -pkgpyexecdir -pyexecdir -pkgpythondir -pythondir -PYTHON_PLATFORM -PYTHON_EXEC_PREFIX -PYTHON_PREFIX -PYTHON_VERSION -PYTHON -LIBCRYPTSETUP_VERSION_INFO -LIBCRYPTSETUP_VERSION -CRYPTO_STATIC_LIBS -CRYPTO_LIBS -CRYPTO_CFLAGS -PWQUALITY_STATIC_LIBS -DEVMAPPER_STATIC_LIBS -DEVMAPPER_STATIC_CFLAGS -CRYPTO_INTERNAL_PBKDF2_FALSE -CRYPTO_INTERNAL_PBKDF2_TRUE -CRYPTO_BACKEND_NETTLE_FALSE -CRYPTO_BACKEND_NETTLE_TRUE -CRYPTO_BACKEND_KERNEL_FALSE -CRYPTO_BACKEND_KERNEL_TRUE -CRYPTO_BACKEND_NSS_FALSE -CRYPTO_BACKEND_NSS_TRUE -CRYPTO_BACKEND_OPENSSL_FALSE -CRYPTO_BACKEND_OPENSSL_TRUE -CRYPTO_BACKEND_GCRYPT_FALSE -CRYPTO_BACKEND_GCRYPT_TRUE -NSS_LIBS -NSS_CFLAGS -OPENSSL_STATIC_LIBS -OPENSSL_STATIC_CFLAGS -OPENSSL_LIBS -OPENSSL_CFLAGS -LIBGCRYPT_LIBS -LIBGCRYPT_CFLAGS -LIBGCRYPT_CONFIG -DEVMAPPER_LIBS -DEVMAPPER_CFLAGS -REENCRYPT_FALSE -REENCRYPT_TRUE -VERITYSETUP_FALSE -VERITYSETUP_TRUE -STATIC_TOOLS_FALSE -STATIC_TOOLS_TRUE -PWQUALITY_LIBS -PWQUALITY_CFLAGS -POPT_LIBS -POSUB -LTLIBINTL -LIBINTL -INTLLIBS -LTLIBICONV -LIBICONV -INTL_MACOSX_LIBS -MSGMERGE -XGETTEXT_015 -XGETTEXT -GMSGFMT_015 -MSGFMT_015 -GMSGFMT -MSGFMT -USE_NLS -UUID_LIBS -PKG_CONFIG_LIBDIR -PKG_CONFIG_PATH -PKG_CONFIG -OTOOL64 -OTOOL -LIPO -NMEDIT -DSYMUTIL -MANIFEST_TOOL -RANLIB -ac_ct_AR -AR -DLLTOOL -OBJDUMP -LN_S -NM -ac_ct_DUMPBIN -DUMPBIN -LD -FGREP -SED -LIBTOOL -EGREP -GREP -CPP -am__fastdepCC_FALSE -am__fastdepCC_TRUE -CCDEPMODE -am__nodep -AMDEPBACKSLASH -AMDEP_FALSE -AMDEP_TRUE -am__quote -am__include -DEPDIR -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build -am__untar -am__tar -AMTAR -am__leading_dot -SET_MAKE -AWK -mkdir_p -MKDIR_P -INSTALL_STRIP_PROGRAM -STRIP -install_sh -MAKEINFO -AUTOHEADER -AUTOMAKE -AUTOCONF -ACLOCAL -VERSION -PACKAGE -CYGPATH_W -am__isrc -INSTALL_DATA -INSTALL_SCRIPT -INSTALL_PROGRAM -AM_BACKSLASH -AM_DEFAULT_VERBOSITY -AM_DEFAULT_V -AM_V -target_alias -host_alias -build_alias -LIBS -ECHO_T -ECHO_N -ECHO_C -DEFS -mandir -localedir -libdir -psdir -pdfdir -dvidir -htmldir -infodir -docdir -oldincludedir -includedir -localstatedir -sharedstatedir -sysconfdir -datadir -datarootdir -libexecdir -sbindir -bindir -program_transform_name -prefix -exec_prefix -PACKAGE_URL -PACKAGE_BUGREPORT -PACKAGE_STRING -PACKAGE_VERSION -PACKAGE_TARNAME -PACKAGE_NAME -PATH_SEPARATOR -SHELL' -ac_subst_files='' -ac_user_opts=' -enable_option_checking -enable_silent_rules -enable_dependency_tracking -enable_static -enable_shared -with_pic -enable_fast_install -with_gnu_ld -with_sysroot -enable_libtool_lock -enable_largefile -enable_nls -enable_rpath -with_libiconv_prefix -with_libintl_prefix -enable_fips -enable_pwquality -enable_static_cryptsetup -enable_veritysetup -enable_cryptsetup_reencrypt -enable_selinux -enable_udev -with_crypto_backend -enable_kernel_crypto -enable_gcrypt_pbkdf2 -with_libgcrypt_prefix -enable_dev_random -enable_python -with_python_version -with_plain_hash -with_plain_cipher -with_plain_mode -with_plain_keybits -with_luks1_hash -with_luks1_cipher -with_luks1_mode -with_luks1_keybits -with_luks1_iter_time -with_loopaes_cipher -with_loopaes_keybits -with_keyfile_size_maxkb -with_passphrase_size_max -with_verity_hash -with_verity_data_block -with_verity_hash_block -with_verity_salt_size -' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -CPP -PKG_CONFIG -PKG_CONFIG_PATH -PKG_CONFIG_LIBDIR -PWQUALITY_CFLAGS -PWQUALITY_LIBS -DEVMAPPER_CFLAGS -DEVMAPPER_LIBS -OPENSSL_CFLAGS -OPENSSL_LIBS -OPENSSL_STATIC_CFLAGS -OPENSSL_STATIC_LIBS -NSS_CFLAGS -NSS_LIBS -DEVMAPPER_STATIC_CFLAGS -DEVMAPPER_STATIC_LIBS -PYTHON' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -ac_unrecognized_opts= -ac_unrecognized_sep= -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *=) ac_optarg= ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=\$ac_optarg ;; - - -without-* | --without-*) - ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - case $ac_envvar in #( - '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; - esac - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - as_fn_error $? "missing argument to $ac_option" -fi - -if test -n "$ac_unrecognized_opts"; then - case $enable_option_checking in - no) ;; - fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; - esac -fi - -# Check all directory arguments for consistency. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - # Remove trailing slashes. - case $ac_val in - */ ) - ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` - eval $ac_var=\$ac_val;; - esac - # Be sure to have absolute directory names. - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - as_fn_error $? "working directory cannot be determined" -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - as_fn_error $? "pwd does not report name of working directory" - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$as_myself" || -$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_myself" : 'X\(//\)[^/]' \| \ - X"$as_myself" : 'X\(//\)$' \| \ - X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures cryptsetup 1.6.7 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/cryptsetup] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of cryptsetup 1.6.7:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-option-checking ignore unrecognized --enable/--with options - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-silent-rules less verbose build output (undo: "make V=1") - --disable-silent-rules verbose build output (undo: "make V=0") - --enable-dependency-tracking - do not reject slow dependency extractors - --disable-dependency-tracking - speeds up one-time build - --enable-static[=PKGS] build static libraries [default=no] - --enable-shared[=PKGS] build shared 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 - --disable-nls do not use Native Language Support - --disable-rpath do not hardcode runtime library paths - --enable-fips enable FIPS mode restrictions - --enable-pwquality enable password quality checking - --enable-static-cryptsetup - enable build of static cryptsetup binary - --disable-veritysetup disable veritysetup support - --enable-cryptsetup-reencrypt - enable cryptsetup-reencrypt tool - --disable-selinux disable selinux support [default=auto] - --disable-udev disable udev support - --disable-kernel_crypto disable kernel userspace crypto (no benchmark and - tcrypt) - --enable-gcrypt-pbkdf2 force enable internal gcrypt PBKDF2 - --enable-dev-random use blocking /dev/random by default for key - generator (otherwise use /dev/urandom) - --enable-python enable Python bindings - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use - both] - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-sysroot=DIR Search for dependent libraries within DIR - (or the compiler's sysroot if not specified). - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib - --without-libiconv-prefix don't search for libiconv in includedir and libdir - --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib - --without-libintl-prefix don't search for libintl in includedir and libdir - --with-crypto_backend=BACKEND - crypto backend (gcrypt/openssl/nss/kernel/nettle) - [gcrypt] - --with-libgcrypt-prefix=PFX - prefix where LIBGCRYPT is installed (optional) - --with-python_version=VERSION - required Python version [2.6] - --with-plain-hash default password hashing function for plain mode - [ripemd160] - --with-plain-cipher default cipher for plain mode [aes] - --with-plain-mode default cipher mode for plain mode - [cbc-essiv:sha256] - --with-plain-keybits default key length in bits for plain mode [256] - --with-luks1-hash default hash function for LUKS1 header [sha1] - --with-luks1-cipher default cipher for LUKS1 [aes] - --with-luks1-mode default cipher mode for LUKS1 [xts-plain64] - --with-luks1-keybits default key length in bits for LUKS1 [256] - --with-luks1-iter-time default PBKDF2 iteration time for LUKS1 (in ms) - [1000] - --with-loopaes-cipher default cipher for loop-AES mode [aes] - --with-loopaes-keybits default key length in bits for loop-AES mode [256] - --with-keyfile-size-maxkb - default maximum keyfile size (in KiB) [8192] - --with-passphrase-size-max - default maximum keyfile size (in characters) [512] - --with-verity-hash default hash function for verity mode [sha256] - --with-verity-data-block - default data block size for verity mode [4096] - --with-verity-hash-block - default hash block size for verity mode [4096] - --with-verity-salt-size default salt size for verity mode [32] - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CPP C preprocessor - PKG_CONFIG path to pkg-config utility - PKG_CONFIG_PATH - directories to add to pkg-config's search path - PKG_CONFIG_LIBDIR - path overriding pkg-config's built-in search path - PWQUALITY_CFLAGS - C compiler flags for PWQUALITY, overriding pkg-config - PWQUALITY_LIBS - linker flags for PWQUALITY, overriding pkg-config - DEVMAPPER_CFLAGS - C compiler flags for DEVMAPPER, overriding pkg-config - DEVMAPPER_LIBS - linker flags for DEVMAPPER, overriding pkg-config - OPENSSL_CFLAGS - C compiler flags for OPENSSL, overriding pkg-config - OPENSSL_LIBS - linker flags for OPENSSL, overriding pkg-config - OPENSSL_STATIC_CFLAGS - C compiler flags for OPENSSL_STATIC, overriding pkg-config - OPENSSL_STATIC_LIBS - linker flags for OPENSSL_STATIC, overriding pkg-config - NSS_CFLAGS C compiler flags for NSS, overriding pkg-config - NSS_LIBS linker flags for NSS, overriding pkg-config - DEVMAPPER_STATIC_CFLAGS - C compiler flags for DEVMAPPER_STATIC, overriding pkg-config - DEVMAPPER_STATIC_LIBS - linker flags for DEVMAPPER_STATIC, overriding pkg-config - PYTHON the Python interpreter - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -Report bugs to the package provider. -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || - { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || - continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -cryptsetup configure 1.6.7 -generated by GNU Autoconf 2.69 - -Copyright (C) 2012 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi - -## ------------------------ ## -## Autoconf initialization. ## -## ------------------------ ## - -# ac_fn_c_try_compile LINENO -# -------------------------- -# Try to compile conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_compile () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext - if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_compile - -# ac_fn_c_try_cpp LINENO -# ---------------------- -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_cpp () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_cpp - -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled using -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_c_check_header_mongrel () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval \${$3+:} false; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 -$as_echo_n "checking $2 usability... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_header_compiler=yes -else - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 -$as_echo_n "checking $2 presence... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <$2> -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - ac_header_preproc=yes -else - ac_header_preproc=no -fi -rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( - yes:no: ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; - no:yes:* ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; -esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=\$ac_header_compiler" -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_mongrel - -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_run - -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists and can be compiled using the include files in -# INCLUDES, setting the cache variable VAR accordingly. -ac_fn_c_check_header_compile () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_compile - -# ac_fn_c_try_link LINENO -# ----------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_link - -# ac_fn_c_check_func LINENO FUNC VAR -# ---------------------------------- -# Tests whether FUNC exists, setting the cache variable VAR accordingly -ac_fn_c_check_func () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Define $2 to an innocuous variant, in case declares $2. - For example, HP-UX 11i declares gettimeofday. */ -#define $2 innocuous_$2 - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $2 - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $2 (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$2 || defined __stub___$2 -choke me -#endif - -int -main () -{ -return $2 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_func - -# ac_fn_c_check_type LINENO TYPE VAR INCLUDES -# ------------------------------------------- -# Tests whether TYPE exists after having included INCLUDES, setting cache -# variable VAR accordingly. -ac_fn_c_check_type () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=no" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof ($2)) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof (($2))) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - eval "$3=yes" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_type - -# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES -# --------------------------------------------- -# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR -# accordingly. -ac_fn_c_check_decl () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - as_decl_name=`echo $2|sed 's/ *(.*//'` - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 -$as_echo_n "checking whether $as_decl_name is declared... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -#ifndef $as_decl_name -#ifdef __cplusplus - (void) $as_decl_use; -#else - (void) $as_decl_name; -#endif -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_decl -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 cryptsetup $as_me 1.6.7, which was -generated by GNU Autoconf 2.69. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" - done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; - 2) - as_fn_append ac_configure_args1 " '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - as_fn_append ac_configure_args " '$ac_arg'" - ;; - esac - done -done -{ ac_configure_args0=; unset ac_configure_args0;} -{ ac_configure_args1=; unset ac_configure_args1;} - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - $as_echo "## ---------------- ## -## Cache variables. ## -## ---------------- ##" - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - $as_echo "## ----------------- ## -## Output variables. ## -## ----------------- ##" - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## -## File substitutions. ## -## ------------------- ##" - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - $as_echo "## ----------- ## -## confdefs.h. ## -## ----------- ##" - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -$as_echo "/* confdefs.h */" > confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE -if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac -elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site -else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site -fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" -do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special files - # actually), so we avoid doing that. DJGPP emulates it as a regular file. - if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -LIBCRYPTSETUP_VERSION=$(echo $PACKAGE_VERSION | cut -f1 -d-) -LIBCRYPTSETUP_VERSION_INFO=11:0:7 - -# Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : - enableval=$enable_silent_rules; -fi - -case $enable_silent_rules in # ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=0;; -esac -am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } -if test $am_cv_make_support_nested_variables = yes; then - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AM_BACKSLASH='\' - - - - -ac_config_headers="$ac_config_headers config.h:config.h.in" - - -# We do not want to run test in parallel. Really. -# http://lists.gnu.org/archive/html/automake/2013-01/msg00060.html - -# For old automake use this -#AM_INIT_AUTOMAKE(dist-xz) -am__api_version='1.14' - -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - - done -IFS=$as_save_IFS - -rm -rf conftest.one conftest.two conftest.dir - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken - alias in your environment" "$LINENO" 5 - fi - if test "$2" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$2" = conftest.file - ) -then - # Ok. - : -else - as_fn_error $? "newly created file is older than distributed files! -Check your system clock" "$LINENO" 5 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi - -rm -f conftest.file - -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. -# By default was `s,x,x', remove it if useless. -ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` - -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` - -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} -fi - -if test x"${install_sh}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi - -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } -if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done - done -IFS=$as_save_IFS - -fi - - test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE='cryptsetup' - VERSION='1.6.7' - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -mkdir_p='$(MKDIR_P)' - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AMTAR='$${TAR-tar}' - - -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar pax cpio none' - -am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' - - - - - - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 - fi -fi - - -if test "x$prefix" = "xNONE"; then - sysconfdir=/etc -fi - - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 -$as_echo_n "checking for style of include used by $am_make... " >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 -$as_echo "$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then : - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } - -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` - -# The possible output files: -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" - -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { { ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } -ac_exeext=$ac_cv_exeext - -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } -if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -FILE *f = fopen ("conftest.out", "w"); - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -ac_clean_files="$ac_clean_files conftest.out" -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -if test "$cross_compiling" != yes; then - { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if { ac_try='./conftest$ac_cv_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } - fi - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } -if ${am_cv_prog_cc_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -$as_echo "$am_cv_prog_cc_c_o" >&6; } -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -depcc="$CC" am_compiler_list= - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" -if test "x$ac_cv_header_minix_config_h" = xyes; then : - MINIX=yes -else - MINIX= -fi - - - if test "$MINIX" = yes; then - -$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h - - -$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h - - -$as_echo "#define _MINIX 1" >>confdefs.h - - fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if ${ac_cv_safe_to_define___extensions__+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_safe_to_define___extensions__=yes -else - ac_cv_safe_to_define___extensions__=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 -$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } - test $ac_cv_safe_to_define___extensions__ = yes && - $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h - - $as_echo "#define _ALL_SOURCE 1" >>confdefs.h - - $as_echo "#define _GNU_SOURCE 1" >>confdefs.h - - $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h - - $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } - -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } -if ${am_cv_prog_cc_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -$as_echo "$am_cv_prog_cc_c_o" >&6; } -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -depcc="$CC" am_compiler_list= - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -# 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=no -fi - - - - - - - - - -case `pwd` in - *\ * | *\ *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; -esac - - - -macro_version='2.4.2' -macro_revision='1.3337' - - - - - - - - - - - - - -ltmain="$ac_aux_dir/ltmain.sh" - -# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -$as_echo_n "checking how to print strings... " >&6; } -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "" -} - -case "$ECHO" in - printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -$as_echo "printf" >&6; } ;; - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -$as_echo "print -r" >&6; } ;; - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -$as_echo "cat" >&6; } ;; -esac - - - - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -$as_echo_n "checking for fgrep... " >&6; } -if ${ac_cv_path_FGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 - then ac_cv_path_FGREP="$GREP -F" - else - if test -z "$FGREP"; then - ac_path_FGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in fgrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_FGREP" || continue -# Check for GNU ac_path_FGREP and select it if it is found. - # Check for GNU $ac_path_FGREP -case `"$ac_path_FGREP" --version 2>&1` in -*GNU*) - ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'FGREP' >> "conftest.nl" - "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_FGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_FGREP="$ac_path_FGREP" - ac_path_FGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_FGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_FGREP"; then - as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_FGREP=$FGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -$as_echo "$ac_cv_path_FGREP" >&6; } - FGREP="$ac_cv_path_FGREP" - - -test -z "$GREP" && GREP=grep - - - - - - - - - - - - - - - - - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : - withval=$with_gnu_ld; test "$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. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } -fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -$as_echo "$LD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 -$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } -if ${lt_cv_path_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - 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 - : ${lt_cv_path_NM=no} -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 -$as_echo "$lt_cv_path_NM" >&6; } -if test "$lt_cv_path_NM" != "no"; then - NM="$lt_cv_path_NM" -else - # Didn't find any BSD compatible name lister, look for dumpbin. - if test -n "$DUMPBIN"; then : - # Let the user override the test. - else - if test -n "$ac_tool_prefix"; then - for ac_prog in dumpbin "link -dump" - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DUMPBIN"; then - ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DUMPBIN=$ac_cv_prog_DUMPBIN -if test -n "$DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 -$as_echo "$DUMPBIN" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$DUMPBIN" && break - done -fi -if test -z "$DUMPBIN"; then - ac_ct_DUMPBIN=$DUMPBIN - for ac_prog in dumpbin "link -dump" -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DUMPBIN"; then - ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN -if test -n "$ac_ct_DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 -$as_echo "$ac_ct_DUMPBIN" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_DUMPBIN" && break -done - - if test "x$ac_ct_DUMPBIN" = x; then - DUMPBIN=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DUMPBIN=$ac_ct_DUMPBIN - fi -fi - - case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in - *COFF*) - DUMPBIN="$DUMPBIN -symbols" - ;; - *) - DUMPBIN=: - ;; - esac - fi - - if test "$DUMPBIN" != ":"; then - NM="$DUMPBIN" - fi -fi -test -z "$NM" && NM=nm - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 -$as_echo_n "checking the name lister ($NM) interface... " >&6; } -if ${lt_cv_nm_interface+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_nm_interface="BSD nm" - echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) - (eval "$ac_compile" 2>conftest.err) - cat conftest.err >&5 - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) - cat conftest.err >&5 - (eval echo "\"\$as_me:$LINENO: output\"" >&5) - cat conftest.out >&5 - if $GREP 'External.*some_variable' conftest.out > /dev/null; then - lt_cv_nm_interface="MS dumpbin" - fi - rm -f conftest* -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 -$as_echo "$lt_cv_nm_interface" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -$as_echo_n "checking whether ln -s works... " >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -$as_echo "no, using $LN_S" >&6; } -fi - -# find the maximum length of command line arguments -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } -if ${lt_cv_sys_max_cmd_len+:} false; then : - $as_echo_n "(cached) " >&6 -else - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - mint*) - # On MiNT this can take a long time and run out of memory. - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - 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 - ;; - - os2*) - # The test takes a long time on OS/2. - lt_cv_sys_max_cmd_len=8192 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len" && \ - test undefined != "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - # Make teststring a little bigger before we do anything with it. - # a 1K string should be a reasonable start. - for i in 1 2 3 4 5 6 7 8 ; do - teststring=$teststring$teststring - done - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ - = "X$teststring$teststring"; } >/dev/null 2>&1 && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - # Only check the string length outside the loop. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` - teststring= - # Add a significant safety factor because C++ compilers can tack on - # massive amounts of additional arguments before passing them to the - # linker. It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - -fi - -if test -n $lt_cv_sys_max_cmd_len ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } -fi -max_cmd_len=$lt_cv_sys_max_cmd_len - - - - - - -: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 -$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } -# Try some XSI features -xsi_shell=no -( _lt_dummy="a/b/c" - test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ - = c,a/b,b/c, \ - && eval 'test $(( 1 + 1 )) -eq 2 \ - && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ - && xsi_shell=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 -$as_echo "$xsi_shell" >&6; } - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 -$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } -lt_shell_append=no -( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ - >/dev/null 2>&1 \ - && lt_shell_append=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 -$as_echo "$lt_shell_append" >&6; } - - -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - lt_unset=unset -else - lt_unset=false -fi - - - - - -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - lt_SP2NL='tr \040 \012' - lt_NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - lt_SP2NL='tr \100 \n' - lt_NL2SP='tr \r\n \100\100' - ;; -esac - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 -$as_echo_n "checking how to convert $build file names to $host format... " >&6; } -if ${lt_cv_to_host_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 - ;; - esac - ;; - *-*-cygwin* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin - ;; - esac - ;; - * ) # unhandled hosts (and "normal" native builds) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; -esac - -fi - -to_host_file_cmd=$lt_cv_to_host_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 -$as_echo "$lt_cv_to_host_file_cmd" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 -$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } -if ${lt_cv_to_tool_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - #assume ordinary cross tools, or native build. -lt_cv_to_tool_file_cmd=func_convert_file_noop -case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 - ;; - esac - ;; -esac - -fi - -to_tool_file_cmd=$lt_cv_to_tool_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 -$as_echo "$lt_cv_to_tool_file_cmd" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } -if ${lt_cv_ld_reload_flag+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - if test "$GCC" != yes; then - reload_cmds=false - fi - ;; - 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 - - - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_OBJDUMP="objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP - fi -else - OBJDUMP="$ac_cv_prog_OBJDUMP" -fi - -test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 -$as_echo_n "checking how to recognize dependent libraries... " >&6; } -if ${lt_cv_deplibs_check_method+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# 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. - # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. - if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - # Keep this pattern in sync with the one in func_win32_libid. - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -cegcc*) - # use the weaker test based on 'objdump'. See mingw*. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -haiku*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd* | 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=pass_all - ;; - -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 - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -tpf*) - lt_cv_deplibs_check_method=pass_all - ;; -esac - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } - -file_magic_glob= -want_nocaseglob=no -if test "$build" = "$host"; then - case $host_os in - mingw* | pw32*) - if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then - want_nocaseglob=yes - else - file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` - fi - ;; - esac -fi - -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - - - - - - - - - - - - - - - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_DLLTOOL="dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 -$as_echo_n "checking how to associate runtime and link libraries... " >&6; } -if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_sharedlib_from_linklib_cmd='unknown' - -case $host_os in -cygwin* | mingw* | pw32* | cegcc*) - # two different shell functions defined in ltmain.sh - # decide which to use based on capabilities of $DLLTOOL - case `$DLLTOOL --help 2>&1` in - *--identify-strict*) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib - ;; - *) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback - ;; - esac - ;; -*) - # fallback: assume linklib IS sharedlib - lt_cv_sharedlib_from_linklib_cmd="$ECHO" - ;; -esac - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 -$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO - - - - - - - -if test -n "$ac_tool_prefix"; then - for ac_prog in ar - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AR="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AR" && break - done -fi -if test -z "$AR"; then - ac_ct_AR=$AR - for ac_prog in ar -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_AR="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_AR" && break -done - - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -fi - -: ${AR=ar} -: ${AR_FLAGS=cru} - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 -$as_echo_n "checking for archiver @FILE support... " >&6; } -if ${lt_cv_ar_at_file+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ar_at_file=no - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - echo conftest.$ac_objext > conftest.lst - lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 - (eval $lt_ar_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if test "$ac_status" -eq 0; then - # Ensure the archiver fails upon bogus file names. - rm -f conftest.$ac_objext libconftest.a - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 - (eval $lt_ar_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if test "$ac_status" -ne 0; then - lt_cv_ar_at_file=@ - fi - fi - rm -f conftest.* libconftest.a - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 -$as_echo "$lt_cv_ar_at_file" >&6; } - -if test "x$lt_cv_ar_at_file" = xno; then - archiver_list_spec= -else - archiver_list_spec=$lt_cv_ar_at_file -fi - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -test -z "$STRIP" && STRIP=: - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -test -z "$RANLIB" && RANLIB=: - - - - - - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" -fi - -case $host_os in - darwin*) - lock_old_archive_extraction=yes ;; - *) - lock_old_archive_extraction=no ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if ${lt_cv_sys_global_symbol_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; -hpux*) - if test "$host_cpu" = ia64; then - symcode='[ABCDEGRST]' - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -# Transform an extracted symbol line into a proper C declaration. -# Some systems (esp. on ia64) link data and code symbols differently, -# so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# Try without a prefix underscore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Fake it for dumpbin and say T for any non-static function - # and D for any global variable. - # Also find C++ and __fastcall symbols from MSVC++, - # which start with @ or ?. - lt_cv_sys_global_symbol_pipe="$AWK '"\ -" {last_section=section; section=\$ 3};"\ -" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ -" \$ 0!~/External *\|/{next};"\ -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ -" {if(hide[section]) next};"\ -" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ -" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ -" s[1]~/^[@?]/{print s[1], s[1]; next};"\ -" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ -" ' prfx=^$ac_symprfx" - else - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - fi - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <<_LT_EOF -#ifdef __cplusplus -extern "C" { -#endif -char nm_test_var; -void nm_test_func(void); -void nm_test_func(void){} -#ifdef __cplusplus -} -#endif -int main(){nm_test_var='a';nm_test_func();return(0);} -_LT_EOF - - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 - (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then - cat <<_LT_EOF > conftest.$ac_ext -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) -/* DATA imports from DLLs on WIN32 con't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT_DLSYM_CONST -#elif defined(__osf__) -/* This system does not cope well with relocations in const data. */ -# define LT_DLSYM_CONST -#else -# define LT_DLSYM_CONST const -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -_LT_EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - - cat <<_LT_EOF >> conftest.$ac_ext - -/* The mapping between symbol names and symbols. */ -LT_DLSYM_CONST struct { - const char *name; - void *address; -} -lt__PROGRAM__LTX_preloaded_symbols[] = -{ - { "@PROGRAM@", (void *) 0 }, -_LT_EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext - cat <<\_LT_EOF >> conftest.$ac_ext - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt__PROGRAM__LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif -_LT_EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_globsym_save_LIBS=$LIBS - lt_globsym_save_CFLAGS=$CFLAGS - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS=$lt_globsym_save_LIBS - CFLAGS=$lt_globsym_save_CFLAGS - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -$as_echo "failed" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } -fi - -# Response file support. -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - nm_file_list_spec='@' -elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then - nm_file_list_spec='@' -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 -$as_echo_n "checking for sysroot... " >&6; } - -# Check whether --with-sysroot was given. -if test "${with_sysroot+set}" = set; then : - withval=$with_sysroot; -else - with_sysroot=no -fi - - -lt_sysroot= -case ${with_sysroot} in #( - yes) - if test "$GCC" = yes; then - lt_sysroot=`$CC --print-sysroot 2>/dev/null` - fi - ;; #( - /*) - lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` - ;; #( - no|'') - ;; #( - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 -$as_echo "${with_sysroot}" >&6; } - as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 - ;; -esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 -$as_echo "${lt_sysroot:-no}" >&6; } - - - - - -# 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\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '#line '$LINENO' "configure"' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - if test "$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*|powerpc*-*linux*| \ -s390*-*linux*|s390*-*tpf*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - case `/usr/bin/file conftest.o` in - *x86-64*) - LD="${LD-ld} -m elf32_x86_64" - ;; - *) - LD="${LD-ld} -m elf_i386" - ;; - esac - ;; - powerpc64le-*) - LD="${LD-ld} -m elf32lppclinux" - ;; - powerpc64-*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - powerpcle-*) - LD="${LD-ld} -m elf64lppc" - ;; - powerpc-*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*|s390*-*tpf*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if ${lt_cv_cc_needs_belf+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_cc_needs_belf=yes -else - lt_cv_cc_needs_belf=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$lt_cv_cc_needs_belf" >&6; } - if test 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 - ;; -*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) - case $host in - i?86-*-solaris*) - LD="${LD-ld} -m elf_x86_64" - ;; - sparc*-*-solaris*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - # GNU ld 2.21 introduced _sol2 emulations. Use them if available. - if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then - LD="${LD-ld}_sol2" - fi - ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -esac - -need_locks="$enable_libtool_lock" - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. -set dummy ${ac_tool_prefix}mt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$MANIFEST_TOOL"; then - ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL -if test -n "$MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 -$as_echo "$MANIFEST_TOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_MANIFEST_TOOL"; then - ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL - # Extract the first word of "mt", so it can be a program name with args. -set dummy mt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_MANIFEST_TOOL"; then - ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL -if test -n "$ac_ct_MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 -$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_MANIFEST_TOOL" = x; then - MANIFEST_TOOL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL - fi -else - MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" -fi - -test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 -$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } -if ${lt_cv_path_mainfest_tool+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_path_mainfest_tool=no - echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 - $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out - cat conftest.err >&5 - if $GREP 'Manifest Tool' conftest.out > /dev/null; then - lt_cv_path_mainfest_tool=yes - fi - rm -f conftest* -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 -$as_echo "$lt_cv_path_mainfest_tool" >&6; } -if test "x$lt_cv_path_mainfest_tool" != xyes; then - MANIFEST_TOOL=: -fi - - - - - - - case $host_os in - rhapsody* | darwin*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DSYMUTIL"; then - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DSYMUTIL=$ac_cv_prog_DSYMUTIL -if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DSYMUTIL"; then - ac_ct_DSYMUTIL=$DSYMUTIL - # Extract the first word of "dsymutil", so it can be a program name with args. -set dummy dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DSYMUTIL"; then - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL -if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DSYMUTIL" = x; then - DSYMUTIL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DSYMUTIL=$ac_ct_DSYMUTIL - fi -else - DSYMUTIL="$ac_cv_prog_DSYMUTIL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$NMEDIT"; then - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -NMEDIT=$ac_cv_prog_NMEDIT -if test -n "$NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_NMEDIT"; then - ac_ct_NMEDIT=$NMEDIT - # Extract the first word of "nmedit", so it can be a program name with args. -set dummy nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_NMEDIT"; then - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_NMEDIT="nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT -if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_NMEDIT" = x; then - NMEDIT=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - NMEDIT=$ac_ct_NMEDIT - fi -else - NMEDIT="$ac_cv_prog_NMEDIT" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. -set dummy ${ac_tool_prefix}lipo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$LIPO"; then - ac_cv_prog_LIPO="$LIPO" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_LIPO="${ac_tool_prefix}lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -LIPO=$ac_cv_prog_LIPO -if test -n "$LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 -$as_echo "$LIPO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_LIPO"; then - ac_ct_LIPO=$LIPO - # Extract the first word of "lipo", so it can be a program name with args. -set dummy lipo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_LIPO"; then - ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_LIPO="lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO -if test -n "$ac_ct_LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 -$as_echo "$ac_ct_LIPO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_LIPO" = x; then - LIPO=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - LIPO=$ac_ct_LIPO - fi -else - LIPO="$ac_cv_prog_LIPO" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. -set dummy ${ac_tool_prefix}otool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OTOOL"; then - ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_OTOOL="${ac_tool_prefix}otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -OTOOL=$ac_cv_prog_OTOOL -if test -n "$OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 -$as_echo "$OTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OTOOL"; then - ac_ct_OTOOL=$OTOOL - # Extract the first word of "otool", so it can be a program name with args. -set dummy otool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OTOOL"; then - ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_OTOOL="otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL -if test -n "$ac_ct_OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 -$as_echo "$ac_ct_OTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OTOOL" = x; then - OTOOL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OTOOL=$ac_ct_OTOOL - fi -else - OTOOL="$ac_cv_prog_OTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. -set dummy ${ac_tool_prefix}otool64; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OTOOL64"; then - ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -OTOOL64=$ac_cv_prog_OTOOL64 -if test -n "$OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 -$as_echo "$OTOOL64" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OTOOL64"; then - ac_ct_OTOOL64=$OTOOL64 - # Extract the first word of "otool64", so it can be a program name with args. -set dummy otool64; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OTOOL64"; then - ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_OTOOL64="otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 -if test -n "$ac_ct_OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 -$as_echo "$ac_ct_OTOOL64" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OTOOL64" = x; then - OTOOL64=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OTOOL64=$ac_ct_OTOOL64 - fi -else - OTOOL64="$ac_cv_prog_OTOOL64" -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } -if ${lt_cv_apple_cc_single_mod+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_apple_cc_single_mod=no - if test -z "${LT_MULTI_MODULE}"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - rm -rf libconftest.dylib* - echo "int foo(void){return 1;}" > conftest.c - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ --dynamiclib -Wl,-single_module conftest.c" >&5 - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err - _lt_result=$? - # If there is a non-empty error log, and "single_module" - # appears in it, assume the flag caused a linker warning - if test -s conftest.err && $GREP single_module conftest.err; then - cat conftest.err >&5 - # Otherwise, if the output was created with a 0 exit code from - # the compiler, it worked. - elif test -f libconftest.dylib && test $_lt_result -eq 0; then - lt_cv_apple_cc_single_mod=yes - else - cat conftest.err >&5 - fi - rm -rf libconftest.dylib* - rm -f conftest.* - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if ${lt_cv_ld_exported_symbols_list+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_ld_exported_symbols_list=yes -else - lt_cv_ld_exported_symbols_list=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$save_LDFLAGS" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 -$as_echo_n "checking for -force_load linker flag... " >&6; } -if ${lt_cv_ld_force_load+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_force_load=no - cat > conftest.c << _LT_EOF -int forced_loaded() { return 2;} -_LT_EOF - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 - echo "$AR cru libconftest.a conftest.o" >&5 - $AR cru libconftest.a conftest.o 2>&5 - echo "$RANLIB libconftest.a" >&5 - $RANLIB libconftest.a 2>&5 - cat > conftest.c << _LT_EOF -int main() { return 0;} -_LT_EOF - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err - _lt_result=$? - if test -s conftest.err && $GREP force_load conftest.err; then - cat conftest.err >&5 - elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then - lt_cv_ld_force_load=yes - else - cat conftest.err >&5 - fi - rm -f conftest.err libconftest.a conftest conftest.c - rm -rf conftest.dSYM - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 -$as_echo "$lt_cv_ld_force_load" >&6; } - case $host_os in - rhapsody* | darwin1.[012]) - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - darwin*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[91]*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - 10.[012]*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test "$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" != ":" && test "$lt_cv_ld_force_load" = "no"; then - _lt_dsymutil='~$DSYMUTIL $lib || :' - else - _lt_dsymutil= - fi - ;; - esac - -for ac_header in dlfcn.h -do : - ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default -" -if test "x$ac_cv_header_dlfcn_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF - -fi - -done - - - - - -# Set options - - - - enable_dlopen=no - - - enable_win32_dll=no - - - # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_shared=yes -fi - - - - - - - - - - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then : - withval=$with_pic; lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for lt_pkg in $withval; do - IFS="$lt_save_ifs" - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - pic_mode=default -fi - - -test -z "$pic_mode" && pic_mode=default - - - - - - - - # 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 - - - - - - - - - - - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ltmain" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -test -z "$LN_S" && LN_S="ln -s" - - - - - - - - - - - - - - -if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } -if ${lt_cv_objdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -cat >>confdefs.h <<_ACEOF -#define LT_OBJDIR "$lt_cv_objdir/" -_ACEOF - - - - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Global variables: -ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a - -with_gnu_ld="$lt_cv_prog_gnu_ld" - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$LD" && LD=ld -test -z "$ac_objext" && ac_objext=o - -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` - - -# Only perform the check for file, if the check method requires it -test -z "$MAGIC_CMD" && MAGIC_CMD=file -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 -$as_echo_n "checking for file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - else - MAGIC_CMD=: - fi -fi - - fi - ;; -esac - -# Use C for the default configuration in the libtool script - -lt_save_CC="$CC" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -objext=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - - - - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - -# Save the default compiler, since it gets overwritten when the other -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. -compiler_DEFAULT=$CC - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$RM conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$RM -r conftest* - - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - -lt_prog_compiler_no_builtin_flag= - -if test "$GCC" = yes; then - case $cc_basename in - nvcc*) - lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; - *) - lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; - esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test 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= - - - 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*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - lt_prog_compiler_pic='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; - - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - lt_prog_compiler_static= - ;; - - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - lt_prog_compiler_pic='-fPIC -shared' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; - - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - - case $cc_basename in - nvcc*) # Cuda Compiler Driver 2.2 - lt_prog_compiler_wl='-Xlinker ' - if test -n "$lt_prog_compiler_pic"; then - lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" - fi - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test "$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 - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - # old Intel for x86_64 which still supported -KPIC. - ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - # icc used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - icc* | ifort*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - # Lahey Fortran 8.1. - lf95*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='--shared' - lt_prog_compiler_static='--static' - ;; - nagfor*) - # NAG Fortran compiler - lt_prog_compiler_wl='-Wl,-Wl,,' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - xl* | bgxl* | bgf* | mpixl*) - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-qpic' - lt_prog_compiler_static='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - *Sun\ F* | *Sun*Fortran*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Qoption ld ' - ;; - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Intel*\ [CF]*Compiler*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - *Portland\ Group*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - esac - ;; - esac - ;; - - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - lt_prog_compiler_pic='-fPIC -shared' - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; - - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi - -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic=$lt_prog_compiler_pic -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 -$as_echo "$lt_cv_prog_compiler_pic" >&6; } -lt_prog_compiler_pic=$lt_cv_prog_compiler_pic - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if ${lt_cv_prog_compiler_pic_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_pic_works=yes - fi - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } - -if test 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 - - - - - - - - - - - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_static_works=yes - fi - else - lt_cv_prog_compiler_static_works=yes - fi - fi - $RM -r conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 -$as_echo "$lt_cv_prog_compiler_static_works" >&6; } - -if test x"$lt_cv_prog_compiler_static_works" = xyes; then - : -else - lt_prog_compiler_static= -fi - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_c_o=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_c_o=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } - - - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } - hard_links=yes - $RM conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } - if test "$hard_links" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } - - runpath_var= - allow_undefined_flag= - always_export_symbols=no - archive_cmds= - archive_expsym_cmds= - compiler_needs_object=no - enable_shared_with_static_runtimes=no - export_dynamic_flag_spec= - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - hardcode_automatic=no - hardcode_direct=no - hardcode_direct_absolute=no - hardcode_libdir_flag_spec= - hardcode_libdir_separator= - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - inherit_rpath=no - link_all_deplibs=unknown - module_cmds= - module_expsym_cmds= - old_archive_from_new_cmds= - old_archive_from_expsyms_cmds= - thread_safe_flag_spec= - whole_archive_flag_spec= - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. - extract_expsyms_cmds= - - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$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 - ;; - linux* | k*bsd*-gnu | gnu*) - link_all_deplibs=no - ;; - esac - - ld_shlibs=yes - - # On some targets, GNU ld is compatible enough with the native linker - # that we're better off using the native interface for both. - lt_use_gnu_ld_interface=no - if test "$with_gnu_ld" = yes; then - case $host_os in - aix*) - # The AIX port of GNU ld has always aspired to compatibility - # with the native linker. However, as the warning in the GNU ld - # block says, versions before 2.19.5* couldn't really create working - # shared libraries, regardless of the interface used. - case `$LD -v 2>&1` in - *\ \(GNU\ Binutils\)\ 2.19.5*) ;; - *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; - *\ \(GNU\ Binutils\)\ [3-9]*) ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - fi - - if test "$lt_use_gnu_ld_interface" = 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>&1` in - *GNU\ gold*) supports_anon_versioning=yes ;; - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[3-9]*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: the GNU linker, at least up to release 2.19, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to install binutils -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. -*** You will then need to restart the configuration process. - -_LT_EOF - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='' - ;; - m68k) - archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - export_dynamic_flag_spec='${wl}--export-all-symbols' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (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 - ;; - - haiku*) - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - link_all_deplibs=yes - ;; - - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) - tmp_diet=no - if test "$host_os" = linux-dietlibc; then - case $cc_basename in - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) - esac - fi - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ - && test "$tmp_diet" = no - then - tmp_addflag=' $pic_flag' - tmp_sharedflag='-shared' - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group f77 and f90 compilers - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - lf95*) # Lahey Fortran 8.1 - whole_archive_flag_spec= - tmp_sharedflag='--shared' ;; - xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) - tmp_sharedflag='-qmkshrobj' - tmp_addflag= ;; - nvcc*) # Cuda Compiler Driver 2.2 - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - compiler_needs_object=yes - ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - compiler_needs_object=yes - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test "x$supports_anon_versioning" = xyes; then - archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - - case $cc_basename in - xlf* | bgf* | bgxlf* | mpixlf*) - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself - whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' - if test "x$supports_anon_versioning" = xyes; then - archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' - fi - ;; - esac - else - ld_shlibs=no - fi - ;; - - netbsd* | 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 $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 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 - ;; - *) - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test "$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 - # Also, AIX nm treats weak defined symbols like other global - # defined symbols, whereas GNU nm marks them as "W". - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { 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_direct_absolute=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes - file_list_spec='${wl}-f,' - - 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 - link_all_deplibs=no - 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 - - export_dynamic_flag_spec='${wl}-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_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. - if test "${lt_cv_aix_libpath+set}" = set; then - aix_libpath=$lt_cv_aix_libpath -else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - - lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }' - lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_="/usr/lib:/lib" - fi - -fi - - aix_libpath=$lt_cv_aix_libpath_ -fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${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. - if test "${lt_cv_aix_libpath+set}" = set; then - aix_libpath=$lt_cv_aix_libpath -else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - - lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }' - lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_="/usr/lib:/lib" - fi - -fi - - aix_libpath=$lt_cv_aix_libpath_ -fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' ${wl}-bernotok' - allow_undefined_flag=' ${wl}-berok' - if test "$with_gnu_ld" = yes; then - # We only use this code for GNU lds that support --whole-archive. - whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - fi - archive_cmds_need_lc=yes - # 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*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='' - ;; - m68k) - archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - case $cc_basename in - cl*) - # Native MSVC - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - always_export_symbols=yes - file_list_spec='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; - else - sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, )='true' - enable_shared_with_static_runtimes=yes - exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - # Don't use ranlib - old_postinstall_cmds='chmod 644 $oldlib' - postlink_cmds='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile="$lt_outputfile.exe" - lt_tool_outputfile="$lt_tool_outputfile.exe" - ;; - esac~ - if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # Assume MSVC wrapper - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_from_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - enable_shared_with_static_runtimes=yes - ;; - esac - ;; - - darwin* | rhapsody*) - - - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - if test "$lt_cv_ld_force_load" = "yes"; then - whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' - - else - whole_archive_flag_spec='' - fi - link_all_deplibs=yes - allow_undefined_flag="$_lt_dar_allow_undefined" - case $cc_basename in - ifort*) _lt_dar_can_shared=yes ;; - *) _lt_dar_can_shared=$GCC ;; - esac - if test "$_lt_dar_can_shared" = "yes"; then - output_verbose_link_cmd=func_echo_all - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - - else - ld_shlibs=no - fi - - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2.*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $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 && test "$with_gnu_ld" = no; then - archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - hardcode_direct_absolute=yes - export_dynamic_flag_spec='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes && test "$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 $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - - # Older versions of the 11.00 compiler do not understand -b yet - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 -$as_echo_n "checking if $CC understands -b... " >&6; } -if ${lt_cv_prog_compiler__b+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler__b=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -b" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler__b=yes - fi - else - lt_cv_prog_compiler__b=yes - fi - fi - $RM -r conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 -$as_echo "$lt_cv_prog_compiler__b" >&6; } - -if test x"$lt_cv_prog_compiler__b" = xyes; then - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' -else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' -fi - - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - hardcode_direct_absolute=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - # Try to use the -exported_symbol ld option, if it does not - # work, assume that -exports_file does not work either and - # implicitly export all symbols. - # This should be the same for all languages, so no per-tag cache variable. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 -$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } -if ${lt_cv_irix_exported_symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int foo (void) { return 0; } -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_irix_exported_symbol=yes -else - lt_cv_irix_exported_symbol=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$save_LDFLAGS" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 -$as_echo "$lt_cv_irix_exported_symbol" >&6; } - if test "$lt_cv_irix_exported_symbol" = yes; then - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' - fi - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' - fi - archive_cmds_need_lc='no' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - inherit_rpath=yes - link_all_deplibs=yes - ;; - - 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 - ;; - - *nto* | *qnx*) - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - hardcode_direct_absolute=yes - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - fi - archive_cmds_need_lc='no' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - archive_cmds_need_lc='no' - hardcode_libdir_separator=: - ;; - - solaris*) - no_undefined_flag=' -z defs' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - else - case `$CC -V 2>&1` in - *"Compilers 5.0"*) - wlarc='' - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' - ;; - *) - wlarc='${wl}' - archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - ;; - esac - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$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='${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,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac - - if test x$host_vendor = xsni; then - case $host in - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - export_dynamic_flag_spec='${wl}-Blargedynsym' - ;; - esac - fi - fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 -$as_echo "$ld_shlibs" >&6; } -test "$ld_shlibs" = no && can_build_shared=no - -with_gnu_ld=$with_gnu_ld - - - - - - - - - - - - - - - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes - - if test "$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. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc+:} false; then : - $as_echo_n "(cached) " >&6 -else - $RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 - (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - then - lt_cv_archive_cmds_need_lc=no - else - lt_cv_archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } - archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc - ;; - esac - fi - ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } - -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - case $host_os in - mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; - *) lt_sed_strip_eq="s,=/,/,g" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` - case $lt_search_path_spec in - *\;*) - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` - ;; - *) - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` - ;; - esac - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - 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; } -}'` - # AWK program above erroneously prepends '/' to C:/dos/paths - # for these hosts. - case $host_os in - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ - $SED 's,/\([A-Za-z]:\),\1,g'` ;; - esac - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix[4-9]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$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*) - case $host_cpu in - powerpc) - # Since July 2007 AmigaOS4 officially supports .so libraries. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - ;; - m68k) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; 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' - ;; - esac - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$cc_basename in - yes,*) - # gcc - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - dynamic_linker='Win32 ld.exe' - ;; - - *,cl*) - # Native MSVC - libname_spec='$name' - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - library_names_spec='${libname}.dll.lib' - - case $build_os in - mingw*) - sys_lib_search_path_spec= - lt_save_ifs=$IFS - IFS=';' - for lt_path in $LIB - do - IFS=$lt_save_ifs - # Let DOS variable expansion print the short 8.3 style file name. - lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` - sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" - done - IFS=$lt_save_ifs - # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` - ;; - cygwin*) - # Convert to unix form, then to dos form, then back to unix form - # but this time dos style (no spaces!) so that the unix form looks - # like /cygdrive/c/PROGRA~1:/cygdr... - sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` - sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` - sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - ;; - *) - sys_lib_search_path_spec="$LIB" - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # FIXME: find the short name or the path components, as spaces are - # common. (e.g. "Program Files" -> "PROGRA~1") - ;; - esac - - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - dynamic_linker='Win32 link.exe' - ;; - - *) - # Assume MSVC wrapper - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - dynamic_linker='Win32 ld.exe' - ;; - esac - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[23].*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - 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 - ;; - -haiku*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - dynamic_linker="$host_os runtime_loader" - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LIBRARY_PATH - shlibpath_overrides_runpath=yes - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "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' - # or fails outright, so override atomically: - install_override_mode=555 - ;; - -interix[3-9]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux # correct to gnu/linux during the next big refactor - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - - # Some binutils ld are patched to set DT_RUNPATH - if ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_shlibpath_overrides_runpath=no - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ - LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : - lt_cv_shlibpath_overrides_runpath=yes -fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - -fi - - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # 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;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 # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -*nto* | *qnx*) - version_type=qnx - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='ldqnx.so' - ;; - -openbsd*) - 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 # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=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 - shlibpath_overrides_runpath=yes - 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' - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -tpf*) - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -uts4*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -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 - -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then - sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -fi -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then - sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || - test -n "$runpath_var" || - test "X$hardcode_automatic" = "Xyes" ; then - - # We can hardcode non-existent 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_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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 -$as_echo "$hardcode_action" >&6; } - -if test "$hardcode_action" = relink || - test "$inherit_rpath" = yes; 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 - - - - - - - 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* | cegcc*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - -fi - - ;; - - *) - ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = xyes; then : - lt_cv_dlopen="shl_load" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if ${ac_cv_lib_dld_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dld_shl_load=yes -else - ac_cv_lib_dld_shl_load=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = xyes; then : - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" -else - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : - lt_cv_dlopen="dlopen" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 -$as_echo_n "checking for dlopen in -lsvld... " >&6; } -if ${ac_cv_lib_svld_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_svld_dlopen=yes -else - ac_cv_lib_svld_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 -$as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = xyes; then : - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 -$as_echo_n "checking for dld_link in -ldld... " >&6; } -if ${ac_cv_lib_dld_dld_link+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dld_dld_link=yes -else - ac_cv_lib_dld_dld_link=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 -$as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = xyes; then : - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" -fi - - -fi - - -fi - - -fi - - -fi - - -fi - - ;; - esac - - if test "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" - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 -$as_echo_n "checking whether a program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$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 <<_LT_EOF -#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisbility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -} -_LT_EOF - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 -$as_echo "$lt_cv_dlopen_self" >&6; } - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self_static+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$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 <<_LT_EOF -#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisbility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -} -_LT_EOF - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - - - - - - - - - - - - - - - - - -striplib= -old_striplib= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - fi - ;; - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ;; - esac -fi - - - - - - - - - - - - - # Report which library types will actually be built - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } - test "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } - # Make sure either enable_shared or enable_static is yes. - test "$enable_shared" = yes || enable_static=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } - - - - -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - - - - - - - - - - - - - - - ac_config_commands="$ac_config_commands libtool" - - - - -# Only expand once: - - - - - - - - - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_PKG_CONFIG"; then - ac_pt_PKG_CONFIG=$PKG_CONFIG - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_pt_PKG_CONFIG" = x; then - PKG_CONFIG="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - PKG_CONFIG=$ac_pt_PKG_CONFIG - fi -else - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -fi - -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=0.9.0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - PKG_CONFIG="" - fi -fi - -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 -$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } -if eval \${$as_ac_Header+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include <$ac_hdr> - -int -main () -{ -if ((DIR *) 0) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$as_ac_Header=yes" -else - eval "$as_ac_Header=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$as_ac_Header - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 -_ACEOF - -ac_header_dirent=$ac_hdr; break -fi - -done -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. -if test $ac_header_dirent = dirent.h; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 -$as_echo_n "checking for library containing opendir... " >&6; } -if ${ac_cv_search_opendir+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char opendir (); -int -main () -{ -return opendir (); - ; - return 0; -} -_ACEOF -for ac_lib in '' dir; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_opendir=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_opendir+:} false; then : - break -fi -done -if ${ac_cv_search_opendir+:} false; then : - -else - ac_cv_search_opendir=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 -$as_echo "$ac_cv_search_opendir" >&6; } -ac_res=$ac_cv_search_opendir -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 -$as_echo_n "checking for library containing opendir... " >&6; } -if ${ac_cv_search_opendir+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char opendir (); -int -main () -{ -return opendir (); - ; - return 0; -} -_ACEOF -for ac_lib in '' x; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_opendir=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_opendir+:} false; then : - break -fi -done -if ${ac_cv_search_opendir+:} false; then : - -else - ac_cv_search_opendir=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 -$as_echo "$ac_cv_search_opendir" >&6; } -ac_res=$ac_cv_search_opendir -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - -for ac_header in fcntl.h malloc.h inttypes.h sys/ioctl.h sys/mman.h \ - ctype.h unistd.h locale.h byteswap.h endian.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -for ac_header in uuid/uuid.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" -if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_UUID_UUID_H 1 -_ACEOF - -else - as_fn_error $? "You need the uuid library." "$LINENO" 5 -fi - -done - -ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default" -if test "x$ac_cv_header_libdevmapper_h" = xyes; then : - -else - as_fn_error $? "You need the device-mapper library." "$LINENO" 5 -fi - - - -saved_LIBS=$LIBS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_clear in -luuid" >&5 -$as_echo_n "checking for uuid_clear in -luuid... " >&6; } -if ${ac_cv_lib_uuid_uuid_clear+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-luuid $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char uuid_clear (); -int -main () -{ -return uuid_clear (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_uuid_uuid_clear=yes -else - ac_cv_lib_uuid_uuid_clear=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_clear" >&5 -$as_echo "$ac_cv_lib_uuid_uuid_clear" >&6; } -if test "x$ac_cv_lib_uuid_uuid_clear" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBUUID 1 -_ACEOF - - LIBS="-luuid $LIBS" - -else - as_fn_error $? "You need the uuid library." "$LINENO" 5 -fi - -UUID_LIBS=$LIBS - -LIBS=$saved_LIBS - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 -$as_echo_n "checking for library containing clock_gettime... " >&6; } -if ${ac_cv_search_clock_gettime+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char clock_gettime (); -int -main () -{ -return clock_gettime (); - ; - return 0; -} -_ACEOF -for ac_lib in '' rt posix4; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_clock_gettime=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_clock_gettime+:} false; then : - break -fi -done -if ${ac_cv_search_clock_gettime+:} false; then : - -else - ac_cv_search_clock_gettime=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 -$as_echo "$ac_cv_search_clock_gettime" >&6; } -ac_res=$ac_cv_search_clock_gettime -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -for ac_func in posix_memalign clock_gettime -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -if test "x$enable_largefile" = "xno" ; then - as_fn_error $? "Building with --disable-largefile is not supported, it can cause data corruption." "$LINENO" 5 -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -$as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if ${ac_cv_c_const+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - -#ifndef __cplusplus - /* Ultrix mips cc rejects this sort of thing. */ - typedef int charset[2]; - const charset cs = { 0, 0 }; - /* SunOS 4.1.1 cc rejects this. */ - char const *const *pcpcc; - char **ppc; - /* NEC SVR4.0.2 mips cc rejects this. */ - struct point {int x, y;}; - static struct point const zero = {0,0}; - /* AIX XL C 1.02.0.0 rejects this. - It does not let you subtract one const X* pointer from another in - an arm of an if-expression whose if-part is not a constant - expression */ - const char *g = "string"; - pcpcc = &g + (g ? g-g : 0); - /* HPUX 7.0 cc rejects these. */ - ++pcpcc; - ppc = (char**) pcpcc; - pcpcc = (char const *const *) ppc; - { /* SCO 3.2v4 cc rejects this sort of thing. */ - char tx; - char *t = &tx; - char const *s = 0 ? (char *) 0 : (char const *) 0; - - *t++ = 0; - if (s) return 0; - } - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ - int x[] = {25, 17}; - const int *foo = &x[0]; - ++foo; - } - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ - typedef const int *iptr; - iptr p = 0; - ++p; - } - { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; } bx; - struct s *b = &bx; b->j = 5; - } - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; - if (!foo) return 0; - } - return !cs[0] && !zero.x; -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_const=yes -else - ac_cv_c_const=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -$as_echo "$ac_cv_c_const" >&6; } -if test $ac_cv_c_const = no; then - -$as_echo "#define const /**/" >>confdefs.h - -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -$as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if ${ac_cv_c_bigendian+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_c_bigendian=unknown - # See if we're dealing with a universal compiler. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifndef __APPLE_CC__ - not a universal capable compiler - #endif - typedef int dummy; - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - # Check for potential -arch flags. It is not universal unless - # there are at least two -arch flags with different values. - ac_arch= - ac_prev= - for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do - if test -n "$ac_prev"; then - case $ac_word in - i?86 | x86_64 | ppc | ppc64) - if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then - ac_arch=$ac_word - else - ac_cv_c_bigendian=universal - break - fi - ;; - esac - ac_prev= - elif test "x$ac_word" = "x-arch"; then - ac_prev=arch - fi - done -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if test $ac_cv_c_bigendian = unknown; then - # See if sys/param.h defines the BYTE_ORDER macro. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include - -int -main () -{ -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ - && LITTLE_ENDIAN) - bogus endian macros - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - # It does; now see whether it defined to BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include - -int -main () -{ -#if BYTE_ORDER != BIG_ENDIAN - not big endian - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_bigendian=yes -else - ac_cv_c_bigendian=no -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 - if test $ac_cv_c_bigendian = unknown; then - # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -int -main () -{ -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) - bogus endian macros - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - # It does; now see whether it defined to _BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -int -main () -{ -#ifndef _BIG_ENDIAN - not big endian - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_bigendian=yes -else - ac_cv_c_bigendian=no -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 - if test $ac_cv_c_bigendian = unknown; then - # Compile a test program. - if test "$cross_compiling" = yes; then : - # Try to guess by grepping values from an object file. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -short int ascii_mm[] = - { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - short int ascii_ii[] = - { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; - int use_ascii (int i) { - return ascii_mm[i] + ascii_ii[i]; - } - short int ebcdic_ii[] = - { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - short int ebcdic_mm[] = - { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; - int use_ebcdic (int i) { - return ebcdic_mm[i] + ebcdic_ii[i]; - } - extern int foo; - -int -main () -{ -return use_ascii (foo) == use_ebcdic (foo); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then - ac_cv_c_bigendian=yes - fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then - if test "$ac_cv_c_bigendian" = unknown; then - ac_cv_c_bigendian=no - else - # finding both strings is unlikely to happen, but who knows? - ac_cv_c_bigendian=unknown - fi - fi -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ - - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long int l; - char c[sizeof (long int)]; - } u; - u.l = 1; - return u.c[sizeof (long int) - 1] == 1; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_c_bigendian=no -else - ac_cv_c_bigendian=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -$as_echo "$ac_cv_c_bigendian" >&6; } - case $ac_cv_c_bigendian in #( - yes) - $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h -;; #( - no) - ;; #( - universal) - -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - - ;; #( - *) - as_fn_error $? "unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; - esac - -ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" -if test "x$ac_cv_type_off_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define off_t long int -_ACEOF - -fi - -# Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then : - enableval=$enable_largefile; -fi - -if test "$enable_largefile" != no; then - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 -$as_echo_n "checking for special C compiler options needed for large files... " >&6; } -if ${ac_cv_sys_largefile_CC+:} false; then : - $as_echo_n "(cached) " >&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 confdefs.h - <<_ACEOF >conftest.$ac_ext -/* 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 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF - if ac_fn_c_try_compile "$LINENO"; then : - break -fi -rm -f core conftest.err conftest.$ac_objext - CC="$CC -n32" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sys_largefile_CC=' -n32'; break -fi -rm -f core conftest.err conftest.$ac_objext - break - done - CC=$ac_save_CC - rm -f conftest.$ac_ext - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 -$as_echo "$ac_cv_sys_largefile_CC" >&6; } - if test "$ac_cv_sys_largefile_CC" != no; then - CC=$CC$ac_cv_sys_largefile_CC - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } -if ${ac_cv_sys_file_offset_bits+:} false; then : - $as_echo_n "(cached) " >&6 -else - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* 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 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sys_file_offset_bits=no; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* 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 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sys_file_offset_bits=64; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_file_offset_bits=unknown - break -done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 -$as_echo "$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 -rf conftest* - if test $ac_cv_sys_file_offset_bits = unknown; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 -$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } -if ${ac_cv_sys_large_files+:} false; then : - $as_echo_n "(cached) " >&6 -else - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* 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 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sys_large_files=no; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* 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 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sys_large_files=1; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_large_files=unknown - break -done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 -$as_echo "$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 -rf conftest* - fi - - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 -$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } -if ${ac_cv_sys_largefile_source+:} false; then : - $as_echo_n "(cached) " >&6 -else - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include /* for off_t */ - #include -int -main () -{ -int (*fp) (FILE *, off_t, int) = fseeko; - return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_sys_largefile_source=no; break -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _LARGEFILE_SOURCE 1 -#include /* for off_t */ - #include -int -main () -{ -int (*fp) (FILE *, off_t, int) = fseeko; - return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_sys_largefile_source=1; break -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ac_cv_sys_largefile_source=unknown - break -done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 -$as_echo "$ac_cv_sys_largefile_source" >&6; } -case $ac_cv_sys_largefile_source in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source -_ACEOF -;; -esac -rm -rf conftest* - -# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug -# in glibc 2.1.3, but that breaks too many other things. -# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. -if test $ac_cv_sys_largefile_source != unknown; then - -$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h - -fi - -if test $ac_cv_c_compiler_gnu = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 -$as_echo_n "checking whether $CC needs -traditional... " >&6; } -if ${ac_cv_prog_gcc_traditional+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_pattern="Autoconf.*'x'" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TIOCGETP -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then : - ac_cv_prog_gcc_traditional=yes -else - ac_cv_prog_gcc_traditional=no -fi -rm -f conftest* - - - if test $ac_cv_prog_gcc_traditional = no; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TCGETA -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then : - ac_cv_prog_gcc_traditional=yes -fi -rm -f conftest* - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 -$as_echo "$ac_cv_prog_gcc_traditional" >&6; } - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi - -ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" -if test "x$ac_cv_have_decl_strerror_r" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR_R $ac_have_decl -_ACEOF - -for ac_func in strerror_r -do : - ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" -if test "x$ac_cv_func_strerror_r" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRERROR_R 1 -_ACEOF - -fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 -$as_echo_n "checking whether strerror_r returns char *... " >&6; } -if ${ac_cv_func_strerror_r_char_p+:} false; then : - $as_echo_n "(cached) " >&6 -else - - ac_cv_func_strerror_r_char_p=no - if test $ac_cv_have_decl_strerror_r = yes; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ - - char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - char *p = strerror_r (0, buf, sizeof buf); - return !p || x; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_func_strerror_r_char_p=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - else - # strerror_r is not declared. Choose between - # systems that have relatively inaccessible declarations for the - # function. BeOS and DEC UNIX 4.0 fall in this category, but the - # former has a strerror_r that returns char*, while the latter - # has a strerror_r that returns `int'. - # This test should segfault on the DEC system. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default - extern char *strerror_r (); -int -main () -{ -char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - return ! isalpha (x); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_strerror_r_char_p=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - - fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 -$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } -if test $ac_cv_func_strerror_r_char_p = yes; then - -$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h - -fi - - - - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 -$as_echo_n "checking whether NLS is requested... " >&6; } - # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then : - enableval=$enable_nls; USE_NLS=$enableval -else - USE_NLS=yes -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } - - - - - - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" -fi -rm -f conf$$.file - -# Extract the first word of "msgfmt", so it can be a program name with args. -set dummy msgfmt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGFMT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case "$MSGFMT" in - [\\/]* | ?:[\\/]*) - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&5 - if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && - (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then - ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" - ;; -esac -fi -MSGFMT="$ac_cv_path_MSGFMT" -if test "$MSGFMT" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 -$as_echo "$MSGFMT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - # Extract the first word of "gmsgfmt", so it can be a program name with args. -set dummy gmsgfmt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GMSGFMT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $GMSGFMT in - [\\/]* | ?:[\\/]*) - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" - ;; -esac -fi -GMSGFMT=$ac_cv_path_GMSGFMT -if test -n "$GMSGFMT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 -$as_echo "$GMSGFMT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; - *) MSGFMT_015=$MSGFMT ;; - esac - - case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; - *) GMSGFMT_015=$GMSGFMT ;; - esac - - - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" -fi -rm -f conf$$.file - -# Extract the first word of "xgettext", so it can be a program name with args. -set dummy xgettext; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_XGETTEXT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case "$XGETTEXT" in - [\\/]* | ?:[\\/]*) - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&5 - if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && - (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then - ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" - ;; -esac -fi -XGETTEXT="$ac_cv_path_XGETTEXT" -if test "$XGETTEXT" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 -$as_echo "$XGETTEXT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - rm -f messages.po - - case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; - *) XGETTEXT_015=$XGETTEXT ;; - esac - - - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" -fi -rm -f conf$$.file - -# Extract the first word of "msgmerge", so it can be a program name with args. -set dummy msgmerge; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGMERGE+:} false; then : - $as_echo_n "(cached) " >&6 -else - case "$MSGMERGE" in - [\\/]* | ?:[\\/]*) - ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&5 - if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then - ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" - test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" - ;; -esac -fi -MSGMERGE="$ac_cv_path_MSGMERGE" -if test "$MSGMERGE" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 -$as_echo "$MSGMERGE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$localedir" || localedir='${datadir}/locale' - - - ac_config_commands="$ac_config_commands po-directories" - - - - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 -$as_echo_n "checking for ld used by GCC... " >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } -fi -if ${acl_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${acl_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 &5 -$as_echo "$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 -$as_echo_n "checking for shared library run path origin... " >&6; } -if ${acl_cv_rpath+:} false; then : - $as_echo_n "(cached) " >&6 -else - - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 -$as_echo "$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - libext="$acl_cv_libext" - shlibext="$acl_cv_shlibext" - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - hardcode_direct="$acl_cv_hardcode_direct" - hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then : - enableval=$enable_rpath; : -else - enable_rpath=yes -fi - - - - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - - - - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-libiconv-prefix was given. -if test "${with_libiconv_prefix+set}" = set; then : - withval=$with_libiconv_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBICONV= - LTLIBICONV= - INCICONV= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='iconv ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - if test $use_additional = yes; then - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then - found_dir="$additional_libdir" - found_so="$additional_libdir/lib$name.$shlibext" - if test -f "$additional_libdir/lib$name.la"; then - found_la="$additional_libdir/lib$name.la" - fi - else - if test -f "$additional_libdir/lib$name.$libext"; then - found_dir="$additional_libdir" - found_a="$additional_libdir/lib$name.$libext" - if test -f "$additional_libdir/lib$name.la"; then - found_la="$additional_libdir/lib$name.la" - fi - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBICONV; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then - found_dir="$dir" - found_so="$dir/lib$name.$shlibext" - if test -f "$dir/lib$name.la"; then - found_la="$dir/lib$name.la" - fi - else - if test -f "$dir/lib$name.$libext"; then - found_dir="$dir" - found_a="$dir/lib$name.$libext" - if test -f "$dir/lib$name.la"; then - found_la="$dir/lib$name.la" - fi - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$hardcode_direct" = yes; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBICONV; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" - fi - if test "$hardcode_minus_L" != no; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCICONV; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBICONV; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBICONV; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" - ;; - esac - done - fi - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" - done - fi - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 -$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } -if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : - $as_echo_n "(cached) " >&6 -else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -CFPreferencesCopyAppValue(NULL, NULL) - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gt_cv_func_CFPreferencesCopyAppValue=yes -else - gt_cv_func_CFPreferencesCopyAppValue=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then - -$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h - - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 -$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } -if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : - $as_echo_n "(cached) " >&6 -else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -CFLocaleCopyCurrent(); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gt_cv_func_CFLocaleCopyCurrent=yes -else - gt_cv_func_CFLocaleCopyCurrent=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 -$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then - -$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h - - fi - INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" - fi - - - - - - - LIBINTL= - LTLIBINTL= - POSUB= - - if test "$USE_NLS" = "yes"; then - gt_use_preinstalled_gnugettext=no - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 -$as_echo_n "checking for GNU gettext in libc... " >&6; } -if ${gt_cv_func_gnugettext2_libc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -extern int _nl_msg_cat_cntr; -extern int *_nl_domain_bindings; -int -main () -{ -bindtextdomain ("", ""); -return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gt_cv_func_gnugettext2_libc=yes -else - gt_cv_func_gnugettext2_libc=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5 -$as_echo "$gt_cv_func_gnugettext2_libc" >&6; } - - if test "$gt_cv_func_gnugettext2_libc" != "yes"; then - - - - - - am_save_CPPFLAGS="$CPPFLAGS" - - for element in $INCICONV; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 -$as_echo_n "checking for iconv... " >&6; } -if ${am_cv_func_iconv+:} false; then : - $as_echo_n "(cached) " >&6 -else - - am_cv_func_iconv="no, consider installing GNU libiconv" - am_cv_lib_iconv=no - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - am_cv_func_iconv=yes -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - am_cv_lib_iconv=yes - am_cv_func_iconv=yes -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$am_save_LIBS" - fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 -$as_echo "$am_cv_func_iconv" >&6; } - if test "$am_cv_func_iconv" = yes; then - -$as_echo "#define HAVE_ICONV 1" >>confdefs.h - - fi - if test "$am_cv_lib_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 -$as_echo_n "checking how to link with libiconv... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 -$as_echo "$LIBICONV" >&6; } - else - CPPFLAGS="$am_save_CPPFLAGS" - LIBICONV= - LTLIBICONV= - fi - - - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-libintl-prefix was given. -if test "${with_libintl_prefix+set}" = set; then : - withval=$with_libintl_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBINTL= - LTLIBINTL= - INCINTL= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='intl ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - if test $use_additional = yes; then - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then - found_dir="$additional_libdir" - found_so="$additional_libdir/lib$name.$shlibext" - if test -f "$additional_libdir/lib$name.la"; then - found_la="$additional_libdir/lib$name.la" - fi - else - if test -f "$additional_libdir/lib$name.$libext"; then - found_dir="$additional_libdir" - found_a="$additional_libdir/lib$name.$libext" - if test -f "$additional_libdir/lib$name.la"; then - found_la="$additional_libdir/lib$name.la" - fi - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBINTL; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then - found_dir="$dir" - found_so="$dir/lib$name.$shlibext" - if test -f "$dir/lib$name.la"; then - found_la="$dir/lib$name.la" - fi - else - if test -f "$dir/lib$name.$libext"; then - found_dir="$dir" - found_a="$dir/lib$name.$libext" - if test -f "$dir/lib$name.la"; then - found_la="$dir/lib$name.la" - fi - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$hardcode_direct" = yes; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - else - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBINTL; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" - fi - if test "$hardcode_minus_L" != no; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - else - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" - else - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCINTL; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBINTL; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBINTL; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" - ;; - esac - done - fi - else - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" - done - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 -$as_echo_n "checking for GNU gettext in libintl... " >&6; } -if ${gt_cv_func_gnugettext2_libintl+:} false; then : - $as_echo_n "(cached) " >&6 -else - gt_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCINTL" - gt_save_LIBS="$LIBS" - LIBS="$LIBS $LIBINTL" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias (const char *); -int -main () -{ -bindtextdomain ("", ""); -return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("") - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gt_cv_func_gnugettext2_libintl=yes -else - gt_cv_func_gnugettext2_libintl=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then - LIBS="$LIBS $LIBICONV" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* 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 ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("") - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" - gt_cv_func_gnugettext2_libintl=yes - -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - fi - CPPFLAGS="$gt_save_CPPFLAGS" - LIBS="$gt_save_LIBS" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5 -$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } - fi - - if test "$gt_cv_func_gnugettext2_libc" = "yes" \ - || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ - && test "$PACKAGE" != gettext-runtime \ - && test "$PACKAGE" != gettext-tools; }; then - gt_use_preinstalled_gnugettext=yes - else - LIBINTL= - LTLIBINTL= - INCINTL= - fi - - - - if test -n "$INTL_MACOSX_LIBS"; then - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" - LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" - fi - fi - - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - -$as_echo "#define ENABLE_NLS 1" >>confdefs.h - - else - USE_NLS=no - fi - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 -$as_echo_n "checking whether to use NLS... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } - if test "$USE_NLS" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 -$as_echo_n "checking where the gettext function comes from... " >&6; } - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then - gt_source="external libintl" - else - gt_source="libc" - fi - else - gt_source="included intl directory" - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 -$as_echo "$gt_source" >&6; } - fi - - if test "$USE_NLS" = "yes"; then - - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 -$as_echo_n "checking how to link with libintl... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 -$as_echo "$LIBINTL" >&6; } - - for element in $INCINTL; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - fi - - -$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h - - -$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h - - fi - - POSUB=po - fi - - - - INTLLIBS="$LIBINTL" - - - - - - - - - -saved_LIBS=$LIBS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptConfigFileToString in -lpopt" >&5 -$as_echo_n "checking for poptConfigFileToString in -lpopt... " >&6; } -if ${ac_cv_lib_popt_poptConfigFileToString+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpopt $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char poptConfigFileToString (); -int -main () -{ -return poptConfigFileToString (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_popt_poptConfigFileToString=yes -else - ac_cv_lib_popt_poptConfigFileToString=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptConfigFileToString" >&5 -$as_echo "$ac_cv_lib_popt_poptConfigFileToString" >&6; } -if test "x$ac_cv_lib_popt_poptConfigFileToString" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBPOPT 1 -_ACEOF - - LIBS="-lpopt $LIBS" - -else - as_fn_error $? "You need popt 1.7 or newer to compile." "$LINENO" 5 -fi - -POPT_LIBS=$LIBS - -LIBS=$saved_LIBS - -# Check whether --enable-fips was given. -if test "${enable_fips+set}" = set; then : - enableval=$enable_fips; with_fips=$enableval -else - with_fips=no -fi - - -if test "x$with_fips" = "xyes"; then - -$as_echo "#define ENABLE_FIPS 1" >>confdefs.h - - - if test "x$enable_static" = "xyes" -o "x$enable_static_cryptsetup" = "xyes" ; then - as_fn_error $? "Static build is not compatible with FIPS." "$LINENO" 5 - fi -fi - - - -# Check whether --enable-pwquality was given. -if test "${enable_pwquality+set}" = set; then : - enableval=$enable_pwquality; with_pwquality=$enableval -else - with_pwquality=no -fi - - -if test "x$with_pwquality" = "xyes"; then - -$as_echo "#define ENABLE_PWQUALITY 1" >>confdefs.h - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWQUALITY" >&5 -$as_echo_n "checking for PWQUALITY... " >&6; } - -if test -n "$PWQUALITY_CFLAGS"; then - pkg_cv_PWQUALITY_CFLAGS="$PWQUALITY_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_PWQUALITY_CFLAGS=`$PKG_CONFIG --cflags "pwquality >= 1.0.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$PWQUALITY_LIBS"; then - pkg_cv_PWQUALITY_LIBS="$PWQUALITY_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_PWQUALITY_LIBS=`$PKG_CONFIG --libs "pwquality >= 1.0.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1` - else - PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$PWQUALITY_PKG_ERRORS" >&5 - - as_fn_error $? "You need pwquality library." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - as_fn_error $? "You need pwquality library." "$LINENO" 5 -else - PWQUALITY_CFLAGS=$pkg_cv_PWQUALITY_CFLAGS - PWQUALITY_LIBS=$pkg_cv_PWQUALITY_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - PWQUALITY_STATIC_LIBS="$PWQUALITY_LIBS -lcrack -lz" -fi - - - - - - - - - - - - -saved_LIBS=$LIBS - -# Check whether --enable-static-cryptsetup was given. -if test "${enable_static_cryptsetup+set}" = set; then : - enableval=$enable_static_cryptsetup; -fi - -if test x$enable_static_cryptsetup = xyes; then - if test x$enable_static = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Requested static cryptsetup build, enabling static library." >&5 -$as_echo "$as_me: WARNING: Requested static cryptsetup build, enabling static library." >&2;} - enable_static=yes - fi -fi - if test x$enable_static_cryptsetup = xyes; then - STATIC_TOOLS_TRUE= - STATIC_TOOLS_FALSE='#' -else - STATIC_TOOLS_TRUE='#' - STATIC_TOOLS_FALSE= -fi - - -# Check whether --enable-veritysetup was given. -if test "${enable_veritysetup+set}" = set; then : - enableval=$enable_veritysetup; -else - enable_veritysetup=yes -fi - - if test x$enable_veritysetup = xyes; then - VERITYSETUP_TRUE= - VERITYSETUP_FALSE='#' -else - VERITYSETUP_TRUE='#' - VERITYSETUP_FALSE= -fi - - -# Check whether --enable-cryptsetup-reencrypt was given. -if test "${enable_cryptsetup_reencrypt+set}" = set; then : - enableval=$enable_cryptsetup_reencrypt; -fi - - if test x$enable_cryptsetup_reencrypt = xyes; then - REENCRYPT_TRUE= - REENCRYPT_FALSE='#' -else - REENCRYPT_TRUE='#' - REENCRYPT_FALSE= -fi - - -# Check whether --enable-selinux was given. -if test "${enable_selinux+set}" = set; then : - enableval=$enable_selinux; -fi - - -# Check whether --enable-udev was given. -if test "${enable_udev+set}" = set; then : - enableval=$enable_udev; -else - enable_udev=yes -fi - - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEVMAPPER" >&5 -$as_echo_n "checking for DEVMAPPER... " >&6; } - -if test -n "$DEVMAPPER_CFLAGS"; then - pkg_cv_DEVMAPPER_CFLAGS="$DEVMAPPER_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5 - ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_DEVMAPPER_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.03" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$DEVMAPPER_LIBS"; then - pkg_cv_DEVMAPPER_LIBS="$DEVMAPPER_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5 - ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_DEVMAPPER_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.03" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1` - else - DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$DEVMAPPER_PKG_ERRORS" >&5 - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5 -$as_echo_n "checking for dm_task_set_name in -ldevmapper... " >&6; } -if ${ac_cv_lib_devmapper_dm_task_set_name+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldevmapper $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dm_task_set_name (); -int -main () -{ -return dm_task_set_name (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_devmapper_dm_task_set_name=yes -else - ac_cv_lib_devmapper_dm_task_set_name=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5 -$as_echo "$ac_cv_lib_devmapper_dm_task_set_name" >&6; } -if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDEVMAPPER 1 -_ACEOF - - LIBS="-ldevmapper $LIBS" - -else - as_fn_error $? "You need the device-mapper library." "$LINENO" 5 -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5 -$as_echo_n "checking for dm_task_set_message in -ldevmapper... " >&6; } -if ${ac_cv_lib_devmapper_dm_task_set_message+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldevmapper $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dm_task_set_message (); -int -main () -{ -return dm_task_set_message (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_devmapper_dm_task_set_message=yes -else - ac_cv_lib_devmapper_dm_task_set_message=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5 -$as_echo "$ac_cv_lib_devmapper_dm_task_set_message" >&6; } -if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDEVMAPPER 1 -_ACEOF - - LIBS="-ldevmapper $LIBS" - -else - as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5 -fi - - DEVMAPPER_LIBS=$LIBS - -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5 -$as_echo_n "checking for dm_task_set_name in -ldevmapper... " >&6; } -if ${ac_cv_lib_devmapper_dm_task_set_name+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldevmapper $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dm_task_set_name (); -int -main () -{ -return dm_task_set_name (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_devmapper_dm_task_set_name=yes -else - ac_cv_lib_devmapper_dm_task_set_name=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5 -$as_echo "$ac_cv_lib_devmapper_dm_task_set_name" >&6; } -if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDEVMAPPER 1 -_ACEOF - - LIBS="-ldevmapper $LIBS" - -else - as_fn_error $? "You need the device-mapper library." "$LINENO" 5 -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5 -$as_echo_n "checking for dm_task_set_message in -ldevmapper... " >&6; } -if ${ac_cv_lib_devmapper_dm_task_set_message+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldevmapper $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dm_task_set_message (); -int -main () -{ -return dm_task_set_message (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_devmapper_dm_task_set_message=yes -else - ac_cv_lib_devmapper_dm_task_set_message=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5 -$as_echo "$ac_cv_lib_devmapper_dm_task_set_message" >&6; } -if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDEVMAPPER 1 -_ACEOF - - LIBS="-ldevmapper $LIBS" - -else - as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5 -fi - - DEVMAPPER_LIBS=$LIBS - -else - DEVMAPPER_CFLAGS=$pkg_cv_DEVMAPPER_CFLAGS - DEVMAPPER_LIBS=$pkg_cv_DEVMAPPER_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi -LIBS=$saved_LIBS - -LIBS="$LIBS $DEVMAPPER_LIBS" -ac_fn_c_check_decl "$LINENO" "dm_task_secure_data" "ac_cv_have_decl_dm_task_secure_data" "#include -" -if test "x$ac_cv_have_decl_dm_task_secure_data" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_DM_TASK_SECURE_DATA $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "dm_task_retry_remove" "ac_cv_have_decl_dm_task_retry_remove" "#include -" -if test "x$ac_cv_have_decl_dm_task_retry_remove" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_DM_TASK_RETRY_REMOVE $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "DM_UDEV_DISABLE_DISK_RULES_FLAG" "ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" "#include -" -if test "x$ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG $ac_have_decl -_ACEOF -if test $ac_have_decl = 1; then : - have_cookie=yes -else - have_cookie=no -fi - -if test "x$enable_udev" = xyes; then - if test "x$have_cookie" = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&5 -$as_echo "$as_me: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&2;} - else - -$as_echo "#define USE_UDEV 1" >>confdefs.h - - fi -fi -LIBS=$saved_LIBS - - -# Check whether --with-crypto_backend was given. -if test "${with_crypto_backend+set}" = set; then : - withval=$with_crypto_backend; -else - with_crypto_backend=gcrypt - -fi - - -# Check whether --enable-kernel_crypto was given. -if test "${enable_kernel_crypto+set}" = set; then : - enableval=$enable_kernel_crypto; with_kernel_crypto=$enableval -else - with_kernel_crypto=yes -fi - - -if test "x$with_kernel_crypto" = "xyes"; then - for ac_header in linux/if_alg.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default" -if test "x$ac_cv_header_linux_if_alg_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LINUX_IF_ALG_H 1 -_ACEOF - -else - as_fn_error $? "You need Linux kernel headers with userspace crypto interface. (Or use --disable-kernel_crypto.)" "$LINENO" 5 -fi - -done - - -$as_echo "#define ENABLE_AF_ALG 1" >>confdefs.h - -fi - -case $with_crypto_backend in - gcrypt) - if test "x$with_fips" = "xyes"; then - GCRYPT_REQ_VERSION=1.4.5 - else - GCRYPT_REQ_VERSION=1.1.42 - fi - # Check whether --enable-gcrypt-pbkdf2 was given. -if test "${enable_gcrypt_pbkdf2+set}" = set; then : - enableval=$enable_gcrypt_pbkdf2; if test "x$enableval" = "xyes"; then - use_internal_pbkdf2=0 - else - use_internal_pbkdf2=1 - fi -else - - -# Check whether --with-libgcrypt-prefix was given. -if test "${with_libgcrypt_prefix+set}" = set; then : - withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" -else - libgcrypt_config_prefix="" -fi - - if test x$libgcrypt_config_prefix != x ; then - if test x${LIBGCRYPT_CONFIG+set} != xset ; then - LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config - fi - fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $LIBGCRYPT_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG -if test -n "$LIBGCRYPT_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 -$as_echo "$LIBGCRYPT_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then - ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG - # Extract the first word of "libgcrypt-config", so it can be a program name with args. -set dummy libgcrypt-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_LIBGCRYPT_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG -if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5 -$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then - LIBGCRYPT_CONFIG="no" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG - fi -else - LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG" -fi - - tmp=1.6.1 - if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then - req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` - min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` - else - req_libgcrypt_api=0 - min_libgcrypt_version="$tmp" - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 -$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; } - ok=no - if test "$LIBGCRYPT_CONFIG" != "no" ; then - req_major=`echo $min_libgcrypt_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` - req_minor=`echo $min_libgcrypt_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` - req_micro=`echo $min_libgcrypt_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` - libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` - major=`echo $libgcrypt_config_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` - minor=`echo $libgcrypt_config_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` - micro=`echo $libgcrypt_config_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` - if test "$major" -gt "$req_major"; then - ok=yes - else - if test "$major" -eq "$req_major"; then - if test "$minor" -gt "$req_minor"; then - ok=yes - else - if test "$minor" -eq "$req_minor"; then - if test "$micro" -ge "$req_micro"; then - ok=yes - fi - fi - fi - fi - fi - fi - if test $ok = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5 -$as_echo "yes ($libgcrypt_config_version)" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - fi - if test $ok = yes; then - # If we have a recent libgcrypt, we should also check that the - # API is compatible - if test "$req_libgcrypt_api" -gt 0 ; then - tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` - if test "$tmp" -gt 0 ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5 -$as_echo_n "checking LIBGCRYPT API version... " >&6; } - if test "$req_libgcrypt_api" -eq "$tmp" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 -$as_echo "okay" >&6; } - else - ok=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5 -$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; } - fi - fi - fi - fi - if test $ok = yes; then - LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` - LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` - use_internal_pbkdf2=0 - libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` - if test x"$libgcrypt_config_host" != xnone ; then - if test x"$libgcrypt_config_host" != x"$host" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -*** -*** The config script $LIBGCRYPT_CONFIG was -*** built for $libgcrypt_config_host and thus may not match the -*** used host $host. -*** You may want to use the configure option --with-libgcrypt-prefix -*** to specify a matching config script. -***" >&5 -$as_echo "$as_me: WARNING: -*** -*** The config script $LIBGCRYPT_CONFIG was -*** built for $libgcrypt_config_host and thus may not match the -*** used host $host. -*** You may want to use the configure option --with-libgcrypt-prefix -*** to specify a matching config script. -***" >&2;} - fi - fi - else - LIBGCRYPT_CFLAGS="" - LIBGCRYPT_LIBS="" - use_internal_pbkdf2=1 - fi - - - -fi - - - -# Check whether --with-libgcrypt-prefix was given. -if test "${with_libgcrypt_prefix+set}" = set; then : - withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" -else - libgcrypt_config_prefix="" -fi - - if test x$libgcrypt_config_prefix != x ; then - if test x${LIBGCRYPT_CONFIG+set} != xset ; then - LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config - fi - fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $LIBGCRYPT_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG -if test -n "$LIBGCRYPT_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 -$as_echo "$LIBGCRYPT_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then - ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG - # Extract the first word of "libgcrypt-config", so it can be a program name with args. -set dummy libgcrypt-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_LIBGCRYPT_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG -if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5 -$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then - LIBGCRYPT_CONFIG="no" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG - fi -else - LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG" -fi - - tmp=$GCRYPT_REQ_VERSION - if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then - req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` - min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` - else - req_libgcrypt_api=0 - min_libgcrypt_version="$tmp" - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 -$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; } - ok=no - if test "$LIBGCRYPT_CONFIG" != "no" ; then - req_major=`echo $min_libgcrypt_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` - req_minor=`echo $min_libgcrypt_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` - req_micro=`echo $min_libgcrypt_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` - libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` - major=`echo $libgcrypt_config_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` - minor=`echo $libgcrypt_config_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` - micro=`echo $libgcrypt_config_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` - if test "$major" -gt "$req_major"; then - ok=yes - else - if test "$major" -eq "$req_major"; then - if test "$minor" -gt "$req_minor"; then - ok=yes - else - if test "$minor" -eq "$req_minor"; then - if test "$micro" -ge "$req_micro"; then - ok=yes - fi - fi - fi - fi - fi - fi - if test $ok = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5 -$as_echo "yes ($libgcrypt_config_version)" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - fi - if test $ok = yes; then - # If we have a recent libgcrypt, we should also check that the - # API is compatible - if test "$req_libgcrypt_api" -gt 0 ; then - tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` - if test "$tmp" -gt 0 ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5 -$as_echo_n "checking LIBGCRYPT API version... " >&6; } - if test "$req_libgcrypt_api" -eq "$tmp" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 -$as_echo "okay" >&6; } - else - ok=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5 -$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; } - fi - fi - fi - fi - if test $ok = yes; then - LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` - LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` - : - libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` - if test x"$libgcrypt_config_host" != xnone ; then - if test x"$libgcrypt_config_host" != x"$host" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -*** -*** The config script $LIBGCRYPT_CONFIG was -*** built for $libgcrypt_config_host and thus may not match the -*** used host $host. -*** You may want to use the configure option --with-libgcrypt-prefix -*** to specify a matching config script. -***" >&5 -$as_echo "$as_me: WARNING: -*** -*** The config script $LIBGCRYPT_CONFIG was -*** built for $libgcrypt_config_host and thus may not match the -*** used host $host. -*** You may want to use the configure option --with-libgcrypt-prefix -*** to specify a matching config script. -***" >&2;} - fi - fi - else - LIBGCRYPT_CFLAGS="" - LIBGCRYPT_LIBS="" - as_fn_error $? "You need the gcrypt library." "$LINENO" 5 - fi - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if internal cryptsetup PBKDF2 is compiled-in" >&5 -$as_echo_n "checking if internal cryptsetup PBKDF2 is compiled-in... " >&6; } - if test $use_internal_pbkdf2 = 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - - if test "x$with_fips" = "xyes"; then - as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5 - fi - - fi - - if test x$enable_static_cryptsetup = xyes; then - saved_LIBS=$LIBS - LIBS="$saved_LIBS $LIBGCRYPT_LIBS -static" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5 -$as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; } -if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lgcrypt -lgpg-error $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char gcry_check_version (); -int -main () -{ -return gcry_check_version (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_gcrypt_gcry_check_version=yes -else - ac_cv_lib_gcrypt_gcry_check_version=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5 -$as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; } -if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGCRYPT 1 -_ACEOF - - LIBS="-lgcrypt $LIBS" - -else - as_fn_error $? "Cannot find static gcrypt library." "$LINENO" 5 -fi - - LIBGCRYPT_STATIC_LIBS="$LIBGCRYPT_LIBS -lgpg-error" - LIBS=$saved_LIBS - fi - - CRYPTO_CFLAGS=$LIBGCRYPT_CFLAGS - CRYPTO_LIBS=$LIBGCRYPT_LIBS - CRYPTO_STATIC_LIBS=$LIBGCRYPT_STATIC_LIBS - - -cat >>confdefs.h <<_ACEOF -#define GCRYPT_REQ_VERSION "$GCRYPT_REQ_VERSION" -_ACEOF - - ;; - openssl) - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 -$as_echo_n "checking for OPENSSL... " >&6; } - -if test -n "$OPENSSL_CFLAGS"; then - pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5 - ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$OPENSSL_LIBS"; then - pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5 - ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1` - else - OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$OPENSSL_PKG_ERRORS" >&5 - - as_fn_error $? "You need openssl library." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - as_fn_error $? "You need openssl library." "$LINENO" 5 -else - OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS - OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - CRYPTO_CFLAGS=$OPENSSL_CFLAGS - CRYPTO_LIBS=$OPENSSL_LIBS - use_internal_pbkdf2=0 - - if test x$enable_static_cryptsetup = xyes; then - saved_PKG_CONFIG=$PKG_CONFIG - PKG_CONFIG="$PKG_CONFIG --static" - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_STATIC" >&5 -$as_echo_n "checking for OPENSSL_STATIC... " >&6; } - -if test -n "$OPENSSL_STATIC_CFLAGS"; then - pkg_cv_OPENSSL_STATIC_CFLAGS="$OPENSSL_STATIC_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 - ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_OPENSSL_STATIC_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$OPENSSL_STATIC_LIBS"; then - pkg_cv_OPENSSL_STATIC_LIBS="$OPENSSL_STATIC_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 - ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_OPENSSL_STATIC_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` - else - OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$OPENSSL_STATIC_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (openssl) were not met: - -$OPENSSL_STATIC_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS -and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS -and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - OPENSSL_STATIC_CFLAGS=$pkg_cv_OPENSSL_STATIC_CFLAGS - OPENSSL_STATIC_LIBS=$pkg_cv_OPENSSL_STATIC_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - CRYPTO_STATIC_LIBS=$OPENSSL_STATIC_LIBS - PKG_CONFIG=$saved_PKG_CONFIG - fi - - if test "x$with_fips" = "xyes"; then - as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5 - fi - - ;; - nss) - if test x$enable_static_cryptsetup = xyes; then - as_fn_error $? "Static build of cryptsetup is not supported with NSS." "$LINENO" 5 - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&5 -$as_echo "$as_me: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&2;} - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5 -$as_echo_n "checking for NSS... " >&6; } - -if test -n "$NSS_CFLAGS"; then - pkg_cv_NSS_CFLAGS="$NSS_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5 - ($PKG_CONFIG --exists --print-errors "nss") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$NSS_LIBS"; then - pkg_cv_NSS_LIBS="$NSS_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5 - ($PKG_CONFIG --exists --print-errors "nss") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1` - else - NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$NSS_PKG_ERRORS" >&5 - - as_fn_error $? "You need nss library." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - as_fn_error $? "You need nss library." "$LINENO" 5 -else - NSS_CFLAGS=$pkg_cv_NSS_CFLAGS - NSS_LIBS=$pkg_cv_NSS_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - saved_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS $NSS_CFLAGS" - ac_fn_c_check_decl "$LINENO" "NSS_GetVersion" "ac_cv_have_decl_NSS_GetVersion" "#include -" -if test "x$ac_cv_have_decl_NSS_GetVersion" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_NSS_GETVERSION $ac_have_decl -_ACEOF - - CFLAGS=$saved_CFLAGS - - CRYPTO_CFLAGS=$NSS_CFLAGS - CRYPTO_LIBS=$NSS_LIBS - use_internal_pbkdf2=1 - - if test "x$with_fips" = "xyes"; then - as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5 - fi - - ;; - kernel) - for ac_header in linux/if_alg.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default" -if test "x$ac_cv_header_linux_if_alg_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LINUX_IF_ALG_H 1 -_ACEOF - -else - as_fn_error $? "You need Linux kernel headers with userspace crypto interface." "$LINENO" 5 -fi - -done - -# AC_CHECK_DECLS([AF_ALG],, -# [AC_MSG_ERROR([You need Linux kernel with userspace crypto interface.])], -# [#include ]) - use_internal_pbkdf2=1 - - if test "x$with_fips" = "xyes"; then - as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5 - fi - - ;; - nettle) - for ac_header in nettle/sha.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default" -if test "x$ac_cv_header_nettle_sha_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_NETTLE_SHA_H 1 -_ACEOF - -else - as_fn_error $? "You need Nettle cryptographic library." "$LINENO" 5 -fi - -done - - - saved_LIBS=$LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_pbkdf2_hmac_sha256 in -lnettle" >&5 -$as_echo_n "checking for nettle_pbkdf2_hmac_sha256 in -lnettle... " >&6; } -if ${ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lnettle $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char nettle_pbkdf2_hmac_sha256 (); -int -main () -{ -return nettle_pbkdf2_hmac_sha256 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=yes -else - ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&5 -$as_echo "$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&6; } -if test "x$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBNETTLE 1 -_ACEOF - - LIBS="-lnettle $LIBS" - -else - as_fn_error $? "You need Nettle library version 2.6 or more recent." "$LINENO" 5 -fi - - CRYPTO_LIBS=$LIBS - LIBS=$saved_LIBS - - CRYPTO_STATIC_LIBS=$CRYPTO_LIBS - use_internal_pbkdf2=0 - - if test "x$with_fips" = "xyes"; then - as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5 - fi - - ;; - *) as_fn_error $? "Unknown crypto backend." "$LINENO" 5 ;; -esac - if test $with_crypto_backend = gcrypt; then - CRYPTO_BACKEND_GCRYPT_TRUE= - CRYPTO_BACKEND_GCRYPT_FALSE='#' -else - CRYPTO_BACKEND_GCRYPT_TRUE='#' - CRYPTO_BACKEND_GCRYPT_FALSE= -fi - - if test $with_crypto_backend = openssl; then - CRYPTO_BACKEND_OPENSSL_TRUE= - CRYPTO_BACKEND_OPENSSL_FALSE='#' -else - CRYPTO_BACKEND_OPENSSL_TRUE='#' - CRYPTO_BACKEND_OPENSSL_FALSE= -fi - - if test $with_crypto_backend = nss; then - CRYPTO_BACKEND_NSS_TRUE= - CRYPTO_BACKEND_NSS_FALSE='#' -else - CRYPTO_BACKEND_NSS_TRUE='#' - CRYPTO_BACKEND_NSS_FALSE= -fi - - if test $with_crypto_backend = kernel; then - CRYPTO_BACKEND_KERNEL_TRUE= - CRYPTO_BACKEND_KERNEL_FALSE='#' -else - CRYPTO_BACKEND_KERNEL_TRUE='#' - CRYPTO_BACKEND_KERNEL_FALSE= -fi - - if test $with_crypto_backend = nettle; then - CRYPTO_BACKEND_NETTLE_TRUE= - CRYPTO_BACKEND_NETTLE_FALSE='#' -else - CRYPTO_BACKEND_NETTLE_TRUE='#' - CRYPTO_BACKEND_NETTLE_FALSE= -fi - - - if test $use_internal_pbkdf2 = 1; then - CRYPTO_INTERNAL_PBKDF2_TRUE= - CRYPTO_INTERNAL_PBKDF2_FALSE='#' -else - CRYPTO_INTERNAL_PBKDF2_TRUE='#' - CRYPTO_INTERNAL_PBKDF2_FALSE= -fi - - -cat >>confdefs.h <<_ACEOF -#define USE_INTERNAL_PBKDF2 $use_internal_pbkdf2 -_ACEOF - - -if test x$enable_static_cryptsetup = xyes; then - saved_PKG_CONFIG=$PKG_CONFIG - PKG_CONFIG="$PKG_CONFIG --static" - - LIBS="$saved_LIBS -static" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5 -$as_echo_n "checking for poptGetContext in -lpopt... " >&6; } -if ${ac_cv_lib_popt_poptGetContext+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpopt $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char poptGetContext (); -int -main () -{ -return poptGetContext (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_popt_poptGetContext=yes -else - ac_cv_lib_popt_poptGetContext=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5 -$as_echo "$ac_cv_lib_popt_poptGetContext" >&6; } -if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBPOPT 1 -_ACEOF - - LIBS="-lpopt $LIBS" - -else - as_fn_error $? "Cannot find static popt library." "$LINENO" 5 -fi - - - LIBS="$saved_LIBS -static" - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEVMAPPER_STATIC" >&5 -$as_echo_n "checking for DEVMAPPER_STATIC... " >&6; } - -if test -n "$DEVMAPPER_STATIC_CFLAGS"; then - pkg_cv_DEVMAPPER_STATIC_CFLAGS="$DEVMAPPER_STATIC_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5 - ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_DEVMAPPER_STATIC_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.27" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$DEVMAPPER_STATIC_LIBS"; then - pkg_cv_DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5 - ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_DEVMAPPER_STATIC_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.27" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1` - else - DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$DEVMAPPER_STATIC_PKG_ERRORS" >&5 - - - DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS - if test "x$enable_selinux" != xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5 -$as_echo_n "checking for sepol_bool_set in -lsepol... " >&6; } -if ${ac_cv_lib_sepol_sepol_bool_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsepol $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sepol_bool_set (); -int -main () -{ -return sepol_bool_set (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_sepol_sepol_bool_set=yes -else - ac_cv_lib_sepol_sepol_bool_set=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5 -$as_echo "$ac_cv_lib_sepol_sepol_bool_set" >&6; } -if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSEPOL 1 -_ACEOF - - LIBS="-lsepol $LIBS" - -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 -$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } -if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lselinux $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char is_selinux_enabled (); -int -main () -{ -return is_selinux_enabled (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_selinux_is_selinux_enabled=yes -else - ac_cv_lib_selinux_is_selinux_enabled=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 -$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } -if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSELINUX 1 -_ACEOF - - LIBS="-lselinux $LIBS" - -fi - - DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS" - fi - -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - - DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS - if test "x$enable_selinux" != xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5 -$as_echo_n "checking for sepol_bool_set in -lsepol... " >&6; } -if ${ac_cv_lib_sepol_sepol_bool_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsepol $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sepol_bool_set (); -int -main () -{ -return sepol_bool_set (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_sepol_sepol_bool_set=yes -else - ac_cv_lib_sepol_sepol_bool_set=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5 -$as_echo "$ac_cv_lib_sepol_sepol_bool_set" >&6; } -if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSEPOL 1 -_ACEOF - - LIBS="-lsepol $LIBS" - -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 -$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } -if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lselinux $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char is_selinux_enabled (); -int -main () -{ -return is_selinux_enabled (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_selinux_is_selinux_enabled=yes -else - ac_cv_lib_selinux_is_selinux_enabled=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 -$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } -if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSELINUX 1 -_ACEOF - - LIBS="-lselinux $LIBS" - -fi - - DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS" - fi - -else - DEVMAPPER_STATIC_CFLAGS=$pkg_cv_DEVMAPPER_STATIC_CFLAGS - DEVMAPPER_STATIC_LIBS=$pkg_cv_DEVMAPPER_STATIC_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - LIBS="$saved_LIBS $DEVMAPPER_STATIC_LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_uuid in -ldevmapper" >&5 -$as_echo_n "checking for dm_task_set_uuid in -ldevmapper... " >&6; } -if ${ac_cv_lib_devmapper_dm_task_set_uuid+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldevmapper $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dm_task_set_uuid (); -int -main () -{ -return dm_task_set_uuid (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_devmapper_dm_task_set_uuid=yes -else - ac_cv_lib_devmapper_dm_task_set_uuid=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_uuid" >&5 -$as_echo "$ac_cv_lib_devmapper_dm_task_set_uuid" >&6; } -if test "x$ac_cv_lib_devmapper_dm_task_set_uuid" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDEVMAPPER 1 -_ACEOF - - LIBS="-ldevmapper $LIBS" - -else - as_fn_error $? "Cannot link with static device-mapper library." "$LINENO" 5 -fi - - - LIBS="$saved_LIBS -static" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 -$as_echo_n "checking for uuid_generate in -luuid... " >&6; } -if ${ac_cv_lib_uuid_uuid_generate+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-luuid $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char uuid_generate (); -int -main () -{ -return uuid_generate (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_uuid_uuid_generate=yes -else - ac_cv_lib_uuid_uuid_generate=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 -$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } -if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBUUID 1 -_ACEOF - - LIBS="-luuid $LIBS" - -else - as_fn_error $? "Cannot find static uuid library." "$LINENO" 5 -fi - - - LIBS=$saved_LIBS - PKG_CONFIG=$saved_PKG_CONFIG -fi - - - - - - - - - - - - - - -# Check whether --enable-dev-random was given. -if test "${enable_dev_random+set}" = set; then : - enableval=$enable_dev_random; default_rng=/dev/random -else - default_rng=/dev/urandom -fi - - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_RNG "$default_rng" -_ACEOF - - - - - - - - -# Check whether --enable-python was given. -if test "${enable_python+set}" = set; then : - enableval=$enable_python; with_python=$enableval -else - with_python=no -fi - - - -# Check whether --with-python_version was given. -if test "${with_python_version+set}" = set; then : - withval=$with_python_version; PYTHON_VERSION=$withval -else - PYTHON_VERSION=2.6 -fi - - -if test "x$with_python" = "xyes"; then - - - - - - - if test -n "$PYTHON"; then - # If the user set $PYTHON, use it and don't search something else. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= $PYTHON_VERSION" >&5 -$as_echo_n "checking whether $PYTHON version is >= $PYTHON_VERSION... " >&6; } - prog="import sys -# split strings by '.' and convert to numeric. Append some zeros -# because we need at least 4 digits for the hex conversion. -# map returns an iterator in Python 3.0 and a list in 2.x -minver = list(map(int, '$PYTHON_VERSION'.split('.'))) + [0, 0, 0] -minverhex = 0 -# xrange is not present in Python 3.0 and range returns an iterator -for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] -sys.exit(sys.hexversion < minverhex)" - if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 - ($PYTHON -c "$prog") >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - as_fn_error $? "Python interpreter is too old" "$LINENO" 5 -fi - am_display_PYTHON=$PYTHON - else - # Otherwise, try each interpreter until we find one that satisfies - # VERSION. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= $PYTHON_VERSION" >&5 -$as_echo_n "checking for a Python interpreter with version >= $PYTHON_VERSION... " >&6; } -if ${am_cv_pathless_PYTHON+:} false; then : - $as_echo_n "(cached) " >&6 -else - - for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do - test "$am_cv_pathless_PYTHON" = none && break - prog="import sys -# split strings by '.' and convert to numeric. Append some zeros -# because we need at least 4 digits for the hex conversion. -# map returns an iterator in Python 3.0 and a list in 2.x -minver = list(map(int, '$PYTHON_VERSION'.split('.'))) + [0, 0, 0] -minverhex = 0 -# xrange is not present in Python 3.0 and range returns an iterator -for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] -sys.exit(sys.hexversion < minverhex)" - if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 - ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then : - break -fi - done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 -$as_echo "$am_cv_pathless_PYTHON" >&6; } - # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. - if test "$am_cv_pathless_PYTHON" = none; then - PYTHON=: - else - # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. -set dummy $am_cv_pathless_PYTHON; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PYTHON+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PYTHON in - [\\/]* | ?:[\\/]*) - ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -PYTHON=$ac_cv_path_PYTHON -if test -n "$PYTHON"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 -$as_echo "$PYTHON" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi - am_display_PYTHON=$am_cv_pathless_PYTHON - fi - - - if test "$PYTHON" = :; then - as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 - else - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 -$as_echo_n "checking for $am_display_PYTHON version... " >&6; } -if ${am_cv_python_version+:} false; then : - $as_echo_n "(cached) " >&6 -else - am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 -$as_echo "$am_cv_python_version" >&6; } - PYTHON_VERSION=$am_cv_python_version - - - - PYTHON_PREFIX='${prefix}' - - PYTHON_EXEC_PREFIX='${exec_prefix}' - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 -$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } -if ${am_cv_python_platform+:} false; then : - $as_echo_n "(cached) " >&6 -else - am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 -$as_echo "$am_cv_python_platform" >&6; } - PYTHON_PLATFORM=$am_cv_python_platform - - - # Just factor out some code duplication. - am_python_setup_sysconfig="\ -import sys -# Prefer sysconfig over distutils.sysconfig, for better compatibility -# with python 3.x. See automake bug#10227. -try: - import sysconfig -except ImportError: - can_use_sysconfig = 0 -else: - can_use_sysconfig = 1 -# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: -# -try: - from platform import python_implementation - if python_implementation() == 'CPython' and sys.version[:3] == '2.7': - can_use_sysconfig = 0 -except ImportError: - pass" - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 -$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } -if ${am_cv_python_pythondir+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$prefix" = xNONE - then - am_py_prefix=$ac_default_prefix - else - am_py_prefix=$prefix - fi - am_cv_python_pythondir=`$PYTHON -c " -$am_python_setup_sysconfig -if can_use_sysconfig: - sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) -else: - from distutils import sysconfig - sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') -sys.stdout.write(sitedir)"` - case $am_cv_python_pythondir in - $am_py_prefix*) - am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` - am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` - ;; - *) - case $am_py_prefix in - /usr|/System*) ;; - *) - am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages - ;; - esac - ;; - esac - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 -$as_echo "$am_cv_python_pythondir" >&6; } - pythondir=$am_cv_python_pythondir - - - - pkgpythondir=\${pythondir}/$PACKAGE - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 -$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } -if ${am_cv_python_pyexecdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$exec_prefix" = xNONE - then - am_py_exec_prefix=$am_py_prefix - else - am_py_exec_prefix=$exec_prefix - fi - am_cv_python_pyexecdir=`$PYTHON -c " -$am_python_setup_sysconfig -if can_use_sysconfig: - sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) -else: - from distutils import sysconfig - sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') -sys.stdout.write(sitedir)"` - case $am_cv_python_pyexecdir in - $am_py_exec_prefix*) - am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` - am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` - ;; - *) - case $am_py_exec_prefix in - /usr|/System*) ;; - *) - am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages - ;; - esac - ;; - esac - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 -$as_echo "$am_cv_python_pyexecdir" >&6; } - pyexecdir=$am_cv_python_pyexecdir - - - - pkgpyexecdir=\${pyexecdir}/$PACKAGE - - - - fi - - - - if ! test -x "$PYTHON-config" ; then - as_fn_error $? "Cannot find python development packages to build bindings" "$LINENO" 5 - fi - - PYTHON_INCLUDES=$($PYTHON-config --includes) - - - PYTHON_LIBS=$($PYTHON-config --libs) - -fi - if test "x$with_python" = "xyes"; then - PYTHON_CRYPTSETUP_TRUE= - PYTHON_CRYPTSETUP_FALSE='#' -else - PYTHON_CRYPTSETUP_TRUE='#' - PYTHON_CRYPTSETUP_FALSE= -fi - - - -# Check whether --with-plain-hash was given. -if test "${with_plain_hash+set}" = set; then : - withval=$with_plain_hash; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_PLAIN_HASH "$withval" -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_PLAIN_HASH "ripemd160" -_ACEOF - - - -fi - - -# Check whether --with-plain-cipher was given. -if test "${with_plain_cipher+set}" = set; then : - withval=$with_plain_cipher; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_PLAIN_CIPHER "$withval" -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_PLAIN_CIPHER "aes" -_ACEOF - - - -fi - - -# Check whether --with-plain-mode was given. -if test "${with_plain_mode+set}" = set; then : - withval=$with_plain_mode; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_PLAIN_MODE "$withval" -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_PLAIN_MODE "cbc-essiv:sha256" -_ACEOF - - - -fi - - -# Check whether --with-plain-keybits was given. -if test "${with_plain_keybits+set}" = set; then : - withval=$with_plain_keybits; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_PLAIN_KEYBITS $withval -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_PLAIN_KEYBITS 256 -_ACEOF - - - -fi - - - -# Check whether --with-luks1-hash was given. -if test "${with_luks1_hash+set}" = set; then : - withval=$with_luks1_hash; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LUKS1_HASH "$withval" -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LUKS1_HASH "sha1" -_ACEOF - - - -fi - - -# Check whether --with-luks1-cipher was given. -if test "${with_luks1_cipher+set}" = set; then : - withval=$with_luks1_cipher; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LUKS1_CIPHER "$withval" -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LUKS1_CIPHER "aes" -_ACEOF - - - -fi - - -# Check whether --with-luks1-mode was given. -if test "${with_luks1_mode+set}" = set; then : - withval=$with_luks1_mode; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LUKS1_MODE "$withval" -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LUKS1_MODE "xts-plain64" -_ACEOF - - - -fi - - -# Check whether --with-luks1-keybits was given. -if test "${with_luks1_keybits+set}" = set; then : - withval=$with_luks1_keybits; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LUKS1_KEYBITS $withval -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LUKS1_KEYBITS 256 -_ACEOF - - - -fi - - -# Check whether --with-luks1-iter-time was given. -if test "${with_luks1_iter_time+set}" = set; then : - withval=$with_luks1_iter_time; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LUKS1_ITER_TIME $withval -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LUKS1_ITER_TIME 1000 -_ACEOF - - - -fi - - - -# Check whether --with-loopaes-cipher was given. -if test "${with_loopaes_cipher+set}" = set; then : - withval=$with_loopaes_cipher; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LOOPAES_CIPHER "$withval" -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LOOPAES_CIPHER "aes" -_ACEOF - - - -fi - - -# Check whether --with-loopaes-keybits was given. -if test "${with_loopaes_keybits+set}" = set; then : - withval=$with_loopaes_keybits; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LOOPAES_KEYBITS $withval -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_LOOPAES_KEYBITS 256 -_ACEOF - - - -fi - - - -# Check whether --with-keyfile-size-maxkb was given. -if test "${with_keyfile_size_maxkb+set}" = set; then : - withval=$with_keyfile_size_maxkb; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_KEYFILE_SIZE_MAXKB $withval -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_KEYFILE_SIZE_MAXKB 8192 -_ACEOF - - - -fi - - -# Check whether --with-passphrase-size-max was given. -if test "${with_passphrase_size_max+set}" = set; then : - withval=$with_passphrase_size_max; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_PASSPHRASE_SIZE_MAX $withval -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_PASSPHRASE_SIZE_MAX 512 -_ACEOF - - - -fi - - - -# Check whether --with-verity-hash was given. -if test "${with_verity_hash+set}" = set; then : - withval=$with_verity_hash; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_VERITY_HASH "$withval" -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_VERITY_HASH "sha256" -_ACEOF - - - -fi - - -# Check whether --with-verity-data-block was given. -if test "${with_verity_data_block+set}" = set; then : - withval=$with_verity_data_block; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_VERITY_DATA_BLOCK $withval -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_VERITY_DATA_BLOCK 4096 -_ACEOF - - - -fi - - -# Check whether --with-verity-hash-block was given. -if test "${with_verity_hash_block+set}" = set; then : - withval=$with_verity_hash_block; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_VERITY_HASH_BLOCK $withval -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_VERITY_HASH_BLOCK 4096 -_ACEOF - - - -fi - - -# Check whether --with-verity-salt-size was given. -if test "${with_verity_salt_size+set}" = set; then : - withval=$with_verity_salt_size; -cat >>confdefs.h <<_ACEOF -#define DEFAULT_VERITY_SALT_SIZE $withval -_ACEOF - - -else - -cat >>confdefs.h <<_ACEOF -#define DEFAULT_VERITY_SALT_SIZE 32 -_ACEOF - - - -fi - - - -ac_config_files="$ac_config_files Makefile lib/Makefile lib/libcryptsetup.pc lib/crypto_backend/Makefile lib/luks1/Makefile lib/loopaes/Makefile lib/verity/Makefile lib/tcrypt/Makefile src/Makefile po/Makefile.in man/Makefile tests/Makefile python/Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \. - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} - if test ! -f "$cache_file" || test -h "$cache_file"; then - cat confcache >"$cache_file" - else - case $cache_file in #( - */* | ?:*) - mv -f confcache "$cache_file"$$ && - mv -f "$cache_file"$$ "$cache_file" ;; #( - *) - mv -f confcache "$cache_file" ;; - esac - fi - fi - else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -DEFS=-DHAVE_CONFIG_H - -ac_libobjs= -ac_ltlibobjs= -U= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" - as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -$as_echo_n "checking that generated files are newer than configure... " >&6; } - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "done" >&6; } - if test -n "$EXEEXT"; then - am__EXEEXT_TRUE= - am__EXEEXT_FALSE='#' -else - am__EXEEXT_TRUE='#' - am__EXEEXT_FALSE= -fi - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - as_fn_error $? "conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - as_fn_error $? "conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - as_fn_error $? "conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi - -if test -z "${STATIC_TOOLS_TRUE}" && test -z "${STATIC_TOOLS_FALSE}"; then - as_fn_error $? "conditional \"STATIC_TOOLS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${VERITYSETUP_TRUE}" && test -z "${VERITYSETUP_FALSE}"; then - as_fn_error $? "conditional \"VERITYSETUP\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${REENCRYPT_TRUE}" && test -z "${REENCRYPT_FALSE}"; then - as_fn_error $? "conditional \"REENCRYPT\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${CRYPTO_BACKEND_GCRYPT_TRUE}" && test -z "${CRYPTO_BACKEND_GCRYPT_FALSE}"; then - as_fn_error $? "conditional \"CRYPTO_BACKEND_GCRYPT\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${CRYPTO_BACKEND_OPENSSL_TRUE}" && test -z "${CRYPTO_BACKEND_OPENSSL_FALSE}"; then - as_fn_error $? "conditional \"CRYPTO_BACKEND_OPENSSL\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${CRYPTO_BACKEND_NSS_TRUE}" && test -z "${CRYPTO_BACKEND_NSS_FALSE}"; then - as_fn_error $? "conditional \"CRYPTO_BACKEND_NSS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${CRYPTO_BACKEND_KERNEL_TRUE}" && test -z "${CRYPTO_BACKEND_KERNEL_FALSE}"; then - as_fn_error $? "conditional \"CRYPTO_BACKEND_KERNEL\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${CRYPTO_BACKEND_NETTLE_TRUE}" && test -z "${CRYPTO_BACKEND_NETTLE_FALSE}"; then - as_fn_error $? "conditional \"CRYPTO_BACKEND_NETTLE\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${CRYPTO_INTERNAL_PBKDF2_TRUE}" && test -z "${CRYPTO_INTERNAL_PBKDF2_FALSE}"; then - as_fn_error $? "conditional \"CRYPTO_INTERNAL_PBKDF2\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${PYTHON_CRYPTSETUP_TRUE}" && test -z "${PYTHON_CRYPTSETUP_FALSE}"; then - as_fn_error $? "conditional \"PYTHON_CRYPTSETUP\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi - -: "${CONFIG_STATUS=./config.status}" -ac_write_fail=0 -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -as_write_fail=0 -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false - -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset -# as_fn_append VAR VALUE -# ---------------------- -# Append the text in VALUE to the end of the definition contained in VAR. Take -# advantage of any shell optimizations that allow amortized linear growth over -# repeated appends, instead of the typical quadratic growth present in naive -# implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# Perform arithmetic evaluation on the ARGs, and store the result in the -# global $as_val. Take advantage of shells that can avoid forks. The arguments -# must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 -## ----------------------------------- ## -## Main body of $CONFIG_STATUS script. ## -## ----------------------------------- ## -_ASEOF -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# Save the log message, to keep $0 and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by cryptsetup $as_me 1.6.7, which was -generated by GNU Autoconf 2.69. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -case $ac_config_files in *" -"*) set x $ac_config_files; shift; ac_config_files=$*;; -esac - -case $ac_config_headers in *" -"*) set x $ac_config_headers; shift; ac_config_headers=$*;; -esac - - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# Files that config.status was made for. -config_files="$ac_config_files" -config_headers="$ac_config_headers" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions -from templates according to the current configuration. Unless the files -and actions are specified as TAGs, all are instantiated by default. - -Usage: $0 [OPTION]... [TAG]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - --config print configuration, then exit - -q, --quiet, --silent - do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE - -Configuration files: -$config_files - -Configuration headers: -$config_headers - -Configuration commands: -$config_commands - -Report bugs to the package provider." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" -ac_cs_version="\\ -cryptsetup config.status 1.6.7 -configured by $0, generated by GNU Autoconf 2.69, - with options \\"\$ac_cs_config\\" - -Copyright (C) 2012 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -AWK='$AWK' -test -n "\$AWK" || AWK=awk -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# The default lists apply if the user does not specify any file. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=?*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - --*=) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg= - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; - --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; - '') as_fn_error $? "missing file argument" ;; - esac - as_fn_append CONFIG_FILES " '$ac_optarg'" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - as_fn_append CONFIG_HEADERS " '$ac_optarg'" - ac_need_defaults=false;; - --he | --h) - # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; - --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; - - *) as_fn_append ac_config_targets " $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -if \$ac_cs_recheck; then - set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion - shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 - CONFIG_SHELL='$SHELL' - export CONFIG_SHELL - exec "\$@" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - $as_echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -sed_quote_subst='$sed_quote_subst' -double_quote_subst='$double_quote_subst' -delay_variable_subst='$delay_variable_subst' -enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' -enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' -pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' -enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' -SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' -ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' -PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' -host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' -host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' -host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' -build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' -build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' -build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' -SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' -Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' -GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' -EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' -FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' -LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' -NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' -LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' -max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' -ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' -exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' -lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' -lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' -lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' -lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' -lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' -reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' -reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' -OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' -file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' -file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' -want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' -DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' -sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' -AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' -AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' -archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' -STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' -RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' -old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' -old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' -lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' -CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' -CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' -compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' -GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' -nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' -lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' -objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' -MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' -lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' -need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' -MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' -DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' -NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' -LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' -OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' -libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' -shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' -extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' -archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' -enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' -export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' -whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' -compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' -old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' -old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' -archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' -archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' -module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' -module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' -with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' -allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' -no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' -hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' -hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' -hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' -hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' -hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' -inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' -link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' -always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' -export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' -exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' -include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' -prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' -postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' -file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' -variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' -need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' -version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' -runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' -shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' -shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' -libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' -library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' -soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' -install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' -postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' -postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' -finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' -finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' -hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' -sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' -sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' -hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' -enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' -enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' -enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' -old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' -striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' - -LTCC='$LTCC' -LTCFLAGS='$LTCFLAGS' -compiler='$compiler_DEFAULT' - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$1 -_LTECHO_EOF' -} - -# Quote evaled strings. -for var in SHELL \ -ECHO \ -PATH_SEPARATOR \ -SED \ -GREP \ -EGREP \ -FGREP \ -LD \ -NM \ -LN_S \ -lt_SP2NL \ -lt_NL2SP \ -reload_flag \ -OBJDUMP \ -deplibs_check_method \ -file_magic_cmd \ -file_magic_glob \ -want_nocaseglob \ -DLLTOOL \ -sharedlib_from_linklib_cmd \ -AR \ -AR_FLAGS \ -archiver_list_spec \ -STRIP \ -RANLIB \ -CC \ -CFLAGS \ -compiler \ -lt_cv_sys_global_symbol_pipe \ -lt_cv_sys_global_symbol_to_cdecl \ -lt_cv_sys_global_symbol_to_c_name_address \ -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ -nm_file_list_spec \ -lt_prog_compiler_no_builtin_flag \ -lt_prog_compiler_pic \ -lt_prog_compiler_wl \ -lt_prog_compiler_static \ -lt_cv_prog_compiler_c_o \ -need_locks \ -MANIFEST_TOOL \ -DSYMUTIL \ -NMEDIT \ -LIPO \ -OTOOL \ -OTOOL64 \ -shrext_cmds \ -export_dynamic_flag_spec \ -whole_archive_flag_spec \ -compiler_needs_object \ -with_gnu_ld \ -allow_undefined_flag \ -no_undefined_flag \ -hardcode_libdir_flag_spec \ -hardcode_libdir_separator \ -exclude_expsyms \ -include_expsyms \ -file_list_spec \ -variables_saved_for_relink \ -libname_spec \ -library_names_spec \ -soname_spec \ -install_override_mode \ -finish_eval \ -old_striplib \ -striplib; do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Double-quote double-evaled strings. -for var in reload_cmds \ -old_postinstall_cmds \ -old_postuninstall_cmds \ -old_archive_cmds \ -extract_expsyms_cmds \ -old_archive_from_new_cmds \ -old_archive_from_expsyms_cmds \ -archive_cmds \ -archive_expsym_cmds \ -module_cmds \ -module_expsym_cmds \ -export_symbols_cmds \ -prelink_cmds \ -postlink_cmds \ -postinstall_cmds \ -postuninstall_cmds \ -finish_cmds \ -sys_lib_search_path_spec \ -sys_lib_dlsearch_path_spec; do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -ac_aux_dir='$ac_aux_dir' -xsi_shell='$xsi_shell' -lt_shell_append='$lt_shell_append' - -# See if we are running on zsh, and set the options which allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi - - - PACKAGE='$PACKAGE' - VERSION='$VERSION' - TIMESTAMP='$TIMESTAMP' - RM='$RM' - ofile='$ofile' - - - -# Capture the value of obsolete ALL_LINGUAS because we need it to compute - # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it - # from automake < 1.5. - eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' - # Capture the value of LINGUAS because we need it to compute CATALOGS. - LINGUAS="${LINGUAS-%UNSET%}" - - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; - "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; - "lib/libcryptsetup.pc") CONFIG_FILES="$CONFIG_FILES lib/libcryptsetup.pc" ;; - "lib/crypto_backend/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto_backend/Makefile" ;; - "lib/luks1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/luks1/Makefile" ;; - "lib/loopaes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/loopaes/Makefile" ;; - "lib/verity/Makefile") CONFIG_FILES="$CONFIG_FILES lib/verity/Makefile" ;; - "lib/tcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tcrypt/Makefile" ;; - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; - "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; - "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; - "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; - "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; - - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= ac_tmp= - trap 'exit_status=$? - : "${ac_tmp:=$tmp}" - { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status -' 0 - trap 'as_fn_exit 1' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 -ac_tmp=$tmp - -# Set up the scripts for CONFIG_FILES section. -# No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. -if test -n "$CONFIG_FILES"; then - - -ac_cr=`echo X | tr X '\015'` -# On cygwin, bash can eat \r inside `` if the user requested igncr. -# But we know of no other shell where ac_cr would be empty at this -# point, so we can use a bashism as a fallback. -if test "x$ac_cr" = x; then - eval ac_cr=\$\'\\r\' -fi -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then - ac_cs_awk_cr='\\r' -else - ac_cs_awk_cr=$ac_cr -fi - -echo 'BEGIN {' >"$ac_tmp/subs1.awk" && -_ACEOF - - -{ - echo "cat >conf$$subs.awk <<_ACEOF" && - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && - echo "_ACEOF" -} >conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 -ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - . ./conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - - ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` - if test $ac_delim_n = $ac_delim_num; then - break - elif $ac_last_try; then - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done -rm -f conf$$subs.sh - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && -_ACEOF -sed -n ' -h -s/^/S["/; s/!.*/"]=/ -p -g -s/^[^!]*!// -:repl -t repl -s/'"$ac_delim"'$// -t delim -:nl -h -s/\(.\{148\}\)..*/\1/ -t more1 -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ -p -n -b repl -:more1 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t nl -:delim -h -s/\(.\{148\}\)..*/\1/ -t more2 -s/["\\]/\\&/g; s/^/"/; s/$/"/ -p -b -:more2 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t delim -' >$CONFIG_STATUS || ac_write_fail=1 -rm -f conf$$subs.awk -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -_ACAWK -cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && - for (key in S) S_is_set[key] = 1 - FS = "" - -} -{ - line = $ 0 - nfields = split(line, field, "@") - substed = 0 - len = length(field[1]) - for (i = 2; i < nfields; i++) { - key = field[i] - keylen = length(key) - if (S_is_set[key]) { - value = S[key] - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) - len += length(value) + length(field[++i]) - substed = 1 - } else - len += 1 + keylen - } - - print line -} - -_ACAWK -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" -else - cat -fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ - || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 -_ACEOF - -# VPATH may cause trouble with some makes, so we remove sole $(srcdir), -# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ -h -s/// -s/^/:/ -s/[ ]*$/:/ -s/:\$(srcdir):/:/g -s/:\${srcdir}:/:/g -s/:@srcdir@:/:/g -s/^:*// -s/:*$// -x -s/\(=[ ]*\).*/\1/ -G -s/\n// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -fi # test -n "$CONFIG_FILES" - -# Set up the scripts for CONFIG_HEADERS section. -# No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. -if test -n "$CONFIG_HEADERS"; then -cat >"$ac_tmp/defines.awk" <<\_ACAWK || -BEGIN { -_ACEOF - -# Transform confdefs.h into an awk script `defines.awk', embedded as -# here-document in config.status, that substitutes the proper values into -# config.h.in to produce config.h. - -# Create a delimiter string that does not exist in confdefs.h, to ease -# handling of long lines. -ac_delim='%!_!# ' -for ac_last_try in false false :; do - ac_tt=`sed -n "/$ac_delim/p" confdefs.h` - if test -z "$ac_tt"; then - break - elif $ac_last_try; then - as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -# For the awk script, D is an array of macro values keyed by name, -# likewise P contains macro parameters if any. Preserve backslash -# newline sequences. - -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* -sed -n ' -s/.\{148\}/&'"$ac_delim"'/g -t rset -:rset -s/^[ ]*#[ ]*define[ ][ ]*/ / -t def -d -:def -s/\\$// -t bsnl -s/["\\]/\\&/g -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ -D["\1"]=" \3"/p -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p -d -:bsnl -s/["\\]/\\&/g -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ -D["\1"]=" \3\\\\\\n"\\/p -t cont -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p -t cont -d -:cont -n -s/.\{148\}/&'"$ac_delim"'/g -t clear -:clear -s/\\$// -t bsnlc -s/["\\]/\\&/g; s/^/"/; s/$/"/p -d -:bsnlc -s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p -b cont -' >$CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 - for (key in D) D_is_set[key] = 1 - FS = "" -} -/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { - line = \$ 0 - split(line, arg, " ") - if (arg[1] == "#") { - defundef = arg[2] - mac1 = arg[3] - } else { - defundef = substr(arg[1], 2) - mac1 = arg[2] - } - split(mac1, mac2, "(") #) - macro = mac2[1] - prefix = substr(line, 1, index(line, defundef) - 1) - if (D_is_set[macro]) { - # Preserve the white space surrounding the "#". - print prefix "define", macro P[macro] D[macro] - next - } else { - # Replace #undef with comments. This is necessary, for example, - # in the case of _POSIX_SOURCE, which is predefined and required - # on some systems where configure will not decide to define it. - if (defundef == "undef") { - print "/*", prefix defundef, macro, "*/" - next - } - } -} -{ print } -_ACAWK -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 -fi # test -n "$CONFIG_HEADERS" - - -eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" -shift -for ac_tag -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$ac_tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; - esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac - as_fn_append ac_file_inputs " '$ac_f'" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' - `' by configure.' - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} - fi - # Neutralize special characters interpreted by sed in replacement strings. - case $configure_input in #( - *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | - sed 's/[\\\\&|]/\\\\&/g'`;; #( - *) ac_sed_conf_input=$configure_input;; - esac - - case $ac_tag in - *:-:* | *:-) cat >"$ac_tmp/stdin" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - as_dir="$ac_dir"; as_fn_mkdir_p - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= -ac_sed_dataroot=' -/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p' -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_sed_extra="$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s|@configure_input@|$ac_sed_conf_input|;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@top_build_prefix@&$ac_top_build_prefix&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ - >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ - "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined" >&2;} - - rm -f "$ac_tmp/stdin" - case $ac_file in - -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; - *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; - esac \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - ;; - :H) - # - # CONFIG_HEADER - # - if test x"$ac_file" != x-; then - { - $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" - } >"$ac_tmp/config.h" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} - else - rm -f "$ac_file" - mv "$ac_tmp/config.h" "$ac_file" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - fi - else - $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ - || as_fn_error $? "could not create -" "$LINENO" 5 - fi -# Compute "$ac_file"'s index in $config_headers. -_am_arg="$ac_file" -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $_am_arg | $_am_arg:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || -$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$_am_arg" : 'X\(//\)[^/]' \| \ - X"$_am_arg" : 'X\(//\)$' \| \ - X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$_am_arg" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'`/stamp-h$_am_stamp_count - ;; - - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || { - # Older Autoconf quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac - shift - for mf - do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - as_dir=$dirpart/$fdir; as_fn_mkdir_p - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done - done -} - ;; - "libtool":C) - - # 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 - - cfgfile="${ofile}T" - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 - $RM "$cfgfile" - - cat <<_LT_EOF >> "$cfgfile" -#! $SHELL - -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is part of GNU Libtool. -# -# GNU Libtool is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Libtool; see the file COPYING. If not, a copy -# can be downloaded from http://www.gnu.org/licenses/gpl.html, or -# obtained by writing to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -# The names of the tagged configurations supported by this script. -available_tags="" - -# ### BEGIN LIBTOOL CONFIG - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# What type of objects to build. -pic_mode=$pic_mode - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# An echo program that protects backslashes. -ECHO=$lt_ECHO - -# The PATH separator for the build system. -PATH_SEPARATOR=$lt_PATH_SEPARATOR - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="\$SED -e 1s/^X//" - -# A grep program that handles long lines. -GREP=$lt_GREP - -# An ERE matcher. -EGREP=$lt_EGREP - -# A literal string matcher. -FGREP=$lt_FGREP - -# A BSD- or MS-compatible name lister. -NM=$lt_NM - -# Whether we need soft or hard links. -LN_S=$lt_LN_S - -# What is the maximum length of a command? -max_cmd_len=$max_cmd_len - -# Object file suffix (normally "o"). -objext=$ac_objext - -# Executable file suffix (normally ""). -exeext=$exeext - -# whether the shell understands "unset". -lt_unset=$lt_unset - -# turn spaces into newlines. -SP2NL=$lt_lt_SP2NL - -# turn newlines into spaces. -NL2SP=$lt_lt_NL2SP - -# convert \$build file names to \$host format. -to_host_file_cmd=$lt_cv_to_host_file_cmd - -# convert \$build files to toolchain format. -to_tool_file_cmd=$lt_cv_to_tool_file_cmd - -# An object symbol dumper. -OBJDUMP=$lt_OBJDUMP - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method = "file_magic". -file_magic_cmd=$lt_file_magic_cmd - -# How to find potential files when deplibs_check_method = "file_magic". -file_magic_glob=$lt_file_magic_glob - -# Find potential files using nocaseglob when deplibs_check_method = "file_magic". -want_nocaseglob=$lt_want_nocaseglob - -# DLL creation program. -DLLTOOL=$lt_DLLTOOL - -# Command to associate shared and link libraries. -sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd - -# The archiver. -AR=$lt_AR - -# Flags to create an archive. -AR_FLAGS=$lt_AR_FLAGS - -# How to feed a file listing to the archiver. -archiver_list_spec=$lt_archiver_list_spec - -# A symbol stripping program. -STRIP=$lt_STRIP - -# Commands used to install an old-style archive. -RANLIB=$lt_RANLIB -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Whether to use a lock for old archive extraction. -lock_old_archive_extraction=$lock_old_archive_extraction - -# A C compiler. -LTCC=$lt_CC - -# LTCC compiler flags. -LTCFLAGS=$lt_CFLAGS - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# Transform the output of nm in a C name address pair when lib prefix is needed. -global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix - -# Specify filename containing input files for \$NM. -nm_file_list_spec=$lt_nm_file_list_spec - -# The root where to search for dependent libraries,and in which our libraries should be installed. -lt_sysroot=$lt_sysroot - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# Used to examine libraries when file_magic_cmd begins with "file". -MAGIC_CMD=$MAGIC_CMD - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Manifest tool. -MANIFEST_TOOL=$lt_MANIFEST_TOOL - -# Tool to manipulate archived DWARF debug symbol files on Mac OS X. -DSYMUTIL=$lt_DSYMUTIL - -# Tool to change global to local symbols on Mac OS X. -NMEDIT=$lt_NMEDIT - -# Tool to manipulate fat objects and archives on Mac OS X. -LIPO=$lt_LIPO - -# ldd/readelf like tool for Mach-O binaries on Mac OS X. -OTOOL=$lt_OTOOL - -# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. -OTOOL64=$lt_OTOOL64 - -# Old archive suffix (normally "a"). -libext=$libext - -# Shared library suffix (normally ".so"). -shrext_cmds=$lt_shrext_cmds - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at link time. -variables_saved_for_relink=$lt_variables_saved_for_relink - -# Do we need the "lib" prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Library versioning type. -version_type=$version_type - -# Shared library runtime path variable. -runpath_var=$runpath_var - -# Shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Permission mode override for installation of shared libraries. -install_override_mode=$lt_install_override_mode - -# Command to use after installation of a shared archive. -postinstall_cmds=$lt_postinstall_cmds - -# Command to use after uninstallation of a shared archive. -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# As "finish_cmds", except a single script fragment to be evaled but -# not shown. -finish_eval=$lt_finish_eval - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Compile-time system search path for libraries. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - - -# The linker used to build libraries. -LD=$lt_LD - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# Commands used to build an old-style archive. -old_archive_cmds=$lt_old_archive_cmds - -# A language specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU compiler? -with_gcc=$GCC - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Whether the compiler copes with passing no objects directly. -compiler_needs_object=$lt_compiler_needs_object - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds - -# Commands used to build a loadable module if different from building -# a shared archive. -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Whether we are building with GNU ld or not. -with_gnu_ld=$lt_with_gnu_ld - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag - -# Flag that enforces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec - -# Whether we need a single "-rpath" flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator - -# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes -# DIR into the resulting binary. -hardcode_direct=$hardcode_direct - -# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes -# DIR into the resulting binary and the resulting library dependency is -# "absolute",i.e impossible to change by setting \${shlibpath_var} if the -# library is relocated. -hardcode_direct_absolute=$hardcode_direct_absolute - -# Set to "yes" if using the -LDIR flag during linking hardcodes DIR -# into the resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR -# into the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Set to "yes" if building a shared library automatically hardcodes DIR -# into the library and all subsequent libraries and executables linked -# against it. -hardcode_automatic=$hardcode_automatic - -# Set to yes if linker adds runtime paths of dependent libraries -# to runtime path list. -inherit_rpath=$inherit_rpath - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs - -# Set to "yes" if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# Commands necessary for linking programs (against libraries) with templates. -prelink_cmds=$lt_prelink_cmds - -# Commands necessary for finishing linking programs. -postlink_cmds=$lt_postlink_cmds - -# Specify filename containing input files. -file_list_spec=$lt_file_list_spec - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# ### END LIBTOOL CONFIG - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - -ltmain="$ac_aux_dir/ltmain.sh" - - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - if test x"$xsi_shell" = xyes; then - sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ -func_dirname ()\ -{\ -\ case ${1} in\ -\ */*) func_dirname_result="${1%/*}${2}" ;;\ -\ * ) func_dirname_result="${3}" ;;\ -\ esac\ -} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - sed -e '/^func_basename ()$/,/^} # func_basename /c\ -func_basename ()\ -{\ -\ func_basename_result="${1##*/}"\ -} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ -func_dirname_and_basename ()\ -{\ -\ case ${1} in\ -\ */*) func_dirname_result="${1%/*}${2}" ;;\ -\ * ) func_dirname_result="${3}" ;;\ -\ esac\ -\ func_basename_result="${1##*/}"\ -} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ -func_stripname ()\ -{\ -\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ -\ # positional parameters, so assign one to ordinary parameter first.\ -\ func_stripname_result=${3}\ -\ func_stripname_result=${func_stripname_result#"${1}"}\ -\ func_stripname_result=${func_stripname_result%"${2}"}\ -} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ -func_split_long_opt ()\ -{\ -\ func_split_long_opt_name=${1%%=*}\ -\ func_split_long_opt_arg=${1#*=}\ -} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ -func_split_short_opt ()\ -{\ -\ func_split_short_opt_arg=${1#??}\ -\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ -} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ -func_lo2o ()\ -{\ -\ case ${1} in\ -\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ -\ *) func_lo2o_result=${1} ;;\ -\ esac\ -} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - sed -e '/^func_xform ()$/,/^} # func_xform /c\ -func_xform ()\ -{\ - func_xform_result=${1%.*}.lo\ -} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - sed -e '/^func_arith ()$/,/^} # func_arith /c\ -func_arith ()\ -{\ - func_arith_result=$(( $* ))\ -} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - sed -e '/^func_len ()$/,/^} # func_len /c\ -func_len ()\ -{\ - func_len_result=${#1}\ -} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - -fi - -if test x"$lt_shell_append" = xyes; then - sed -e '/^func_append ()$/,/^} # func_append /c\ -func_append ()\ -{\ - eval "${1}+=\\${2}"\ -} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ -func_append_quoted ()\ -{\ -\ func_quote_for_eval "${2}"\ -\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ -} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: - - - # Save a `func_append' function call where possible by direct use of '+=' - sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") - test 0 -eq $? || _lt_function_replace_fail=: -else - # Save a `func_append' function call even when '+=' is not available - sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") - test 0 -eq $? || _lt_function_replace_fail=: -fi - -if test x"$_lt_function_replace_fail" = x":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 -$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} -fi - - - mv -f "$cfgfile" "$ofile" || - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" - - ;; - "po-directories":C) - for ac_file in $CONFIG_FILES; do - # Support "outfile[:infile[:infile...]]" - case "$ac_file" in - *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - esac - # PO directories have a Makefile.in generated from Makefile.in.in. - case "$ac_file" in */Makefile.in) - # Adjust a relative srcdir. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" - ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` - # In autoconf-2.13 it is called $ac_given_srcdir. - # In autoconf-2.50 it is called $srcdir. - test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" - case "$ac_given_srcdir" in - .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; - /*) top_srcdir="$ac_given_srcdir" ;; - *) top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - # Treat a directory as a PO directory if and only if it has a - # POTFILES.in file. This allows packages to have multiple PO - # directories under different names or in different locations. - if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then - rm -f "$ac_dir/POTFILES" - test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" - POMAKEFILEDEPS="POTFILES.in" - # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend - # on $ac_dir but don't depend on user-specified configuration - # parameters. - if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then - # The LINGUAS file contains the set of available languages. - if test -n "$OBSOLETE_ALL_LINGUAS"; then - test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" - fi - ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` - # Hide the ALL_LINGUAS assigment from automake < 1.5. - eval 'ALL_LINGUAS''=$ALL_LINGUAS_' - POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" - else - # The set of available languages was given in configure.in. - # Hide the ALL_LINGUAS assigment from automake < 1.5. - eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' - fi - # Compute POFILES - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) - # Compute UPDATEPOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) - # Compute DUMMYPOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) - # Compute GMOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) - case "$ac_given_srcdir" in - .) srcdirpre= ;; - *) srcdirpre='$(srcdir)/' ;; - esac - POFILES= - UPDATEPOFILES= - DUMMYPOFILES= - GMOFILES= - for lang in $ALL_LINGUAS; do - POFILES="$POFILES $srcdirpre$lang.po" - UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" - DUMMYPOFILES="$DUMMYPOFILES $lang.nop" - GMOFILES="$GMOFILES $srcdirpre$lang.gmo" - done - # CATALOGS depends on both $ac_dir and the user's LINGUAS - # environment variable. - INST_LINGUAS= - if test -n "$ALL_LINGUAS"; then - for presentlang in $ALL_LINGUAS; do - useit=no - if test "%UNSET%" != "$LINGUAS"; then - desiredlanguages="$LINGUAS" - else - desiredlanguages="$ALL_LINGUAS" - fi - for desiredlang in $desiredlanguages; do - # Use the presentlang catalog if desiredlang is - # a. equal to presentlang, or - # b. a variant of presentlang (because in this case, - # presentlang can be used as a fallback for messages - # which are not translated in the desiredlang catalog). - case "$desiredlang" in - "$presentlang"*) useit=yes;; - esac - done - if test $useit = yes; then - INST_LINGUAS="$INST_LINGUAS $presentlang" - fi - done - fi - CATALOGS= - if test -n "$INST_LINGUAS"; then - for lang in $INST_LINGUAS; do - CATALOGS="$CATALOGS $lang.gmo" - done - fi - test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" - sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" - for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do - if test -f "$f"; then - case "$f" in - *.orig | *.bak | *~) ;; - *) cat "$f" >> "$ac_dir/Makefile" ;; - esac - fi - done - fi - ;; - esac - done ;; - - esac -done # for ac_tag - - -as_fn_exit 0 -_ACEOF -ac_clean_files=$ac_clean_files_save - -test $ac_write_fail = 0 || - as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || as_fn_exit 1 -fi -if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} -fi - diff --git a/configure.ac b/configure.ac index 05574d2..f600ee7 100644 --- a/configure.ac +++ b/configure.ac @@ -1,11 +1,12 @@ AC_PREREQ([2.67]) -AC_INIT([cryptsetup],[1.6.7]) +AC_INIT([cryptsetup],[1.7.0-git]) dnl library version from ..[-] LIBCRYPTSETUP_VERSION=$(echo $PACKAGE_VERSION | cut -f1 -d-) -LIBCRYPTSETUP_VERSION_INFO=11:0:7 +LIBCRYPTSETUP_VERSION_INFO=9:0:5 +dnl library file name for FIPS selfcheck +LIBCRYPTSETUP_VERSION_FIPS="libcryptsetup.so.4" -AM_SILENT_RULES([yes]) AC_CONFIG_SRCDIR(src/cryptsetup.c) AC_CONFIG_MACRO_DIR([m4]) @@ -15,8 +16,8 @@ AC_CONFIG_HEADERS([config.h:config.h.in]) # http://lists.gnu.org/archive/html/automake/2013-01/msg00060.html # For old automake use this -#AM_INIT_AUTOMAKE(dist-xz) -AM_INIT_AUTOMAKE([dist-xz 1.12 serial-tests]) +#AM_INIT_AUTOMAKE(dist-bzip2) +AM_INIT_AUTOMAKE([dist-bzip2 1.12 serial-tests]) if test "x$prefix" = "xNONE"; then sysconfdir=/etc @@ -47,8 +48,7 @@ AC_CHECK_LIB(uuid, uuid_clear, ,[AC_MSG_ERROR([You need the uuid library.])]) AC_SUBST(UUID_LIBS, $LIBS) LIBS=$saved_LIBS -AC_SEARCH_LIBS([clock_gettime],[rt posix4]) -AC_CHECK_FUNCS([posix_memalign clock_gettime]) +AC_CHECK_FUNCS([posix_memalign]) if test "x$enable_largefile" = "xno" ; then AC_MSG_ERROR([Building with --disable-largefile is not supported, it can cause data corruption.]) @@ -60,7 +60,6 @@ AC_TYPE_OFF_T AC_SYS_LARGEFILE AC_FUNC_FSEEKO AC_PROG_GCC_TRADITIONAL -AC_FUNC_STRERROR_R dnl ========================================================================== @@ -76,17 +75,25 @@ AC_SUBST(POPT_LIBS, $LIBS) LIBS=$saved_LIBS dnl ========================================================================== -dnl FIPS extensions (only for RHEL) +dnl FIPS extensions AC_ARG_ENABLE([fips], AS_HELP_STRING([--enable-fips],[enable FIPS mode restrictions]), [with_fips=$enableval], [with_fips=no]) if test "x$with_fips" = "xyes"; then AC_DEFINE(ENABLE_FIPS, 1, [Enable FIPS mode restrictions]) + AC_DEFINE_UNQUOTED(LIBCRYPTSETUP_VERSION_FIPS, ["$LIBCRYPTSETUP_VERSION_FIPS"], + [library file name for FIPS selfcheck]) if test "x$enable_static" = "xyes" -o "x$enable_static_cryptsetup" = "xyes" ; then AC_MSG_ERROR([Static build is not compatible with FIPS.]) fi + + saved_LIBS=$LIBS + AC_CHECK_LIB(fipscheck, FIPSCHECK_verify, ,[AC_MSG_ERROR([You need the fipscheck library.])]) + AC_SUBST(FIPSCHECK_LIBS, $LIBS) + LIBS=$saved_LIBS + fi AC_DEFUN([NO_FIPS], [ @@ -121,22 +128,10 @@ AC_DEFUN([CONFIGURE_GCRYPT], [ fi dnl Check if we can use gcrypt PBKDF2 (1.6.0 supports empty password) AC_ARG_ENABLE([gcrypt-pbkdf2], AS_HELP_STRING([--enable-gcrypt-pbkdf2],[force enable internal gcrypt PBKDF2]), - if test "x$enableval" = "xyes"; then - [use_internal_pbkdf2=0] - else - [use_internal_pbkdf2=1] - fi, - [AM_PATH_LIBGCRYPT([1.6.1], [use_internal_pbkdf2=0], [use_internal_pbkdf2=1])]) + [use_internal_pbkdf2=0], + [AM_PATH_LIBGCRYPT([1.6.0], [use_internal_pbkdf2=0], [use_internal_pbkdf2=1])]) AM_PATH_LIBGCRYPT($GCRYPT_REQ_VERSION,,[AC_MSG_ERROR([You need the gcrypt library.])]) - AC_MSG_CHECKING([if internal cryptsetup PBKDF2 is compiled-in]) - if test $use_internal_pbkdf2 = 0; then - AC_MSG_RESULT([no]) - else - AC_MSG_RESULT([yes]) - NO_FIPS([]) - fi - if test x$enable_static_cryptsetup = xyes; then saved_LIBS=$LIBS LIBS="$saved_LIBS $LIBGCRYPT_LIBS -static" @@ -207,13 +202,13 @@ AC_DEFUN([CONFIGURE_NETTLE], [ [AC_MSG_ERROR([You need Nettle cryptographic library.])]) saved_LIBS=$LIBS - AC_CHECK_LIB(nettle, nettle_pbkdf2_hmac_sha256,, - [AC_MSG_ERROR([You need Nettle library version 2.6 or more recent.])]) + AC_CHECK_LIB(nettle, nettle_ripemd160_init,, + [AC_MSG_ERROR([You need Nettle library version 2.4 or more recent.])]) CRYPTO_LIBS=$LIBS LIBS=$saved_LIBS CRYPTO_STATIC_LIBS=$CRYPTO_LIBS - use_internal_pbkdf2=0 + use_internal_pbkdf2=1 NO_FIPS([]) ]) @@ -351,6 +346,7 @@ AC_SUBST([CRYPTO_STATIC_LIBS]) AC_SUBST([LIBCRYPTSETUP_VERSION]) AC_SUBST([LIBCRYPTSETUP_VERSION_INFO]) +AC_SUBST([LIBCRYPTSETUP_VERSION_FIPS]) dnl ========================================================================== AC_ARG_ENABLE([dev-random], AS_HELP_STRING([--enable-dev-random], @@ -381,12 +377,8 @@ AC_ARG_ENABLE([python], AS_HELP_STRING([--enable-python],[enable Python bindings [with_python=$enableval], [with_python=no]) -AC_ARG_WITH([python_version], - AS_HELP_STRING([--with-python_version=VERSION], [required Python version [2.6]]), - [PYTHON_VERSION=$withval], [PYTHON_VERSION=2.6]) - if test "x$with_python" = "xyes"; then - AM_PATH_PYTHON([$PYTHON_VERSION]) + AM_PATH_PYTHON([2.4]) if ! test -x "$PYTHON-config" ; then AC_MSG_ERROR([Cannot find python development packages to build bindings]) @@ -394,9 +386,6 @@ if test "x$with_python" = "xyes"; then PYTHON_INCLUDES=$($PYTHON-config --includes) AC_SUBST(PYTHON_INCLUDES) - - PYTHON_LIBS=$($PYTHON-config --libs) - AC_SUBST(PYTHON_LIBS) fi AM_CONDITIONAL([PYTHON_CRYPTSETUP], [test "x$with_python" = "xyes"]) diff --git a/depcomp b/depcomp deleted file mode 100755 index 4ebd5b3..0000000 --- a/depcomp +++ /dev/null @@ -1,791 +0,0 @@ -#! /bin/sh -# depcomp - compile a program generating dependencies as side-effects - -scriptversion=2013-05-30.07; # UTC - -# Copyright (C) 1999-2013 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Alexandre Oliva . - -case $1 in - '') - echo "$0: No command. Try '$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: depcomp [--help] [--version] PROGRAM [ARGS] - -Run PROGRAMS ARGS to compile a file, generating dependencies -as side-effects. - -Environment variables: - depmode Dependency tracking mode. - source Source file read by 'PROGRAMS ARGS'. - object Object file output by 'PROGRAMS ARGS'. - DEPDIR directory where to store dependencies. - depfile Dependency file to output. - tmpdepfile Temporary file to use when outputting dependencies. - libtool Whether libtool is used (yes/no). - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "depcomp $scriptversion" - exit $? - ;; -esac - -# Get the directory component of the given path, and save it in the -# global variables '$dir'. Note that this directory component will -# be either empty or ending with a '/' character. This is deliberate. -set_dir_from () -{ - case $1 in - */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; - *) dir=;; - esac -} - -# Get the suffix-stripped basename of the given path, and save it the -# global variable '$base'. -set_base_from () -{ - base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` -} - -# If no dependency file was actually created by the compiler invocation, -# we still have to create a dummy depfile, to avoid errors with the -# Makefile "include basename.Plo" scheme. -make_dummy_depfile () -{ - echo "#dummy" > "$depfile" -} - -# Factor out some common post-processing of the generated depfile. -# Requires the auxiliary global variable '$tmpdepfile' to be set. -aix_post_process_depfile () -{ - # If the compiler actually managed to produce a dependency file, - # post-process it. - if test -f "$tmpdepfile"; then - # Each line is of the form 'foo.o: dependency.h'. - # Do two passes, one to just change these to - # $object: dependency.h - # and one to simply output - # dependency.h: - # which is needed to avoid the deleted-header problem. - { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" - sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" - } > "$depfile" - rm -f "$tmpdepfile" - else - make_dummy_depfile - fi -} - -# A tabulation character. -tab=' ' -# A newline character. -nl=' -' -# Character ranges might be problematic outside the C locale. -# These definitions help. -upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ -lower=abcdefghijklmnopqrstuvwxyz -digits=0123456789 -alpha=${upper}${lower} - -if test -z "$depmode" || test -z "$source" || test -z "$object"; then - echo "depcomp: Variables source, object and depmode must be set" 1>&2 - exit 1 -fi - -# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. -depfile=${depfile-`echo "$object" | - sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} - -rm -f "$tmpdepfile" - -# Avoid interferences from the environment. -gccflag= dashmflag= - -# Some modes work just like other modes, but use different flags. We -# parameterize here, but still list the modes in the big case below, -# to make depend.m4 easier to write. Note that we *cannot* use a case -# here, because this file can only contain one case statement. -if test "$depmode" = hp; then - # HP compiler uses -M and no extra arg. - gccflag=-M - depmode=gcc -fi - -if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout -fi - -cygpath_u="cygpath -u -f -" -if test "$depmode" = msvcmsys; then - # This is just like msvisualcpp but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvisualcpp -fi - -if test "$depmode" = msvc7msys; then - # This is just like msvc7 but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvc7 -fi - -if test "$depmode" = xlc; then - # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. - gccflag=-qmakedep=gcc,-MF - depmode=gcc -fi - -case "$depmode" in -gcc3) -## gcc 3 implements dependency tracking that does exactly what -## we want. Yay! Note: for some reason libtool 1.4 doesn't like -## it if -MD -MP comes after the -MF stuff. Hmm. -## Unfortunately, FreeBSD c89 acceptance of flags depends upon -## the command line argument order; so add the flags where they -## appear in depend2.am. Note that the slowdown incurred here -## affects only configure: in makefiles, %FASTDEP% shortcuts this. - for arg - do - case $arg in - -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; - *) set fnord "$@" "$arg" ;; - esac - shift # fnord - shift # $arg - done - "$@" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - mv "$tmpdepfile" "$depfile" - ;; - -gcc) -## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. -## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. -## (see the conditional assignment to $gccflag above). -## There are various ways to get dependency output from gcc. Here's -## why we pick this rather obscure method: -## - Don't want to use -MD because we'd like the dependencies to end -## up in a subdir. Having to rename by hand is ugly. -## (We might end up doing this anyway to support other compilers.) -## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like -## -MM, not -M (despite what the docs say). Also, it might not be -## supported by the other compilers which use the 'gcc' depmode. -## - Using -M directly means running the compiler twice (even worse -## than renaming). - if test -z "$gccflag"; then - gccflag=-MD, - fi - "$@" -Wp,"$gccflag$tmpdepfile" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # The second -e expression handles DOS-style file names with drive - # letters. - sed -e 's/^[^:]*: / /' \ - -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" -## This next piece of magic avoids the "deleted header file" problem. -## The problem is that when a header file which appears in a .P file -## is deleted, the dependency causes make to die (because there is -## typically no way to rebuild the header). We avoid this by adding -## dummy dependencies for each header file. Too bad gcc doesn't do -## this for us directly. -## Some versions of gcc put a space before the ':'. On the theory -## that the space means something, we add a space to the output as -## well. hp depmode also adds that space, but also prefixes the VPATH -## to the object. Take care to not repeat it in the output. -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -sgi) - if test "$libtool" = yes; then - "$@" "-Wp,-MDupdate,$tmpdepfile" - else - "$@" -MDupdate "$tmpdepfile" - fi - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files - echo "$object : \\" > "$depfile" - # Clip off the initial element (the dependent). Don't try to be - # clever and replace this with sed code, as IRIX sed won't handle - # lines with more than a fixed number of characters (4096 in - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; - # the IRIX cc adds comments like '#:fec' to the end of the - # dependency line. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ - | tr "$nl" ' ' >> "$depfile" - echo >> "$depfile" - # The second pass generates a dummy entry for each header file. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ - >> "$depfile" - else - make_dummy_depfile - fi - rm -f "$tmpdepfile" - ;; - -xlc) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -aix) - # The C for AIX Compiler uses -M and outputs the dependencies - # in a .u file. In older versions, this file always lives in the - # current directory. Also, the AIX compiler puts '$object:' at the - # start of each line; $object doesn't have directory information. - # Version 6 uses the directory in both cases. - set_dir_from "$object" - set_base_from "$object" - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.u - tmpdepfile2=$base.u - tmpdepfile3=$dir.libs/$base.u - "$@" -Wc,-M - else - tmpdepfile1=$dir$base.u - tmpdepfile2=$dir$base.u - tmpdepfile3=$dir$base.u - "$@" -M - fi - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - aix_post_process_depfile - ;; - -tcc) - # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 - # FIXME: That version still under development at the moment of writing. - # Make that this statement remains true also for stable, released - # versions. - # It will wrap lines (doesn't matter whether long or short) with a - # trailing '\', as in: - # - # foo.o : \ - # foo.c \ - # foo.h \ - # - # It will put a trailing '\' even on the last line, and will use leading - # spaces rather than leading tabs (at least since its commit 0394caf7 - # "Emit spaces for -MD"). - "$@" -MD -MF "$tmpdepfile" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. - # We have to change lines of the first kind to '$object: \'. - sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" - # And for each line of the second kind, we have to emit a 'dep.h:' - # dummy dependency, to avoid the deleted-header problem. - sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" - rm -f "$tmpdepfile" - ;; - -## The order of this option in the case statement is important, since the -## shell code in configure will try each of these formats in the order -## listed in this file. A plain '-MD' option would be understood by many -## compilers, so we must ensure this comes after the gcc and icc options. -pgcc) - # Portland's C compiler understands '-MD'. - # Will always output deps to 'file.d' where file is the root name of the - # source file under compilation, even if file resides in a subdirectory. - # The object file name does not affect the name of the '.d' file. - # pgcc 10.2 will output - # foo.o: sub/foo.c sub/foo.h - # and will wrap long lines using '\' : - # foo.o: sub/foo.c ... \ - # sub/foo.h ... \ - # ... - set_dir_from "$object" - # Use the source, not the object, to determine the base name, since - # that's sadly what pgcc will do too. - set_base_from "$source" - tmpdepfile=$base.d - - # For projects that build the same source file twice into different object - # files, the pgcc approach of using the *source* file root name can cause - # problems in parallel builds. Use a locking strategy to avoid stomping on - # the same $tmpdepfile. - lockdir=$base.d-lock - trap " - echo '$0: caught signal, cleaning up...' >&2 - rmdir '$lockdir' - exit 1 - " 1 2 13 15 - numtries=100 - i=$numtries - while test $i -gt 0; do - # mkdir is a portable test-and-set. - if mkdir "$lockdir" 2>/dev/null; then - # This process acquired the lock. - "$@" -MD - stat=$? - # Release the lock. - rmdir "$lockdir" - break - else - # If the lock is being held by a different process, wait - # until the winning process is done or we timeout. - while test -d "$lockdir" && test $i -gt 0; do - sleep 1 - i=`expr $i - 1` - done - fi - i=`expr $i - 1` - done - trap - 1 2 13 15 - if test $i -le 0; then - echo "$0: failed to acquire lock after $numtries attempts" >&2 - echo "$0: check lockdir '$lockdir'" >&2 - exit 1 - fi - - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each line is of the form `foo.o: dependent.h', - # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp2) - # The "hp" stanza above does not work with aCC (C++) and HP's ia64 - # compilers, which have integrated preprocessors. The correct option - # to use with these is +Maked; it writes dependencies to a file named - # 'foo.d', which lands next to the object file, wherever that - # happens to be. - # Much of this is similar to the tru64 case; see comments there. - set_dir_from "$object" - set_base_from "$object" - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir.libs/$base.d - "$@" -Wc,+Maked - else - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir$base.d - "$@" +Maked - fi - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" - # Add 'dependent.h:' lines. - sed -ne '2,${ - s/^ *// - s/ \\*$// - s/$/:/ - p - }' "$tmpdepfile" >> "$depfile" - else - make_dummy_depfile - fi - rm -f "$tmpdepfile" "$tmpdepfile2" - ;; - -tru64) - # The Tru64 compiler uses -MD to generate dependencies as a side - # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. - # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put - # dependencies in 'foo.d' instead, so we check for that too. - # Subdirectories are respected. - set_dir_from "$object" - set_base_from "$object" - - if test "$libtool" = yes; then - # Libtool generates 2 separate objects for the 2 libraries. These - # two compilations output dependencies in $dir.libs/$base.o.d and - # in $dir$base.o.d. We have to check for both files, because - # one of the two compilations can be disabled. We should prefer - # $dir$base.o.d over $dir.libs/$base.o.d because the latter is - # automatically cleaned when .libs/ is deleted, while ignoring - # the former would cause a distcleancheck panic. - tmpdepfile1=$dir$base.o.d # libtool 1.5 - tmpdepfile2=$dir.libs/$base.o.d # Likewise. - tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 - "$@" -Wc,-MD - else - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir$base.d - tmpdepfile3=$dir$base.d - "$@" -MD - fi - - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - # Same post-processing that is required for AIX mode. - aix_post_process_depfile - ;; - -msvc7) - if test "$libtool" = yes; then - showIncludes=-Wc,-showIncludes - else - showIncludes=-showIncludes - fi - "$@" $showIncludes > "$tmpdepfile" - stat=$? - grep -v '^Note: including file: ' "$tmpdepfile" - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # The first sed program below extracts the file names and escapes - # backslashes for cygpath. The second sed program outputs the file - # name when reading, but also accumulates all include files in the - # hold buffer in order to output them again at the end. This only - # works with sed implementations that can handle large buffers. - sed < "$tmpdepfile" -n ' -/^Note: including file: *\(.*\)/ { - s//\1/ - s/\\/\\\\/g - p -}' | $cygpath_u | sort -u | sed -n ' -s/ /\\ /g -s/\(.*\)/'"$tab"'\1 \\/p -s/.\(.*\) \\/\1:/ -H -$ { - s/.*/'"$tab"'/ - G - p -}' >> "$depfile" - echo >> "$depfile" # make sure the fragment doesn't end with a backslash - rm -f "$tmpdepfile" - ;; - -msvc7msys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -#nosideeffect) - # This comment above is used by automake to tell side-effect - # dependency tracking mechanisms from slower ones. - -dashmstdout) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove '-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - test -z "$dashmflag" && dashmflag=-M - # Require at least two characters before searching for ':' - # in the target name. This is to cope with DOS-style filenames: - # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. - "$@" $dashmflag | - sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this sed invocation - # correctly. Breaking it into two sed invocations is a workaround. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -dashXmstdout) - # This case only exists to satisfy depend.m4. It is never actually - # run, as this mode is specially recognized in the preamble. - exit 1 - ;; - -makedepend) - "$@" || exit $? - # Remove any Libtool call - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - # X makedepend - shift - cleared=no eat=no - for arg - do - case $cleared in - no) - set ""; shift - cleared=yes ;; - esac - if test $eat = yes; then - eat=no - continue - fi - case "$arg" in - -D*|-I*) - set fnord "$@" "$arg"; shift ;; - # Strip any option that makedepend may not understand. Remove - # the object too, otherwise makedepend will parse it as a source file. - -arch) - eat=yes ;; - -*|$object) - ;; - *) - set fnord "$@" "$arg"; shift ;; - esac - done - obj_suffix=`echo "$object" | sed 's/^.*\././'` - touch "$tmpdepfile" - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" - rm -f "$depfile" - # makedepend may prepend the VPATH from the source file name to the object. - # No need to regex-escape $object, excess matching of '.' is harmless. - sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process the last invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed '1,2d' "$tmpdepfile" \ - | tr ' ' "$nl" \ - | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" "$tmpdepfile".bak - ;; - -cpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove '-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - "$@" -E \ - | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - | sed '$ s: \\$::' > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - cat < "$tmpdepfile" >> "$depfile" - sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvisualcpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - IFS=" " - for arg - do - case "$arg" in - -o) - shift - ;; - $object) - shift - ;; - "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") - set fnord "$@" - shift - shift - ;; - *) - set fnord "$@" "$arg" - shift - shift - ;; - esac - done - "$@" -E 2>/dev/null | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" - echo "$tab" >> "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvcmsys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -none) - exec "$@" - ;; - -*) - echo "Unknown depmode $depmode" 1>&2 - exit 1 - ;; -esac - -exit 0 - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/docs/ChangeLog.old b/docs/ChangeLog.old index e51d362..970c25d 100644 --- a/docs/ChangeLog.old +++ b/docs/ChangeLog.old @@ -834,16 +834,16 @@ * lib/utils.c: Add read|write_blockwise functions, to use in O_DIRECT file accesses. -2004-03-11 Thursday 15:52 Jana Saout +2004-03-11 Thursday 15:52 Christophe Saout * lib/blockdev.h: BLKGETSIZE64 really uses size_t as third argument, the rest is wrong. -2004-03-10 Wednesday 17:50 Jana Saout +2004-03-10 Wednesday 17:50 Christophe Saout * lib/: libcryptsetup.h, libdevmapper.c: Small fixes. -2004-03-09 Tuesday 21:41 Jana Saout +2004-03-09 Tuesday 21:41 Christophe Saout * lib/internal.h, lib/libcryptsetup.h, lib/libdevmapper.c, lib/setup.c, po/de.po, src/cryptsetup.c: Added internal flags to @@ -851,7 +851,7 @@ add a function to free the memory. Also add a readonly flag to libcryptsetup. -2004-03-09 Tuesday 16:03 Jana Saout +2004-03-09 Tuesday 16:03 Christophe Saout * ChangeLog, configure.in, setup-gettext, lib/Makefile.am, lib/backends.c, lib/blockdev.h, lib/gcrypt.c, lib/internal.h, @@ -859,7 +859,7 @@ lib/utils.c, po/de.po, src/Makefile.am, src/cryptsetup.c: More reorganization work. -2004-03-08 Monday 01:38 Jana Saout +2004-03-08 Monday 01:38 Christophe Saout * ChangeLog, Makefile.am, acinclude.m4, configure.in, lib/Makefile.am, lib/backends.c, lib/blockdev.h, lib/gcrypt.c, @@ -867,19 +867,19 @@ src/Makefile.am: BLKGETSIZE64 fixes and started modularity enhancements -2004-03-04 Thursday 21:06 Jana Saout +2004-03-04 Thursday 21:06 Christophe Saout * Makefile.am, po/de.po, src/cryptsetup.c, src/cryptsetup.h: First backward compatible working version. -2004-03-04 Thursday 00:42 Jana Saout +2004-03-04 Thursday 00:42 Christophe Saout * NEWS, AUTHORS, ChangeLog, Makefile.am, README, autogen.sh, configure.in, setup-gettext, po/ChangeLog, po/LINGUAS, po/POTFILES.in, po/de.po, src/cryptsetup.c, src/cryptsetup.h, src/Makefile.am (utags: initial): Initial checkin. -2004-03-04 Thursday 00:42 Jana Saout +2004-03-04 Thursday 00:42 Christophe Saout * NEWS, AUTHORS, ChangeLog, Makefile.am, README, autogen.sh, configure.in, setup-gettext, po/ChangeLog, po/LINGUAS, diff --git a/docs/doxygen_index b/docs/doxygen_index index ec394ad..3bca941 100644 --- a/docs/doxygen_index +++ b/docs/doxygen_index @@ -56,7 +56,7 @@ * in a persistent way on the device. Keyslot area is an array beyond LUKS header, where * volume key is stored in the encrypted form using user input passphrase. For more info about * LUKS keyslots and how it's actually protected, please look at - * LUKS specification. + * LUKS specification. * There are two basic methods to create a new keyslot: * * @subsection ckeyslot_vol crypt_keyslot_add_by_volume_key() diff --git a/docs/v1.6.3-ReleaseNotes b/docs/v1.6.3-ReleaseNotes deleted file mode 100644 index 24254b8..0000000 --- a/docs/v1.6.3-ReleaseNotes +++ /dev/null @@ -1,50 +0,0 @@ -Cryptsetup 1.6.3 Release Notes -============================== - -Changes since version 1.6.2 - -* Fix cryptsetup reencryption tool to work properly - with devices using 4kB sectors. - -* Always use page size if running through loop device, - this fixes failures for external LUKS header and - filesystem requiring 4kB block size. - -* Fix TCRYPT system encryption mapping for multiple partitions. - Since this commit, one can use partition directly as device parameter. - If you need to activate such partition from image in file, - please first use map partitioned loop device (losetup -P) - on image. - (Cryptsetup require partition offsets visible in kernel sysfs - in this mode.) - -* Support activation of old TrueCrypt containers using CBC mode - and whitening (created in TrueCrypt version < 4.1). - This requires Linux kernel 3.13 or later. - (Containers with cascade CBC ciphers are not supported.) - -* Properly display keys in dump --dump-master-key command - for TrueCrypt CBC containers. - -* Rewrite cipher benchmark loop which was unreliable - on very fast machines. - -* Add warning if LUKS device was activated using non-cryptsetup - library which did not set UUID properly (e.g. cryptmount). - (Some commands, like luksSuspend, are not available then.) - -* Support length limitation also for plain (no hash) length. - This can be used for mapping problematic cryptosystems which - wipes some key (losetup sometimes set last 32 byte to zero, - which can be now configured as --hash plain:31 parameter). - -* Fix hash limit if parameter is not a number. - (The whole key was set to zero instead of command failure.) - -* Unify --key-slot behavior in cryptsetup_reencrypt tool. - -* Update dracut example scripts for system reencryption on first boot. - -* Add command line option --tcrypt-backup to access TCRYPT backup header. - -* Fix static compilation with OpenSSL. diff --git a/docs/v1.6.4-ReleaseNotes b/docs/v1.6.4-ReleaseNotes deleted file mode 100644 index ebc71cb..0000000 --- a/docs/v1.6.4-ReleaseNotes +++ /dev/null @@ -1,57 +0,0 @@ -Cryptsetup 1.6.4 Release Notes -============================== - -Changes since version 1.6.3 - -* Implement new erase (with alias luksErase) command. - - The erase cryptsetup command can be used to permanently erase - all keyslots and make the LUKS container inaccessible. - (The only way to unlock such device is to use LUKS header backup - created before erase command was used.) - - You do not need to provide any password for this operation. - - This operation is irreversible. - -* Add internal "whirlpool_gcryptbug hash" for accessing flawed - Whirlpool hash in gcrypt (requires gcrypt 1.6.1 or above). - - The gcrypt version of Whirlpool hash algorithm was flawed in some - situations. - - This means that if you used Whirlpool in LUKS header and upgraded - to new gcrypt library your LUKS container become inaccessible. - - Please refer to cryptsetup FAQ for detail how to fix this situation. - -* Allow to use --disable-gcrypt-pbkdf2 during configuration - to force use internal PBKDF2 code. - -* Require gcrypt 1.6.1 for imported implementation of PBKDF2 - (PBKDF2 in gcrypt 1.6.0 is too slow). - -* Add --keep-key to cryptsetup-reencrypt. - - This allows change of LUKS header hash (and iteration count) without - the need to reencrypt the whole data area. - (Reencryption of LUKS header only without master key change.) - -* By default verify new passphrase in luksChangeKey and luksAddKey - commands (if input is from terminal). - -* Fix memory leak in Nettle crypto backend. - -* Support --tries option even for TCRYPT devices in cryptsetup. - -* Support --allow-discards option even for TCRYPT devices. - (Note that this could destroy hidden volume and it is not suggested - by original TrueCrypt security model.) - -* Link against -lrt for clock_gettime to fix undefined reference - to clock_gettime error (introduced in 1.6.2). - -* Fix misleading error message when some algorithms are not available. - -* Count system time in PBKDF2 benchmark if kernel returns no self usage info. - (Workaround to broken getrusage() syscall with some hypervisors.) diff --git a/docs/v1.6.5-ReleaseNotes b/docs/v1.6.5-ReleaseNotes deleted file mode 100644 index dc9f525..0000000 --- a/docs/v1.6.5-ReleaseNotes +++ /dev/null @@ -1,54 +0,0 @@ -Cryptsetup 1.6.5 Release Notes -============================== - -Changes since version 1.6.4 - -* Allow LUKS header operation handling without requiring root privilege. - It means that you can manipulate with keyslots as a regular user, only - write access to device (or image) is required. - - This requires kernel crypto wrapper (similar to TrueCrypt device handling) - to be available (CRYPTO_USER_API_SKCIPHER kernel option). - If this kernel interface is not available, code fallbacks to old temporary - keyslot device creation (where root privilege is required). - - Note that activation, deactivation, resize and suspend operations still - need root privilege (limitation of kernel device-mapper backend). - -* Fix internal PBKDF2 key derivation function implementation for alternative - crypto backends (kernel, NSS) which do not support PBKDF2 directly and have - issues with longer HMAC keys. - - This fixes the problem for long keyfiles where either calculation is too slow - (because of internal rehashing in every iteration) or there is a limit - (kernel backend seems to not support HMAC key longer than 20480 bytes). - - (Note that for recent version of gcrypt, nettle or openssl the internal - PBKDF2 code is not compiled in and crypto library internal functions are - used instead.) - -* Support for Python3 for simple Python binding. - Python >= 2.6 is now required. You can set Python compiled version by setting - --with-python_version configure option (together with --enable-python). - -* Use internal PBKDF2 in Nettle library for Nettle crypto backend. - Cryptsetup compilation requires Nettle >= 2.6 (if using Nettle crypto backend). - -* Allow simple status of crypt device without providing metadata header. - The command "cryptsetup status" will print basic info, even if you - do not provide detached header argument. - -* Allow to specify ECB mode in cryptsetup benchmark. - -* Add some LUKS images for regression testing. - Note that if image with Whirlpool fails, the most probable cause is that - you have old gcrypt library with flawed whirlpool hash. - Read FAQ section 8.3 for more info. - -Cryptsetup API NOTE: -The direct terminal handling for passphrase entry will be removed from -libcryptsetup in next major version (application should handle it itself). - -It means that you have to always either provide password in buffer or set -your own password callback function trhough crypt_set_password_callback(). -See API documentation (or libcryptsetup.h) for more info. diff --git a/docs/v1.6.6-ReleaseNotes b/docs/v1.6.6-ReleaseNotes deleted file mode 100644 index 9d1fbee..0000000 --- a/docs/v1.6.6-ReleaseNotes +++ /dev/null @@ -1,29 +0,0 @@ -Cryptsetup 1.6.6 Release Notes -============================== - -Changes since version 1.6.5 - -* LUKS: Fix keyslot device access for devices which - do not support direct IO operations. (Regression in 1.6.5.) - -* LUKS: Fallback to old temporary keyslot device mapping method - if hash (for ESSIV) is not supported by userspace crypto - library. (Regression in 1.6.5.) - -* Properly activate device with discard (TRIM for SSDs) - if requested even if dm_crypt module is not yet loaded. - Only if discard is not supported by the old kernel then - the discard option is ignored. - -* Fix some static analysis build warnings (scan-build). - -* Report crypto lib version only once (and always add kernel - version) in debug output. - -Cryptsetup API NOTE: -The direct terminal handling for passphrase entry will be removed from -libcryptsetup in next major version (application should handle it itself). - -It means that you have to always either provide password in buffer or set -your own password callback function through crypt_set_password_callback(). -See API documentation (or libcryptsetup.h) for more info. diff --git a/docs/v1.6.7-ReleaseNotes b/docs/v1.6.7-ReleaseNotes deleted file mode 100644 index edb73e5..0000000 --- a/docs/v1.6.7-ReleaseNotes +++ /dev/null @@ -1,84 +0,0 @@ -Cryptsetup 1.6.7 Release Notes -============================== - -Changes since version 1.6.6 - -* Cryptsetup git and wiki are now hosted on GitLab. - https://gitlab.com/cryptsetup/cryptsetup - - Repository of stable releases remains on kernel.org site - https://www.kernel.org/pub/linux/utils/cryptsetup/ - - For more info please see README file. - -* Cryptsetup TCRYPT mode now supports VeraCrypt devices (TrueCrypt extension). - - The VeraCrypt extension only increases iteration count for the key - derivation function (on-disk format is the same as TrueCrypt format). - - Note that unlocking of a VeraCrypt device can take very long time if used - on slow machines. - - To use this extension, add --veracrypt option, for example - cryptsetup open --type tcrypt --veracrypt - - For use through libcryptsetup, just add CRYPT_TCRYPT_VERA_MODES flag. - -* Support keyfile-offset and keyfile-size options even for plain volumes. - -* Support keyfile option for luksAddKey if the master key is specified. - -* For historic reasons, hashing in the plain mode is not used - if keyfile is specified (with exception of --key-file=-). - Print a warning if these parameters are ignored. - -* Support permanent device decryption for cryptsetup-reencrypt. - To remove LUKS encryption from a device, you can now use --decrypt option. - -* Allow to use --header option in all LUKS commands. - The --header always takes precedence over positional device argument. - -* Allow luksSuspend without need to specify a detached header. - -* Detect if O_DIRECT is usable on a device allocation. - There are some strange storage stack configurations which wrongly allows - to open devices with direct-io but fails on all IO operations later. - - Cryptsetup now tries to read the device first sector to ensure it can use - direct-io. - -* Add low-level performance options tuning for dmcrypt (for Linux 4.0 and later). - - Linux kernel 4.0 contains rewritten dmcrypt code which tries to better utilize - encryption on parallel CPU cores. - - While tests show that this change increases performance on most configurations, - dmcrypt now provides some switches to change its new behavior. - - You can use them (per-device) with these cryptsetup switches: - --perf-same_cpu_crypt - --perf-submit_from_crypt_cpus - - Please use these only in the case of serious performance problems. - Refer to the cryptsetup man page and dm-crypt documentation - (for same_cpu_crypt and submit_from_crypt_cpus options). - https://gitlab.com/cryptsetup/cryptsetup/wikis/DMCrypt - -* Get rid of libfipscheck library. - (Note that this option was used only for Red Hat and derived distributions.) - With recent FIPS changes we do not need to link to this FIPS monster anymore. - Also drop some no longer needed FIPS mode checks. - -* Many fixes and clarifications to man pages. - -* Prevent compiler to optimize-out zeroing of buffers for on-stack variables. - -* Fix a crash if non-GNU strerror_r is used. - -Cryptsetup API NOTE: -The direct terminal handling for passphrase entry will be removed from -libcryptsetup in next major version (application should handle it itself). - -It means that you have to always either provide password in buffer or set -your own password callback function through crypt_set_password_callback(). -See API documentation (or libcryptsetup.h) for more info. diff --git a/install-sh b/install-sh deleted file mode 100755 index 377bb86..0000000 --- a/install-sh +++ /dev/null @@ -1,527 +0,0 @@ -#!/bin/sh -# install - install a program, script, or datafile - -scriptversion=2011-11-20.07; # UTC - -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# 'make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. - -nl=' -' -IFS=" "" $nl" - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit=${DOITPROG-} -if test -z "$doit"; then - doit_exec=exec -else - doit_exec=$doit -fi - -# Put in absolute file names if you don't have them in your path; -# or use environment vars. - -chgrpprog=${CHGRPPROG-chgrp} -chmodprog=${CHMODPROG-chmod} -chownprog=${CHOWNPROG-chown} -cmpprog=${CMPPROG-cmp} -cpprog=${CPPROG-cp} -mkdirprog=${MKDIRPROG-mkdir} -mvprog=${MVPROG-mv} -rmprog=${RMPROG-rm} -stripprog=${STRIPPROG-strip} - -posix_glob='?' -initialize_posix_glob=' - test "$posix_glob" != "?" || { - if (set -f) 2>/dev/null; then - posix_glob= - else - posix_glob=: - fi - } -' - -posix_mkdir= - -# Desired mode of installed file. -mode=0755 - -chgrpcmd= -chmodcmd=$chmodprog -chowncmd= -mvcmd=$mvprog -rmcmd="$rmprog -f" -stripcmd= - -src= -dst= -dir_arg= -dst_arg= - -copy_on_change=false -no_target_directory= - -usage="\ -Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE - or: $0 [OPTION]... SRCFILES... DIRECTORY - or: $0 [OPTION]... -t DIRECTORY SRCFILES... - or: $0 [OPTION]... -d DIRECTORIES... - -In the 1st form, copy SRCFILE to DSTFILE. -In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. -In the 4th, create DIRECTORIES. - -Options: - --help display this help and exit. - --version display version info and exit. - - -c (ignored) - -C install only if different (preserve the last data modification time) - -d create directories instead of installing files. - -g GROUP $chgrpprog installed files to GROUP. - -m MODE $chmodprog installed files to MODE. - -o USER $chownprog installed files to USER. - -s $stripprog installed files. - -t DIRECTORY install into DIRECTORY. - -T report an error if DSTFILE is a directory. - -Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG - RMPROG STRIPPROG -" - -while test $# -ne 0; do - case $1 in - -c) ;; - - -C) copy_on_change=true;; - - -d) dir_arg=true;; - - -g) chgrpcmd="$chgrpprog $2" - shift;; - - --help) echo "$usage"; exit $?;; - - -m) mode=$2 - case $mode in - *' '* | *' '* | *' -'* | *'*'* | *'?'* | *'['*) - echo "$0: invalid mode: $mode" >&2 - exit 1;; - esac - shift;; - - -o) chowncmd="$chownprog $2" - shift;; - - -s) stripcmd=$stripprog;; - - -t) dst_arg=$2 - # Protect names problematic for 'test' and other utilities. - case $dst_arg in - -* | [=\(\)!]) dst_arg=./$dst_arg;; - esac - 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 - # Protect names problematic for 'test' and other utilities. - case $dst_arg in - -* | [=\(\)!]) dst_arg=./$dst_arg;; - esac - done -fi - -if test $# -eq 0; then - if test -z "$dir_arg"; then - echo "$0: no input file specified." >&2 - exit 1 - fi - # It's OK to call 'install-sh -d' without argument. - # This can happen when creating conditional directories. - exit 0 -fi - -if test -z "$dir_arg"; then - do_exit='(exit $ret); exit $ret' - trap "ret=129; $do_exit" 1 - trap "ret=130; $do_exit" 2 - trap "ret=141; $do_exit" 13 - trap "ret=143; $do_exit" 15 - - # Set umask so as not to create temps with too-generous modes. - # However, 'strip' requires both read and write access to temps. - case $mode in - # Optimize common cases. - *644) cp_umask=133;; - *755) cp_umask=22;; - - *[0-7]) - if test -z "$stripcmd"; then - u_plus_rw= - else - u_plus_rw='% 200' - fi - cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; - *) - if test -z "$stripcmd"; then - u_plus_rw= - else - u_plus_rw=,u+rw - fi - cp_umask=$mode$u_plus_rw;; - esac -fi - -for src -do - # Protect names problematic for 'test' and other utilities. - case $src in - -* | [=\(\)!]) src=./$src;; - esac - - if test -n "$dir_arg"; then - dst=$src - dstdir=$dst - test -d "$dstdir" - dstdir_status=$? - else - - # Waiting for this to be detected by the "$cpprog $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dst_arg"; then - echo "$0: no destination specified." >&2 - exit 1 - fi - dst=$dst_arg - - # If destination is a directory, append the input filename; 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-writable 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 X"$d" = X && continue - - prefix=$prefix$d - if test -d "$prefix"; then - prefixes= - else - if $posix_mkdir; then - (umask=$mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break - # Don't fail if two instances are running concurrently. - test -d "$prefix" || exit 1 - else - case $prefix in - *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; - *) qprefix=$prefix;; - esac - prefixes="$prefixes '$qprefix'" - fi - fi - prefix=$prefix/ - done - - if test -n "$prefixes"; then - # Don't fail if two instances are running concurrently. - (umask $mkdir_umask && - eval "\$doit_exec \$mkdirprog $prefixes") || - test -d "$dstdir" || exit 1 - obsolete_mkdir_used=true - fi - fi - fi - - if test -n "$dir_arg"; then - { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && - { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && - { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || - test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 - else - - # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - - # Trap to clean up those temp files at exit. - trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 - - # Copy the file name to the temp name. - (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && - - # and set any options; do chmod last to preserve setuid bits. - # - # If any of these fail, we abort the whole thing. If we want to - # ignore errors from any of these, just make sure not to ignore - # errors from the above "$doit $cpprog $src $dsttmp" command. - # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && - { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && - { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && - { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && - - # If -C, don't bother to copy if it wouldn't change the file. - if $copy_on_change && - old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && - new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && - - eval "$initialize_posix_glob" && - $posix_glob set -f && - set X $old && old=:$2:$4:$5:$6 && - set X $new && new=:$2:$4:$5:$6 && - $posix_glob set +f && - - test "$old" = "$new" && - $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 - then - rm -f "$dsttmp" - else - # Rename the file to the real destination. - $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || - - # The rename failed, perhaps because mv can't rename something else - # to itself, or perhaps because mv is so ancient that it does not - # support -f. - { - # Now remove or move aside any old file at destination location. - # We try this two ways since rm can't unlink itself on some - # systems and the destination file might be busy for other - # reasons. In this case, the final cleanup might fail but the new - # file should still install successfully. - { - test ! -f "$dst" || - $doit $rmcmd -f "$dst" 2>/dev/null || - { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && - { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } - } || - { echo "$0: cannot unlink or rename $dst" >&2 - (exit 1); exit 1 - } - } && - - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dst" - } - fi || exit 1 - - trap '' 0 - fi -done - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/lib/Makefile.am b/lib/Makefile.am index 6662568..0f5b549 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -39,6 +39,7 @@ libcryptsetup_la_LIBADD = \ @UUID_LIBS@ \ @DEVMAPPER_LIBS@ \ @CRYPTO_LIBS@ \ + @FIPSCHECK_LIBS@ \ $(common_ldadd) diff --git a/lib/Makefile.in b/lib/Makefile.in deleted file mode 100644 index ca389bc..0000000 --- a/lib/Makefile.in +++ /dev/null @@ -1,1023 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - - - -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = lib -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(srcdir)/libcryptsetup.pc.in $(top_srcdir)/depcomp \ - $(include_HEADERS) -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = libcryptsetup.pc -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" \ - "$(DESTDIR)$(includedir)" -LTLIBRARIES = $(lib_LTLIBRARIES) -am_libcryptsetup_la_OBJECTS = libcryptsetup_la-setup.lo \ - libcryptsetup_la-utils.lo libcryptsetup_la-utils_benchmark.lo \ - libcryptsetup_la-utils_crypt.lo libcryptsetup_la-utils_loop.lo \ - libcryptsetup_la-utils_devpath.lo \ - libcryptsetup_la-utils_wipe.lo libcryptsetup_la-utils_fips.lo \ - libcryptsetup_la-utils_device.lo \ - libcryptsetup_la-libdevmapper.lo libcryptsetup_la-volumekey.lo \ - libcryptsetup_la-random.lo libcryptsetup_la-crypt_plain.lo -libcryptsetup_la_OBJECTS = $(am_libcryptsetup_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -libcryptsetup_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libcryptsetup_la_CFLAGS) $(CFLAGS) \ - $(libcryptsetup_la_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libcryptsetup_la_SOURCES) -DIST_SOURCES = $(libcryptsetup_la_SOURCES) -RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ - ctags-recursive dvi-recursive html-recursive info-recursive \ - install-data-recursive install-dvi-recursive \ - install-exec-recursive install-html-recursive \ - install-info-recursive install-pdf-recursive \ - install-ps-recursive install-recursive installcheck-recursive \ - installdirs-recursive pdf-recursive ps-recursive \ - tags-recursive uninstall-recursive -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(pkgconfig_DATA) -HEADERS = $(include_HEADERS) -RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ - distclean-recursive maintainer-clean-recursive -am__recursive_targets = \ - $(RECURSIVE_TARGETS) \ - $(RECURSIVE_CLEAN_TARGETS) \ - $(am__extra_recursive_targets) -AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ - distdir -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -am__relativize = \ - dir0=`pwd`; \ - sed_first='s,^\([^/]*\)/.*$$,\1,'; \ - sed_rest='s,^[^/]*/*,,'; \ - sed_last='s,^.*/\([^/]*\)$$,\1,'; \ - sed_butlast='s,/*[^/]*$$,,'; \ - while test -n "$$dir1"; do \ - first=`echo "$$dir1" | sed -e "$$sed_first"`; \ - if test "$$first" != "."; then \ - if test "$$first" = ".."; then \ - dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ - dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ - else \ - first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ - if test "$$first2" = "$$first"; then \ - dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ - else \ - dir2="../$$dir2"; \ - fi; \ - dir0="$$dir0"/"$$first"; \ - fi; \ - fi; \ - dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ - done; \ - reldir="$$dir2" -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -SUBDIRS = crypto_backend luks1 loopaes verity tcrypt -moduledir = $(libdir)/cryptsetup -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = libcryptsetup.pc -AM_CPPFLAGS = -include config.h \ - -I$(top_srcdir) \ - -I$(top_srcdir)/lib/crypto_backend \ - -I$(top_srcdir)/lib/luks1 \ - -I$(top_srcdir)/lib/loopaes \ - -I$(top_srcdir)/lib/verity \ - -I$(top_srcdir)/lib/tcrypt \ - -DDATADIR=\""$(datadir)"\" \ - -DLIBDIR=\""$(libdir)"\" \ - -DPREFIX=\""$(prefix)"\" \ - -DSYSCONFDIR=\""$(sysconfdir)"\" \ - -DVERSION=\""$(VERSION)"\" - -lib_LTLIBRARIES = libcryptsetup.la -common_ldadd = \ - crypto_backend/libcrypto_backend.la \ - luks1/libluks1.la \ - loopaes/libloopaes.la \ - verity/libverity.la \ - tcrypt/libtcrypt.la - -libcryptsetup_la_DEPENDENCIES = $(common_ldadd) libcryptsetup.sym -libcryptsetup_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined \ - -Wl,--version-script=$(top_srcdir)/lib/libcryptsetup.sym \ - -version-info @LIBCRYPTSETUP_VERSION_INFO@ - -libcryptsetup_la_CFLAGS = -Wall $(AM_CFLAGS) @CRYPTO_CFLAGS@ -libcryptsetup_la_LIBADD = \ - @UUID_LIBS@ \ - @DEVMAPPER_LIBS@ \ - @CRYPTO_LIBS@ \ - $(common_ldadd) - -libcryptsetup_la_SOURCES = \ - setup.c \ - internal.h \ - bitops.h \ - nls.h \ - libcryptsetup.h \ - utils.c \ - utils_benchmark.c \ - utils_crypt.c \ - utils_crypt.h \ - utils_loop.c \ - utils_loop.h \ - utils_devpath.c \ - utils_wipe.c \ - utils_fips.c \ - utils_fips.h \ - utils_device.c \ - libdevmapper.c \ - utils_dm.h \ - volumekey.c \ - random.c \ - crypt_plain.c - -include_HEADERS = libcryptsetup.h -EXTRA_DIST = libcryptsetup.pc.in libcryptsetup.sym -all: all-recursive - -.SUFFIXES: -.SUFFIXES: .c .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 ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -libcryptsetup.pc: $(top_builddir)/config.status $(srcdir)/libcryptsetup.pc.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ - -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ - } - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libcryptsetup.la: $(libcryptsetup_la_OBJECTS) $(libcryptsetup_la_DEPENDENCIES) $(EXTRA_libcryptsetup_la_DEPENDENCIES) - $(AM_V_CCLD)$(libcryptsetup_la_LINK) -rpath $(libdir) $(libcryptsetup_la_OBJECTS) $(libcryptsetup_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-crypt_plain.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-libdevmapper.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-random.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-setup.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-utils.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-utils_benchmark.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-utils_crypt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-utils_device.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-utils_devpath.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-utils_fips.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-utils_loop.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-utils_wipe.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcryptsetup_la-volumekey.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libcryptsetup_la-setup.lo: setup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-setup.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-setup.Tpo -c -o libcryptsetup_la-setup.lo `test -f 'setup.c' || echo '$(srcdir)/'`setup.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-setup.Tpo $(DEPDIR)/libcryptsetup_la-setup.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='setup.c' object='libcryptsetup_la-setup.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-setup.lo `test -f 'setup.c' || echo '$(srcdir)/'`setup.c - -libcryptsetup_la-utils.lo: utils.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-utils.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-utils.Tpo -c -o libcryptsetup_la-utils.lo `test -f 'utils.c' || echo '$(srcdir)/'`utils.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-utils.Tpo $(DEPDIR)/libcryptsetup_la-utils.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils.c' object='libcryptsetup_la-utils.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-utils.lo `test -f 'utils.c' || echo '$(srcdir)/'`utils.c - -libcryptsetup_la-utils_benchmark.lo: utils_benchmark.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-utils_benchmark.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-utils_benchmark.Tpo -c -o libcryptsetup_la-utils_benchmark.lo `test -f 'utils_benchmark.c' || echo '$(srcdir)/'`utils_benchmark.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-utils_benchmark.Tpo $(DEPDIR)/libcryptsetup_la-utils_benchmark.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_benchmark.c' object='libcryptsetup_la-utils_benchmark.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-utils_benchmark.lo `test -f 'utils_benchmark.c' || echo '$(srcdir)/'`utils_benchmark.c - -libcryptsetup_la-utils_crypt.lo: utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-utils_crypt.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-utils_crypt.Tpo -c -o libcryptsetup_la-utils_crypt.lo `test -f 'utils_crypt.c' || echo '$(srcdir)/'`utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-utils_crypt.Tpo $(DEPDIR)/libcryptsetup_la-utils_crypt.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_crypt.c' object='libcryptsetup_la-utils_crypt.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-utils_crypt.lo `test -f 'utils_crypt.c' || echo '$(srcdir)/'`utils_crypt.c - -libcryptsetup_la-utils_loop.lo: utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-utils_loop.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-utils_loop.Tpo -c -o libcryptsetup_la-utils_loop.lo `test -f 'utils_loop.c' || echo '$(srcdir)/'`utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-utils_loop.Tpo $(DEPDIR)/libcryptsetup_la-utils_loop.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_loop.c' object='libcryptsetup_la-utils_loop.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-utils_loop.lo `test -f 'utils_loop.c' || echo '$(srcdir)/'`utils_loop.c - -libcryptsetup_la-utils_devpath.lo: utils_devpath.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-utils_devpath.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-utils_devpath.Tpo -c -o libcryptsetup_la-utils_devpath.lo `test -f 'utils_devpath.c' || echo '$(srcdir)/'`utils_devpath.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-utils_devpath.Tpo $(DEPDIR)/libcryptsetup_la-utils_devpath.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_devpath.c' object='libcryptsetup_la-utils_devpath.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-utils_devpath.lo `test -f 'utils_devpath.c' || echo '$(srcdir)/'`utils_devpath.c - -libcryptsetup_la-utils_wipe.lo: utils_wipe.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-utils_wipe.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-utils_wipe.Tpo -c -o libcryptsetup_la-utils_wipe.lo `test -f 'utils_wipe.c' || echo '$(srcdir)/'`utils_wipe.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-utils_wipe.Tpo $(DEPDIR)/libcryptsetup_la-utils_wipe.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_wipe.c' object='libcryptsetup_la-utils_wipe.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-utils_wipe.lo `test -f 'utils_wipe.c' || echo '$(srcdir)/'`utils_wipe.c - -libcryptsetup_la-utils_fips.lo: utils_fips.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-utils_fips.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-utils_fips.Tpo -c -o libcryptsetup_la-utils_fips.lo `test -f 'utils_fips.c' || echo '$(srcdir)/'`utils_fips.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-utils_fips.Tpo $(DEPDIR)/libcryptsetup_la-utils_fips.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_fips.c' object='libcryptsetup_la-utils_fips.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-utils_fips.lo `test -f 'utils_fips.c' || echo '$(srcdir)/'`utils_fips.c - -libcryptsetup_la-utils_device.lo: utils_device.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-utils_device.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-utils_device.Tpo -c -o libcryptsetup_la-utils_device.lo `test -f 'utils_device.c' || echo '$(srcdir)/'`utils_device.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-utils_device.Tpo $(DEPDIR)/libcryptsetup_la-utils_device.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_device.c' object='libcryptsetup_la-utils_device.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-utils_device.lo `test -f 'utils_device.c' || echo '$(srcdir)/'`utils_device.c - -libcryptsetup_la-libdevmapper.lo: libdevmapper.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-libdevmapper.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-libdevmapper.Tpo -c -o libcryptsetup_la-libdevmapper.lo `test -f 'libdevmapper.c' || echo '$(srcdir)/'`libdevmapper.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-libdevmapper.Tpo $(DEPDIR)/libcryptsetup_la-libdevmapper.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libdevmapper.c' object='libcryptsetup_la-libdevmapper.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-libdevmapper.lo `test -f 'libdevmapper.c' || echo '$(srcdir)/'`libdevmapper.c - -libcryptsetup_la-volumekey.lo: volumekey.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-volumekey.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-volumekey.Tpo -c -o libcryptsetup_la-volumekey.lo `test -f 'volumekey.c' || echo '$(srcdir)/'`volumekey.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-volumekey.Tpo $(DEPDIR)/libcryptsetup_la-volumekey.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='volumekey.c' object='libcryptsetup_la-volumekey.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-volumekey.lo `test -f 'volumekey.c' || echo '$(srcdir)/'`volumekey.c - -libcryptsetup_la-random.lo: random.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-random.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-random.Tpo -c -o libcryptsetup_la-random.lo `test -f 'random.c' || echo '$(srcdir)/'`random.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-random.Tpo $(DEPDIR)/libcryptsetup_la-random.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='random.c' object='libcryptsetup_la-random.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-random.lo `test -f 'random.c' || echo '$(srcdir)/'`random.c - -libcryptsetup_la-crypt_plain.lo: crypt_plain.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -MT libcryptsetup_la-crypt_plain.lo -MD -MP -MF $(DEPDIR)/libcryptsetup_la-crypt_plain.Tpo -c -o libcryptsetup_la-crypt_plain.lo `test -f 'crypt_plain.c' || echo '$(srcdir)/'`crypt_plain.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcryptsetup_la-crypt_plain.Tpo $(DEPDIR)/libcryptsetup_la-crypt_plain.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crypt_plain.c' object='libcryptsetup_la-crypt_plain.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcryptsetup_la_CFLAGS) $(CFLAGS) -c -o libcryptsetup_la-crypt_plain.lo `test -f 'crypt_plain.c' || echo '$(srcdir)/'`crypt_plain.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pkgconfigDATA: $(pkgconfig_DATA) - @$(NORMAL_INSTALL) - @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ - done - -uninstall-pkgconfigDATA: - @$(NORMAL_UNINSTALL) - @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) -install-includeHEADERS: $(include_HEADERS) - @$(NORMAL_INSTALL) - @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ - $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ - done - -uninstall-includeHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) - -# This directory's subdirectories are mostly independent; you can cd -# into them and run 'make' without going through this Makefile. -# To change the values of 'make' variables: instead of editing Makefiles, -# (1) if the variable is set in 'config.status', edit 'config.status' -# (which will cause the Makefiles to be regenerated when you run 'make'); -# (2) otherwise, pass the desired values on the 'make' command line. -$(am__recursive_targets): - @fail=; \ - if $(am__make_keepgoing); then \ - failcom='fail=yes'; \ - else \ - failcom='exit 1'; \ - fi; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-recursive -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-recursive - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-recursive - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - $(am__make_dryrun) \ - || test -d "$(distdir)/$$subdir" \ - || $(MKDIR_P) "$(distdir)/$$subdir" \ - || exit 1; \ - dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ - $(am__relativize); \ - new_distdir=$$reldir; \ - dir1=$$subdir; dir2="$(top_distdir)"; \ - $(am__relativize); \ - new_top_distdir=$$reldir; \ - echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ - echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ - ($(am__cd) $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$new_top_distdir" \ - distdir="$$new_distdir" \ - am__remove_distdir=: \ - am__skip_length_check=: \ - am__skip_mode_fix=: \ - distdir) \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-recursive -all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ - 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 - -html-am: - -info: info-recursive - -info-am: - -install-data-am: install-includeHEADERS install-pkgconfigDATA - -install-dvi: install-dvi-recursive - -install-dvi-am: - -install-exec-am: install-libLTLIBRARIES - -install-html: install-html-recursive - -install-html-am: - -install-info: install-info-recursive - -install-info-am: - -install-man: - -install-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -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-includeHEADERS uninstall-libLTLIBRARIES \ - uninstall-pkgconfigDATA - -.MAKE: $(am__recursive_targets) install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ - check-am clean clean-generic clean-libLTLIBRARIES \ - clean-libtool cscopelist-am ctags ctags-am distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-includeHEADERS install-info \ - install-info-am install-libLTLIBRARIES install-man install-pdf \ - install-pdf-am install-pkgconfigDATA install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - installdirs-am maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ - uninstall-am uninstall-includeHEADERS uninstall-libLTLIBRARIES \ - uninstall-pkgconfigDATA - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/lib/crypt_plain.c b/lib/crypt_plain.c index 3f8e96b..61a93f5 100644 --- a/lib/crypt_plain.c +++ b/lib/crypt_plain.c @@ -1,7 +1,7 @@ /* * cryptsetup plain device helper functions * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2010-2012 Red Hat, Inc. All rights reserved. * Copyright (C) 2010-2012, Milan Broz * @@ -21,7 +21,7 @@ */ #include -#include +#include #include #include "libcryptsetup.h" @@ -83,11 +83,7 @@ int crypt_plain_hash(struct crypt_device *ctx __attribute__((unused)), /* hash[:hash_length] */ if ((s = strchr(hash_name_buf, ':'))) { *s = '\0'; - s++; - if (!*s || sscanf(s, "%zd", &hash_size) != 1) { - log_dbg("Hash length is not a number"); - return -EINVAL; - } + hash_size = atoi(++s); if (hash_size > key_size) { log_dbg("Hash length %zd > key length %zd", hash_size, key_size); @@ -99,16 +95,7 @@ int crypt_plain_hash(struct crypt_device *ctx __attribute__((unused)), pad_size = 0; } - /* No hash, copy passphrase directly */ - if (!strcmp(hash_name_buf, "plain")) { - if (passphrase_size < hash_size) { - log_dbg("Too short plain passphrase."); - return -EINVAL; - } - memcpy(key, passphrase, hash_size); - r = 0; - } else - r = hash(hash_name_buf, hash_size, key, passphrase_size, passphrase); + r = hash(hash_name_buf, hash_size, key, passphrase_size, passphrase); if (r == 0 && pad_size) memset(key + hash_size, 0, pad_size); diff --git a/lib/crypto_backend/Makefile.am b/lib/crypto_backend/Makefile.am index 942d258..e981159 100644 --- a/lib/crypto_backend/Makefile.am +++ b/lib/crypto_backend/Makefile.am @@ -5,7 +5,7 @@ noinst_LTLIBRARIES = libcrypto_backend.la libcrypto_backend_la_CFLAGS = $(AM_CFLAGS) -Wall @CRYPTO_CFLAGS@ libcrypto_backend_la_SOURCES = crypto_backend.h \ - crypto_cipher_kernel.c crypto_storage.c pbkdf_check.c crc32.c + crypto_cipher_kernel.c pbkdf_check.c crc32.c if CRYPTO_BACKEND_GCRYPT libcrypto_backend_la_SOURCES += crypto_gcrypt.c diff --git a/lib/crypto_backend/Makefile.in b/lib/crypto_backend/Makefile.in deleted file mode 100644 index cb6dcfc..0000000 --- a/lib/crypto_backend/Makefile.in +++ /dev/null @@ -1,738 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@CRYPTO_BACKEND_GCRYPT_TRUE@am__append_1 = crypto_gcrypt.c -@CRYPTO_BACKEND_OPENSSL_TRUE@am__append_2 = crypto_openssl.c -@CRYPTO_BACKEND_NSS_TRUE@am__append_3 = crypto_nss.c -@CRYPTO_BACKEND_KERNEL_TRUE@am__append_4 = crypto_kernel.c -@CRYPTO_BACKEND_NETTLE_TRUE@am__append_5 = crypto_nettle.c -@CRYPTO_INTERNAL_PBKDF2_TRUE@am__append_6 = pbkdf2_generic.c -subdir = lib/crypto_backend -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(top_srcdir)/depcomp -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libcrypto_backend_la_LIBADD = -am__libcrypto_backend_la_SOURCES_DIST = crypto_backend.h \ - crypto_cipher_kernel.c crypto_storage.c pbkdf_check.c crc32.c \ - crypto_gcrypt.c crypto_openssl.c crypto_nss.c crypto_kernel.c \ - crypto_nettle.c pbkdf2_generic.c -@CRYPTO_BACKEND_GCRYPT_TRUE@am__objects_1 = libcrypto_backend_la-crypto_gcrypt.lo -@CRYPTO_BACKEND_OPENSSL_TRUE@am__objects_2 = libcrypto_backend_la-crypto_openssl.lo -@CRYPTO_BACKEND_NSS_TRUE@am__objects_3 = \ -@CRYPTO_BACKEND_NSS_TRUE@ libcrypto_backend_la-crypto_nss.lo -@CRYPTO_BACKEND_KERNEL_TRUE@am__objects_4 = libcrypto_backend_la-crypto_kernel.lo -@CRYPTO_BACKEND_NETTLE_TRUE@am__objects_5 = libcrypto_backend_la-crypto_nettle.lo -@CRYPTO_INTERNAL_PBKDF2_TRUE@am__objects_6 = libcrypto_backend_la-pbkdf2_generic.lo -am_libcrypto_backend_la_OBJECTS = \ - libcrypto_backend_la-crypto_cipher_kernel.lo \ - libcrypto_backend_la-crypto_storage.lo \ - libcrypto_backend_la-pbkdf_check.lo \ - libcrypto_backend_la-crc32.lo $(am__objects_1) \ - $(am__objects_2) $(am__objects_3) $(am__objects_4) \ - $(am__objects_5) $(am__objects_6) -libcrypto_backend_la_OBJECTS = $(am_libcrypto_backend_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -libcrypto_backend_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libcrypto_backend_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libcrypto_backend_la_SOURCES) -DIST_SOURCES = $(am__libcrypto_backend_la_SOURCES_DIST) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -moduledir = $(libdir)/cryptsetup -noinst_LTLIBRARIES = libcrypto_backend.la -libcrypto_backend_la_CFLAGS = $(AM_CFLAGS) -Wall @CRYPTO_CFLAGS@ -libcrypto_backend_la_SOURCES = crypto_backend.h crypto_cipher_kernel.c \ - crypto_storage.c pbkdf_check.c crc32.c $(am__append_1) \ - $(am__append_2) $(am__append_3) $(am__append_4) \ - $(am__append_5) $(am__append_6) -AM_CPPFLAGS = -include config.h -I$(top_srcdir)/lib -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .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 ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/crypto_backend/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/crypto_backend/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libcrypto_backend.la: $(libcrypto_backend_la_OBJECTS) $(libcrypto_backend_la_DEPENDENCIES) $(EXTRA_libcrypto_backend_la_DEPENDENCIES) - $(AM_V_CCLD)$(libcrypto_backend_la_LINK) $(libcrypto_backend_la_OBJECTS) $(libcrypto_backend_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcrypto_backend_la-crc32.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcrypto_backend_la-crypto_cipher_kernel.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcrypto_backend_la-crypto_gcrypt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcrypto_backend_la-crypto_kernel.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcrypto_backend_la-crypto_nettle.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcrypto_backend_la-crypto_nss.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcrypto_backend_la-crypto_openssl.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcrypto_backend_la-crypto_storage.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcrypto_backend_la-pbkdf2_generic.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcrypto_backend_la-pbkdf_check.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libcrypto_backend_la-crypto_cipher_kernel.lo: crypto_cipher_kernel.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -MT libcrypto_backend_la-crypto_cipher_kernel.lo -MD -MP -MF $(DEPDIR)/libcrypto_backend_la-crypto_cipher_kernel.Tpo -c -o libcrypto_backend_la-crypto_cipher_kernel.lo `test -f 'crypto_cipher_kernel.c' || echo '$(srcdir)/'`crypto_cipher_kernel.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcrypto_backend_la-crypto_cipher_kernel.Tpo $(DEPDIR)/libcrypto_backend_la-crypto_cipher_kernel.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crypto_cipher_kernel.c' object='libcrypto_backend_la-crypto_cipher_kernel.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -c -o libcrypto_backend_la-crypto_cipher_kernel.lo `test -f 'crypto_cipher_kernel.c' || echo '$(srcdir)/'`crypto_cipher_kernel.c - -libcrypto_backend_la-crypto_storage.lo: crypto_storage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -MT libcrypto_backend_la-crypto_storage.lo -MD -MP -MF $(DEPDIR)/libcrypto_backend_la-crypto_storage.Tpo -c -o libcrypto_backend_la-crypto_storage.lo `test -f 'crypto_storage.c' || echo '$(srcdir)/'`crypto_storage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcrypto_backend_la-crypto_storage.Tpo $(DEPDIR)/libcrypto_backend_la-crypto_storage.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crypto_storage.c' object='libcrypto_backend_la-crypto_storage.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -c -o libcrypto_backend_la-crypto_storage.lo `test -f 'crypto_storage.c' || echo '$(srcdir)/'`crypto_storage.c - -libcrypto_backend_la-pbkdf_check.lo: pbkdf_check.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -MT libcrypto_backend_la-pbkdf_check.lo -MD -MP -MF $(DEPDIR)/libcrypto_backend_la-pbkdf_check.Tpo -c -o libcrypto_backend_la-pbkdf_check.lo `test -f 'pbkdf_check.c' || echo '$(srcdir)/'`pbkdf_check.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcrypto_backend_la-pbkdf_check.Tpo $(DEPDIR)/libcrypto_backend_la-pbkdf_check.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pbkdf_check.c' object='libcrypto_backend_la-pbkdf_check.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -c -o libcrypto_backend_la-pbkdf_check.lo `test -f 'pbkdf_check.c' || echo '$(srcdir)/'`pbkdf_check.c - -libcrypto_backend_la-crc32.lo: crc32.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -MT libcrypto_backend_la-crc32.lo -MD -MP -MF $(DEPDIR)/libcrypto_backend_la-crc32.Tpo -c -o libcrypto_backend_la-crc32.lo `test -f 'crc32.c' || echo '$(srcdir)/'`crc32.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcrypto_backend_la-crc32.Tpo $(DEPDIR)/libcrypto_backend_la-crc32.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crc32.c' object='libcrypto_backend_la-crc32.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -c -o libcrypto_backend_la-crc32.lo `test -f 'crc32.c' || echo '$(srcdir)/'`crc32.c - -libcrypto_backend_la-crypto_gcrypt.lo: crypto_gcrypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -MT libcrypto_backend_la-crypto_gcrypt.lo -MD -MP -MF $(DEPDIR)/libcrypto_backend_la-crypto_gcrypt.Tpo -c -o libcrypto_backend_la-crypto_gcrypt.lo `test -f 'crypto_gcrypt.c' || echo '$(srcdir)/'`crypto_gcrypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcrypto_backend_la-crypto_gcrypt.Tpo $(DEPDIR)/libcrypto_backend_la-crypto_gcrypt.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crypto_gcrypt.c' object='libcrypto_backend_la-crypto_gcrypt.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -c -o libcrypto_backend_la-crypto_gcrypt.lo `test -f 'crypto_gcrypt.c' || echo '$(srcdir)/'`crypto_gcrypt.c - -libcrypto_backend_la-crypto_openssl.lo: crypto_openssl.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -MT libcrypto_backend_la-crypto_openssl.lo -MD -MP -MF $(DEPDIR)/libcrypto_backend_la-crypto_openssl.Tpo -c -o libcrypto_backend_la-crypto_openssl.lo `test -f 'crypto_openssl.c' || echo '$(srcdir)/'`crypto_openssl.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcrypto_backend_la-crypto_openssl.Tpo $(DEPDIR)/libcrypto_backend_la-crypto_openssl.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crypto_openssl.c' object='libcrypto_backend_la-crypto_openssl.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -c -o libcrypto_backend_la-crypto_openssl.lo `test -f 'crypto_openssl.c' || echo '$(srcdir)/'`crypto_openssl.c - -libcrypto_backend_la-crypto_nss.lo: crypto_nss.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -MT libcrypto_backend_la-crypto_nss.lo -MD -MP -MF $(DEPDIR)/libcrypto_backend_la-crypto_nss.Tpo -c -o libcrypto_backend_la-crypto_nss.lo `test -f 'crypto_nss.c' || echo '$(srcdir)/'`crypto_nss.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcrypto_backend_la-crypto_nss.Tpo $(DEPDIR)/libcrypto_backend_la-crypto_nss.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crypto_nss.c' object='libcrypto_backend_la-crypto_nss.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -c -o libcrypto_backend_la-crypto_nss.lo `test -f 'crypto_nss.c' || echo '$(srcdir)/'`crypto_nss.c - -libcrypto_backend_la-crypto_kernel.lo: crypto_kernel.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -MT libcrypto_backend_la-crypto_kernel.lo -MD -MP -MF $(DEPDIR)/libcrypto_backend_la-crypto_kernel.Tpo -c -o libcrypto_backend_la-crypto_kernel.lo `test -f 'crypto_kernel.c' || echo '$(srcdir)/'`crypto_kernel.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcrypto_backend_la-crypto_kernel.Tpo $(DEPDIR)/libcrypto_backend_la-crypto_kernel.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crypto_kernel.c' object='libcrypto_backend_la-crypto_kernel.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -c -o libcrypto_backend_la-crypto_kernel.lo `test -f 'crypto_kernel.c' || echo '$(srcdir)/'`crypto_kernel.c - -libcrypto_backend_la-crypto_nettle.lo: crypto_nettle.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -MT libcrypto_backend_la-crypto_nettle.lo -MD -MP -MF $(DEPDIR)/libcrypto_backend_la-crypto_nettle.Tpo -c -o libcrypto_backend_la-crypto_nettle.lo `test -f 'crypto_nettle.c' || echo '$(srcdir)/'`crypto_nettle.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcrypto_backend_la-crypto_nettle.Tpo $(DEPDIR)/libcrypto_backend_la-crypto_nettle.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crypto_nettle.c' object='libcrypto_backend_la-crypto_nettle.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -c -o libcrypto_backend_la-crypto_nettle.lo `test -f 'crypto_nettle.c' || echo '$(srcdir)/'`crypto_nettle.c - -libcrypto_backend_la-pbkdf2_generic.lo: pbkdf2_generic.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -MT libcrypto_backend_la-pbkdf2_generic.lo -MD -MP -MF $(DEPDIR)/libcrypto_backend_la-pbkdf2_generic.Tpo -c -o libcrypto_backend_la-pbkdf2_generic.lo `test -f 'pbkdf2_generic.c' || echo '$(srcdir)/'`pbkdf2_generic.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcrypto_backend_la-pbkdf2_generic.Tpo $(DEPDIR)/libcrypto_backend_la-pbkdf2_generic.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pbkdf2_generic.c' object='libcrypto_backend_la-pbkdf2_generic.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcrypto_backend_la_CFLAGS) $(CFLAGS) -c -o libcrypto_backend_la-pbkdf2_generic.lo `test -f 'pbkdf2_generic.c' || echo '$(srcdir)/'`pbkdf2_generic.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/lib/crypto_backend/crypto_backend.h b/lib/crypto_backend/crypto_backend.h index 0aab38c..06f5c81 100644 --- a/lib/crypto_backend/crypto_backend.h +++ b/lib/crypto_backend/crypto_backend.h @@ -2,7 +2,7 @@ * crypto backend implementation * * Copyright (C) 2010-2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2010-2014, Milan Broz + * Copyright (C) 2010-2012, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -28,7 +28,6 @@ struct crypt_device; struct crypt_hash; struct crypt_hmac; struct crypt_cipher; -struct crypt_storage; int crypt_backend_init(struct crypt_device *ctx); @@ -73,15 +72,13 @@ int pkcs5_pbkdf2(const char *hash, const char *P, size_t Plen, const char *S, size_t Slen, unsigned int c, - unsigned int dkLen, char *DK, - unsigned int hash_block_size); + unsigned int dkLen,char *DK); #endif /* CRC32 */ uint32_t crypt_crc32(uint32_t seed, const unsigned char *buf, size_t len); /* ciphers */ -int crypt_cipher_blocksize(const char *name); int crypt_cipher_init(struct crypt_cipher **ctx, const char *name, const char *mode, const void *buffer, size_t length); int crypt_cipher_destroy(struct crypt_cipher *ctx); @@ -92,21 +89,4 @@ int crypt_cipher_decrypt(struct crypt_cipher *ctx, const char *in, char *out, size_t length, const char *iv, size_t iv_length); -/* storage encryption wrappers */ -int crypt_storage_init(struct crypt_storage **ctx, uint64_t sector_start, - const char *cipher, const char *cipher_mode, - char *key, size_t key_length); -int crypt_storage_destroy(struct crypt_storage *ctx); -int crypt_storage_decrypt(struct crypt_storage *ctx, uint64_t sector, - size_t count, char *buffer); -int crypt_storage_encrypt(struct crypt_storage *ctx, uint64_t sector, - size_t count, char *buffer); - -/* Memzero helper (memset on stack can be optimized out) */ -static inline void crypt_backend_memzero(void *s, size_t n) -{ - volatile uint8_t *p = (volatile uint8_t *)s; - while(n--) *p++ = 0; -} - #endif /* _CRYPTO_BACKEND_H */ diff --git a/lib/crypto_backend/crypto_cipher_kernel.c b/lib/crypto_backend/crypto_cipher_kernel.c index f7d2bcf..2dd6595 100644 --- a/lib/crypto_backend/crypto_cipher_kernel.c +++ b/lib/crypto_backend/crypto_cipher_kernel.c @@ -2,7 +2,7 @@ * Linux kernel userspace API crypto backend implementation (skcipher) * * Copyright (C) 2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2012-2014, Milan Broz + * Copyright (C) 2012, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -44,50 +44,6 @@ struct crypt_cipher { int opfd; }; -struct cipher_alg { - const char *name; - int blocksize; -}; - -/* FIXME: Getting block size should be dynamic from cipher backend. */ -static struct cipher_alg cipher_algs[] = { - { "cipher_null", 16 }, - { "aes", 16 }, - { "serpent", 16 }, - { "twofish", 16 }, - { "anubis", 16 }, - { "blowfish", 8 }, - { "camellia", 16 }, - { "cast5", 8 }, - { "cast6", 16 }, - { "des", 8 }, - { "des3_ede", 8 }, - { "khazad", 8 }, - { "seed", 16 }, - { "tea", 8 }, - { "xtea", 8 }, - { NULL, 0 } -}; - -static struct cipher_alg *_get_alg(const char *name) -{ - int i = 0; - - while (name && cipher_algs[i].name) { - if (!strcasecmp(name, cipher_algs[i].name)) - return &cipher_algs[i]; - i++; - } - return NULL; -} - -int crypt_cipher_blocksize(const char *name) -{ - struct cipher_alg *ca = _get_alg(name); - - return ca ? ca->blocksize : -EINVAL; -} - /* Shared with hash kernel backend */ int crypt_kernel_socket_init(struct sockaddr_alg *sa, int *tfmfd, int *opfd); @@ -143,8 +99,7 @@ int crypt_cipher_init(struct crypt_cipher **ctx, const char *name, return r; } - if (length && strcmp(name, "cipher_null") && - setsockopt(h->tfmfd, SOL_ALG, ALG_SET_KEY, buffer, length) == -1) { + if (setsockopt(h->tfmfd, SOL_ALG, ALG_SET_KEY, buffer, length) == -1) { crypt_cipher_destroy(h); return -EINVAL; } @@ -187,9 +142,6 @@ static int crypt_cipher_crypt(struct crypt_cipher *ctx, /* Set encrypt/decrypt operation */ header = CMSG_FIRSTHDR(&msg); - if (!header) - return -EINVAL; - header->cmsg_level = SOL_ALG; header->cmsg_type = ALG_SET_OP; header->cmsg_len = CMSG_LEN(sizeof(*type)); @@ -217,7 +169,7 @@ static int crypt_cipher_crypt(struct crypt_cipher *ctx, if (len != (ssize_t)length) r = -EIO; bad: - crypt_backend_memzero(buffer, sizeof(buffer)); + memset(buffer, 0, sizeof(buffer)); return r; } @@ -250,11 +202,6 @@ int crypt_cipher_destroy(struct crypt_cipher *ctx) #else /* ENABLE_AF_ALG */ -int crypt_cipher_blocksize(const char *name) -{ - return -EINVAL; -} - int crypt_cipher_init(struct crypt_cipher **ctx, const char *name, const char *mode, const void *buffer, size_t length) { diff --git a/lib/crypto_backend/crypto_gcrypt.c b/lib/crypto_backend/crypto_gcrypt.c index 9037ad6..0916eb2 100644 --- a/lib/crypto_backend/crypto_gcrypt.c +++ b/lib/crypto_backend/crypto_gcrypt.c @@ -2,7 +2,7 @@ * GCRYPT crypto backend implementation * * Copyright (C) 2010-2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2010-2014, Milan Broz + * Copyright (C) 2010-2012, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -28,7 +28,6 @@ static int crypto_backend_initialised = 0; static int crypto_backend_secmem = 1; -static int crypto_backend_whirlpool_bug = -1; static char version[64]; struct crypt_hash { @@ -43,44 +42,6 @@ struct crypt_hmac { int hash_len; }; -/* - * Test for wrong Whirlpool variant, - * Ref: http://lists.gnupg.org/pipermail/gcrypt-devel/2014-January/002889.html - */ -static void crypt_hash_test_whirlpool_bug(void) -{ - struct crypt_hash *h; - char buf[2] = "\0\0", hash_out1[64], hash_out2[64]; - int r; - - if (crypto_backend_whirlpool_bug >= 0) - return; - - crypto_backend_whirlpool_bug = 0; - if (crypt_hash_init(&h, "whirlpool")) - return; - - /* One shot */ - if ((r = crypt_hash_write(h, &buf[0], 2)) || - (r = crypt_hash_final(h, hash_out1, 64))) { - crypt_hash_destroy(h); - return; - } - - /* Split buf (crypt_hash_final resets hash state) */ - if ((r = crypt_hash_write(h, &buf[0], 1)) || - (r = crypt_hash_write(h, &buf[1], 1)) || - (r = crypt_hash_final(h, hash_out2, 64))) { - crypt_hash_destroy(h); - return; - } - - crypt_hash_destroy(h); - - if (memcmp(hash_out1, hash_out2, 64)) - crypto_backend_whirlpool_bug = 1; -} - int crypt_backend_init(struct crypt_device *ctx) { if (crypto_backend_initialised) @@ -109,15 +70,10 @@ int crypt_backend_init(struct crypt_device *ctx) gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); } - crypto_backend_initialised = 1; - crypt_hash_test_whirlpool_bug(); - - snprintf(version, 64, "gcrypt %s%s%s", + snprintf(version, 64, "gcrypt %s%s", gcry_check_version(NULL), - crypto_backend_secmem ? "" : ", secmem disabled", - crypto_backend_whirlpool_bug > 0 ? ", flawed whirlpool" : "" - ); - + crypto_backend_secmem ? "" : ", secmem disabled"); + crypto_backend_initialised = 1; return 0; } @@ -131,23 +87,6 @@ uint32_t crypt_backend_flags(void) return 0; } -static const char *crypt_hash_compat_name(const char *name, unsigned int *flags) -{ - const char *hash_name = name; - - /* "whirlpool_gcryptbug" is out shortcut to flawed whirlpool - * in libgcrypt < 1.6.0 */ - if (name && !strcasecmp(name, "whirlpool_gcryptbug")) { -#if GCRYPT_VERSION_NUMBER >= 0x010601 - if (flags) - *flags |= GCRY_MD_FLAG_BUGEMU1; -#endif - hash_name = "whirlpool"; - } - - return hash_name; -} - /* HASH */ int crypt_hash_size(const char *name) { @@ -155,7 +94,7 @@ int crypt_hash_size(const char *name) assert(crypto_backend_initialised); - hash_id = gcry_md_map_name(crypt_hash_compat_name(name, NULL)); + hash_id = gcry_md_map_name(name); if (!hash_id) return -EINVAL; @@ -165,7 +104,6 @@ int crypt_hash_size(const char *name) int crypt_hash_init(struct crypt_hash **ctx, const char *name) { struct crypt_hash *h; - unsigned int flags = 0; assert(crypto_backend_initialised); @@ -173,13 +111,13 @@ int crypt_hash_init(struct crypt_hash **ctx, const char *name) if (!h) return -ENOMEM; - h->hash_id = gcry_md_map_name(crypt_hash_compat_name(name, &flags)); + h->hash_id = gcry_md_map_name(name); if (!h->hash_id) { free(h); return -EINVAL; } - if (gcry_md_open(&h->hd, h->hash_id, flags)) { + if (gcry_md_open(&h->hd, h->hash_id, 0)) { free(h); return -EINVAL; } @@ -235,7 +173,6 @@ int crypt_hmac_init(struct crypt_hmac **ctx, const char *name, const void *buffer, size_t length) { struct crypt_hmac *h; - unsigned int flags = GCRY_MD_FLAG_HMAC; assert(crypto_backend_initialised); @@ -243,13 +180,13 @@ int crypt_hmac_init(struct crypt_hmac **ctx, const char *name, if (!h) return -ENOMEM; - h->hash_id = gcry_md_map_name(crypt_hash_compat_name(name, &flags)); + h->hash_id = gcry_md_map_name(name); if (!h->hash_id) { free(h); return -EINVAL; } - if (gcry_md_open(&h->hd, h->hash_id, flags)) { + if (gcry_md_open(&h->hd, h->hash_id, GCRY_MD_FLAG_HMAC)) { free(h); return -EINVAL; } @@ -324,17 +261,15 @@ int crypt_pbkdf(const char *kdf, const char *hash, char *key, size_t key_length, unsigned int iterations) { - const char *hash_name = crypt_hash_compat_name(hash, NULL); - #if USE_INTERNAL_PBKDF2 if (!kdf || strncmp(kdf, "pbkdf2", 6)) return -EINVAL; - return pkcs5_pbkdf2(hash_name, password, password_length, salt, salt_length, - iterations, key_length, key, 0); + return pkcs5_pbkdf2(hash, password, password_length, salt, salt_length, + iterations, key_length, key); #else /* USE_INTERNAL_PBKDF2 */ - int hash_id = gcry_md_map_name(hash_name); + int hash_id = gcry_md_map_name(hash); int kdf_id; if (!hash_id) diff --git a/lib/crypto_backend/crypto_kernel.c b/lib/crypto_backend/crypto_kernel.c index 874d3a8..9b26fb5 100644 --- a/lib/crypto_backend/crypto_kernel.c +++ b/lib/crypto_backend/crypto_kernel.c @@ -2,7 +2,7 @@ * Linux kernel userspace API crypto backend implementation * * Copyright (C) 2010-2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2010-2014, Milan Broz + * Copyright (C) 2010-2012, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -44,16 +44,15 @@ struct hash_alg { const char *name; const char *kernel_name; int length; - unsigned int block_length; }; static struct hash_alg hash_algs[] = { - { "sha1", "sha1", 20, 64 }, - { "sha256", "sha256", 32, 64 }, - { "sha512", "sha512", 64, 128 }, - { "ripemd160", "rmd160", 20, 64 }, - { "whirlpool", "wp512", 64, 64 }, - { NULL, NULL, 0, 0 } + { "sha1", "sha1", 20 }, + { "sha256", "sha256", 32 }, + { "sha512", "sha512", 64 }, + { "ripemd160", "rmd160", 20 }, + { "whirlpool", "wp512", 64 }, + { NULL, NULL, 0 } }; struct crypt_hash { @@ -290,11 +289,9 @@ int crypt_pbkdf(const char *kdf, const char *hash, char *key, size_t key_length, unsigned int iterations) { - struct hash_alg *ha = _get_alg(hash); - - if (!ha || !kdf || strncmp(kdf, "pbkdf2", 6)) + if (!kdf || strncmp(kdf, "pbkdf2", 6)) return -EINVAL; return pkcs5_pbkdf2(hash, password, password_length, salt, salt_length, - iterations, key_length, key, ha->block_length); + iterations, key_length, key); } diff --git a/lib/crypto_backend/crypto_nettle.c b/lib/crypto_backend/crypto_nettle.c index cc6617a..21820d9 100644 --- a/lib/crypto_backend/crypto_nettle.c +++ b/lib/crypto_backend/crypto_nettle.c @@ -2,7 +2,7 @@ * Nettle crypto backend implementation * * Copyright (C) 2011-2012 Red Hat, Inc. All rights reserved. - * Copyright (C) 2011-2014, Milan Broz + * Copyright (C) 2011-2012, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -24,7 +24,6 @@ #include #include #include -#include #include "crypto_backend.h" static char *version = "Nettle"; @@ -266,8 +265,8 @@ int crypt_hmac_final(struct crypt_hmac *ctx, char *buffer, size_t length) int crypt_hmac_destroy(struct crypt_hmac *ctx) { memset(ctx->key, 0, ctx->key_length); - free(ctx->key); memset(ctx, 0, sizeof(*ctx)); + free(ctx->key); free(ctx); return 0; } @@ -285,21 +284,10 @@ int crypt_pbkdf(const char *kdf, const char *hash, char *key, size_t key_length, unsigned int iterations) { - struct crypt_hmac *h; - int r; - if (!kdf || strncmp(kdf, "pbkdf2", 6)) return -EINVAL; - r = crypt_hmac_init(&h, hash, password, password_length); - if (r < 0) - return r; - - nettle_pbkdf2(&h->nettle_ctx, h->hash->nettle_hmac_update, - h->hash->nettle_hmac_digest, h->hash->length, iterations, - salt_length, (const uint8_t *)salt, key_length, - (uint8_t *)key); - crypt_hmac_destroy(h); - - return 0; + /* FIXME: switch to internal implementation in Nettle 2.6 */ + return pkcs5_pbkdf2(hash, password, password_length, salt, salt_length, + iterations, key_length, key); } diff --git a/lib/crypto_backend/crypto_nss.c b/lib/crypto_backend/crypto_nss.c index 4b9f943..fba6576 100644 --- a/lib/crypto_backend/crypto_nss.c +++ b/lib/crypto_backend/crypto_nss.c @@ -2,7 +2,7 @@ * NSS crypto backend implementation * * Copyright (C) 2010-2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2010-2014, Milan Broz + * Copyright (C) 2010-2012, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -35,15 +35,14 @@ struct hash_alg { SECOidTag oid; CK_MECHANISM_TYPE ck_type; int length; - unsigned int block_length; }; static struct hash_alg hash_algs[] = { - { "sha1", SEC_OID_SHA1, CKM_SHA_1_HMAC, 20, 64 }, - { "sha256", SEC_OID_SHA256, CKM_SHA256_HMAC, 32, 64 }, - { "sha384", SEC_OID_SHA384, CKM_SHA384_HMAC, 48, 128 }, - { "sha512", SEC_OID_SHA512, CKM_SHA512_HMAC, 64, 128 }, -// { "ripemd160", SEC_OID_RIPEMD160, CKM_RIPEMD160_HMAC, 20, 64 }, + { "sha1", SEC_OID_SHA1, CKM_SHA_1_HMAC, 20 }, + { "sha256", SEC_OID_SHA256, CKM_SHA256_HMAC, 32 }, + { "sha384", SEC_OID_SHA384, CKM_SHA384_HMAC, 48 }, + { "sha512", SEC_OID_SHA512, CKM_SHA512_HMAC, 64 }, +// { "ripemd160", SEC_OID_RIPEMD160, CKM_RIPEMD160_HMAC, 20 }, { NULL, 0, 0, 0 } }; @@ -164,7 +163,7 @@ int crypt_hash_final(struct crypt_hash *ctx, char *buffer, size_t length) return -EINVAL; memcpy(buffer, tmp, length); - crypt_backend_memzero(tmp, sizeof(tmp)); + memset(tmp, 0, sizeof(tmp)); if (tmp_len < length) return -EINVAL; @@ -266,7 +265,7 @@ int crypt_hmac_final(struct crypt_hmac *ctx, char *buffer, size_t length) return -EINVAL; memcpy(buffer, tmp, length); - crypt_backend_memzero(tmp, sizeof(tmp)); + memset(tmp, 0, sizeof(tmp)); if (tmp_len < length) return -EINVAL; @@ -309,11 +308,9 @@ int crypt_pbkdf(const char *kdf, const char *hash, char *key, size_t key_length, unsigned int iterations) { - struct hash_alg *ha = _get_alg(hash); - - if (!ha || !kdf || strncmp(kdf, "pbkdf2", 6)) + if (!kdf || strncmp(kdf, "pbkdf2", 6)) return -EINVAL; return pkcs5_pbkdf2(hash, password, password_length, salt, salt_length, - iterations, key_length, key, ha->block_length); + iterations, key_length, key); } diff --git a/lib/crypto_backend/crypto_openssl.c b/lib/crypto_backend/crypto_openssl.c index 5e4345b..f80d763 100644 --- a/lib/crypto_backend/crypto_openssl.c +++ b/lib/crypto_backend/crypto_openssl.c @@ -2,7 +2,7 @@ * OPENSSL crypto backend implementation * * Copyright (C) 2010-2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2010-2014, Milan Broz + * Copyright (C) 2010-2012, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -133,7 +133,7 @@ int crypt_hash_final(struct crypt_hash *ctx, char *buffer, size_t length) return -EINVAL; memcpy(buffer, tmp, length); - crypt_backend_memzero(tmp, sizeof(tmp)); + memset(tmp, 0, sizeof(tmp)); if (tmp_len < length) return -EINVAL; @@ -203,7 +203,7 @@ int crypt_hmac_final(struct crypt_hmac *ctx, char *buffer, size_t length) HMAC_Final(&ctx->md, tmp, &tmp_len); memcpy(buffer, tmp, length); - crypt_backend_memzero(tmp, sizeof(tmp)); + memset(tmp, 0, sizeof(tmp)); if (tmp_len < length) return -EINVAL; diff --git a/lib/crypto_backend/crypto_storage.c b/lib/crypto_backend/crypto_storage.c deleted file mode 100644 index b0452a3..0000000 --- a/lib/crypto_backend/crypto_storage.c +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Generic wrapper for storage encryption modes and Initial Vectors - * (reimplementation of some functions from Linux dm-crypt kernel) - * - * Copyright (C) 2014, Milan Broz - * - * This file is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This file is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this file; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#include -#include -#include "bitops.h" -#include "crypto_backend.h" - -#define SECTOR_SHIFT 9 -#define SECTOR_SIZE (1 << SECTOR_SHIFT) - -/* - * Internal IV helper - * IV documentation: https://gitlab.com/cryptsetup/cryptsetup/wikis/DMCrypt - */ -struct crypt_sector_iv { - enum { IV_NONE, IV_NULL, IV_PLAIN, IV_PLAIN64, IV_ESSIV, IV_BENBI } type; - int iv_size; - char *iv; - struct crypt_cipher *essiv_cipher; - int benbi_shift; -}; - -/* Block encryption storage context */ -struct crypt_storage { - uint64_t sector_start; - struct crypt_cipher *cipher; - struct crypt_sector_iv cipher_iv; -}; - -static int int_log2(unsigned int x) -{ - int r = 0; - for (x >>= 1; x > 0; x >>= 1) - r++; - return r; -} - -static int crypt_sector_iv_init(struct crypt_sector_iv *ctx, - const char *cipher_name, const char *mode_name, - const char *iv_name, char *key, size_t key_length) -{ - memset(ctx, 0, sizeof(*ctx)); - - ctx->iv_size = crypt_cipher_blocksize(cipher_name); - if (ctx->iv_size < 0) - return -ENOENT; - - if (!iv_name || - !strcmp(cipher_name, "cipher_null") || - !strcmp(mode_name, "ecb")) { - ctx->type = IV_NONE; - ctx->iv_size = 0; - return 0; - } else if (!strcasecmp(iv_name, "null")) { - ctx->type = IV_NULL; - } else if (!strcasecmp(iv_name, "plain64")) { - ctx->type = IV_PLAIN64; - } else if (!strcasecmp(iv_name, "plain")) { - ctx->type = IV_PLAIN; - } else if (!strncasecmp(iv_name, "essiv:", 6)) { - struct crypt_hash *h = NULL; - char *hash_name = strchr(iv_name, ':'); - int hash_size; - char tmp[256]; - int r; - - if (!hash_name) - return -EINVAL; - - hash_size = crypt_hash_size(++hash_name); - if (hash_size < 0) - return -ENOENT; - - if ((unsigned)hash_size > sizeof(tmp)) - return -EINVAL; - - if (crypt_hash_init(&h, hash_name)) - return -EINVAL; - - r = crypt_hash_write(h, key, key_length); - if (r) { - crypt_hash_destroy(h); - return r; - } - - r = crypt_hash_final(h, tmp, hash_size); - crypt_hash_destroy(h); - if (r) { - crypt_backend_memzero(tmp, sizeof(tmp)); - return r; - } - - r = crypt_cipher_init(&ctx->essiv_cipher, cipher_name, "ecb", - tmp, hash_size); - crypt_backend_memzero(tmp, sizeof(tmp)); - if (r) - return r; - - ctx->type = IV_ESSIV; - } else if (!strncasecmp(iv_name, "benbi", 5)) { - int log = int_log2(ctx->iv_size); - if (log > SECTOR_SHIFT) - return -EINVAL; - - ctx->type = IV_BENBI; - ctx->benbi_shift = SECTOR_SHIFT - log; - } else - return -ENOENT; - - ctx->iv = malloc(ctx->iv_size); - if (!ctx->iv) - return -ENOMEM; - - return 0; -} - -static int crypt_sector_iv_generate(struct crypt_sector_iv *ctx, uint64_t sector) -{ - uint64_t val; - - switch (ctx->type) { - case IV_NONE: - break; - case IV_NULL: - memset(ctx->iv, 0, ctx->iv_size); - break; - case IV_PLAIN: - memset(ctx->iv, 0, ctx->iv_size); - *(uint32_t *)ctx->iv = cpu_to_le32(sector & 0xffffffff); - break; - case IV_PLAIN64: - memset(ctx->iv, 0, ctx->iv_size); - *(uint64_t *)ctx->iv = cpu_to_le64(sector); - break; - case IV_ESSIV: - memset(ctx->iv, 0, ctx->iv_size); - *(uint64_t *)ctx->iv = cpu_to_le64(sector); - return crypt_cipher_encrypt(ctx->essiv_cipher, - ctx->iv, ctx->iv, ctx->iv_size, NULL, 0); - break; - case IV_BENBI: - memset(ctx->iv, 0, ctx->iv_size); - val = cpu_to_be64((sector << ctx->benbi_shift) + 1); - memcpy(ctx->iv + ctx->iv_size - sizeof(val), &val, sizeof(val)); - break; - default: - return -EINVAL; - } - - return 0; -} - -static int crypt_sector_iv_destroy(struct crypt_sector_iv *ctx) -{ - if (ctx->type == IV_ESSIV) - crypt_cipher_destroy(ctx->essiv_cipher); - - if (ctx->iv) { - memset(ctx->iv, 0, ctx->iv_size); - free(ctx->iv); - } - - memset(ctx, 0, sizeof(*ctx)); - return 0; -} - -/* Block encryption storage wrappers */ - -int crypt_storage_init(struct crypt_storage **ctx, - uint64_t sector_start, - const char *cipher, - const char *cipher_mode, - char *key, size_t key_length) -{ - struct crypt_storage *s; - char mode_name[64]; - char *cipher_iv = NULL; - int r = -EIO; - - s = malloc(sizeof(*s)); - if (!s) - return -ENOMEM; - memset(s, 0, sizeof(*s)); - - /* Remove IV if present */ - strncpy(mode_name, cipher_mode, sizeof(mode_name)); - mode_name[sizeof(mode_name) - 1] = 0; - cipher_iv = strchr(mode_name, '-'); - if (cipher_iv) { - *cipher_iv = '\0'; - cipher_iv++; - } - - r = crypt_cipher_init(&s->cipher, cipher, mode_name, key, key_length); - if (r) { - crypt_storage_destroy(s); - return r; - } - - r = crypt_sector_iv_init(&s->cipher_iv, cipher, mode_name, cipher_iv, key, key_length); - if (r) { - crypt_storage_destroy(s); - return r; - } - - s->sector_start = sector_start; - - *ctx = s; - return 0; -} - -int crypt_storage_decrypt(struct crypt_storage *ctx, - uint64_t sector, size_t count, - char *buffer) -{ - unsigned int i; - int r = 0; - - for (i = 0; i < count; i++) { - r = crypt_sector_iv_generate(&ctx->cipher_iv, sector + i); - if (r) - break; - r = crypt_cipher_decrypt(ctx->cipher, - &buffer[i * SECTOR_SIZE], - &buffer[i * SECTOR_SIZE], - SECTOR_SIZE, - ctx->cipher_iv.iv, - ctx->cipher_iv.iv_size); - if (r) - break; - } - - return r; -} - -int crypt_storage_encrypt(struct crypt_storage *ctx, - uint64_t sector, size_t count, - char *buffer) -{ - unsigned int i; - int r = 0; - - for (i = 0; i < count; i++) { - r = crypt_sector_iv_generate(&ctx->cipher_iv, sector + i); - if (r) - break; - r = crypt_cipher_encrypt(ctx->cipher, - &buffer[i * SECTOR_SIZE], - &buffer[i * SECTOR_SIZE], - SECTOR_SIZE, - ctx->cipher_iv.iv, - ctx->cipher_iv.iv_size); - if (r) - break; - } - - return r; -} - -int crypt_storage_destroy(struct crypt_storage *ctx) -{ - if (!ctx) - return 0; - - crypt_sector_iv_destroy(&ctx->cipher_iv); - - if (ctx->cipher) - crypt_cipher_destroy(ctx->cipher); - - memset(ctx, 0, sizeof(*ctx)); - free(ctx); - - return 0; -} diff --git a/lib/crypto_backend/pbkdf2_generic.c b/lib/crypto_backend/pbkdf2_generic.c index 2e9a3d2..f42faed 100644 --- a/lib/crypto_backend/pbkdf2_generic.c +++ b/lib/crypto_backend/pbkdf2_generic.c @@ -5,7 +5,6 @@ * * cryptsetup related changes * Copyright (C) 2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2012-2014, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -27,25 +26,6 @@ #include #include "crypto_backend.h" -static int hash_buf(const char *src, size_t src_len, - char *dst, size_t dst_len, - const char *hash_name) -{ - struct crypt_hash *hd = NULL; - int r; - - if (crypt_hash_init(&hd, hash_name)) - return -EINVAL; - - r = crypt_hash_write(hd, src, src_len); - - if (!r) - r = crypt_hash_final(hd, dst, dst_len); - - crypt_hash_destroy(hd); - return r; -} - /* * 5.2 PBKDF2 * @@ -72,26 +52,17 @@ static int hash_buf(const char *src, size_t src_len, * Output: DK derived key, a dkLen-octet string */ -/* - * if hash_block_size is not zero, the HMAC key is pre-hashed - * inside this function. - * This prevents situation when crypto backend doesn't support - * long HMAC keys or it tries hash long key in every iteration - * (because of crypt_final() cannot do simple key reset. - */ - #define MAX_PRF_BLOCK_LEN 80 int pkcs5_pbkdf2(const char *hash, const char *P, size_t Plen, const char *S, size_t Slen, unsigned int c, unsigned int dkLen, - char *DK, unsigned int hash_block_size) + char *DK) { struct crypt_hmac *hmac; char U[MAX_PRF_BLOCK_LEN]; char T[MAX_PRF_BLOCK_LEN]; - char P_hash[MAX_PRF_BLOCK_LEN]; int i, k, rc = -EINVAL; unsigned int u, hLen, l, r; size_t tmplen = Slen + 4; @@ -181,18 +152,8 @@ int pkcs5_pbkdf2(const char *hash, * */ - /* If hash_block_size is provided, hash password in advance. */ - if (hash_block_size > 0 && Plen > hash_block_size) { - if (hash_buf(P, Plen, P_hash, hLen, hash)) - return -EINVAL; - - if (crypt_hmac_init(&hmac, hash, P_hash, hLen)) - return -EINVAL; - crypt_backend_memzero(P_hash, sizeof(P_hash)); - } else { - if (crypt_hmac_init(&hmac, hash, P, Plen)) - return -EINVAL; - } + if (crypt_hmac_init(&hmac, hash, P, Plen)) + return -EINVAL; for (i = 1; (unsigned int) i <= l; i++) { memset(T, 0, hLen); @@ -224,203 +185,5 @@ int pkcs5_pbkdf2(const char *hash, rc = 0; out: crypt_hmac_destroy(hmac); - crypt_backend_memzero(U, sizeof(U)); - crypt_backend_memzero(T, sizeof(T)); - crypt_backend_memzero(tmp, tmplen); - return rc; } - -#if 0 -#include - -struct test_vector { - const char *hash; - unsigned int hash_block_length; - unsigned int iterations; - const char *password; - unsigned int password_length; - const char *salt; - unsigned int salt_length; - const char *output; - unsigned int output_length; -}; - -struct test_vector test_vectors[] = { - /* RFC 3962 */ - { - "sha1", 64, 1, - "password", 8, - "ATHENA.MIT.EDUraeburn", 21, - "\xcd\xed\xb5\x28\x1b\xb2\xf8\x01" - "\x56\x5a\x11\x22\xb2\x56\x35\x15" - "\x0a\xd1\xf7\xa0\x4b\xb9\xf3\xa3" - "\x33\xec\xc0\xe2\xe1\xf7\x08\x37", 32 - }, { - "sha1", 64, 2, - "password", 8, - "ATHENA.MIT.EDUraeburn", 21, - "\x01\xdb\xee\x7f\x4a\x9e\x24\x3e" - "\x98\x8b\x62\xc7\x3c\xda\x93\x5d" - "\xa0\x53\x78\xb9\x32\x44\xec\x8f" - "\x48\xa9\x9e\x61\xad\x79\x9d\x86", 32 - }, { - "sha1", 64, 1200, - "password", 8, - "ATHENA.MIT.EDUraeburn", 21, - "\x5c\x08\xeb\x61\xfd\xf7\x1e\x4e" - "\x4e\xc3\xcf\x6b\xa1\xf5\x51\x2b" - "\xa7\xe5\x2d\xdb\xc5\xe5\x14\x2f" - "\x70\x8a\x31\xe2\xe6\x2b\x1e\x13", 32 - }, { - "sha1", 64, 5, - "password", 8, - "\0224VxxV4\022", 8, // "\x1234567878563412 - "\xd1\xda\xa7\x86\x15\xf2\x87\xe6" - "\xa1\xc8\xb1\x20\xd7\x06\x2a\x49" - "\x3f\x98\xd2\x03\xe6\xbe\x49\xa6" - "\xad\xf4\xfa\x57\x4b\x6e\x64\xee", 32 - }, { - "sha1", 64, 1200, - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 64, - "pass phrase equals block size", 29, - "\x13\x9c\x30\xc0\x96\x6b\xc3\x2b" - "\xa5\x5f\xdb\xf2\x12\x53\x0a\xc9" - "\xc5\xec\x59\xf1\xa4\x52\xf5\xcc" - "\x9a\xd9\x40\xfe\xa0\x59\x8e\xd1", 32 - }, { - "sha1", 64, 1200, - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 65, - "pass phrase exceeds block size", 30, - "\x9c\xca\xd6\xd4\x68\x77\x0c\xd5" - "\x1b\x10\xe6\xa6\x87\x21\xbe\x61" - "\x1a\x8b\x4d\x28\x26\x01\xdb\x3b" - "\x36\xbe\x92\x46\x91\x5e\xc8\x2a", 32 - }, { - "sha1", 64, 50, - "\360\235\204\236", 4, // g-clef ("\xf09d849e) - "EXAMPLE.COMpianist", 18, - "\x6b\x9c\xf2\x6d\x45\x45\x5a\x43" - "\xa5\xb8\xbb\x27\x6a\x40\x3b\x39" - "\xe7\xfe\x37\xa0\xc4\x1e\x02\xc2" - "\x81\xff\x30\x69\xe1\xe9\x4f\x52", 32 - }, { - /* RFC-6070 */ - "sha1", 64, 1, - "password", 8, - "salt", 4, - "\x0c\x60\xc8\x0f\x96\x1f\x0e\x71\xf3\xa9" - "\xb5\x24\xaf\x60\x12\x06\x2f\xe0\x37\xa6", 20 - }, { - "sha1", 64, 2, - "password", 8, - "salt", 4, - "\xea\x6c\x01\x4d\xc7\x2d\x6f\x8c\xcd\x1e" - "\xd9\x2a\xce\x1d\x41\xf0\xd8\xde\x89\x57", 20 - }, { - "sha1", 64, 4096, - "password", 8, - "salt", 4, - "\x4b\x00\x79\x01\xb7\x65\x48\x9a\xbe\xad" - "\x49\xd9\x26\xf7\x21\xd0\x65\xa4\x29\xc1", 20 - }, { - "sha1", 64, 16777216, - "password", 8, - "salt", 4, - "\xee\xfe\x3d\x61\xcd\x4d\xa4\xe4\xe9\x94" - "\x5b\x3d\x6b\xa2\x15\x8c\x26\x34\xe9\x84", 20 - }, { - "sha1", 64, 4096, - "passwordPASSWORDpassword", 24, - "saltSALTsaltSALTsaltSALTsaltSALTsalt", 36, - "\x3d\x2e\xec\x4f\xe4\x1c\x84\x9b\x80\xc8" - "\xd8\x36\x62\xc0\xe4\x4a\x8b\x29\x1a\x96" - "\x4c\xf2\xf0\x70\x38", 25 - }, { - "sha1", 64, 4096, - "pass\0word", 9, - "sa\0lt", 5, - "\x56\xfa\x6a\xa7\x55\x48\x09\x9d\xcc\x37" - "\xd7\xf0\x34\x25\xe0\xc3", 16 - }, { - /* empty password test */ - "sha1", 64, 2, - "", 0, - "salt", 4, - "\x13\x3a\x4c\xe8\x37\xb4\xd2\x52\x1e\xe2" - "\xbf\x03\xe1\x1c\x71\xca\x79\x4e\x07\x97", 20 - }, { - /* Password exceeds block size test */ - "sha256", 64, 1200, - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 65, - "pass phrase exceeds block size", 30, - "\x22\x34\x4b\xc4\xb6\xe3\x26\x75" - "\xa8\x09\x0f\x3e\xa8\x0b\xe0\x1d" - "\x5f\x95\x12\x6a\x2c\xdd\xc3\xfa" - "\xcc\x4a\x5e\x6d\xca\x04\xec\x58", 32 - }, { - "sha512", 128, 1200, - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 129, - "pass phrase exceeds block size", 30, - "\x0f\xb2\xed\x2c\x0e\x6e\xfb\x7d" - "\x7d\x8e\xdd\x58\x01\xb4\x59\x72" - "\x99\x92\x16\x30\x5e\xa4\x36\x8d" - "\x76\x14\x80\xf3\xe3\x7a\x22\xb9", 32 - }, { - "whirlpool", 64, 1200, - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" - "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 65, - "pass phrase exceeds block size", 30, - "\x9c\x1c\x74\xf5\x88\x26\xe7\x6a" - "\x53\x58\xf4\x0c\x39\xe7\x80\x89" - "\x07\xc0\x31\x19\x9a\x50\xa2\x48" - "\xf1\xd9\xfe\x78\x64\xe5\x84\x50", 32 - } -}; - -static void printhex(const char *s, const char *buf, size_t len) -{ - size_t i; - - printf("%s: ", s); - for (i = 0; i < len; i++) - printf("\\x%02x", (unsigned char)buf[i]); - printf("\n"); - fflush(stdout); -} - -static int pkcs5_pbkdf2_test_vectors(void) -{ - char result[64]; - unsigned int i, j; - struct test_vector *vec; - - for (i = 0; i < (sizeof(test_vectors) / sizeof(*test_vectors)); i++) { - vec = &test_vectors[i]; - for (j = 1; j <= vec->output_length; j++) { - if (pkcs5_pbkdf2(vec->hash, - vec->password, vec->password_length, - vec->salt, vec->salt_length, - vec->iterations, - j, result, vec->hash_block_length)) { - printf("pbkdf2 failed, vector %d\n", i); - return -EINVAL; - } - if (memcmp(result, vec->output, j) != 0) { - printf("vector %u\n", i); - printhex(" got", result, j); - printhex("want", vec->output, j); - return -EINVAL; - } - memset(result, 0, sizeof(result)); - } - } - return 0; -} -#endif diff --git a/lib/crypto_backend/pbkdf_check.c b/lib/crypto_backend/pbkdf_check.c index c6236cc..f4877bd 100644 --- a/lib/crypto_backend/pbkdf_check.c +++ b/lib/crypto_backend/pbkdf_check.c @@ -1,7 +1,7 @@ /* * PBKDF performance check * Copyright (C) 2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2012-2014, Milan Broz + * Copyright (C) 2012, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -25,24 +25,12 @@ static long time_ms(struct rusage *start, struct rusage *end) { - int count_kernel_time = 0; long ms; - if (crypt_backend_flags() & CRYPT_BACKEND_KERNEL) - count_kernel_time = 1; - - /* - * FIXME: if there is no self usage info, count system time. - * This seem like getrusage() bug in some hypervisors... - */ - if (!end->ru_utime.tv_sec && !start->ru_utime.tv_sec && - !end->ru_utime.tv_usec && !start->ru_utime.tv_usec) - count_kernel_time = 1; - ms = (end->ru_utime.tv_sec - start->ru_utime.tv_sec) * 1000; ms += (end->ru_utime.tv_usec - start->ru_utime.tv_usec) / 1000; - if (count_kernel_time) { + if (crypt_backend_flags() & CRYPT_BACKEND_KERNEL) { ms += (end->ru_stime.tv_sec - start->ru_stime.tv_sec) * 1000; ms += (end->ru_stime.tv_usec - start->ru_stime.tv_usec) / 1000; } diff --git a/lib/internal.h b/lib/internal.h index fb265ee..565260f 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -1,7 +1,7 @@ /* * libcryptsetup - cryptsetup library internal * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. * Copyright (C) 2009-2012, Milan Broz @@ -95,8 +95,6 @@ char *crypt_lookup_dev(const char *dev_id); int crypt_dev_is_rotational(int major, int minor); int crypt_dev_is_partition(const char *dev_path); char *crypt_get_partition_device(const char *dev_path, uint64_t offset, uint64_t size); -char *crypt_get_base_device(const char *dev_path); -uint64_t crypt_dev_partition_offset(const char *dev_path); ssize_t write_blockwise(int fd, int bsize, void *buf, size_t count); ssize_t read_blockwise(int fd, int bsize, void *_buf, size_t count); @@ -105,7 +103,7 @@ ssize_t write_lseek_blockwise(int fd, int bsize, char *buf, size_t count, off_t unsigned crypt_getpagesize(void); int init_crypto(struct crypt_device *ctx); -void logger(struct crypt_device *cd, int class, const char *file, int line, const char *format, ...) __attribute__ ((format (printf, 5, 6))); +void logger(struct crypt_device *cd, int class, const char *file, int line, const char *format, ...); #define log_dbg(x...) logger(NULL, CRYPT_LOG_DEBUG, __FILE__, __LINE__, x) #define log_std(c, x...) logger(c, CRYPT_LOG_NORMAL, __FILE__, __LINE__, x) #define log_verbose(c, x...) logger(c, CRYPT_LOG_VERBOSE, __FILE__, __LINE__, x) diff --git a/lib/libcryptsetup.h b/lib/libcryptsetup.h index 21b91dd..2a1ca06 100644 --- a/lib/libcryptsetup.h +++ b/lib/libcryptsetup.h @@ -1,10 +1,10 @@ /* * libcryptsetup - cryptsetup library * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth - * Copyright (C) 2009-2015, Red Hat, Inc. All rights reserved. - * Copyright (C) 2009-2015, Milan Broz + * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. + * Copyright (C) 2009-2012, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -176,8 +176,6 @@ void crypt_set_confirm_callback(struct crypt_device *cd, * @note Only zero terminated passwords can be entered this way, for complex * use API functions directly. * @note Maximal length of password is limited to @e length @e - @e 1 (minimal 511 chars) - * @note Internal compiled-in terminal input is DEPRECATED and will be removed - * in future versions. * * @see Callback function is used in these call provided, that certain conditions are met: * @li crypt_keyslot_add_by_passphrase @@ -306,7 +304,7 @@ int crypt_memory_lock(struct crypt_device *cd, int lock); #define CRYPT_LOOPAES "LOOPAES" /** dm-verity mode */ #define CRYPT_VERITY "VERITY" -/** TCRYPT (TrueCrypt-compatible and VeraCrypt-compatible) mode */ +/** TCRYPT (TrueCrypt-compatible) mode */ #define CRYPT_TCRYPT "TCRYPT" /** @@ -405,7 +403,7 @@ struct crypt_params_tcrypt { uint32_t flags; /**< CRYPT_TCRYPT* flags */ }; -/** Include legacy modes when scanning for header*/ +/** Include legacy modes ehn scannig for header*/ #define CRYPT_TCRYPT_LEGACY_MODES (1 << 0) /** Try to load hidden header (describing hidden device) */ #define CRYPT_TCRYPT_HIDDEN_HEADER (1 << 1) @@ -413,11 +411,6 @@ struct crypt_params_tcrypt { #define CRYPT_TCRYPT_BACKUP_HEADER (1 << 2) /** Device contains encrypted system (with boot loader) */ #define CRYPT_TCRYPT_SYSTEM_HEADER (1 << 3) -/** Include VeraCrypt modes when scanning for header, - * all other TCRYPT flags applies as well. - * VeraCrypt device is reported as TCRYPT type. - */ -#define CRYPT_TCRYPT_VERA_MODES (1 << 4) /** @} */ @@ -537,8 +530,6 @@ int crypt_suspend(struct crypt_device *cd, * @return unlocked key slot number or negative errno otherwise. * * @note Only LUKS device type is supported - * @note If passphrase is @e NULL always use crypt_set_password_callback. - * Internal terminal password query is DEPRECATED and will be removed in next version. */ int crypt_resume_by_passphrase(struct crypt_device *cd, const char *name, @@ -557,9 +548,6 @@ int crypt_resume_by_passphrase(struct crypt_device *cd, * @param keyfile_offset number of bytes to skip at start of keyfile * * @return unlocked key slot number or negative errno otherwise. - * - * @note If passphrase is @e NULL always use crypt_set_password_callback. - * Internal terminal password query is DEPRECATED and will be removed in next version. */ int crypt_resume_by_keyfile_offset(struct crypt_device *cd, const char *name, @@ -606,9 +594,6 @@ void crypt_free(struct crypt_device *cd); * @param new_passphrase_size size of @e new_passphrase (binary data) * * @return allocated key slot number or negative errno otherwise. - * - * @note If passphrase is @e NULL always use crypt_set_password_callback. - * Internal terminal password query is DEPRECATED and will be removed in next version. */ int crypt_keyslot_add_by_passphrase(struct crypt_device *cd, int keyslot, @@ -635,9 +620,6 @@ int crypt_keyslot_add_by_passphrase(struct crypt_device *cd, * @note This function is just internal implementation of luksChange * command to avoid reading of volume key outside libcryptsetup boundary * in FIPS mode. - * - * @note If passphrase is @e NULL always use crypt_set_password_callback. - * Internal terminal password query is DEPRECATED and will be removed in next version. */ int crypt_keyslot_change_by_passphrase(struct crypt_device *cd, int keyslot_old, @@ -664,6 +646,7 @@ int crypt_keyslot_change_by_passphrase(struct crypt_device *cd, * @return allocated key slot number or negative errno otherwise. * * @note Note that @e keyfile can be "-" for STDIN + * */ int crypt_keyslot_add_by_keyfile_offset(struct crypt_device *cd, int keyslot, @@ -697,8 +680,6 @@ int crypt_keyslot_add_by_keyfile(struct crypt_device *cd, * * @return allocated key slot number or negative errno otherwise. * - * @note If passphrase is @e NULL always use crypt_set_password_callback. - * Internal terminal password query is DEPRECATED and will be removed in next version. */ int crypt_keyslot_add_by_volume_key(struct crypt_device *cd, int keyslot, @@ -744,11 +725,6 @@ int crypt_keyslot_destroy(struct crypt_device *cd, int keyslot); #define CRYPT_ACTIVATE_PRIVATE (1 << 4) /** corruption detected (verity), output only */ #define CRYPT_ACTIVATE_CORRUPTED (1 << 5) -/** use same_cpu_crypt option for dm-crypt */ -#define CRYPT_ACTIVATE_SAME_CPU_CRYPT (1 << 6) -/** use submit_from_crypt_cpus for dm-crypt */ -#define CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS (1 << 7) - /** * Active device runtime attributes @@ -787,9 +763,6 @@ int crypt_get_active_device(struct crypt_device *cd, * @param flags activation flags * * @return unlocked key slot number or negative errno otherwise. - * - * @note If passphrase is @e NULL always use crypt_set_password_callback. - * Internal terminal password query is DEPRECATED and will be removed in next version. */ int crypt_activate_by_passphrase(struct crypt_device *cd, const char *name, @@ -1046,9 +1019,6 @@ int crypt_get_verity_info(struct crypt_device *cd, * @param decryption_mbs measured decryption speed in MiB/s * * @return @e 0 on success or negative errno value otherwise. - * - * @note If encryption_buffer_size is too small and encryption time - * cannot be properly measured, -ERANGE is returned. */ int crypt_benchmark(struct crypt_device *cd, const char *cipher, diff --git a/lib/libdevmapper.c b/lib/libdevmapper.c index 316fa5f..ad6e908 100644 --- a/lib/libdevmapper.c +++ b/lib/libdevmapper.c @@ -1,10 +1,10 @@ /* * libdevmapper - device-mapper backend for cryptsetup * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth - * Copyright (C) 2009-2015, Red Hat, Inc. All rights reserved. - * Copyright (C) 2009-2015, Milan Broz + * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. + * Copyright (C) 2009-2012, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -28,6 +28,7 @@ #include #include #include +#include #include "internal.h" @@ -85,12 +86,12 @@ static void set_dm_error(int level, va_start(va, f); if (vasprintf(&msg, f, va) > 0) { if (level < 4 && !_quiet_log) { - log_err(_context, "%s", msg); + log_err(_context, msg); log_err(_context, "\n"); } else { /* We do not use DM visual stack backtrace here */ if (strncmp(msg, "", 11)) - log_dbg("%s", msg); + log_dbg(msg); } } free(msg); @@ -99,18 +100,6 @@ static void set_dm_error(int level, static int _dm_simple(int task, const char *name, int udev_wait); -static int _dm_satisfies_version(unsigned target_maj, unsigned target_min, - unsigned actual_maj, unsigned actual_min) -{ - if (actual_maj > target_maj) - return 1; - - if (actual_maj == target_maj && actual_min >= target_min) - return 1; - - return 0; -} - static void _dm_set_crypt_compat(const char *dm_version, unsigned crypt_maj, unsigned crypt_min, unsigned crypt_patch) { @@ -122,32 +111,24 @@ static void _dm_set_crypt_compat(const char *dm_version, unsigned crypt_maj, log_dbg("Detected dm-crypt version %i.%i.%i, dm-ioctl version %u.%u.%u.", crypt_maj, crypt_min, crypt_patch, dm_maj, dm_min, dm_patch); - if (_dm_satisfies_version(1, 2, crypt_maj, crypt_min)) + if (crypt_maj >= 1 && crypt_min >= 2) _dm_crypt_flags |= DM_KEY_WIPE_SUPPORTED; else log_dbg("Suspend and resume disabled, no wipe key support."); - if (_dm_satisfies_version(1, 10, crypt_maj, crypt_min)) + if (crypt_maj >= 1 && crypt_min >= 10) _dm_crypt_flags |= DM_LMK_SUPPORTED; - if (_dm_satisfies_version(4, 20, dm_maj, dm_min)) + if (dm_maj >= 4 && dm_min >= 20) _dm_crypt_flags |= DM_SECURE_SUPPORTED; /* not perfect, 2.6.33 supports with 1.7.0 */ - if (_dm_satisfies_version(1, 8, crypt_maj, crypt_min)) + if (crypt_maj >= 1 && crypt_min >= 8) _dm_crypt_flags |= DM_PLAIN64_SUPPORTED; - if (_dm_satisfies_version(1, 11, crypt_maj, crypt_min)) + if (crypt_maj >= 1 && crypt_min >= 11) _dm_crypt_flags |= DM_DISCARDS_SUPPORTED; - if (_dm_satisfies_version(1, 13, crypt_maj, crypt_min)) - _dm_crypt_flags |= DM_TCW_SUPPORTED; - - if (_dm_satisfies_version(1, 14, crypt_maj, crypt_min)) { - _dm_crypt_flags |= DM_SAME_CPU_CRYPT_SUPPORTED; - _dm_crypt_flags |= DM_SUBMIT_FROM_CRYPT_CPUS_SUPPORTED; - } - /* Repeat test if dm-crypt is not present */ if (crypt_maj > 0) _dm_crypt_checked = 1; @@ -163,6 +144,16 @@ static void _dm_set_verity_compat(const char *dm_version, unsigned verity_maj, verity_maj, verity_min, verity_patch); } +static void _dm_kernel_info(void) +{ + struct utsname uts; + + if (!uname(&uts)) + log_dbg("Detected kernel %s %s %s.", + uts.sysname, uts.release, uts.machine); + +} + static int _dm_check_versions(void) { struct dm_task *dmt; @@ -173,6 +164,8 @@ static int _dm_check_versions(void) if (_dm_crypt_checked) return 1; + _dm_kernel_info(); + /* Shut up DM while checking */ _quiet_log = 1; @@ -297,30 +290,23 @@ static void hex_key(char *hexkey, size_t key_size, const char *key) sprintf(&hexkey[i * 2], "%02x", (unsigned char)key[i]); } -/* https://gitlab.com/cryptsetup/cryptsetup/wikis/DMCrypt */ -static char *get_dm_crypt_params(struct crypt_dm_active_device *dmd, uint32_t flags) +/* http://code.google.com/p/cryptsetup/wiki/DMCrypt */ +static char *get_dm_crypt_params(struct crypt_dm_active_device *dmd) { - int r, max_size, null_cipher = 0, num_options = 0; + int r, max_size, null_cipher = 0; char *params, *hexkey; - char features[256]; + const char *features = ""; if (!dmd) return NULL; - if (flags & CRYPT_ACTIVATE_ALLOW_DISCARDS) - num_options++; - if (flags & CRYPT_ACTIVATE_SAME_CPU_CRYPT) - num_options++; - if (flags & CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS) - num_options++; - - if (num_options) - snprintf(features, sizeof(features)-1, " %d%s%s%s", num_options, - (flags & CRYPT_ACTIVATE_ALLOW_DISCARDS) ? " allow_discards" : "", - (flags & CRYPT_ACTIVATE_SAME_CPU_CRYPT) ? " same_cpu_crypt" : "", - (flags & CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS) ? " submit_from_crypt_cpus" : ""); - else - *features = '\0'; + if (dmd->flags & CRYPT_ACTIVATE_ALLOW_DISCARDS) { + if (dm_flags() & DM_DISCARDS_SUPPORTED) { + features = " 1 allow_discards"; + log_dbg("Discard/TRIM is allowed."); + } else + log_dbg("Discard/TRIM is not supported by the kernel."); + } if (!strncmp(dmd->u.crypt.cipher, "cipher_null-", 12)) null_cipher = 1; @@ -354,7 +340,7 @@ out: return params; } -/* https://gitlab.com/cryptsetup/cryptsetup/wikis/DMVerity */ +/* http://code.google.com/p/cryptsetup/wiki/DMVerity */ static char *get_dm_verity_params(struct crypt_params_verity *vp, struct crypt_dm_active_device *dmd) { @@ -530,7 +516,7 @@ static int dm_prepare_uuid(const char *name, const char *type, const char *uuid, if (uuid) { if (uuid_parse(uuid, uu) < 0) { log_dbg("Requested UUID %s has invalid format.", uuid); - return 0; + return -EINVAL; } for (ptr = uuid2, i = 0; i < UUID_LEN; i++) @@ -549,7 +535,7 @@ static int dm_prepare_uuid(const char *name, const char *type, const char *uuid, if (i >= buflen) log_err(NULL, _("DM-UUID for device %s was truncated.\n"), name); - return 1; + return 0; } static int _dm_create_device(const char *name, const char *type, @@ -565,9 +551,6 @@ static int _dm_create_device(const char *name, const char *type, uint32_t cookie = 0; uint16_t udev_flags = 0; - if (!params) - return -EINVAL; - if (flags & CRYPT_ACTIVATE_PRIVATE) udev_flags = CRYPT_TEMP_UDEV_FLAGS; @@ -579,8 +562,9 @@ static int _dm_create_device(const char *name, const char *type, if (!dm_task_set_name(dmt, name)) goto out_no_removal; } else { - if (!dm_prepare_uuid(name, type, uuid, dev_uuid, sizeof(dev_uuid))) - goto out_no_removal; + r = dm_prepare_uuid(name, type, uuid, dev_uuid, sizeof(dev_uuid)); + if (r < 0) + return r; if (!(dmt = dm_task_create(DM_DEVICE_CREATE))) goto out_no_removal; @@ -644,14 +628,12 @@ out_no_removal: if (cookie && _dm_use_udev()) (void)_dm_udev_wait(cookie); + if (params) + crypt_safe_free(params); if (dmt) dm_task_destroy(dmt); dm_task_update_nodes(); - - /* If code just loaded target module, update versions */ - _dm_check_versions(); - return r; } @@ -661,8 +643,7 @@ int dm_create_device(struct crypt_device *cd, const char *name, int reload) { char *table_params = NULL; - uint32_t dmd_flags; - int r; + int r = -EINVAL; if (!type) return -EINVAL; @@ -670,34 +651,15 @@ int dm_create_device(struct crypt_device *cd, const char *name, if (dm_init_context(cd)) return -ENOTSUP; - dmd_flags = dmd->flags; - if (dmd->target == DM_CRYPT) - table_params = get_dm_crypt_params(dmd, dmd_flags); + table_params = get_dm_crypt_params(dmd); else if (dmd->target == DM_VERITY) table_params = get_dm_verity_params(dmd->u.verity.vp, dmd); - r = _dm_create_device(name, type, dmd->data_device, dmd_flags, - dmd->uuid, dmd->size, table_params, reload); - - /* If discard not supported try to load without discard */ - if (!reload && r && dmd->target == DM_CRYPT && - (dmd->flags & CRYPT_ACTIVATE_ALLOW_DISCARDS) && - !(dm_flags() & DM_DISCARDS_SUPPORTED)) { - log_dbg("Discard/TRIM is not supported, retrying activation."); - dmd_flags = dmd_flags & ~CRYPT_ACTIVATE_ALLOW_DISCARDS; - crypt_safe_free(table_params); - table_params = get_dm_crypt_params(dmd, dmd_flags); - r = _dm_create_device(name, type, dmd->data_device, dmd_flags, - dmd->uuid, dmd->size, table_params, reload); - } - - if (r == -EINVAL && - dmd_flags & (CRYPT_ACTIVATE_SAME_CPU_CRYPT|CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS) && - !(dm_flags() & (DM_SAME_CPU_CRYPT_SUPPORTED|DM_SUBMIT_FROM_CRYPT_CPUS_SUPPORTED))) - log_err(cd, _("Requested dmcrypt performance options are not supported.\n")); - - crypt_safe_free(table_params); + if (table_params) + r = _dm_create_device(name, type, dmd->data_device, + dmd->flags, dmd->uuid, dmd->size, + table_params, reload); dm_exit_context(); return r; } @@ -884,10 +846,6 @@ static int _dm_query_crypt(uint32_t get_flags, arg = strsep(¶ms, " "); if (!strcasecmp(arg, "allow_discards")) dmd->flags |= CRYPT_ACTIVATE_ALLOW_DISCARDS; - else if (!strcasecmp(arg, "same_cpu_crypt")) - dmd->flags |= CRYPT_ACTIVATE_SAME_CPU_CRYPT; - else if (!strcasecmp(arg, "submit_from_crypt_cpus")) - dmd->flags |= CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS; else /* unknown option */ return -EINVAL; } diff --git a/lib/loopaes/Makefile.in b/lib/loopaes/Makefile.in deleted file mode 100644 index 24747de..0000000 --- a/lib/loopaes/Makefile.in +++ /dev/null @@ -1,645 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = lib/loopaes -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(top_srcdir)/depcomp -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libloopaes_la_LIBADD = -am_libloopaes_la_OBJECTS = libloopaes_la-loopaes.lo -libloopaes_la_OBJECTS = $(am_libloopaes_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -libloopaes_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libloopaes_la_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libloopaes_la_SOURCES) -DIST_SOURCES = $(libloopaes_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -moduledir = $(libdir)/cryptsetup -noinst_LTLIBRARIES = libloopaes.la -libloopaes_la_CFLAGS = -Wall $(AM_CFLAGS) @CRYPTO_CFLAGS@ -libloopaes_la_SOURCES = \ - loopaes.c \ - loopaes.h - -AM_CPPFLAGS = -include config.h \ - -I$(top_srcdir)/lib \ - -I$(top_srcdir)/lib/crypto_backend - -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .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 ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/loopaes/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/loopaes/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libloopaes.la: $(libloopaes_la_OBJECTS) $(libloopaes_la_DEPENDENCIES) $(EXTRA_libloopaes_la_DEPENDENCIES) - $(AM_V_CCLD)$(libloopaes_la_LINK) $(libloopaes_la_OBJECTS) $(libloopaes_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libloopaes_la-loopaes.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libloopaes_la-loopaes.lo: loopaes.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libloopaes_la_CFLAGS) $(CFLAGS) -MT libloopaes_la-loopaes.lo -MD -MP -MF $(DEPDIR)/libloopaes_la-loopaes.Tpo -c -o libloopaes_la-loopaes.lo `test -f 'loopaes.c' || echo '$(srcdir)/'`loopaes.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libloopaes_la-loopaes.Tpo $(DEPDIR)/libloopaes_la-loopaes.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loopaes.c' object='libloopaes_la-loopaes.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libloopaes_la_CFLAGS) $(CFLAGS) -c -o libloopaes_la-loopaes.lo `test -f 'loopaes.c' || echo '$(srcdir)/'`loopaes.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/lib/loopaes/loopaes.c b/lib/loopaes/loopaes.c index 28a70b8..1cb209c 100644 --- a/lib/loopaes/loopaes.c +++ b/lib/loopaes/loopaes.c @@ -137,7 +137,7 @@ int LOOPAES_parse_keyfile(struct crypt_device *cd, unsigned int key_lengths[LOOPAES_KEYS_MAX]; unsigned int i, key_index, key_len, offset; - log_dbg("Parsing loop-AES keyfile of size %zu.", buffer_len); + log_dbg("Parsing loop-AES keyfile of size %d.", buffer_len); if (!buffer_len) return -EINVAL; diff --git a/lib/luks1/Makefile.in b/lib/luks1/Makefile.in deleted file mode 100644 index f5d3fde..0000000 --- a/lib/luks1/Makefile.in +++ /dev/null @@ -1,665 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = lib/luks1 -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(top_srcdir)/depcomp -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libluks1_la_LIBADD = -am_libluks1_la_OBJECTS = libluks1_la-af.lo libluks1_la-keymanage.lo \ - libluks1_la-keyencryption.lo -libluks1_la_OBJECTS = $(am_libluks1_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -libluks1_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libluks1_la_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libluks1_la_SOURCES) -DIST_SOURCES = $(libluks1_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -moduledir = $(libdir)/cryptsetup -noinst_LTLIBRARIES = libluks1.la -libluks1_la_CFLAGS = -Wall $(AM_CFLAGS) @CRYPTO_CFLAGS@ -libluks1_la_SOURCES = \ - af.c \ - keymanage.c \ - keyencryption.c \ - af.h \ - luks.h - -AM_CPPFLAGS = -include config.h \ - -I$(top_srcdir)/lib \ - -I$(top_srcdir)/lib/crypto_backend - -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .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 ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/luks1/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/luks1/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libluks1.la: $(libluks1_la_OBJECTS) $(libluks1_la_DEPENDENCIES) $(EXTRA_libluks1_la_DEPENDENCIES) - $(AM_V_CCLD)$(libluks1_la_LINK) $(libluks1_la_OBJECTS) $(libluks1_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libluks1_la-af.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libluks1_la-keyencryption.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libluks1_la-keymanage.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libluks1_la-af.lo: af.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libluks1_la_CFLAGS) $(CFLAGS) -MT libluks1_la-af.lo -MD -MP -MF $(DEPDIR)/libluks1_la-af.Tpo -c -o libluks1_la-af.lo `test -f 'af.c' || echo '$(srcdir)/'`af.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libluks1_la-af.Tpo $(DEPDIR)/libluks1_la-af.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='af.c' object='libluks1_la-af.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libluks1_la_CFLAGS) $(CFLAGS) -c -o libluks1_la-af.lo `test -f 'af.c' || echo '$(srcdir)/'`af.c - -libluks1_la-keymanage.lo: keymanage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libluks1_la_CFLAGS) $(CFLAGS) -MT libluks1_la-keymanage.lo -MD -MP -MF $(DEPDIR)/libluks1_la-keymanage.Tpo -c -o libluks1_la-keymanage.lo `test -f 'keymanage.c' || echo '$(srcdir)/'`keymanage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libluks1_la-keymanage.Tpo $(DEPDIR)/libluks1_la-keymanage.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='keymanage.c' object='libluks1_la-keymanage.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libluks1_la_CFLAGS) $(CFLAGS) -c -o libluks1_la-keymanage.lo `test -f 'keymanage.c' || echo '$(srcdir)/'`keymanage.c - -libluks1_la-keyencryption.lo: keyencryption.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libluks1_la_CFLAGS) $(CFLAGS) -MT libluks1_la-keyencryption.lo -MD -MP -MF $(DEPDIR)/libluks1_la-keyencryption.Tpo -c -o libluks1_la-keyencryption.lo `test -f 'keyencryption.c' || echo '$(srcdir)/'`keyencryption.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libluks1_la-keyencryption.Tpo $(DEPDIR)/libluks1_la-keyencryption.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='keyencryption.c' object='libluks1_la-keyencryption.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libluks1_la_CFLAGS) $(CFLAGS) -c -o libluks1_la-keyencryption.lo `test -f 'keyencryption.c' || echo '$(srcdir)/'`keyencryption.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/lib/luks1/keyencryption.c b/lib/luks1/keyencryption.c index 3bc9c33..de1b553 100644 --- a/lib/luks1/keyencryption.c +++ b/lib/luks1/keyencryption.c @@ -3,7 +3,6 @@ * * Copyright (C) 2004-2006, Clemens Fruhwirth * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2012-2014, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -27,13 +26,8 @@ #include "internal.h" static void _error_hint(struct crypt_device *ctx, const char *device, - const char *cipher, const char *mode, size_t keyLength) + const char *cipher_spec, const char *mode, size_t keyLength) { - char cipher_spec[MAX_CIPHER_LEN * 3]; - - if (snprintf(cipher_spec, sizeof(cipher_spec), "%s-%s", cipher, mode) < 0) - return; - log_err(ctx, _("Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n"), device, cipher_spec); @@ -66,8 +60,6 @@ static int LUKS_endec_template(char *src, size_t srcLength, }; int r, bsize, devfd = -1; - log_dbg("Using dmcrypt to access keyslot area."); - bsize = device_block_size(dmd.data_device); if (bsize <= 0) return -EINVAL; @@ -102,7 +94,7 @@ static int LUKS_endec_template(char *src, size_t srcLength, if (r < 0) { if (r != -EACCES && r != -ENOTSUP) _error_hint(ctx, device_path(dmd.data_device), - cipher, cipher_mode, vk->keylength * 8); + cipher_spec, cipher_mode, vk->keylength * 8); return -EIO; } @@ -133,64 +125,8 @@ int LUKS_encrypt_to_storage(char *src, size_t srcLength, unsigned int sector, struct crypt_device *ctx) { - - struct device *device = crypt_metadata_device(ctx); - struct crypt_storage *s; - int devfd = -1, bsize, r = 0; - - /* Only whole sector writes supported */ - if (srcLength % SECTOR_SIZE) - return -EINVAL; - - /* Encrypt buffer */ - r = crypt_storage_init(&s, 0, cipher, cipher_mode, vk->key, vk->keylength); - - if (r) - log_dbg("Userspace crypto wrapper cannot use %s-%s (%d).", - cipher, cipher_mode, r); - - /* Fallback to old temporary dmcrypt device */ - if (r == -ENOTSUP || r == -ENOENT) - return LUKS_endec_template(src, srcLength, cipher, cipher_mode, - vk, sector, write_blockwise, O_RDWR, ctx); - - if (r) { - _error_hint(ctx, device_path(device), cipher, cipher_mode, - vk->keylength * 8); - return r; - } - - log_dbg("Using userspace crypto wrapper to access keyslot area."); - - r = crypt_storage_encrypt(s, 0, srcLength / SECTOR_SIZE, src); - crypt_storage_destroy(s); - - if (r) - return r; - - r = -EIO; - - /* Write buffer to device */ - bsize = device_block_size(device); - if (bsize <= 0) - goto out; - - devfd = device_open(device, O_RDWR); - if (devfd == -1) - goto out; - - if (lseek(devfd, sector * SECTOR_SIZE, SEEK_SET) == -1 || - write_blockwise(devfd, bsize, src, srcLength) == -1) - goto out; - - r = 0; -out: - if(devfd != -1) - close(devfd); - if (r) - log_err(ctx, _("IO error while encrypting keyslot.\n")); - - return r; + return LUKS_endec_template(src, srcLength, cipher, cipher_mode, + vk, sector, write_blockwise, O_RDWR, ctx); } int LUKS_decrypt_from_storage(char *dst, size_t dstLength, @@ -200,61 +136,6 @@ int LUKS_decrypt_from_storage(char *dst, size_t dstLength, unsigned int sector, struct crypt_device *ctx) { - struct device *device = crypt_metadata_device(ctx); - struct crypt_storage *s; - int devfd = -1, bsize, r = 0; - - /* Only whole sector reads supported */ - if (dstLength % SECTOR_SIZE) - return -EINVAL; - - r = crypt_storage_init(&s, 0, cipher, cipher_mode, vk->key, vk->keylength); - - if (r) - log_dbg("Userspace crypto wrapper cannot use %s-%s (%d).", - cipher, cipher_mode, r); - - /* Fallback to old temporary dmcrypt device */ - if (r == -ENOTSUP || r == -ENOENT) - return LUKS_endec_template(dst, dstLength, cipher, cipher_mode, - vk, sector, read_blockwise, O_RDONLY, ctx); - - if (r) { - _error_hint(ctx, device_path(device), cipher, cipher_mode, - vk->keylength * 8); - return r; - } - - log_dbg("Using userspace crypto wrapper to access keyslot area."); - - r = -EIO; - - /* Read buffer from device */ - bsize = device_block_size(device); - if (bsize <= 0) - goto bad; - - devfd = device_open(device, O_RDONLY); - if (devfd == -1) - goto bad; - - if (lseek(devfd, sector * SECTOR_SIZE, SEEK_SET) == -1 || - read_blockwise(devfd, bsize, dst, dstLength) == -1) - goto bad; - - close(devfd); - - /* Decrypt buffer */ - r = crypt_storage_decrypt(s, 0, dstLength / SECTOR_SIZE, dst); - crypt_storage_destroy(s); - - return r; -bad: - if(devfd != -1) - close(devfd); - - log_err(ctx, _("IO error while decrypting keyslot.\n")); - crypt_storage_destroy(s); - - return r; + return LUKS_endec_template(dst, dstLength, cipher, cipher_mode, + vk, sector, read_blockwise, O_RDONLY, ctx); } diff --git a/lib/luks1/keymanage.c b/lib/luks1/keymanage.c index 8ae2af8..c1e24bd 100644 --- a/lib/luks1/keymanage.c +++ b/lib/luks1/keymanage.c @@ -3,7 +3,6 @@ * * Copyright (C) 2004-2006, Clemens Fruhwirth * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2013-2014, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -83,12 +82,11 @@ static int LUKS_check_device_size(struct crypt_device *ctx, size_t keyLength) dev_sectors >>= SECTOR_SHIFT; hdr_sectors = LUKS_device_sectors(keyLength); - log_dbg("Key length %zu, device size %" PRIu64 " sectors, header size %" + log_dbg("Key length %u, device size %" PRIu64 " sectors, header size %" PRIu64 " sectors.",keyLength, dev_sectors, hdr_sectors); if (hdr_sectors > dev_sectors) { - log_err(ctx, _("Device %s is too small. (LUKS requires at least %" PRIu64 " bytes.)\n"), - device_path(device), hdr_sectors * SECTOR_SIZE); + log_err(ctx, _("Device %s is too small.\n"), device_path(device)); return -EINVAL; } @@ -148,32 +146,29 @@ static const char *dbg_slot_state(crypt_keyslot_info ki) } } -int LUKS_hdr_backup(const char *backup_file, struct crypt_device *ctx) +int LUKS_hdr_backup( + const char *backup_file, + struct luks_phdr *hdr, + struct crypt_device *ctx) { struct device *device = crypt_metadata_device(ctx); - struct luks_phdr hdr; int r = 0, devfd = -1; - ssize_t hdr_size; ssize_t buffer_size; char *buffer = NULL; - r = LUKS_read_phdr(&hdr, 1, 0, ctx); + r = LUKS_read_phdr(hdr, 1, 0, ctx); if (r) return r; - hdr_size = LUKS_device_sectors(hdr.keyBytes) << SECTOR_SHIFT; - buffer_size = size_round_up(hdr_size, crypt_getpagesize()); - + buffer_size = LUKS_device_sectors(hdr->keyBytes) << SECTOR_SHIFT; buffer = crypt_safe_alloc(buffer_size); - if (!buffer || hdr_size < LUKS_ALIGN_KEYSLOTS || hdr_size > buffer_size) { + if (!buffer || buffer_size < LUKS_ALIGN_KEYSLOTS) { r = -ENOMEM; goto out; } - log_dbg("Storing backup of header (%zu bytes) and keyslot area (%zu bytes).", - sizeof(hdr), hdr_size - LUKS_ALIGN_KEYSLOTS); - - log_dbg("Output backup file size: %zu bytes.", buffer_size); + log_dbg("Storing backup of header (%u bytes) and keyslot area (%u bytes).", + sizeof(*hdr), buffer_size - LUKS_ALIGN_KEYSLOTS); devfd = device_open(device, O_RDONLY); if(devfd == -1) { @@ -182,15 +177,15 @@ int LUKS_hdr_backup(const char *backup_file, struct crypt_device *ctx) goto out; } - if (read_blockwise(devfd, device_block_size(device), buffer, hdr_size) < hdr_size) { + if (read_blockwise(devfd, device_block_size(device), buffer, buffer_size) < buffer_size) { r = -EIO; goto out; } close(devfd); /* Wipe unused area, so backup cannot contain old signatures */ - if (hdr.keyblock[0].keyMaterialOffset * SECTOR_SIZE == LUKS_ALIGN_KEYSLOTS) - memset(buffer + sizeof(hdr), 0, LUKS_ALIGN_KEYSLOTS - sizeof(hdr)); + if (hdr->keyblock[0].keyMaterialOffset * SECTOR_SIZE == LUKS_ALIGN_KEYSLOTS) + memset(buffer + sizeof(*hdr), 0, LUKS_ALIGN_KEYSLOTS - sizeof(*hdr)); devfd = open(backup_file, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR); if (devfd == -1) { @@ -212,7 +207,6 @@ int LUKS_hdr_backup(const char *backup_file, struct crypt_device *ctx) out: if (devfd != -1) close(devfd); - crypt_memzero(&hdr, sizeof(hdr)); crypt_safe_free(buffer); return r; } @@ -287,7 +281,7 @@ int LUKS_hdr_restore( goto out; } - log_dbg("Storing backup of header (%zu bytes) and keyslot area (%zu bytes) to device %s.", + log_dbg("Storing backup of header (%u bytes) and keyslot area (%u bytes) to device %s.", sizeof(*hdr), buffer_size - LUKS_ALIGN_KEYSLOTS, device_path(device)); devfd = device_open(device, O_RDWR); @@ -398,7 +392,7 @@ static int _keyslot_repair(struct luks_phdr *phdr, struct crypt_device *ctx) } out: crypt_free_volume_key(vk); - crypt_memzero(&temp_phdr, sizeof(temp_phdr)); + memset(&temp_phdr, 0, sizeof(temp_phdr)); return r; } @@ -471,13 +465,6 @@ static void LUKS_fix_header_compatible(struct luks_phdr *header) /* Old cryptsetup expects "sha1", gcrypt allows case insensistive names, * so always convert hash to lower case in header */ _to_lower(header->hashSpec, LUKS_HASHSPEC_L); - - /* ECB mode does not use IV but dmcrypt silently allows it. - * Drop any IV here if ECB is used (that is not secure anyway).*/ - if (!strncmp(header->cipherMode, "ecb-", 4)) { - memset(header->cipherMode, 0, LUKS_CIPHERMODE_L); - strcpy(header->cipherMode, "ecb"); - } } int LUKS_read_phdr_backup(const char *backup_file, @@ -527,7 +514,7 @@ int LUKS_read_phdr(struct luks_phdr *hdr, if (repair && !require_luks_device) return -EINVAL; - log_dbg("Reading LUKS header of size %zu from device %s", + log_dbg("Reading LUKS header of size %d from device %s", hdr_size, device_path(device)); devfd = device_open(device, O_RDONLY); @@ -559,7 +546,7 @@ int LUKS_write_phdr(struct luks_phdr *hdr, struct luks_phdr convHdr; int r; - log_dbg("Updating LUKS header of size %zu on device %s", + log_dbg("Updating LUKS header of size %d on device %s", sizeof(struct luks_phdr), device_path(device)); r = LUKS_check_device_size(ctx, hdr->keyBytes); @@ -607,28 +594,6 @@ int LUKS_write_phdr(struct luks_phdr *hdr, return r; } -/* Check that kernel supports requested cipher by decryption of one sector */ -static int LUKS_check_cipher(struct luks_phdr *hdr, struct crypt_device *ctx) -{ - int r; - struct volume_key *empty_key; - char buf[SECTOR_SIZE]; - - log_dbg("Checking if cipher %s-%s is usable.", hdr->cipherName, hdr->cipherMode); - - empty_key = crypt_alloc_volume_key(hdr->keyBytes, NULL); - if (!empty_key) - return -ENOMEM; - - r = LUKS_decrypt_from_storage(buf, sizeof(buf), - hdr->cipherName, hdr->cipherMode, - empty_key, 0, ctx); - - crypt_free_volume_key(empty_key); - crypt_memzero(buf, sizeof(buf)); - return r; -} - int LUKS_generate_phdr(struct luks_phdr *header, const struct volume_key *vk, const char *cipherName, const char *cipherMode, const char *hashSpec, @@ -682,10 +647,6 @@ int LUKS_generate_phdr(struct luks_phdr *header, LUKS_fix_header_compatible(header); - r = LUKS_check_cipher(header, ctx); - if (r < 0) - return r; - log_dbg("Generating LUKS header version %d using hash %s, %s, %s, MK %d bytes", header->version, header->hashSpec ,header->cipherName, header->cipherMode, header->keyBytes); @@ -811,7 +772,7 @@ int LUKS_set_key(unsigned int keyIndex, hdr->keyblock[keyIndex].passwordIterations = at_least((uint32_t)PBKDF2_temp, LUKS_SLOT_ITERATIONS_MIN); - log_dbg("Key slot %d use %" PRIu32 " password iterations.", keyIndex, hdr->keyblock[keyIndex].passwordIterations); + log_dbg("Key slot %d use %d password iterations.", keyIndex, hdr->keyblock[keyIndex].passwordIterations); derived_key = crypt_alloc_volume_key(hdr->keyBytes, NULL); if (!derived_key) diff --git a/lib/luks1/luks.h b/lib/luks1/luks.h index 7aef82f..6d6c74c 100644 --- a/lib/luks1/luks.h +++ b/lib/luks1/luks.h @@ -130,6 +130,7 @@ int LUKS_hdr_uuid_set( int LUKS_hdr_backup( const char *backup_file, + struct luks_phdr *hdr, struct crypt_device *ctx); int LUKS_hdr_restore( diff --git a/lib/setup.c b/lib/setup.c index 01e2c80..1d72074 100644 --- a/lib/setup.c +++ b/lib/setup.c @@ -1,10 +1,10 @@ /* * libcryptsetup - cryptsetup library * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2009-2014, Milan Broz + * Copyright (C) 2009-2013, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -25,7 +25,6 @@ #include #include #include -#include #include #include @@ -79,13 +78,6 @@ struct crypt_device { struct crypt_params_tcrypt params; struct tcrypt_phdr hdr; } tcrypt; - struct { /* used if initialized without header by name */ - char *active_name; - /* buffers, must refresh from kernel on every query */ - char cipher[MAX_CIPHER_LEN]; - char cipher_mode[MAX_CIPHER_LEN]; - unsigned int key_size; - } none; } u; /* callbacks definitions */ @@ -100,9 +92,6 @@ struct crypt_device { char error[MAX_ERROR_LENGTH]; }; -/* Just to suppress redundant messages about crypto backend */ -static int _crypto_logged = 0; - /* Global error */ /* FIXME: not thread safe, remove this later */ static char global_error[MAX_ERROR_LENGTH] = {0}; @@ -192,9 +181,10 @@ struct device *crypt_data_device(struct crypt_device *cd) int init_crypto(struct crypt_device *ctx) { - struct utsname uts; int r; + crypt_fips_libcryptsetup_check(ctx); + r = crypt_random_init(ctx); if (r < 0) { log_err(ctx, _("Cannot initialize crypto RNG backend.\n")); @@ -205,14 +195,7 @@ int init_crypto(struct crypt_device *ctx) if (r < 0) log_err(ctx, _("Cannot initialize crypto backend.\n")); - if (!r && !_crypto_logged) { - log_dbg("Crypto backend (%s) initialized.", crypt_backend_version()); - if (!uname(&uts)) - log_dbg("Detected kernel %s %s %s.", - uts.sysname, uts.release, uts.machine); - _crypto_logged = 1; - } - + log_dbg("Crypto backend (%s) initialized.", crypt_backend_version()); return r; } @@ -276,41 +259,6 @@ static int isTCRYPT(const char *type) return (type && !strcmp(CRYPT_TCRYPT, type)); } -static int onlyLUKS(struct crypt_device *cd) -{ - int r = 0; - - if (cd && !cd->type) { - log_err(cd, _("Cannot determine device type. Incompatible activation of device?\n")); - r = -EINVAL; - } - if (!cd || !isLUKS(cd->type)) { - log_err(cd, _("This operation is supported only for LUKS device.\n")); - r = -EINVAL; - } - - return r; -} - -static void crypt_set_null_type(struct crypt_device *cd) -{ - if (!cd->type) - return; - - free(cd->type); - cd->type = NULL; - cd->u.none.active_name = NULL; -} - -static void crypt_reset_null_type(struct crypt_device *cd) -{ - if (cd->type) - return; - - free(cd->u.none.active_name); - cd->u.none.active_name = NULL; -} - /* keyslot helpers */ static int keyslot_verify_or_find_empty(struct crypt_device *cd, int *keyslot) { @@ -368,36 +316,6 @@ static int crypt_uuid_cmp(const char *dm_uuid, const char *hdr_uuid) return 0; } -/* - * compares type of active device to provided string (only if there is no explicit type) - */ -static int crypt_uuid_type_cmp(struct crypt_device *cd, const char *type) -{ - struct crypt_dm_active_device dmd = {}; - size_t len; - int r; - - /* Must user header-on-disk if we know type here */ - if (cd->type || !cd->u.none.active_name) - return -EINVAL; - - log_dbg("Checking if active device %s without header has UUID type %s.", - cd->u.none.active_name, type); - - r = dm_query_device(cd, cd->u.none.active_name, DM_ACTIVE_UUID, &dmd); - if (r < 0) - return r; - - r = -ENODEV; - len = strlen(type); - if (dmd.uuid && strlen(dmd.uuid) > len && - !strncmp(dmd.uuid, type, len) && dmd.uuid[len] == '-') - r = 0; - - free(CONST_CAST(void*)dmd.uuid); - return r; -} - int PLAIN_activate(struct crypt_device *cd, const char *name, struct volume_key *vk, @@ -788,8 +706,6 @@ static int _init_by_name_crypt(struct crypt_device *cd, const char *name) DM_ACTIVE_CRYPT_KEYSIZE, &dmd); if (r < 0) goto out; - if (r > 0) - r = 0; if (isPLAIN(cd->type)) { cd->u.plain.hdr.hash = NULL; /* no way to get this */ @@ -820,7 +736,8 @@ static int _init_by_name_crypt(struct crypt_device *cd, const char *name) r = _crypt_load_luks1(cd, 0, 0); if (r < 0) { log_dbg("LUKS device header does not match active device."); - crypt_set_null_type(cd); + free(cd->type); + cd->type = NULL; r = 0; goto out; } @@ -829,12 +746,14 @@ static int _init_by_name_crypt(struct crypt_device *cd, const char *name) if (r < 0) { log_dbg("LUKS device header uuid: %s mismatches DM returned uuid %s", cd->u.luks1.hdr.uuid, dmd.uuid); - crypt_set_null_type(cd); + free(cd->type); + cd->type = NULL; r = 0; } } else { log_dbg("LUKS device header not available."); - crypt_set_null_type(cd); + free(cd->type); + cd->type = NULL; r = 0; } } else if (isTCRYPT(cd->type)) { @@ -864,8 +783,6 @@ static int _init_by_name_verity(struct crypt_device *cd, const char *name) DM_ACTIVE_VERITY_PARAMS, &dmd); if (r < 0) goto out; - if (r > 0) - r = 0; if (isVERITY(cd->type)) { cd->u.verity.uuid = NULL; // FIXME @@ -968,11 +885,7 @@ out: if (r < 0) { crypt_free(*cd); *cd = NULL; - } else if (!(*cd)->type && name) { - /* For anonymous device (no header found) remember initialized name */ - (*cd)->u.none.active_name = strdup(name); } - device_free(dmd.data_device); free(CONST_CAST(void*)dmd.uuid); return r; @@ -1072,6 +985,11 @@ static int _crypt_format_luks1(struct crypt_device *cd, &required_alignment, &alignment_offset, DEFAULT_DISK_ALIGNMENT); + /* Check early if we cannot allocate block device for key slot access */ + r = device_block_adjust(cd, cd->device, DEV_OK, 0, NULL, NULL); + if(r < 0) + return r; + r = LUKS_generate_phdr(&cd->u.luks1.hdr, cd->volume_key, cipher, cipher_mode, (params && params->hash) ? params->hash : "sha1", uuid, LUKS_STRIPES, @@ -1265,8 +1183,6 @@ int crypt_format(struct crypt_device *cd, log_dbg("Formatting device %s as type %s.", mdata_device_path(cd) ?: "(none)", type); - crypt_reset_null_type(cd); - r = init_crypto(cd); if (r < 0) return r; @@ -1287,7 +1203,8 @@ int crypt_format(struct crypt_device *cd, } if (r < 0) { - crypt_set_null_type(cd); + free(cd->type); + cd->type = NULL; crypt_free_volume_key(cd->volume_key); cd->volume_key = NULL; } @@ -1307,8 +1224,6 @@ int crypt_load(struct crypt_device *cd, if (!crypt_metadata_device(cd)) return -EINVAL; - crypt_reset_null_type(cd); - if (!requested_type || isLUKS(requested_type)) { if (cd->type && !isLUKS(cd->type)) { log_dbg("Context is already initialised to type %s", cd->type); @@ -1357,8 +1272,10 @@ int crypt_repair(struct crypt_device *cd, /* cd->type and header must be set in context */ r = crypt_check_data_device_size(cd); - if (r < 0) - crypt_set_null_type(cd); + if (r < 0) { + free(cd->type); + cd->type = NULL; + } return r; } @@ -1447,9 +1364,6 @@ int crypt_header_backup(struct crypt_device *cd, if ((requested_type && !isLUKS(requested_type)) || !backup_file) return -EINVAL; - if (cd->type && !isLUKS(cd->type)) - return -EINVAL; - r = init_crypto(cd); if (r < 0) return r; @@ -1457,15 +1371,13 @@ int crypt_header_backup(struct crypt_device *cd, log_dbg("Requested header backup of device %s (%s) to " "file %s.", mdata_device_path(cd), requested_type, backup_file); - r = LUKS_hdr_backup(backup_file, cd); - return r; + return LUKS_hdr_backup(backup_file, &cd->u.luks1.hdr, cd); } int crypt_header_restore(struct crypt_device *cd, const char *requested_type, const char *backup_file) { - struct luks_phdr hdr; int r; if (requested_type && !isLUKS(requested_type)) @@ -1481,10 +1393,7 @@ int crypt_header_restore(struct crypt_device *cd, log_dbg("Requested header restore to device %s (%s) from " "file %s.", mdata_device_path(cd), requested_type, backup_file); - r = LUKS_hdr_restore(backup_file, isLUKS(cd->type) ? &cd->u.luks1.hdr : &hdr, cd); - - crypt_memzero(&hdr, sizeof(hdr)); - return r; + return LUKS_hdr_restore(backup_file, &cd->u.luks1.hdr, cd); } void crypt_free(struct crypt_device *cd) @@ -1510,13 +1419,11 @@ void crypt_free(struct crypt_device *cd) free(CONST_CAST(void*)cd->u.verity.hdr.salt); free(cd->u.verity.root_hash); free(cd->u.verity.uuid); - } else if (!cd->type) { - free(cd->u.none.active_name); } free(cd->type); /* Some structures can contain keys (TCRYPT), wipe it */ - crypt_memzero(cd, sizeof(*cd)); + memset(cd, 0, sizeof(*cd)); free(cd); } } @@ -1529,17 +1436,12 @@ int crypt_suspend(struct crypt_device *cd, log_dbg("Suspending volume %s.", name); - if (cd->type) { - r = onlyLUKS(cd); - } else { - r = crypt_uuid_type_cmp(cd, CRYPT_LUKS1); - if (r < 0) - log_err(cd, _("This operation is supported only for LUKS device.\n")); + if (!cd || !isLUKS(cd->type)) { + log_err(cd, _("This operation is supported only for LUKS device.\n")); + r = -EINVAL; + goto out; } - if (r < 0) - return r; - ci = crypt_status(NULL, name); if (ci < CRYPT_ACTIVE) { log_err(cd, _("Volume %s is not active.\n"), name); @@ -1579,9 +1481,11 @@ int crypt_resume_by_passphrase(struct crypt_device *cd, log_dbg("Resuming volume %s.", name); - r = onlyLUKS(cd); - if (r < 0) - return r; + if (!isLUKS(cd->type)) { + log_err(cd, _("This operation is supported only for LUKS device.\n")); + r = -EINVAL; + goto out; + } r = dm_status_suspended(cd, name); if (r < 0) @@ -1607,7 +1511,7 @@ int crypt_resume_by_passphrase(struct crypt_device *cd, log_err(cd, _("Error during resuming device %s.\n"), name); } else r = keyslot; - +out: crypt_free_volume_key(vk); return r < 0 ? r : keyslot; } @@ -1626,9 +1530,11 @@ int crypt_resume_by_keyfile_offset(struct crypt_device *cd, log_dbg("Resuming volume %s.", name); - r = onlyLUKS(cd); - if (r < 0) - return r; + if (!isLUKS(cd->type)) { + log_err(cd, _("This operation is supported only for LUKS device.\n")); + r = -EINVAL; + goto out; + } r = dm_status_suspended(cd, name); if (r < 0) @@ -1690,9 +1596,10 @@ int crypt_keyslot_add_by_passphrase(struct crypt_device *cd, "new passphrase %sprovided.", passphrase ? "" : "not ", new_passphrase ? "" : "not "); - r = onlyLUKS(cd); - if (r < 0) - return r; + if (!isLUKS(cd->type)) { + log_err(cd, _("This operation is supported only for LUKS device.\n")); + return -EINVAL; + } r = keyslot_verify_or_find_empty(cd, &keyslot); if (r) @@ -1738,15 +1645,14 @@ int crypt_keyslot_add_by_passphrase(struct crypt_device *cd, r = LUKS_set_key(keyslot, new_password, new_passwordLen, &cd->u.luks1.hdr, vk, cd->iteration_time, &cd->u.luks1.PBKDF2_per_sec, cd); - if(r < 0) - goto out; + if(r < 0) goto out; r = 0; out: if (!new_passphrase) crypt_safe_free(new_password); crypt_free_volume_key(vk); - return r < 0 ? r : keyslot; + return r ?: keyslot; } int crypt_keyslot_change_by_passphrase(struct crypt_device *cd, @@ -1758,14 +1664,15 @@ int crypt_keyslot_change_by_passphrase(struct crypt_device *cd, size_t new_passphrase_size) { struct volume_key *vk = NULL; - int r; + int r = -EINVAL; log_dbg("Changing passphrase from old keyslot %d to new %d.", keyslot_old, keyslot_new); - r = onlyLUKS(cd); - if (r < 0) - return r; + if (!isLUKS(cd->type)) { + log_err(cd, _("This operation is supported only for LUKS device.\n")); + return -EINVAL; + } r = LUKS_open_key_with_hdr(keyslot_old, passphrase, passphrase_size, &cd->u.luks1.hdr, &vk, cd); @@ -1795,10 +1702,10 @@ int crypt_keyslot_change_by_passphrase(struct crypt_device *cd, if (keyslot_old == keyslot_new) { if (r >= 0) - log_verbose(cd, _("Key slot %d changed.\n"), keyslot_new); + log_verbose(cd, _("Key slot %d changed.\n"), r); } else { if (r >= 0) { - log_verbose(cd, _("Replaced with key slot %d.\n"), keyslot_new); + log_verbose(cd, _("Replaced with key slot %d.\n"), r); r = crypt_keyslot_destroy(cd, keyslot_old); } } @@ -1806,7 +1713,7 @@ int crypt_keyslot_change_by_passphrase(struct crypt_device *cd, log_err(cd, _("Failed to swap new key slot.\n")); out: crypt_free_volume_key(vk); - return r < 0 ? r : keyslot_new; + return r ?: keyslot_new; } int crypt_keyslot_add_by_keyfile_offset(struct crypt_device *cd, @@ -1826,9 +1733,10 @@ int crypt_keyslot_add_by_keyfile_offset(struct crypt_device *cd, log_dbg("Adding new keyslot, existing keyfile %s, new keyfile %s.", keyfile ?: "[none]", new_keyfile ?: "[none]"); - r = onlyLUKS(cd); - if (r < 0) - return r; + if (!isLUKS(cd->type)) { + log_err(cd, _("This operation is supported only for LUKS device.\n")); + return -EINVAL; + } r = keyslot_verify_or_find_empty(cd, &keyslot); if (r) @@ -1901,14 +1809,15 @@ int crypt_keyslot_add_by_volume_key(struct crypt_device *cd, size_t passphrase_size) { struct volume_key *vk = NULL; - int r; + int r = -EINVAL; char *new_password = NULL; size_t new_passwordLen; log_dbg("Adding new keyslot %d using volume key.", keyslot); - r = onlyLUKS(cd); - if (r < 0) - return r; + if (!isLUKS(cd->type)) { + log_err(cd, _("This operation is supported only for LUKS device.\n")); + return -EINVAL; + } if (volume_key) vk = crypt_alloc_volume_key(volume_key_size, volume_key); @@ -1948,13 +1857,13 @@ out: int crypt_keyslot_destroy(struct crypt_device *cd, int keyslot) { crypt_keyslot_info ki; - int r; log_dbg("Destroying keyslot %d.", keyslot); - r = onlyLUKS(cd); - if (r < 0) - return r; + if (!isLUKS(cd->type)) { + log_err(cd, _("This operation is supported only for LUKS device.\n")); + return -EINVAL; + } ki = crypt_keyslot_status(cd, keyslot); if (ki == CRYPT_SLOT_INVALID) { @@ -2325,9 +2234,10 @@ int crypt_volume_key_verify(struct crypt_device *cd, struct volume_key *vk; int r; - r = onlyLUKS(cd); - if (r < 0) - return r; + if (!isLUKS(cd->type)) { + log_err(cd, _("This operation is supported only for LUKS device.\n")); + return -EINVAL; + } vk = crypt_alloc_volume_key(volume_key_size, volume_key); if (!vk) @@ -2431,12 +2341,12 @@ static int _luks_dump(struct crypt_device *cd) int i; log_std(cd, "LUKS header information for %s\n\n", mdata_device_path(cd)); - log_std(cd, "Version: \t%" PRIu16 "\n", cd->u.luks1.hdr.version); + log_std(cd, "Version: \t%d\n", cd->u.luks1.hdr.version); log_std(cd, "Cipher name: \t%s\n", cd->u.luks1.hdr.cipherName); log_std(cd, "Cipher mode: \t%s\n", cd->u.luks1.hdr.cipherMode); log_std(cd, "Hash spec: \t%s\n", cd->u.luks1.hdr.hashSpec); - log_std(cd, "Payload offset:\t%" PRIu32 "\n", cd->u.luks1.hdr.payloadOffset); - log_std(cd, "MK bits: \t%" PRIu32 "\n", cd->u.luks1.hdr.keyBytes * 8); + log_std(cd, "Payload offset:\t%d\n", cd->u.luks1.hdr.payloadOffset); + log_std(cd, "MK bits: \t%d\n", cd->u.luks1.hdr.keyBytes * 8); log_std(cd, "MK digest: \t"); hexprint(cd, cd->u.luks1.hdr.mkDigest, LUKS_DIGESTSIZE, " "); log_std(cd, "\n"); @@ -2445,12 +2355,12 @@ static int _luks_dump(struct crypt_device *cd) log_std(cd, "\n \t"); hexprint(cd, cd->u.luks1.hdr.mkDigestSalt+LUKS_SALTSIZE/2, LUKS_SALTSIZE/2, " "); log_std(cd, "\n"); - log_std(cd, "MK iterations: \t%" PRIu32 "\n", cd->u.luks1.hdr.mkDigestIterations); + log_std(cd, "MK iterations: \t%d\n", cd->u.luks1.hdr.mkDigestIterations); log_std(cd, "UUID: \t%s\n\n", cd->u.luks1.hdr.uuid); for(i = 0; i < LUKS_NUMKEYS; i++) { if(cd->u.luks1.hdr.keyblock[i].active == LUKS_KEY_ENABLED) { log_std(cd, "Key Slot %d: ENABLED\n",i); - log_std(cd, "\tIterations: \t%" PRIu32 "\n", + log_std(cd, "\tIterations: \t%d\n", cd->u.luks1.hdr.keyblock[i].passwordIterations); log_std(cd, "\tSalt: \t"); hexprint(cd, cd->u.luks1.hdr.keyblock[i].passwordSalt, @@ -2460,9 +2370,9 @@ static int _luks_dump(struct crypt_device *cd) LUKS_SALTSIZE/2, LUKS_SALTSIZE/2, " "); log_std(cd, "\n"); - log_std(cd, "\tKey material offset:\t%" PRIu32 "\n", + log_std(cd, "\tKey material offset:\t%d\n", cd->u.luks1.hdr.keyblock[i].keyMaterialOffset); - log_std(cd, "\tAF stripes: \t%" PRIu32 "\n", + log_std(cd, "\tAF stripes: \t%d\n", cd->u.luks1.hdr.keyblock[i].stripes); } else @@ -2507,31 +2417,6 @@ int crypt_dump(struct crypt_device *cd) return -EINVAL; } - -static int _init_by_name_crypt_none(struct crypt_device *cd) -{ - struct crypt_dm_active_device dmd = {}; - int r; - - if (cd->type || !cd->u.none.active_name) - return -EINVAL; - - r = dm_query_device(cd, cd->u.none.active_name, - DM_ACTIVE_CRYPT_CIPHER | - DM_ACTIVE_CRYPT_KEYSIZE, &dmd); - if (r >= 0) - r = crypt_parse_name_and_mode(dmd.u.crypt.cipher, - cd->u.none.cipher, NULL, - cd->u.none.cipher_mode); - - if (!r) - cd->u.none.key_size = dmd.u.crypt.vk->keylength; - - crypt_free_volume_key(dmd.u.crypt.vk); - free(CONST_CAST(void*)dmd.u.crypt.cipher); - return r; -} - const char *crypt_get_cipher(struct crypt_device *cd) { if (isPLAIN(cd->type)) @@ -2546,9 +2431,6 @@ const char *crypt_get_cipher(struct crypt_device *cd) if (isTCRYPT(cd->type)) return cd->u.tcrypt.params.cipher; - if (!cd->type && !_init_by_name_crypt_none(cd)) - return cd->u.none.cipher; - return NULL; } @@ -2566,9 +2448,6 @@ const char *crypt_get_cipher_mode(struct crypt_device *cd) if (isTCRYPT(cd->type)) return cd->u.tcrypt.params.mode; - if (!cd->type && !_init_by_name_crypt_none(cd)) - return cd->u.none.cipher_mode; - return NULL; } @@ -2610,9 +2489,6 @@ int crypt_get_volume_key_size(struct crypt_device *cd) if (isTCRYPT(cd->type)) return cd->u.tcrypt.params.key_size; - if (!cd->type && !_init_by_name_crypt_none(cd)) - return cd->u.none.key_size; - return 0; } @@ -2652,8 +2528,10 @@ uint64_t crypt_get_iv_offset(struct crypt_device *cd) crypt_keyslot_info crypt_keyslot_status(struct crypt_device *cd, int keyslot) { - if (onlyLUKS(cd) < 0) + if (!isLUKS(cd->type)) { + log_err(cd, _("This operation is supported only for LUKS device.\n")); return CRYPT_SLOT_INVALID; + } return LUKS_keyslot_info(&cd->u.luks1.hdr, keyslot); } diff --git a/lib/tcrypt/Makefile.in b/lib/tcrypt/Makefile.in deleted file mode 100644 index 842f637..0000000 --- a/lib/tcrypt/Makefile.in +++ /dev/null @@ -1,645 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = lib/tcrypt -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(top_srcdir)/depcomp -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libtcrypt_la_LIBADD = -am_libtcrypt_la_OBJECTS = libtcrypt_la-tcrypt.lo -libtcrypt_la_OBJECTS = $(am_libtcrypt_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -libtcrypt_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libtcrypt_la_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libtcrypt_la_SOURCES) -DIST_SOURCES = $(libtcrypt_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -moduledir = $(libdir)/cryptsetup -noinst_LTLIBRARIES = libtcrypt.la -libtcrypt_la_CFLAGS = -Wall $(AM_CFLAGS) @CRYPTO_CFLAGS@ -libtcrypt_la_SOURCES = \ - tcrypt.c \ - tcrypt.h - -AM_CPPFLAGS = -include config.h \ - -I$(top_srcdir)/lib \ - -I$(top_srcdir)/lib/crypto_backend - -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .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 ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/tcrypt/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/tcrypt/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libtcrypt.la: $(libtcrypt_la_OBJECTS) $(libtcrypt_la_DEPENDENCIES) $(EXTRA_libtcrypt_la_DEPENDENCIES) - $(AM_V_CCLD)$(libtcrypt_la_LINK) $(libtcrypt_la_OBJECTS) $(libtcrypt_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtcrypt_la-tcrypt.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libtcrypt_la-tcrypt.lo: tcrypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtcrypt_la_CFLAGS) $(CFLAGS) -MT libtcrypt_la-tcrypt.lo -MD -MP -MF $(DEPDIR)/libtcrypt_la-tcrypt.Tpo -c -o libtcrypt_la-tcrypt.lo `test -f 'tcrypt.c' || echo '$(srcdir)/'`tcrypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libtcrypt_la-tcrypt.Tpo $(DEPDIR)/libtcrypt_la-tcrypt.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tcrypt.c' object='libtcrypt_la-tcrypt.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtcrypt_la_CFLAGS) $(CFLAGS) -c -o libtcrypt_la-tcrypt.lo `test -f 'tcrypt.c' || echo '$(srcdir)/'`tcrypt.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/lib/tcrypt/tcrypt.c b/lib/tcrypt/tcrypt.c index 03b11ed..128e10b 100644 --- a/lib/tcrypt/tcrypt.c +++ b/lib/tcrypt/tcrypt.c @@ -1,8 +1,8 @@ /* - * TCRYPT (TrueCrypt-compatible) and VeraCrypt volume handling + * TCRYPT (TrueCrypt-compatible) volume handling * * Copyright (C) 2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2012-2015, Milan Broz + * Copyright (C) 2012-2013, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -33,23 +33,16 @@ /* TCRYPT PBKDF variants */ static struct { unsigned int legacy:1; - unsigned int veracrypt:1; const char *name; const char *hash; unsigned int iterations; } tcrypt_kdf[] = { - { 0, 0, "pbkdf2", "ripemd160", 2000 }, - { 0, 0, "pbkdf2", "ripemd160", 1000 }, - { 0, 0, "pbkdf2", "sha512", 1000 }, - { 0, 0, "pbkdf2", "whirlpool", 1000 }, - { 1, 0, "pbkdf2", "sha1", 2000 }, - { 0, 1, "pbkdf2", "sha512", 500000 }, - { 0, 1, "pbkdf2", "ripemd160", 655331 }, - { 0, 1, "pbkdf2", "ripemd160", 327661 }, // boot only - { 0, 1, "pbkdf2", "whirlpool", 500000 }, - { 0, 1, "pbkdf2", "sha256", 500000 }, // VeraCrypt 1.0f - { 0, 1, "pbkdf2", "sha256", 200000 }, // boot only - { 0, 0, NULL, NULL, 0 } + { 0, "pbkdf2", "ripemd160", 2000 }, + { 0, "pbkdf2", "ripemd160", 1000 }, + { 0, "pbkdf2", "sha512", 1000 }, + { 0, "pbkdf2", "whirlpool", 1000 }, + { 1, "pbkdf2", "sha1", 2000 }, + { 0, NULL, NULL, 0 } }; struct tcrypt_alg { @@ -58,7 +51,6 @@ struct tcrypt_alg { unsigned int iv_size; unsigned int key_offset; unsigned int iv_offset; /* or tweak key offset */ - unsigned int key_extra_size; }; struct tcrypt_algs { @@ -74,107 +66,101 @@ struct tcrypt_algs { static struct tcrypt_algs tcrypt_cipher[] = { /* XTS mode */ {0,1,64,"aes","xts-plain64", - {{"aes", 64,16,0,32,0}}}, + {{"aes", 64,16,0,32}}}, {0,1,64,"serpent","xts-plain64", - {{"serpent",64,16,0,32,0}}}, + {{"serpent",64,16,0,32}}}, {0,1,64,"twofish","xts-plain64", - {{"twofish",64,16,0,32,0}}}, + {{"twofish",64,16,0,32}}}, {0,2,128,"twofish-aes","xts-plain64", - {{"twofish",64,16, 0,64,0}, - {"aes", 64,16,32,96,0}}}, + {{"twofish",64,16, 0,64}, + {"aes", 64,16,32,96}}}, {0,3,192,"serpent-twofish-aes","xts-plain64", - {{"serpent",64,16, 0, 96,0}, - {"twofish",64,16,32,128,0}, - {"aes", 64,16,64,160,0}}}, + {{"serpent",64,16, 0, 96}, + {"twofish",64,16,32,128}, + {"aes", 64,16,64,160}}}, {0,2,128,"aes-serpent","xts-plain64", - {{"aes", 64,16, 0,64,0}, - {"serpent",64,16,32,96,0}}}, + {{"aes", 64,16, 0,64}, + {"serpent",64,16,32,96}}}, {0,3,192,"aes-twofish-serpent","xts-plain64", - {{"aes", 64,16, 0, 96,0}, - {"twofish",64,16,32,128,0}, - {"serpent",64,16,64,160,0}}}, + {{"aes", 64,16, 0, 96}, + {"twofish",64,16,32,128}, + {"serpent",64,16,64,160}}}, {0,2,128,"serpent-twofish","xts-plain64", - {{"serpent",64,16, 0,64,0}, - {"twofish",64,16,32,96,0}}}, - + {{"serpent",64,16, 0,64}, + {"twofish",64,16,32,96}}}, /* LRW mode */ {0,1,48,"aes","lrw-benbi", - {{"aes", 48,16,32,0,0}}}, + {{"aes", 48,16,32,0}}}, {0,1,48,"serpent","lrw-benbi", - {{"serpent",48,16,32,0,0}}}, + {{"serpent",48,16,32,0}}}, {0,1,48,"twofish","lrw-benbi", - {{"twofish",48,16,32,0,0}}}, + {{"twofish",48,16,32,0}}}, {0,2,96,"twofish-aes","lrw-benbi", - {{"twofish",48,16,32,0,0}, - {"aes", 48,16,64,0,0}}}, + {{"twofish",48,16,32,0}, + {"aes", 48,16,64,0}}}, {0,3,144,"serpent-twofish-aes","lrw-benbi", - {{"serpent",48,16,32,0,0}, - {"twofish",48,16,64,0,0}, - {"aes", 48,16,96,0,0}}}, + {{"serpent",48,16,32,0}, + {"twofish",48,16,64,0}, + {"aes", 48,16,96,0}}}, {0,2,96,"aes-serpent","lrw-benbi", - {{"aes", 48,16,32,0,0}, - {"serpent",48,16,64,0,0}}}, + {{"aes", 48,16,32,0}, + {"serpent",48,16,64,0}}}, {0,3,144,"aes-twofish-serpent","lrw-benbi", - {{"aes", 48,16,32,0,0}, - {"twofish",48,16,64,0,0}, - {"serpent",48,16,96,0,0}}}, + {{"aes", 48,16,32,0}, + {"twofish",48,16,64,0}, + {"serpent",48,16,96,0}}}, {0,2,96,"serpent-twofish", "lrw-benbi", - {{"serpent",48,16,32,0,0}, - {"twofish",48,16,64,0,0}}}, - + {{"serpent",48,16,32,0}, + {"twofish",48,16,64,0}}}, /* Kernel LRW block size is fixed to 16 bytes for GF(2^128) * thus cannot be used with blowfish where block is 8 bytes. * There also no GF(2^64) support. {1,1,64,"blowfish_le","lrw-benbi", - {{"blowfish_le",64,8,32,0,0}}}, + {{"blowfish_le",64,8,32,0}}}, {1,2,112,"blowfish_le-aes","lrw-benbi", - {{"blowfish_le",64, 8,32,0,0}, - {"aes", 48,16,88,0,0}}}, + {{"blowfish_le",64, 8,32,0}, + {"aes", 48,16,88,0}}}, {1,3,160,"serpent-blowfish_le-aes","lrw-benbi", - {{"serpent", 48,16, 32,0,0}, - {"blowfish_le",64, 8, 64,0,0}, - {"aes", 48,16,120,0,0}}},*/ - -/* - * CBC + "outer" CBC (both with whitening) - * chain_key_size: alg_keys_bytes + IV_seed_bytes + whitening_bytes - */ -{1,1,32+16+16,"aes","cbc-tcw", - {{"aes", 32,16,32,0,32}}}, -{1,1,32+16+16,"serpent","cbc-tcw", - {{"serpent",32,16,32,0,32}}}, -{1,1,32+16+16,"twofish","cbc-tcw", - {{"twofish",32,16,32,0,32}}}, -{1,2,64+16+16,"twofish-aes","cbci-tcrypt", - {{"twofish",32,16,32,0,0}, - {"aes", 32,16,64,0,32}}}, -{1,3,96+16+16,"serpent-twofish-aes","cbci-tcrypt", - {{"serpent",32,16,32,0,0}, - {"twofish",32,16,64,0,0}, - {"aes", 32,16,96,0,32}}}, -{1,2,64+16+16,"aes-serpent","cbci-tcrypt", - {{"aes", 32,16,32,0,0}, - {"serpent",32,16,64,0,32}}}, -{1,3,96+16+16,"aes-twofish-serpent", "cbci-tcrypt", - {{"aes", 32,16,32,0,0}, - {"twofish",32,16,64,0,0}, - {"serpent",32,16,96,0,32}}}, -{1,2,64+16+16,"serpent-twofish", "cbci-tcrypt", - {{"serpent",32,16,32,0,0}, - {"twofish",32,16,64,0,32}}}, -{1,1,16+8+16,"cast5","cbc-tcw", - {{"cast5", 16,8,32,0,24}}}, -{1,1,24+8+16,"des3_ede","cbc-tcw", - {{"des3_ede",24,8,32,0,24}}}, -{1,1,56+8+16,"blowfish_le","cbc-tcrypt", - {{"blowfish_le",56,8,32,0,24}}}, -{1,2,88+16+16,"blowfish_le-aes","cbc-tcrypt", - {{"blowfish_le",56, 8,32,0,0}, - {"aes", 32,16,88,0,32}}}, -{1,3,120+16+16,"serpent-blowfish_le-aes","cbc-tcrypt", - {{"serpent", 32,16, 32,0,0}, - {"blowfish_le",56, 8, 64,0,0}, - {"aes", 32,16,120,0,32}}}, + {{"serpent", 48,16, 32,0}, + {"blowfish_le",64, 8, 64,0}, + {"aes", 48,16,120,0}}},*/ +/* CBC + "outer" CBC (both with whitening) */ +{1,1,32,"aes","cbc-tcrypt", + {{"aes", 32,16,32,0}}}, +{1,1,32,"serpent","cbc-tcrypt", + {{"serpent",32,16,32,0}}}, +{1,1,32,"twofish","cbc-tcrypt", + {{"twofish",32,16,32,0}}}, +{1,2,64,"twofish-aes","cbci-tcrypt", + {{"twofish",32,16,32,0}, + {"aes", 32,16,64,0}}}, +{1,3,96,"serpent-twofish-aes","cbci-tcrypt", + {{"serpent",32,16,32,0}, + {"twofish",32,16,64,0}, + {"aes", 32,16,96,0}}}, +{1,2,64,"aes-serpent","cbci-tcrypt", + {{"aes", 32,16,32,0}, + {"serpent",32,16,64,0}}}, +{1,3,96,"aes-twofish-serpent", "cbci-tcrypt", + {{"aes", 32,16,32,0}, + {"twofish",32,16,64,0}, + {"serpent",32,16,96,0}}}, +{1,2,64,"serpent-twofish", "cbci-tcrypt", + {{"serpent",32,16,32,0}, + {"twofish",32,16,64,0}}}, +{1,1,16,"cast5","cbc-tcrypt", + {{"cast5", 16,8,32,0}}}, +{1,1,24,"des3_ede","cbc-tcrypt", + {{"des3_ede",24,8,32,0}}}, +{1,1,56,"blowfish_le","cbc-tcrypt", + {{"blowfish_le",56,8,32,0}}}, +{1,2,88,"blowfish_le-aes","cbc-tcrypt", + {{"blowfish_le",56, 8,32,0}, + {"aes", 32,16,88,0}}}, +{1,3,120,"serpent-blowfish_le-aes","cbc-tcrypt", + {{"serpent", 32,16, 32,0}, + {"blowfish_le",56, 8, 64,0}, + {"aes", 32,16,120,0}}}, {} }; @@ -203,7 +189,7 @@ static int TCRYPT_hdr_from_disk(struct tcrypt_phdr *hdr, /* Convert header to cpu format */ hdr->d.version = be16_to_cpu(hdr->d.version); - hdr->d.version_tc = be16_to_cpu(hdr->d.version_tc); + hdr->d.version_tc = le16_to_cpu(hdr->d.version_tc); hdr->d.keys_crc32 = be32_to_cpu(hdr->d.keys_crc32); @@ -276,8 +262,8 @@ static int decrypt_blowfish_le_cbc(struct tcrypt_alg *alg, } crypt_cipher_destroy(cipher); - crypt_memzero(iv, bs); - crypt_memzero(iv_old, bs); + memset(iv, 0, bs); + memset(iv_old, 0, bs); return r; } @@ -303,9 +289,6 @@ static void TCRYPT_copy_key(struct tcrypt_alg *alg, const char *mode, memcpy(&out_key[ks2], key, TCRYPT_LRW_IKEY_LEN); } else if (!strncmp(mode, "cbc", 3)) { memcpy(out_key, &key[alg->key_offset], alg->key_size); - /* IV + whitening */ - memcpy(&out_key[alg->key_size], &key[alg->iv_offset], - alg->key_extra_size); } } @@ -343,8 +326,8 @@ static int TCRYPT_decrypt_hdr_one(struct tcrypt_alg *alg, const char *mode, crypt_cipher_destroy(cipher); } - crypt_memzero(backend_key, sizeof(backend_key)); - crypt_memzero(iv, TCRYPT_HDR_IV_LEN); + memset(backend_key, 0, sizeof(backend_key)); + memset(iv, 0, TCRYPT_HDR_IV_LEN); return r; } @@ -394,19 +377,19 @@ out: if (cipher[j]) crypt_cipher_destroy(cipher[j]); - crypt_memzero(iv, bs); - crypt_memzero(iv_old, bs); + memset(iv, 0, bs); + memset(iv_old, 0, bs); return r; } static int TCRYPT_decrypt_hdr(struct crypt_device *cd, struct tcrypt_phdr *hdr, - const char *key, uint32_t flags) + const char *key, int legacy_modes) { struct tcrypt_phdr hdr2; int i, j, r = -EINVAL; for (i = 0; tcrypt_cipher[i].chain_count; i++) { - if (!(flags & CRYPT_TCRYPT_LEGACY_MODES) && tcrypt_cipher[i].legacy) + if (!legacy_modes && tcrypt_cipher[i].legacy) continue; log_dbg("TCRYPT: trying cipher %s-%s", tcrypt_cipher[i].long_name, tcrypt_cipher[i].mode); @@ -438,17 +421,10 @@ static int TCRYPT_decrypt_hdr(struct crypt_device *cd, struct tcrypt_phdr *hdr, r = i; break; } - if ((flags & CRYPT_TCRYPT_VERA_MODES) && - !strncmp(hdr2.d.magic, VCRYPT_HDR_MAGIC, TCRYPT_HDR_MAGIC_LEN)) { - log_dbg("TCRYPT: Signature magic detected (Veracrypt)."); - memcpy(&hdr->e, &hdr2.e, TCRYPT_HDR_LEN); - r = i; - break; - } r = -EPERM; } - crypt_memzero(&hdr2, sizeof(hdr2)); + memset(&hdr2, 0, sizeof(hdr2)); return r; } @@ -485,8 +461,8 @@ static int TCRYPT_pool_keyfile(struct crypt_device *cd, j %= TCRYPT_KEY_POOL_LEN; } - crypt_memzero(&crc, sizeof(crc)); - crypt_memzero(data, TCRYPT_KEYFILE_LEN); + memset(&crc, 0, sizeof(crc)); + memset(data, 0, TCRYPT_KEYFILE_LEN); return 0; } @@ -499,7 +475,7 @@ static int TCRYPT_init_hdr(struct crypt_device *cd, size_t passphrase_size; char *key; unsigned int i, skipped = 0; - int r = -EPERM; + int r = -EINVAL, legacy_modes; if (posix_memalign((void*)&key, crypt_getpagesize(), TCRYPT_HDR_KEY_LEN)) return -ENOMEM; @@ -512,7 +488,7 @@ static int TCRYPT_init_hdr(struct crypt_device *cd, if (params->passphrase_size > TCRYPT_KEY_POOL_LEN) { log_err(cd, _("Maximum TCRYPT passphrase length (%d) exceeded.\n"), TCRYPT_KEY_POOL_LEN); - goto out; + return -EPERM; } /* Calculate pool content from keyfiles */ @@ -526,10 +502,9 @@ static int TCRYPT_init_hdr(struct crypt_device *cd, for (i = 0; i < params->passphrase_size; i++) pwd[i] += params->passphrase[i]; + legacy_modes = params->flags & CRYPT_TCRYPT_LEGACY_MODES ? 1 : 0; for (i = 0; tcrypt_kdf[i].name; i++) { - if (!(params->flags & CRYPT_TCRYPT_LEGACY_MODES) && tcrypt_kdf[i].legacy) - continue; - if (!(params->flags & CRYPT_TCRYPT_VERA_MODES) && tcrypt_kdf[i].veracrypt) + if (!legacy_modes && tcrypt_kdf[i].legacy) continue; /* Derive header key */ log_dbg("TCRYPT: trying KDF: %s-%s-%d.", @@ -548,16 +523,16 @@ static int TCRYPT_init_hdr(struct crypt_device *cd, break; /* Decrypt header */ - r = TCRYPT_decrypt_hdr(cd, hdr, key, params->flags); + r = TCRYPT_decrypt_hdr(cd, hdr, key, legacy_modes); if (r == -ENOENT) { skipped++; - r = -EPERM; + continue; } if (r != -EPERM) break; } - if ((r < 0 && r != -EPERM && skipped && skipped == i) || r == -ENOTSUP) { + if ((skipped && skipped == i) || r == -ENOTSUP) { log_err(cd, _("Required kernel crypto interface not available.\n")); #ifdef ENABLE_AF_ALG log_err(cd, _("Ensure you have algif_skcipher kernel module loaded.\n")); @@ -568,19 +543,18 @@ static int TCRYPT_init_hdr(struct crypt_device *cd, r = TCRYPT_hdr_from_disk(hdr, params, i, r); if (!r) { - log_dbg("TCRYPT: Magic: %s, Header version: %d, req. %d, sector %d" + log_dbg("TCRYPT: Header version: %d, req. %d, sector %d" ", mk_offset %" PRIu64 ", hidden_size %" PRIu64 - ", volume size %" PRIu64, tcrypt_kdf[i].veracrypt ? - VCRYPT_HDR_MAGIC : TCRYPT_HDR_MAGIC, - (int)hdr->d.version, (int)hdr->d.version_tc, (int)hdr->d.sector_size, + ", volume size %" PRIu64, (int)hdr->d.version, + (int)hdr->d.version_tc, (int)hdr->d.sector_size, hdr->d.mk_offset, hdr->d.hidden_volume_size, hdr->d.volume_size); - log_dbg("TCRYPT: Header cipher %s-%s, key size %zu", + log_dbg("TCRYPT: Header cipher %s-%s, key size %d", params->cipher, params->mode, params->key_size); } out: - crypt_memzero(pwd, TCRYPT_KEY_POOL_LEN); + memset(pwd, 0, TCRYPT_KEY_POOL_LEN); if (key) - crypt_memzero(key, TCRYPT_HDR_KEY_LEN); + memset(key, 0, TCRYPT_HDR_KEY_LEN); free(key); return r; } @@ -589,37 +563,20 @@ int TCRYPT_read_phdr(struct crypt_device *cd, struct tcrypt_phdr *hdr, struct crypt_params_tcrypt *params) { - struct device *base_device, *device = crypt_metadata_device(cd); + struct device *device = crypt_metadata_device(cd); ssize_t hdr_size = sizeof(struct tcrypt_phdr); - char *base_device_path; int devfd = 0, r, bs; assert(sizeof(struct tcrypt_phdr) == 512); - log_dbg("Reading TCRYPT header of size %zu bytes from device %s.", + log_dbg("Reading TCRYPT header of size %d bytes from device %s.", hdr_size, device_path(device)); bs = device_block_size(device); if (bs < 0) return bs; - if (params->flags & CRYPT_TCRYPT_SYSTEM_HEADER && - crypt_dev_is_partition(device_path(device))) { - base_device_path = crypt_get_base_device(device_path(device)); - - log_dbg("Reading TCRYPT system header from device %s.", base_device_path ?: "?"); - if (!base_device_path) - return -EINVAL; - - r = device_alloc(&base_device, base_device_path); - if (r < 0) - return r; - devfd = device_open(base_device, O_RDONLY); - free(base_device_path); - device_free(base_device); - } else - devfd = device_open(device, O_RDONLY); - + devfd = device_open(device, O_RDONLY); if (devfd == -1) { log_err(cd, _("Cannot open device %s.\n"), device_path(device)); return -EINVAL; @@ -630,6 +587,10 @@ int TCRYPT_read_phdr(struct crypt_device *cd, if (lseek(devfd, TCRYPT_HDR_SYSTEM_OFFSET, SEEK_SET) >= 0 && read_blockwise(devfd, bs, hdr, hdr_size) == hdr_size) { r = TCRYPT_init_hdr(cd, hdr, params); + if (r == -EPERM && crypt_dev_is_partition(device_path(device))) + log_std(cd, _("WARNING: device %s is a partition, for TCRYPT " + "system encryption you usually need to use " + "whole block device path.\n"), device_path(device)); } } else if (params->flags & CRYPT_TCRYPT_HIDDEN_HEADER) { if (params->flags & CRYPT_TCRYPT_BACKUP_HEADER) { @@ -684,7 +645,6 @@ int TCRYPT_activate(struct crypt_device *cd, struct device *device = NULL, *part_device = NULL; unsigned int i; int r; - uint32_t req_flags; struct tcrypt_algs *algs; enum devcheck device_check; struct crypt_dm_active_device dmd = { @@ -714,45 +674,36 @@ int TCRYPT_activate(struct crypt_device *cd, return -ENOTSUP; } - if (strstr(params->mode, "-tcw")) - req_flags = DM_TCW_SUPPORTED; - else - req_flags = DM_PLAIN64_SUPPORTED; - algs = TCRYPT_get_algs(params->cipher, params->mode); if (!algs) return -EINVAL; - if (params->flags & CRYPT_TCRYPT_SYSTEM_HEADER) - dmd.size = 0; - else if (params->flags & CRYPT_TCRYPT_HIDDEN_HEADER) + if (params->flags & CRYPT_TCRYPT_HIDDEN_HEADER) dmd.size = hdr->d.hidden_volume_size / hdr->d.sector_size; else dmd.size = hdr->d.volume_size / hdr->d.sector_size; - if (dmd.flags & CRYPT_ACTIVATE_SHARED) + /* + * System encryption use the whole device mapping, there can + * be active partitions. + * FIXME: This will allow multiple mappings unexpectedly. + */ + if ((dmd.flags & CRYPT_ACTIVATE_SHARED) || + (params->flags & CRYPT_TCRYPT_SYSTEM_HEADER)) device_check = DEV_SHARED; else device_check = DEV_EXCL; if ((params->flags & CRYPT_TCRYPT_SYSTEM_HEADER) && - !crypt_dev_is_partition(device_path(dmd.data_device))) { - part_path = crypt_get_partition_device(device_path(dmd.data_device), - dmd.u.crypt.offset, dmd.size); - if (part_path) { - if (!device_alloc(&part_device, part_path)) { - log_verbose(cd, _("Activating TCRYPT system encryption for partition %s.\n"), - part_path); - dmd.data_device = part_device; - dmd.u.crypt.offset = 0; - } - free(part_path); - } else - /* - * System encryption use the whole device mapping, there can - * be active partitions. - */ - device_check = DEV_SHARED; + (part_path = crypt_get_partition_device(device_path(dmd.data_device), + dmd.u.crypt.offset, dmd.size))) { + if (!device_alloc(&part_device, part_path)) { + log_verbose(cd, _("Activating TCRYPT system encryption for partition %s.\n"), + part_path); + dmd.data_device = part_device; + dmd.u.crypt.offset = 0; + } + free(part_path); } r = device_block_adjust(cd, dmd.data_device, device_check, @@ -761,8 +712,7 @@ int TCRYPT_activate(struct crypt_device *cd, return r; /* Frome here, key size for every cipher must be the same */ - dmd.u.crypt.vk = crypt_alloc_volume_key(algs->cipher[0].key_size + - algs->cipher[0].key_extra_size, NULL); + dmd.u.crypt.vk = crypt_alloc_volume_key(algs->cipher[0].key_size, NULL); if (!dmd.u.crypt.vk) return -ENOMEM; @@ -802,8 +752,8 @@ int TCRYPT_activate(struct crypt_device *cd, break; } - if (r < 0 && !(dm_flags() & req_flags)) { - log_err(cd, _("Kernel doesn't support TCRYPT compatible mapping.\n")); + if (r < 0 && !(dm_flags() & DM_PLAIN64_SUPPORTED)) { + log_err(cd, _("Kernel doesn't support plain64 IV.\n")); r = -ENOTSUP; } @@ -957,11 +907,8 @@ uint64_t TCRYPT_get_data_offset(struct crypt_device *cd, goto hdr_offset; /* Mapping through whole device, not partition! */ - if (params->flags & CRYPT_TCRYPT_SYSTEM_HEADER) { - if (crypt_dev_is_partition(device_path(crypt_metadata_device(cd)))) - return 0; + if (params->flags & CRYPT_TCRYPT_SYSTEM_HEADER) goto hdr_offset; - } if (params->mode && !strncmp(params->mode, "xts", 3)) { if (hdr->d.version < 3) @@ -991,21 +938,15 @@ hdr_offset: uint64_t TCRYPT_get_iv_offset(struct crypt_device *cd, struct tcrypt_phdr *hdr, - struct crypt_params_tcrypt *params) + struct crypt_params_tcrypt *params +) { - uint64_t iv_offset; - if (params->mode && !strncmp(params->mode, "xts", 3)) - iv_offset = TCRYPT_get_data_offset(cd, hdr, params); + return TCRYPT_get_data_offset(cd, hdr, params); else if (params->mode && !strncmp(params->mode, "lrw", 3)) - iv_offset = 0; - else - iv_offset = hdr->d.mk_offset / hdr->d.sector_size; + return 0; - if (params->flags & CRYPT_TCRYPT_SYSTEM_HEADER) - iv_offset += crypt_dev_partition_offset(device_path(crypt_metadata_device(cd))); - - return iv_offset; + return hdr->d.mk_offset / hdr->d.sector_size; } int TCRYPT_get_volume_key(struct crypt_device *cd, @@ -1042,13 +983,11 @@ int TCRYPT_dump(struct crypt_device *cd, struct tcrypt_phdr *hdr, struct crypt_params_tcrypt *params) { - log_std(cd, "%s header information for %s\n", - hdr->d.magic[0] == 'T' ? "TCRYPT" : "VERACRYPT", + log_std(cd, "TCRYPT header information for %s\n", device_path(crypt_metadata_device(cd))); if (hdr->d.version) { log_std(cd, "Version: \t%d\n", hdr->d.version); - log_std(cd, "Driver req.:\t%x.%x\n", hdr->d.version_tc >> 8, - hdr->d.version_tc & 0xFF); + log_std(cd, "Driver req.:\t%d\n", hdr->d.version_tc); log_std(cd, "Sector size:\t%" PRIu32 "\n", hdr->d.sector_size); log_std(cd, "MK offset:\t%" PRIu64 "\n", hdr->d.mk_offset); @@ -1056,6 +995,6 @@ int TCRYPT_dump(struct crypt_device *cd, } log_std(cd, "Cipher chain:\t%s\n", params->cipher); log_std(cd, "Cipher mode:\t%s\n", params->mode); - log_std(cd, "MK bits: \t%zu\n", params->key_size * 8); + log_std(cd, "MK bits: \t%d\n", params->key_size * 8); return 0; } diff --git a/lib/tcrypt/tcrypt.h b/lib/tcrypt/tcrypt.h index 21ecba9..960d1d4 100644 --- a/lib/tcrypt/tcrypt.h +++ b/lib/tcrypt/tcrypt.h @@ -2,7 +2,7 @@ * TCRYPT (TrueCrypt-compatible) header defitinion * * Copyright (C) 2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2012-2014, Milan Broz + * Copyright (C) 2012-2013, Milan Broz * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -29,7 +29,6 @@ #define TCRYPT_HDR_LEN 448 #define TCRYPT_HDR_KEY_LEN 192 #define TCRYPT_HDR_MAGIC "TRUE" -#define VCRYPT_HDR_MAGIC "VERA" #define TCRYPT_HDR_MAGIC_LEN 4 #define TCRYPT_HDR_HIDDEN_OFFSET_OLD -1536 diff --git a/lib/utils.c b/lib/utils.c index a5aec70..7bc833a 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -1,7 +1,7 @@ /* * utils - miscellaneous device utilities for cryptsetup * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. * Copyright (C) 2009-2012, Milan Broz diff --git a/lib/utils_benchmark.c b/lib/utils_benchmark.c index 1e4469b..bb2319a 100644 --- a/lib/utils_benchmark.c +++ b/lib/utils_benchmark.c @@ -2,7 +2,7 @@ * libcryptsetup - cryptsetup library, cipher bechmark * * Copyright (C) 2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2012-2013, Milan Broz + * Copyright (C) 2012, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -21,7 +21,8 @@ #include #include -#include +#include +#include #include "internal.h" @@ -31,12 +32,6 @@ */ #define CIPHER_BLOCK_BYTES 65536 -/* - * If the measured value is lower, encrypted buffer is probably too small - * and calculated values are not reliable. - */ -#define CIPHER_TIME_MIN_MS 0.001 - /* * The whole test depends on Linux kernel usermode crypto API for now. * (The same implementations are used in dm-crypt though.) @@ -52,15 +47,19 @@ struct cipher_perf { size_t buffer_size; }; -static int time_ms(struct timespec *start, struct timespec *end, double *ms) +static long time_ms(struct rusage *start, struct rusage *end) { - double start_ms, end_ms; + long ms = 0; - start_ms = start->tv_sec * 1000.0 + start->tv_nsec / (1000.0 * 1000); - end_ms = end->tv_sec * 1000.0 + end->tv_nsec / (1000.0 * 1000); + /* For kernel backend, we need to measure only tim in kernel. + ms = (end->ru_utime.tv_sec - start->ru_utime.tv_sec) * 1000; + ms += (end->ru_utime.tv_usec - start->ru_utime.tv_usec) / 1000; + */ - *ms = end_ms - start_ms; - return 0; + ms += (end->ru_stime.tv_sec - start->ru_stime.tv_sec) * 1000; + ms += (end->ru_stime.tv_usec - start->ru_stime.tv_usec) / 1000; + + return ms; } static int cipher_perf_one(struct cipher_perf *cp, char *buf, @@ -99,39 +98,26 @@ static int cipher_perf_one(struct cipher_perf *cp, char *buf, return r; } -static int cipher_measure(struct cipher_perf *cp, char *buf, - size_t buf_size, int encrypt, double *ms) +static long cipher_measure(struct cipher_perf *cp, char *buf, + size_t buf_size, int encrypt) { - struct timespec start, end; + struct rusage rstart, rend; int r; - /* - * Using getrusage would be better here but the precision - * is not adequate, so better stick with CLOCK_MONOTONIC - */ - if (clock_gettime(CLOCK_MONOTONIC, &start) < 0) + if (getrusage(RUSAGE_SELF, &rstart) < 0) return -EINVAL; r = cipher_perf_one(cp, buf, buf_size, encrypt); if (r < 0) return r; - if (clock_gettime(CLOCK_MONOTONIC, &end) < 0) + if (getrusage(RUSAGE_SELF, &rend) < 0) return -EINVAL; - r = time_ms(&start, &end, ms); - if (r < 0) - return r; - - if (*ms < CIPHER_TIME_MIN_MS) { - log_dbg("Measured cipher runtime (%1.6f) is too low.", *ms); - return -ERANGE; - } - - return 0; + return time_ms(&rstart, &rend); } -static double speed_mbs(unsigned long bytes, double ms) +static double speed_mbs(unsigned long bytes, unsigned long ms) { double speed = bytes, s = ms / 1000.; @@ -141,32 +127,32 @@ static double speed_mbs(unsigned long bytes, double ms) static int cipher_perf(struct cipher_perf *cp, double *encryption_mbs, double *decryption_mbs) { - double ms_enc, ms_dec, ms; - int r, repeat_enc, repeat_dec; + long ms_enc, ms_dec, ms; + int repeat_enc, repeat_dec; void *buf = NULL; if (posix_memalign(&buf, crypt_getpagesize(), cp->buffer_size)) return -ENOMEM; - ms_enc = 0.0; + ms_enc = 0; repeat_enc = 1; - while (ms_enc < 1000.0) { - r = cipher_measure(cp, buf, cp->buffer_size, 1, &ms); - if (r < 0) { + while (ms_enc < 1000) { + ms = cipher_measure(cp, buf, cp->buffer_size, 1); + if (ms < 0) { free(buf); - return r; + return (int)ms; } ms_enc += ms; repeat_enc++; } - ms_dec = 0.0; + ms_dec = 0; repeat_dec = 1; - while (ms_dec < 1000.0) { - r = cipher_measure(cp, buf, cp->buffer_size, 0, &ms); - if (r < 0) { + while (ms_dec < 1000) { + ms = cipher_measure(cp, buf, cp->buffer_size, 0); + if (ms < 0) { free(buf); - return r; + return (int)ms; } ms_dec += ms; repeat_dec++; diff --git a/lib/utils_crypt.c b/lib/utils_crypt.c index 5cfe477..9fc05ac 100644 --- a/lib/utils_crypt.c +++ b/lib/utils_crypt.c @@ -81,18 +81,6 @@ int crypt_parse_name_and_mode(const char *s, char *cipher, int *key_nums, return -EINVAL; } -/* - * Replacement for memset(s, 0, n) on stack that can be optimized out - * Also used in safe allocations for explicit memory wipe. - */ -void crypt_memzero(void *s, size_t n) -{ - volatile uint8_t *p = (volatile uint8_t *)s; - - while(n--) - *p++ = 0; -} - /* safe allocations */ void *crypt_safe_alloc(size_t size) { @@ -106,7 +94,7 @@ void *crypt_safe_alloc(size_t size) return NULL; alloc->size = size; - crypt_memzero(&alloc->data, size); + memset(&alloc->data, 0, size); /* coverity[leaked_storage] */ return &alloc->data; @@ -122,7 +110,7 @@ void crypt_safe_free(void *data) alloc = (struct safe_allocation *) ((char *)data - offsetof(struct safe_allocation, data)); - crypt_memzero(data, alloc->size); + memset(data, 0, alloc->size); alloc->size = 0x55aa55aa; free(alloc); @@ -169,7 +157,7 @@ static int untimed_read(int fd, char *pass, size_t maxlen) static int timed_read(int fd, char *pass, size_t maxlen, long timeout) { struct timeval t; - fd_set fds = {}; /* Just to avoid scan-build false report for FD_SET */ + fd_set fds; int failed = -1; FD_ZERO(&fds); @@ -188,18 +176,16 @@ static int interactive_pass(const char *prompt, char *pass, size_t maxlen, { struct termios orig, tmp; int failed = -1; - int infd, outfd; + int infd = STDIN_FILENO, outfd; if (maxlen < 1) - return failed; + goto out_err; /* Read and write to /dev/tty if available */ - infd = open("/dev/tty", O_RDWR); - if (infd == -1) { + if ((infd = outfd = open("/dev/tty", O_RDWR)) == -1) { infd = STDIN_FILENO; outfd = STDERR_FILENO; - } else - outfd = infd; + } if (tcgetattr(infd, &orig)) goto out_err; diff --git a/lib/utils_crypt.h b/lib/utils_crypt.h index 3da4842..22bd901 100644 --- a/lib/utils_crypt.h +++ b/lib/utils_crypt.h @@ -45,8 +45,6 @@ void *crypt_safe_alloc(size_t size); void crypt_safe_free(void *data); void *crypt_safe_realloc(void *data, size_t size); -void crypt_memzero(void *s, size_t n); - ssize_t crypt_hex_to_bytes(const char *hex, char **result, int safe_alloc); int crypt_string_to_size(struct crypt_device *cd, const char *s, uint64_t *size); diff --git a/lib/utils_device.c b/lib/utils_device.c index 46c2a0f..9b53f1d 100644 --- a/lib/utils_device.c +++ b/lib/utils_device.c @@ -1,10 +1,10 @@ /* * device backend utilities * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth - * Copyright (C) 2009-2015, Red Hat, Inc. All rights reserved. - * Copyright (C) 2009-2015, Milan Broz + * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. + * Copyright (C) 2009-2012, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -38,106 +38,20 @@ struct device { char *file_path; int loop_fd; - int o_direct:1; int init_done:1; }; -static int device_block_size_fd(int fd, size_t *min_size) +static int device_ready(const char *device) { + int devfd, r = 0; struct stat st; - int bsize = 0, r = -EINVAL; - - if (fstat(fd, &st) < 0) - return -EINVAL; - - if (S_ISREG(st.st_mode)) - r = (int)crypt_getpagesize(); - else if (ioctl(fd, BLKSSZGET, &bsize) >= 0) - r = bsize; - else - r = -EINVAL; - - if (r < 0 || !min_size) - return r; - - if (S_ISREG(st.st_mode)) { - /* file can be empty as well */ - if (st.st_size > bsize) - *min_size = bsize; - else - *min_size = st.st_size; - } else { - /* block device must have at least one block */ - *min_size = bsize; - } - - return bsize; -} - -static int device_read_test(int devfd) -{ - char buffer[512]; - int blocksize, r = -EIO; - size_t minsize = 0; - - blocksize = device_block_size_fd(devfd, &minsize); - - if (blocksize < 0) - return -EINVAL; - - if (minsize == 0) - return 0; - - if (minsize > sizeof(buffer)) - minsize = sizeof(buffer); - - if (read_blockwise(devfd, blocksize, buffer, minsize) == (ssize_t)minsize) - r = 0; - - crypt_memzero(buffer, sizeof(buffer)); - return r; -} - -/* - * The direct-io is always preferred. The header is usually mapped to the same - * device and can be accessed when the rest of device is mapped to data device. - * Using dirct-io encsures that we do not mess with data in cache. - * (But proper alignment should prevent this in the first place.) - * The read test is needed to detect broken configurations (seen with remote - * block devices) that allow open with direct-io but then fails on read. - */ -static int device_ready(struct device *device, int check_directio) -{ - int devfd = -1, r = 0; - struct stat st; - - device->o_direct = 0; - if (check_directio) { - log_dbg("Trying to open and read device %s with direct-io.", - device_path(device)); - devfd = open(device_path(device), O_RDONLY | O_DIRECT); - if (devfd >= 0) { - if (device_read_test(devfd) == 0) { - device->o_direct = 1; - } else { - close(devfd); - devfd = -1; - } - } - } + log_dbg("Trying to open and read device %s.", device); + devfd = open(device, O_RDONLY); if (devfd < 0) { - log_dbg("Trying to open device %s without direct-io.", - device_path(device)); - devfd = open(device_path(device), O_RDONLY); - } - - if (devfd < 0) { - log_err(NULL, _("Device %s doesn't exist or access denied.\n"), - device_path(device)); + log_err(NULL, _("Device %s doesn't exist or access denied.\n"), device); return -EINVAL; } - if (fstat(devfd, &st) < 0) r = -EINVAL; else if (!S_ISBLK(st.st_mode)) @@ -151,14 +65,12 @@ int device_open(struct device *device, int flags) { int devfd; - flags |= O_SYNC; - if (device->o_direct) - flags |= O_DIRECT; - - devfd = open(device_path(device), flags); - - if (devfd < 0) - log_dbg("Cannot open device %s.", device_path(device)); + devfd = open(device_path(device), flags | O_DIRECT | O_SYNC); + if (devfd < 0 && errno == EINVAL) { + log_dbg("Trying to open device %s without direct-io.", + device_path(device)); + devfd = open(device_path(device), flags | O_SYNC); + } return devfd; } @@ -178,24 +90,24 @@ int device_alloc(struct device **device, const char *path) return -ENOMEM; memset(dev, 0, sizeof(struct device)); - dev->path = strdup(path); - if (!dev->path) { - free(dev); - return -ENOMEM; - } dev->loop_fd = -1; - r = device_ready(dev, 1); + r = device_ready(path); if (!r) { dev->init_done = 1; } else if (r == -ENOTBLK) { /* alloc loop later */ } else if (r < 0) { - free(dev->path); free(dev); return -ENOTBLK; } + dev->path = strdup(path); + if (!dev->path) { + free(dev); + return -ENOMEM; + } + *device = dev; return 0; } @@ -296,23 +208,27 @@ out: int device_block_size(struct device *device) { - int fd, r = -EINVAL; + struct stat st; + int fd, bsize = 0, r = -EINVAL; if (!device) return 0; - if (device->file_path) - return (int)crypt_getpagesize(); - fd = open(device->path, O_RDONLY); if(fd < 0) return -EINVAL; - r = device_block_size_fd(fd, NULL); + if (fstat(fd, &st) < 0) + goto out; - if (r <= 0) - log_dbg("Cannot get block size for device %s.", device_path(device)); + if (S_ISREG(st.st_mode)) { + r = (int)crypt_getpagesize(); + goto out; + } + if (ioctl(fd, BLKSSZGET, &bsize) >= 0) + r = bsize; +out: close(fd); return r; } @@ -417,7 +333,7 @@ out: static int device_internal_prepare(struct crypt_device *cd, struct device *device) { - char *loop_device, *file_path = NULL; + char *loop_device; int r, loop_fd, readonly = 0; if (device->init_done) @@ -443,19 +359,15 @@ static int device_internal_prepare(struct crypt_device *cd, struct device *devic return -EINVAL; } - file_path = device->path; - device->path = loop_device; - - r = device_ready(device, device->o_direct); + r = device_ready(loop_device); if (r < 0) { - device->path = file_path; - crypt_loop_detach(loop_device); free(loop_device); return r; } device->loop_fd = loop_fd; - device->file_path = file_path; + device->file_path = device->path; + device->path = loop_device; device->init_done = 1; return 0; diff --git a/lib/utils_devpath.c b/lib/utils_devpath.c index 963785a..e08a87c 100644 --- a/lib/utils_devpath.c +++ b/lib/utils_devpath.c @@ -1,7 +1,7 @@ /* * devname - search for device name * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. * Copyright (C) 2009-2013, Milan Broz @@ -236,24 +236,6 @@ int crypt_dev_is_partition(const char *dev_path) return val ? 1 : 0; } -uint64_t crypt_dev_partition_offset(const char *dev_path) -{ - uint64_t val; - struct stat st; - - if (!crypt_dev_is_partition(dev_path)) - return 0; - - if (stat(dev_path, &st) < 0) - return 0; - - if (!_sysfs_get_uint64(major(st.st_rdev), minor(st.st_rdev), - &val, "start")) - return 0; - - return val; -} - /* Try to find partition which match offset and size on top level device */ char *crypt_get_partition_device(const char *dev_path, uint64_t offset, uint64_t size) { @@ -323,42 +305,3 @@ char *crypt_get_partition_device(const char *dev_path, uint64_t offset, uint64_t return result; } - -/* Try to find base device from partition */ -char *crypt_get_base_device(const char *dev_path) -{ - char link[PATH_MAX], path[PATH_MAX], part_path[PATH_MAX], *devname; - struct stat st; - ssize_t len; - - if (!crypt_dev_is_partition(dev_path)) - return NULL; - - if (stat(dev_path, &st) < 0) - return NULL; - - if (snprintf(path, sizeof(path), "/sys/dev/block/%d:%d", - major(st.st_rdev), minor(st.st_rdev)) < 0) - return NULL; - - len = readlink(path, link, sizeof(link) - 1); - if (len < 0) - return NULL; - - /* Get top level disk name for sysfs search */ - link[len] = '\0'; - devname = strrchr(link, '/'); - if (!devname) - return NULL; - *devname = '\0'; - devname = strrchr(link, '/'); - if (!devname) - return NULL; - devname++; - - if (dm_is_dm_kernel_name(devname)) - return NULL; - - snprintf(part_path, sizeof(part_path), "/dev/%s", devname); - return strdup(part_path); -} diff --git a/lib/utils_dm.h b/lib/utils_dm.h index cd8b653..63e972b 100644 --- a/lib/utils_dm.h +++ b/lib/utils_dm.h @@ -1,10 +1,10 @@ /* * libdevmapper - device-mapper backend for cryptsetup * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth - * Copyright (C) 2009-2015, Red Hat, Inc. All rights reserved. - * Copyright (C) 2009-2015, Milan Broz + * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. + * Copyright (C) 2009-2012, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -39,10 +39,6 @@ struct device; #define DM_PLAIN64_SUPPORTED (1 << 3) /* plain64 IV */ #define DM_DISCARDS_SUPPORTED (1 << 4) /* discards/TRIM option is supported */ #define DM_VERITY_SUPPORTED (1 << 5) /* dm-verity target supported */ -#define DM_TCW_SUPPORTED (1 << 6) /* tcw (TCRYPT CBC with whitening) */ -#define DM_SAME_CPU_CRYPT_SUPPORTED (1 << 7) /* same_cpu_crypt */ -#define DM_SUBMIT_FROM_CRYPT_CPUS_SUPPORTED (1 << 8) /* submit_from_crypt_cpus */ - uint32_t dm_flags(void); #define DM_ACTIVE_DEVICE (1 << 0) diff --git a/lib/utils_fips.c b/lib/utils_fips.c index d5a18d7..0391d61 100644 --- a/lib/utils_fips.c +++ b/lib/utils_fips.c @@ -1,7 +1,7 @@ /* * FIPS mode utilities * - * Copyright (C) 2011-2015, Red Hat, Inc. All rights reserved. + * Copyright (C) 2011-2012, Red Hat, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -18,29 +18,45 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include #include -#include -#include +#include "libcryptsetup.h" +#include "nls.h" #include "utils_fips.h" #if !ENABLE_FIPS int crypt_fips_mode(void) { return 0; } +void crypt_fips_libcryptsetup_check(struct crypt_device *cd) {} +void crypt_fips_self_check(struct crypt_device *cd) {} #else -static int kernel_fips_mode(void) +#include + +int crypt_fips_mode(void) +{ + return FIPSCHECK_kernel_fips_mode(); +} + +static void crypt_fips_verify(struct crypt_device *cd, + const char *name, const char *function) { - int fd; - char buf[1] = ""; + if (!crypt_fips_mode()) + return; - if ((fd = open("/proc/sys/crypto/fips_enabled", O_RDONLY)) >= 0) { - while (read(fd, buf, sizeof(buf)) < 0 && errno == EINTR); - close(fd); + if (!FIPSCHECK_verify(name, function)) { + crypt_log(cd, CRYPT_LOG_ERROR, _("FIPS checksum verification failed.\n")); + _exit(EXIT_FAILURE); } - return (buf[0] == '1') ? 1 : 0; + crypt_log(cd, CRYPT_LOG_VERBOSE, _("Running in FIPS mode.\n")); } -int crypt_fips_mode(void) +void crypt_fips_libcryptsetup_check(struct crypt_device *cd) +{ + crypt_fips_verify(cd, LIBCRYPTSETUP_VERSION_FIPS, "crypt_init"); +} + +void crypt_fips_self_check(struct crypt_device *cd) { - return kernel_fips_mode() && !access("/etc/system-fips", F_OK); + crypt_fips_verify(cd, NULL, NULL); } #endif /* ENABLE_FIPS */ diff --git a/lib/utils_fips.h b/lib/utils_fips.h index 63765c4..d4d2239 100644 --- a/lib/utils_fips.h +++ b/lib/utils_fips.h @@ -1,7 +1,7 @@ /* * FIPS mode utilities * - * Copyright (C) 2011-2015, Red Hat, Inc. All rights reserved. + * Copyright (C) 2011-2012, Red Hat, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -21,6 +21,10 @@ #ifndef _UTILS_FIPS_H #define _UTILS_FIPS_H +struct crypt_device; + int crypt_fips_mode(void); +void crypt_fips_libcryptsetup_check(struct crypt_device *cd); +void crypt_fips_self_check(struct crypt_device *cd); #endif /* _UTILS_FIPS_H */ diff --git a/lib/verity/Makefile.in b/lib/verity/Makefile.in deleted file mode 100644 index bcb42e8..0000000 --- a/lib/verity/Makefile.in +++ /dev/null @@ -1,655 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = lib/verity -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(top_srcdir)/depcomp -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libverity_la_LIBADD = -am_libverity_la_OBJECTS = libverity_la-verity_hash.lo \ - libverity_la-verity.lo -libverity_la_OBJECTS = $(am_libverity_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -libverity_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libverity_la_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libverity_la_SOURCES) -DIST_SOURCES = $(libverity_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -moduledir = $(libdir)/cryptsetup -noinst_LTLIBRARIES = libverity.la -libverity_la_CFLAGS = -Wall $(AM_CFLAGS) @CRYPTO_CFLAGS@ -libverity_la_SOURCES = \ - verity_hash.c \ - verity.c \ - verity.h - -AM_CPPFLAGS = -include config.h \ - -I$(top_srcdir)/lib \ - -I$(top_srcdir)/lib/crypto_backend - -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .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 ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/verity/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/verity/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libverity.la: $(libverity_la_OBJECTS) $(libverity_la_DEPENDENCIES) $(EXTRA_libverity_la_DEPENDENCIES) - $(AM_V_CCLD)$(libverity_la_LINK) $(libverity_la_OBJECTS) $(libverity_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libverity_la-verity.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libverity_la-verity_hash.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libverity_la-verity_hash.lo: verity_hash.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libverity_la_CFLAGS) $(CFLAGS) -MT libverity_la-verity_hash.lo -MD -MP -MF $(DEPDIR)/libverity_la-verity_hash.Tpo -c -o libverity_la-verity_hash.lo `test -f 'verity_hash.c' || echo '$(srcdir)/'`verity_hash.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libverity_la-verity_hash.Tpo $(DEPDIR)/libverity_la-verity_hash.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='verity_hash.c' object='libverity_la-verity_hash.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libverity_la_CFLAGS) $(CFLAGS) -c -o libverity_la-verity_hash.lo `test -f 'verity_hash.c' || echo '$(srcdir)/'`verity_hash.c - -libverity_la-verity.lo: verity.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libverity_la_CFLAGS) $(CFLAGS) -MT libverity_la-verity.lo -MD -MP -MF $(DEPDIR)/libverity_la-verity.Tpo -c -o libverity_la-verity.lo `test -f 'verity.c' || echo '$(srcdir)/'`verity.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libverity_la-verity.Tpo $(DEPDIR)/libverity_la-verity.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='verity.c' object='libverity_la-verity.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libverity_la_CFLAGS) $(CFLAGS) -c -o libverity_la-verity.lo `test -f 'verity.c' || echo '$(srcdir)/'`verity.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/lib/verity/verity.c b/lib/verity/verity.c index 5108e9e..c2b8405 100644 --- a/lib/verity/verity.c +++ b/lib/verity/verity.c @@ -35,7 +35,7 @@ #define VERITY_SIGNATURE "verity\0\0" -/* https://gitlab.com/cryptsetup/cryptsetup/wikis/DMVerity#verity-superblock-format */ +/* http://code.google.com/p/cryptsetup/wiki/DMVerity#Verity_superblock_format */ struct verity_sb { uint8_t signature[8]; /* "verity\0\0" */ uint32_t version; /* superblock version */ @@ -63,11 +63,11 @@ int VERITY_read_sb(struct crypt_device *cd, ssize_t hdr_size = sizeof(struct verity_sb); int devfd = 0, sb_version; - log_dbg("Reading VERITY header of size %zu on device %s, offset %" PRIu64 ".", + log_dbg("Reading VERITY header of size %u on device %s, offset %" PRIu64 ".", sizeof(struct verity_sb), device_path(device), sb_offset); if (params->flags & CRYPT_VERITY_NO_HEADER) { - log_err(cd, _("Verity device %s doesn't use on-disk header.\n"), + log_err(cd, _("Verity device doesn't use on-disk header.\n"), device_path(device)); return -EINVAL; } @@ -159,17 +159,17 @@ int VERITY_write_sb(struct crypt_device *cd, uuid_t uuid; int r, devfd = 0; - log_dbg("Updating VERITY header of size %zu on device %s, offset %" PRIu64 ".", + log_dbg("Updating VERITY header of size %u on device %s, offset %" PRIu64 ".", sizeof(struct verity_sb), device_path(device), sb_offset); if (!uuid_string || uuid_parse(uuid_string, uuid) == -1) { - log_err(cd, _("Wrong VERITY UUID format provided on device %s.\n"), + log_err(cd, _("Wrong VERITY UUID format provided.\n"), device_path(device)); return -EINVAL; } if (params->flags & CRYPT_VERITY_NO_HEADER) { - log_err(cd, _("Verity device %s doesn't use on-disk header.\n"), + log_err(cd, _("Verity device doesn't use on-disk header.\n"), device_path(device)); return -EINVAL; } diff --git a/lib/volumekey.c b/lib/volumekey.c index e7150aa..9a80529 100644 --- a/lib/volumekey.c +++ b/lib/volumekey.c @@ -35,7 +35,7 @@ struct volume_key *crypt_alloc_volume_key(unsigned keylength, const char *key) if (key) memcpy(&vk->key, key, keylength); else - crypt_memzero(&vk->key, keylength); + memset(&vk->key, 0, keylength); return vk; } @@ -43,7 +43,7 @@ struct volume_key *crypt_alloc_volume_key(unsigned keylength, const char *key) void crypt_free_volume_key(struct volume_key *vk) { if (vk) { - crypt_memzero(vk->key, vk->keylength); + memset(vk->key, 0, vk->keylength); vk->keylength = 0; free(vk); } diff --git a/ltmain.sh b/ltmain.sh deleted file mode 100644 index bffda54..0000000 --- a/ltmain.sh +++ /dev/null @@ -1,9661 +0,0 @@ - -# libtool (GNU libtool) 2.4.2 -# Written by Gordon Matzigkeit , 1996 - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, -# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Libtool; see the file COPYING. If not, a copy -# can be downloaded from http://www.gnu.org/licenses/gpl.html, -# or obtained by writing to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -# Usage: $progname [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 -# --mode=MODE use operation mode MODE -# --preserve-dup-deps don't remove duplicate dependency libraries -# --quiet, --silent don't print informational messages -# --no-quiet, --no-silent -# print informational messages (default) -# --no-warn don't display warning messages -# --tag=TAG use configuration variables from tag TAG -# -v, --verbose print more informational messages than default -# --no-verbose don't print the extra informational messages -# --version print version information -# -h, --help, --help-all print short, long, or detailed help message -# -# MODE must be one of the following: -# -# clean remove files from the build directory -# compile compile a source file into a libtool object -# execute automatically set library path, then run a program -# finish complete the installation of libtool libraries -# install install libraries or executables -# link create a library or an executable -# uninstall remove libraries from an installed directory -# -# MODE-ARGS vary depending on the MODE. When passed as first option, -# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. -# Try `$progname --help --mode=MODE' for a more detailed description of MODE. -# -# When reporting a bug, please describe a test case to reproduce it and -# include the following information: -# -# host-triplet: $host -# shell: $SHELL -# compiler: $LTCC -# compiler flags: $LTCFLAGS -# linker: $LD (gnu? $with_gnu_ld) -# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.11 -# automake: $automake_version -# autoconf: $autoconf_version -# -# Report bugs to . -# GNU libtool home page: . -# General help using GNU software: . - -PROGRAM=libtool -PACKAGE=libtool -VERSION="2.4.2 Debian-2.4.2-1.11" -TIMESTAMP="" -package_revision=1.3337 - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac -fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' -} - -# NLS nuisances: We save the old values to restore during execute mode. -lt_user_locale= -lt_safe_locale= -for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES -do - eval "if test \"\${$lt_var+set}\" = set; then - save_$lt_var=\$$lt_var - $lt_var=C - export $lt_var - lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" - lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" - fi" -done -LC_ALL=C -LANGUAGE=C -export LANGUAGE LC_ALL - -$lt_unset CDPATH - - -# 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" - - - -: ${CP="cp -f"} -test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} -: ${MAKE="make"} -: ${MKDIR="mkdir"} -: ${MV="mv -f"} -: ${RM="rm -f"} -: ${SHELL="${CONFIG_SHELL-/bin/sh}"} -: ${Xsed="$SED -e 1s/^X//"} - -# Global variables: -EXIT_SUCCESS=0 -EXIT_FAILURE=1 -EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. -EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. - -exit_status=$EXIT_SUCCESS - -# Make sure IFS has a sensible default -lt_nl=' -' -IFS=" $lt_nl" - -dirname="s,/[^/]*$,," -basename="s,^.*/,," - -# func_dirname file append nondir_replacement -# Compute the dirname of FILE. If nonempty, add APPEND to the result, -# otherwise set result to NONDIR_REPLACEMENT. -func_dirname () -{ - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` - if test "X$func_dirname_result" = "X${1}"; then - func_dirname_result="${3}" - else - func_dirname_result="$func_dirname_result${2}" - fi -} # func_dirname may be replaced by extended shell implementation - - -# func_basename file -func_basename () -{ - func_basename_result=`$ECHO "${1}" | $SED "$basename"` -} # func_basename may be replaced by extended shell implementation - - -# func_dirname_and_basename file append nondir_replacement -# perform func_basename and func_dirname in a single function -# call: -# dirname: Compute the dirname of FILE. If nonempty, -# add APPEND to the result, otherwise set result -# to NONDIR_REPLACEMENT. -# value returned in "$func_dirname_result" -# basename: Compute filename of FILE. -# value retuned in "$func_basename_result" -# Implementation must be kept synchronized with func_dirname -# and func_basename. For efficiency, we do not delegate to -# those functions but instead duplicate the functionality here. -func_dirname_and_basename () -{ - # Extract subdirectory from the argument. - func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` - if test "X$func_dirname_result" = "X${1}"; then - func_dirname_result="${3}" - else - func_dirname_result="$func_dirname_result${2}" - fi - func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` -} # func_dirname_and_basename may be replaced by extended shell implementation - - -# func_stripname prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -# func_strip_suffix prefix name -func_stripname () -{ - case ${2} in - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; - esac -} # func_stripname may be replaced by extended shell implementation - - -# These SED scripts presuppose an absolute path with a trailing slash. -pathcar='s,^/\([^/]*\).*$,\1,' -pathcdr='s,^/[^/]*,,' -removedotparts=':dotsl - s@/\./@/@g - t dotsl - s,/\.$,/,' -collapseslashes='s@/\{1,\}@/@g' -finalslash='s,/*$,/,' - -# func_normal_abspath PATH -# Remove doubled-up and trailing slashes, "." path components, -# and cancel out any ".." path components in PATH after making -# it an absolute path. -# value returned in "$func_normal_abspath_result" -func_normal_abspath () -{ - # Start from root dir and reassemble the path. - func_normal_abspath_result= - func_normal_abspath_tpath=$1 - func_normal_abspath_altnamespace= - case $func_normal_abspath_tpath in - "") - # Empty path, that just means $cwd. - func_stripname '' '/' "`pwd`" - func_normal_abspath_result=$func_stripname_result - return - ;; - # The next three entries are used to spot a run of precisely - # two leading slashes without using negated character classes; - # we take advantage of case's first-match behaviour. - ///*) - # Unusual form of absolute path, do nothing. - ;; - //*) - # Not necessarily an ordinary path; POSIX reserves leading '//' - # and for example Cygwin uses it to access remote file shares - # over CIFS/SMB, so we conserve a leading double slash if found. - func_normal_abspath_altnamespace=/ - ;; - /*) - # Absolute path, do nothing. - ;; - *) - # Relative path, prepend $cwd. - func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath - ;; - esac - # Cancel out all the simple stuff to save iterations. We also want - # the path to end with a slash for ease of parsing, so make sure - # there is one (and only one) here. - func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ - -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` - while :; do - # Processed it all yet? - if test "$func_normal_abspath_tpath" = / ; then - # If we ascended to the root using ".." the result may be empty now. - if test -z "$func_normal_abspath_result" ; then - func_normal_abspath_result=/ - fi - break - fi - func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ - -e "$pathcar"` - func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ - -e "$pathcdr"` - # Figure out what to do with it - case $func_normal_abspath_tcomponent in - "") - # Trailing empty path component, ignore it. - ;; - ..) - # Parent dir; strip last assembled component from result. - func_dirname "$func_normal_abspath_result" - func_normal_abspath_result=$func_dirname_result - ;; - *) - # Actual path component, append it. - func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent - ;; - esac - done - # Restore leading double-slash if one was found on entry. - func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result -} - -# func_relative_path SRCDIR DSTDIR -# generates a relative path from SRCDIR to DSTDIR, with a trailing -# slash if non-empty, suitable for immediately appending a filename -# without needing to append a separator. -# value returned in "$func_relative_path_result" -func_relative_path () -{ - func_relative_path_result= - func_normal_abspath "$1" - func_relative_path_tlibdir=$func_normal_abspath_result - func_normal_abspath "$2" - func_relative_path_tbindir=$func_normal_abspath_result - - # Ascend the tree starting from libdir - while :; do - # check if we have found a prefix of bindir - case $func_relative_path_tbindir in - $func_relative_path_tlibdir) - # found an exact match - func_relative_path_tcancelled= - break - ;; - $func_relative_path_tlibdir*) - # found a matching prefix - func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" - func_relative_path_tcancelled=$func_stripname_result - if test -z "$func_relative_path_result"; then - func_relative_path_result=. - fi - break - ;; - *) - func_dirname $func_relative_path_tlibdir - func_relative_path_tlibdir=${func_dirname_result} - if test "x$func_relative_path_tlibdir" = x ; then - # Have to descend all the way to the root! - func_relative_path_result=../$func_relative_path_result - func_relative_path_tcancelled=$func_relative_path_tbindir - break - fi - func_relative_path_result=../$func_relative_path_result - ;; - esac - done - - # Now calculate path; take care to avoid doubling-up slashes. - func_stripname '' '/' "$func_relative_path_result" - func_relative_path_result=$func_stripname_result - func_stripname '/' '/' "$func_relative_path_tcancelled" - if test "x$func_stripname_result" != x ; then - func_relative_path_result=${func_relative_path_result}/${func_stripname_result} - fi - - # Normalisation. If bindir is libdir, return empty string, - # else relative path ending with a slash; either way, target - # file name can be directly appended. - if test ! -z "$func_relative_path_result"; then - func_stripname './' '' "$func_relative_path_result/" - func_relative_path_result=$func_stripname_result - fi -} - -# The name of this program: -func_dirname_and_basename "$progpath" -progname=$func_basename_result - -# Make sure we have an absolute path for reexecution: -case $progpath in - [\\/]*|[A-Za-z]:\\*) ;; - *[\\/]*) - progdir=$func_dirname_result - progdir=`cd "$progdir" && pwd` - progpath="$progdir/$progname" - ;; - *) - save_IFS="$IFS" - IFS=${PATH_SEPARATOR-:} - for progdir in $PATH; do - IFS="$save_IFS" - test -x "$progdir/$progname" && break - done - IFS="$save_IFS" - test -n "$progdir" || progdir=`pwd` - progpath="$progdir/$progname" - ;; -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 that turns a string into a regex matching for the -# string literally. -sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' - -# Sed substitution that converts a w32 file name or path -# which contains forward slashes, into one that contains -# (escaped) backslashes. A very naive implementation. -lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' - -# Re-`\' parameter expansions in output of double_quote_subst that were -# `\'-ed in input to the same. If an odd number of `\' preceded a '$' -# in input to double_quote_subst, that '$' was protected from expansion. -# Since each input `\' is now two `\'s, look for any number of runs of -# four `\'s followed by two `\'s and then a '$'. `\' that '$'. -bs='\\' -bs2='\\\\' -bs4='\\\\\\\\' -dollar='\$' -sed_double_backslash="\ - s/$bs4/&\\ -/g - s/^$bs2$dollar/$bs&/ - s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g - s/\n//g" - -# Standard options: -opt_dry_run=false -opt_help=false -opt_quiet=false -opt_verbose=false -opt_warning=: - -# func_echo arg... -# Echo program name prefixed message, along with the current mode -# name if it has been set yet. -func_echo () -{ - $ECHO "$progname: ${opt_mode+$opt_mode: }$*" -} - -# func_verbose arg... -# Echo program name prefixed message in verbose mode only. -func_verbose () -{ - $opt_verbose && func_echo ${1+"$@"} - - # A bug in bash halts the script if the last line of a function - # fails when set -e is in force, so we need another command to - # work around that: - : -} - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "$*" -} - -# func_error arg... -# Echo program name prefixed message to standard error. -func_error () -{ - $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 -} - -# func_warning arg... -# Echo program name prefixed warning message to standard error. -func_warning () -{ - $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 - - # bash bug again: - : -} - -# func_fatal_error arg... -# Echo program name prefixed message to standard error, and exit. -func_fatal_error () -{ - func_error ${1+"$@"} - exit $EXIT_FAILURE -} - -# func_fatal_help arg... -# Echo program name prefixed message to standard error, followed by -# a help hint, and exit. -func_fatal_help () -{ - func_error ${1+"$@"} - func_fatal_error "$help" -} -help="Try \`$progname --help' for more information." ## default - - -# func_grep expression filename -# Check whether EXPRESSION matches any line of FILENAME, without output. -func_grep () -{ - $GREP "$1" "$2" >/dev/null 2>&1 -} - - -# func_mkdir_p directory-path -# Make sure the entire path to DIRECTORY-PATH is available. -func_mkdir_p () -{ - my_directory_path="$1" - my_dir_list= - - if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then - - # Protect directory names starting with `-' - case $my_directory_path in - -*) my_directory_path="./$my_directory_path" ;; - esac - - # While some portion of DIR does not yet exist... - while test ! -d "$my_directory_path"; do - # ...make a list in topmost first order. Use a colon delimited - # list incase some portion of path contains whitespace. - my_dir_list="$my_directory_path:$my_dir_list" - - # If the last portion added has no slash in it, the list is done - case $my_directory_path in */*) ;; *) break ;; esac - - # ...otherwise throw away the child directory and loop - my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` - done - my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` - - save_mkdir_p_IFS="$IFS"; IFS=':' - for my_dir in $my_dir_list; do - IFS="$save_mkdir_p_IFS" - # mkdir can fail with a `File exist' error if two processes - # try to create one of the directories concurrently. Don't - # stop in that case! - $MKDIR "$my_dir" 2>/dev/null || : - done - IFS="$save_mkdir_p_IFS" - - # Bail out if we (or some other process) failed to create a directory. - test -d "$my_directory_path" || \ - func_fatal_error "Failed to create \`$1'" - fi -} - - -# 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 "$opt_dry_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" || \ - func_fatal_error "cannot create temporary directory \`$my_tmpdir'" - fi - - $ECHO "$my_tmpdir" -} - - -# func_quote_for_eval arg -# Aesthetically quote ARG to be evaled later. -# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT -# is double-quoted, suitable for a subsequent eval, whereas -# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters -# which are still active within double quotes backslashified. -func_quote_for_eval () -{ - case $1 in - *[\\\`\"\$]*) - func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; - *) - func_quote_for_eval_unquoted_result="$1" ;; - esac - - case $func_quote_for_eval_unquoted_result in - # Double-quote args containing shell metacharacters to delay - # word splitting, command substitution and and variable - # expansion for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" - ;; - *) - func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" - esac -} - - -# func_quote_for_expand arg -# Aesthetically quote ARG to be evaled later; same as above, -# but do not quote variable references. -func_quote_for_expand () -{ - case $1 in - *[\\\`\"]*) - my_arg=`$ECHO "$1" | $SED \ - -e "$double_quote_subst" -e "$sed_double_backslash"` ;; - *) - my_arg="$1" ;; - esac - - case $my_arg in - # Double-quote args containing shell metacharacters to delay - # word splitting and command substitution for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - my_arg="\"$my_arg\"" - ;; - esac - - func_quote_for_expand_result="$my_arg" -} - - -# func_show_eval cmd [fail_exp] -# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP -# is given, then evaluate it. -func_show_eval () -{ - my_cmd="$1" - my_fail_exp="${2-:}" - - ${opt_silent-false} || { - func_quote_for_expand "$my_cmd" - eval "func_echo $func_quote_for_expand_result" - } - - if ${opt_dry_run-false}; then :; else - eval "$my_cmd" - my_status=$? - if test "$my_status" -eq 0; then :; else - eval "(exit $my_status); $my_fail_exp" - fi - fi -} - - -# func_show_eval_locale cmd [fail_exp] -# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP -# is given, then evaluate it. Use the saved locale for evaluation. -func_show_eval_locale () -{ - my_cmd="$1" - my_fail_exp="${2-:}" - - ${opt_silent-false} || { - func_quote_for_expand "$my_cmd" - eval "func_echo $func_quote_for_expand_result" - } - - if ${opt_dry_run-false}; then :; else - eval "$lt_user_locale - $my_cmd" - my_status=$? - eval "$lt_safe_locale" - if test "$my_status" -eq 0; then :; else - eval "(exit $my_status); $my_fail_exp" - fi - fi -} - -# func_tr_sh -# Turn $1 into a string suitable for a shell variable name. -# Result is stored in $func_tr_sh_result. All characters -# not in the set a-zA-Z0-9_ are replaced with '_'. Further, -# if $1 begins with a digit, a '_' is prepended as well. -func_tr_sh () -{ - case $1 in - [0-9]* | *[!a-zA-Z0-9_]*) - func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` - ;; - * ) - func_tr_sh_result=$1 - ;; - esac -} - - -# func_version -# Echo version message to standard output and exit. -func_version () -{ - $opt_debug - - $SED -n '/(C)/!b go - :more - /\./!{ - N - s/\n# / / - b more - } - :go - /^# '$PROGRAM' (GNU /,/# warranty; / { - s/^# // - s/^# *$// - s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ - p - }' < "$progpath" - exit $? -} - -# func_usage -# Echo short help message to standard output and exit. -func_usage () -{ - $opt_debug - - $SED -n '/^# Usage:/,/^# *.*--help/ { - s/^# // - s/^# *$// - s/\$progname/'$progname'/ - p - }' < "$progpath" - echo - $ECHO "run \`$progname --help | more' for full usage" - exit $? -} - -# func_help [NOEXIT] -# Echo long help message to standard output and exit, -# unless 'noexit' is passed as argument. -func_help () -{ - $opt_debug - - $SED -n '/^# Usage:/,/# Report bugs to/ { - :print - s/^# // - s/^# *$// - s*\$progname*'$progname'* - s*\$host*'"$host"'* - s*\$SHELL*'"$SHELL"'* - s*\$LTCC*'"$LTCC"'* - s*\$LTCFLAGS*'"$LTCFLAGS"'* - s*\$LD*'"$LD"'* - s/\$with_gnu_ld/'"$with_gnu_ld"'/ - s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ - s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ - p - d - } - /^# .* home page:/b print - /^# General help using/b print - ' < "$progpath" - ret=$? - if test -z "$1"; then - exit $ret - fi -} - -# func_missing_arg argname -# Echo program name prefixed message to standard error and set global -# exit_cmd. -func_missing_arg () -{ - $opt_debug - - func_error "missing argument for $1." - exit_cmd=exit -} - - -# func_split_short_opt shortopt -# Set func_split_short_opt_name and func_split_short_opt_arg shell -# variables after splitting SHORTOPT after the 2nd character. -func_split_short_opt () -{ - my_sed_short_opt='1s/^\(..\).*$/\1/;q' - my_sed_short_rest='1s/^..\(.*\)$/\1/;q' - - func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` - func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` -} # func_split_short_opt may be replaced by extended shell implementation - - -# func_split_long_opt longopt -# Set func_split_long_opt_name and func_split_long_opt_arg shell -# variables after splitting LONGOPT at the `=' sign. -func_split_long_opt () -{ - my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' - my_sed_long_arg='1s/^--[^=]*=//' - - func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` - func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` -} # func_split_long_opt may be replaced by extended shell implementation - -exit_cmd=: - - - - - -magic="%%%MAGIC variable%%%" -magic_exe="%%%MAGIC EXE variable%%%" - -# Global variables. -nonopt= -preserve_args= -lo2o="s/\\.lo\$/.${objext}/" -o2lo="s/\\.${objext}\$/.lo/" -extracted_archives= -extracted_serial=0 - -# If this variable is set in any of the actions, the command in it -# will be execed at the end. This prevents here-documents from being -# left over by shells. -exec_cmd= - -# func_append var value -# Append VALUE to the end of shell variable VAR. -func_append () -{ - eval "${1}=\$${1}\${2}" -} # func_append may be replaced by extended shell implementation - -# func_append_quoted var value -# Quote VALUE and append to the end of shell variable VAR, separated -# by a space. -func_append_quoted () -{ - func_quote_for_eval "${2}" - eval "${1}=\$${1}\\ \$func_quote_for_eval_result" -} # func_append_quoted may be replaced by extended shell implementation - - -# func_arith arithmetic-term... -func_arith () -{ - func_arith_result=`expr "${@}"` -} # func_arith may be replaced by extended shell implementation - - -# func_len string -# STRING may not start with a hyphen. -func_len () -{ - func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` -} # func_len may be replaced by extended shell implementation - - -# func_lo2o object -func_lo2o () -{ - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` -} # func_lo2o may be replaced by extended shell implementation - - -# func_xform libobj-or-source -func_xform () -{ - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` -} # func_xform may be replaced by extended shell implementation - - -# func_fatal_configuration arg... -# Echo program name prefixed message to standard error, followed by -# a configuration failure hint, and exit. -func_fatal_configuration () -{ - func_error ${1+"$@"} - func_error "See the $PACKAGE documentation for more information." - func_fatal_error "Fatal configuration error." -} - - -# func_config -# Display the configuration for all the tags in this script. -func_config () -{ - re_begincf='^# ### BEGIN LIBTOOL' - re_endcf='^# ### END LIBTOOL' - - # Default configuration. - $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" - - # Now print the configurations for the tags. - for tagname in $taglist; do - $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" - done - - exit $? -} - -# func_features -# Display the features supported by this script. -func_features () -{ - echo "host: $host" - if test "$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 $? -} - -# func_enable_tag tagname -# Verify that TAGNAME is valid, and either flag an error and exit, or -# enable the TAGNAME tag. We also add TAGNAME to the global $taglist -# variable here. -func_enable_tag () -{ - # Global variable: - tagname="$1" - - re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" - re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" - sed_extractcf="/$re_begincf/,/$re_endcf/p" - - # Validate tagname. - case $tagname in - *[!-_A-Za-z0-9,/]*) - func_fatal_error "invalid tag name: $tagname" - ;; - esac - - # Don't test for the "default" C tag, as we know it's - # there but not specially marked. - case $tagname in - CC) ;; - *) - if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then - taglist="$taglist $tagname" - - # Evaluate the configuration. Be careful to quote the path - # and the sed script, to avoid splitting on whitespace, but - # also don't use non-portable quotes within backquotes within - # quotes we have to do it in 2 steps: - extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` - eval "$extractedcf" - else - func_error "ignoring unknown tag $tagname" - fi - ;; - esac -} - -# func_check_version_match -# Ensure that we are using m4 macros, and libtool script from the same -# release of libtool. -func_check_version_match () -{ - if test "$package_revision" != "$macro_revision"; then - if test "$VERSION" != "$macro_version"; then - if test -z "$macro_version"; then - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from an older release. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - fi - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, -$progname: but the definition of this LT_INIT comes from revision $macro_revision. -$progname: You should recreate aclocal.m4 with macros from revision $package_revision -$progname: of $PACKAGE $VERSION and run autoconf again. -_LT_EOF - fi - - exit $EXIT_MISMATCH - fi -} - - -# Shorthand for --mode=foo, only valid as the first argument -case $1 in -clean|clea|cle|cl) - shift; set dummy --mode clean ${1+"$@"}; shift - ;; -compile|compil|compi|comp|com|co|c) - shift; set dummy --mode compile ${1+"$@"}; shift - ;; -execute|execut|execu|exec|exe|ex|e) - shift; set dummy --mode execute ${1+"$@"}; shift - ;; -finish|finis|fini|fin|fi|f) - shift; set dummy --mode finish ${1+"$@"}; shift - ;; -install|instal|insta|inst|ins|in|i) - shift; set dummy --mode install ${1+"$@"}; shift - ;; -link|lin|li|l) - shift; set dummy --mode link ${1+"$@"}; shift - ;; -uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) - shift; set dummy --mode uninstall ${1+"$@"}; shift - ;; -esac - - - -# Option defaults: -opt_debug=: -opt_dry_run=false -opt_config=false -opt_preserve_dup_deps=false -opt_features=false -opt_finish=false -opt_help=false -opt_help_all=false -opt_silent=: -opt_warning=: -opt_verbose=: -opt_silent=false -opt_verbose=false - - -# Parse options once, thoroughly. This comes as soon as possible in the -# script to make things like `--version' happen as quickly as we can. -{ - # this just eases exit handling - while test $# -gt 0; do - opt="$1" - shift - case $opt in - --debug|-x) opt_debug='set -x' - func_echo "enabling shell trace mode" - $opt_debug - ;; - --dry-run|--dryrun|-n) - opt_dry_run=: - ;; - --config) - opt_config=: -func_config - ;; - --dlopen|-dlopen) - optarg="$1" - opt_dlopen="${opt_dlopen+$opt_dlopen -}$optarg" - shift - ;; - --preserve-dup-deps) - opt_preserve_dup_deps=: - ;; - --features) - opt_features=: -func_features - ;; - --finish) - opt_finish=: -set dummy --mode finish ${1+"$@"}; shift - ;; - --help) - opt_help=: - ;; - --help-all) - opt_help_all=: -opt_help=': help-all' - ;; - --mode) - test $# = 0 && func_missing_arg $opt && break - optarg="$1" - opt_mode="$optarg" -case $optarg in - # Valid mode arguments: - clean|compile|execute|finish|install|link|relink|uninstall) ;; - - # Catch anything else as an error - *) func_error "invalid argument for $opt" - exit_cmd=exit - break - ;; -esac - shift - ;; - --no-silent|--no-quiet) - opt_silent=false -func_append preserve_args " $opt" - ;; - --no-warning|--no-warn) - opt_warning=false -func_append preserve_args " $opt" - ;; - --no-verbose) - opt_verbose=false -func_append preserve_args " $opt" - ;; - --silent|--quiet) - opt_silent=: -func_append preserve_args " $opt" - opt_verbose=false - ;; - --verbose|-v) - opt_verbose=: -func_append preserve_args " $opt" -opt_silent=false - ;; - --tag) - test $# = 0 && func_missing_arg $opt && break - optarg="$1" - opt_tag="$optarg" -func_append preserve_args " $opt $optarg" -func_enable_tag "$optarg" - shift - ;; - - -\?|-h) func_usage ;; - --help) func_help ;; - --version) func_version ;; - - # Separate optargs to long options: - --*=*) - func_split_long_opt "$opt" - set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} - shift - ;; - - # Separate non-argument short options: - -\?*|-h*|-n*|-v*) - func_split_short_opt "$opt" - set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} - shift - ;; - - --) break ;; - -*) func_fatal_help "unrecognized option \`$opt'" ;; - *) set dummy "$opt" ${1+"$@"}; shift; break ;; - esac - done - - # Validate options: - - # save first non-option argument - if test "$#" -gt 0; then - nonopt="$opt" - shift - fi - - # preserve --debug - test "$opt_debug" = : || func_append preserve_args " --debug" - - case $host in - *cygwin* | *mingw* | *pw32* | *cegcc*) - # don't eliminate duplications in $postdeps and $predeps - opt_duplicate_compiler_generated_deps=: - ;; - *) - opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps - ;; - esac - - $opt_help || { - # Sanity checks first: - func_check_version_match - - if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then - func_fatal_configuration "not configured to build any kind of library" - fi - - # Darwin sucks - eval std_shrext=\"$shrext_cmds\" - - # Only execute mode is allowed to have -dlopen flags. - if test -n "$opt_dlopen" && test "$opt_mode" != execute; then - func_error "unrecognized option \`-dlopen'" - $ECHO "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Change the help message to a mode-specific one. - generic_help="$help" - help="Try \`$progname --help --mode=$opt_mode' for more information." - } - - - # Bail if the options were screwed - $exit_cmd $EXIT_FAILURE -} - - - - -## ----------- ## -## Main. ## -## ----------- ## - -# func_lalib_p file -# True iff FILE is a libtool `.la' library or `.lo' object file. -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_lalib_p () -{ - test -f "$1" && - $SED -e 4q "$1" 2>/dev/null \ - | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 -} - -# func_lalib_unsafe_p file -# True iff FILE is a libtool `.la' library or `.lo' object file. -# This function implements the same check as func_lalib_p without -# resorting to external programs. To this end, it redirects stdin and -# closes it afterwards, without saving the original file descriptor. -# As a safety measure, use it only where a negative result would be -# fatal anyway. Works if `file' does not exist. -func_lalib_unsafe_p () -{ - lalib_p=no - if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then - for lalib_p_l in 1 2 3 4 - do - read lalib_p_line - case "$lalib_p_line" in - \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; - esac - done - exec 0<&5 5<&- - fi - test "$lalib_p" = yes -} - -# func_ltwrapper_script_p file -# True iff FILE is a libtool wrapper script -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_script_p () -{ - func_lalib_p "$1" -} - -# func_ltwrapper_executable_p file -# True iff FILE is a libtool wrapper executable -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_executable_p () -{ - func_ltwrapper_exec_suffix= - case $1 in - *.exe) ;; - *) func_ltwrapper_exec_suffix=.exe ;; - esac - $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 -} - -# func_ltwrapper_scriptname file -# Assumes file is an ltwrapper_executable -# uses $file to determine the appropriate filename for a -# temporary ltwrapper_script. -func_ltwrapper_scriptname () -{ - func_dirname_and_basename "$1" "" "." - func_stripname '' '.exe' "$func_basename_result" - func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" -} - -# func_ltwrapper_p file -# True iff FILE is a libtool wrapper script or wrapper executable -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_p () -{ - func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" -} - - -# func_execute_cmds commands fail_cmd -# Execute tilde-delimited COMMANDS. -# If FAIL_CMD is given, eval that upon failure. -# FAIL_CMD may read-access the current command in variable CMD! -func_execute_cmds () -{ - $opt_debug - save_ifs=$IFS; IFS='~' - for cmd in $1; do - IFS=$save_ifs - eval cmd=\"$cmd\" - func_show_eval "$cmd" "${2-:}" - done - IFS=$save_ifs -} - - -# func_source file -# Source FILE, adding directory component if necessary. -# Note that it is not necessary on cygwin/mingw to append a dot to -# FILE even if both FILE and FILE.exe exist: automatic-append-.exe -# behavior happens only for exec(3), not for open(2)! Also, sourcing -# `FILE.' does not work on cygwin managed mounts. -func_source () -{ - $opt_debug - case $1 in - */* | *\\*) . "$1" ;; - *) . "./$1" ;; - esac -} - - -# func_resolve_sysroot PATH -# Replace a leading = in PATH with a sysroot. Store the result into -# func_resolve_sysroot_result -func_resolve_sysroot () -{ - func_resolve_sysroot_result=$1 - case $func_resolve_sysroot_result in - =*) - func_stripname '=' '' "$func_resolve_sysroot_result" - func_resolve_sysroot_result=$lt_sysroot$func_stripname_result - ;; - esac -} - -# func_replace_sysroot PATH -# If PATH begins with the sysroot, replace it with = and -# store the result into func_replace_sysroot_result. -func_replace_sysroot () -{ - case "$lt_sysroot:$1" in - ?*:"$lt_sysroot"*) - func_stripname "$lt_sysroot" '' "$1" - func_replace_sysroot_result="=$func_stripname_result" - ;; - *) - # Including no sysroot. - func_replace_sysroot_result=$1 - ;; - esac -} - -# func_infer_tag arg -# Infer tagged configuration to use if any are available and -# if one wasn't chosen via the "--tag" command line option. -# Only attempt this if the compiler in the base compile -# command doesn't match the default compiler. -# arg is usually of the form 'gcc ...' -func_infer_tag () -{ - $opt_debug - if test -n "$available_tags" && test -z "$tagname"; then - CC_quoted= - for arg in $CC; do - func_append_quoted CC_quoted "$arg" - done - CC_expanded=`func_echo_all $CC` - CC_quoted_expanded=`func_echo_all $CC_quoted` - case $@ in - # Blanks in the command may have been stripped by the calling shell, - # but not from the CC environment variable when configure was run. - " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ - " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; - # Blanks at the start of $base_compile will cause this to fail - # if we don't check for them as well. - *) - for z in $available_tags; do - if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" - CC_quoted= - for arg in $CC; do - # Double-quote args containing other shell metacharacters. - func_append_quoted CC_quoted "$arg" - done - CC_expanded=`func_echo_all $CC` - CC_quoted_expanded=`func_echo_all $CC_quoted` - case "$@ " in - " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ - " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) - # The compiler in the base compile command matches - # the one in the tagged configuration. - # Assume this is the tagged configuration we want. - tagname=$z - break - ;; - esac - fi - done - # If $tagname still isn't set, then no tagged configuration - # was found and let the user know that the "--tag" command - # line option must be used. - if test -z "$tagname"; then - func_echo "unable to infer tagged configuration" - func_fatal_error "specify a tag with \`--tag'" -# else -# func_verbose "using $tagname tagged configuration" - fi - ;; - esac - fi -} - - - -# func_write_libtool_object output_name pic_name nonpic_name -# Create a libtool object file (analogous to a ".la" file), -# but don't create it if we're doing a dry run. -func_write_libtool_object () -{ - write_libobj=${1} - if test "$build_libtool_libs" = yes; then - write_lobj=\'${2}\' - else - write_lobj=none - fi - - if test "$build_old_libs" = yes; then - write_oldobj=\'${3}\' - else - write_oldobj=none - fi - - $opt_dry_run || { - cat >${write_libobj}T </dev/null` - if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then - func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | - $SED -e "$lt_sed_naive_backslashify"` - else - func_convert_core_file_wine_to_w32_result= - fi - fi -} -# end: func_convert_core_file_wine_to_w32 - - -# func_convert_core_path_wine_to_w32 ARG -# Helper function used by path conversion functions when $build is *nix, and -# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly -# configured wine environment available, with the winepath program in $build's -# $PATH. Assumes ARG has no leading or trailing path separator characters. -# -# ARG is path to be converted from $build format to win32. -# Result is available in $func_convert_core_path_wine_to_w32_result. -# Unconvertible file (directory) names in ARG are skipped; if no directory names -# are convertible, then the result may be empty. -func_convert_core_path_wine_to_w32 () -{ - $opt_debug - # unfortunately, winepath doesn't convert paths, only file names - func_convert_core_path_wine_to_w32_result="" - if test -n "$1"; then - oldIFS=$IFS - IFS=: - for func_convert_core_path_wine_to_w32_f in $1; do - IFS=$oldIFS - func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" - if test -n "$func_convert_core_file_wine_to_w32_result" ; then - if test -z "$func_convert_core_path_wine_to_w32_result"; then - func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" - else - func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" - fi - fi - done - IFS=$oldIFS - fi -} -# end: func_convert_core_path_wine_to_w32 - - -# func_cygpath ARGS... -# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when -# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) -# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or -# (2), returns the Cygwin file name or path in func_cygpath_result (input -# file name or path is assumed to be in w32 format, as previously converted -# from $build's *nix or MSYS format). In case (3), returns the w32 file name -# or path in func_cygpath_result (input file name or path is assumed to be in -# Cygwin format). Returns an empty string on error. -# -# ARGS are passed to cygpath, with the last one being the file name or path to -# be converted. -# -# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH -# environment variable; do not put it in $PATH. -func_cygpath () -{ - $opt_debug - if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then - func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` - if test "$?" -ne 0; then - # on failure, ensure result is empty - func_cygpath_result= - fi - else - func_cygpath_result= - func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" - fi -} -#end: func_cygpath - - -# func_convert_core_msys_to_w32 ARG -# Convert file name or path ARG from MSYS format to w32 format. Return -# result in func_convert_core_msys_to_w32_result. -func_convert_core_msys_to_w32 () -{ - $opt_debug - # awkward: cmd appends spaces to result - func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | - $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` -} -#end: func_convert_core_msys_to_w32 - - -# func_convert_file_check ARG1 ARG2 -# Verify that ARG1 (a file name in $build format) was converted to $host -# format in ARG2. Otherwise, emit an error message, but continue (resetting -# func_to_host_file_result to ARG1). -func_convert_file_check () -{ - $opt_debug - if test -z "$2" && test -n "$1" ; then - func_error "Could not determine host file name corresponding to" - func_error " \`$1'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback: - func_to_host_file_result="$1" - fi -} -# end func_convert_file_check - - -# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH -# Verify that FROM_PATH (a path in $build format) was converted to $host -# format in TO_PATH. Otherwise, emit an error message, but continue, resetting -# func_to_host_file_result to a simplistic fallback value (see below). -func_convert_path_check () -{ - $opt_debug - if test -z "$4" && test -n "$3"; then - func_error "Could not determine the host path corresponding to" - func_error " \`$3'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback. This is a deliberately simplistic "conversion" and - # should not be "improved". See libtool.info. - if test "x$1" != "x$2"; then - lt_replace_pathsep_chars="s|$1|$2|g" - func_to_host_path_result=`echo "$3" | - $SED -e "$lt_replace_pathsep_chars"` - else - func_to_host_path_result="$3" - fi - fi -} -# end func_convert_path_check - - -# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG -# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT -# and appending REPL if ORIG matches BACKPAT. -func_convert_path_front_back_pathsep () -{ - $opt_debug - case $4 in - $1 ) func_to_host_path_result="$3$func_to_host_path_result" - ;; - esac - case $4 in - $2 ) func_append func_to_host_path_result "$3" - ;; - esac -} -# end func_convert_path_front_back_pathsep - - -################################################## -# $build to $host FILE NAME CONVERSION FUNCTIONS # -################################################## -# invoked via `$to_host_file_cmd ARG' -# -# In each case, ARG is the path to be converted from $build to $host format. -# Result will be available in $func_to_host_file_result. - - -# func_to_host_file ARG -# Converts the file name ARG from $build format to $host format. Return result -# in func_to_host_file_result. -func_to_host_file () -{ - $opt_debug - $to_host_file_cmd "$1" -} -# end func_to_host_file - - -# func_to_tool_file ARG LAZY -# converts the file name ARG from $build format to toolchain format. Return -# result in func_to_tool_file_result. If the conversion in use is listed -# in (the comma separated) LAZY, no conversion takes place. -func_to_tool_file () -{ - $opt_debug - case ,$2, in - *,"$to_tool_file_cmd",*) - func_to_tool_file_result=$1 - ;; - *) - $to_tool_file_cmd "$1" - func_to_tool_file_result=$func_to_host_file_result - ;; - esac -} -# end func_to_tool_file - - -# func_convert_file_noop ARG -# Copy ARG to func_to_host_file_result. -func_convert_file_noop () -{ - func_to_host_file_result="$1" -} -# end func_convert_file_noop - - -# func_convert_file_msys_to_w32 ARG -# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic -# conversion to w32 is not available inside the cwrapper. Returns result in -# func_to_host_file_result. -func_convert_file_msys_to_w32 () -{ - $opt_debug - func_to_host_file_result="$1" - if test -n "$1"; then - func_convert_core_msys_to_w32 "$1" - func_to_host_file_result="$func_convert_core_msys_to_w32_result" - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_msys_to_w32 - - -# func_convert_file_cygwin_to_w32 ARG -# Convert file name ARG from Cygwin to w32 format. Returns result in -# func_to_host_file_result. -func_convert_file_cygwin_to_w32 () -{ - $opt_debug - func_to_host_file_result="$1" - if test -n "$1"; then - # because $build is cygwin, we call "the" cygpath in $PATH; no need to use - # LT_CYGPATH in this case. - func_to_host_file_result=`cygpath -m "$1"` - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_cygwin_to_w32 - - -# func_convert_file_nix_to_w32 ARG -# Convert file name ARG from *nix to w32 format. Requires a wine environment -# and a working winepath. Returns result in func_to_host_file_result. -func_convert_file_nix_to_w32 () -{ - $opt_debug - func_to_host_file_result="$1" - if test -n "$1"; then - func_convert_core_file_wine_to_w32 "$1" - func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_nix_to_w32 - - -# func_convert_file_msys_to_cygwin ARG -# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. -# Returns result in func_to_host_file_result. -func_convert_file_msys_to_cygwin () -{ - $opt_debug - func_to_host_file_result="$1" - if test -n "$1"; then - func_convert_core_msys_to_w32 "$1" - func_cygpath -u "$func_convert_core_msys_to_w32_result" - func_to_host_file_result="$func_cygpath_result" - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_msys_to_cygwin - - -# func_convert_file_nix_to_cygwin ARG -# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed -# in a wine environment, working winepath, and LT_CYGPATH set. Returns result -# in func_to_host_file_result. -func_convert_file_nix_to_cygwin () -{ - $opt_debug - func_to_host_file_result="$1" - if test -n "$1"; then - # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. - func_convert_core_file_wine_to_w32 "$1" - func_cygpath -u "$func_convert_core_file_wine_to_w32_result" - func_to_host_file_result="$func_cygpath_result" - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_nix_to_cygwin - - -############################################# -# $build to $host PATH CONVERSION FUNCTIONS # -############################################# -# invoked via `$to_host_path_cmd ARG' -# -# In each case, ARG is the path to be converted from $build to $host format. -# The result will be available in $func_to_host_path_result. -# -# Path separators are also converted from $build format to $host format. If -# ARG begins or ends with a path separator character, it is preserved (but -# converted to $host format) on output. -# -# All path conversion functions are named using the following convention: -# file name conversion function : func_convert_file_X_to_Y () -# path conversion function : func_convert_path_X_to_Y () -# where, for any given $build/$host combination the 'X_to_Y' value is the -# same. If conversion functions are added for new $build/$host combinations, -# the two new functions must follow this pattern, or func_init_to_host_path_cmd -# will break. - - -# func_init_to_host_path_cmd -# Ensures that function "pointer" variable $to_host_path_cmd is set to the -# appropriate value, based on the value of $to_host_file_cmd. -to_host_path_cmd= -func_init_to_host_path_cmd () -{ - $opt_debug - if test -z "$to_host_path_cmd"; then - func_stripname 'func_convert_file_' '' "$to_host_file_cmd" - to_host_path_cmd="func_convert_path_${func_stripname_result}" - fi -} - - -# func_to_host_path ARG -# Converts the path ARG from $build format to $host format. Return result -# in func_to_host_path_result. -func_to_host_path () -{ - $opt_debug - func_init_to_host_path_cmd - $to_host_path_cmd "$1" -} -# end func_to_host_path - - -# func_convert_path_noop ARG -# Copy ARG to func_to_host_path_result. -func_convert_path_noop () -{ - func_to_host_path_result="$1" -} -# end func_convert_path_noop - - -# func_convert_path_msys_to_w32 ARG -# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic -# conversion to w32 is not available inside the cwrapper. Returns result in -# func_to_host_path_result. -func_convert_path_msys_to_w32 () -{ - $opt_debug - func_to_host_path_result="$1" - if test -n "$1"; then - # Remove leading and trailing path separator characters from ARG. MSYS - # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; - # and winepath ignores them completely. - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" - func_to_host_path_result="$func_convert_core_msys_to_w32_result" - func_convert_path_check : ";" \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" - fi -} -# end func_convert_path_msys_to_w32 - - -# func_convert_path_cygwin_to_w32 ARG -# Convert path ARG from Cygwin to w32 format. Returns result in -# func_to_host_file_result. -func_convert_path_cygwin_to_w32 () -{ - $opt_debug - func_to_host_path_result="$1" - if test -n "$1"; then - # See func_convert_path_msys_to_w32: - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` - func_convert_path_check : ";" \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" - fi -} -# end func_convert_path_cygwin_to_w32 - - -# func_convert_path_nix_to_w32 ARG -# Convert path ARG from *nix to w32 format. Requires a wine environment and -# a working winepath. Returns result in func_to_host_file_result. -func_convert_path_nix_to_w32 () -{ - $opt_debug - func_to_host_path_result="$1" - if test -n "$1"; then - # See func_convert_path_msys_to_w32: - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" - func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" - func_convert_path_check : ";" \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" - fi -} -# end func_convert_path_nix_to_w32 - - -# func_convert_path_msys_to_cygwin ARG -# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. -# Returns result in func_to_host_file_result. -func_convert_path_msys_to_cygwin () -{ - $opt_debug - func_to_host_path_result="$1" - if test -n "$1"; then - # See func_convert_path_msys_to_w32: - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" - func_cygpath -u -p "$func_convert_core_msys_to_w32_result" - func_to_host_path_result="$func_cygpath_result" - func_convert_path_check : : \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" : "$1" - fi -} -# end func_convert_path_msys_to_cygwin - - -# func_convert_path_nix_to_cygwin ARG -# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a -# a wine environment, working winepath, and LT_CYGPATH set. Returns result in -# func_to_host_file_result. -func_convert_path_nix_to_cygwin () -{ - $opt_debug - func_to_host_path_result="$1" - if test -n "$1"; then - # Remove leading and trailing path separator characters from - # ARG. msys behavior is inconsistent here, cygpath turns them - # into '.;' and ';.', and winepath ignores them completely. - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" - func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" - func_to_host_path_result="$func_cygpath_result" - func_convert_path_check : : \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" : "$1" - fi -} -# end func_convert_path_nix_to_cygwin - - -# func_mode_compile arg... -func_mode_compile () -{ - $opt_debug - # Get the compilation command and the source file. - base_compile= - srcfile="$nonopt" # always keep a non-empty value in "srcfile" - suppress_opt=yes - suppress_output= - arg_mode=normal - libobj= - later= - pie_flag= - - for arg - do - case $arg_mode in - arg ) - # do not "continue". Instead, add this to base_compile - lastarg="$arg" - arg_mode=normal - ;; - - target ) - libobj="$arg" - arg_mode=normal - continue - ;; - - normal ) - # Accept any command-line options. - case $arg in - -o) - test -n "$libobj" && \ - func_fatal_error "you cannot specify \`-o' more than once" - arg_mode=target - continue - ;; - - -pie | -fpie | -fPIE) - func_append pie_flag " $arg" - continue - ;; - - -shared | -static | -prefer-pic | -prefer-non-pic) - func_append later " $arg" - continue - ;; - - -no-suppress) - suppress_opt=no - continue - ;; - - -Xcompiler) - arg_mode=arg # the next one goes into the "base_compile" arg list - continue # The current "srcfile" will either be retained or - ;; # replaced later. I would guess that would be a bug. - - -Wc,*) - func_stripname '-Wc,' '' "$arg" - args=$func_stripname_result - lastarg= - save_ifs="$IFS"; IFS=',' - for arg in $args; do - IFS="$save_ifs" - func_append_quoted lastarg "$arg" - done - IFS="$save_ifs" - func_stripname ' ' '' "$lastarg" - lastarg=$func_stripname_result - - # Add the arguments to base_compile. - func_append base_compile " $lastarg" - continue - ;; - - *) - # Accept the current argument as the source file. - # The previous "srcfile" becomes the current argument. - # - lastarg="$srcfile" - srcfile="$arg" - ;; - esac # case $arg - ;; - esac # case $arg_mode - - # Aesthetically quote the previous argument. - func_append_quoted base_compile "$lastarg" - done # for arg - - case $arg_mode in - arg) - func_fatal_error "you must specify an argument for -Xcompile" - ;; - target) - func_fatal_error "you must specify a target with \`-o'" - ;; - *) - # Get the name of the library object. - test -z "$libobj" && { - func_basename "$srcfile" - libobj="$func_basename_result" - } - ;; - esac - - # Recognize several different file suffixes. - # If the user specifies -o file.o, it is replaced with file.lo - case $libobj in - *.[cCFSifmso] | \ - *.ada | *.adb | *.ads | *.asm | \ - *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ - *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) - func_xform "$libobj" - libobj=$func_xform_result - ;; - esac - - case $libobj in - *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; - *) - func_fatal_error "cannot determine name of library object from \`$libobj'" - ;; - esac - - func_infer_tag $base_compile - - for arg in $later; do - case $arg in - -shared) - test "$build_libtool_libs" != yes && \ - func_fatal_configuration "can not build a shared library" - build_old_libs=no - continue - ;; - - -static) - build_libtool_libs=no - build_old_libs=yes - continue - ;; - - -prefer-pic) - pic_mode=yes - continue - ;; - - -prefer-non-pic) - pic_mode=no - continue - ;; - esac - done - - func_quote_for_eval "$libobj" - test "X$libobj" != "X$func_quote_for_eval_result" \ - && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ - && func_warning "libobj name \`$libobj' may not contain shell special characters." - func_dirname_and_basename "$obj" "/" "" - objname="$func_basename_result" - xdir="$func_dirname_result" - lobj=${xdir}$objdir/$objname - - test -z "$base_compile" && \ - func_fatal_help "you must specify a compilation command" - - # Delete any leftover library objects. - if test "$build_old_libs" = yes; then - removelist="$obj $lobj $libobj ${libobj}T" - else - removelist="$lobj $libobj ${libobj}T" - fi - - # On Cygwin there's no "real" PIC flag so we must build both object types - case $host_os in - cygwin* | mingw* | pw32* | os2* | cegcc*) - pic_mode=default - ;; - esac - if test "$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 "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} - lockfile="$output_obj.lock" - else - output_obj= - need_locks=no - lockfile= - fi - - # Lock this critical section if it is needed - # We use this script file to make the link, it avoids creating a new file - if test "$need_locks" = yes; then - until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do - func_echo "Waiting for $lockfile to be removed" - sleep 2 - done - elif test "$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." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - func_append removelist " $output_obj" - $ECHO "$srcfile" > "$lockfile" - fi - - $opt_dry_run || $RM $removelist - func_append removelist " $lockfile" - trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 - - func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 - srcfile=$func_to_tool_file_result - func_quote_for_eval "$srcfile" - qsrcfile=$func_quote_for_eval_result - - # Only build a PIC object if we are building libtool libraries. - if test "$build_libtool_libs" = yes; then - # Without this assignment, base_compile gets emptied. - fbsd_hideous_sh_bug=$base_compile - - if test "$pic_mode" != no; then - command="$base_compile $qsrcfile $pic_flag" - else - # Don't build PIC code - command="$base_compile $qsrcfile" - fi - - func_mkdir_p "$xdir$objdir" - - if test -z "$output_obj"; then - # Place PIC objects in $objdir - func_append command " -o $lobj" - fi - - func_show_eval_locale "$command" \ - 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' - - if test "$need_locks" = warn && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $ECHO "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed, then go on to compile the next one - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then - func_show_eval '$MV "$output_obj" "$lobj"' \ - 'error=$?; $opt_dry_run || $RM $removelist; exit $error' - fi - - # Allow error messages only from the first compilation. - if test "$suppress_opt" = yes; then - suppress_output=' >/dev/null 2>&1' - fi - fi - - # Only build a position-dependent object if we build old libraries. - if test "$build_old_libs" = yes; then - if test "$pic_mode" != yes; then - # Don't build PIC code - command="$base_compile $qsrcfile$pie_flag" - else - command="$base_compile $qsrcfile $pic_flag" - fi - if test "$compiler_c_o" = yes; then - func_append command " -o $obj" - fi - - # Suppress compiler output if we already did a PIC compilation. - func_append command "$suppress_output" - func_show_eval_locale "$command" \ - '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' - - if test "$need_locks" = warn && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $ECHO "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then - func_show_eval '$MV "$output_obj" "$obj"' \ - 'error=$?; $opt_dry_run || $RM $removelist; exit $error' - fi - fi - - $opt_dry_run || { - func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" - - # Unlock the critical section if it was locked - if test "$need_locks" != no; then - removelist=$lockfile - $RM "$lockfile" - fi - } - - exit $EXIT_SUCCESS -} - -$opt_help || { - test "$opt_mode" = compile && func_mode_compile ${1+"$@"} -} - -func_mode_help () -{ - # We need to display help for each of the modes. - case $opt_mode in - "") - # Generic help is extracted from the usage comments - # at the start of this file. - func_help - ;; - - clean) - $ECHO \ -"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... - -Remove files from the build directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, object or program, all the files associated -with it are deleted. Otherwise, only FILE itself is deleted using RM." - ;; - - compile) - $ECHO \ -"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE - -Compile a source file into a libtool library object. - -This mode accepts the following additional options: - - -o OUTPUT-FILE set the output file name to OUTPUT-FILE - -no-suppress do not suppress compiler output for multiple passes - -prefer-pic try to build PIC objects only - -prefer-non-pic try to build non-PIC objects only - -shared do not build a \`.o' file suitable for static linking - -static only build a \`.o' file suitable for static linking - -Wc,FLAG pass FLAG directly to the compiler - -COMPILE-COMMAND is a command to be used in creating a \`standard' object file -from the given SOURCEFILE. - -The output file name is determined by removing the directory component from -SOURCEFILE, then substituting the C source code suffix \`.c' with the -library object suffix, \`.lo'." - ;; - - execute) - $ECHO \ -"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... - -Automatically set library path, then run a program. - -This mode accepts the following additional options: - - -dlopen FILE add the directory containing FILE to the library path - -This mode sets the library path environment variable according to \`-dlopen' -flags. - -If any of the ARGS are libtool executable wrappers, then they are translated -into their corresponding uninstalled binary, and any of their required library -directories are added to the library path. - -Then, COMMAND is executed, with ARGS as arguments." - ;; - - finish) - $ECHO \ -"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... - -Complete the installation of libtool libraries. - -Each LIBDIR is a directory that contains libtool libraries. - -The commands that this mode executes may require superuser privileges. Use -the \`--dry-run' option if you just want to see what would be executed." - ;; - - install) - $ECHO \ -"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... - -Install executables or libraries. - -INSTALL-COMMAND is the installation command. The first component should be -either the \`install' or \`cp' program. - -The following components of INSTALL-COMMAND are treated specially: - - -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation - -The rest of the components are interpreted as arguments to that command (only -BSD-compatible install options are recognized)." - ;; - - link) - $ECHO \ -"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... - -Link object files or libraries together to form another library, or to -create an executable program. - -LINK-COMMAND is a command using the C compiler that you would use to create -a program from several object files. - -The following components of LINK-COMMAND are treated specially: - - -all-static do not do any dynamic linking at all - -avoid-version do not add a version suffix if possible - -bindir BINDIR specify path to binaries directory (for systems where - libraries must be found in the PATH setting at runtime) - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) - -export-symbols SYMFILE - try to export only the symbols listed in SYMFILE - -export-symbols-regex REGEX - try to export only the symbols matching REGEX - -LLIBDIR search LIBDIR for required installed libraries - -lNAME OUTPUT-FILE requires the installed library libNAME - -module build a library that can dlopened - -no-fast-install disable the fast-install mode - -no-install link a not-installable executable - -no-undefined declare that a library does not refer to external symbols - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects - -objectlist FILE Use a list of object files found in FILE to specify objects - -precious-files-regex REGEX - don't remove output files matching REGEX - -release RELEASE specify package release information - -rpath LIBDIR the created library will eventually be installed in LIBDIR - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries - -shared only do dynamic linking of libtool libraries - -shrext SUFFIX override the standard shared library file extension - -static do not do any dynamic linking of uninstalled libtool libraries - -static-libtool-libs - do not do any dynamic linking of libtool libraries - -version-info CURRENT[:REVISION[:AGE]] - specify library version info [each variable defaults to 0] - -weak LIBNAME declare that the target provides the LIBNAME interface - -Wc,FLAG - -Xcompiler FLAG pass linker-specific FLAG directly to the compiler - -Wl,FLAG - -Xlinker FLAG pass linker-specific FLAG directly to the linker - -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) - -All other options (arguments beginning with \`-') are ignored. - -Every other argument is treated as a filename. Files ending in \`.la' are -treated as uninstalled libtool libraries, other files are standard or library -object files. - -If the OUTPUT-FILE ends in \`.la', then a libtool library is created, -only library objects (\`.lo' files) may be specified, and \`-rpath' is -required, except when creating a convenience library. - -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created -using \`ar' and \`ranlib', or on Windows using \`lib'. - -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file -is created, otherwise an executable program is created." - ;; - - uninstall) - $ECHO \ -"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... - -Remove libraries from an installation directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, all the files associated with it are deleted. -Otherwise, only FILE itself is deleted using RM." - ;; - - *) - func_fatal_help "invalid operation mode \`$opt_mode'" - ;; - esac - - echo - $ECHO "Try \`$progname --help' for more information about other modes." -} - -# Now that we've collected a possible --mode arg, show help if necessary -if $opt_help; then - if test "$opt_help" = :; then - func_mode_help - else - { - func_help noexit - for opt_mode in compile link execute install finish uninstall clean; do - func_mode_help - done - } | sed -n '1p; 2,$s/^Usage:/ or: /p' - { - func_help noexit - for opt_mode in compile link execute install finish uninstall clean; do - echo - func_mode_help - done - } | - sed '1d - /^When reporting/,/^Report/{ - H - d - } - $x - /information about other modes/d - /more detailed .*MODE/d - s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' - fi - exit $? -fi - - -# func_mode_execute arg... -func_mode_execute () -{ - $opt_debug - # The first argument is the command name. - cmd="$nonopt" - test -z "$cmd" && \ - func_fatal_help "you must specify a COMMAND" - - # Handle -dlopen flags immediately. - for file in $opt_dlopen; do - test -f "$file" \ - || func_fatal_help "\`$file' is not a file" - - dir= - case $file in - *.la) - func_resolve_sysroot "$file" - file=$func_resolve_sysroot_result - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$file" \ - || func_fatal_help "\`$lib' is not a valid libtool archive" - - # Read the libtool library. - dlname= - library_names= - func_source "$file" - - # Skip this library if it cannot be dlopened. - if test -z "$dlname"; then - # Warn if it was a shared library. - test -n "$library_names" && \ - func_warning "\`$file' was not linked with \`-export-dynamic'" - continue - fi - - func_dirname "$file" "" "." - dir="$func_dirname_result" - - if test -f "$dir/$objdir/$dlname"; then - func_append dir "/$objdir" - else - if test ! -f "$dir/$dlname"; then - func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" - fi - fi - ;; - - *.lo) - # Just add the directory containing the .lo file. - func_dirname "$file" "" "." - dir="$func_dirname_result" - ;; - - *) - func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" - continue - ;; - esac - - # Get the absolute pathname. - absdir=`cd "$dir" && pwd` - test -n "$absdir" && dir="$absdir" - - # Now add the directory to shlibpath_var. - if eval "test -z \"\$$shlibpath_var\""; then - eval "$shlibpath_var=\"\$dir\"" - else - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" - fi - done - - # This variable tells wrapper scripts just to set shlibpath_var - # rather than running their programs. - libtool_execute_magic="$magic" - - # Check if any of the arguments is a wrapper script. - args= - for file - do - case $file in - -* | *.la | *.lo ) ;; - *) - # Do a test to see if this is really a libtool program. - if func_ltwrapper_script_p "$file"; then - func_source "$file" - # Transform arg to wrapped name. - file="$progdir/$program" - elif func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - func_source "$func_ltwrapper_scriptname_result" - # Transform arg to wrapped name. - file="$progdir/$program" - fi - ;; - esac - # Quote arguments (to preserve shell metacharacters). - func_append_quoted args "$file" - done - - if test "X$opt_dry_run" = Xfalse; 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 - else - $lt_unset $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 -} - -test "$opt_mode" = execute && func_mode_execute ${1+"$@"} - - -# func_mode_finish arg... -func_mode_finish () -{ - $opt_debug - libs= - libdirs= - admincmds= - - for opt in "$nonopt" ${1+"$@"} - do - if test -d "$opt"; then - func_append libdirs " $opt" - - elif test -f "$opt"; then - if func_lalib_unsafe_p "$opt"; then - func_append libs " $opt" - else - func_warning "\`$opt' is not a valid libtool archive" - fi - - else - func_fatal_error "invalid argument \`$opt'" - fi - done - - if test -n "$libs"; then - if test -n "$lt_sysroot"; then - sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` - sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" - else - sysroot_cmd= - fi - - # Remove sysroot references - if $opt_dry_run; then - for lib in $libs; do - echo "removing references to $lt_sysroot and \`=' prefixes from $lib" - done - else - tmpdir=`func_mktempdir` - for lib in $libs; do - sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ - > $tmpdir/tmp-la - mv -f $tmpdir/tmp-la $lib - done - ${RM}r "$tmpdir" - fi - fi - - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - for libdir in $libdirs; do - if test -n "$finish_cmds"; then - # Do each command in the finish commands. - func_execute_cmds "$finish_cmds" 'admincmds="$admincmds -'"$cmd"'"' - fi - if test -n "$finish_eval"; then - # Do the single finish_eval. - eval cmds=\"$finish_eval\" - $opt_dry_run || eval "$cmds" || func_append admincmds " - $cmds" - fi - done - fi - - # Exit here if they wanted silent mode. - $opt_silent && exit $EXIT_SUCCESS - - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - echo "----------------------------------------------------------------------" - echo "Libraries have been installed in:" - for libdir in $libdirs; do - $ECHO " $libdir" - done - echo - echo "If you ever happen to want to link against installed libraries" - echo "in a given directory, LIBDIR, you must either use libtool, and" - echo "specify the full pathname of the library, or use the \`-LLIBDIR'" - echo "flag during linking and do at least one of the following:" - if test -n "$shlibpath_var"; then - echo " - add LIBDIR to the \`$shlibpath_var' environment variable" - echo " during execution" - fi - if test -n "$runpath_var"; then - echo " - add LIBDIR to the \`$runpath_var' environment variable" - echo " during linking" - fi - if test -n "$hardcode_libdir_flag_spec"; then - libdir=LIBDIR - eval flag=\"$hardcode_libdir_flag_spec\" - - $ECHO " - use the \`$flag' linker flag" - fi - if test -n "$admincmds"; then - $ECHO " - have your system administrator run these commands:$admincmds" - fi - if test -f /etc/ld.so.conf; then - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" - fi - echo - - echo "See any operating system documentation about shared libraries for" - case $host in - solaris2.[6789]|solaris2.1[0-9]) - echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" - echo "pages." - ;; - *) - echo "more information, such as the ld(1) and ld.so(8) manual pages." - ;; - esac - echo "----------------------------------------------------------------------" - fi - exit $EXIT_SUCCESS -} - -test "$opt_mode" = finish && func_mode_finish ${1+"$@"} - - -# func_mode_install arg... -func_mode_install () -{ - $opt_debug - # 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. - case $nonopt in *shtool*) :;; *) false;; esac; then - # Aesthetically quote it. - func_quote_for_eval "$nonopt" - install_prog="$func_quote_for_eval_result " - arg=$1 - shift - else - install_prog= - arg=$nonopt - fi - - # The real first argument should be the name of the installation program. - # Aesthetically quote it. - func_quote_for_eval "$arg" - func_append install_prog "$func_quote_for_eval_result" - install_shared_prog=$install_prog - case " $install_prog " in - *[\\\ /]cp\ *) install_cp=: ;; - *) install_cp=false ;; - esac - - # We need to accept at least all the BSD install flags. - dest= - files= - opts= - prev= - install_type= - isdir=no - stripme= - no_mode=: - for arg - do - arg2= - if test -n "$dest"; then - func_append files " $dest" - dest=$arg - continue - fi - - case $arg in - -d) isdir=yes ;; - -f) - if $install_cp; then :; else - prev=$arg - fi - ;; - -g | -m | -o) - prev=$arg - ;; - -s) - stripme=" -s" - continue - ;; - -*) - ;; - *) - # If the previous option needed an argument, then skip it. - if test -n "$prev"; then - if test "x$prev" = x-m && test -n "$install_override_mode"; then - arg2=$install_override_mode - no_mode=false - fi - prev= - else - dest=$arg - continue - fi - ;; - esac - - # Aesthetically quote the argument. - func_quote_for_eval "$arg" - func_append install_prog " $func_quote_for_eval_result" - if test -n "$arg2"; then - func_quote_for_eval "$arg2" - fi - func_append install_shared_prog " $func_quote_for_eval_result" - done - - test -z "$install_prog" && \ - func_fatal_help "you must specify an install program" - - test -n "$prev" && \ - func_fatal_help "the \`$prev' option requires an argument" - - if test -n "$install_override_mode" && $no_mode; then - if $install_cp; then :; else - func_quote_for_eval "$install_override_mode" - func_append install_shared_prog " -m $func_quote_for_eval_result" - fi - fi - - if test -z "$files"; then - if test -z "$dest"; then - func_fatal_help "no file or destination specified" - else - func_fatal_help "you must specify a destination" - fi - fi - - # Strip any trailing slash from the destination. - func_stripname '' '/' "$dest" - dest=$func_stripname_result - - # Check to see that the destination is a directory. - test -d "$dest" && isdir=yes - if test "$isdir" = yes; then - destdir="$dest" - destname= - else - func_dirname_and_basename "$dest" "" "." - destdir="$func_dirname_result" - destname="$func_basename_result" - - # Not a directory, so check to see that there is only one file specified. - set dummy $files; shift - test "$#" -gt 1 && \ - func_fatal_help "\`$dest' is not a directory" - fi - case $destdir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - for file in $files; do - case $file in - *.lo) ;; - *) - func_fatal_help "\`$destdir' must be an absolute directory name" - ;; - esac - done - ;; - esac - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic="$magic" - - staticlibs= - future_libdirs= - current_libdirs= - for file in $files; do - - # Do each installation. - case $file in - *.$libext) - # Do the static libraries later. - func_append staticlibs " $file" - ;; - - *.la) - func_resolve_sysroot "$file" - file=$func_resolve_sysroot_result - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$file" \ - || func_fatal_help "\`$file' is not a valid libtool archive" - - library_names= - old_library= - relink_command= - func_source "$file" - - # Add the libdir to current_libdirs if it is the destination. - if test "X$destdir" = "X$libdir"; then - case "$current_libdirs " in - *" $libdir "*) ;; - *) func_append current_libdirs " $libdir" ;; - esac - else - # Note the libdir as a future libdir. - case "$future_libdirs " in - *" $libdir "*) ;; - *) func_append future_libdirs " $libdir" ;; - esac - fi - - func_dirname "$file" "/" "" - dir="$func_dirname_result" - func_append dir "$objdir" - - if test -n "$relink_command"; then - # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` - - # Don't allow the user to place us outside of our expected - # location b/c this prevents finding dependent libraries that - # are installed to the same prefix. - # At present, this check doesn't affect windows .dll's that - # are installed into $libdir/../bin (currently, that works fine) - # but it's something to keep an eye on. - test "$inst_prefix_dir" = "$destdir" && \ - func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" - - if test -n "$inst_prefix_dir"; then - # Stick the inst_prefix_dir data into the link command. - relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` - else - relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` - fi - - func_warning "relinking \`$file'" - func_show_eval "$relink_command" \ - 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' - fi - - # See the names of the shared library. - set dummy $library_names; shift - if test -n "$1"; then - realname="$1" - shift - - srcname="$realname" - test -n "$relink_command" && srcname="$realname"T - - # Install the shared library and build the symlinks. - func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ - 'exit $?' - tstripme="$stripme" - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - case $realname in - *.dll.a) - tstripme="" - ;; - esac - ;; - esac - if test -n "$tstripme" && test -n "$striplib"; then - func_show_eval "$striplib $destdir/$realname" 'exit $?' - fi - - if test "$#" -gt 0; then - # Delete the old symlinks, and create new ones. - # Try `ln -sf' first, because the `ln' binary might depend on - # the symlink we replace! Solaris /bin/ln does not understand -f, - # so we also need to try rm && ln -s. - for linkname - do - test "$linkname" != "$realname" \ - && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" - done - fi - - # Do each command in the postinstall commands. - lib="$destdir/$realname" - func_execute_cmds "$postinstall_cmds" 'exit $?' - fi - - # Install the pseudo-library for information purposes. - func_basename "$file" - name="$func_basename_result" - instname="$dir/$name"i - func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' - - # Maybe install the static library, too. - test -n "$old_library" && func_append staticlibs " $dir/$old_library" - ;; - - *.lo) - # Install (i.e. copy) a libtool object. - - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - func_basename "$file" - destfile="$func_basename_result" - destfile="$destdir/$destfile" - fi - - # Deduce the name of the destination old-style object file. - case $destfile in - *.lo) - func_lo2o "$destfile" - staticdest=$func_lo2o_result - ;; - *.$objext) - staticdest="$destfile" - destfile= - ;; - *) - func_fatal_help "cannot copy a libtool object to \`$destfile'" - ;; - esac - - # Install the libtool object if requested. - test -n "$destfile" && \ - func_show_eval "$install_prog $file $destfile" 'exit $?' - - # Install the old object if enabled. - if test "$build_old_libs" = yes; then - # Deduce the name of the old-style object file. - func_lo2o "$file" - staticobj=$func_lo2o_result - func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' - fi - exit $EXIT_SUCCESS - ;; - - *) - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - func_basename "$file" - destfile="$func_basename_result" - destfile="$destdir/$destfile" - fi - - # If the file is missing, and there is a .exe on the end, strip it - # because it is most likely a libtool script we actually want to - # install - stripped_ext="" - case $file in - *.exe) - if test ! -f "$file"; then - func_stripname '' '.exe' "$file" - file=$func_stripname_result - stripped_ext=".exe" - fi - ;; - esac - - # Do a test to see if this is really a libtool program. - case $host in - *cygwin* | *mingw*) - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - wrapper=$func_ltwrapper_scriptname_result - else - func_stripname '' '.exe' "$file" - wrapper=$func_stripname_result - fi - ;; - *) - wrapper=$file - ;; - esac - if func_ltwrapper_script_p "$wrapper"; then - notinst_deplibs= - relink_command= - - func_source "$wrapper" - - # Check the variables that should have been set. - test -z "$generated_by_libtool_version" && \ - func_fatal_error "invalid libtool wrapper script \`$wrapper'" - - finalize=yes - for lib in $notinst_deplibs; do - # Check to see that each library is installed. - libdir= - if test -f "$lib"; then - func_source "$lib" - fi - libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test - if test -n "$libdir" && test ! -f "$libfile"; then - func_warning "\`$lib' has not been installed in \`$libdir'" - finalize=no - fi - done - - relink_command= - func_source "$wrapper" - - outputname= - if test "$fast_install" = no && test -n "$relink_command"; then - $opt_dry_run || { - if test "$finalize" = yes; then - tmpdir=`func_mktempdir` - func_basename "$file$stripped_ext" - file="$func_basename_result" - outputname="$tmpdir/$file" - # Replace the output file specification. - relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` - - $opt_silent || { - func_quote_for_expand "$relink_command" - eval "func_echo $func_quote_for_expand_result" - } - if eval "$relink_command"; then : - else - func_error "error: relink \`$file' with the above command before installing it" - $opt_dry_run || ${RM}r "$tmpdir" - continue - fi - file="$outputname" - else - func_warning "cannot relink \`$file'" - fi - } - else - # Install the binary that we compiled earlier. - file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` - fi - fi - - # remove .exe since cygwin /usr/bin/install will append another - # one anyway - case $install_prog,$host in - */usr/bin/install*,*cygwin*) - case $file:$destfile in - *.exe:*.exe) - # this is ok - ;; - *.exe:*) - destfile=$destfile.exe - ;; - *:*.exe) - func_stripname '' '.exe' "$destfile" - destfile=$func_stripname_result - ;; - esac - ;; - esac - func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' - $opt_dry_run || if test -n "$outputname"; then - ${RM}r "$tmpdir" - fi - ;; - esac - done - - for file in $staticlibs; do - func_basename "$file" - name="$func_basename_result" - - # Set up the ranlib parameters. - oldlib="$destdir/$name" - func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 - tool_oldlib=$func_to_tool_file_result - - func_show_eval "$install_prog \$file \$oldlib" 'exit $?' - - if test -n "$stripme" && test -n "$old_striplib"; then - func_show_eval "$old_striplib $tool_oldlib" 'exit $?' - fi - - # Do each command in the postinstall commands. - func_execute_cmds "$old_postinstall_cmds" 'exit $?' - done - - test -n "$future_libdirs" && \ - func_warning "remember to run \`$progname --finish$future_libdirs'" - - if test -n "$current_libdirs"; then - # Maybe just do a dry run. - $opt_dry_run && current_libdirs=" -n$current_libdirs" - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' - else - exit $EXIT_SUCCESS - fi -} - -test "$opt_mode" = install && func_mode_install ${1+"$@"} - - -# func_generate_dlsyms outputname originator pic_p -# Extract symbols from dlprefiles and create ${outputname}S.o with -# a dlpreopen symbol table. -func_generate_dlsyms () -{ - $opt_debug - my_outputname="$1" - my_originator="$2" - my_pic_p="${3-no}" - my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` - my_dlsyms= - - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - if test -n "$NM" && test -n "$global_symbol_pipe"; then - my_dlsyms="${my_outputname}S.c" - else - func_error "not configured to extract global symbols from dlpreopened files" - fi - fi - - if test -n "$my_dlsyms"; then - case $my_dlsyms in - "") ;; - *.c) - # Discover the nlist of each of the dlfiles. - nlist="$output_objdir/${my_outputname}.nm" - - func_show_eval "$RM $nlist ${nlist}S ${nlist}T" - - # Parse the name list into a source file. - func_verbose "creating $output_objdir/$my_dlsyms" - - $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ -/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ -/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ - -#ifdef __cplusplus -extern \"C\" { -#endif - -#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) -#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" -#endif - -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) -/* DATA imports from DLLs on WIN32 con't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT_DLSYM_CONST -#elif defined(__osf__) -/* This system does not cope well with relocations in const data. */ -# define LT_DLSYM_CONST -#else -# define LT_DLSYM_CONST const -#endif - -/* External symbol declarations for the compiler. */\ -" - - if test "$dlself" = yes; then - func_verbose "generating symbol list for \`$output'" - - $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" - - # Add our own program objects to the symbol list. - progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` - for progfile in $progfiles; do - func_to_tool_file "$progfile" func_convert_file_msys_to_w32 - func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" - $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" - done - - if test -n "$exclude_expsyms"; then - $opt_dry_run || { - eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - } - fi - - if test -n "$export_symbols_regex"; then - $opt_dry_run || { - eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - } - fi - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - export_symbols="$output_objdir/$outputname.exp" - $opt_dry_run || { - $RM $export_symbols - eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' - case $host in - *cygwin* | *mingw* | *cegcc* ) - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' - ;; - esac - } - else - $opt_dry_run || { - eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' - eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - case $host in - *cygwin* | *mingw* | *cegcc* ) - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' - ;; - esac - } - fi - fi - - for dlprefile in $dlprefiles; do - func_verbose "extracting global C symbols from \`$dlprefile'" - func_basename "$dlprefile" - name="$func_basename_result" - case $host in - *cygwin* | *mingw* | *cegcc* ) - # if an import library, we need to obtain dlname - if func_win32_import_lib_p "$dlprefile"; then - func_tr_sh "$dlprefile" - eval "curr_lafile=\$libfile_$func_tr_sh_result" - dlprefile_dlbasename="" - if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then - # Use subshell, to avoid clobbering current variable values - dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` - if test -n "$dlprefile_dlname" ; then - func_basename "$dlprefile_dlname" - dlprefile_dlbasename="$func_basename_result" - else - # no lafile. user explicitly requested -dlpreopen . - $sharedlib_from_linklib_cmd "$dlprefile" - dlprefile_dlbasename=$sharedlib_from_linklib_result - fi - fi - $opt_dry_run || { - if test -n "$dlprefile_dlbasename" ; then - eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' - else - func_warning "Could not compute DLL name from $name" - eval '$ECHO ": $name " >> "$nlist"' - fi - func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 - eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | - $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" - } - else # not an import lib - $opt_dry_run || { - eval '$ECHO ": $name " >> "$nlist"' - func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 - eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" - } - fi - ;; - *) - $opt_dry_run || { - eval '$ECHO ": $name " >> "$nlist"' - func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 - eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" - } - ;; - esac - done - - $opt_dry_run || { - # Make sure we have at least an empty file. - test -f "$nlist" || : > "$nlist" - - if test -n "$exclude_expsyms"; then - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T - $MV "$nlist"T "$nlist" - fi - - # Try sorting and uniquifying the output. - if $GREP -v "^: " < "$nlist" | - if sort -k 3 /dev/null 2>&1; then - sort -k 3 - else - sort +2 - fi | - uniq > "$nlist"S; then - : - else - $GREP -v "^: " < "$nlist" > "$nlist"S - fi - - if test -f "$nlist"S; then - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' - else - echo '/* NONE */' >> "$output_objdir/$my_dlsyms" - fi - - echo >> "$output_objdir/$my_dlsyms" "\ - -/* The mapping between symbol names and symbols. */ -typedef struct { - const char *name; - void *address; -} lt_dlsymlist; -extern LT_DLSYM_CONST lt_dlsymlist -lt_${my_prefix}_LTX_preloaded_symbols[]; -LT_DLSYM_CONST lt_dlsymlist -lt_${my_prefix}_LTX_preloaded_symbols[] = -{\ - { \"$my_originator\", (void *) 0 }," - - case $need_lib_prefix in - no) - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" - ;; - *) - eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" - ;; - esac - echo >> "$output_objdir/$my_dlsyms" "\ - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt_${my_prefix}_LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif\ -" - } # !$opt_dry_run - - pic_flag_for_symtable= - case "$compile_command " in - *" -static "*) ;; - *) - case $host in - # compiling the symbol table file with pic_flag works around - # a FreeBSD bug that causes programs to crash when -lm is - # linked before any other PIC object. But we must not use - # pic_flag when linking with -static. The problem exists in - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. - *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) - pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; - *-*-hpux*) - pic_flag_for_symtable=" $pic_flag" ;; - *) - if test "X$my_pic_p" != Xno; then - pic_flag_for_symtable=" $pic_flag" - fi - ;; - esac - ;; - esac - symtab_cflags= - for arg in $LTCFLAGS; do - case $arg in - -pie | -fpie | -fPIE) ;; - *) func_append symtab_cflags " $arg" ;; - esac - done - - # Now compile the dynamic symbol file. - func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' - - # Clean up the generated files. - func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' - - # Transform the symbol file into the correct name. - symfileobj="$output_objdir/${my_outputname}S.$objext" - case $host in - *cygwin* | *mingw* | *cegcc* ) - if test -f "$output_objdir/$my_outputname.def"; then - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - else - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` - fi - ;; - *) - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` - ;; - esac - ;; - *) - func_fatal_error "unknown suffix for \`$my_dlsyms'" - ;; - esac - else - # We keep going just in case the user didn't refer to - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe - # really was required. - - # Nullify the symbol file. - compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` - fi -} - -# func_win32_libid arg -# return the library type of file 'arg' -# -# Need a lot of goo to handle *both* DLLs and import libs -# Has to be a shell function in order to 'eat' the argument -# that is supplied when $file_magic_command is called. -# Despite the name, also deal with 64 bit binaries. -func_win32_libid () -{ - $opt_debug - win32_libid_type="unknown" - win32_fileres=`file -L $1 2>/dev/null` - case $win32_fileres in - *ar\ archive\ import\ library*) # definitely import - win32_libid_type="x86 archive import" - ;; - *ar\ archive*) # could be an import, or static - # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | - $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then - func_to_tool_file "$1" func_convert_file_msys_to_w32 - win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | - $SED -n -e ' - 1,100{ - / I /{ - s,.*,import, - p - q - } - }'` - case $win32_nmres in - import*) win32_libid_type="x86 archive import";; - *) win32_libid_type="x86 archive static";; - esac - fi - ;; - *DLL*) - win32_libid_type="x86 DLL" - ;; - *executable*) # but shell scripts are "executable" too... - case $win32_fileres in - *MS\ Windows\ PE\ Intel*) - win32_libid_type="x86 DLL" - ;; - esac - ;; - esac - $ECHO "$win32_libid_type" -} - -# func_cygming_dll_for_implib ARG -# -# Platform-specific function to extract the -# name of the DLL associated with the specified -# import library ARG. -# Invoked by eval'ing the libtool variable -# $sharedlib_from_linklib_cmd -# Result is available in the variable -# $sharedlib_from_linklib_result -func_cygming_dll_for_implib () -{ - $opt_debug - sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` -} - -# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs -# -# The is the core of a fallback implementation of a -# platform-specific function to extract the name of the -# DLL associated with the specified import library LIBNAME. -# -# SECTION_NAME is either .idata$6 or .idata$7, depending -# on the platform and compiler that created the implib. -# -# Echos the name of the DLL associated with the -# specified import library. -func_cygming_dll_for_implib_fallback_core () -{ - $opt_debug - match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` - $OBJDUMP -s --section "$1" "$2" 2>/dev/null | - $SED '/^Contents of section '"$match_literal"':/{ - # Place marker at beginning of archive member dllname section - s/.*/====MARK====/ - p - d - } - # These lines can sometimes be longer than 43 characters, but - # are always uninteresting - /:[ ]*file format pe[i]\{,1\}-/d - /^In archive [^:]*:/d - # Ensure marker is printed - /^====MARK====/p - # Remove all lines with less than 43 characters - /^.\{43\}/!d - # From remaining lines, remove first 43 characters - s/^.\{43\}//' | - $SED -n ' - # Join marker and all lines until next marker into a single line - /^====MARK====/ b para - H - $ b para - b - :para - x - s/\n//g - # Remove the marker - s/^====MARK====// - # Remove trailing dots and whitespace - s/[\. \t]*$// - # Print - /./p' | - # we now have a list, one entry per line, of the stringified - # contents of the appropriate section of all members of the - # archive which possess that section. Heuristic: eliminate - # all those which have a first or second character that is - # a '.' (that is, objdump's representation of an unprintable - # character.) This should work for all archives with less than - # 0x302f exports -- but will fail for DLLs whose name actually - # begins with a literal '.' or a single character followed by - # a '.'. - # - # Of those that remain, print the first one. - $SED -e '/^\./d;/^.\./d;q' -} - -# func_cygming_gnu_implib_p ARG -# This predicate returns with zero status (TRUE) if -# ARG is a GNU/binutils-style import library. Returns -# with nonzero status (FALSE) otherwise. -func_cygming_gnu_implib_p () -{ - $opt_debug - func_to_tool_file "$1" func_convert_file_msys_to_w32 - func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` - test -n "$func_cygming_gnu_implib_tmp" -} - -# func_cygming_ms_implib_p ARG -# This predicate returns with zero status (TRUE) if -# ARG is an MS-style import library. Returns -# with nonzero status (FALSE) otherwise. -func_cygming_ms_implib_p () -{ - $opt_debug - func_to_tool_file "$1" func_convert_file_msys_to_w32 - func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` - test -n "$func_cygming_ms_implib_tmp" -} - -# func_cygming_dll_for_implib_fallback ARG -# Platform-specific function to extract the -# name of the DLL associated with the specified -# import library ARG. -# -# This fallback implementation is for use when $DLLTOOL -# does not support the --identify-strict option. -# Invoked by eval'ing the libtool variable -# $sharedlib_from_linklib_cmd -# Result is available in the variable -# $sharedlib_from_linklib_result -func_cygming_dll_for_implib_fallback () -{ - $opt_debug - if func_cygming_gnu_implib_p "$1" ; then - # binutils import library - sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` - elif func_cygming_ms_implib_p "$1" ; then - # ms-generated import library - sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` - else - # unknown - sharedlib_from_linklib_result="" - fi -} - - -# func_extract_an_archive dir oldlib -func_extract_an_archive () -{ - $opt_debug - f_ex_an_ar_dir="$1"; shift - f_ex_an_ar_oldlib="$1" - if test "$lock_old_archive_extraction" = yes; then - lockfile=$f_ex_an_ar_oldlib.lock - until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do - func_echo "Waiting for $lockfile to be removed" - sleep 2 - done - fi - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ - 'stat=$?; rm -f "$lockfile"; exit $stat' - if test "$lock_old_archive_extraction" = yes; then - $opt_dry_run || rm -f "$lockfile" - fi - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then - : - else - func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" - fi -} - - -# func_extract_archives gentop oldlib ... -func_extract_archives () -{ - $opt_debug - my_gentop="$1"; shift - my_oldlibs=${1+"$@"} - my_oldobjs="" - my_xlib="" - my_xabs="" - my_xdir="" - - for my_xlib in $my_oldlibs; do - # Extract the objects. - case $my_xlib in - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; - *) my_xabs=`pwd`"/$my_xlib" ;; - esac - func_basename "$my_xlib" - my_xlib="$func_basename_result" - my_xlib_u=$my_xlib - while :; do - case " $extracted_archives " in - *" $my_xlib_u "*) - func_arith $extracted_serial + 1 - extracted_serial=$func_arith_result - my_xlib_u=lt$extracted_serial-$my_xlib ;; - *) break ;; - esac - done - extracted_archives="$extracted_archives $my_xlib_u" - my_xdir="$my_gentop/$my_xlib_u" - - func_mkdir_p "$my_xdir" - - case $host in - *-darwin*) - func_verbose "Extracting $my_xabs" - # Do not bother doing anything if just a dry run - $opt_dry_run || { - darwin_orig_dir=`pwd` - cd $my_xdir || exit $? - darwin_archive=$my_xabs - darwin_curdir=`pwd` - darwin_base_archive=`basename "$darwin_archive"` - darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` - if test -n "$darwin_arches"; then - darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` - darwin_arch= - func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" - for darwin_arch in $darwin_arches ; do - func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" - $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" - func_extract_an_archive "`pwd`" "${darwin_base_archive}" - cd "$darwin_curdir" - $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" - done # $darwin_arches - ## Okay now we've a bunch of thin objects, gotta fatten them up :) - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` - darwin_file= - darwin_files= - for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` - $LIPO -create -output "$darwin_file" $darwin_files - done # $darwin_filelist - $RM -rf unfat-$$ - cd "$darwin_orig_dir" - else - cd $darwin_orig_dir - func_extract_an_archive "$my_xdir" "$my_xabs" - fi # $darwin_arches - } # !$opt_dry_run - ;; - *) - func_extract_an_archive "$my_xdir" "$my_xabs" - ;; - esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` - done - - func_extract_archives_result="$my_oldobjs" -} - - -# func_emit_wrapper [arg=no] -# -# Emit a libtool wrapper script on stdout. -# Don't directly open a file because we may want to -# incorporate the script contents within a cygwin/mingw -# wrapper executable. Must ONLY be called from within -# func_mode_link because it depends on a number of variables -# set therein. -# -# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR -# variable will take. If 'yes', then the emitted script -# will assume that the directory in which it is stored is -# the $objdir directory. This is a cygwin/mingw-specific -# behavior. -func_emit_wrapper () -{ - func_emit_wrapper_arg1=${1-no} - - $ECHO "\ -#! $SHELL - -# $output - temporary wrapper script for $objdir/$outputname -# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION -# -# The $output program cannot be directly executed until all the libtool -# libraries that it depends on are installed. -# -# This wrapper script should never be moved out of the build directory. -# If it is, it will not operate correctly. - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -sed_quote_subst='$sed_quote_subst' - -# Be Bourne compatible -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac -fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -relink_command=\"$relink_command\" - -# This environment variable determines our operation mode. -if test \"\$libtool_install_magic\" = \"$magic\"; then - # install mode needs the following variables: - generated_by_libtool_version='$macro_version' - notinst_deplibs='$notinst_deplibs' -else - # When we are sourced in execute mode, \$file and \$ECHO are already set. - if test \"\$libtool_execute_magic\" != \"$magic\"; then - file=\"\$0\"" - - qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` - $ECHO "\ - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$1 -_LTECHO_EOF' -} - ECHO=\"$qECHO\" - fi - -# Very basic option parsing. These options are (a) specific to -# the libtool wrapper, (b) are identical between the wrapper -# /script/ and the wrapper /executable/ which is used only on -# windows platforms, and (c) all begin with the string "--lt-" -# (application programs are unlikely to have options which match -# this pattern). -# -# There are only two supported options: --lt-debug and -# --lt-dump-script. There is, deliberately, no --lt-help. -# -# The first argument to this parsing function should be the -# script's $0 value, followed by "$@". -lt_option_debug= -func_parse_lt_options () -{ - lt_script_arg0=\$0 - shift - for lt_opt - do - case \"\$lt_opt\" in - --lt-debug) lt_option_debug=1 ;; - --lt-dump-script) - lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` - test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. - lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` - cat \"\$lt_dump_D/\$lt_dump_F\" - exit 0 - ;; - --lt-*) - \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 - exit 1 - ;; - esac - done - - # Print the debug banner immediately: - if test -n \"\$lt_option_debug\"; then - echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 - fi -} - -# Used when --lt-debug. Prints its arguments to stdout -# (redirection is the responsibility of the caller) -func_lt_dump_args () -{ - lt_dump_args_N=1; - for lt_arg - do - \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" - lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` - done -} - -# Core function for launching the target application -func_exec_program_core () -{ -" - case $host in - # Backslashes separate directories on plain windows - *-*-mingw | *-*-os2* | *-cegcc*) - $ECHO "\ - if test -n \"\$lt_option_debug\"; then - \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 - func_lt_dump_args \${1+\"\$@\"} 1>&2 - fi - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} -" - ;; - - *) - $ECHO "\ - if test -n \"\$lt_option_debug\"; then - \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 - func_lt_dump_args \${1+\"\$@\"} 1>&2 - fi - exec \"\$progdir/\$program\" \${1+\"\$@\"} -" - ;; - esac - $ECHO "\ - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 - exit 1 -} - -# A function to encapsulate launching the target application -# Strips options in the --lt-* namespace from \$@ and -# launches target application with the remaining arguments. -func_exec_program () -{ - case \" \$* \" in - *\\ --lt-*) - for lt_wr_arg - do - case \$lt_wr_arg in - --lt-*) ;; - *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; - esac - shift - done ;; - esac - func_exec_program_core \${1+\"\$@\"} -} - - # Parse options - func_parse_lt_options \"\$0\" \${1+\"\$@\"} - - # Find the directory that this script lives in. - thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` - test \"x\$thisdir\" = \"x\$file\" && thisdir=. - - # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` - while test -n \"\$file\"; do - destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` - - # If there was a directory component, then change thisdir. - if test \"x\$destdir\" != \"x\$file\"; then - case \"\$destdir\" in - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; - *) thisdir=\"\$thisdir/\$destdir\" ;; - esac - fi - - file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` - done - - # Usually 'no', except on cygwin/mingw when embedded into - # the cwrapper. - WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 - if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then - # special case for '.' - if test \"\$thisdir\" = \".\"; then - thisdir=\`pwd\` - fi - # remove .libs from thisdir - case \"\$thisdir\" in - *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; - $objdir ) thisdir=. ;; - esac - fi - - # Try to get the absolute directory name. - absdir=\`cd \"\$thisdir\" && pwd\` - test -n \"\$absdir\" && thisdir=\"\$absdir\" -" - - if test "$fast_install" = yes; then - $ECHO "\ - program=lt-'$outputname'$exeext - progdir=\"\$thisdir/$objdir\" - - if test ! -f \"\$progdir/\$program\" || - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ - test \"X\$file\" != \"X\$progdir/\$program\"; }; then - - file=\"\$\$-\$program\" - - if test ! -d \"\$progdir\"; then - $MKDIR \"\$progdir\" - else - $RM \"\$progdir/\$file\" - fi" - - $ECHO "\ - - # relink executable if necessary - if test -n \"\$relink_command\"; then - if relink_command_output=\`eval \$relink_command 2>&1\`; then : - else - $ECHO \"\$relink_command_output\" >&2 - $RM \"\$progdir/\$file\" - exit 1 - fi - fi - - $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || - { $RM \"\$progdir/\$program\"; - $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } - $RM \"\$progdir/\$file\" - fi" - else - $ECHO "\ - program='$outputname' - progdir=\"\$thisdir/$objdir\" -" - fi - - $ECHO "\ - - if test -f \"\$progdir/\$program\"; then" - - # fixup the dll searchpath if we need to. - # - # Fix the DLL searchpath if we need to. Do this before prepending - # to shlibpath, because on Windows, both are PATH and uninstalled - # libraries must come first. - if test -n "$dllsearchpath"; then - $ECHO "\ - # Add the dll search path components to the executable PATH - PATH=$dllsearchpath:\$PATH -" - fi - - # Export our shlibpath_var if we have one. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then - $ECHO "\ - # Add our own library path to $shlibpath_var - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" - - # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 sed - $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` - - export $shlibpath_var -" - fi - - $ECHO "\ - if test \"\$libtool_execute_magic\" != \"$magic\"; then - # Run the actual program with our arguments. - func_exec_program \${1+\"\$@\"} - fi - else - # The program doesn't exist. - \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 - \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 - \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 - exit 1 - fi -fi\ -" -} - - -# func_emit_cwrapperexe_src -# emit the source code for a wrapper executable on stdout -# Must ONLY be called from within func_mode_link because -# it depends on a number of variable set therein. -func_emit_cwrapperexe_src () -{ - cat < -#include -#ifdef _MSC_VER -# include -# include -# include -#else -# include -# include -# ifdef __CYGWIN__ -# include -# endif -#endif -#include -#include -#include -#include -#include -#include -#include -#include - -/* declarations of non-ANSI functions */ -#if defined(__MINGW32__) -# ifdef __STRICT_ANSI__ -int _putenv (const char *); -# endif -#elif defined(__CYGWIN__) -# ifdef __STRICT_ANSI__ -char *realpath (const char *, char *); -int putenv (char *); -int setenv (const char *, const char *, int); -# endif -/* #elif defined (other platforms) ... */ -#endif - -/* portability defines, excluding path handling macros */ -#if defined(_MSC_VER) -# define setmode _setmode -# define stat _stat -# define chmod _chmod -# define getcwd _getcwd -# define putenv _putenv -# define S_IXUSR _S_IEXEC -# ifndef _INTPTR_T_DEFINED -# define _INTPTR_T_DEFINED -# define intptr_t int -# endif -#elif defined(__MINGW32__) -# define setmode _setmode -# define stat _stat -# define chmod _chmod -# define getcwd _getcwd -# define putenv _putenv -#elif defined(__CYGWIN__) -# define HAVE_SETENV -# define FOPEN_WB "wb" -/* #elif defined (other platforms) ... */ -#endif - -#if defined(PATH_MAX) -# define LT_PATHMAX PATH_MAX -#elif defined(MAXPATHLEN) -# define LT_PATHMAX MAXPATHLEN -#else -# define LT_PATHMAX 1024 -#endif - -#ifndef S_IXOTH -# define S_IXOTH 0 -#endif -#ifndef S_IXGRP -# define S_IXGRP 0 -#endif - -/* path handling portability macros */ -#ifndef DIR_SEPARATOR -# define DIR_SEPARATOR '/' -# define PATH_SEPARATOR ':' -#endif - -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ - defined (__OS2__) -# define HAVE_DOS_BASED_FILE_SYSTEM -# define FOPEN_WB "wb" -# ifndef DIR_SEPARATOR_2 -# define DIR_SEPARATOR_2 '\\' -# endif -# ifndef PATH_SEPARATOR_2 -# define PATH_SEPARATOR_2 ';' -# endif -#endif - -#ifndef DIR_SEPARATOR_2 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) -#else /* DIR_SEPARATOR_2 */ -# define IS_DIR_SEPARATOR(ch) \ - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) -#endif /* DIR_SEPARATOR_2 */ - -#ifndef PATH_SEPARATOR_2 -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) -#else /* PATH_SEPARATOR_2 */ -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) -#endif /* PATH_SEPARATOR_2 */ - -#ifndef FOPEN_WB -# define FOPEN_WB "w" -#endif -#ifndef _O_BINARY -# define _O_BINARY 0 -#endif - -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) -#define XFREE(stale) do { \ - if (stale) { free ((void *) stale); stale = 0; } \ -} while (0) - -#if defined(LT_DEBUGWRAPPER) -static int lt_debug = 1; -#else -static int lt_debug = 0; -#endif - -const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ - -void *xmalloc (size_t num); -char *xstrdup (const char *string); -const char *base_name (const char *name); -char *find_executable (const char *wrapper); -char *chase_symlinks (const char *pathspec); -int make_executable (const char *path); -int check_executable (const char *path); -char *strendzap (char *str, const char *pat); -void lt_debugprintf (const char *file, int line, const char *fmt, ...); -void lt_fatal (const char *file, int line, const char *message, ...); -static const char *nonnull (const char *s); -static const char *nonempty (const char *s); -void lt_setenv (const char *name, const char *value); -char *lt_extend_str (const char *orig_value, const char *add, int to_end); -void lt_update_exe_path (const char *name, const char *value); -void lt_update_lib_path (const char *name, const char *value); -char **prepare_spawn (char **argv); -void lt_dump_script (FILE *f); -EOF - - cat <= 0) - && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) - return 1; - else - return 0; -} - -int -make_executable (const char *path) -{ - int rval = 0; - struct stat st; - - lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", - nonempty (path)); - if ((!path) || (!*path)) - return 0; - - if (stat (path, &st) >= 0) - { - rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); - } - return rval; -} - -/* Searches for the full path of the wrapper. Returns - newly allocated full path name if found, NULL otherwise - Does not chase symlinks, even on platforms that support them. -*/ -char * -find_executable (const char *wrapper) -{ - int has_slash = 0; - const char *p; - const char *p_next; - /* static buffer for getcwd */ - char tmp[LT_PATHMAX + 1]; - int tmp_len; - char *concat_name; - - lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", - nonempty (wrapper)); - - if ((wrapper == NULL) || (*wrapper == '\0')) - return NULL; - - /* Absolute path? */ -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') - { - concat_name = xstrdup (wrapper); - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } - else - { -#endif - if (IS_DIR_SEPARATOR (wrapper[0])) - { - concat_name = xstrdup (wrapper); - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - } -#endif - - for (p = wrapper; *p; p++) - if (*p == '/') - { - has_slash = 1; - break; - } - if (!has_slash) - { - /* no slashes; search PATH */ - const char *path = getenv ("PATH"); - if (path != NULL) - { - for (p = path; *p; p = p_next) - { - const char *q; - size_t p_len; - for (q = p; *q; q++) - if (IS_PATH_SEPARATOR (*q)) - break; - p_len = q - p; - p_next = (*q == '\0' ? q : q + 1); - if (p_len == 0) - { - /* empty path: current directory */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", - nonnull (strerror (errno))); - tmp_len = strlen (tmp); - concat_name = - XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - } - else - { - concat_name = - XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, p, p_len); - concat_name[p_len] = '/'; - strcpy (concat_name + p_len + 1, wrapper); - } - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } - } - /* not found in PATH; assume curdir */ - } - /* Relative path | not found in path: prepend cwd */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", - nonnull (strerror (errno))); - tmp_len = strlen (tmp); - concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - return NULL; -} - -char * -chase_symlinks (const char *pathspec) -{ -#ifndef S_ISLNK - return xstrdup (pathspec); -#else - char buf[LT_PATHMAX]; - struct stat s; - char *tmp_pathspec = xstrdup (pathspec); - char *p; - int has_symlinks = 0; - while (strlen (tmp_pathspec) && !has_symlinks) - { - lt_debugprintf (__FILE__, __LINE__, - "checking path component for symlinks: %s\n", - tmp_pathspec); - if (lstat (tmp_pathspec, &s) == 0) - { - if (S_ISLNK (s.st_mode) != 0) - { - has_symlinks = 1; - break; - } - - /* search backwards for last DIR_SEPARATOR */ - p = tmp_pathspec + strlen (tmp_pathspec) - 1; - while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) - p--; - if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) - { - /* no more DIR_SEPARATORS left */ - break; - } - *p = '\0'; - } - else - { - lt_fatal (__FILE__, __LINE__, - "error accessing file \"%s\": %s", - tmp_pathspec, nonnull (strerror (errno))); - } - } - XFREE (tmp_pathspec); - - if (!has_symlinks) - { - return xstrdup (pathspec); - } - - tmp_pathspec = realpath (pathspec, buf); - if (tmp_pathspec == 0) - { - lt_fatal (__FILE__, __LINE__, - "could not follow symlinks for %s", pathspec); - } - return xstrdup (tmp_pathspec); -#endif -} - -char * -strendzap (char *str, const char *pat) -{ - size_t len, patlen; - - assert (str != NULL); - assert (pat != NULL); - - len = strlen (str); - patlen = strlen (pat); - - if (patlen <= len) - { - str += len - patlen; - if (strcmp (str, pat) == 0) - *str = '\0'; - } - return str; -} - -void -lt_debugprintf (const char *file, int line, const char *fmt, ...) -{ - va_list args; - if (lt_debug) - { - (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); - va_start (args, fmt); - (void) vfprintf (stderr, fmt, args); - va_end (args); - } -} - -static void -lt_error_core (int exit_status, const char *file, - int line, const char *mode, - const char *message, va_list ap) -{ - fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); - vfprintf (stderr, message, ap); - fprintf (stderr, ".\n"); - - if (exit_status >= 0) - exit (exit_status); -} - -void -lt_fatal (const char *file, int line, const char *message, ...) -{ - va_list ap; - va_start (ap, message); - lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); - va_end (ap); -} - -static const char * -nonnull (const char *s) -{ - return s ? s : "(null)"; -} - -static const char * -nonempty (const char *s) -{ - return (s && !*s) ? "(empty)" : nonnull (s); -} - -void -lt_setenv (const char *name, const char *value) -{ - lt_debugprintf (__FILE__, __LINE__, - "(lt_setenv) setting '%s' to '%s'\n", - nonnull (name), nonnull (value)); - { -#ifdef HAVE_SETENV - /* always make a copy, for consistency with !HAVE_SETENV */ - char *str = xstrdup (value); - setenv (name, str, 1); -#else - int len = strlen (name) + 1 + strlen (value) + 1; - char *str = XMALLOC (char, len); - sprintf (str, "%s=%s", name, value); - if (putenv (str) != EXIT_SUCCESS) - { - XFREE (str); - } -#endif - } -} - -char * -lt_extend_str (const char *orig_value, const char *add, int to_end) -{ - char *new_value; - if (orig_value && *orig_value) - { - int orig_value_len = strlen (orig_value); - int add_len = strlen (add); - new_value = XMALLOC (char, add_len + orig_value_len + 1); - if (to_end) - { - strcpy (new_value, orig_value); - strcpy (new_value + orig_value_len, add); - } - else - { - strcpy (new_value, add); - strcpy (new_value + add_len, orig_value); - } - } - else - { - new_value = xstrdup (add); - } - return new_value; -} - -void -lt_update_exe_path (const char *name, const char *value) -{ - lt_debugprintf (__FILE__, __LINE__, - "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", - nonnull (name), nonnull (value)); - - if (name && *name && value && *value) - { - char *new_value = lt_extend_str (getenv (name), value, 0); - /* some systems can't cope with a ':'-terminated path #' */ - int len = strlen (new_value); - while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) - { - new_value[len-1] = '\0'; - } - lt_setenv (name, new_value); - XFREE (new_value); - } -} - -void -lt_update_lib_path (const char *name, const char *value) -{ - lt_debugprintf (__FILE__, __LINE__, - "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", - nonnull (name), nonnull (value)); - - if (name && *name && value && *value) - { - char *new_value = lt_extend_str (getenv (name), value, 0); - lt_setenv (name, new_value); - XFREE (new_value); - } -} - -EOF - case $host_os in - mingw*) - cat <<"EOF" - -/* Prepares an argument vector before calling spawn(). - Note that spawn() does not by itself call the command interpreter - (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : - ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); - GetVersionEx(&v); - v.dwPlatformId == VER_PLATFORM_WIN32_NT; - }) ? "cmd.exe" : "command.com"). - Instead it simply concatenates the arguments, separated by ' ', and calls - CreateProcess(). We must quote the arguments since Win32 CreateProcess() - interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a - special way: - - Space and tab are interpreted as delimiters. They are not treated as - delimiters if they are surrounded by double quotes: "...". - - Unescaped double quotes are removed from the input. Their only effect is - that within double quotes, space and tab are treated like normal - characters. - - Backslashes not followed by double quotes are not special. - - But 2*n+1 backslashes followed by a double quote become - n backslashes followed by a double quote (n >= 0): - \" -> " - \\\" -> \" - \\\\\" -> \\" - */ -#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" -#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" -char ** -prepare_spawn (char **argv) -{ - size_t argc; - char **new_argv; - size_t i; - - /* Count number of arguments. */ - for (argc = 0; argv[argc] != NULL; argc++) - ; - - /* Allocate new argument vector. */ - new_argv = XMALLOC (char *, argc + 1); - - /* Put quoted arguments into the new argument vector. */ - for (i = 0; i < argc; i++) - { - const char *string = argv[i]; - - if (string[0] == '\0') - new_argv[i] = xstrdup ("\"\""); - else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) - { - int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); - size_t length; - unsigned int backslashes; - const char *s; - char *quoted_string; - char *p; - - length = 0; - backslashes = 0; - if (quote_around) - length++; - for (s = string; *s != '\0'; s++) - { - char c = *s; - if (c == '"') - length += backslashes + 1; - length++; - if (c == '\\') - backslashes++; - else - backslashes = 0; - } - if (quote_around) - length += backslashes + 1; - - quoted_string = XMALLOC (char, length + 1); - - p = quoted_string; - backslashes = 0; - if (quote_around) - *p++ = '"'; - for (s = string; *s != '\0'; s++) - { - char c = *s; - if (c == '"') - { - unsigned int j; - for (j = backslashes + 1; j > 0; j--) - *p++ = '\\'; - } - *p++ = c; - if (c == '\\') - backslashes++; - else - backslashes = 0; - } - if (quote_around) - { - unsigned int j; - for (j = backslashes; j > 0; j--) - *p++ = '\\'; - *p++ = '"'; - } - *p = '\0'; - - new_argv[i] = quoted_string; - } - else - new_argv[i] = (char *) string; - } - new_argv[argc] = NULL; - - return new_argv; -} -EOF - ;; - esac - - cat <<"EOF" -void lt_dump_script (FILE* f) -{ -EOF - func_emit_wrapper yes | - $SED -n -e ' -s/^\(.\{79\}\)\(..*\)/\1\ -\2/ -h -s/\([\\"]\)/\\\1/g -s/$/\\n/ -s/\([^\n]*\).*/ fputs ("\1", f);/p -g -D' - cat <<"EOF" -} -EOF -} -# end: func_emit_cwrapperexe_src - -# func_win32_import_lib_p ARG -# True if ARG is an import lib, as indicated by $file_magic_cmd -func_win32_import_lib_p () -{ - $opt_debug - case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in - *import*) : ;; - *) false ;; - esac -} - -# func_mode_link arg... -func_mode_link () -{ - $opt_debug - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - # It is impossible to link a dll without this setting, and - # we shouldn't force the makefile maintainer to figure out - # which system we are compiling for in order to pass an extra - # flag for every libtool invocation. - # allow_undefined=no - - # FIXME: Unfortunately, there are problems with the above when trying - # to make a dll which has undefined symbols, in which case not - # even a static library is built. For now, we need to specify - # -no-undefined on the libtool link line when we can be certain - # that all symbols are satisfied, otherwise we get a static library. - allow_undefined=yes - ;; - *) - allow_undefined=yes - ;; - esac - libtool_args=$nonopt - base_compile="$nonopt $@" - compile_command=$nonopt - finalize_command=$nonopt - - compile_rpath= - finalize_rpath= - compile_shlibpath= - finalize_shlibpath= - convenience= - old_convenience= - deplibs= - old_deplibs= - compiler_flags= - linker_flags= - dllsearchpath= - lib_search_path=`pwd` - inst_prefix_dir= - new_inherited_linker_flags= - - avoid_version=no - bindir= - dlfiles= - dlprefiles= - dlself=no - export_dynamic=no - export_symbols= - export_symbols_regex= - generated= - libobjs= - ltlibs= - module=no - no_install=no - objs= - non_pic_objects= - precious_files_regex= - prefer_static_libs=no - preload=no - prev= - prevarg= - release= - rpath= - xrpath= - perm_rpath= - temp_rpath= - thread_safe=no - vinfo= - vinfo_number=no - weak_libs= - single_module="${wl}-single_module" - func_infer_tag $base_compile - - # We need to know -static, to get the right output filenames. - for arg - do - case $arg in - -shared) - test "$build_libtool_libs" != yes && \ - func_fatal_configuration "can not build a shared library" - build_old_libs=no - break - ;; - -all-static | -static | -static-libtool-libs) - case $arg in - -all-static) - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then - func_warning "complete static linking is impossible in this configuration" - fi - if test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - -static) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=built - ;; - -static-libtool-libs) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - esac - build_libtool_libs=no - build_old_libs=yes - break - ;; - esac - done - - # See if our shared archives depend on static archives. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes - - # Go through the arguments, transforming them on the way. - while test "$#" -gt 0; do - arg="$1" - shift - func_quote_for_eval "$arg" - qarg=$func_quote_for_eval_unquoted_result - func_append libtool_args " $func_quote_for_eval_result" - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - output) - func_append compile_command " @OUTPUT@" - func_append finalize_command " @OUTPUT@" - ;; - esac - - case $prev in - bindir) - bindir="$arg" - prev= - continue - ;; - dlfiles|dlprefiles) - if test "$preload" = no; then - # Add the symbol object into the linking commands. - func_append compile_command " @SYMFILE@" - func_append 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 - func_append dlfiles " $arg" - else - func_append dlprefiles " $arg" - fi - prev= - continue - ;; - esac - ;; - expsyms) - export_symbols="$arg" - test -f "$arg" \ - || func_fatal_error "symbol file \`$arg' does not exist" - prev= - continue - ;; - expsyms_regex) - export_symbols_regex="$arg" - prev= - continue - ;; - framework) - case $host in - *-*-darwin*) - case "$deplibs " in - *" $qarg.ltframework "*) ;; - *) func_append deplibs " $qarg.ltframework" # this is fixed later - ;; - esac - ;; - esac - prev= - continue - ;; - inst_prefix) - inst_prefix_dir="$arg" - prev= - continue - ;; - objectlist) - if test -f "$arg"; then - save_arg=$arg - moreargs= - for fil in `cat "$save_arg"` - do -# func_append moreargs " $fil" - arg=$fil - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if func_lalib_unsafe_p "$arg"; then - pic_object= - non_pic_object= - - # Read the .lo file - func_source "$arg" - - if test -z "$pic_object" || - test -z "$non_pic_object" || - test "$pic_object" = none && - test "$non_pic_object" = none; then - func_fatal_error "cannot find name of object for \`$arg'" - fi - - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - if test "$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 - func_append dlfiles " $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - func_append dlprefiles " $pic_object" - prev= - fi - - # A PIC object. - func_append libobjs " $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$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 - func_append 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" - func_append non_pic_objects " $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if $opt_dry_run; then - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - func_lo2o "$arg" - pic_object=$xdir$objdir/$func_lo2o_result - non_pic_object=$xdir$func_lo2o_result - func_append libobjs " $pic_object" - func_append non_pic_objects " $non_pic_object" - else - func_fatal_error "\`$arg' is not a valid libtool object" - fi - fi - done - else - func_fatal_error "link input file \`$arg' does not exist" - fi - arg=$save_arg - prev= - continue - ;; - precious_regex) - precious_files_regex="$arg" - prev= - continue - ;; - release) - release="-$arg" - prev= - continue - ;; - rpath | xrpath) - # We need an absolute path. - case $arg in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - func_fatal_error "only absolute run-paths are allowed" - ;; - esac - if test "$prev" = rpath; then - case "$rpath " in - *" $arg "*) ;; - *) func_append rpath " $arg" ;; - esac - else - case "$xrpath " in - *" $arg "*) ;; - *) func_append xrpath " $arg" ;; - esac - fi - prev= - continue - ;; - shrext) - shrext_cmds="$arg" - prev= - continue - ;; - weak) - func_append weak_libs " $arg" - prev= - continue - ;; - xcclinker) - func_append linker_flags " $qarg" - func_append compiler_flags " $qarg" - prev= - func_append compile_command " $qarg" - func_append finalize_command " $qarg" - continue - ;; - xcompiler) - func_append compiler_flags " $qarg" - prev= - func_append compile_command " $qarg" - func_append finalize_command " $qarg" - continue - ;; - xlinker) - func_append linker_flags " $qarg" - func_append compiler_flags " $wl$qarg" - prev= - func_append compile_command " $wl$qarg" - func_append finalize_command " $wl$qarg" - continue - ;; - *) - eval "$prev=\"\$arg\"" - prev= - continue - ;; - esac - fi # test -n "$prev" - - prevarg="$arg" - - case $arg in - -all-static) - if test -n "$link_static_flag"; then - # See comment for -static flag below, for more details. - func_append compile_command " $link_static_flag" - func_append finalize_command " $link_static_flag" - fi - continue - ;; - - -allow-undefined) - # FIXME: remove this flag sometime in the future. - func_fatal_error "\`-allow-undefined' must not be used because it is the default" - ;; - - -avoid-version) - avoid_version=yes - continue - ;; - - -bindir) - prev=bindir - continue - ;; - - -dlopen) - prev=dlfiles - continue - ;; - - -dlpreopen) - prev=dlprefiles - continue - ;; - - -export-dynamic) - export_dynamic=yes - continue - ;; - - -export-symbols | -export-symbols-regex) - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - func_fatal_error "more than one -exported-symbols argument is not allowed" - fi - if test "X$arg" = "X-export-symbols"; then - prev=expsyms - else - prev=expsyms_regex - fi - continue - ;; - - -framework) - prev=framework - continue - ;; - - -inst-prefix-dir) - prev=inst_prefix - continue - ;; - - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* - # so, if we see these flags be careful not to treat them like -L - -L[A-Z][A-Z]*:*) - case $with_gcc/$host in - no/*-*-irix* | /*-*-irix*) - func_append compile_command " $arg" - func_append finalize_command " $arg" - ;; - esac - continue - ;; - - -L*) - func_stripname "-L" '' "$arg" - if test -z "$func_stripname_result"; then - if test "$#" -gt 0; then - func_fatal_error "require no space between \`-L' and \`$1'" - else - func_fatal_error "need path for \`-L' option" - fi - fi - func_resolve_sysroot "$func_stripname_result" - dir=$func_resolve_sysroot_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - absdir=`cd "$dir" && pwd` - test -z "$absdir" && \ - func_fatal_error "cannot determine absolute directory name of \`$dir'" - dir="$absdir" - ;; - esac - case "$deplibs " in - *" -L$dir "* | *" $arg "*) - # Will only happen for absolute or sysroot arguments - ;; - *) - # Preserve sysroot, but never include relative directories - case $dir in - [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; - *) func_append deplibs " -L$dir" ;; - esac - func_append lib_search_path " $dir" - ;; - esac - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; - ::) dllsearchpath=$dir;; - *) func_append dllsearchpath ":$dir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - ::) dllsearchpath=$testbindir;; - *) func_append dllsearchpath ":$testbindir";; - esac - ;; - esac - continue - ;; - - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) - # These systems don't actually have a C or math library (as such) - continue - ;; - *-*-os2*) - # These systems don't actually have a C library (as such) - test "X$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 - func_append deplibs " System.ltframework" - 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 - func_append deplibs " $arg" - continue - ;; - - -module) - module=yes - continue - ;; - - # Tru64 UNIX uses -model [arg] to determine the layout of C++ - # classes, name mangling, and exception handling. - # Darwin uses the -arch flag to determine output architecture. - -model|-arch|-isysroot|--sysroot) - func_append compiler_flags " $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - prev=xcompiler - continue - ;; - - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ - |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) - func_append compiler_flags " $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - case "$new_inherited_linker_flags " in - *" $arg "*) ;; - * ) func_append new_inherited_linker_flags " $arg" ;; - esac - continue - ;; - - -multi_module) - single_module="${wl}-multi_module" - continue - ;; - - -no-fast-install) - fast_install=no - continue - ;; - - -no-install) - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) - # The PATH hackery in wrapper scripts is required on Windows - # and Darwin in order for the loader to find any dlls it needs. - func_warning "\`-no-install' is ignored for $host" - func_warning "assuming \`-no-fast-install' instead" - fast_install=no - ;; - *) no_install=yes ;; - esac - continue - ;; - - -no-undefined) - allow_undefined=no - continue - ;; - - -objectlist) - prev=objectlist - continue - ;; - - -o) prev=output ;; - - -precious-files-regex) - prev=precious_regex - continue - ;; - - -release) - prev=release - continue - ;; - - -rpath) - prev=rpath - continue - ;; - - -R) - prev=xrpath - continue - ;; - - -R*) - func_stripname '-R' '' "$arg" - dir=$func_stripname_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - =*) - func_stripname '=' '' "$dir" - dir=$lt_sysroot$func_stripname_result - ;; - *) - func_fatal_error "only absolute run-paths are allowed" - ;; - esac - case "$xrpath " in - *" $dir "*) ;; - *) func_append xrpath " $dir" ;; - esac - continue - ;; - - -shared) - # The effects of -shared are defined in a previous loop. - continue - ;; - - -shrext) - prev=shrext - continue - ;; - - -static | -static-libtool-libs) - # The effects of -static are defined in a previous loop. - # We used to do the same as -all-static on platforms that - # didn't have a PIC flag, but the assumption that the effects - # would be equivalent was wrong. It would break on at least - # Digital Unix and AIX. - continue - ;; - - -thread-safe) - thread_safe=yes - continue - ;; - - -version-info) - prev=vinfo - continue - ;; - - -version-number) - prev=vinfo - vinfo_number=yes - continue - ;; - - -weak) - prev=weak - continue - ;; - - -Wc,*) - func_stripname '-Wc,' '' "$arg" - args=$func_stripname_result - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - func_quote_for_eval "$flag" - func_append arg " $func_quote_for_eval_result" - func_append compiler_flags " $func_quote_for_eval_result" - done - IFS="$save_ifs" - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Wl,*) - func_stripname '-Wl,' '' "$arg" - args=$func_stripname_result - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - func_quote_for_eval "$flag" - func_append arg " $wl$func_quote_for_eval_result" - func_append compiler_flags " $wl$func_quote_for_eval_result" - func_append linker_flags " $func_quote_for_eval_result" - done - IFS="$save_ifs" - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Xcompiler) - prev=xcompiler - continue - ;; - - -Xlinker) - prev=xlinker - continue - ;; - - -XCClinker) - prev=xcclinker - continue - ;; - - # -msg_* for osf cc - -msg_*) - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - ;; - - # Flags to be passed through unchanged, with rationale: - # -64, -mips[0-9] enable 64-bit mode for the SGI compiler - # -r[0-9][0-9]* specify processor for the SGI compiler - # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler - # +DA*, +DD* enable 64-bit mode for the HP compiler - # -q* compiler args for the IBM compiler - # -m*, -t[45]*, -txscale* architecture-specific flags for GCC - # -F/path path to uninstalled frameworks, gcc on darwin - # -p, -pg, --coverage, -fprofile-* profiling flags for GCC - # @file GCC response files - # -tp=* Portland pgcc target processor selection - # --sysroot=* for sysroot support - # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ - -O*|-flto*|-fwhopr*|-fuse-linker-plugin) - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - func_append compile_command " $arg" - func_append finalize_command " $arg" - func_append compiler_flags " $arg" - continue - ;; - - # Some other compiler flag. - -* | +*) - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - ;; - - *.$objext) - # A standard object. - func_append objs " $arg" - ;; - - *.lo) - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if func_lalib_unsafe_p "$arg"; then - pic_object= - non_pic_object= - - # Read the .lo file - func_source "$arg" - - if test -z "$pic_object" || - test -z "$non_pic_object" || - test "$pic_object" = none && - test "$non_pic_object" = none; then - func_fatal_error "cannot find name of object for \`$arg'" - fi - - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - if test "$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 - func_append dlfiles " $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - func_append dlprefiles " $pic_object" - prev= - fi - - # A PIC object. - func_append libobjs " $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$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 - func_append 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" - func_append non_pic_objects " $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if $opt_dry_run; then - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - func_lo2o "$arg" - pic_object=$xdir$objdir/$func_lo2o_result - non_pic_object=$xdir$func_lo2o_result - func_append libobjs " $pic_object" - func_append non_pic_objects " $non_pic_object" - else - func_fatal_error "\`$arg' is not a valid libtool object" - fi - fi - ;; - - *.$libext) - # An archive. - func_append deplibs " $arg" - func_append old_deplibs " $arg" - continue - ;; - - *.la) - # A libtool-controlled library. - - func_resolve_sysroot "$arg" - if test "$prev" = dlfiles; then - # This library was specified with -dlopen. - func_append dlfiles " $func_resolve_sysroot_result" - prev= - elif test "$prev" = dlprefiles; then - # The library was specified with -dlpreopen. - func_append dlprefiles " $func_resolve_sysroot_result" - prev= - else - func_append deplibs " $func_resolve_sysroot_result" - fi - continue - ;; - - # Some other compiler argument. - *) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - ;; - esac # arg - - # Now actually substitute the argument into the commands. - if test -n "$arg"; then - func_append compile_command " $arg" - func_append finalize_command " $arg" - fi - done # argument parsing loop - - test -n "$prev" && \ - func_fatal_help "the \`$prevarg' option requires an argument" - - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then - eval arg=\"$export_dynamic_flag_spec\" - func_append compile_command " $arg" - func_append finalize_command " $arg" - fi - - oldlibs= - # calculate the name of the file, without its directory - func_basename "$output" - outputname="$func_basename_result" - libobjs_save="$libobjs" - - if test -n "$shlibpath_var"; then - # get the directories listed in $shlibpath_var - eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` - else - shlib_search_path= - fi - eval sys_lib_search_path=\"$sys_lib_search_path_spec\" - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" - - func_dirname "$output" "/" "" - output_objdir="$func_dirname_result$objdir" - func_to_tool_file "$output_objdir/" - tool_output_objdir=$func_to_tool_file_result - # Create the object directory. - func_mkdir_p "$output_objdir" - - # Determine the type of output - case $output in - "") - func_fatal_help "you must specify an output file" - ;; - *.$libext) linkmode=oldlib ;; - *.lo | *.$objext) linkmode=obj ;; - *.la) linkmode=lib ;; - *) linkmode=prog ;; # Anything else should be a program. - esac - - specialdeplibs= - - libs= - # Find all interdependent deplibs by searching for libraries - # that are linked more than once (e.g. -la -lb -la) - for deplib in $deplibs; do - if $opt_preserve_dup_deps ; then - case "$libs " in - *" $deplib "*) func_append specialdeplibs " $deplib" ;; - esac - fi - func_append libs " $deplib" - done - - if test "$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 $opt_duplicate_compiler_generated_deps; then - for pre_post_dep in $predeps $postdeps; do - case "$pre_post_deps " in - *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; - esac - func_append pre_post_deps " $pre_post_dep" - done - fi - pre_post_deps= - fi - - deplibs= - newdependency_libs= - newlib_search_path= - need_relink=no # whether we're linking any uninstalled libtool libraries - notinst_deplibs= # not-installed libtool libraries - notinst_path= # paths that contain not-installed libtool libraries - - case $linkmode in - lib) - passes="conv dlpreopen link" - for file in $dlfiles $dlprefiles; do - case $file in - *.la) ;; - *) - func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" - ;; - esac - done - ;; - prog) - compile_deplibs= - finalize_deplibs= - alldeplibs=no - newdlfiles= - newdlprefiles= - passes="conv scan dlopen dlpreopen link" - ;; - *) passes="conv" - ;; - esac - - for pass in $passes; do - # The preopen pass in lib mode reverses $deplibs; put it back here - # so that -L comes before libs that need it for instance... - if test "$linkmode,$pass" = "lib,link"; then - ## FIXME: Find the place where the list is rebuilt in the wrong - ## order, and fix it there properly - tmp_deplibs= - for deplib in $deplibs; do - tmp_deplibs="$deplib $tmp_deplibs" - done - deplibs="$tmp_deplibs" - fi - - if test "$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 "$linkmode,$pass" = "lib,dlpreopen"; then - # Collect and forward deplibs of preopened libtool libs - for lib in $dlprefiles; do - # Ignore non-libtool-libs - dependency_libs= - func_resolve_sysroot "$lib" - case $lib in - *.la) func_source "$func_resolve_sysroot_result" ;; - esac - - # Collect preopened libtool deplibs, except any this library - # has declared as weak libs - for deplib in $dependency_libs; do - func_basename "$deplib" - deplib_base=$func_basename_result - case " $weak_libs " in - *" $deplib_base "*) ;; - *) func_append deplibs " $deplib" ;; - esac - done - done - libs="$dlprefiles" - fi - if test "$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|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - func_append compiler_flags " $deplib" - if test "$linkmode" = lib ; then - case "$new_inherited_linker_flags " in - *" $deplib "*) ;; - * ) func_append new_inherited_linker_flags " $deplib" ;; - esac - fi - fi - continue - ;; - -l*) - if test "$linkmode" != lib && test "$linkmode" != prog; then - func_warning "\`-l' is ignored for archives/objects" - continue - fi - func_stripname '-l' '' "$deplib" - name=$func_stripname_result - 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 func_lalib_p "$lib"; then - library_names= - old_library= - func_source "$lib" - for l in $old_library $library_names; do - ll="$l" - done - if test "X$ll" = "X$old_library" ; then # only static version available - found=no - func_dirname "$lib" "" "." - ladir="$func_dirname_result" - 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 - *.ltframework) - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - if test "$linkmode" = lib ; then - case "$new_inherited_linker_flags " in - *" $deplib "*) ;; - * ) func_append new_inherited_linker_flags " $deplib" ;; - esac - fi - fi - continue - ;; - -L*) - case $linkmode in - lib) - deplibs="$deplib $deplibs" - test "$pass" = conv && continue - newdependency_libs="$deplib $newdependency_libs" - func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - func_append newlib_search_path " $func_resolve_sysroot_result" - ;; - prog) - if test "$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 - func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - func_append newlib_search_path " $func_resolve_sysroot_result" - ;; - *) - func_warning "\`-L' is ignored for archives/objects" - ;; - esac # linkmode - continue - ;; # -L - -R*) - if test "$pass" = link; then - func_stripname '-R' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - dir=$func_resolve_sysroot_result - # Make sure the xrpath contains only unique directories. - case "$xrpath " in - *" $dir "*) ;; - *) func_append xrpath " $dir" ;; - esac - fi - deplibs="$deplib $deplibs" - continue - ;; - *.la) - func_resolve_sysroot "$deplib" - lib=$func_resolve_sysroot_result - ;; - *.$libext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - case $linkmode in - lib) - # Linking convenience modules into shared libraries is allowed, - # but linking other static libraries is non-portable. - case " $dlpreconveniencelibs " in - *" $deplib "*) ;; - *) - valid_a_lib=no - case $deplibs_check_method in - match_pattern*) - set dummy $deplibs_check_method; shift - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - valid_a_lib=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 use here." - else - echo - $ECHO "*** Warning: Linking the shared library $output against the" - $ECHO "*** static library $deplib is not portable!" - deplibs="$deplib $deplibs" - fi - ;; - esac - 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. - func_append newdlprefiles " $deplib" - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - func_append newdlfiles " $deplib" - fi - fi - continue - ;; - %DEPLIBS%) - alldeplibs=yes - continue - ;; - esac # case $deplib - - if test "$found" = yes || test -f "$lib"; then : - else - func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" - fi - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$lib" \ - || func_fatal_error "\`$lib' is not a valid libtool archive" - - func_dirname "$lib" "" "." - ladir="$func_dirname_result" - - dlname= - dlopen= - dlpreopen= - libdir= - library_names= - old_library= - inherited_linker_flags= - # If the library was installed with an old release of libtool, - # it will not redefine variables installed, or shouldnotlink - installed=yes - shouldnotlink=no - avoidtemprpath= - - - # Read the .la file - func_source "$lib" - - # Convert "-framework foo" to "foo.ltframework" - if test -n "$inherited_linker_flags"; then - tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` - for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do - case " $new_inherited_linker_flags " in - *" $tmp_inherited_linker_flag "*) ;; - *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; - esac - done - fi - dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan" || - { test "$linkmode" != prog && test "$linkmode" != lib; }; then - test -n "$dlopen" && func_append dlfiles " $dlopen" - test -n "$dlpreopen" && func_append 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 - func_fatal_error "cannot find name of link library for \`$lib'" - fi - # It is a libtool convenience library, so add in its objects. - func_append convenience " $ladir/$objdir/$old_library" - func_append old_convenience " $ladir/$objdir/$old_library" - tmp_libs= - for deplib in $dependency_libs; do - deplibs="$deplib $deplibs" - if $opt_preserve_dup_deps ; then - case "$tmp_libs " in - *" $deplib "*) func_append specialdeplibs " $deplib" ;; - esac - fi - func_append tmp_libs " $deplib" - done - elif test "$linkmode" != prog && test "$linkmode" != lib; then - func_fatal_error "\`$lib' is not a convenience library" - fi - continue - fi # $pass = conv - - - # Get the name of the library we link against. - linklib= - if test -n "$old_library" && - { test "$prefer_static_libs" = yes || - test "$prefer_static_libs,$installed" = "built,no"; }; then - linklib=$old_library - else - for l in $old_library $library_names; do - linklib="$l" - done - fi - if test -z "$linklib"; then - func_fatal_error "cannot find name of link library for \`$lib'" - fi - - # This library was specified with -dlopen. - if test "$pass" = dlopen; then - if test -z "$libdir"; then - func_fatal_error "cannot -dlopen a convenience library: \`$lib'" - 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. - func_append dlprefiles " $lib $dependency_libs" - else - func_append newdlfiles " $lib" - fi - continue - fi # $pass = dlopen - - # We need an absolute path. - case $ladir in - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; - *) - abs_ladir=`cd "$ladir" && pwd` - if test -z "$abs_ladir"; then - func_warning "cannot determine absolute directory name of \`$ladir'" - func_warning "passing it literally to the linker, although it might fail" - abs_ladir="$ladir" - fi - ;; - esac - func_basename "$lib" - laname="$func_basename_result" - - # Find the relevant object directory and library name. - if test "X$installed" = Xyes; then - if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then - func_warning "library \`$lib' was moved." - dir="$ladir" - absdir="$abs_ladir" - libdir="$abs_ladir" - else - dir="$lt_sysroot$libdir" - absdir="$lt_sysroot$libdir" - fi - test "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 - func_append notinst_path " $abs_ladir" - else - dir="$ladir/$objdir" - absdir="$abs_ladir/$objdir" - # Remove this search path later - func_append notinst_path " $abs_ladir" - fi - fi # $installed = yes - func_stripname 'lib' '.la' "$laname" - name=$func_stripname_result - - # This library was specified with -dlpreopen. - if test "$pass" = dlpreopen; then - if test -z "$libdir" && test "$linkmode" = prog; then - func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" - fi - case "$host" in - # special handling for platforms with PE-DLLs. - *cygwin* | *mingw* | *cegcc* ) - # Linker will automatically link against shared library if both - # static and shared are present. Therefore, ensure we extract - # symbols from the import library if a shared library is present - # (otherwise, the dlopen module name will be incorrect). We do - # this by putting the import library name into $newdlprefiles. - # We recover the dlopen module name by 'saving' the la file - # name in a special purpose variable, and (later) extracting the - # dlname from the la file. - if test -n "$dlname"; then - func_tr_sh "$dir/$linklib" - eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" - func_append newdlprefiles " $dir/$linklib" - else - func_append newdlprefiles " $dir/$old_library" - # Keep a list of preopened convenience libraries to check - # that they are being used correctly in the link pass. - test -z "$libdir" && \ - func_append dlpreconveniencelibs " $dir/$old_library" - fi - ;; - * ) - # Prefer using a static library (so that no silly _DYNAMIC symbols - # are required to link). - if test -n "$old_library"; then - func_append newdlprefiles " $dir/$old_library" - # Keep a list of preopened convenience libraries to check - # that they are being used correctly in the link pass. - test -z "$libdir" && \ - func_append dlpreconveniencelibs " $dir/$old_library" - # Otherwise, use the dlname, so that lt_dlopen finds it. - elif test -n "$dlname"; then - func_append newdlprefiles " $dir/$dlname" - else - func_append newdlprefiles " $dir/$linklib" - fi - ;; - esac - fi # $pass = dlpreopen - - if test -z "$libdir"; then - # Link the convenience library - if test "$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 - func_append 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*) func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - func_append newlib_search_path " $func_resolve_sysroot_result" - ;; - esac - # Need to link against all dependency_libs? - if 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 $opt_preserve_dup_deps ; then - case "$tmp_libs " in - *" $deplib "*) func_append specialdeplibs " $deplib" ;; - esac - fi - func_append tmp_libs " $deplib" - done # for deplib - continue - fi # $linkmode = prog... - - if test "$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 - *"$absdir:"*) ;; - *) func_append temp_rpath "$absdir:" ;; - esac - fi - - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) func_append compile_rpath " $absdir" ;; - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - ;; - esac - fi # $linkmode,$pass = prog,link... - - if 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 - case $host in - *cygwin* | *mingw* | *cegcc*) - # No point in relinking DLLs because paths are not encoded - func_append notinst_deplibs " $lib" - need_relink=no - ;; - *) - if test "$installed" = no; then - func_append notinst_deplibs " $lib" - need_relink=yes - fi - ;; - esac - # This is a shared library - - # Warn about portability, can't link against -module's on some - # systems (darwin). Don't bleat about dlopened modules though! - dlopenmodule="" - for dlpremoduletest in $dlprefiles; do - if test "X$dlpremoduletest" = "X$lib"; then - dlopenmodule="$dlpremoduletest" - break - fi - done - if test -z "$dlopenmodule" && test "$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 "*) ;; - *) func_append compile_rpath " $absdir" ;; - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - ;; - esac - fi - - if test -n "$old_archive_from_expsyms_cmds"; then - # figure out the soname - set dummy $library_names - shift - realname="$1" - shift - libname=`eval "\\$ECHO \"$libname_spec\""` - # use dlname if we got it. it's perfectly good, no? - if test -n "$dlname"; then - soname="$dlname" - elif test -n "$soname_spec"; then - # bleh windows - case $host in - *cygwin* | mingw* | *cegcc*) - func_arith $current - $age - major=$func_arith_result - versuffix="-$major" - ;; - esac - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - - # Make a new name for the extract_expsyms_cmds to use - soroot="$soname" - func_basename "$soroot" - soname="$func_basename_result" - func_stripname 'lib' '.dll' "$soname" - newlib=libimp-$func_stripname_result.a - - # If the library has no export list, then create one now - if test -f "$output_objdir/$soname-def"; then : - else - func_verbose "extracting exported symbol list from \`$soname'" - func_execute_cmds "$extract_expsyms_cmds" 'exit $?' - fi - - # Create $newlib - if test -f "$output_objdir/$newlib"; then :; else - func_verbose "generating import library for \`$soname'" - func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' - fi - # make sure the library variables are pointing to the new library - dir=$output_objdir - linklib=$newlib - fi # test -n "$old_archive_from_expsyms_cmds" - - if test "$linkmode" = prog || test "$opt_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 (non-dlopened) module then we can not - # link against it, someone is ignoring the earlier warnings - if /usr/bin/file -L $add 2> /dev/null | - $GREP ": [^:]* bundle" >/dev/null ; then - if test "X$dlopenmodule" != "X$lib"; then - $ECHO "*** Warning: lib $linklib is a module, not a shared library" - if test -z "$old_library" ; then - echo - echo "*** And there doesn't seem to be a static archive available" - echo "*** The link will probably fail, sorry" - else - add="$dir/$old_library" - fi - elif test -n "$old_library"; then - add="$dir/$old_library" - fi - fi - esac - elif test "$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 && - test "$hardcode_direct_absolute" = no; then - add="$dir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$absdir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - func_append add_dir " -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - elif test "$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 - func_fatal_configuration "unsupported hardcode properties" - fi - - if test -n "$add_shlibpath"; then - case :$compile_shlibpath: in - *":$add_shlibpath:"*) ;; - *) func_append compile_shlibpath "$add_shlibpath:" ;; - esac - fi - if test "$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:"*) ;; - *) func_append finalize_shlibpath "$libdir:" ;; - esac - fi - fi - fi - - if test "$linkmode" = prog || test "$opt_mode" = relink; then - add_shlibpath= - add_dir= - add= - # Finalize command for both is simple: just hardcode it. - if test "$hardcode_direct" = yes && - test "$hardcode_direct_absolute" = no; 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:"*) ;; - *) func_append 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 - [\\/]*) - func_append 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*) func_stripname '-R' '' "$libdir" - temp_xrpath=$func_stripname_result - case " $xrpath " in - *" $temp_xrpath "*) ;; - *) func_append xrpath " $temp_xrpath";; - esac;; - *) func_append temp_deplibs " $libdir";; - esac - done - dependency_libs="$temp_deplibs" - fi - - func_append newlib_search_path " $absdir" - # Link against this library - test "$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" - case $deplib in - -L*) func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result";; - *) func_resolve_sysroot "$deplib" ;; - esac - if $opt_preserve_dup_deps ; then - case "$tmp_libs " in - *" $func_resolve_sysroot_result "*) - func_append specialdeplibs " $func_resolve_sysroot_result" ;; - esac - fi - func_append tmp_libs " $func_resolve_sysroot_result" - done - - if test "$link_all_deplibs" != no; then - # Add the search paths of all dependency libraries - for deplib in $dependency_libs; do - path= - case $deplib in - -L*) path="$deplib" ;; - *.la) - func_resolve_sysroot "$deplib" - deplib=$func_resolve_sysroot_result - func_dirname "$deplib" "" "." - dir=$func_dirname_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - func_warning "cannot determine absolute directory name of \`$dir'" - absdir="$dir" - fi - ;; - esac - if $GREP "^installed=no" $deplib > /dev/null; then - case $host in - *-*-darwin*) - depdepl= - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` - if test -n "$deplibrary_names" ; then - for tmp in $deplibrary_names ; do - depdepl=$tmp - done - if test -f "$absdir/$objdir/$depdepl" ; then - depdepl="$absdir/$objdir/$depdepl" - darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` - if test -z "$darwin_install_name"; then - darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` - fi - func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" - func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" - path= - fi - fi - ;; - *) - path="-L$absdir/$objdir" - ;; - esac - else - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - test -z "$libdir" && \ - func_fatal_error "\`$deplib' is not a valid libtool archive" - test "$absdir" != "$libdir" && \ - func_warning "\`$deplib' seems to be moved" - - path="-L$absdir" - fi - ;; - esac - case " $deplibs " in - *" $path "*) ;; - *) deplibs="$path $deplibs" ;; - esac - done - fi # link_all_deplibs != no - fi # linkmode = lib - done # for deplib in $libs - if test "$pass" = link; then - if test "$linkmode" = "prog"; then - compile_deplibs="$new_inherited_linker_flags $compile_deplibs" - finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" - else - compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - fi - fi - dependency_libs="$newdependency_libs" - if test "$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 "*) ;; - *) func_append 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 "*) ;; - *) func_append tmp_libs " $deplib" ;; - esac - ;; - *) func_append 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 - func_append tmp_libs " $i" - fi - done - dependency_libs=$tmp_libs - done # for pass - if test "$linkmode" = prog; then - dlfiles="$newdlfiles" - fi - if test "$linkmode" = prog || test "$linkmode" = lib; then - dlprefiles="$newdlprefiles" - fi - - case $linkmode in - oldlib) - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - func_warning "\`-dlopen' is ignored for archives" - fi - - case " $deplibs" in - *\ -l* | *\ -L*) - func_warning "\`-l' and \`-L' are ignored for archives" ;; - esac - - test -n "$rpath" && \ - func_warning "\`-rpath' is ignored for archives" - - test -n "$xrpath" && \ - func_warning "\`-R' is ignored for archives" - - test -n "$vinfo" && \ - func_warning "\`-version-info/-version-number' is ignored for archives" - - test -n "$release" && \ - func_warning "\`-release' is ignored for archives" - - test -n "$export_symbols$export_symbols_regex" && \ - func_warning "\`-export-symbols' is ignored for archives" - - # Now set the variables for building old libraries. - build_libtool_libs=no - oldlibs="$output" - func_append objs "$old_deplibs" - ;; - - lib) - # Make sure we only generate libraries of the form `libNAME.la'. - case $outputname in - lib*) - func_stripname 'lib' '.la' "$outputname" - name=$func_stripname_result - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - ;; - *) - test "$module" = no && \ - func_fatal_help "libtool library \`$output' must begin with \`lib'" - - if test "$need_lib_prefix" != no; then - # Add the "lib" prefix for modules if required - func_stripname '' '.la' "$outputname" - name=$func_stripname_result - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - else - func_stripname '' '.la' "$outputname" - libname=$func_stripname_result - fi - ;; - esac - - if test -n "$objs"; then - if test "$deplibs_check_method" != pass_all; then - func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" - else - echo - $ECHO "*** Warning: Linking the shared library $output against the non-libtool" - $ECHO "*** objects $objs is not portable!" - func_append libobjs " $objs" - fi - fi - - test "$dlself" != no && \ - func_warning "\`-dlopen self' is ignored for libtool libraries" - - set dummy $rpath - shift - test "$#" -gt 1 && \ - func_warning "ignoring multiple \`-rpath's for a libtool library" - - install_libdir="$1" - - 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 - - test -n "$vinfo" && \ - func_warning "\`-version-info/-version-number' is ignored for convenience libraries" - - test -n "$release" && \ - func_warning "\`-release' is ignored for convenience libraries" - else - - # Parse the version information argument. - save_ifs="$IFS"; IFS=':' - set dummy $vinfo 0 0 0 - shift - IFS="$save_ifs" - - test -n "$7" && \ - func_fatal_help "too many parameters to \`-version-info'" - - # convert absolute version numbers to libtool ages - # this retains compatibility with .la files and attempts - # to make the code below a bit more comprehensible - - case $vinfo_number in - yes) - number_major="$1" - number_minor="$2" - number_revision="$3" - # - # There are really only two kinds -- those that - # use the current revision as the major version - # and those that subtract age and use age as - # a minor version. But, then there is irix - # which has an extra 1 added just for fun - # - case $version_type in - # correct linux to gnu/linux during the next big refactor - darwin|linux|osf|windows|none) - func_arith $number_major + $number_minor - current=$func_arith_result - age="$number_minor" - revision="$number_revision" - ;; - freebsd-aout|freebsd-elf|qnx|sunos) - current="$number_major" - revision="$number_minor" - age="0" - ;; - irix|nonstopux) - func_arith $number_major + $number_minor - current=$func_arith_result - age="$number_minor" - revision="$number_minor" - lt_irix_increment=no - ;; - *) - func_fatal_configuration "$modename: unknown library version type \`$version_type'" - ;; - esac - ;; - no) - current="$1" - revision="$2" - age="$3" - ;; - esac - - # Check that each of the things are valid numbers. - case $current in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "CURRENT \`$current' must be a nonnegative integer" - func_fatal_error "\`$vinfo' is not valid version information" - ;; - esac - - case $revision in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "REVISION \`$revision' must be a nonnegative integer" - func_fatal_error "\`$vinfo' is not valid version information" - ;; - esac - - case $age in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "AGE \`$age' must be a nonnegative integer" - func_fatal_error "\`$vinfo' is not valid version information" - ;; - esac - - if test "$age" -gt "$current"; then - func_error "AGE \`$age' is greater than the current interface number \`$current'" - func_fatal_error "\`$vinfo' is not valid version information" - fi - - # Calculate the version variables. - major= - versuffix= - verstring= - case $version_type in - none) ;; - - darwin) - # Like Linux, but with the current version available in - # verstring for coding it into the library header - func_arith $current - $age - major=.$func_arith_result - versuffix="$major.$age.$revision" - # Darwin ld doesn't like 0 for these options... - func_arith $current + 1 - minor_current=$func_arith_result - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" - ;; - - freebsd-aout) - major=".$current" - versuffix=".$current.$revision"; - ;; - - freebsd-elf) - major=".$current" - versuffix=".$current" - ;; - - irix | nonstopux) - if test "X$lt_irix_increment" = "Xno"; then - func_arith $current - $age - else - func_arith $current - $age + 1 - fi - major=$func_arith_result - - case $version_type in - nonstopux) verstring_prefix=nonstopux ;; - *) verstring_prefix=sgi ;; - esac - verstring="$verstring_prefix$major.$revision" - - # Add in all the interfaces that we are compatible with. - loop=$revision - while test "$loop" -ne 0; do - func_arith $revision - $loop - iface=$func_arith_result - func_arith $loop - 1 - loop=$func_arith_result - verstring="$verstring_prefix$major.$iface:$verstring" - done - - # Before this point, $major must not contain `.'. - major=.$major - versuffix="$major.$revision" - ;; - - linux) # correct to gnu/linux during the next big refactor - func_arith $current - $age - major=.$func_arith_result - versuffix="$major.$age.$revision" - ;; - - osf) - func_arith $current - $age - major=.$func_arith_result - versuffix=".$current.$age.$revision" - verstring="$current.$age.$revision" - - # Add in all the interfaces that we are compatible with. - loop=$age - while test "$loop" -ne 0; do - func_arith $current - $loop - iface=$func_arith_result - func_arith $loop - 1 - loop=$func_arith_result - verstring="$verstring:${iface}.0" - done - - # Make executables depend on our current version. - func_append verstring ":${current}.0" - ;; - - qnx) - major=".$current" - versuffix=".$current" - ;; - - sunos) - major=".$current" - versuffix=".$current.$revision" - ;; - - windows) - # Use '-' rather than '.', since we only want one - # extension on DOS 8.3 filesystems. - func_arith $current - $age - major=$func_arith_result - versuffix="-$major" - ;; - - *) - func_fatal_configuration "unknown library version type \`$version_type'" - ;; - esac - - # Clear the version info if we defaulted, and they specified a release. - if test -z "$vinfo" && test -n "$release"; then - major= - case $version_type in - darwin) - # we can't check for "0.0" in archive_cmds due to quoting - # problems, so we reset it completely - verstring= - ;; - *) - verstring="0.0" - ;; - esac - if test "$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 - func_warning "undefined symbols not allowed in $host shared libraries" - build_libtool_libs=no - build_old_libs=yes - fi - else - # Don't allow undefined symbols. - allow_undefined_flag="$no_undefined_flag" - fi - - fi - - func_generate_dlsyms "$libname" "$libname" "yes" - func_append libobjs " $symfileobj" - test "X$libobjs" = "X " && libobjs= - - if test "$opt_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 | *.gcno) - ;; - $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 - func_append removelist " $p" - ;; - *) ;; - esac - done - test -n "$removelist" && \ - func_show_eval "${RM}r \$removelist" - fi - - # Now set the variables for building old libraries. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then - func_append oldlibs " $output_objdir/$libname.$libext" - - # Transform .lo files to .o files. - oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` - fi - - # Eliminate all temporary directories. - #for path in $notinst_path; do - # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` - # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` - # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` - #done - - if test -n "$xrpath"; then - # If the user specified any rpath flags, then add them. - temp_xrpath= - for libdir in $xrpath; do - func_replace_sysroot "$libdir" - func_append temp_xrpath " -R$func_replace_sysroot_result" - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - done - if test "$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 "*) ;; - *) func_append dlfiles " $lib" ;; - esac - done - - # Make sure dlprefiles contains only unique files - old_dlprefiles="$dlprefiles" - dlprefiles= - for lib in $old_dlprefiles; do - case "$dlprefiles " in - *" $lib "*) ;; - *) func_append dlprefiles " $lib" ;; - esac - done - - if test "$build_libtool_libs" = yes; then - if test -n "$rpath"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C library is in the System framework - func_append deplibs " System.ltframework" - ;; - *-*-netbsd*) - # Don't link with libc until the a.out ld.so is fixed. - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - ;; - *) - # Add libc to deplibs on all other systems if necessary. - if test "$build_libtool_need_lc" = "yes"; then - func_append deplibs " -lc" - fi - ;; - esac - fi - - # Transform deplibs into only deplibs that can be linked in shared. - name_save=$name - libname_save=$libname - release_save=$release - versuffix_save=$versuffix - major_save=$major - # I'm not sure if I'm treating the release correctly. I think - # release should show up in the -l (ie -lgmp5) so we don't want to - # add it in twice. Is that correct? - release="" - versuffix="" - major="" - newdeplibs= - droppeddeps=no - case $deplibs_check_method in - pass_all) - # Don't check for shared/static. Everything works. - # This might be a little naive. We might want to check - # whether the library exists or not. But this is on - # osf3 & osf4 and I'm not really sure... Just - # implementing what was already the behavior. - newdeplibs=$deplibs - ;; - test_compile) - # This code stresses the "libraries are programs" paradigm to its - # limits. Maybe even breaks it. We compile a program, linking it - # against the deplibs as a proxy for the library. Then we can check - # whether they linked in statically or dynamically with ldd. - $opt_dry_run || $RM conftest.c - cat > conftest.c </dev/null` - $nocaseglob - else - potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` - fi - for potent_lib in $potential_libs; do - # Follow soft links. - if ls -lLd "$potent_lib" 2>/dev/null | - $GREP " -> " >/dev/null; then - continue - fi - # The statement above tries to avoid entering an - # endless loop below, in case of cyclic links. - # We might still enter an endless loop, since a link - # loop can be closed while we follow links, - # but so what? - potlib="$potent_lib" - while test -h "$potlib" 2>/dev/null; do - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` - case $potliblink in - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; - *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; - esac - done - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | - $SED -e 10q | - $EGREP "$file_magic_regex" > /dev/null; then - func_append newdeplibs " $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - echo - $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $ECHO "*** with $libname but no candidates were found. (...for file magic test)" - else - $ECHO "*** with $libname and none of the candidates passed a file format test" - $ECHO "*** using a file magic. Last file checked: $potlib" - fi - fi - ;; - *) - # Add a -L argument. - func_append newdeplibs " $a_deplib" - ;; - esac - done # Gone through all deplibs. - ;; - match_pattern*) - set dummy $deplibs_check_method; shift - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - for a_deplib in $deplibs; do - case $a_deplib in - -l*) - func_stripname -l '' "$a_deplib" - name=$func_stripname_result - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $a_deplib "*) - func_append newdeplibs " $a_deplib" - a_deplib="" - ;; - esac - fi - if test -n "$a_deplib" ; then - libname=`eval "\\$ECHO \"$libname_spec\""` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do - potlib="$potent_lib" # see symlink-check above in file_magic test - if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ - $EGREP "$match_pattern_regex" > /dev/null; then - func_append newdeplibs " $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - echo - $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" - else - $ECHO "*** with $libname and none of the candidates passed a file format test" - $ECHO "*** using a regex pattern. Last file checked: $potlib" - fi - fi - ;; - *) - # Add a -L argument. - func_append newdeplibs " $a_deplib" - ;; - esac - done # Gone through all deplibs. - ;; - none | unknown | *) - newdeplibs="" - tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` - if test "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 " $tmp_deplibs" | $SED "s,$i,,"` - done - fi - case $tmp_deplibs in - *[!\ \ ]*) - 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 - ;; - esac - ;; - esac - versuffix=$versuffix_save - major=$major_save - release=$release_save - libname=$libname_save - name=$name_save - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library with the System framework - newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` - ;; - esac - - if test "$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 - # Time to change all our "foo.ltframework" stuff back to "-framework foo" - case $host in - *-*-darwin*) - newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - ;; - esac - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $deplibs " in - *" -L$path/$objdir "*) - func_append new_libs " -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) func_append new_libs " $deplib" ;; - esac - ;; - *) func_append new_libs " $deplib" ;; - esac - done - deplibs="$new_libs" - - # All the library-specific variables (install_libdir is set above). - library_names= - old_library= - dlname= - - # Test again, we may have decided not to build it any more - if test "$build_libtool_libs" = yes; then - # Remove ${wl} instances when linking with ld. - # FIXME: should test the right _cmds variable. - case $archive_cmds in - *\$LD\ *) wl= ;; - esac - if test "$hardcode_into_libs" = yes; then - # Hardcode the library paths - hardcode_libdirs= - dep_rpath= - rpath="$finalize_rpath" - test "$opt_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 - func_replace_sysroot "$libdir" - libdir=$func_replace_sysroot_result - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - func_append dep_rpath " $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) func_append perm_rpath " $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" - fi - if test -n "$runpath_var" && test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - func_append rpath "$dir:" - done - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" - fi - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" - fi - - shlibpath="$finalize_shlibpath" - test "$opt_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 - shift - realname="$1" - shift - - if test -n "$soname_spec"; then - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - if test -z "$dlname"; then - dlname=$soname - fi - - lib="$output_objdir/$realname" - linknames= - for link - do - func_append linknames " $link" - done - - # Use standard objects if they are pic - test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` - test "X$libobjs" = "X " && libobjs= - - delfiles= - if test -n "$export_symbols" && test -n "$include_expsyms"; then - $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" - export_symbols="$output_objdir/$libname.uexp" - func_append delfiles " $export_symbols" - fi - - orig_export_symbols= - case $host_os in - cygwin* | mingw* | cegcc*) - if test -n "$export_symbols" && test -z "$export_symbols_regex"; then - # exporting using user supplied symfile - if test "x`$SED 1q $export_symbols`" != xEXPORTS; then - # and it's NOT already a .def file. Must figure out - # which of the given symbols are data symbols and tag - # them as such. So, trigger use of export_symbols_cmds. - # export_symbols gets reassigned inside the "prepare - # the list of exported symbols" if statement, so the - # include_expsyms logic still works. - orig_export_symbols="$export_symbols" - export_symbols= - always_export_symbols=yes - fi - fi - ;; - esac - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then - func_verbose "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $opt_dry_run || $RM $export_symbols - cmds=$export_symbols_cmds - save_ifs="$IFS"; IFS='~' - for cmd1 in $cmds; do - IFS="$save_ifs" - # Take the normal branch if the nm_file_list_spec branch - # doesn't work or if tool conversion is not needed. - case $nm_file_list_spec~$to_tool_file_cmd in - *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) - try_normal_branch=yes - eval cmd=\"$cmd1\" - func_len " $cmd" - len=$func_len_result - ;; - *) - try_normal_branch=no - ;; - esac - if test "$try_normal_branch" = yes \ - && { test "$len" -lt "$max_cmd_len" \ - || test "$max_cmd_len" -le -1; } - then - func_show_eval "$cmd" 'exit $?' - skipped_export=false - elif test -n "$nm_file_list_spec"; then - func_basename "$output" - output_la=$func_basename_result - save_libobjs=$libobjs - save_output=$output - output=${output_objdir}/${output_la}.nm - func_to_tool_file "$output" - libobjs=$nm_file_list_spec$func_to_tool_file_result - func_append delfiles " $output" - func_verbose "creating $NM input file list: $output" - for obj in $save_libobjs; do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" - done > "$output" - eval cmd=\"$cmd1\" - func_show_eval "$cmd" 'exit $?' - output=$save_output - libobjs=$save_libobjs - skipped_export=false - else - # The command line is too long to execute in one step. - func_verbose "using reloadable object file for export list..." - skipped_export=: - # Break out early, otherwise skipped_export may be - # set to false by a later but shorter cmd. - break - fi - done - IFS="$save_ifs" - if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - func_show_eval '$MV "${export_symbols}T" "$export_symbols"' - fi - fi - fi - - if test -n "$export_symbols" && test -n "$include_expsyms"; then - tmp_export_symbols="$export_symbols" - test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" - $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' - fi - - if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then - # The given exports_symbols file has to be filtered, so filter it. - func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" - # FIXME: $output_objdir/$libname.filter potentially contains lots of - # 's' commands which not all seds can handle. GNU sed should be fine - # though. Also, the filter scales superlinearly with the number of - # global variables. join(1) would be nice here, but unfortunately - # isn't a blessed tool. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - func_append delfiles " $export_symbols $output_objdir/$libname.filter" - export_symbols=$output_objdir/$libname.def - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols - fi - - tmp_deplibs= - for test_deplib in $deplibs; do - case " $convenience " in - *" $test_deplib "*) ;; - *) - func_append tmp_deplibs " $test_deplib" - ;; - esac - done - deplibs="$tmp_deplibs" - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec" && - test "$compiler_needs_object" = yes && - test -z "$libobjs"; then - # extract the archives, so we have objects to list. - # TODO: could optimize this to just extract one archive. - whole_archive_flag_spec= - fi - if test -n "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - test "X$libobjs" = "X " && libobjs= - else - gentop="$output_objdir/${outputname}x" - func_append generated " $gentop" - - func_extract_archives $gentop $convenience - func_append libobjs " $func_extract_archives_result" - test "X$libobjs" = "X " && libobjs= - fi - fi - - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then - eval flag=\"$thread_safe_flag_spec\" - func_append linker_flags " $flag" - fi - - # Make a backup of the uninstalled library when relinking - if test "$opt_mode" = relink; then - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? - fi - - # Do each of the archive commands. - if test "$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:" && - func_len " $test_cmds" && - len=$func_len_result && - test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - : - else - # The command line is too long to link in one step, link piecewise - # or, if using GNU ld and skipped_export is not :, use a linker - # script. - - # Save the value of $output and $libobjs because we want to - # use them later. If we have whole_archive_flag_spec, we - # want to use save_libobjs as it was before - # whole_archive_flag_spec was expanded, because we can't - # assume the linker understands whole_archive_flag_spec. - # This may have to be revisited, in case too many - # convenience libraries get linked in and end up exceeding - # the spec. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - fi - save_output=$output - func_basename "$output" - output_la=$func_basename_result - - # Clear the reloadable object creation command queue and - # initialize k to one. - test_cmds= - concat_cmds= - objlist= - last_robj= - k=1 - - if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then - output=${output_objdir}/${output_la}.lnkscript - func_verbose "creating GNU ld script: $output" - echo 'INPUT (' > $output - for obj in $save_libobjs - do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" >> $output - done - echo ')' >> $output - func_append delfiles " $output" - func_to_tool_file "$output" - output=$func_to_tool_file_result - elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then - output=${output_objdir}/${output_la}.lnk - func_verbose "creating linker input file list: $output" - : > $output - set x $save_libobjs - shift - firstobj= - if test "$compiler_needs_object" = yes; then - firstobj="$1 " - shift - fi - for obj - do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" >> $output - done - func_append delfiles " $output" - func_to_tool_file "$output" - output=$firstobj\"$file_list_spec$func_to_tool_file_result\" - else - if test -n "$save_libobjs"; then - func_verbose "creating reloadable object files..." - output=$output_objdir/$output_la-${k}.$objext - eval test_cmds=\"$reload_cmds\" - func_len " $test_cmds" - len0=$func_len_result - len=$len0 - - # Loop over the list of objects to be linked. - for obj in $save_libobjs - do - func_len " $obj" - func_arith $len + $func_len_result - len=$func_arith_result - if test "X$objlist" = X || - test "$len" -lt "$max_cmd_len"; then - func_append objlist " $obj" - else - # The command $test_cmds is almost too long, add a - # command to the queue. - if test "$k" -eq 1 ; then - # The first file doesn't have a previous command to add. - reload_objs=$objlist - eval concat_cmds=\"$reload_cmds\" - else - # All subsequent reloadable object files will link in - # the last one created. - reload_objs="$objlist $last_robj" - eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" - fi - last_robj=$output_objdir/$output_la-${k}.$objext - func_arith $k + 1 - k=$func_arith_result - output=$output_objdir/$output_la-${k}.$objext - objlist=" $obj" - func_len " $last_robj" - func_arith $len0 + $func_len_result - len=$func_arith_result - fi - done - # Handle the remaining objects by creating one last - # reloadable object file. All subsequent reloadable object - # files will link in the last one created. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - reload_objs="$objlist $last_robj" - eval concat_cmds=\"\${concat_cmds}$reload_cmds\" - if test -n "$last_robj"; then - eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" - fi - func_append delfiles " $output" - - else - output= - fi - - if ${skipped_export-false}; then - func_verbose "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $opt_dry_run || $RM $export_symbols - libobjs=$output - # Append the command to create the export file. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" - if test -n "$last_robj"; then - eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" - fi - fi - - test -n "$save_libobjs" && - func_verbose "creating a temporary reloadable object file: $output" - - # Loop through the commands generated above and execute them. - save_ifs="$IFS"; IFS='~' - for cmd in $concat_cmds; do - IFS="$save_ifs" - $opt_silent || { - func_quote_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_result" - } - $opt_dry_run || eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$opt_mode" = relink; then - ( cd "$output_objdir" && \ - $RM "${realname}T" && \ - $MV "${realname}U" "$realname" ) - fi - - exit $lt_exit - } - done - IFS="$save_ifs" - - if test -n "$export_symbols_regex" && ${skipped_export-false}; then - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - func_show_eval '$MV "${export_symbols}T" "$export_symbols"' - fi - fi - - if ${skipped_export-false}; then - if test -n "$export_symbols" && test -n "$include_expsyms"; then - tmp_export_symbols="$export_symbols" - test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" - $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' - fi - - if test -n "$orig_export_symbols"; then - # The given exports_symbols file has to be filtered, so filter it. - func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" - # FIXME: $output_objdir/$libname.filter potentially contains lots of - # 's' commands which not all seds can handle. GNU sed should be fine - # though. Also, the filter scales superlinearly with the number of - # global variables. join(1) would be nice here, but unfortunately - # isn't a blessed tool. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - func_append delfiles " $export_symbols $output_objdir/$libname.filter" - export_symbols=$output_objdir/$libname.def - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols - fi - fi - - libobjs=$output - # Restore the value of output. - output=$save_output - - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - test "X$libobjs" = "X " && libobjs= - fi - # Expand the library linking commands again to reset the - # value of $libobjs for piecewise linking. - - # Do each of the archive commands. - if test "$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 - fi - - if test -n "$delfiles"; then - # Append the command to remove temporary files to $cmds. - eval cmds=\"\$cmds~\$RM $delfiles\" - fi - - # Add any objects from preloaded convenience libraries - if test -n "$dlprefiles"; then - gentop="$output_objdir/${outputname}x" - func_append generated " $gentop" - - func_extract_archives $gentop $dlprefiles - func_append libobjs " $func_extract_archives_result" - test "X$libobjs" = "X " && libobjs= - fi - - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $opt_silent || { - func_quote_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_result" - } - $opt_dry_run || eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$opt_mode" = relink; then - ( cd "$output_objdir" && \ - $RM "${realname}T" && \ - $MV "${realname}U" "$realname" ) - fi - - exit $lt_exit - } - done - IFS="$save_ifs" - - # Restore the uninstalled library and exit - if test "$opt_mode" = relink; then - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? - - if test -n "$convenience"; then - if test -z "$whole_archive_flag_spec"; then - func_show_eval '${RM}r "$gentop"' - fi - fi - - exit $EXIT_SUCCESS - fi - - # Create links to the real library. - for linkname in $linknames; do - if test "$realname" != "$linkname"; then - func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' - fi - done - - # If -module or -export-dynamic was specified, set the dlname. - if test "$module" = yes || test "$export_dynamic" = yes; then - # On all known operating systems, these are identical. - dlname="$soname" - fi - fi - ;; - - obj) - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - func_warning "\`-dlopen' is ignored for objects" - fi - - case " $deplibs" in - *\ -l* | *\ -L*) - func_warning "\`-l' and \`-L' are ignored for objects" ;; - esac - - test -n "$rpath" && \ - func_warning "\`-rpath' is ignored for objects" - - test -n "$xrpath" && \ - func_warning "\`-R' is ignored for objects" - - test -n "$vinfo" && \ - func_warning "\`-version-info' is ignored for objects" - - test -n "$release" && \ - func_warning "\`-release' is ignored for objects" - - case $output in - *.lo) - test -n "$objs$old_deplibs" && \ - func_fatal_error "cannot build library object \`$output' from non-libtool objects" - - libobj=$output - func_lo2o "$libobj" - obj=$func_lo2o_result - ;; - *) - libobj= - obj="$output" - ;; - esac - - # Delete the old objects. - $opt_dry_run || $RM $obj $libobj - - # Objects from convenience libraries. This assumes - # single-version convenience libraries. Whenever we create - # different ones for PIC/non-PIC, this we'll have to duplicate - # the extraction. - reload_conv_objs= - gentop= - # 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 "$tmp_whole_archive_flags" | $SED 's|,| |g'` - else - gentop="$output_objdir/${obj}x" - func_append generated " $gentop" - - func_extract_archives $gentop $convenience - reload_conv_objs="$reload_objs $func_extract_archives_result" - fi - fi - - # If we're not building shared, we need to use non_pic_objs - test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" - - # Create the old-style object. - reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test - - output="$obj" - func_execute_cmds "$reload_cmds" 'exit $?' - - # Exit if we aren't doing a library object file. - if test -z "$libobj"; then - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - exit $EXIT_SUCCESS - fi - - if test "$build_libtool_libs" != yes; then - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - # Create an invalid libtool object if no PIC, so that we don't - # accidentally link it into a program. - # $show "echo timestamp > $libobj" - # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? - exit $EXIT_SUCCESS - 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" - func_execute_cmds "$reload_cmds" 'exit $?' - fi - - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - exit $EXIT_SUCCESS - ;; - - prog) - case $host in - *cygwin*) func_stripname '' '.exe' "$output" - output=$func_stripname_result.exe;; - esac - test -n "$vinfo" && \ - func_warning "\`-version-info' is ignored for programs" - - test -n "$release" && \ - func_warning "\`-release' is ignored for programs" - - test "$preload" = yes \ - && test "$dlopen_support" = unknown \ - && test "$dlopen_self" = unknown \ - && test "$dlopen_self_static" = unknown && \ - func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` - finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` - ;; - esac - - case $host in - *-*-darwin*) - # Don't allow lazy linking, it breaks C++ global constructors - # But is supposedly fixed on 10.4 or later (yay!). - if test "$tagname" = CXX ; then - case ${MACOSX_DEPLOYMENT_TARGET-10.0} in - 10.[0123]) - func_append compile_command " ${wl}-bind_at_load" - func_append finalize_command " ${wl}-bind_at_load" - ;; - esac - fi - # Time to change all our "foo.ltframework" stuff back to "-framework foo" - compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - ;; - esac - - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $compile_deplibs " in - *" -L$path/$objdir "*) - func_append new_libs " -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $compile_deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) func_append new_libs " $deplib" ;; - esac - ;; - *) func_append new_libs " $deplib" ;; - esac - done - compile_deplibs="$new_libs" - - - func_append compile_command " $compile_deplibs" - func_append finalize_command " $finalize_deplibs" - - if test -n "$rpath$xrpath"; then - # If the user specified any rpath flags, then add them. - for libdir in $rpath $xrpath; do - # This is the magic to use -rpath. - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - done - fi - - # Now hardcode the library paths - rpath= - hardcode_libdirs= - for libdir in $compile_rpath $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - func_append rpath " $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) func_append perm_rpath " $libdir" ;; - esac - fi - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$libdir:"*) ;; - ::) dllsearchpath=$libdir;; - *) func_append dllsearchpath ":$libdir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - ::) dllsearchpath=$testbindir;; - *) func_append dllsearchpath ":$testbindir";; - esac - ;; - esac - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - compile_rpath="$rpath" - - rpath= - hardcode_libdirs= - for libdir in $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - func_append rpath " $flag" - fi - elif test -n "$runpath_var"; then - case "$finalize_perm_rpath " in - *" $libdir "*) ;; - *) func_append finalize_perm_rpath " $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - finalize_rpath="$rpath" - - if test -n "$libobjs" && test "$build_old_libs" = yes; then - # Transform all the library objects into standard objects. - compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` - finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` - fi - - func_generate_dlsyms "$outputname" "@PROGRAM@" "no" - - # template prelinking step - if test -n "$prelink_cmds"; then - func_execute_cmds "$prelink_cmds" 'exit $?' - fi - - wrappers_required=yes - case $host in - *cegcc* | *mingw32ce*) - # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. - wrappers_required=no - ;; - *cygwin* | *mingw* ) - if test "$build_libtool_libs" != yes; then - wrappers_required=no - fi - ;; - *) - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then - wrappers_required=no - fi - ;; - esac - if test "$wrappers_required" = no; then - # Replace the output file specification. - compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` - link_command="$compile_command$compile_rpath" - - # We have no uninstalled library dependencies, so finalize right now. - exit_status=0 - func_show_eval "$link_command" 'exit_status=$?' - - if test -n "$postlink_cmds"; then - func_to_tool_file "$output" - postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` - func_execute_cmds "$postlink_cmds" 'exit $?' - fi - - # Delete the generated files. - if test -f "$output_objdir/${outputname}S.${objext}"; then - func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' - fi - - exit $exit_status - 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 - func_append rpath "$dir:" - done - compile_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - if test -n "$finalize_perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $finalize_perm_rpath; do - func_append rpath "$dir:" - done - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - fi - - if test "$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 "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` - # Delete the old output file. - $opt_dry_run || $RM $output - # Link the executable and exit - func_show_eval "$link_command" 'exit $?' - - if test -n "$postlink_cmds"; then - func_to_tool_file "$output" - postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` - func_execute_cmds "$postlink_cmds" 'exit $?' - fi - - exit $EXIT_SUCCESS - fi - - 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" - - func_warning "this platform does not like uninstalled shared libraries" - func_warning "\`$output' will be relinked during installation" - else - if test "$fast_install" != no; then - link_command="$finalize_var$compile_command$finalize_rpath" - if test "$fast_install" = yes; then - relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` - 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 "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` - - # Delete the old output files. - $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname - - func_show_eval "$link_command" 'exit $?' - - if test -n "$postlink_cmds"; then - func_to_tool_file "$output_objdir/$outputname" - postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` - func_execute_cmds "$postlink_cmds" 'exit $?' - fi - - # Now create the wrapper script. - func_verbose "creating $output" - - # Quote the relink command for shipping. - if test -n "$relink_command"; then - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - func_quote_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" - fi - done - relink_command="(cd `pwd`; $relink_command)" - relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` - fi - - # Only actually do things if not in dry run mode. - $opt_dry_run || { - # win32 will think the script is a binary if it has - # a .exe suffix, so we strip it off here. - case $output in - *.exe) func_stripname '' '.exe' "$output" - output=$func_stripname_result ;; - esac - # test for cygwin because mv fails w/o .exe extensions - case $host in - *cygwin*) - exeext=.exe - func_stripname '' '.exe' "$outputname" - outputname=$func_stripname_result ;; - *) exeext= ;; - esac - case $host in - *cygwin* | *mingw* ) - func_dirname_and_basename "$output" "" "." - output_name=$func_basename_result - output_path=$func_dirname_result - cwrappersource="$output_path/$objdir/lt-$output_name.c" - cwrapper="$output_path/$output_name.exe" - $RM $cwrappersource $cwrapper - trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 - - func_emit_cwrapperexe_src > $cwrappersource - - # The wrapper executable is built using the $host compiler, - # because it contains $host paths and files. If cross- - # compiling, it, like the target executable, must be - # executed on the $host or under an emulation environment. - $opt_dry_run || { - $LTCC $LTCFLAGS -o $cwrapper $cwrappersource - $STRIP $cwrapper - } - - # Now, create the wrapper script for func_source use: - func_ltwrapper_scriptname $cwrapper - $RM $func_ltwrapper_scriptname_result - trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 - $opt_dry_run || { - # note: this script will not be executed, so do not chmod. - if test "x$build" = "x$host" ; then - $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result - else - func_emit_wrapper no > $func_ltwrapper_scriptname_result - fi - } - ;; - * ) - $RM $output - trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 - - func_emit_wrapper no > $output - chmod +x $output - ;; - esac - } - exit $EXIT_SUCCESS - ;; - esac - - # See if we need to build an old-fashioned archive. - for oldlib in $oldlibs; do - - if test "$build_libtool_libs" = convenience; then - oldobjs="$libobjs_save $symfileobj" - 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" - if test "$preload" = yes && test -f "$symfileobj"; then - func_append oldobjs " $symfileobj" - fi - fi - addlibs="$old_convenience" - fi - - if test -n "$addlibs"; then - gentop="$output_objdir/${outputname}x" - func_append generated " $gentop" - - func_extract_archives $gentop $addlibs - func_append oldobjs " $func_extract_archives_result" - fi - - # Do each command in the archive commands. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then - cmds=$old_archive_from_new_cmds - else - - # Add any objects from preloaded convenience libraries - if test -n "$dlprefiles"; then - gentop="$output_objdir/${outputname}x" - func_append generated " $gentop" - - func_extract_archives $gentop $dlprefiles - func_append oldobjs " $func_extract_archives_result" - fi - - # POSIX demands no paths to be encoded in archives. We have - # to avoid creating archives with duplicate basenames if we - # might have to extract them afterwards, e.g., when creating a - # static archive out of a convenience library, or when linking - # the entirety of a libtool archive into another (currently - # not supported by libtool). - if (for obj in $oldobjs - do - func_basename "$obj" - $ECHO "$func_basename_result" - done | sort | sort -uc >/dev/null 2>&1); then - : - else - echo "copying selected object files to avoid basename conflicts..." - gentop="$output_objdir/${outputname}x" - func_append generated " $gentop" - func_mkdir_p "$gentop" - save_oldobjs=$oldobjs - oldobjs= - counter=1 - for obj in $save_oldobjs - do - func_basename "$obj" - objbase="$func_basename_result" - case " $oldobjs " in - " ") oldobjs=$obj ;; - *[\ /]"$objbase "*) - while :; do - # Make sure we don't pick an alternate name that also - # overlaps. - newobj=lt$counter-$objbase - func_arith $counter + 1 - counter=$func_arith_result - case " $oldobjs " in - *[\ /]"$newobj "*) ;; - *) if test ! -f "$gentop/$newobj"; then break; fi ;; - esac - done - func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" - func_append oldobjs " $gentop/$newobj" - ;; - *) func_append oldobjs " $obj" ;; - esac - done - fi - func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 - tool_oldlib=$func_to_tool_file_result - eval cmds=\"$old_archive_cmds\" - - func_len " $cmds" - len=$func_len_result - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - cmds=$old_archive_cmds - elif test -n "$archiver_list_spec"; then - func_verbose "using command file archive linking..." - for obj in $oldobjs - do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" - done > $output_objdir/$libname.libcmd - func_to_tool_file "$output_objdir/$libname.libcmd" - oldobjs=" $archiver_list_spec$func_to_tool_file_result" - cmds=$old_archive_cmds - else - # the command line is too long to link in one step, link in parts - func_verbose "using piecewise archive linking..." - save_RANLIB=$RANLIB - RANLIB=: - objlist= - concat_cmds= - save_oldobjs=$oldobjs - oldobjs= - # Is there a better way of finding the last object in the list? - for obj in $save_oldobjs - do - last_oldobj=$obj - done - eval test_cmds=\"$old_archive_cmds\" - func_len " $test_cmds" - len0=$func_len_result - len=$len0 - for obj in $save_oldobjs - do - func_len " $obj" - func_arith $len + $func_len_result - len=$func_arith_result - func_append objlist " $obj" - if test "$len" -lt "$max_cmd_len"; then - : - else - # the above command should be used before it gets too long - oldobjs=$objlist - if test "$obj" = "$last_oldobj" ; then - RANLIB=$save_RANLIB - fi - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" - objlist= - len=$len0 - fi - done - RANLIB=$save_RANLIB - oldobjs=$objlist - if test "X$oldobjs" = "X" ; then - eval cmds=\"\$concat_cmds\" - else - eval cmds=\"\$concat_cmds~\$old_archive_cmds\" - fi - fi - fi - func_execute_cmds "$cmds" 'exit $?' - done - - test -n "$generated" && \ - func_show_eval "${RM}r$generated" - - # Now create the libtool archive. - case $output in - *.la) - old_library= - test "$build_old_libs" = yes && old_library="$libname.$libext" - func_verbose "creating $output" - - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - func_quote_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" - fi - done - # Quote the link command for shipping. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` - if test "$hardcode_automatic" = yes ; then - relink_command= - fi - - # Only create the output if not a dry run. - $opt_dry_run || { - 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) - func_basename "$deplib" - name="$func_basename_result" - func_resolve_sysroot "$deplib" - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` - test -z "$libdir" && \ - func_fatal_error "\`$deplib' is not a valid libtool archive" - func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" - ;; - -L*) - func_stripname -L '' "$deplib" - func_replace_sysroot "$func_stripname_result" - func_append newdependency_libs " -L$func_replace_sysroot_result" - ;; - -R*) - func_stripname -R '' "$deplib" - func_replace_sysroot "$func_stripname_result" - func_append newdependency_libs " -R$func_replace_sysroot_result" - ;; - *) func_append newdependency_libs " $deplib" ;; - esac - done - dependency_libs="$newdependency_libs" - newdlfiles= - - for lib in $dlfiles; do - case $lib in - *.la) - func_basename "$lib" - name="$func_basename_result" - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - test -z "$libdir" && \ - func_fatal_error "\`$lib' is not a valid libtool archive" - func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" - ;; - *) func_append newdlfiles " $lib" ;; - esac - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - *.la) - # Only pass preopened files to the pseudo-archive (for - # eventual linking with the app. that links it) if we - # didn't already link the preopened objects directly into - # the library: - func_basename "$lib" - name="$func_basename_result" - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - test -z "$libdir" && \ - func_fatal_error "\`$lib' is not a valid libtool archive" - func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" - ;; - esac - done - dlprefiles="$newdlprefiles" - else - newdlfiles= - for lib in $dlfiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - func_append newdlfiles " $abs" - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - func_append newdlprefiles " $abs" - done - dlprefiles="$newdlprefiles" - fi - $RM $output - # place dlname in correct position for cygwin - # In fact, it would be nice if we could use this code for all target - # systems that can't hard-code library paths into their executables - # and that have no shared library path variable independent of PATH, - # but it turns out we can't easily determine that from inspecting - # libtool variables, so we have to hard-code the OSs to which it - # applies here; at the moment, that means platforms that use the PE - # object format with DLL files. See the long comment at the top of - # tests/bindir.at for full details. - tdlname=$dlname - case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) - # If a -bindir argument was supplied, place the dll there. - if test "x$bindir" != x ; - then - func_relative_path "$install_libdir" "$bindir" - tdlname=$func_relative_path_result$dlname - else - # Otherwise fall back on heuristic. - tdlname=../bin/$dlname - fi - ;; - esac - $ECHO > $output "\ -# $outputname - a libtool library file -# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='$tdlname' - -# Names of this library. -library_names='$library_names' - -# The name of the static archive. -old_library='$old_library' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='$new_inherited_linker_flags' - -# Libraries that this one depends upon. -dependency_libs='$dependency_libs' - -# Names of additional weak libraries provided by this library -weak_library_names='$weak_libs' - -# Version information for $libname. -current=$current -age=$age -revision=$revision - -# Is this an already installed library? -installed=$installed - -# Should we warn about portability when linking against -modules? -shouldnotlink=$module - -# Files to dlopen/dlpreopen -dlopen='$dlfiles' -dlpreopen='$dlprefiles' - -# Directory that this library needs to be installed in: -libdir='$install_libdir'" - if test "$installed" = no && test "$need_relink" = yes; then - $ECHO >> $output "\ -relink_command=\"$relink_command\"" - fi - done - } - - # Do a symbolic link so that the libtool archive can be found in - # LD_LIBRARY_PATH before the program is installed. - func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' - ;; - esac - exit $EXIT_SUCCESS -} - -{ test "$opt_mode" = link || test "$opt_mode" = relink; } && - func_mode_link ${1+"$@"} - - -# func_mode_uninstall arg... -func_mode_uninstall () -{ - $opt_debug - 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) func_append RM " $arg"; rmforce=yes ;; - -*) func_append RM " $arg" ;; - *) func_append files " $arg" ;; - esac - done - - test -z "$RM" && \ - func_fatal_help "you must specify an RM program" - - rmdirs= - - for file in $files; do - func_dirname "$file" "" "." - dir="$func_dirname_result" - if test "X$dir" = X.; then - odir="$objdir" - else - odir="$dir/$objdir" - fi - func_basename "$file" - name="$func_basename_result" - test "$opt_mode" = uninstall && odir="$dir" - - # Remember odir for removal later, being careful to avoid duplicates - if test "$opt_mode" = clean; then - case " $rmdirs " in - *" $odir "*) ;; - *) func_append rmdirs " $odir" ;; - esac - fi - - # Don't error if the file doesn't exist and rm -f was used. - if { test -L "$file"; } >/dev/null 2>&1 || - { test -h "$file"; } >/dev/null 2>&1 || - test -f "$file"; then - : - elif test -d "$file"; then - exit_status=1 - continue - elif test "$rmforce" = yes; then - continue - fi - - rmfiles="$file" - - case $name in - *.la) - # Possibly a libtool archive, so verify it. - if func_lalib_p "$file"; then - func_source $dir/$name - - # Delete the libtool libraries and symlinks. - for n in $library_names; do - func_append rmfiles " $odir/$n" - done - test -n "$old_library" && func_append rmfiles " $odir/$old_library" - - case "$opt_mode" in - clean) - case " $library_names " in - *" $dlname "*) ;; - *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; - esac - test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" - ;; - uninstall) - if test -n "$library_names"; then - # Do each command in the postuninstall commands. - func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' - fi - - if test -n "$old_library"; then - # Do each command in the old_postuninstall commands. - func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' - fi - # FIXME: should reinstall the best remaining shared library. - ;; - esac - fi - ;; - - *.lo) - # Possibly a libtool object, so verify it. - if func_lalib_p "$file"; then - - # Read the .lo file - func_source $dir/$name - - # Add PIC object to the list of files to remove. - if test -n "$pic_object" && - test "$pic_object" != none; then - func_append rmfiles " $dir/$pic_object" - fi - - # Add non-PIC object to the list of files to remove. - if test -n "$non_pic_object" && - test "$non_pic_object" != none; then - func_append rmfiles " $dir/$non_pic_object" - fi - fi - ;; - - *) - if test "$opt_mode" = clean ; then - noexename=$name - case $file in - *.exe) - func_stripname '' '.exe' "$file" - file=$func_stripname_result - func_stripname '' '.exe' "$name" - noexename=$func_stripname_result - # $file with .exe has already been added to rmfiles, - # add $file without .exe - func_append rmfiles " $file" - ;; - esac - # Do a test to see if this is a libtool program. - if func_ltwrapper_p "$file"; then - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - relink_command= - func_source $func_ltwrapper_scriptname_result - func_append rmfiles " $func_ltwrapper_scriptname_result" - else - relink_command= - func_source $dir/$noexename - fi - - # note $name still contains .exe if it was in $file originally - # as does the version of $file that was added into $rmfiles - func_append rmfiles " $odir/$name $odir/${name}S.${objext}" - if test "$fast_install" = yes && test -n "$relink_command"; then - func_append rmfiles " $odir/lt-$name" - fi - if test "X$noexename" != "X$name" ; then - func_append rmfiles " $odir/lt-${noexename}.c" - fi - fi - fi - ;; - esac - func_show_eval "$RM $rmfiles" 'exit_status=1' - done - - # Try to remove the ${objdir}s in the directories where we deleted files - for dir in $rmdirs; do - if test -d "$dir"; then - func_show_eval "rmdir $dir >/dev/null 2>&1" - fi - done - - exit $exit_status -} - -{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && - func_mode_uninstall ${1+"$@"} - -test -z "$opt_mode" && { - help="$generic_help" - func_fatal_help "you must specify a MODE" -} - -test -z "$exec_cmd" && \ - func_fatal_help "invalid operation mode \`$opt_mode'" - -if test -n "$exec_cmd"; then - eval exec "$exec_cmd" - exit $EXIT_FAILURE -fi - -exit $exit_status - - -# The TAGs below are defined such that we never get into a situation -# 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 -build_libtool_libs=no -build_old_libs=yes -# ### END LIBTOOL TAG CONFIG: disable-shared - -# ### BEGIN LIBTOOL TAG CONFIG: disable-static -build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` -# ### END LIBTOOL TAG CONFIG: disable-static - -# Local Variables: -# mode:shell-script -# sh-indentation:2 -# End: -# vi:sw=2 - diff --git a/m4/gettext.m4 b/m4/gettext.m4 deleted file mode 100644 index dae3d81..0000000 --- a/m4/gettext.m4 +++ /dev/null @@ -1,631 +0,0 @@ -# gettext.m4 serial 53 (gettext-0.15) -dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper , 1995-2000. -dnl Bruno Haible , 2000-2005. - -dnl Macro to add for using GNU gettext. - -dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). -dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The -dnl default (if it is not specified or empty) is 'no-libtool'. -dnl INTLSYMBOL should be 'external' for packages with no intl directory, -dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. -dnl If INTLSYMBOL is 'use-libtool', then a libtool library -dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, -dnl depending on --{enable,disable}-{shared,static} and on the presence of -dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library -dnl $(top_builddir)/intl/libintl.a will be created. -dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext -dnl implementations (in libc or libintl) without the ngettext() function -dnl will be ignored. If NEEDSYMBOL is specified and is -dnl 'need-formatstring-macros', then GNU gettext implementations that don't -dnl support the ISO C 99 formatstring macros will be ignored. -dnl INTLDIR is used to find the intl libraries. If empty, -dnl the value `$(top_builddir)/intl/' is used. -dnl -dnl The result of the configuration is one of three cases: -dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled -dnl and used. -dnl Catalog format: GNU --> install in $(datadir) -dnl Catalog extension: .mo after installation, .gmo in source tree -dnl 2) GNU gettext has been found in the system's C library. -dnl Catalog format: GNU --> install in $(datadir) -dnl Catalog extension: .mo after installation, .gmo in source tree -dnl 3) No internationalization, always use English msgid. -dnl Catalog format: none -dnl Catalog extension: none -dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. -dnl The use of .gmo is historical (it was needed to avoid overwriting the -dnl GNU format catalogs when building on a platform with an X/Open gettext), -dnl but we keep it in order not to force irrelevant filename changes on the -dnl maintainers. -dnl -AC_DEFUN([AM_GNU_GETTEXT], -[ - dnl Argument checking. - ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , - [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT -])])])])]) - ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , - [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT -])])])]) - define([gt_included_intl], ifelse([$1], [external], [no], [yes])) - define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) - - AC_REQUIRE([AM_PO_SUBDIRS])dnl - ifelse(gt_included_intl, yes, [ - AC_REQUIRE([AM_INTL_SUBDIR])dnl - ]) - - dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - - dnl Sometimes libintl requires libiconv, so first search for libiconv. - dnl Ideally we would do this search only after the - dnl if test "$USE_NLS" = "yes"; then - dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then - dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT - dnl the configure script would need to contain the same shell code - dnl again, outside any 'if'. There are two solutions: - dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. - dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. - dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not - dnl documented, we avoid it. - ifelse(gt_included_intl, yes, , [ - AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) - ]) - - dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. - gt_INTL_MACOSX - - dnl Set USE_NLS. - AC_REQUIRE([AM_NLS]) - - ifelse(gt_included_intl, yes, [ - BUILD_INCLUDED_LIBINTL=no - USE_INCLUDED_LIBINTL=no - ]) - LIBINTL= - LTLIBINTL= - POSUB= - - dnl If we use NLS figure out what method - if test "$USE_NLS" = "yes"; then - gt_use_preinstalled_gnugettext=no - ifelse(gt_included_intl, yes, [ - AC_MSG_CHECKING([whether included gettext is requested]) - AC_ARG_WITH(included-gettext, - [ --with-included-gettext use the GNU gettext library included here], - nls_cv_force_use_gnu_gettext=$withval, - nls_cv_force_use_gnu_gettext=no) - AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) - - nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" - if test "$nls_cv_force_use_gnu_gettext" != "yes"; then - ]) - dnl User does not insist on using GNU NLS library. Figure out what - dnl to use. If GNU gettext is available we use this. Else we have - dnl to fall back to GNU NLS library. - - dnl Add a version number to the cache macros. - define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) - define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) - define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) - - AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, - [AC_TRY_LINK([#include -]ifelse([$2], [need-formatstring-macros], -[[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) -#endif -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; -]], [])[extern int _nl_msg_cat_cntr; -extern int *_nl_domain_bindings;], - [bindtextdomain ("", ""); -return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], - gt_cv_func_gnugettext_libc=yes, - gt_cv_func_gnugettext_libc=no)]) - - if test "$gt_cv_func_gnugettext_libc" != "yes"; then - dnl Sometimes libintl requires libiconv, so first search for libiconv. - ifelse(gt_included_intl, yes, , [ - AM_ICONV_LINK - ]) - dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL - dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) - dnl because that would add "-liconv" to LIBINTL and LTLIBINTL - dnl even if libiconv doesn't exist. - AC_LIB_LINKFLAGS_BODY([intl]) - AC_CACHE_CHECK([for GNU gettext in libintl], - gt_cv_func_gnugettext_libintl, - [gt_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCINTL" - gt_save_LIBS="$LIBS" - LIBS="$LIBS $LIBINTL" - dnl Now see whether libintl exists and does not depend on libiconv. - AC_TRY_LINK([#include -]ifelse([$2], [need-formatstring-macros], -[[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) -#endif -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; -]], [])[extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias (const char *);], - [bindtextdomain ("", ""); -return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], - gt_cv_func_gnugettext_libintl=yes, - gt_cv_func_gnugettext_libintl=no) - dnl Now see whether libintl exists and depends on libiconv. - if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then - LIBS="$LIBS $LIBICONV" - AC_TRY_LINK([#include -]ifelse([$2], [need-formatstring-macros], -[[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) -#endif -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; -]], [])[extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias (const char *);], - [bindtextdomain ("", ""); -return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], - [LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" - gt_cv_func_gnugettext_libintl=yes - ]) - fi - CPPFLAGS="$gt_save_CPPFLAGS" - LIBS="$gt_save_LIBS"]) - fi - - dnl If an already present or preinstalled GNU gettext() is found, - dnl use it. But if this macro is used in GNU gettext, and GNU - dnl gettext is already preinstalled in libintl, we update this - dnl libintl. (Cf. the install rule in intl/Makefile.in.) - if test "$gt_cv_func_gnugettext_libc" = "yes" \ - || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ - && test "$PACKAGE" != gettext-runtime \ - && test "$PACKAGE" != gettext-tools; }; then - gt_use_preinstalled_gnugettext=yes - else - dnl Reset the values set by searching for libintl. - LIBINTL= - LTLIBINTL= - INCINTL= - fi - - ifelse(gt_included_intl, yes, [ - if test "$gt_use_preinstalled_gnugettext" != "yes"; then - dnl GNU gettext is not found in the C library. - dnl Fall back on included GNU gettext library. - nls_cv_use_gnu_gettext=yes - fi - fi - - if test "$nls_cv_use_gnu_gettext" = "yes"; then - dnl Mark actions used to generate GNU NLS library. - BUILD_INCLUDED_LIBINTL=yes - USE_INCLUDED_LIBINTL=yes - LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" - LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" - LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` - fi - - CATOBJEXT= - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - dnl Mark actions to use GNU gettext tools. - CATOBJEXT=.gmo - fi - ]) - - if test -n "$INTL_MACOSX_LIBS"; then - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - dnl Some extra flags are needed during linking. - LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" - LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" - fi - fi - - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - AC_DEFINE(ENABLE_NLS, 1, - [Define to 1 if translation of program messages to the user's native language - is requested.]) - else - USE_NLS=no - fi - fi - - AC_MSG_CHECKING([whether to use NLS]) - AC_MSG_RESULT([$USE_NLS]) - if test "$USE_NLS" = "yes"; then - AC_MSG_CHECKING([where the gettext function comes from]) - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if test "$gt_cv_func_gnugettext_libintl" = "yes"; then - gt_source="external libintl" - else - gt_source="libc" - fi - else - gt_source="included intl directory" - fi - AC_MSG_RESULT([$gt_source]) - fi - - if test "$USE_NLS" = "yes"; then - - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if test "$gt_cv_func_gnugettext_libintl" = "yes"; then - AC_MSG_CHECKING([how to link with libintl]) - AC_MSG_RESULT([$LIBINTL]) - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) - fi - - dnl For backward compatibility. Some packages may be using this. - AC_DEFINE(HAVE_GETTEXT, 1, - [Define if the GNU gettext() function is already present or preinstalled.]) - AC_DEFINE(HAVE_DCGETTEXT, 1, - [Define if the GNU dcgettext() function is already present or preinstalled.]) - fi - - dnl We need to process the po/ directory. - POSUB=po - fi - - ifelse(gt_included_intl, yes, [ - dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL - dnl to 'yes' because some of the testsuite requires it. - if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then - BUILD_INCLUDED_LIBINTL=yes - fi - - dnl Make all variables we use known to autoconf. - AC_SUBST(BUILD_INCLUDED_LIBINTL) - AC_SUBST(USE_INCLUDED_LIBINTL) - AC_SUBST(CATOBJEXT) - - dnl For backward compatibility. Some configure.ins may be using this. - nls_cv_header_intl= - nls_cv_header_libgt= - - dnl For backward compatibility. Some Makefiles may be using this. - DATADIRNAME=share - AC_SUBST(DATADIRNAME) - - dnl For backward compatibility. Some Makefiles may be using this. - INSTOBJEXT=.mo - AC_SUBST(INSTOBJEXT) - - dnl For backward compatibility. Some Makefiles may be using this. - GENCAT=gencat - AC_SUBST(GENCAT) - - dnl For backward compatibility. Some Makefiles may be using this. - INTLOBJS= - if test "$USE_INCLUDED_LIBINTL" = yes; then - INTLOBJS="\$(GETTOBJS)" - fi - AC_SUBST(INTLOBJS) - - dnl Enable libtool support if the surrounding package wishes it. - INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix - AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) - ]) - - dnl For backward compatibility. Some Makefiles may be using this. - INTLLIBS="$LIBINTL" - AC_SUBST(INTLLIBS) - - dnl Make all documented variables known to autoconf. - AC_SUBST(LIBINTL) - AC_SUBST(LTLIBINTL) - AC_SUBST(POSUB) -]) - - -dnl Checks for all prerequisites of the intl subdirectory, -dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, -dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. -AC_DEFUN([AM_INTL_SUBDIR], -[ - AC_REQUIRE([AC_PROG_INSTALL])dnl - AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake - AC_REQUIRE([AC_PROG_CC])dnl - AC_REQUIRE([AC_CANONICAL_HOST])dnl - AC_REQUIRE([gt_GLIBC2])dnl - AC_REQUIRE([AC_PROG_RANLIB])dnl - AC_REQUIRE([gl_VISIBILITY])dnl - AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl - AC_REQUIRE([bh_C_SIGNED])dnl - AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl - AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl - AC_REQUIRE([gt_TYPE_WCHAR_T])dnl - AC_REQUIRE([gt_TYPE_WINT_T])dnl - AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) - AC_REQUIRE([gt_TYPE_INTMAX_T]) - AC_REQUIRE([gt_PRINTF_POSIX]) - AC_REQUIRE([gl_GLIBC21])dnl - AC_REQUIRE([gl_XSIZE])dnl - AC_REQUIRE([gt_INTL_MACOSX])dnl - - AC_CHECK_TYPE([ptrdiff_t], , - [AC_DEFINE([ptrdiff_t], [long], - [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) - ]) - AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) - AC_CHECK_FUNCS([asprintf fwprintf putenv setenv setlocale snprintf wcslen]) - - dnl Use the _snprintf function only if it is declared (because on NetBSD it - dnl is defined as a weak alias of snprintf; we prefer to use the latter). - gt_CHECK_DECL(_snprintf, [#include ]) - gt_CHECK_DECL(_snwprintf, [#include ]) - - dnl Use the *_unlocked functions only if they are declared. - dnl (because some of them were defined without being declared in Solaris - dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built - dnl on Solaris 2.5.1 to run on Solaris 2.6). - dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. - gt_CHECK_DECL(getc_unlocked, [#include ]) - - case $gt_cv_func_printf_posix in - *yes) HAVE_POSIX_PRINTF=1 ;; - *) HAVE_POSIX_PRINTF=0 ;; - esac - AC_SUBST([HAVE_POSIX_PRINTF]) - if test "$ac_cv_func_asprintf" = yes; then - HAVE_ASPRINTF=1 - else - HAVE_ASPRINTF=0 - fi - AC_SUBST([HAVE_ASPRINTF]) - if test "$ac_cv_func_snprintf" = yes; then - HAVE_SNPRINTF=1 - else - HAVE_SNPRINTF=0 - fi - AC_SUBST([HAVE_SNPRINTF]) - if test "$ac_cv_func_wprintf" = yes; then - HAVE_WPRINTF=1 - else - HAVE_WPRINTF=0 - fi - AC_SUBST([HAVE_WPRINTF]) - - AM_LANGINFO_CODESET - gt_LC_MESSAGES - - dnl Compilation on mingw and Cygwin needs special Makefile rules, because - dnl 1. when we install a shared library, we must arrange to export - dnl auxiliary pointer variables for every exported variable, - dnl 2. when we install a shared library and a static library simultaneously, - dnl the include file specifies __declspec(dllimport) and therefore we - dnl must arrange to define the auxiliary pointer variables for the - dnl exported variables _also_ in the static library. - if test "$enable_shared" = yes; then - case "$host_os" in - cygwin*) is_woe32dll=yes ;; - *) is_woe32dll=no ;; - esac - else - is_woe32dll=no - fi - WOE32DLL=$is_woe32dll - AC_SUBST([WOE32DLL]) - - dnl Rename some macros and functions used for locking. - AH_BOTTOM([ -#define __libc_lock_t gl_lock_t -#define __libc_lock_define gl_lock_define -#define __libc_lock_define_initialized gl_lock_define_initialized -#define __libc_lock_init gl_lock_init -#define __libc_lock_lock gl_lock_lock -#define __libc_lock_unlock gl_lock_unlock -#define __libc_lock_recursive_t gl_recursive_lock_t -#define __libc_lock_define_recursive gl_recursive_lock_define -#define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized -#define __libc_lock_init_recursive gl_recursive_lock_init -#define __libc_lock_lock_recursive gl_recursive_lock_lock -#define __libc_lock_unlock_recursive gl_recursive_lock_unlock -#define glthread_in_use libintl_thread_in_use -#define glthread_lock_init libintl_lock_init -#define glthread_lock_lock libintl_lock_lock -#define glthread_lock_unlock libintl_lock_unlock -#define glthread_lock_destroy libintl_lock_destroy -#define glthread_rwlock_init libintl_rwlock_init -#define glthread_rwlock_rdlock libintl_rwlock_rdlock -#define glthread_rwlock_wrlock libintl_rwlock_wrlock -#define glthread_rwlock_unlock libintl_rwlock_unlock -#define glthread_rwlock_destroy libintl_rwlock_destroy -#define glthread_recursive_lock_init libintl_recursive_lock_init -#define glthread_recursive_lock_lock libintl_recursive_lock_lock -#define glthread_recursive_lock_unlock libintl_recursive_lock_unlock -#define glthread_recursive_lock_destroy libintl_recursive_lock_destroy -#define glthread_once libintl_once -#define glthread_once_call libintl_once_call -#define glthread_once_singlethreaded libintl_once_singlethreaded -]) -]) - - -dnl Checks for the core files of the intl subdirectory: -dnl dcigettext.c -dnl eval-plural.h -dnl explodename.c -dnl finddomain.c -dnl gettextP.h -dnl gmo.h -dnl hash-string.h hash-string.c -dnl l10nflist.c -dnl libgnuintl.h.in (except the *printf stuff) -dnl loadinfo.h -dnl loadmsgcat.c -dnl localealias.c -dnl log.c -dnl plural-exp.h plural-exp.c -dnl plural.y -dnl Used by libglocale. -AC_DEFUN([gt_INTL_SUBDIR_CORE], -[ - AC_REQUIRE([AC_C_INLINE])dnl - AC_REQUIRE([AC_TYPE_SIZE_T])dnl - AC_REQUIRE([gl_AC_HEADER_STDINT_H]) - AC_REQUIRE([AC_FUNC_ALLOCA])dnl - AC_REQUIRE([AC_FUNC_MMAP])dnl - AC_REQUIRE([gt_INTDIV0])dnl - AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl - AC_REQUIRE([gl_HEADER_INTTYPES_H])dnl - AC_REQUIRE([gt_INTTYPES_PRI])dnl - AC_REQUIRE([gl_LOCK])dnl - - AC_TRY_LINK( - [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }], - [], - [AC_DEFINE([HAVE_BUILTIN_EXPECT], 1, - [Define to 1 if the compiler understands __builtin_expect.])]) - - AC_CHECK_HEADERS([argz.h limits.h unistd.h sys/param.h]) - AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ - stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ - argz_next __fsetlocking]) - - dnl Use the *_unlocked functions only if they are declared. - dnl (because some of them were defined without being declared in Solaris - dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built - dnl on Solaris 2.5.1 to run on Solaris 2.6). - dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. - gt_CHECK_DECL(feof_unlocked, [#include ]) - gt_CHECK_DECL(fgets_unlocked, [#include ]) - - AM_ICONV - - dnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined, - dnl and a _NL_LOCALE_NAME macro always. - AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name, - [AC_TRY_LINK([#include -#include ], - [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));], - gt_cv_nl_locale_name=yes, - gt_cv_nl_locale_name=no) - ]) - if test $gt_cv_nl_locale_name = yes; then - AC_DEFINE(HAVE_NL_LOCALE_NAME, 1, - [Define if you have and it defines the NL_LOCALE_NAME macro if _GNU_SOURCE is defined.]) - fi - - dnl intl/plural.c is generated from intl/plural.y. It requires bison, - dnl because plural.y uses bison specific features. It requires at least - dnl bison-1.26 because earlier versions generate a plural.c that doesn't - dnl compile. - dnl bison is only needed for the maintainer (who touches plural.y). But in - dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put - dnl the rule in general Makefile. Now, some people carelessly touch the - dnl files or have a broken "make" program, hence the plural.c rule will - dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not - dnl present or too old. - AC_CHECK_PROGS([INTLBISON], [bison]) - if test -z "$INTLBISON"; then - ac_verc_fail=yes - else - dnl Found it, now check the version. - AC_MSG_CHECKING([version of bison]) -changequote(<<,>>)dnl - ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` - case $ac_prog_version in - '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; - 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) -changequote([,])dnl - ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; - *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; - esac - AC_MSG_RESULT([$ac_prog_version]) - fi - if test $ac_verc_fail = yes; then - INTLBISON=: - fi -]) - - -dnl Checks for special options needed on MacOS X. -dnl Defines INTL_MACOSX_LIBS. -AC_DEFUN([gt_INTL_MACOSX], -[ - dnl Check for API introduced in MacOS X 10.2. - AC_CACHE_CHECK([for CFPreferencesCopyAppValue], - gt_cv_func_CFPreferencesCopyAppValue, - [gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - AC_TRY_LINK([#include ], - [CFPreferencesCopyAppValue(NULL, NULL)], - [gt_cv_func_CFPreferencesCopyAppValue=yes], - [gt_cv_func_CFPreferencesCopyAppValue=no]) - LIBS="$gt_save_LIBS"]) - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then - AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, - [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) - fi - dnl Check for API introduced in MacOS X 10.3. - AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, - [gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], - [gt_cv_func_CFLocaleCopyCurrent=yes], - [gt_cv_func_CFLocaleCopyCurrent=no]) - LIBS="$gt_save_LIBS"]) - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then - AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, - [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) - fi - INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" - fi - AC_SUBST([INTL_MACOSX_LIBS]) -]) - - -dnl gt_CHECK_DECL(FUNC, INCLUDES) -dnl Check whether a function is declared. -AC_DEFUN([gt_CHECK_DECL], -[ - AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, - [AC_TRY_COMPILE([$2], [ -#ifndef $1 - char *p = (char *) $1; -#endif -], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) - if test $ac_cv_have_decl_$1 = yes; then - gt_value=1 - else - gt_value=0 - fi - AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], - [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) -]) - - -dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) -AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) diff --git a/m4/iconv.m4 b/m4/iconv.m4 deleted file mode 100644 index 654c415..0000000 --- a/m4/iconv.m4 +++ /dev/null @@ -1,101 +0,0 @@ -# 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 -]) diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4 deleted file mode 100644 index 96c4e2c..0000000 --- a/m4/lib-ld.m4 +++ /dev/null @@ -1,110 +0,0 @@ -# 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 -]) diff --git a/m4/lib-link.m4 b/m4/lib-link.m4 deleted file mode 100644 index 9292919..0000000 --- a/m4/lib-link.m4 +++ /dev/null @@ -1,630 +0,0 @@ -# lib-link.m4 serial 8 (gettext-0.15) -dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_PREREQ(2.50) - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, -dnl hardcode_direct, hardcode_minus_L. -AC_DEFUN([AC_LIB_RPATH], -[ - dnl Tell automake >= 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - libext="$acl_cv_libext" - shlibext="$acl_cv_shlibext" - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - hardcode_direct="$acl_cv_hardcode_direct" - hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib$1-prefix], -[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib$1-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - if test $use_additional = yes; then - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then - found_dir="$additional_libdir" - found_so="$additional_libdir/lib$name.$shlibext" - if test -f "$additional_libdir/lib$name.la"; then - found_la="$additional_libdir/lib$name.la" - fi - else - if test -f "$additional_libdir/lib$name.$libext"; then - found_dir="$additional_libdir" - found_a="$additional_libdir/lib$name.$libext" - if test -f "$additional_libdir/lib$name.la"; then - found_la="$additional_libdir/lib$name.la" - fi - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then - found_dir="$dir" - found_so="$dir/lib$name.$shlibext" - if test -f "$dir/lib$name.la"; then - found_la="$dir/lib$name.la" - fi - else - if test -f "$dir/lib$name.$libext"; then - found_dir="$dir" - found_a="$dir/lib$name.$libext" - if test -f "$dir/lib$name.la"; then - found_la="$dir/lib$name.la" - fi - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" - done - dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -dnl For those cases where a variable contains several -L and -l options -dnl referring to unknown libraries and directories, this macro determines the -dnl necessary additional linker options for the runtime path. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) -dnl sets LDADDVAR to linker options needed together with LIBSVALUE. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, -dnl otherwise linking without libtool is assumed. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -[ - AC_REQUIRE([AC_LIB_RPATH]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - $1= - if test "$enable_rpath" != no; then - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode directories into the resulting - dnl binary. - rpathdirs= - next= - for opt in $2; do - if test -n "$next"; then - dir="$next" - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= - else - case $opt in - -L) next=yes ;; - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= ;; - *) next= ;; - esac - fi - done - if test "X$rpathdirs" != "X"; then - if test -n ""$3""; then - dnl libtool is used for linking. Use -R options. - for dir in $rpathdirs; do - $1="${$1}${$1:+ }-R$dir" - done - else - dnl The linker is used for linking directly. - if test -n "$hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user - dnl must pass all path elements in one option. - alldirs= - for dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="$flag" - else - dnl The -rpath options are cumulative. - for dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$dir" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="${$1}${$1:+ }$flag" - done - fi - fi - fi - fi - fi - AC_SUBST([$1]) -]) diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4 deleted file mode 100644 index a8684e1..0000000 --- a/m4/lib-prefix.m4 +++ /dev/null @@ -1,185 +0,0 @@ -# lib-prefix.m4 serial 5 (gettext-0.15) -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing -dnl the basename of the libdir, either "lib" or "lib64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. The current - dnl practice is that on a system supporting 32-bit and 64-bit instruction - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit - dnl libraries go under $prefix/lib. We determine the compiler's default - dnl mode by looking at the compiler's library search path. If at least - dnl of its elements ends in /lib64 or points to a directory whose absolute - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the - dnl default, namely "lib". - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi -]) diff --git a/m4/libtool.m4 b/m4/libtool.m4 deleted file mode 100644 index d7c043f..0000000 --- a/m4/libtool.m4 +++ /dev/null @@ -1,7997 +0,0 @@ -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -m4_define([_LT_COPYING], [dnl -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is part of GNU Libtool. -# -# GNU Libtool is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Libtool; see the file COPYING. If not, a copy -# can be downloaded from http://www.gnu.org/licenses/gpl.html, or -# obtained by writing to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -]) - -# serial 57 LT_INIT - - -# LT_PREREQ(VERSION) -# ------------------ -# Complain and exit if this libtool version is less that VERSION. -m4_defun([LT_PREREQ], -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, - [m4_default([$3], - [m4_fatal([Libtool version $1 or higher is required], - 63)])], - [$2])]) - - -# _LT_CHECK_BUILDDIR -# ------------------ -# Complain if the absolute build directory name contains unusual characters -m4_defun([_LT_CHECK_BUILDDIR], -[case `pwd` in - *\ * | *\ *) - AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; -esac -]) - - -# LT_INIT([OPTIONS]) -# ------------------ -AC_DEFUN([LT_INIT], -[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT -AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -AC_BEFORE([$0], [LT_LANG])dnl -AC_BEFORE([$0], [LT_OUTPUT])dnl -AC_BEFORE([$0], [LTDL_INIT])dnl -m4_require([_LT_CHECK_BUILDDIR])dnl - -dnl Autoconf doesn't catch unexpanded LT_ macros by default: -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 -dnl unless we require an AC_DEFUNed macro: -AC_REQUIRE([LTOPTIONS_VERSION])dnl -AC_REQUIRE([LTSUGAR_VERSION])dnl -AC_REQUIRE([LTVERSION_VERSION])dnl -AC_REQUIRE([LTOBSOLETE_VERSION])dnl -m4_require([_LT_PROG_LTMAIN])dnl - -_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) - -dnl Parse OPTIONS -_LT_SET_OPTIONS([$0], [$1]) - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ltmain" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -_LT_SETUP - -# Only expand once: -m4_define([LT_INIT]) -])# LT_INIT - -# Old names: -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PROG_LIBTOOL], []) -dnl AC_DEFUN([AM_PROG_LIBTOOL], []) - - -# _LT_CC_BASENAME(CC) -# ------------------- -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -m4_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 "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -]) - - -# _LT_FILEUTILS_DEFAULTS -# ---------------------- -# It is okay to use these file commands and assume they have been set -# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. -m4_defun([_LT_FILEUTILS_DEFAULTS], -[: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} -])# _LT_FILEUTILS_DEFAULTS - - -# _LT_SETUP -# --------- -m4_defun([_LT_SETUP], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl - -_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl -dnl -_LT_DECL([], [host_alias], [0], [The host system])dnl -_LT_DECL([], [host], [0])dnl -_LT_DECL([], [host_os], [0])dnl -dnl -_LT_DECL([], [build_alias], [0], [The build system])dnl -_LT_DECL([], [build], [0])dnl -_LT_DECL([], [build_os], [0])dnl -dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -dnl -AC_REQUIRE([AC_PROG_LN_S])dnl -test -z "$LN_S" && LN_S="ln -s" -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl -dnl -AC_REQUIRE([LT_CMD_MAX_LEN])dnl -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl -dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_CHECK_SHELL_FEATURES])dnl -m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl -m4_require([_LT_CMD_RELOAD])dnl -m4_require([_LT_CHECK_MAGIC_METHOD])dnl -m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl -m4_require([_LT_CMD_OLD_ARCHIVE])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -m4_require([_LT_WITH_SYSROOT])dnl - -_LT_CONFIG_LIBTOOL_INIT([ -# See if we are running on zsh, and set the options which allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi -]) -if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi - -_LT_CHECK_OBJDIR - -m4_require([_LT_TAG_COMPILER])dnl - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Global variables: -ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a - -with_gnu_ld="$lt_cv_prog_gnu_ld" - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$LD" && LD=ld -test -z "$ac_objext" && ac_objext=o - -_LT_CC_BASENAME([$compiler]) - -# Only perform the check for file, if the check method requires it -test -z "$MAGIC_CMD" && MAGIC_CMD=file -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - _LT_PATH_MAGIC - fi - ;; -esac - -# Use C for the default configuration in the libtool script -LT_SUPPORTED_TAG([CC]) -_LT_LANG_C_CONFIG -_LT_LANG_DEFAULT_CONFIG -_LT_CONFIG_COMMANDS -])# _LT_SETUP - - -# _LT_PREPARE_SED_QUOTE_VARS -# -------------------------- -# Define a few sed substitution that help us do robust quoting. -m4_defun([_LT_PREPARE_SED_QUOTE_VARS], -[# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([["`\\]]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' -]) - -# _LT_PROG_LTMAIN -# --------------- -# Note that this code is called both from `configure', and `config.status' -# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, -# `config.status' has no value for ac_aux_dir unless we are using Automake, -# so we pass a copy along to make sure it has a sensible value anyway. -m4_defun([_LT_PROG_LTMAIN], -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) -ltmain="$ac_aux_dir/ltmain.sh" -])# _LT_PROG_LTMAIN - - -## ------------------------------------- ## -## Accumulate code for creating libtool. ## -## ------------------------------------- ## - -# So that we can recreate a full libtool script including additional -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS -# in macros and then make a single call at the end using the `libtool' -# label. - - -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) -# ---------------------------------------- -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. -m4_define([_LT_CONFIG_LIBTOOL_INIT], -[m4_ifval([$1], - [m4_append([_LT_OUTPUT_LIBTOOL_INIT], - [$1 -])])]) - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_INIT]) - - -# _LT_CONFIG_LIBTOOL([COMMANDS]) -# ------------------------------ -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. -m4_define([_LT_CONFIG_LIBTOOL], -[m4_ifval([$1], - [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], - [$1 -])])]) - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) - - -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) -# ----------------------------------------------------- -m4_defun([_LT_CONFIG_SAVE_COMMANDS], -[_LT_CONFIG_LIBTOOL([$1]) -_LT_CONFIG_LIBTOOL_INIT([$2]) -]) - - -# _LT_FORMAT_COMMENT([COMMENT]) -# ----------------------------- -# Add leading comment marks to the start of each line, and a trailing -# full-stop to the whole comment if one is not present already. -m4_define([_LT_FORMAT_COMMENT], -[m4_ifval([$1], [ -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], - [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) -)]) - - - -## ------------------------ ## -## FIXME: Eliminate VARNAME ## -## ------------------------ ## - - -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) -# ------------------------------------------------------------------- -# CONFIGNAME is the name given to the value in the libtool script. -# VARNAME is the (base) name used in the configure script. -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on -# VARNAME. Any other value will be used directly. -m4_define([_LT_DECL], -[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], - [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], - [m4_ifval([$1], [$1], [$2])]) - lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) - m4_ifval([$4], - [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) - lt_dict_add_subkey([lt_decl_dict], [$2], - [tagged?], [m4_ifval([$5], [yes], [no])])]) -]) - - -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) -# -------------------------------------------------------- -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) - - -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) -# ------------------------------------------------ -m4_define([lt_decl_tag_varnames], -[_lt_decl_filter([tagged?], [yes], $@)]) - - -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) -# --------------------------------------------------------- -m4_define([_lt_decl_filter], -[m4_case([$#], - [0], [m4_fatal([$0: too few arguments: $#])], - [1], [m4_fatal([$0: too few arguments: $#: $1])], - [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], - [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], - [lt_dict_filter([lt_decl_dict], $@)])[]dnl -]) - - -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) -# -------------------------------------------------- -m4_define([lt_decl_quote_varnames], -[_lt_decl_filter([value], [1], $@)]) - - -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) -# --------------------------------------------------- -m4_define([lt_decl_dquote_varnames], -[_lt_decl_filter([value], [2], $@)]) - - -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) -# --------------------------------------------------- -m4_define([lt_decl_varnames_tagged], -[m4_assert([$# <= 2])dnl -_$0(m4_quote(m4_default([$1], [[, ]])), - m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), - m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) -m4_define([_lt_decl_varnames_tagged], -[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) - - -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) -# ------------------------------------------------ -m4_define([lt_decl_all_varnames], -[_$0(m4_quote(m4_default([$1], [[, ]])), - m4_if([$2], [], - m4_quote(lt_decl_varnames), - m4_quote(m4_shift($@))))[]dnl -]) -m4_define([_lt_decl_all_varnames], -[lt_join($@, lt_decl_varnames_tagged([$1], - lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl -]) - - -# _LT_CONFIG_STATUS_DECLARE([VARNAME]) -# ------------------------------------ -# Quote a variable value, and forward it to `config.status' so that its -# declaration there will have the same value as in `configure'. VARNAME -# must have a single quote delimited value for this to work. -m4_define([_LT_CONFIG_STATUS_DECLARE], -[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) - - -# _LT_CONFIG_STATUS_DECLARATIONS -# ------------------------------ -# We delimit libtool config variables with single quotes, so when -# we write them to config.status, we have to be sure to quote all -# embedded single quotes properly. In configure, this macro expands -# each variable declared with _LT_DECL (and _LT_TAGDECL) into: -# -# ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), - [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) - - -# _LT_LIBTOOL_TAGS -# ---------------- -# Output comment and list of tags supported by the script -m4_defun([_LT_LIBTOOL_TAGS], -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl -available_tags="_LT_TAGS"dnl -]) - - -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) -# ----------------------------------- -# Extract the dictionary values for VARNAME (optionally with TAG) and -# expand to a commented shell variable setting: -# -# # Some comment about what VAR is for. -# visible_name=$lt_internal_name -m4_define([_LT_LIBTOOL_DECLARE], -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], - [description])))[]dnl -m4_pushdef([_libtool_name], - m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), - [0], [_libtool_name=[$]$1], - [1], [_libtool_name=$lt_[]$1], - [2], [_libtool_name=$lt_[]$1], - [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl -]) - - -# _LT_LIBTOOL_CONFIG_VARS -# ----------------------- -# Produce commented declarations of non-tagged libtool config variables -# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' -# script. Tagged libtool config variables (even for the LIBTOOL CONFIG -# section) are produced by _LT_LIBTOOL_TAG_VARS. -m4_defun([_LT_LIBTOOL_CONFIG_VARS], -[m4_foreach([_lt_var], - m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) - - -# _LT_LIBTOOL_TAG_VARS(TAG) -# ------------------------- -m4_define([_LT_LIBTOOL_TAG_VARS], -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) - - -# _LT_TAGVAR(VARNAME, [TAGNAME]) -# ------------------------------ -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) - - -# _LT_CONFIG_COMMANDS -# ------------------- -# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of -# variables for single and double quote escaping we saved from calls -# to _LT_DECL, we can put quote escaped variables declarations -# into `config.status', and then the shell code to quote escape them in -# for loops in `config.status'. Finally, any additional code accumulated -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. -m4_defun([_LT_CONFIG_COMMANDS], -[AC_PROVIDE_IFELSE([LT_OUTPUT], - dnl If the libtool generation code has been placed in $CONFIG_LT, - dnl instead of duplicating it all over again into config.status, - dnl then we will have config.status run $CONFIG_LT later, so it - dnl needs to know what name is stored there: - [AC_CONFIG_COMMANDS([libtool], - [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], - dnl If the libtool generation code is destined for config.status, - dnl expand the accumulated commands and init code now: - [AC_CONFIG_COMMANDS([libtool], - [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) -])#_LT_CONFIG_COMMANDS - - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], -[ - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -sed_quote_subst='$sed_quote_subst' -double_quote_subst='$double_quote_subst' -delay_variable_subst='$delay_variable_subst' -_LT_CONFIG_STATUS_DECLARATIONS -LTCC='$LTCC' -LTCFLAGS='$LTCFLAGS' -compiler='$compiler_DEFAULT' - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$[]1 -_LTECHO_EOF' -} - -# Quote evaled strings. -for var in lt_decl_all_varnames([[ \ -]], lt_decl_quote_varnames); do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[[\\\\\\\`\\"\\\$]]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Double-quote double-evaled strings. -for var in lt_decl_all_varnames([[ \ -]], lt_decl_dquote_varnames); do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[[\\\\\\\`\\"\\\$]]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -_LT_OUTPUT_LIBTOOL_INIT -]) - -# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) -# ------------------------------------ -# Generate a child script FILE with all initialization necessary to -# reuse the environment learned by the parent script, and make the -# file executable. If COMMENT is supplied, it is inserted after the -# `#!' sequence but before initialization text begins. After this -# macro, additional text can be appended to FILE to form the body of -# the child script. The macro ends with non-zero status if the -# file could not be fully written (such as if the disk is full). -m4_ifdef([AS_INIT_GENERATED], -[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], -[m4_defun([_LT_GENERATED_FILE_INIT], -[m4_require([AS_PREPARE])]dnl -[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl -[lt_write_fail=0 -cat >$1 <<_ASEOF || lt_write_fail=1 -#! $SHELL -# Generated by $as_me. -$2 -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$1 <<\_ASEOF || lt_write_fail=1 -AS_SHELL_SANITIZE -_AS_PREPARE -exec AS_MESSAGE_FD>&1 -_ASEOF -test $lt_write_fail = 0 && chmod +x $1[]dnl -m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT - -# LT_OUTPUT -# --------- -# This macro allows early generation of the libtool script (before -# AC_OUTPUT is called), incase it is used in configure for compilation -# tests. -AC_DEFUN([LT_OUTPUT], -[: ${CONFIG_LT=./config.lt} -AC_MSG_NOTICE([creating $CONFIG_LT]) -_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], -[# Run this file to recreate a libtool stub with the current configuration.]) - -cat >>"$CONFIG_LT" <<\_LTEOF -lt_cl_silent=false -exec AS_MESSAGE_LOG_FD>>config.log -{ - echo - AS_BOX([Running $as_me.]) -} >&AS_MESSAGE_LOG_FD - -lt_cl_help="\ -\`$as_me' creates a local libtool stub from the current configuration, -for use in further configure time tests before the real libtool is -generated. - -Usage: $[0] [[OPTIONS]] - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - -Report bugs to ." - -lt_cl_version="\ -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) -configured by $[0], generated by m4_PACKAGE_STRING. - -Copyright (C) 2011 Free Software Foundation, Inc. -This config.lt script is free software; the Free Software Foundation -gives unlimited permision to copy, distribute and modify it." - -while test $[#] != 0 -do - case $[1] in - --version | --v* | -V ) - echo "$lt_cl_version"; exit 0 ;; - --help | --h* | -h ) - echo "$lt_cl_help"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --quiet | --q* | --silent | --s* | -q ) - lt_cl_silent=: ;; - - -*) AC_MSG_ERROR([unrecognized option: $[1] -Try \`$[0] --help' for more information.]) ;; - - *) AC_MSG_ERROR([unrecognized argument: $[1] -Try \`$[0] --help' for more information.]) ;; - esac - shift -done - -if $lt_cl_silent; then - exec AS_MESSAGE_FD>/dev/null -fi -_LTEOF - -cat >>"$CONFIG_LT" <<_LTEOF -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT -_LTEOF - -cat >>"$CONFIG_LT" <<\_LTEOF -AC_MSG_NOTICE([creating $ofile]) -_LT_OUTPUT_LIBTOOL_COMMANDS -AS_EXIT(0) -_LTEOF -chmod +x "$CONFIG_LT" - -# configure is writing to config.log, but config.lt does its own redirection, -# appending to config.log, which fails on DOS, as config.log is still kept -# open by configure. Here we exec the FD to /dev/null, effectively closing -# config.log, so it can be properly (re)opened and appended to by config.lt. -lt_cl_success=: -test "$silent" = yes && - lt_config_lt_args="$lt_config_lt_args --quiet" -exec AS_MESSAGE_LOG_FD>/dev/null -$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false -exec AS_MESSAGE_LOG_FD>>config.log -$lt_cl_success || AS_EXIT(1) -])# LT_OUTPUT - - -# _LT_CONFIG(TAG) -# --------------- -# If TAG is the built-in tag, create an initial libtool script with a -# default configuration from the untagged config vars. Otherwise add code -# to config.status for appending the configuration named by TAG from the -# matching tagged config vars. -m4_defun([_LT_CONFIG], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -_LT_CONFIG_SAVE_COMMANDS([ - m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl - m4_if(_LT_TAG, [C], [ - # See if we are running on zsh, and set the options which allow our - # commands through without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - - cfgfile="${ofile}T" - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 - $RM "$cfgfile" - - cat <<_LT_EOF >> "$cfgfile" -#! $SHELL - -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -_LT_COPYING -_LT_LIBTOOL_TAGS - -# ### BEGIN LIBTOOL CONFIG -_LT_LIBTOOL_CONFIG_VARS -_LT_LIBTOOL_TAG_VARS -# ### END LIBTOOL CONFIG - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - _LT_PROG_LTMAIN - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - _LT_PROG_REPLACE_SHELLFNS - - mv -f "$cfgfile" "$ofile" || - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -], -[cat <<_LT_EOF >> "$ofile" - -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded -dnl in a comment (ie after a #). -# ### BEGIN LIBTOOL TAG CONFIG: $1 -_LT_LIBTOOL_TAG_VARS(_LT_TAG) -# ### END LIBTOOL TAG CONFIG: $1 -_LT_EOF -])dnl /m4_if -], -[m4_if([$1], [], [ - PACKAGE='$PACKAGE' - VERSION='$VERSION' - TIMESTAMP='$TIMESTAMP' - RM='$RM' - ofile='$ofile'], []) -])dnl /_LT_CONFIG_SAVE_COMMANDS -])# _LT_CONFIG - - -# LT_SUPPORTED_TAG(TAG) -# --------------------- -# Trace this macro to discover what tags are supported by the libtool -# --tag option, using: -# autoconf --trace 'LT_SUPPORTED_TAG:$1' -AC_DEFUN([LT_SUPPORTED_TAG], []) - - -# C support is built-in for now -m4_define([_LT_LANG_C_enabled], []) -m4_define([_LT_TAGS], []) - - -# LT_LANG(LANG) -# ------------- -# Enable libtool support for the given language if not already enabled. -AC_DEFUN([LT_LANG], -[AC_BEFORE([$0], [LT_OUTPUT])dnl -m4_case([$1], - [C], [_LT_LANG(C)], - [C++], [_LT_LANG(CXX)], - [Go], [_LT_LANG(GO)], - [Java], [_LT_LANG(GCJ)], - [Fortran 77], [_LT_LANG(F77)], - [Fortran], [_LT_LANG(FC)], - [Windows Resource], [_LT_LANG(RC)], - [m4_ifdef([_LT_LANG_]$1[_CONFIG], - [_LT_LANG($1)], - [m4_fatal([$0: unsupported language: "$1"])])])dnl -])# LT_LANG - - -# _LT_LANG(LANGNAME) -# ------------------ -m4_defun([_LT_LANG], -[m4_ifdef([_LT_LANG_]$1[_enabled], [], - [LT_SUPPORTED_TAG([$1])dnl - m4_append([_LT_TAGS], [$1 ])dnl - m4_define([_LT_LANG_]$1[_enabled], [])dnl - _LT_LANG_$1_CONFIG($1)])dnl -])# _LT_LANG - - -m4_ifndef([AC_PROG_GO], [ -############################################################ -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_GO. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -############################################################ -m4_defun([AC_PROG_GO], -[AC_LANG_PUSH(Go)dnl -AC_ARG_VAR([GOC], [Go compiler command])dnl -AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl -_AC_ARG_VAR_LDFLAGS()dnl -AC_CHECK_TOOL(GOC, gccgo) -if test -z "$GOC"; then - if test -n "$ac_tool_prefix"; then - AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) - fi -fi -if test -z "$GOC"; then - AC_CHECK_PROG(GOC, gccgo, gccgo, false) -fi -])#m4_defun -])#m4_ifndef - - -# _LT_LANG_DEFAULT_CONFIG -# ----------------------- -m4_defun([_LT_LANG_DEFAULT_CONFIG], -[AC_PROVIDE_IFELSE([AC_PROG_CXX], - [LT_LANG(CXX)], - [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) - -AC_PROVIDE_IFELSE([AC_PROG_F77], - [LT_LANG(F77)], - [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) - -AC_PROVIDE_IFELSE([AC_PROG_FC], - [LT_LANG(FC)], - [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) - -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal -dnl pulling things in needlessly. -AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [LT_LANG(GCJ)], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [LT_LANG(GCJ)], - [AC_PROVIDE_IFELSE([LT_PROG_GCJ], - [LT_LANG(GCJ)], - [m4_ifdef([AC_PROG_GCJ], - [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) - m4_ifdef([A][M_PROG_GCJ], - [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) - m4_ifdef([LT_PROG_GCJ], - [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) - -AC_PROVIDE_IFELSE([AC_PROG_GO], - [LT_LANG(GO)], - [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) - -AC_PROVIDE_IFELSE([LT_PROG_RC], - [LT_LANG(RC)], - [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) -])# _LT_LANG_DEFAULT_CONFIG - -# Obsolete macros: -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) -AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_CXX], []) -dnl AC_DEFUN([AC_LIBTOOL_F77], []) -dnl AC_DEFUN([AC_LIBTOOL_FC], []) -dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) -dnl AC_DEFUN([AC_LIBTOOL_RC], []) - - -# _LT_TAG_COMPILER -# ---------------- -m4_defun([_LT_TAG_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl - -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_TAG_COMPILER - - -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -m4_defun([_LT_COMPILER_BOILERPLATE], -[m4_require([_LT_DECL_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$RM conftest* -])# _LT_COMPILER_BOILERPLATE - - -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -m4_defun([_LT_LINKER_BOILERPLATE], -[m4_require([_LT_DECL_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$RM -r conftest* -])# _LT_LINKER_BOILERPLATE - -# _LT_REQUIRED_DARWIN_CHECKS -# ------------------------- -m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ - case $host_os in - rhapsody* | darwin*) - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) - AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) - AC_CHECK_TOOL([LIPO], [lipo], [:]) - AC_CHECK_TOOL([OTOOL], [otool], [:]) - AC_CHECK_TOOL([OTOOL64], [otool64], [:]) - _LT_DECL([], [DSYMUTIL], [1], - [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) - _LT_DECL([], [NMEDIT], [1], - [Tool to change global to local symbols on Mac OS X]) - _LT_DECL([], [LIPO], [1], - [Tool to manipulate fat objects and archives on Mac OS X]) - _LT_DECL([], [OTOOL], [1], - [ldd/readelf like tool for Mach-O binaries on Mac OS X]) - _LT_DECL([], [OTOOL64], [1], - [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) - - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], - [lt_cv_apple_cc_single_mod=no - if test -z "${LT_MULTI_MODULE}"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - rm -rf libconftest.dylib* - echo "int foo(void){return 1;}" > conftest.c - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ --dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err - _lt_result=$? - # If there is a non-empty error log, and "single_module" - # appears in it, assume the flag caused a linker warning - if test -s conftest.err && $GREP single_module conftest.err; then - cat conftest.err >&AS_MESSAGE_LOG_FD - # Otherwise, if the output was created with a 0 exit code from - # the compiler, it worked. - elif test -f libconftest.dylib && test $_lt_result -eq 0; then - lt_cv_apple_cc_single_mod=yes - else - cat conftest.err >&AS_MESSAGE_LOG_FD - fi - rm -rf libconftest.dylib* - rm -f conftest.* - fi]) - - AC_CACHE_CHECK([for -exported_symbols_list linker flag], - [lt_cv_ld_exported_symbols_list], - [lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [lt_cv_ld_exported_symbols_list=yes], - [lt_cv_ld_exported_symbols_list=no]) - LDFLAGS="$save_LDFLAGS" - ]) - - AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], - [lt_cv_ld_force_load=no - cat > conftest.c << _LT_EOF -int forced_loaded() { return 2;} -_LT_EOF - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD - echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD - $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD - echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD - $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD - cat > conftest.c << _LT_EOF -int main() { return 0;} -_LT_EOF - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err - _lt_result=$? - if test -s conftest.err && $GREP force_load conftest.err; then - cat conftest.err >&AS_MESSAGE_LOG_FD - elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then - lt_cv_ld_force_load=yes - else - cat conftest.err >&AS_MESSAGE_LOG_FD - fi - rm -f conftest.err libconftest.a conftest conftest.c - rm -rf conftest.dSYM - ]) - case $host_os in - rhapsody* | darwin1.[[012]]) - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - darwin*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - 10.[[012]]*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test "$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" != ":" && test "$lt_cv_ld_force_load" = "no"; then - _lt_dsymutil='~$DSYMUTIL $lib || :' - else - _lt_dsymutil= - fi - ;; - esac -]) - - -# _LT_DARWIN_LINKER_FEATURES([TAG]) -# --------------------------------- -# Checks for linker and compiler features on darwin -m4_defun([_LT_DARWIN_LINKER_FEATURES], -[ - m4_require([_LT_REQUIRED_DARWIN_CHECKS]) - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_automatic, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - if test "$lt_cv_ld_force_load" = "yes"; then - _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' - m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], - [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) - else - _LT_TAGVAR(whole_archive_flag_spec, $1)='' - fi - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" - case $cc_basename in - ifort*) _lt_dar_can_shared=yes ;; - *) _lt_dar_can_shared=$GCC ;; - esac - if test "$_lt_dar_can_shared" = "yes"; then - output_verbose_link_cmd=func_echo_all - _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - m4_if([$1], [CXX], -[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then - _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" - fi -],[]) - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi -]) - -# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) -# ---------------------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -# Store the results from the different compilers for each TAGNAME. -# Allow to override them for all tags through lt_cv_aix_libpath. -m4_defun([_LT_SYS_MODULE_PATH_AIX], -[m4_require([_LT_DECL_SED])dnl -if test "${lt_cv_aix_libpath+set}" = set; then - aix_libpath=$lt_cv_aix_libpath -else - AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], - [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ - lt_aix_libpath_sed='[ - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }]' - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi],[]) - if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" - fi - ]) - aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) -fi -])# _LT_SYS_MODULE_PATH_AIX - - -# _LT_SHELL_INIT(ARG) -# ------------------- -m4_define([_LT_SHELL_INIT], -[m4_divert_text([M4SH-INIT], [$1 -])])# _LT_SHELL_INIT - - - -# _LT_PROG_ECHO_BACKSLASH -# ----------------------- -# Find how we can fake an echo command that does not interpret backslash. -# In particular, with Autoconf 2.60 or later we add some code to the start -# of the generated configure script which will find a shell with a builtin -# printf (which we can use as an echo command). -m4_defun([_LT_PROG_ECHO_BACKSLASH], -[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -AC_MSG_CHECKING([how to print strings]) -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$[]1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "$*" -} - -case "$ECHO" in - printf*) AC_MSG_RESULT([printf]) ;; - print*) AC_MSG_RESULT([print -r]) ;; - *) AC_MSG_RESULT([cat]) ;; -esac - -m4_ifdef([_AS_DETECT_SUGGESTED], -[_AS_DETECT_SUGGESTED([ - test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - PATH=/empty FPATH=/empty; export PATH FPATH - test "X`printf %s $ECHO`" = "X$ECHO" \ - || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) - -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) -_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) -])# _LT_PROG_ECHO_BACKSLASH - - -# _LT_WITH_SYSROOT -# ---------------- -AC_DEFUN([_LT_WITH_SYSROOT], -[AC_MSG_CHECKING([for sysroot]) -AC_ARG_WITH([sysroot], -[ --with-sysroot[=DIR] Search for dependent libraries within DIR - (or the compiler's sysroot if not specified).], -[], [with_sysroot=no]) - -dnl lt_sysroot will always be passed unquoted. We quote it here -dnl in case the user passed a directory name. -lt_sysroot= -case ${with_sysroot} in #( - yes) - if test "$GCC" = yes; then - lt_sysroot=`$CC --print-sysroot 2>/dev/null` - fi - ;; #( - /*) - lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` - ;; #( - no|'') - ;; #( - *) - AC_MSG_RESULT([${with_sysroot}]) - AC_MSG_ERROR([The sysroot must be an absolute path.]) - ;; -esac - - AC_MSG_RESULT([${lt_sysroot:-no}]) -_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl -[dependent libraries, and in which our libraries should be installed.])]) - -# _LT_ENABLE_LOCK -# --------------- -m4_defun([_LT_ENABLE_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AS_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "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 '$LINENO' "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*|powerpc*-*linux*| \ -s390*-*linux*|s390*-*tpf*|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*) - case `/usr/bin/file conftest.o` in - *x86-64*) - LD="${LD-ld} -m elf32_x86_64" - ;; - *) - LD="${LD-ld} -m elf_i386" - ;; - esac - ;; - powerpc64le-*) - LD="${LD-ld} -m elf32lppclinux" - ;; - powerpc64-*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - powerpcle-*) - LD="${LD-ld} -m elf64lppc" - ;; - powerpc-*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*|s390*-*tpf*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test 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 - ;; -*-*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*) - case $host in - i?86-*-solaris*) - LD="${LD-ld} -m elf_x86_64" - ;; - sparc*-*-solaris*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - # GNU ld 2.21 introduced _sol2 emulations. Use them if available. - if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then - LD="${LD-ld}_sol2" - fi - ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -esac - -need_locks="$enable_libtool_lock" -])# _LT_ENABLE_LOCK - - -# _LT_PROG_AR -# ----------- -m4_defun([_LT_PROG_AR], -[AC_CHECK_TOOLS(AR, [ar], false) -: ${AR=ar} -: ${AR_FLAGS=cru} -_LT_DECL([], [AR], [1], [The archiver]) -_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) - -AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], - [lt_cv_ar_at_file=no - AC_COMPILE_IFELSE([AC_LANG_PROGRAM], - [echo conftest.$ac_objext > conftest.lst - lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' - AC_TRY_EVAL([lt_ar_try]) - if test "$ac_status" -eq 0; then - # Ensure the archiver fails upon bogus file names. - rm -f conftest.$ac_objext libconftest.a - AC_TRY_EVAL([lt_ar_try]) - if test "$ac_status" -ne 0; then - lt_cv_ar_at_file=@ - fi - fi - rm -f conftest.* libconftest.a - ]) - ]) - -if test "x$lt_cv_ar_at_file" = xno; then - archiver_list_spec= -else - archiver_list_spec=$lt_cv_ar_at_file -fi -_LT_DECL([], [archiver_list_spec], [1], - [How to feed a file listing to the archiver]) -])# _LT_PROG_AR - - -# _LT_CMD_OLD_ARCHIVE -# ------------------- -m4_defun([_LT_CMD_OLD_ARCHIVE], -[_LT_PROG_AR - -AC_CHECK_TOOL(STRIP, strip, :) -test -z "$STRIP" && STRIP=: -_LT_DECL([], [STRIP], [1], [A symbol stripping program]) - -AC_CHECK_TOOL(RANLIB, ranlib, :) -test -z "$RANLIB" && RANLIB=: -_LT_DECL([], [RANLIB], [1], - [Commands used to install an old-style archive]) - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" -fi - -case $host_os in - darwin*) - lock_old_archive_extraction=yes ;; - *) - lock_old_archive_extraction=no ;; -esac -_LT_DECL([], [old_postinstall_cmds], [2]) -_LT_DECL([], [old_postuninstall_cmds], [2]) -_LT_TAGDECL([], [old_archive_cmds], [2], - [Commands used to build an old-style archive]) -_LT_DECL([], [lock_old_archive_extraction], [0], - [Whether to use a lock for old archive extraction]) -])# _LT_CMD_OLD_ARCHIVE - - -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([_LT_COMPILER_OPTION], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $RM conftest* -]) - -if test x"[$]$2" = xyes; then - m4_if([$5], , :, [$5]) -else - m4_if([$6], , :, [$6]) -fi -])# _LT_COMPILER_OPTION - -# Old name: -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) - - -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------- -# Check whether the given linker option works -AC_DEFUN([_LT_LINKER_OPTION], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $3" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $RM -r conftest* - LDFLAGS="$save_LDFLAGS" -]) - -if test x"[$]$2" = xyes; then - m4_if([$4], , :, [$4]) -else - m4_if([$5], , :, [$5]) -fi -])# _LT_LINKER_OPTION - -# Old name: -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) - - -# LT_CMD_MAX_LEN -#--------------- -AC_DEFUN([LT_CMD_MAX_LEN], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - mint*) - # On MiNT this can take a long time and run out of memory. - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - 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 - ;; - - os2*) - # The test takes a long time on OS/2. - lt_cv_sys_max_cmd_len=8192 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len" && \ - test undefined != "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - # Make teststring a little bigger before we do anything with it. - # a 1K string should be a reasonable start. - for i in 1 2 3 4 5 6 7 8 ; do - teststring=$teststring$teststring - done - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ - = "X$teststring$teststring"; } >/dev/null 2>&1 && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - # Only check the string length outside the loop. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` - teststring= - # Add a significant safety factor because C++ compilers can tack on - # massive amounts of additional arguments before passing them to the - # linker. It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -]) -if test -n $lt_cv_sys_max_cmd_len ; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -max_cmd_len=$lt_cv_sys_max_cmd_len -_LT_DECL([], [max_cmd_len], [0], - [What is the maximum length of a command?]) -])# LT_CMD_MAX_LEN - -# Old name: -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) - - -# _LT_HEADER_DLFCN -# ---------------- -m4_defun([_LT_HEADER_DLFCN], -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl -])# _LT_HEADER_DLFCN - - -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# ---------------------------------------------------------------- -m4_defun([_LT_TRY_DLOPEN_SELF], -[m4_require([_LT_HEADER_DLFCN])dnl -if test "$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 <<_LT_EOF -[#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisbility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -}] -_LT_EOF - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_TRY_DLOPEN_SELF - - -# LT_SYS_DLOPEN_SELF -# ------------------ -AC_DEFUN([LT_SYS_DLOPEN_SELF], -[m4_require([_LT_HEADER_DLFCN])dnl -if test "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* | cegcc*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; - - *) - 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_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_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi -_LT_DECL([dlopen_support], [enable_dlopen], [0], - [Whether dlopen is supported]) -_LT_DECL([dlopen_self], [enable_dlopen_self], [0], - [Whether dlopen of programs is supported]) -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], - [Whether dlopen of statically linked programs is supported]) -])# LT_SYS_DLOPEN_SELF - -# Old name: -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) - - -# _LT_COMPILER_C_O([TAGNAME]) -# --------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler. -# This macro does not hard code the compiler like AC_PROG_CC_C_O. -m4_defun([_LT_COMPILER_C_O], -[m4_require([_LT_DECL_SED])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_TAG_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* -]) -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], - [Does compiler simultaneously support -c and -o options?]) -])# _LT_COMPILER_C_O - - -# _LT_COMPILER_FILE_LOCKS([TAGNAME]) -# ---------------------------------- -# Check to see if we can do hard links to lock some files if needed -m4_defun([_LT_COMPILER_FILE_LOCKS], -[m4_require([_LT_ENABLE_LOCK])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -_LT_COMPILER_C_O([$1]) - -hard_links="nottested" -if test "$_LT_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 -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) -])# _LT_COMPILER_FILE_LOCKS - - -# _LT_CHECK_OBJDIR -# ---------------- -m4_defun([_LT_CHECK_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -_LT_DECL([], [objdir], [0], - [The name of the directory that contains temporary libtool files])dnl -m4_pattern_allow([LT_OBJDIR])dnl -AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", - [Define to the sub-directory in which libtool stores uninstalled libraries.]) -])# _LT_CHECK_OBJDIR - - -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) -# -------------------------------------- -# Check hardcoding attributes. -m4_defun([_LT_LINKER_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || - test -n "$_LT_TAGVAR(runpath_var, $1)" || - test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then - - # We can hardcode non-existent directories. - if test "$_LT_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_TAGVAR(hardcode_shlibpath_var, $1)" != no && - test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then - # Linking always hardcodes the temporary library directory. - _LT_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_TAGVAR(hardcode_action, $1)=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) - -if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || - test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; 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 -_LT_TAGDECL([], [hardcode_action], [0], - [How to hardcode a shared library path into an executable]) -])# _LT_LINKER_HARDCODE_LIBPATH - - -# _LT_CMD_STRIPLIB -# ---------------- -m4_defun([_LT_CMD_STRIPLIB], -[m4_require([_LT_DECL_EGREP]) -striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -fi -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) -_LT_DECL([], [striplib], [1]) -])# _LT_CMD_STRIPLIB - - -# _LT_SYS_DYNAMIC_LINKER([TAG]) -# ----------------------------- -# PORTME Fill in your ld.so characteristics -m4_defun([_LT_SYS_DYNAMIC_LINKER], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_OBJDUMP])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_CHECK_SHELL_FEATURES])dnl -AC_MSG_CHECKING([dynamic linker characteristics]) -m4_if([$1], - [], [ -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - case $host_os in - mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; - *) lt_sed_strip_eq="s,=/,/,g" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` - case $lt_search_path_spec in - *\;*) - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` - ;; - *) - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` - ;; - esac - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - 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; } -}'` - # AWK program above erroneously prepends '/' to C:/dos/paths - # for these hosts. - case $host_os in - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ - $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; - esac - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix[[4-9]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$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*) - case $host_cpu in - powerpc) - # Since July 2007 AmigaOS4 officially supports .so libraries. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - ;; - m68k) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; 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' - ;; - esac - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$cc_basename in - yes,*) - # gcc - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' -m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) - ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - ;; - esac - dynamic_linker='Win32 ld.exe' - ;; - - *,cl*) - # Native MSVC - libname_spec='$name' - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - library_names_spec='${libname}.dll.lib' - - case $build_os in - mingw*) - sys_lib_search_path_spec= - lt_save_ifs=$IFS - IFS=';' - for lt_path in $LIB - do - IFS=$lt_save_ifs - # Let DOS variable expansion print the short 8.3 style file name. - lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` - sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" - done - IFS=$lt_save_ifs - # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` - ;; - cygwin*) - # Convert to unix form, then to dos form, then back to unix form - # but this time dos style (no spaces!) so that the unix form looks - # like /cygdrive/c/PROGRA~1:/cygdr... - sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` - sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` - sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - ;; - *) - sys_lib_search_path_spec="$LIB" - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # FIXME: find the short name or the path components, as spaces are - # common. (e.g. "Program Files" -> "PROGRA~1") - ;; - esac - - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - dynamic_linker='Win32 link.exe' - ;; - - *) - # Assume MSVC wrapper - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' - dynamic_linker='Win32 ld.exe' - ;; - esac - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' -m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[23]].*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - 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 - ;; - -haiku*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - dynamic_linker="$host_os runtime_loader" - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LIBRARY_PATH - shlibpath_overrides_runpath=yes - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "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' - # or fails outright, so override atomically: - install_override_mode=555 - ;; - -interix[[3-9]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux # correct to gnu/linux during the next big refactor - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - - # Some binutils ld are patched to set DT_RUNPATH - AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], - [lt_cv_shlibpath_overrides_runpath=no - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], - [lt_cv_shlibpath_overrides_runpath=yes])]) - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - ]) - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # 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;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 # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -*nto* | *qnx*) - version_type=qnx - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='ldqnx.so' - ;; - -openbsd*) - 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 # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=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 - shlibpath_overrides_runpath=yes - 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' - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -tpf*) - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -uts4*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test "$dynamic_linker" = no && can_build_shared=no - -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 - -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then - sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -fi -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then - sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" -fi - -_LT_DECL([], [variables_saved_for_relink], [1], - [Variables whose values should be saved in libtool wrapper scripts and - restored at link time]) -_LT_DECL([], [need_lib_prefix], [0], - [Do we need the "lib" prefix for modules?]) -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) -_LT_DECL([], [version_type], [0], [Library versioning type]) -_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) -_LT_DECL([], [shlibpath_overrides_runpath], [0], - [Is shlibpath searched before the hard-coded library search path?]) -_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) -_LT_DECL([], [library_names_spec], [1], - [[List of archive names. First name is the real one, the rest are links. - The last name is the one that the linker finds with -lNAME]]) -_LT_DECL([], [soname_spec], [1], - [[The coded name of the library, if different from the real name]]) -_LT_DECL([], [install_override_mode], [1], - [Permission mode override for installation of shared libraries]) -_LT_DECL([], [postinstall_cmds], [2], - [Command to use after installation of a shared archive]) -_LT_DECL([], [postuninstall_cmds], [2], - [Command to use after uninstallation of a shared archive]) -_LT_DECL([], [finish_cmds], [2], - [Commands used to finish a libtool library installation in a directory]) -_LT_DECL([], [finish_eval], [1], - [[As "finish_cmds", except a single script fragment to be evaled but - not shown]]) -_LT_DECL([], [hardcode_into_libs], [0], - [Whether we should hardcode library paths into libraries]) -_LT_DECL([], [sys_lib_search_path_spec], [2], - [Compile-time system search path for libraries]) -_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], - [Run-time system search path for libraries]) -])# _LT_SYS_DYNAMIC_LINKER - - -# _LT_PATH_TOOL_PREFIX(TOOL) -# -------------------------- -# find a file program which can recognize shared library -AC_DEFUN([_LT_PATH_TOOL_PREFIX], -[m4_require([_LT_DECL_EGREP])dnl -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in -[[\\/*] | ?:[\\/]*]) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="m4_if([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$1; then - lt_cv_path_MAGIC_CMD="$ac_dir/$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac]) -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) -else - AC_MSG_RESULT(no) -fi -_LT_DECL([], [MAGIC_CMD], [0], - [Used to examine libraries when file_magic_cmd begins with "file"])dnl -])# _LT_PATH_TOOL_PREFIX - -# Old name: -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) - - -# _LT_PATH_MAGIC -# -------------- -# find a file program which can recognize a shared library -m4_defun([_LT_PATH_MAGIC], -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) - else - MAGIC_CMD=: - fi -fi -])# _LT_PATH_MAGIC - - -# LT_PATH_LD -# ---------- -# find the pathname to the GNU or non-GNU linker -AC_DEFUN([LT_PATH_LD], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_PROG_ECHO_BACKSLASH])dnl - -AC_ARG_WITH([gnu-ld], - [AS_HELP_STRING([--with-gnu-ld], - [assume the C compiler uses GNU ld @<:@default=no@:>@])], - [test "$withval" = no || with_gnu_ld=yes], - [with_gnu_ld=no])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 - # Keep this pattern in sync with the one in func_win32_libid. - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -cegcc*) - # use the weaker test based on 'objdump'. See mingw*. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -haiku*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[[3-9]]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd* | 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=pass_all - ;; - -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 - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -tpf*) - lt_cv_deplibs_check_method=pass_all - ;; -esac -]) - -file_magic_glob= -want_nocaseglob=no -if test "$build" = "$host"; then - case $host_os in - mingw* | pw32*) - if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then - want_nocaseglob=yes - else - file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` - fi - ;; - esac -fi - -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - -_LT_DECL([], [deplibs_check_method], [1], - [Method to check whether dependent libraries are shared objects]) -_LT_DECL([], [file_magic_cmd], [1], - [Command to use when deplibs_check_method = "file_magic"]) -_LT_DECL([], [file_magic_glob], [1], - [How to find potential files when deplibs_check_method = "file_magic"]) -_LT_DECL([], [want_nocaseglob], [1], - [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) -])# _LT_CHECK_MAGIC_METHOD - - -# LT_PATH_NM -# ---------- -# find the pathname to a BSD- or MS-compatible name lister -AC_DEFUN([LT_PATH_NM], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - 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 - : ${lt_cv_path_NM=no} -fi]) -if test "$lt_cv_path_NM" != "no"; then - NM="$lt_cv_path_NM" -else - # Didn't find any BSD compatible name lister, look for dumpbin. - if test -n "$DUMPBIN"; then : - # Let the user override the test. - else - AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) - case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in - *COFF*) - DUMPBIN="$DUMPBIN -symbols" - ;; - *) - DUMPBIN=: - ;; - esac - fi - AC_SUBST([DUMPBIN]) - if test "$DUMPBIN" != ":"; then - NM="$DUMPBIN" - fi -fi -test -z "$NM" && NM=nm -AC_SUBST([NM]) -_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl - -AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], - [lt_cv_nm_interface="BSD nm" - echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$ac_compile" 2>conftest.err) - cat conftest.err >&AS_MESSAGE_LOG_FD - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) - cat conftest.err >&AS_MESSAGE_LOG_FD - (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) - cat conftest.out >&AS_MESSAGE_LOG_FD - if $GREP 'External.*some_variable' conftest.out > /dev/null; then - lt_cv_nm_interface="MS dumpbin" - fi - rm -f conftest*]) -])# LT_PATH_NM - -# Old names: -AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) -AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_PROG_NM], []) -dnl AC_DEFUN([AC_PROG_NM], []) - -# _LT_CHECK_SHAREDLIB_FROM_LINKLIB -# -------------------------------- -# how to determine the name of the shared library -# associated with a specific link library. -# -- PORTME fill in with the dynamic library characteristics -m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], -[m4_require([_LT_DECL_EGREP]) -m4_require([_LT_DECL_OBJDUMP]) -m4_require([_LT_DECL_DLLTOOL]) -AC_CACHE_CHECK([how to associate runtime and link libraries], -lt_cv_sharedlib_from_linklib_cmd, -[lt_cv_sharedlib_from_linklib_cmd='unknown' - -case $host_os in -cygwin* | mingw* | pw32* | cegcc*) - # two different shell functions defined in ltmain.sh - # decide which to use based on capabilities of $DLLTOOL - case `$DLLTOOL --help 2>&1` in - *--identify-strict*) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib - ;; - *) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback - ;; - esac - ;; -*) - # fallback: assume linklib IS sharedlib - lt_cv_sharedlib_from_linklib_cmd="$ECHO" - ;; -esac -]) -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO - -_LT_DECL([], [sharedlib_from_linklib_cmd], [1], - [Command to associate shared and link libraries]) -])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB - - -# _LT_PATH_MANIFEST_TOOL -# ---------------------- -# locate the manifest tool -m4_defun([_LT_PATH_MANIFEST_TOOL], -[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) -test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], - [lt_cv_path_mainfest_tool=no - echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD - $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out - cat conftest.err >&AS_MESSAGE_LOG_FD - if $GREP 'Manifest Tool' conftest.out > /dev/null; then - lt_cv_path_mainfest_tool=yes - fi - rm -f conftest*]) -if test "x$lt_cv_path_mainfest_tool" != xyes; then - MANIFEST_TOOL=: -fi -_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl -])# _LT_PATH_MANIFEST_TOOL - - -# LT_LIB_M -# -------- -# check for math library -AC_DEFUN([LT_LIB_M], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, cos, LIBM="-lm") - ;; -esac -AC_SUBST([LIBM]) -])# LT_LIB_M - -# Old name: -AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_CHECK_LIBM], []) - - -# _LT_COMPILER_NO_RTTI([TAGNAME]) -# ------------------------------- -m4_defun([_LT_COMPILER_NO_RTTI], -[m4_require([_LT_TAG_COMPILER])dnl - -_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - -if test "$GCC" = yes; then - case $cc_basename in - nvcc*) - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; - *) - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; - esac - - _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], - lt_cv_prog_compiler_rtti_exceptions, - [-fno-rtti -fno-exceptions], [], - [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) -fi -_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], - [Compiler flag to turn off builtin functions]) -])# _LT_COMPILER_NO_RTTI - - -# _LT_CMD_GLOBAL_SYMBOLS -# ---------------------- -m4_defun([_LT_CMD_GLOBAL_SYMBOLS], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([LT_PATH_NM])dnl -AC_REQUIRE([LT_PATH_LD])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_TAG_COMPILER])dnl - -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], -[ -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32* | cegcc*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) - if test "$host_cpu" = ia64; then - symcode='[[ABCDEGRST]]' - fi - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris*) - symcode='[[BDRT]]' - ;; -sco3.2v5*) - symcode='[[DT]]' - ;; -sysv4.2uw2*) - symcode='[[DT]]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[[ABDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[[ABCDGIRSTW]]' ;; -esac - -# Transform an extracted symbol line into a proper C declaration. -# Some systems (esp. on ia64) link data and code symbols differently, -# so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# Try without a prefix underscore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Fake it for dumpbin and say T for any non-static function - # and D for any global variable. - # Also find C++ and __fastcall symbols from MSVC++, - # which start with @ or ?. - lt_cv_sys_global_symbol_pipe="$AWK ['"\ -" {last_section=section; section=\$ 3};"\ -" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ -" \$ 0!~/External *\|/{next};"\ -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ -" {if(hide[section]) next};"\ -" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ -" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ -" s[1]~/^[@?]/{print s[1], s[1]; next};"\ -" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ -" ' prfx=^$ac_symprfx]" - else - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - fi - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <<_LT_EOF -#ifdef __cplusplus -extern "C" { -#endif -char nm_test_var; -void nm_test_func(void); -void nm_test_func(void){} -#ifdef __cplusplus -} -#endif -int main(){nm_test_var='a';nm_test_func();return(0);} -_LT_EOF - - if AC_TRY_EVAL(ac_compile); then - # Now try to grab the symbols. - nlist=conftest.nm - if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then - cat <<_LT_EOF > conftest.$ac_ext -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) -/* DATA imports from DLLs on WIN32 con't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT@&t@_DLSYM_CONST -#elif defined(__osf__) -/* This system does not cope well with relocations in const data. */ -# define LT@&t@_DLSYM_CONST -#else -# define LT@&t@_DLSYM_CONST const -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -_LT_EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - - cat <<_LT_EOF >> conftest.$ac_ext - -/* The mapping between symbol names and symbols. */ -LT@&t@_DLSYM_CONST struct { - const char *name; - void *address; -} -lt__PROGRAM__LTX_preloaded_symbols[[]] = -{ - { "@PROGRAM@", (void *) 0 }, -_LT_EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext - cat <<\_LT_EOF >> conftest.$ac_ext - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt__PROGRAM__LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif -_LT_EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_globsym_save_LIBS=$LIBS - lt_globsym_save_CFLAGS=$CFLAGS - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS=$lt_globsym_save_LIBS - CFLAGS=$lt_globsym_save_CFLAGS - else - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi - else - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$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 - -# Response file support. -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - nm_file_list_spec='@' -elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then - nm_file_list_spec='@' -fi - -_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], - [Take the output of nm and produce a listing of raw symbols and C names]) -_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], - [Transform the output of nm in a proper C declaration]) -_LT_DECL([global_symbol_to_c_name_address], - [lt_cv_sys_global_symbol_to_c_name_address], [1], - [Transform the output of nm in a C name address pair]) -_LT_DECL([global_symbol_to_c_name_address_lib_prefix], - [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], - [Transform the output of nm in a C name address pair when lib prefix is needed]) -_LT_DECL([], [nm_file_list_spec], [1], - [Specify filename containing input files for $NM]) -]) # _LT_CMD_GLOBAL_SYMBOLS - - -# _LT_COMPILER_PIC([TAGNAME]) -# --------------------------- -m4_defun([_LT_COMPILER_PIC], -[m4_require([_LT_TAG_COMPILER])dnl -_LT_TAGVAR(lt_prog_compiler_wl, $1)= -_LT_TAGVAR(lt_prog_compiler_pic, $1)= -_LT_TAGVAR(lt_prog_compiler_static, $1)= - -m4_if([$1], [CXX], [ - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - _LT_TAGVAR(lt_prog_compiler_static, $1)= - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - case $host_os in - aix[[4-9]]*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - dgux*) - case $cc_basename in - ec++*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - fi - ;; - aCC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - KCC*) - # KAI C++ Compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - ecpc* ) - # old Intel C++ for x86_64 which still supported -KPIC. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - icpc* ) - # Intel C++, used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) - # IBM XL 8.0, 9.0 on PPC and BlueGene - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd* | netbsdelf*-gnu) - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - cxx*) - # Digital/Compaq C++ - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC* | sunCC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - lcc*) - # Lucid - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - *) - ;; - esac - ;; - vxworks*) - ;; - *) - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -], -[ - if test "$GCC" = yes; then - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - _LT_TAGVAR(lt_prog_compiler_static, $1)= - ;; - - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - enable_shared=no - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - - case $cc_basename in - nvcc*) # Cuda Compiler Driver 2.2 - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' - if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" - fi - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - - hpux9* | hpux10* | hpux11*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC (with -KPIC) is the default. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - # old Intel for x86_64 which still supported -KPIC. - ecc*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - # icc used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - icc* | ifort*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - # Lahey Fortran 8.1. - lf95*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' - _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' - ;; - nagfor*) - # NAG Fortran compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - ccc*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All Alpha code is PIC. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - xl* | bgxl* | bgf* | mpixl*) - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='' - ;; - *Sun\ F* | *Sun*Fortran*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - *Sun\ C*) - # Sun C 5.9 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - *Intel*\ [[CF]]*Compiler*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - *Portland\ Group*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - esac - ;; - - newsos6) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - - osf3* | osf4* | osf5*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All OSF/1 code is PIC. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - rdos*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - solaris*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - case $cc_basename in - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; - *) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; - esac - ;; - - sunos4*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - unicos*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - - uts4*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *) - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -]) -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" - ;; -esac - -AC_CACHE_CHECK([for $compiler option to produce PIC], - [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], - [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) -_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then - _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], - [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], - [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], - [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in - "" | " "*) ;; - *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; - esac], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) -fi -_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], - [Additional compiler flags for building library objects]) - -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], - [How to pass a linker flag through the compiler]) -# -# Check to make sure the static flag actually works. -# -wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" -_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], - _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), - $lt_tmp_static_flag, - [], - [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) -_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], - [Compiler flag to prevent dynamic linking]) -])# _LT_COMPILER_PIC - - -# _LT_LINKER_SHLIBS([TAGNAME]) -# ---------------------------- -# See if the linker supports building shared libraries. -m4_defun([_LT_LINKER_SHLIBS], -[AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -m4_require([_LT_PATH_MANIFEST_TOOL])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -m4_require([_LT_TAG_COMPILER])dnl -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -m4_if([$1], [CXX], [ - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] - case $host_os in - aix[[4-9]]*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - # Also, AIX nm treats weak defined symbols like other global defined - # symbols, whereas GNU nm marks them as "W". - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' - else - _LT_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_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" - ;; - cygwin* | mingw* | cegcc*) - case $cc_basename in - cl*) - _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - ;; - *) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] - ;; - esac - ;; - linux* | k*bsd*-gnu | gnu*) - _LT_TAGVAR(link_all_deplibs, $1)=no - ;; - *) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac -], [ - runpath_var= - _LT_TAGVAR(allow_undefined_flag, $1)= - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(archive_cmds, $1)= - _LT_TAGVAR(archive_expsym_cmds, $1)= - _LT_TAGVAR(compiler_needs_object, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - _LT_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(hardcode_automatic, $1)=no - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(hardcode_libdir_separator, $1)= - _LT_TAGVAR(hardcode_minus_L, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_TAGVAR(inherit_rpath, $1)=no - _LT_TAGVAR(link_all_deplibs, $1)=unknown - _LT_TAGVAR(module_cmds, $1)= - _LT_TAGVAR(module_expsym_cmds, $1)= - _LT_TAGVAR(old_archive_from_new_cmds, $1)= - _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= - _LT_TAGVAR(thread_safe_flag_spec, $1)= - _LT_TAGVAR(whole_archive_flag_spec, $1)= - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - _LT_TAGVAR(include_expsyms, $1)= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. -dnl Note also adjust exclude_expsyms for C++ above. - extract_expsyms_cmds= - - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$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 - ;; - linux* | k*bsd*-gnu | gnu*) - _LT_TAGVAR(link_all_deplibs, $1)=no - ;; - esac - - _LT_TAGVAR(ld_shlibs, $1)=yes - - # On some targets, GNU ld is compatible enough with the native linker - # that we're better off using the native interface for both. - lt_use_gnu_ld_interface=no - if test "$with_gnu_ld" = yes; then - case $host_os in - aix*) - # The AIX port of GNU ld has always aspired to compatibility - # with the native linker. However, as the warning in the GNU ld - # block says, versions before 2.19.5* couldn't really create working - # shared libraries, regardless of the interface used. - case `$LD -v 2>&1` in - *\ \(GNU\ Binutils\)\ 2.19.5*) ;; - *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; - *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - fi - - if test "$lt_use_gnu_ld_interface" = 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_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - supports_anon_versioning=no - case `$LD -v 2>&1` in - *GNU\ gold*) supports_anon_versioning=yes ;; - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[[3-9]]*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: the GNU linker, at least up to release 2.19, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to install binutils -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. -*** You will then need to restart the configuration process. - -_LT_EOF - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='' - ;; - m68k) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_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_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - haiku*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) - tmp_diet=no - if test "$host_os" = linux-dietlibc; then - case $cc_basename in - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) - esac - fi - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ - && test "$tmp_diet" = no - then - tmp_addflag=' $pic_flag' - tmp_sharedflag='-shared' - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group f77 and f90 compilers - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - lf95*) # Lahey Fortran 8.1 - _LT_TAGVAR(whole_archive_flag_spec, $1)= - tmp_sharedflag='--shared' ;; - xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) - tmp_sharedflag='-qmkshrobj' - tmp_addflag= ;; - nvcc*) # Cuda Compiler Driver 2.2 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - esac - _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test "x$supports_anon_versioning" = xyes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - - case $cc_basename in - xlf* | bgf* | bgxlf* | mpixlf*) - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself - _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' - if test "x$supports_anon_versioning" = xyes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' - fi - ;; - esac - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 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 - ;; - *) - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - sunos4*) - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - - if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then - runpath_var= - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - _LT_TAGVAR(hardcode_direct, $1)=unsupported - fi - ;; - - aix[[4-9]]*) - if test "$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 - # Also, AIX nm treats weak defined symbols like other global - # defined symbols, whereas GNU nm marks them as "W". - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' - else - _LT_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_TAGVAR(archive_cmds, $1)='' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' - - 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_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - _LT_TAGVAR(link_all_deplibs, $1)=no - 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 - - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_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_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - if test "$with_gnu_ld" = yes; then - # We only use this code for GNU lds that support --whole-archive. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_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*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='' - ;; - m68k) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - ;; - - bsdi[[45]]*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - case $cc_basename in - cl*) - # Native MSVC - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; - else - sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - # Don't use ranlib - _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' - _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile="$lt_outputfile.exe" - lt_tool_outputfile="$lt_tool_outputfile.exe" - ;; - esac~ - if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # Assume MSVC wrapper - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - # FIXME: Should let the user specify the lib program. - _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - esac - ;; - - darwin* | rhapsody*) - _LT_DARWIN_LINKER_FEATURES($1) - ;; - - dgux*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2.*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - hpux9*) - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_direct, $1)=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes && test "$with_gnu_ld" = no; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes && test "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - m4_if($1, [], [ - # Older versions of the 11.00 compiler do not understand -b yet - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - _LT_LINKER_OPTION([if $CC understands -b], - _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], - [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], - [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], - [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) - ;; - esac - fi - if test "$with_gnu_ld" = no; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - # Try to use the -exported_symbol ld option, if it does not - # work, assume that -exports_file does not work either and - # implicitly export all symbols. - # This should be the same for all languages, so no per-tag cache variable. - AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], - [lt_cv_irix_exported_symbol], - [save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" - AC_LINK_IFELSE( - [AC_LANG_SOURCE( - [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], - [C++], [[int foo (void) { return 0; }]], - [Fortran 77], [[ - subroutine foo - end]], - [Fortran], [[ - subroutine foo - end]])])], - [lt_cv_irix_exported_symbol=yes], - [lt_cv_irix_exported_symbol=no]) - LDFLAGS="$save_LDFLAGS"]) - if test "$lt_cv_irix_exported_symbol" = yes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' - fi - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(inherit_rpath, $1)=yes - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - newsos6) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *nto* | *qnx*) - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - else - case $host_os in - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - ;; - esac - fi - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - os2*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_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_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - else - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' - - # Both c and cxx compiler support -rpath directly - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - solaris*) - _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' - if test "$GCC" = yes; then - wlarc='${wl}' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - else - case `$CC -V 2>&1` in - *"Compilers 5.0"*) - wlarc='' - _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' - ;; - *) - wlarc='${wl}' - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - ;; - esac - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - fi - ;; - esac - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - sunos4*) - if test "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_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4) - case $host_vendor in - sni) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' - _LT_TAGVAR(hardcode_direct, $1)=no - ;; - motorola) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4.3*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - _LT_TAGVAR(ld_shlibs, $1)=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We 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_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - - if test x$host_vendor = xsni; then - case $host in - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' - ;; - esac - fi - fi -]) -AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) -test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld - -_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl -_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl -_LT_DECL([], [extract_expsyms_cmds], [2], - [The commands to extract the exported symbol list from a shared archive]) - -# -# Do we need to explicitly link libc? -# -case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in -x|xyes) - # Assume -lc should be added - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $_LT_TAGVAR(archive_cmds, $1) in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - AC_CACHE_CHECK([whether -lc should be explicitly linked in], - [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), - [$RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) - pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) - _LT_TAGVAR(allow_undefined_flag, $1)= - if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) - then - lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no - else - lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes - fi - _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - ]) - _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) - ;; - esac - fi - ;; -esac - -_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], - [Whether or not to add -lc for building shared libraries]) -_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], - [enable_shared_with_static_runtimes], [0], - [Whether or not to disallow shared libs when runtime libs are static]) -_LT_TAGDECL([], [export_dynamic_flag_spec], [1], - [Compiler flag to allow reflexive dlopens]) -_LT_TAGDECL([], [whole_archive_flag_spec], [1], - [Compiler flag to generate shared objects directly from archives]) -_LT_TAGDECL([], [compiler_needs_object], [1], - [Whether the compiler copes with passing no objects directly]) -_LT_TAGDECL([], [old_archive_from_new_cmds], [2], - [Create an old-style archive from a shared archive]) -_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], - [Create a temporary old-style archive to link instead of a shared archive]) -_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) -_LT_TAGDECL([], [archive_expsym_cmds], [2]) -_LT_TAGDECL([], [module_cmds], [2], - [Commands used to build a loadable module if different from building - a shared archive.]) -_LT_TAGDECL([], [module_expsym_cmds], [2]) -_LT_TAGDECL([], [with_gnu_ld], [1], - [Whether we are building with GNU ld or not]) -_LT_TAGDECL([], [allow_undefined_flag], [1], - [Flag that allows shared libraries with undefined symbols to be built]) -_LT_TAGDECL([], [no_undefined_flag], [1], - [Flag that enforces no undefined symbols]) -_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], - [Flag to hardcode $libdir into a binary during linking. - This must work even if $libdir does not exist]) -_LT_TAGDECL([], [hardcode_libdir_separator], [1], - [Whether we need a single "-rpath" flag with a separated argument]) -_LT_TAGDECL([], [hardcode_direct], [0], - [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes - DIR into the resulting binary]) -_LT_TAGDECL([], [hardcode_direct_absolute], [0], - [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes - DIR into the resulting binary and the resulting library dependency is - "absolute", i.e impossible to change by setting ${shlibpath_var} if the - library is relocated]) -_LT_TAGDECL([], [hardcode_minus_L], [0], - [Set to "yes" if using the -LDIR flag during linking hardcodes DIR - into the resulting binary]) -_LT_TAGDECL([], [hardcode_shlibpath_var], [0], - [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR - into the resulting binary]) -_LT_TAGDECL([], [hardcode_automatic], [0], - [Set to "yes" if building a shared library automatically hardcodes DIR - into the library and all subsequent libraries and executables linked - against it]) -_LT_TAGDECL([], [inherit_rpath], [0], - [Set to yes if linker adds runtime paths of dependent libraries - to runtime path list]) -_LT_TAGDECL([], [link_all_deplibs], [0], - [Whether libtool must link a program against all its dependency libraries]) -_LT_TAGDECL([], [always_export_symbols], [0], - [Set to "yes" if exported symbols are required]) -_LT_TAGDECL([], [export_symbols_cmds], [2], - [The commands to list exported symbols]) -_LT_TAGDECL([], [exclude_expsyms], [1], - [Symbols that should not be listed in the preloaded symbols]) -_LT_TAGDECL([], [include_expsyms], [1], - [Symbols that must always be exported]) -_LT_TAGDECL([], [prelink_cmds], [2], - [Commands necessary for linking programs (against libraries) with templates]) -_LT_TAGDECL([], [postlink_cmds], [2], - [Commands necessary for finishing linking programs]) -_LT_TAGDECL([], [file_list_spec], [1], - [Specify filename containing input files]) -dnl FIXME: Not yet implemented -dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], -dnl [Compiler flag to generate thread safe objects]) -])# _LT_LINKER_SHLIBS - - -# _LT_LANG_C_CONFIG([TAG]) -# ------------------------ -# Ensure that the configuration variables for a C compiler are suitably -# defined. These variables are subsequently used by _LT_CONFIG to write -# the compiler configuration to `libtool'. -m4_defun([_LT_LANG_C_CONFIG], -[m4_require([_LT_DECL_EGREP])dnl -lt_save_CC="$CC" -AC_LANG_PUSH(C) - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - -_LT_TAG_COMPILER -# Save the default compiler, since it gets overwritten when the other -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. -compiler_DEFAULT=$CC - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - LT_SYS_DLOPEN_SELF - _LT_CMD_STRIPLIB - - # Report 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]) - - _LT_CONFIG($1) -fi -AC_LANG_POP -CC="$lt_save_CC" -])# _LT_LANG_C_CONFIG - - -# _LT_LANG_CXX_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for a C++ compiler are suitably -# defined. These variables are subsequently used by _LT_CONFIG to write -# the compiler configuration to `libtool'. -m4_defun([_LT_LANG_CXX_CONFIG], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_PATH_MANIFEST_TOOL])dnl -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_PROG_CXXCPP -else - _lt_caught_CXX_error=yes -fi - -AC_LANG_PUSH(C++) -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(compiler_needs_object, $1)=no -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the CXX compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test "$_lt_caught_CXX_error" != yes; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="int some_variable = 0;" - - # Code to be used in simple link tests - lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC=$CC - lt_save_CFLAGS=$CFLAGS - lt_save_LD=$LD - lt_save_GCC=$GCC - GCC=$GXX - lt_save_with_gnu_ld=$with_gnu_ld - lt_save_path_LD=$lt_cv_path_LD - if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx - else - $as_unset lt_cv_prog_gnu_ld - fi - if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX - else - $as_unset lt_cv_path_LD - fi - test -z "${LDCXX+set}" || LD=$LDCXX - CC=${CXX-"c++"} - CFLAGS=$CXXFLAGS - compiler=$CC - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - - if test -n "$compiler"; then - # We don't want -fno-exception when compiling C++ code, so set the - # no_builtin_flag separately - if test "$GXX" = yes; then - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - else - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - fi - - if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - LT_PATH_LD - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | - $GREP 'no-whole-archive' > /dev/null; then - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - - else - GXX=no - with_gnu_ld=no - wlarc= - fi - - # PORTME: fill in a description of your system's C++ link characteristics - AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) - _LT_TAGVAR(ld_shlibs, $1)=yes - case $host_os in - aix3*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aix[[4-9]]*) - if test "$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_TAGVAR(archive_cmds, $1)='' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' - - 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_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)= - fi - esac - shared_flag='-shared' - if test "$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 - - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to - # export. - _LT_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_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_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty - # executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - if test "$with_gnu_ld" = yes; then - # We only use this code for GNU lds that support --whole-archive. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared - # libraries. - _LT_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_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - cygwin* | mingw* | pw32* | cegcc*) - case $GXX,$cc_basename in - ,cl* | no,cl*) - # Native MSVC - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; - else - $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - # Don't use ranlib - _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' - _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile="$lt_outputfile.exe" - lt_tool_outputfile="$lt_tool_outputfile.exe" - ;; - esac~ - func_to_tool_file "$lt_outputfile"~ - if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # g++ - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_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_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - darwin* | rhapsody*) - _LT_DARWIN_LINKER_FEATURES($1) - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - freebsd2.*) - # C++ shared libraries reported to be fairly broken before - # switch to ELF - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - freebsd-elf*) - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - ;; - - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; - - haiku*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - hpux9*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $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) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test "$GXX" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' - fi - fi - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - esac - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(inherit_rpath, $1)=yes - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc* | ecpc* ) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - case `$CC -V` in - *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) - _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ - compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' - _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ - $RANLIB $oldlib' - _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - ;; - *) # Version 6 and above use weak symbols - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' - ;; - xl* | mpixl* | bgxl*) - # IBM XL 8.0 on PPC, with GNU ld - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - if test "x$supports_anon_versioning" = xyes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='func_echo_all' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - - lynxos*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - m88k*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - - *nto* | *qnx*) - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; - - openbsd2*) - # C++ shared libraries are fairly broken - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd=func_echo_all - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - case $host in - osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; - *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; - esac - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - case $host in - osf3*) - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - ;; - *) - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ - $RM $lib.exp' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - case $host in - osf3*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - psos*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - solaris*) - case $cc_basename in - CC* | sunCC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_TAGVAR(archive_cmds_need_lc,$1)=yes - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - ;; - esac - _LT_TAGVAR(link_all_deplibs, $1)=yes - - output_verbose_link_cmd='func_echo_all' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' - if $CC --version | $GREP -v '^2\.7' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - fi - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We 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_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ - '"$_LT_TAGVAR(old_archive_cmds, $1)" - _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ - '"$_LT_TAGVAR(reload_cmds, $1)" - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - vxworks*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - - AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) - test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - - _LT_TAGVAR(GCC, $1)="$GXX" - _LT_TAGVAR(LD, $1)="$LD" - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_SYS_HIDDEN_LIBDEPS($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS - LDCXX=$LD - LD=$lt_save_LD - GCC=$lt_save_GCC - with_gnu_ld=$lt_save_with_gnu_ld - lt_cv_path_LDCXX=$lt_cv_path_LD - lt_cv_path_LD=$lt_save_path_LD - lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld - lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -fi # test "$_lt_caught_CXX_error" != yes - -AC_LANG_POP -])# _LT_LANG_CXX_CONFIG - - -# _LT_FUNC_STRIPNAME_CNF -# ---------------------- -# func_stripname_cnf prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -# -# This function is identical to the (non-XSI) version of func_stripname, -# except this one can be used by m4 code that may be executed by configure, -# rather than the libtool script. -m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl -AC_REQUIRE([_LT_DECL_SED]) -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) -func_stripname_cnf () -{ - case ${2} in - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; - esac -} # func_stripname_cnf -])# _LT_FUNC_STRIPNAME_CNF - -# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) -# --------------------------------- -# Figure out "hidden" library dependencies from verbose -# compiler output when linking a shared library. -# Parse the compiler output and extract the necessary -# objects, libraries and library flags. -m4_defun([_LT_SYS_HIDDEN_LIBDEPS], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl -# Dependencies to place before and after the object being linked: -_LT_TAGVAR(predep_objects, $1)= -_LT_TAGVAR(postdep_objects, $1)= -_LT_TAGVAR(predeps, $1)= -_LT_TAGVAR(postdeps, $1)= -_LT_TAGVAR(compiler_lib_search_path, $1)= - -dnl we can't use the lt_simple_compile_test_code here, -dnl because it contains code intended for an executable, -dnl not a library. It's possible we should let each -dnl tag define a new lt_????_link_test_code variable, -dnl but it's only used here... -m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF -int a; -void foo (void) { a = 0; } -_LT_EOF -], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF -class Foo -{ -public: - Foo (void) { a = 0; } -private: - int a; -}; -_LT_EOF -], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF - subroutine foo - implicit none - integer*4 a - a=0 - return - end -_LT_EOF -], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF - subroutine foo - implicit none - integer a - a=0 - return - end -_LT_EOF -], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF -public class foo { - private int a; - public void bar (void) { - a = 0; - } -}; -_LT_EOF -], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF -package foo -func foo() { -} -_LT_EOF -]) - -_lt_libdeps_save_CFLAGS=$CFLAGS -case "$CC $CFLAGS " in #( -*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; -*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; -*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; -esac - -dnl Parse the compiler output and extract the necessary -dnl objects, libraries and library flags. -if AC_TRY_EVAL(ac_compile); then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - for p in `eval "$output_verbose_link_cmd"`; do - case ${prev}${p} in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" || - test $p = "-R"; then - prev=$p - continue - fi - - # Expand the sysroot to ease extracting the directories later. - if test -z "$prev"; then - case $p in - -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; - -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; - -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; - esac - fi - case $p in - =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; - esac - if test "$pre_test_object_deps_done" = no; then - case ${prev} in - -L | -R) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then - _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" - else - _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$_LT_TAGVAR(postdeps, $1)"; then - _LT_TAGVAR(postdeps, $1)="${prev}${p}" - else - _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" - fi - fi - prev= - ;; - - *.lto.$objext) ;; # Ignore GCC LTO objects - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test "$pre_test_object_deps_done" = no; then - if test -z "$_LT_TAGVAR(predep_objects, $1)"; then - _LT_TAGVAR(predep_objects, $1)="$p" - else - _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" - fi - else - if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then - _LT_TAGVAR(postdep_objects, $1)="$p" - else - _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling $1 test program" -fi - -$RM -f confest.$objext -CFLAGS=$_lt_libdeps_save_CFLAGS - -# PORTME: override above test on systems where it is broken -m4_if([$1], [CXX], -[case $host_os in -interix[[3-9]]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - _LT_TAGVAR(predep_objects,$1)= - _LT_TAGVAR(postdep_objects,$1)= - _LT_TAGVAR(postdeps,$1)= - ;; - -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 - _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC* | sunCC*) - # 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_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac -]) - -case " $_LT_TAGVAR(postdeps, $1) " in -*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; -esac - _LT_TAGVAR(compiler_lib_search_dirs, $1)= -if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then - _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` -fi -_LT_TAGDECL([], [compiler_lib_search_dirs], [1], - [The directories searched by this compiler when creating a shared library]) -_LT_TAGDECL([], [predep_objects], [1], - [Dependencies to place before and after the objects being linked to - create a shared library]) -_LT_TAGDECL([], [postdep_objects], [1]) -_LT_TAGDECL([], [predeps], [1]) -_LT_TAGDECL([], [postdeps], [1]) -_LT_TAGDECL([], [compiler_lib_search_path], [1], - [The library search path used internally by the compiler when linking - a shared library]) -])# _LT_SYS_HIDDEN_LIBDEPS - - -# _LT_LANG_F77_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for a Fortran 77 compiler are -# suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_F77_CONFIG], -[AC_LANG_PUSH(Fortran 77) -if test -z "$F77" || test "X$F77" = "Xno"; then - _lt_disable_F77=yes -fi - -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the F77 compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test "$_lt_disable_F77" != yes; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="\ - subroutine t - return - end -" - - # Code to be used in simple link tests - lt_simple_link_test_code="\ - program t - end -" - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC="$CC" - lt_save_GCC=$GCC - lt_save_CFLAGS=$CFLAGS - CC=${F77-"f77"} - CFLAGS=$FFLAGS - compiler=$CC - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - GCC=$G77 - if test -n "$compiler"; then - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test "$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_TAGVAR(GCC, $1)="$G77" - _LT_TAGVAR(LD, $1)="$LD" - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - GCC=$lt_save_GCC - CC="$lt_save_CC" - CFLAGS="$lt_save_CFLAGS" -fi # test "$_lt_disable_F77" != yes - -AC_LANG_POP -])# _LT_LANG_F77_CONFIG - - -# _LT_LANG_FC_CONFIG([TAG]) -# ------------------------- -# Ensure that the configuration variables for a Fortran compiler are -# suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_FC_CONFIG], -[AC_LANG_PUSH(Fortran) - -if test -z "$FC" || test "X$FC" = "Xno"; then - _lt_disable_FC=yes -fi - -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for fc test sources. -ac_ext=${ac_fc_srcext-f} - -# Object file extension for compiled fc test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the FC compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test "$_lt_disable_FC" != yes; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="\ - subroutine t - return - end -" - - # Code to be used in simple link tests - lt_simple_link_test_code="\ - program t - end -" - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC="$CC" - lt_save_GCC=$GCC - lt_save_CFLAGS=$CFLAGS - CC=${FC-"f95"} - CFLAGS=$FCFLAGS - compiler=$CC - GCC=$ac_cv_fc_compiler_gnu - - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - - if test -n "$compiler"; then - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test "$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_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" - _LT_TAGVAR(LD, $1)="$LD" - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_SYS_HIDDEN_LIBDEPS($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - GCC=$lt_save_GCC - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS -fi # test "$_lt_disable_FC" != yes - -AC_LANG_POP -])# _LT_LANG_FC_CONFIG - - -# _LT_LANG_GCJ_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for the GNU Java Compiler compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_GCJ_CONFIG], -[AC_REQUIRE([LT_PROG_GCJ])dnl -AC_LANG_SAVE - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC=yes -CC=${GCJ-"gcj"} -CFLAGS=$GCJFLAGS -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_TAGVAR(LD, $1)="$LD" -_LT_CC_BASENAME([$compiler]) - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) -fi - -AC_LANG_RESTORE - -GCC=$lt_save_GCC -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_GCJ_CONFIG - - -# _LT_LANG_GO_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for the GNU Go compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_GO_CONFIG], -[AC_REQUIRE([LT_PROG_GO])dnl -AC_LANG_SAVE - -# Source file extension for Go test sources. -ac_ext=go - -# Object file extension for compiled Go test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="package main; func main() { }" - -# Code to be used in simple link tests -lt_simple_link_test_code='package main; func main() { }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC=yes -CC=${GOC-"gccgo"} -CFLAGS=$GOFLAGS -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_TAGVAR(LD, $1)="$LD" -_LT_CC_BASENAME([$compiler]) - -# Go did not exist at the time GCC didn't implicitly link libc in. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) -fi - -AC_LANG_RESTORE - -GCC=$lt_save_GCC -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_GO_CONFIG - - -# _LT_LANG_RC_CONFIG([TAG]) -# ------------------------- -# Ensure that the configuration variables for the Windows resource compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_RC_CONFIG], -[AC_REQUIRE([LT_PROG_RC])dnl -AC_LANG_SAVE - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC= -CC=${RC-"windres"} -CFLAGS= -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - -if test -n "$compiler"; then - : - _LT_CONFIG($1) -fi - -GCC=$lt_save_GCC -AC_LANG_RESTORE -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_RC_CONFIG - - -# LT_PROG_GCJ -# ----------- -AC_DEFUN([LT_PROG_GCJ], -[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], - [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], - [AC_CHECK_TOOL(GCJ, gcj,) - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" - AC_SUBST(GCJFLAGS)])])[]dnl -]) - -# Old name: -AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_GCJ], []) - - -# LT_PROG_GO -# ---------- -AC_DEFUN([LT_PROG_GO], -[AC_CHECK_TOOL(GOC, gccgo,) -]) - - -# LT_PROG_RC -# ---------- -AC_DEFUN([LT_PROG_RC], -[AC_CHECK_TOOL(RC, windres,) -]) - -# Old name: -AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_RC], []) - - -# _LT_DECL_EGREP -# -------------- -# If we don't have a new enough Autoconf to choose the best grep -# available, choose the one first in the user's PATH. -m4_defun([_LT_DECL_EGREP], -[AC_REQUIRE([AC_PROG_EGREP])dnl -AC_REQUIRE([AC_PROG_FGREP])dnl -test -z "$GREP" && GREP=grep -_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) -_LT_DECL([], [EGREP], [1], [An ERE matcher]) -_LT_DECL([], [FGREP], [1], [A literal string matcher]) -dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too -AC_SUBST([GREP]) -]) - - -# _LT_DECL_OBJDUMP -# -------------- -# If we don't have a new enough Autoconf to choose the best objdump -# available, choose the one first in the user's PATH. -m4_defun([_LT_DECL_OBJDUMP], -[AC_CHECK_TOOL(OBJDUMP, objdump, false) -test -z "$OBJDUMP" && OBJDUMP=objdump -_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) -AC_SUBST([OBJDUMP]) -]) - -# _LT_DECL_DLLTOOL -# ---------------- -# Ensure DLLTOOL variable is set. -m4_defun([_LT_DECL_DLLTOOL], -[AC_CHECK_TOOL(DLLTOOL, dlltool, false) -test -z "$DLLTOOL" && DLLTOOL=dlltool -_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) -AC_SUBST([DLLTOOL]) -]) - -# _LT_DECL_SED -# ------------ -# Check for a fully-functional sed program, that truncates -# as few characters as possible. Prefer GNU sed if found. -m4_defun([_LT_DECL_SED], -[AC_PROG_SED -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" -_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) -_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], - [Sed that helps us avoid accidentally triggering echo(1) options like -n]) -])# _LT_DECL_SED - -m4_ifndef([AC_PROG_SED], [ -############################################################ -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_SED. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -############################################################ - -m4_defun([AC_PROG_SED], -[AC_MSG_CHECKING([for a sed that does not truncate output]) -AC_CACHE_VAL(lt_cv_path_SED, -[# Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $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]) -])#AC_PROG_SED -])#m4_ifndef - -# Old name: -AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_SED], []) - - -# _LT_CHECK_SHELL_FEATURES -# ------------------------ -# Find out whether the shell is Bourne or XSI compatible, -# or has some other useful features. -m4_defun([_LT_CHECK_SHELL_FEATURES], -[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) -# Try some XSI features -xsi_shell=no -( _lt_dummy="a/b/c" - test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ - = c,a/b,b/c, \ - && eval 'test $(( 1 + 1 )) -eq 2 \ - && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ - && xsi_shell=yes -AC_MSG_RESULT([$xsi_shell]) -_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) - -AC_MSG_CHECKING([whether the shell understands "+="]) -lt_shell_append=no -( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ - >/dev/null 2>&1 \ - && lt_shell_append=yes -AC_MSG_RESULT([$lt_shell_append]) -_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) - -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - lt_unset=unset -else - lt_unset=false -fi -_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl - -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - lt_SP2NL='tr \040 \012' - lt_NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - lt_SP2NL='tr \100 \n' - lt_NL2SP='tr \r\n \100\100' - ;; -esac -_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl -_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl -])# _LT_CHECK_SHELL_FEATURES - - -# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) -# ------------------------------------------------------ -# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and -# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. -m4_defun([_LT_PROG_FUNCTION_REPLACE], -[dnl { -sed -e '/^$1 ()$/,/^} # $1 /c\ -$1 ()\ -{\ -m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) -} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") -test 0 -eq $? || _lt_function_replace_fail=: -]) - - -# _LT_PROG_REPLACE_SHELLFNS -# ------------------------- -# Replace existing portable implementations of several shell functions with -# equivalent extended shell implementations where those features are available.. -m4_defun([_LT_PROG_REPLACE_SHELLFNS], -[if test x"$xsi_shell" = xyes; then - _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl - case ${1} in - */*) func_dirname_result="${1%/*}${2}" ;; - * ) func_dirname_result="${3}" ;; - esac]) - - _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl - func_basename_result="${1##*/}"]) - - _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl - case ${1} in - */*) func_dirname_result="${1%/*}${2}" ;; - * ) func_dirname_result="${3}" ;; - esac - func_basename_result="${1##*/}"]) - - _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are - # positional parameters, so assign one to ordinary parameter first. - func_stripname_result=${3} - func_stripname_result=${func_stripname_result#"${1}"} - func_stripname_result=${func_stripname_result%"${2}"}]) - - _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl - func_split_long_opt_name=${1%%=*} - func_split_long_opt_arg=${1#*=}]) - - _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl - func_split_short_opt_arg=${1#??} - func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) - - _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl - case ${1} in - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; - *) func_lo2o_result=${1} ;; - esac]) - - _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) - - _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) - - _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) -fi - -if test x"$lt_shell_append" = xyes; then - _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) - - _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl - func_quote_for_eval "${2}" -dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ - eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) - - # Save a `func_append' function call where possible by direct use of '+=' - sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") - test 0 -eq $? || _lt_function_replace_fail=: -else - # Save a `func_append' function call even when '+=' is not available - sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ - && mv -f "$cfgfile.tmp" "$cfgfile" \ - || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") - test 0 -eq $? || _lt_function_replace_fail=: -fi - -if test x"$_lt_function_replace_fail" = x":"; then - AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) -fi -]) - -# _LT_PATH_CONVERSION_FUNCTIONS -# ----------------------------- -# Determine which file name conversion functions should be used by -# func_to_host_file (and, implicitly, by func_to_host_path). These are needed -# for certain cross-compile configurations and native mingw. -m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_MSG_CHECKING([how to convert $build file names to $host format]) -AC_CACHE_VAL(lt_cv_to_host_file_cmd, -[case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 - ;; - esac - ;; - *-*-cygwin* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin - ;; - esac - ;; - * ) # unhandled hosts (and "normal" native builds) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; -esac -]) -to_host_file_cmd=$lt_cv_to_host_file_cmd -AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) -_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], - [0], [convert $build file names to $host format])dnl - -AC_MSG_CHECKING([how to convert $build file names to toolchain format]) -AC_CACHE_VAL(lt_cv_to_tool_file_cmd, -[#assume ordinary cross tools, or native build. -lt_cv_to_tool_file_cmd=func_convert_file_noop -case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 - ;; - esac - ;; -esac -]) -to_tool_file_cmd=$lt_cv_to_tool_file_cmd -AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) -_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], - [0], [convert $build files to toolchain format])dnl -])# _LT_PATH_CONVERSION_FUNCTIONS diff --git a/m4/ltoptions.m4 b/m4/ltoptions.m4 deleted file mode 100644 index 5d9acd8..0000000 --- a/m4/ltoptions.m4 +++ /dev/null @@ -1,384 +0,0 @@ -# Helper functions for option handling. -*- Autoconf -*- -# -# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 7 ltoptions.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) - - -# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) -# ------------------------------------------ -m4_define([_LT_MANGLE_OPTION], -[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) - - -# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) -# --------------------------------------- -# Set option OPTION-NAME for macro MACRO-NAME, and if there is a -# matching handler defined, dispatch to it. Other OPTION-NAMEs are -# saved as a flag. -m4_define([_LT_SET_OPTION], -[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl -m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), - _LT_MANGLE_DEFUN([$1], [$2]), - [m4_warning([Unknown $1 option `$2'])])[]dnl -]) - - -# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) -# ------------------------------------------------------------ -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -m4_define([_LT_IF_OPTION], -[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) - - -# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) -# ------------------------------------------------------- -# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME -# are set. -m4_define([_LT_UNLESS_OPTIONS], -[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), - [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), - [m4_define([$0_found])])])[]dnl -m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 -])[]dnl -]) - - -# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) -# ---------------------------------------- -# OPTION-LIST is a space-separated list of Libtool options associated -# with MACRO-NAME. If any OPTION has a matching handler declared with -# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about -# the unknown option and exit. -m4_defun([_LT_SET_OPTIONS], -[# Set options -m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), - [_LT_SET_OPTION([$1], _LT_Option)]) - -m4_if([$1],[LT_INIT],[ - dnl - dnl Simply set some default values (i.e off) if boolean options were not - dnl specified: - _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no - ]) - _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no - ]) - dnl - dnl If no reference was made to various pairs of opposing options, then - dnl we run the default mode handler for the pair. For example, if neither - dnl `shared' nor `disable-shared' was passed, we enable building of shared - dnl archives by default: - _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) - _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) - _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) - _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], - [_LT_ENABLE_FAST_INSTALL]) - ]) -])# _LT_SET_OPTIONS - - -## --------------------------------- ## -## Macros to handle LT_INIT options. ## -## --------------------------------- ## - -# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) -# ----------------------------------------- -m4_define([_LT_MANGLE_DEFUN], -[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) - - -# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) -# ----------------------------------------------- -m4_define([LT_OPTION_DEFINE], -[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl -])# LT_OPTION_DEFINE - - -# dlopen -# ------ -LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes -]) - -AU_DEFUN([AC_LIBTOOL_DLOPEN], -[_LT_SET_OPTION([LT_INIT], [dlopen]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the `dlopen' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) - - -# win32-dll -# --------- -# Declare package support for building win32 dll's. -LT_OPTION_DEFINE([LT_INIT], [win32-dll], -[enable_win32_dll=yes - -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; -esac - -test -z "$AS" && AS=as -_LT_DECL([], [AS], [1], [Assembler program])dnl - -test -z "$DLLTOOL" && DLLTOOL=dlltool -_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl - -test -z "$OBJDUMP" && OBJDUMP=objdump -_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl -])# win32-dll - -AU_DEFUN([AC_LIBTOOL_WIN32_DLL], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -_LT_SET_OPTION([LT_INIT], [win32-dll]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the `win32-dll' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) - - -# _LT_ENABLE_SHARED([DEFAULT]) -# ---------------------------- -# implement the --enable-shared flag, and supports the `shared' and -# `disable-shared' LT_INIT options. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -m4_define([_LT_ENABLE_SHARED], -[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([shared], - [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], - [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) - - _LT_DECL([build_libtool_libs], [enable_shared], [0], - [Whether or not to build shared libraries]) -])# _LT_ENABLE_SHARED - -LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) - -# Old names: -AC_DEFUN([AC_ENABLE_SHARED], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) -]) - -AC_DEFUN([AC_DISABLE_SHARED], -[_LT_SET_OPTION([LT_INIT], [disable-shared]) -]) - -AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_ENABLE_SHARED], []) -dnl AC_DEFUN([AM_DISABLE_SHARED], []) - - - -# _LT_ENABLE_STATIC([DEFAULT]) -# ---------------------------- -# implement the --enable-static flag, and support the `static' and -# `disable-static' LT_INIT options. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -m4_define([_LT_ENABLE_STATIC], -[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([static], - [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], - [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_static=]_LT_ENABLE_STATIC_DEFAULT) - - _LT_DECL([build_old_libs], [enable_static], [0], - [Whether or not to build static libraries]) -])# _LT_ENABLE_STATIC - -LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) - -# Old names: -AC_DEFUN([AC_ENABLE_STATIC], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) -]) - -AC_DEFUN([AC_DISABLE_STATIC], -[_LT_SET_OPTION([LT_INIT], [disable-static]) -]) - -AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_ENABLE_STATIC], []) -dnl AC_DEFUN([AM_DISABLE_STATIC], []) - - - -# _LT_ENABLE_FAST_INSTALL([DEFAULT]) -# ---------------------------------- -# implement the --enable-fast-install flag, and support the `fast-install' -# and `disable-fast-install' LT_INIT options. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -m4_define([_LT_ENABLE_FAST_INSTALL], -[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([fast-install], - [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], - [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) - -_LT_DECL([fast_install], [enable_fast_install], [0], - [Whether or not to optimize for fast installation])dnl -])# _LT_ENABLE_FAST_INSTALL - -LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) - -# Old names: -AU_DEFUN([AC_ENABLE_FAST_INSTALL], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you put -the `fast-install' option into LT_INIT's first parameter.]) -]) - -AU_DEFUN([AC_DISABLE_FAST_INSTALL], -[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you put -the `disable-fast-install' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) -dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) - - -# _LT_WITH_PIC([MODE]) -# -------------------- -# implement the --with-pic flag, and support the `pic-only' and `no-pic' -# LT_INIT options. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'. -m4_define([_LT_WITH_PIC], -[AC_ARG_WITH([pic], - [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for lt_pkg in $withval; do - IFS="$lt_save_ifs" - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [pic_mode=default]) - -test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) - -_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl -])# _LT_WITH_PIC - -LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) -LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) - -# Old name: -AU_DEFUN([AC_LIBTOOL_PICMODE], -[_LT_SET_OPTION([LT_INIT], [pic-only]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the `pic-only' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) - -## ----------------- ## -## LTDL_INIT Options ## -## ----------------- ## - -m4_define([_LTDL_MODE], []) -LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], - [m4_define([_LTDL_MODE], [nonrecursive])]) -LT_OPTION_DEFINE([LTDL_INIT], [recursive], - [m4_define([_LTDL_MODE], [recursive])]) -LT_OPTION_DEFINE([LTDL_INIT], [subproject], - [m4_define([_LTDL_MODE], [subproject])]) - -m4_define([_LTDL_TYPE], []) -LT_OPTION_DEFINE([LTDL_INIT], [installable], - [m4_define([_LTDL_TYPE], [installable])]) -LT_OPTION_DEFINE([LTDL_INIT], [convenience], - [m4_define([_LTDL_TYPE], [convenience])]) diff --git a/m4/ltsugar.m4 b/m4/ltsugar.m4 deleted file mode 100644 index 9000a05..0000000 --- a/m4/ltsugar.m4 +++ /dev/null @@ -1,123 +0,0 @@ -# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- -# -# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 6 ltsugar.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) - - -# lt_join(SEP, ARG1, [ARG2...]) -# ----------------------------- -# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their -# associated separator. -# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier -# versions in m4sugar had bugs. -m4_define([lt_join], -[m4_if([$#], [1], [], - [$#], [2], [[$2]], - [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) -m4_define([_lt_join], -[m4_if([$#$2], [2], [], - [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) - - -# lt_car(LIST) -# lt_cdr(LIST) -# ------------ -# Manipulate m4 lists. -# These macros are necessary as long as will still need to support -# Autoconf-2.59 which quotes differently. -m4_define([lt_car], [[$1]]) -m4_define([lt_cdr], -[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], - [$#], 1, [], - [m4_dquote(m4_shift($@))])]) -m4_define([lt_unquote], $1) - - -# lt_append(MACRO-NAME, STRING, [SEPARATOR]) -# ------------------------------------------ -# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. -# Note that neither SEPARATOR nor STRING are expanded; they are appended -# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). -# No SEPARATOR is output if MACRO-NAME was previously undefined (different -# than defined and empty). -# -# This macro is needed until we can rely on Autoconf 2.62, since earlier -# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. -m4_define([lt_append], -[m4_define([$1], - m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) - - - -# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) -# ---------------------------------------------------------- -# Produce a SEP delimited list of all paired combinations of elements of -# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list -# has the form PREFIXmINFIXSUFFIXn. -# Needed until we can rely on m4_combine added in Autoconf 2.62. -m4_define([lt_combine], -[m4_if(m4_eval([$# > 3]), [1], - [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl -[[m4_foreach([_Lt_prefix], [$2], - [m4_foreach([_Lt_suffix], - ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, - [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) - - -# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) -# ----------------------------------------------------------------------- -# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited -# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. -m4_define([lt_if_append_uniq], -[m4_ifdef([$1], - [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], - [lt_append([$1], [$2], [$3])$4], - [$5])], - [lt_append([$1], [$2], [$3])$4])]) - - -# lt_dict_add(DICT, KEY, VALUE) -# ----------------------------- -m4_define([lt_dict_add], -[m4_define([$1($2)], [$3])]) - - -# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) -# -------------------------------------------- -m4_define([lt_dict_add_subkey], -[m4_define([$1($2:$3)], [$4])]) - - -# lt_dict_fetch(DICT, KEY, [SUBKEY]) -# ---------------------------------- -m4_define([lt_dict_fetch], -[m4_ifval([$3], - m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), - m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) - - -# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) -# ----------------------------------------------------------------- -m4_define([lt_if_dict_fetch], -[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], - [$5], - [$6])]) - - -# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) -# -------------------------------------------------------------- -m4_define([lt_dict_filter], -[m4_if([$5], [], [], - [lt_join(m4_quote(m4_default([$4], [[, ]])), - lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), - [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl -]) diff --git a/m4/ltversion.m4 b/m4/ltversion.m4 deleted file mode 100644 index 07a8602..0000000 --- a/m4/ltversion.m4 +++ /dev/null @@ -1,23 +0,0 @@ -# ltversion.m4 -- version numbers -*- Autoconf -*- -# -# Copyright (C) 2004 Free Software Foundation, Inc. -# Written by Scott James Remnant, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# @configure_input@ - -# serial 3337 ltversion.m4 -# This file is part of GNU Libtool - -m4_define([LT_PACKAGE_VERSION], [2.4.2]) -m4_define([LT_PACKAGE_REVISION], [1.3337]) - -AC_DEFUN([LTVERSION_VERSION], -[macro_version='2.4.2' -macro_revision='1.3337' -_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) -_LT_DECL(, macro_revision, 0) -]) diff --git a/m4/lt~obsolete.m4 b/m4/lt~obsolete.m4 deleted file mode 100644 index c573da9..0000000 --- a/m4/lt~obsolete.m4 +++ /dev/null @@ -1,98 +0,0 @@ -# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- -# -# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. -# Written by Scott James Remnant, 2004. -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 5 lt~obsolete.m4 - -# These exist entirely to fool aclocal when bootstrapping libtool. -# -# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) -# which have later been changed to m4_define as they aren't part of the -# exported API, or moved to Autoconf or Automake where they belong. -# -# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN -# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us -# using a macro with the same name in our local m4/libtool.m4 it'll -# pull the old libtool.m4 in (it doesn't see our shiny new m4_define -# and doesn't know about Autoconf macros at all.) -# -# So we provide this file, which has a silly filename so it's always -# included after everything else. This provides aclocal with the -# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything -# because those macros already exist, or will be overwritten later. -# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. -# -# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. -# Yes, that means every name once taken will need to remain here until -# we give up compatibility with versions before 1.7, at which point -# we need to keep only those names which we still refer to. - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) - -m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) -m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) -m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) -m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) -m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) -m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) -m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) -m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) -m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) -m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) -m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) -m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) -m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) -m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) -m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) -m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) -m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) -m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) -m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) -m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) -m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) -m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) -m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) -m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) -m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) -m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) -m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) -m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) -m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) -m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) -m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) -m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) -m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) -m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) -m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) -m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) -m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) -m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) -m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) -m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) -m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) -m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) -m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) -m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) -m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) -m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) -m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) -m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) -m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) -m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) -m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) -m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) -m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) -m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) diff --git a/m4/nls.m4 b/m4/nls.m4 deleted file mode 100644 index 7967cc2..0000000 --- a/m4/nls.m4 +++ /dev/null @@ -1,31 +0,0 @@ -# nls.m4 serial 3 (gettext-0.15) -dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper , 1995-2000. -dnl Bruno Haible , 2000-2003. - -AC_PREREQ(2.50) - -AC_DEFUN([AM_NLS], -[ - AC_MSG_CHECKING([whether NLS is requested]) - dnl Default is enabled NLS - AC_ARG_ENABLE(nls, - [ --disable-nls do not use Native Language Support], - USE_NLS=$enableval, USE_NLS=yes) - AC_MSG_RESULT($USE_NLS) - AC_SUBST(USE_NLS) -]) diff --git a/m4/po.m4 b/m4/po.m4 deleted file mode 100644 index 00133ef..0000000 --- a/m4/po.m4 +++ /dev/null @@ -1,428 +0,0 @@ -# po.m4 serial 13 (gettext-0.15) -dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper , 1995-2000. -dnl Bruno Haible , 2000-2003. - -AC_PREREQ(2.50) - -dnl Checks for all prerequisites of the po subdirectory. -AC_DEFUN([AM_PO_SUBDIRS], -[ - AC_REQUIRE([AC_PROG_MAKE_SET])dnl - AC_REQUIRE([AC_PROG_INSTALL])dnl - AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake - AC_REQUIRE([AM_NLS])dnl - - dnl Perform the following tests also if --disable-nls has been given, - dnl because they are needed for "make dist" to work. - - dnl Search for GNU msgfmt in the PATH. - dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. - dnl The second test excludes FreeBSD msgfmt. - AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, - [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && - (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], - :) - AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) - - dnl Test whether it is GNU msgfmt >= 0.15. -changequote(,)dnl - case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; - *) MSGFMT_015=$MSGFMT ;; - esac -changequote([,])dnl - AC_SUBST([MSGFMT_015]) -changequote(,)dnl - case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; - *) GMSGFMT_015=$GMSGFMT ;; - esac -changequote([,])dnl - AC_SUBST([GMSGFMT_015]) - - dnl Search for GNU xgettext 0.12 or newer in the PATH. - dnl The first test excludes Solaris xgettext and early GNU xgettext versions. - dnl The second test excludes FreeBSD xgettext. - AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, - [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && - (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], - :) - dnl Remove leftover from FreeBSD xgettext call. - rm -f messages.po - - dnl Test whether it is GNU xgettext >= 0.15. -changequote(,)dnl - case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; - *) XGETTEXT_015=$XGETTEXT ;; - esac -changequote([,])dnl - AC_SUBST([XGETTEXT_015]) - - dnl Search for GNU msgmerge 0.11 or newer in the PATH. - AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, - [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) - - dnl Installation directories. - dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we - dnl have to define it here, so that it can be used in po/Makefile. - test -n "$localedir" || localedir='${datadir}/locale' - AC_SUBST([localedir]) - - AC_CONFIG_COMMANDS([po-directories], [[ - for ac_file in $CONFIG_FILES; do - # Support "outfile[:infile[:infile...]]" - case "$ac_file" in - *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - esac - # PO directories have a Makefile.in generated from Makefile.in.in. - case "$ac_file" in */Makefile.in) - # Adjust a relative srcdir. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" - ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` - # In autoconf-2.13 it is called $ac_given_srcdir. - # In autoconf-2.50 it is called $srcdir. - test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" - case "$ac_given_srcdir" in - .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; - /*) top_srcdir="$ac_given_srcdir" ;; - *) top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - # Treat a directory as a PO directory if and only if it has a - # POTFILES.in file. This allows packages to have multiple PO - # directories under different names or in different locations. - if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then - rm -f "$ac_dir/POTFILES" - test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" - POMAKEFILEDEPS="POTFILES.in" - # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend - # on $ac_dir but don't depend on user-specified configuration - # parameters. - if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then - # The LINGUAS file contains the set of available languages. - if test -n "$OBSOLETE_ALL_LINGUAS"; then - test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" - fi - ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` - # Hide the ALL_LINGUAS assigment from automake < 1.5. - eval 'ALL_LINGUAS''=$ALL_LINGUAS_' - POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" - else - # The set of available languages was given in configure.in. - # Hide the ALL_LINGUAS assigment from automake < 1.5. - eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' - fi - # Compute POFILES - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) - # Compute UPDATEPOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) - # Compute DUMMYPOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) - # Compute GMOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) - case "$ac_given_srcdir" in - .) srcdirpre= ;; - *) srcdirpre='$(srcdir)/' ;; - esac - POFILES= - UPDATEPOFILES= - DUMMYPOFILES= - GMOFILES= - for lang in $ALL_LINGUAS; do - POFILES="$POFILES $srcdirpre$lang.po" - UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" - DUMMYPOFILES="$DUMMYPOFILES $lang.nop" - GMOFILES="$GMOFILES $srcdirpre$lang.gmo" - done - # CATALOGS depends on both $ac_dir and the user's LINGUAS - # environment variable. - INST_LINGUAS= - if test -n "$ALL_LINGUAS"; then - for presentlang in $ALL_LINGUAS; do - useit=no - if test "%UNSET%" != "$LINGUAS"; then - desiredlanguages="$LINGUAS" - else - desiredlanguages="$ALL_LINGUAS" - fi - for desiredlang in $desiredlanguages; do - # Use the presentlang catalog if desiredlang is - # a. equal to presentlang, or - # b. a variant of presentlang (because in this case, - # presentlang can be used as a fallback for messages - # which are not translated in the desiredlang catalog). - case "$desiredlang" in - "$presentlang"*) useit=yes;; - esac - done - if test $useit = yes; then - INST_LINGUAS="$INST_LINGUAS $presentlang" - fi - done - fi - CATALOGS= - if test -n "$INST_LINGUAS"; then - for lang in $INST_LINGUAS; do - CATALOGS="$CATALOGS $lang.gmo" - done - fi - test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" - sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" - for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do - if test -f "$f"; then - case "$f" in - *.orig | *.bak | *~) ;; - *) cat "$f" >> "$ac_dir/Makefile" ;; - esac - fi - done - fi - ;; - esac - done]], - [# Capture the value of obsolete ALL_LINGUAS because we need it to compute - # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it - # from automake < 1.5. - eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' - # Capture the value of LINGUAS because we need it to compute CATALOGS. - LINGUAS="${LINGUAS-%UNSET%}" - ]) -]) - -dnl Postprocesses a Makefile in a directory containing PO files. -AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], -[ - # When this code is run, in config.status, two variables have already been - # set: - # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, - # - LINGUAS is the value of the environment variable LINGUAS at configure - # time. - -changequote(,)dnl - # Adjust a relative srcdir. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" - ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` - # In autoconf-2.13 it is called $ac_given_srcdir. - # In autoconf-2.50 it is called $srcdir. - test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" - case "$ac_given_srcdir" in - .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; - /*) top_srcdir="$ac_given_srcdir" ;; - *) top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - # Find a way to echo strings without interpreting backslash. - if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then - gt_echo='echo' - else - if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then - gt_echo='printf %s\n' - else - echo_func () { - cat < "$ac_file.tmp" - if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then - # Add dependencies that cannot be formulated as a simple suffix rule. - for lang in $ALL_LINGUAS; do - frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` - cat >> "$ac_file.tmp" < /dev/null; then - # Add dependencies that cannot be formulated as a simple suffix rule. - for lang in $ALL_LINGUAS; do - frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` - cat >> "$ac_file.tmp" <> "$ac_file.tmp" <, 1996. - -AC_PREREQ(2.50) - -# Search path for a program which passes the given test. - -dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, -dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) -AC_DEFUN([AM_PATH_PROG_WITH_TEST], -[ -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" -fi -rm -f conf$$.file - -# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=[$]2 -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL(ac_cv_path_$1, -[case "[$]$1" in - [[\\/]]* | ?:[[\\/]]*) - ac_cv_path_$1="[$]$1" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in ifelse([$5], , $PATH, [$5]); do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD - if [$3]; then - ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" -dnl If no 4th arg is given, leave the cache variable unset, -dnl so AC_PATH_PROGS will keep looking. -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" -])dnl - ;; -esac])dnl -$1="$ac_cv_path_$1" -if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then - AC_MSG_RESULT([$]$1) -else - AC_MSG_RESULT(no) -fi -AC_SUBST($1)dnl -]) diff --git a/man/Makefile.in b/man/Makefile.in deleted file mode 100644 index b2e9bf3..0000000 --- a/man/Makefile.in +++ /dev/null @@ -1,559 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@VERITYSETUP_TRUE@am__append_1 = veritysetup.8 -@REENCRYPT_TRUE@am__append_2 = cryptsetup-reencrypt.8 -subdir = man -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -SOURCES = -DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -man8dir = $(mandir)/man8 -am__installdirs = "$(DESTDIR)$(man8dir)" -NROFF = nroff -MANS = $(man8_MANS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -man8_MANS = cryptsetup.8 $(am__append_1) $(am__append_2) -EXTRA_DIST = cryptsetup.8 veritysetup.8 cryptsetup-reencrypt.8 -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu man/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-man8: $(man8_MANS) - @$(NORMAL_INSTALL) - @list1='$(man8_MANS)'; \ - list2=''; \ - test -n "$(man8dir)" \ - && test -n "`echo $$list1$$list2`" \ - || exit 0; \ - echo " $(MKDIR_P) '$(DESTDIR)$(man8dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(man8dir)" || exit 1; \ - { for i in $$list1; do echo "$$i"; done; \ - if test -n "$$list2"; then \ - for i in $$list2; do echo "$$i"; done \ - | sed -n '/\.8[a-z]*$$/p'; \ - fi; \ - } | while read p; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; echo "$$p"; \ - done | \ - sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ - sed 'N;N;s,\n, ,g' | { \ - list=; while read file base inst; do \ - if test "$$base" = "$$inst"; then list="$$list $$file"; else \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \ - fi; \ - done; \ - for i in $$list; do echo "$$i"; done | $(am__base_list) | \ - while read files; do \ - test -z "$$files" || { \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \ - done; } - -uninstall-man8: - @$(NORMAL_UNINSTALL) - @list='$(man8_MANS)'; test -n "$(man8dir)" || exit 0; \ - files=`{ for i in $$list; do echo "$$i"; done; \ - } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(MANS) -installdirs: - for dir in "$(DESTDIR)$(man8dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man8 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man8 - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man8 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-man \ - uninstall-man8 - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/man/cryptsetup-reencrypt.8 b/man/cryptsetup-reencrypt.8 index bfb7e23..d9a3202 100644 --- a/man/cryptsetup-reencrypt.8 +++ b/man/cryptsetup-reencrypt.8 @@ -1,4 +1,4 @@ -.TH CRYPTSETUP-REENCRYPT "8" "January 2015" "cryptsetup-reencrypt" "Maintenance Commands" +.TH CRYPTSETUP-REENCRYPT "8" "June 2012" "cryptsetup-reencrypt" "Maintenance Commands" .SH NAME cryptsetup-reencrypt - tool for offline LUKS device re-encryption .SH SYNOPSIS @@ -36,15 +36,9 @@ To start (or continue) re-encryption for use: .PP \fIcryptsetup-reencrypt\fR -\fB\fR can be [\-\-batch-mode, \-\-block-size, \-\-cipher, \-\-debug, -\-\-device-size, \-\-hash, \-\-iter-time, \-\-use-random | \-\-use-urandom, -\-\-keep-key, \-\-key-size, \-\-key-file, \-\-key-slot, \-\-keyfile-offset, -\-\-keyfile-size, \-\-tries, \-\-use-directio, \-\-use-fsync, \-\-verbose, \-\-write-log] - -To encrypt data on (not yet encrypted) device, use \fI\-\-new\fR with combination -with \fI\-\-reduce-device-size\fR. - -To remove encryption from device, use \fI\-\-decrypt\fR. +\fB\fR can be [\-\-block-size, \-\-cipher, \-\-hash, \-\-iter-time, +\-\-use-random | \-\-use-urandom, \-\-key-file, \-\-key-slot, \-\-keyfile-offset, +\-\-keyfile-size, \-\-tries, \-\-use-directio, \-\-use-fsync, \-\-write-log] For detailed description of encryption and key file options see \fIcryptsetup(8)\fR man page. @@ -62,7 +56,7 @@ Set the cipher specification string. .B "\-\-key-size, \-s \fI\fR" Set key size in bits. The argument has to be a multiple of 8. -The possible key-sizes are limited by the cipher and mode used. +The possible key-sizes are limited by the cipher and mode used. If you are increasing key size, there must be enough space in the LUKS header for enlarged keyslots (data offset must be large enough) or reencryption @@ -73,9 +67,6 @@ you can destructively shrink device with \-\-reduce-device-size option. .TP .B "\-\-hash, \-h \fI\fR" Specifies the hash used in the LUKS key setup scheme and volume key digest. - -\fBNOTE:\fR if this parameter is not specified, default hash algorithm is always used -for new device header. .TP .B "\-\-iter-time, \-i \fI\fR" The number of milliseconds to spend with PBKDF2 passphrase processing for the @@ -89,7 +80,7 @@ Define which kernel random number generator will be used to create the volume ke .B "\-\-key-file, \-d \fIname\fR" Read the passphrase from file. -\fBWARNING:\fR \-\-key-file option can be used only if there only one active keyslot, +WARNING: \-\-key-file option can be used only if there only one active keyslot, or alternatively, also if \-\-key-slot option is specified (then all other keyslots will be disabled in new LUKS device). @@ -99,7 +90,7 @@ passphrases. .B "\-\-key-slot, \-S <0-7>" Specify which key slot is used. -\fBWARNING:\fR All other keyslots will be disabled if this option is used. +WARNING: All other keyslots will be disabled if this option is used. .TP .B "\-\-keyfile-offset \fIvalue\fR" Skip \fIvalue\fR bytes at the beginning of the key file. @@ -109,12 +100,6 @@ Read a maximum of \fIvalue\fR bytes from the key file. Default is to read the whole file up to the compiled-in maximum. .TP -.B "\-\-keep-key" -Do not change encryption key, just reencrypt the LUKS header and keyslots. - -This option can be combined only with \fI\-\-hash\fR or \fI\-\-iter-time\fR -options. -.TP .B "\-\-tries, \-T" Number of retries for invalid passphrase entry. .TP @@ -129,14 +114,14 @@ Instead of real device size, use specified value. It means that only specified area (from the start of the device to the specified size) will be reencrypted. -\fBWARNING:\fR This is destructive operation. +WARNING: This is destructive operation. If no unit suffix is specified, the size is in bytes. Unit suffix can be S for 512 byte sectors, K/M/G/T (or KiB,MiB,GiB,TiB) for units with 1024 base or KB/MB/GB/TB for 1000 base (SI scale). -\fBWARNING:\fR This is destructive operation. +WARNING: This is destructive operation. .TP .B "\-\-reduce-device-size \fIsize[units]\fR" Enlarge data offset to specified value by shrinking device size. @@ -145,12 +130,12 @@ This means that last sectors on the original device will be lost, ciphertext data will be effectively shifted by specified number of sectors. -It can be useful if you e.g. added some space to underlying +It can be usefull if you e.g. added some space to underlying partition (so last sectors contains no data). For units suffix see \-\-device-size parameter description. -\fBWARNING:\fR This is destructive operation and cannot be reverted. +WARNING: This is destructive operation and cannot be reverted. Use with extreme care - shrinked filesystems are usually unrecoverable. You cannot shrink device more than by 64 MiB (131072 sectors). @@ -160,23 +145,17 @@ Create new header (encrypt not yet encrypted device). This option must be used together with \-\-reduce-device-size. -\fBWARNING:\fR This is destructive operation and cannot be reverted. -.TP -.B "\-\-decrypt" -Remove encryption (decrypt already encrypted device and remove LUKS header). +WARNING: This is destructive operation and cannot be reverted. -\fBWARNING:\fR This is destructive operation and cannot be reverted. .TP .B "\-\-use-directio" -Use direct-io (O_DIRECT) for all read/write data operations related -to block device undergoing reencryption. +Use direct-io (O_DIRECT) for all read/write data operations. -Useful if direct-io operations perform better than normal buffered +Usefull if direct-io operations perform better than normal buffered operations (e.g. in virtual environments). .TP .B "\-\-use-fsync" -Use fsync call after every written block. This applies for reencryption -log files as well. +Use fsync call after every written block. .TP .B "\-\-write-log" Update log file after every block write. This can slow down reencryption @@ -199,24 +178,18 @@ Reencrypt /dev/sdb1 (change volume key) cryptsetup-reencrypt /dev/sdb1 .TP Reencrypt and also change cipher and cipher mode -cryptsetup-reencrypt /dev/sdb1 \-c aes-xts-plain64 +cryptsetup-reencrypt /dev/sdb1 -c aes-xts-plain64 .TP Add LUKS encryption to not yet encrypted device First, be sure you have space added to disk. - Or alternatively shrink filesystem in advance. .br Here we need 4096 512-bytes sectors (enough for 2x128 bit key). -fdisk \-u /dev/sdb # move sdb1 partition end + 4096 sectors -(or use resize2fs or tool for your filesystem and shrink it) - -cryptsetup-reencrypt /dev/sdb1 \-\-new \-\-reduce-device-size 4096S -.TP -Remove LUKS encryption completely +fdisk -u /dev/sdb # move sdb1 partition end + 4096 sectors -cryptsetup-reencrypt /dev/sdb1 \-\-decrypt +cryptsetup-reencrypt /dev/sdb1 --new --reduce-device-size 4096 .SH REPORTING BUGS Report bugs, including ones in the documentation, on @@ -227,11 +200,11 @@ Please attach the output of the failed command with the .SH AUTHORS Cryptsetup-reencrypt was written by Milan Broz . .SH COPYRIGHT -Copyright \(co 2012-2015 Milan Broz +Copyright \(co 2012 Milan Broz .br -Copyright \(co 2012-2013 Red Hat, Inc. +Copyright \(co 2012 Red Hat, 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. .SH SEE ALSO -The project website at \fBhttps://gitlab.com/cryptsetup/cryptsetup\fR +The project website at \fBhttp://code.google.com/p/cryptsetup/\fR diff --git a/man/cryptsetup.8 b/man/cryptsetup.8 index 16ecec0..b13a4c8 100644 --- a/man/cryptsetup.8 +++ b/man/cryptsetup.8 @@ -1,4 +1,4 @@ -.TH CRYPTSETUP "8" "December 2013" "cryptsetup" "Maintenance Commands" +.TH CRYPTSETUP "8" "May 2012" "cryptsetup" "Maintenance Commands" .SH NAME cryptsetup - manage plain dm-crypt and LUKS encrypted volumes .SH SYNOPSIS @@ -12,7 +12,7 @@ and can hence offer more features than plain dm-crypt. On the other hand, the header is visible and vulnerable to damage. In addition, cryptsetup provides limited support for the use of -historic loopaes volumes and for TrueCrypt compatible volumes. +historic loopaes volumes and for TruerCrypt compatible volumes. .SH PLAIN DM-CRYPT OR LUKS? .PP @@ -55,11 +55,11 @@ secure wiping by just overwriting header and key-slot area. \fBPreviously used partitions:\fR If a partition was previously used, it is a very good idea to wipe filesystem signatures, data, etc. before -creating a LUKS or plain dm-crypt container on it. -For a quick removal of filesystem signatures, use "wipefs". Take care -though that this may not remove everything. In particular md (RAID) -signatures at the end of a device may survive. It also does not -remove data. For a full wipe, overwrite the whole partition before +creating a LUKS or plain dm-crypt container on it. +For a quick removal of filesystem signatures, use "wipefs". Take care +though that this may not remove everything. In particular md (RAID) +signatures at the end of a device may survive. It also does not +remove data. For a full wipe, overwrite the whole partition before container creation. If you do not know how to to that, the cryptsetup FAQ describes several options. @@ -75,9 +75,9 @@ or \fItcrypt\fR. For backward compatibility there are \fBopen\fR command aliases: -\fBcreate\fR (argument-order ): open \-\-type plain +\fBcreate\fR (argument-order ): open \-\-type plain .br -\fBplainOpen\fR: open \-\-type plain +\fBplainOpen\fR: open \-\-type plain .br \fBluksOpen\fR: open \-\-type luks .br @@ -86,7 +86,7 @@ For backward compatibility there are \fBopen\fR command aliases: \fBtcryptOpen\fR: open \-\-type tcrypt \fB\fR are type specific and are described below -for individual device types. For \fBcreate\fR, the order of the +for individual device types. For \fBcreate\fR, the order of the and options is inverted for historical reasons, all other aliases use the standard \fB \fR order. .PP @@ -131,7 +131,7 @@ Opens (creates a mapping with) backed by device . \-\-key-file, \-\-keyfile-offset, \-\-key-size, \-\-offset, \-\-skip, \-\-size, \-\-readonly, \-\-shared, \-\-allow-discards] -Example: 'cryptsetup open \-\-type plain /dev/sda10 e1' maps the raw +Example: 'cryptsetup open --type plain /dev/sda10 e1' maps the raw encrypted device /dev/sda10 to the mapped (decrypted) device /dev/mapper/e1, which can then be mounted, fsck-ed or have a filesystem created on it. @@ -160,20 +160,12 @@ Key operations that do not specify a slot affect the first slot that matches the supplied passphrase or the first empty slot if a new passphrase is added. -The \fB\fR parameter can be also specified by a LUKS UUID in the -format UUID=. Translation to real device name uses symlinks -in /dev/disk/by-uuid directory. - -To specify a detached header, the \fB\-\-header\fR parameter can be used -in all LUKS commands and always takes precedence over positional \fB\fR -parameter. - The following are valid LUKS actions: \fIluksFormat\fR [] .IP Initializes a LUKS partition and sets the initial passphrase -(for key-slot 0), +(for key-slot 0), either via prompting or via . Note that if the second argument is present, then the passphrase is taken from the file given there, without the need @@ -184,8 +176,8 @@ from stdin and the safety-question being skipped. You can only call luksFormat on a LUKS device that is not mapped. -\fB\fR can be [\-\-hash, \-\-cipher, \-\-verify\-passphrase, -\-\-key\-size, \-\-key\-slot, +\fB\fR can be [\-\-hash, \-\-cipher, \-\-verify\-passphrase, +\-\-key\-size, \-\-key\-slot, \-\-key\-file (takes precedence over optional second argument), \-\-keyfile\-offset, \-\-keyfile\-size, \-\-use\-random | \-\-use\-urandom, \-\-uuid, \-\-master\-key\-file, \-\-iter\-time, \-\-header, @@ -204,6 +196,9 @@ successful verification of the supplied passphrase. If the passphrase is not supplied via \-\-key-file, the command prompts for it interactively. +The parameter can be also specified by LUKS UUID in the +format UUID=, which uses the symlinks in /dev/disk/by-uuid. + \fB\fR can be [\-\-key\-file, \-\-keyfile\-offset, \-\-keyfile\-size, \-\-readonly, \-\-test\-passphrase, \-\-allow\-discards, \-\-header, \-\-key-slot, \-\-master\-key\-file]. @@ -240,7 +235,7 @@ or read from the file given as positional argument. \fB\fR can be [\-\-key\-file, \-\-keyfile\-offset, \-\-keyfile\-size, \-\-new\-keyfile\-offset, \-\-new\-keyfile\-size, \-\-key\-slot, \-\-master\-key\-file, -\-\-iter\-time, \-\-force\-password, \-\-header]. +\-\-iter\-time, \-\-force\-password]. .PP \fIluksRemoveKey\fR [] .IP @@ -249,11 +244,11 @@ passphrase to be removed can be specified interactively, as positional argument or via \-\-key-file. \fB\fR can be [\-\-key\-file, \-\-keyfile\-offset, -\-\-keyfile\-size, \-\-header] +\-\-keyfile\-size] \fBWARNING:\fR If you read the passphrase from stdin -(without further argument or with '-' as argument -to \-\-key\-file), batch-mode (\-q) will be implicitely +(without further argument or with '-' as argument +to \-\-key\-file), batch-mode (-q) will be implicitely switched on and no warning will be given when you remove the last remaining passphrase from a LUKS container. Removing the last passphrase makes the LUKS container permanently @@ -282,7 +277,7 @@ inaccessible. \fB\fR can be [\-\-key\-file, \-\-keyfile\-offset, \-\-keyfile\-size, \-\-new\-keyfile\-offset, -\-\-new\-keyfile\-size, \-\-key\-slot, \-\-force\-password, \-\-header]. +\-\-new\-keyfile\-size, \-\-key\-slot, \-\-force\-password]. .PP \fIluksKillSlot\fR .IP @@ -292,26 +287,17 @@ This command can remove the last remaining key-slot, but requires an interactive confirmation when doing so. Removing the last passphrase makes a LUKS container permanently inaccessible. -\fB\fR can be [\-\-key\-file, \-\-keyfile\-offset, -\-\-keyfile\-size, \-\-header]. +\fB\fR can be [\-\-key\-file, \-\-keyfile\-offset, +\-\-keyfile\-size]. \fBWARNING:\fR If you read the passphrase from stdin (without further argument or with '-' as argument -to \-\-key-file), batch-mode (\-q) will be implicitely +to \-\-key-file), batch-mode (-q) will be implicitely switched on and no warning will be given when you remove the last remaining passphrase from a LUKS container. Removing the last passphrase makes the LUKS container permanently inaccessible. .PP -\fIerase\fR -.br -\fIluksErase\fR -.IP -Erase all keyslots and make the LUKS container permanently inaccessible. -You do not need to provide any password for this operation. - -\fBWARNING:\fR This operation is irreversible. -.PP \fIluksUUID\fR .IP Print the UUID of a LUKS device. @@ -336,10 +322,10 @@ that if the master key is compromised, the whole device has to be erased to prevent further access. Use this option carefully. In order to dump the master key, a passphrase has to be supplied, -either interactively or via \-\-key\-file. +either interactively or via \-\-key\-file. \fB\fR can be [\-\-dump\-master\-key, \-\-key\-file, -\-\-keyfile\-offset, \-\-keyfile\-size, \-\-header]. +\-\-keyfile\-offset, \-\-keyfile\-size]. \fBWARNING:\fR If \-\-dump\-master\-key is used with \-\-key\-file and the argument to \-\-key\-file is '-', no validation question @@ -389,17 +375,9 @@ Opens the loop-AES and sets up a mapping . If the key file is encrypted with GnuPG, then you have to use \-\-key\-file=\- and decrypt it before use, e.g. like this: .br -gpg \-\-decrypt | cryptsetup loopaesOpen \-\-key\-file=\- +gpg \-\-decrypt | cryptsetup loopaesOpen \-\-key\-file=\- -\fBWARNING:\fR The loop-AES extension cannot use direct input of key file -on real terminal because the keys are separated by end-of-line and only part -of the multi-key file would be read. -.br -If you need it in script, just use the pipe redirection: -.br -echo $keyfile | cryptsetup loopaesOpen \-\-key\-file=\- - Use \fB\-\-keyfile\-size\fR to specify the proper key length if needed. Use \fB\-\-offset\fR to specify device offset. Note that the units @@ -419,9 +397,8 @@ size). .PP See also section 7 of the FAQ and \fBhttp://loop-aes.sourceforge.net\fR for more information regarding loop-AES. -.SH TCRYPT (TrueCrypt-compatible and VeraCrypt) EXTENSION -cryptsetup supports mapping of TrueCrypt, tcplay or VeraCrypt -(with \fB\-\-veracrypt\fR option) encrypted partition +.SH TCRYPT (TrueCrypt-compatible) EXTENSION +cryptsetup supports mapping of TrueCrypt or tcplay encrypted partition using a native Linux kernel API. Header formatting and TCRYPT header change is not supported, cryptsetup never changes TCRYPT header on-device. @@ -439,11 +416,6 @@ Cryptsetup should recognize all header variants, except legacy cipher chains using LRW encryption mode with 64 bits encryption block (namely Blowfish in LRW mode is not recognized, this is limitation of kernel crypto API). -To recognize VeraCrypt device use \fB\-\-veracrypt\fR option. -VeraCrypt is just extension of TrueCrypt header with increased -iteration count so unlocking can take quite a lot of time (in comparison -with TCRYPT device). - \fBNOTE:\fR Activation with \fBtcryptOpen\fR is supported only for cipher chains using LRW or XTS encryption modes. @@ -451,26 +423,12 @@ The \fBtcryptDump\fR command should work for all recognized TCRYPT devices and doesn't require superuser privilege. To map system device (device with boot loader where the whole encrypted -system resides) use \fB\-\-tcrypt\-system\fR option. -You can use partition device as the parameter (parameter must be real partition -device, not image in file), then only this partition is mapped. - -If you have whole TCRYPT device as a file image and you want to map multiple -partition encrypted with system encryption, please create loopback mapping -with partitions first (\fBlosetup \-P\fR, see \fPlosetup(8)\fR man page for more info), -and use loop partition as the device parameter. - -If you use whole base device as parameter, one device for the whole system -encryption is mapped. This mode is available only for backward compatibility -with older cryptsetup versions which mapped TCRYPT system encryption -using whole device. +system resides) use \fB\-\-tcrypt\-system\fR option. Use the whole +device not the system partition as the device parameter. To use hidden header (and map hidden device, if available), use \fB\-\-tcrypt\-hidden\fR option. -To explicitly use backup (secondary) header, use \fB\-\-tcrypt\-backup\fR -option. - \fBNOTE:\fR There is no protection for a hidden volume if the outer volume is mounted. The reason is that if there were any protection, it would require some metadata describing @@ -482,28 +440,21 @@ become detectable. .br \fItcryptOpen\fR (\fBold syntax\fR) .IP -Opens the TCRYPT (a TrueCrypt-compatible) and sets up +Opens the TCRYPT (a TrueCrypt-compatible) and sets up a mapping . -\fB\fR can be [\-\-key\-file, \-\-tcrypt\-hidden, -\-\-tcrypt\-system, \-\-tcrypt\-backup, \-\-readonly, \-\-test\-passphrase, -\-\-allow-discards]. +\fB\fR can be [\-\-key\-file, \-\-tcrypt\-hidden, +\-\-tcrypt\-system, \-\-readonly, \-\-test\-passphrase]. The keyfile parameter allows combination of file content with the passphrase and can be repeated. Note that using keyfiles is compatible with TCRYPT and is different from LUKS keyfile logic. - -\fBWARNING:\fR Option \fB\-\-allow\-discards\fR cannot be combined with -option \fB\-\-tcrypt\-hidden\fR. For normal mapping it can cause -\fBdestruction of hidden volume\fR (hidden volume appears as unused space -for outer volume so this space can be discarded). - .PP \fItcryptDump\fR .IP Dump the header information of a TCRYPT device. -If the \-\-dump\-master\-key option is used, the TCRYPT device master key +If the \-\-dump\-master\-key option is used, the TCRYPT device master key is dumped instead of TCRYPT header info. Beware that the master key (or concatenated master keys if cipher chain is used) can be used to decrypt the data stored in the TCRYPT container without @@ -511,8 +462,8 @@ a passphrase. This means that if the master key is compromised, the whole device has to be erased to prevent further access. Use this option carefully. -\fB\fR can be [\-\-dump\-master\-key, \-\-key\-file, -\-\-tcrypt\-hidden, \-\-tcrypt\-system, \-\-tcrypt\-backup]. +\fB\fR can be [\-\-dump\-master\-key, \-\-key\-file, +\-\-tcrypt\-hidden, \-\-tcrypt\-system]. The keyfile parameter allows combination of file content with the passphrase and can be repeated. @@ -565,16 +516,14 @@ Run in debug mode with full diagnostic logs. Debug output lines are always prefixed by '#'. .TP .B "\-\-hash, \-h \fI\fR" -Specifies the passphrase hash for \fIopen\fR (for plain and -loopaes device types). +Specifies the passphrase hash for \fIopen\fR (for plain and loopaes device types). Specifies the hash used in the LUKS key setup scheme and volume key digest -for \fIluksFormat\fR. The specified hash is used as hash-parameter -for PBKDF2 and for the AF splitter. +for \fIluksFormat\fR. The specified hash name is passed to the compiled-in crypto backend. Different backends may support different hashes. -For \fIluksFormat\fR, the hash +For \fIluksFormat\fR, the hash algorithm must provide at least 160 bits of output, which excludes, e.g., MD5. Do not use a non-crypto hash like \fB"crc32"\fR as this breaks security. @@ -593,11 +542,6 @@ The current default in the distributed sources is "aes-cbc-essiv:sha256" for plain dm-crypt and "aes-xts-plain64" for LUKS. -If a hash is part of the cipher spefification, then it is -used as part of the IV generation. For example, ESSIV -needs a hash function, while "plain64" does not and -hence none is specified. - For XTS mode you can optionally set a key size of 512 bits with the \-s option. Key size for XTS mode is twice that for other modes for the same @@ -669,14 +613,14 @@ then the new header decrypts the data encrypted with the header the master key was taken from. \fBWARNING:\fR If you create your own master key, you -need to make sure to do it right. Otherwise you can end +need to make sure to do it right. Otherwise you can end up with a low-entropy or otherwise partially predictable master key which will compromise security. For \fIluksAddKey\fR this allows adding a new passphrase without having to know an exiting one. -For \fIopen\fR this allows one to open the LUKS device +For \fIopen\fR this allows to open the LUKS device without giving a passphrase. .TP .B "\-\-dump\-master\-key" @@ -736,14 +680,17 @@ This option is only relevant for the \fIopen\fR action with plain or loopaes device types. .TP .B "\-\-skip, \-p " -Start offset used in IV calculation in 512-byte sectors -(how many sectors of the encrypted data to skip at the beginning). +How many sectors of the encrypted data to skip at the beginning. This option is only relevant for the \fIopen\fR action with plain or loopaes device types. -Hence, if \-\-offset \fIn\fR, and \-\-skip \fIs\fR, sector \fIn\fR -(the first sector of encrypted device) will get a sector number -of \fIs\fR for the IV calculation. +This is different from the \-\-offset options with respect to +the sector numbers used in IV calculation. +Using \-\-offset will shift the IV calculation by the same negative amount. +Hence, if \-\-offset \fIn\fR, sector \fIn\fR will get a sector +number of \fI0\fR for the IV calculation. +Using \-\-skip causes sector \fIn\fR to also be the first sector +of the mapped device, but with its number for IV generation is \fIn\fR. .TP .B "\-\-readonly, \-r" set up a read-only mapping. @@ -751,7 +698,7 @@ set up a read-only mapping. .B "\-\-shared" Creates an additional mapping for one common ciphertext device. Arbitrary mappings are supported. -This option is only relevant for the +This option is only relevant for the \fIopen \-\-type plain\fR action. Use \-\-offset, \-\-size and \-\-skip to specify the mapped area. .TP @@ -773,7 +720,7 @@ via terminal. It is relevant every time a passphrase is asked, for example for \fIopen\fR, \fIluksFormat\fR or \fIluksAddKey\fR. It has no effect if used in conjunction with \-\-key-file. .br -This option is useful when the system +This option is useful when the system should not stall if the user does not input a passphrase, e.g. during boot. The default is a value of 0 seconds, which means to wait forever. @@ -814,33 +761,11 @@ because it can make filesystem-level operations visible on the physical device. For example, information leaking filesystem type, used space, etc. may be extractable from the physical device if the discarded blocks can be located -later. If in doubt, do not use it. +later. If in doubt, do no use it. A kernel version of 3.1 or later is needed. For earlier kernels this option is ignored. .TP -.B "\-\-perf\-same_cpu_crypt\fR" -Perform encryption using the same cpu that IO was submitted on. -The default is to use an unbound workqueue so that encryption work -is automatically balanced between available CPUs. -This option is only relevant for \fIopen\fR action. - -\fBNOTE:\fR This option is available only for low-level dm-crypt -performance tuning, use only if you need a change to default dm-crypt -behaviour. Needs kernel 4.0 or later. -.TP -.B "\-\-perf\-submit_from_crypt_cpus\fR" -Disable offloading writes to a separate thread after encryption. -There are some situations where offloading write bios from the -encryption threads to a single thread degrades performance -significantly. The default is to offload write bios to the same -thread. -This option is only relevant for \fIopen\fR action. - -\fBNOTE:\fR This option is available only for low-level dm-crypt -performance tuning, use only if you need a change to default dm-crypt -behaviour. Needs kernel 4.0 or later. -.TP .B "\-\-test\-passphrase\fR" Do not activate device, just verify passphrase. This option is only relevant for \fIopen\fR action (the device @@ -848,10 +773,10 @@ mapping name is not mandatory if this option is used). .TP .B "\-\-header\fR " Use a detached (separated) metadata device or file where the -LUKS header is stored. This options allows one to store ciphertext +LUKS header is stored. This options allows to store ciphertext and LUKS header on different devices. -This option is only relevant for LUKS devices and can be +This option is only relevant for LUKS devices and can be used with the \fIluksFormat\fR, \fIopen\fR, \fIluksSuspend\fR, \fIluksResume\fR, \fIstatus\fR and \fIresize\fR commands. @@ -904,18 +829,18 @@ low-entropy passphrases are easy to attack in plain mode. first newline, i.e. '\\n'. The input without the newline character is processed with the default hash or the hash specified with \-\-hash. -The hash result will be truncated to the key size +The hash result will be truncated to the key size of the used cipher, or the size specified with \-s. \fBFrom stdin\fR: Reading will continue until a newline (or until the maximum input size is reached), with the trailing newline stripped. The maximum input size is defined by the same -compiled-in default as for the maximum key file size and can +compiled-in default as for the maximum key file size and can be overwritten using \-\-keyfile-size option. The data read will be hashed with the default hash or the hash specified with \-\-hash. -The hash result will be truncated to the key size +The has result will be truncated to the key size of the used cipher, or the size specified with \-s. Note that if \-\-key-file=- is used for reading the key @@ -929,19 +854,11 @@ directly specifying a binary key. No warning will be given if the amount of data read from stdin is less than the key size. -\fBFrom a key file\fR: It will be truncated to the +\fBFrom a key file\fR: It will be truncated to the key size of the used cipher or the size given by \-s and directly used as binary key. - -\fBWARNING\fR: The \-\-hash argument is being ignored. -The \-\-hash option is usable only for stdin input in plain mode. - -If the key file is shorter than the key, cryptsetup +if the key file is shorter than the key, cryptsetup will quit with an error. -The maximum input size is defined by the same -compiled-in default as for the maximum key file size and can -be overwritten using \-\-keyfile-size option. - .SH NOTES ON PASSPHRASE PROCESSING FOR LUKS LUKS uses PBKDF2 to protect against dictionary attacks @@ -979,8 +896,8 @@ passphrase used on a device with a slow CPU, as this will result in a low iteration count. On a slow device it may be advisable to increase the iteration time using the \-\-iter\-time option in order to obtain a higher -iteration count. This does slow down all later luksOpen -operations accordingly. +iteration count. This does slow down all later luksOpen +operations accordingly. .SH INCOHERENT BEHAVIOR FOR INVALID PASSPHRASES/KEYS LUKS checks for a valid passphrase when an encrypted partition is unlocked. The behavior of plain dm-crypt is different. @@ -1021,7 +938,7 @@ options. Using /dev/random on a system without enough entropy sources can cause \fPluksFormat\fR to block until the requested amount of random data is gathered. In a low-entropy situation (embedded system), this can take a very long time and potentially forever. At the same -time, using /dev/urandom in a low-entropy situation will +time, using /dev/urandom in a low-entropy situation will produce low-quality keys. This is a serious problem, but solving it is out of scope for a mere man-page. See \fPurandom(4)\fR for more information. @@ -1052,7 +969,7 @@ or in the 'Issues' section on LUKS website. Please attach the output of the failed command with the \-\-debug option added. .SH AUTHORS -cryptsetup originally written by Jana Saout +cryptsetup originally written by Christophe Saout .br The LUKS extensions and original man page were written by Clemens Fruhwirth . @@ -1061,26 +978,26 @@ Man page extensions by Milan Broz . .br Man page rewrite and extension by Arno Wagner . .SH COPYRIGHT -Copyright \(co 2004 Jana Saout +Copyright \(co 2004 Christophe Saout .br Copyright \(co 2004-2006 Clemens Fruhwirth .br -Copyright \(co 2009-2015 Red Hat, Inc. +Copyright \(co 2009-2012 Red Hat, Inc. .br -Copyright \(co 2009-2015 Milan Broz +Copyright \(co 2009-2013 Milan Broz .br -Copyright \(co 2012-2014 Arno Wagner +Copyright \(co 2012-2013 Arno Wagner This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .SH SEE ALSO -The LUKS website at \fBhttps://gitlab.com/cryptsetup/cryptsetup/\fR +The LUKS website at \fBhttp://code.google.com/p/cryptsetup/\fR The cryptsetup FAQ, contained in the distribution package and online at -\fBhttps://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions\fR +\fBhttp://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions\fR The cryptsetup mailing list and list archive, see FAQ entry 1.6. The LUKS on-disk format specification available at -\fBhttps://gitlab.com/cryptsetup/cryptsetup/wikis/Specification\fR +\fBhttp://code.google.com/p/cryptsetup/wiki/Specification\fR diff --git a/man/veritysetup.8 b/man/veritysetup.8 index 15dd963..ceda89f 100644 --- a/man/veritysetup.8 +++ b/man/veritysetup.8 @@ -1,4 +1,4 @@ -.TH VERITYSETUP "8" "December 2013" "veritysetup" "Maintenance Commands" +.TH VERITYSETUP "8" "June 2012" "veritysetup" "Maintenance Commands" .SH NAME veritysetup - manage dm-verity (block level verification) volumes .SH SYNOPSIS @@ -130,14 +130,12 @@ The first implementation of veritysetup was written by Chrome OS authors. This version is based on verification code written by Mikulas Patocka and rewritten for libcryptsetup by Milan Broz . .SH COPYRIGHT -Copyright \(co 2012-2013 Red Hat, Inc. -.br -Copyright \(co 2012-2014 Milan Broz +Copyright \(co 2012 Red Hat, 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. .SH SEE ALSO -The project website at \fBhttps://gitlab.com/cryptsetup/cryptsetup\fR +The project website at \fBhttp://code.google.com/p/cryptsetup/\fR The verity on-disk format specification available at -\fBhttps://gitlab.com/cryptsetup/cryptsetup/wikis/DMVerity\fR +\fBhttp://code.google.com/p/cryptsetup/wiki/DMVerity\fR diff --git a/misc/11-dm-crypt.rules b/misc/11-dm-crypt.rules deleted file mode 100644 index dfbb3a0..0000000 --- a/misc/11-dm-crypt.rules +++ /dev/null @@ -1,17 +0,0 @@ -# Old udev rules historically used in device-mapper. -# No need to install these until you have some weird configuration. -# (Code internally set the same flags.) - -ACTION!="add|change", GOTO="crypt_end" -ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="crypt_end" - -ENV{DM_UUID}=="CRYPT-TEMP-?*", GOTO="crypt_disable" -ENV{DM_UUID}!="?*", ENV{DM_NAME}=="temporary-cryptsetup-?*", GOTO="crypt_disable" -GOTO="crypt_end" - -LABEL="crypt_disable" -ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}="1" -ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1" -ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1" - -LABEL="crypt_end" diff --git a/misc/dracut_90reencrypt/README b/misc/dracut_90reencrypt/README index 43b1146..bfdeacc 100644 --- a/misc/dracut_90reencrypt/README +++ b/misc/dracut_90reencrypt/README @@ -2,28 +2,13 @@ Example of simple dracut module for reencryption of system LUKS drive on-the-fly. Install in /usr/[share|lib]/dracut/modules.d/90reencrypt, then -build special intramfs "with dracut -a reencrypt -o crypt". -Reencrypt module doesn't work (has a conflict) with crypt module as -of now. After successfull reencryption reboot using original initramfs. +rebuild intramfs "with dracut -f -a reencrypt". -Dracut then recognize argument rd.luks.reencrypt=name:size, -e.g. rd.luks.reencrypt=sda2:52G means only 52G of device +Dracut then recognize argument rd_REENCRYPT=name:size, +e.g. rd_REENCRYPT=sda2:52G means only 52G of device will be reencrypted (default is whole device). (Name is kernel name of device.) -Also, you may specify keyslot which you want to use for reencryption, -rd.luks.reencrypt_keyslot=. Bear in mind that if you -use this option, all other keyslots will be deactivated. - -Another argument, rd.luks.reencrypt_key=/dev/sda:/path/to/keyfile -can be used to read password for specific keyslot from device containing -filesystem with a keyfile (file with a password). If you omit reencrypt_key -argument, reencryption would work only in case a LUKS container has -exactly one keyslot activated. - -Arguments rd.luks.reencrypt_keyslot and rd.luks.reencrypt_key are not -mandatory. - Note that reencryption context is stored in ramdisk, any fail can mean complete lost of data! diff --git a/misc/dracut_90reencrypt/module-setup.sh b/misc/dracut_90reencrypt/module-setup.sh index 5d03d21..a843964 100755 --- a/misc/dracut_90reencrypt/module-setup.sh +++ b/misc/dracut_90reencrypt/module-setup.sh @@ -7,23 +7,16 @@ check() { depends() { echo dm rootfs-block + return 0 } installkernel() { - # requires hostonly='' override so that loop module is pulled in initramfs - # even if not loaded in actual kernel. dracut bug? - hostonly='' instmods dm_crypt =crypto loop + instmods dm_crypt =crypto } install() { - if dracut_module_included crypt; then - derror "'reencrypt' can't be installed together with 'crypt'." - derror "Add '-o crypt' option to install reencrypt module." - return 1 - fi - dracut_install cryptsetup-reencrypt inst_hook cmdline 30 "$moddir/parse-reencrypt.sh" inst_simple "$moddir"/reencrypt.sh /sbin/reencrypt -} +} \ No newline at end of file diff --git a/misc/dracut_90reencrypt/parse-reencrypt.sh b/misc/dracut_90reencrypt/parse-reencrypt.sh index 8fbd44b..6c076e9 100755 --- a/misc/dracut_90reencrypt/parse-reencrypt.sh +++ b/misc/dracut_90reencrypt/parse-reencrypt.sh @@ -1,19 +1,14 @@ #!/bin/sh -REENC=$(getargs rd.luks.reencrypt=) +REENC=$(getargs rd_REENCRYPT=) REENC_DEV=$(echo $REENC | sed 's/:.*//') REENC_SIZE=$(echo $REENC | sed -n 's/.*://p') -REENC_KEY=$(getargs rd.luks.reencrypt_key=) +REENC_KEY=$(getargs rd_REENCRYPT_KEY=) if [ -z "$REENC_KEY" ] ; then REENC_KEY=none fi -REENC_SLOT=$(getargs rd.luks.reencrypt_keyslot=) -if [ -z "$REENC_SLOT" ] ; then - REENC_SLOT=any -fi - if [ -n "$REENC_DEV" ] ; then { printf 'SUBSYSTEM!="block", GOTO="reenc_end"\n' @@ -21,7 +16,7 @@ if [ -n "$REENC_DEV" ] ; then printf 'KERNEL!="%s", GOTO="reenc_end"\n' $REENC_DEV printf 'ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="/sbin/initqueue \ --unique --onetime --name crypt-reencrypt-%%k \ - /sbin/reencrypt $env{DEVNAME} %s"\n' "$REENC_KEY $REENC_SLOT $REENC_SIZE" + /sbin/reencrypt $env{DEVNAME} %s"\n' "$REENC_KEY $REENC_SIZE" printf 'LABEL="reenc_end"\n' } > /etc/udev/rules.d/69-reencryption.rules fi diff --git a/misc/dracut_90reencrypt/reencrypt.sh b/misc/dracut_90reencrypt/reencrypt.sh index c82f27e..c2e2716 100755 --- a/misc/dracut_90reencrypt/reencrypt.sh +++ b/misc/dracut_90reencrypt/reencrypt.sh @@ -1,12 +1,10 @@ #!/bin/sh # -# $1=$device [$2=keyfile|none [$3=keyslot|any [$4=size]]] +# $1=$device [$2=keyfile|none [$3=size]] # [ -d /sys/module/dm_crypt ] || modprobe dm_crypt -[ -d /sys/module/loop ] || modprobe loop - [ -f /tmp/reencrypted ] && exit 0 . /lib/dracut-lib.sh @@ -19,12 +17,8 @@ else fi PARAMS="$device -T 1 --use-fsync -B 32" -if [ "$3" != "any" ]; then - PARAMS="$PARAMS -S $3" -fi - -if [ -n "$4" ]; then - PARAMS="$PARAMS --device-size $4" +if [ -n "$3" ]; then + PARAMS="$PARAMS --device-size $3" fi reenc_readkey() { @@ -40,40 +34,25 @@ reenc_readkey() { reenc_run() { local cwd=$(pwd) - local _prompt="LUKS password for REENCRYPTING $device" cd /tmp if [ "$1" = "none" ] ; then - if [ "$2" != "any" ]; then - _prompt="$_prompt, using keyslot $2" - fi /bin/plymouth ask-for-password \ - --prompt "$_prompt" \ + --prompt "LUKS password for REENCRYPTING $device" \ --command="/sbin/cryptsetup-reencrypt $PARAMS" else info "REENCRYPT using key $1" reenc_readkey "$1" | /sbin/cryptsetup-reencrypt -d - $PARAMS fi - _ret=$? cd $cwd } info "REENCRYPT $device requested" # flock against other interactive activities { flock -s 9; - reenc_run $2 $3 -} 9>/.console_lock + reenc_run $2 +} 9>/.console.lock -if [ $_ret -eq 0 ]; then - # do not ask again - >> /tmp/reencrypted - warn "Reencryption of device $device has finished successfully. Use previous" - warn "initramfs image (without reencrypt module) to boot the system. When" - warn "you leave the emergency shell, the system will reboot." - - emergency_shell -n "(reboot)" - [ -x /usr/bin/systemctl ] && /usr/bin/systemctl reboot - [ -x /sbin/shutdown ] && /sbin/shutdown -r now -fi +# do not ask again +>> /tmp/reencrypted -# panic the kernel otherwise -exit 1 +exit 0 diff --git a/missing b/missing deleted file mode 100755 index db98974..0000000 --- a/missing +++ /dev/null @@ -1,215 +0,0 @@ -#! /bin/sh -# Common wrapper for a few potentially missing GNU programs. - -scriptversion=2013-10-28.13; # UTC - -# Copyright (C) 1996-2013 Free Software Foundation, Inc. -# Originally written by Fran,cois Pinard , 1996. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -if test $# -eq 0; then - echo 1>&2 "Try '$0 --help' for more information" - exit 1 -fi - -case $1 in - - --is-lightweight) - # Used by our autoconf macros to check whether the available missing - # script is modern enough. - exit 0 - ;; - - --run) - # Back-compat with the calling convention used by older automake. - shift - ;; - - -h|--h|--he|--hel|--help) - echo "\ -$0 [OPTION]... PROGRAM [ARGUMENT]... - -Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due -to PROGRAM being missing or too old. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - -Supported PROGRAM values: - aclocal autoconf autoheader autom4te automake makeinfo - bison yacc flex lex help2man - -Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and -'g' are ignored when checking the name. - -Send bug reports to ." - exit $? - ;; - - -v|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "missing $scriptversion (GNU Automake)" - exit $? - ;; - - -*) - echo 1>&2 "$0: unknown '$1' option" - echo 1>&2 "Try '$0 --help' for more information" - exit 1 - ;; - -esac - -# Run the given program, remember its exit status. -"$@"; st=$? - -# If it succeeded, we are done. -test $st -eq 0 && exit 0 - -# Also exit now if we it failed (or wasn't found), and '--version' was -# passed; such an option is passed most likely to detect whether the -# program is present and works. -case $2 in --version|--help) exit $st;; esac - -# Exit code 63 means version mismatch. This often happens when the user -# tries to use an ancient version of a tool on a file that requires a -# minimum version. -if test $st -eq 63; then - msg="probably too old" -elif test $st -eq 127; then - # Program was missing. - msg="missing on your system" -else - # Program was found and executed, but failed. Give up. - exit $st -fi - -perl_URL=http://www.perl.org/ -flex_URL=http://flex.sourceforge.net/ -gnu_software_URL=http://www.gnu.org/software - -program_details () -{ - case $1 in - aclocal|automake) - echo "The '$1' program is part of the GNU Automake package:" - echo "<$gnu_software_URL/automake>" - echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" - echo "<$gnu_software_URL/autoconf>" - echo "<$gnu_software_URL/m4/>" - echo "<$perl_URL>" - ;; - autoconf|autom4te|autoheader) - echo "The '$1' program is part of the GNU Autoconf package:" - echo "<$gnu_software_URL/autoconf/>" - echo "It also requires GNU m4 and Perl in order to run:" - echo "<$gnu_software_URL/m4/>" - echo "<$perl_URL>" - ;; - esac -} - -give_advice () -{ - # Normalize program name to check for. - normalized_program=`echo "$1" | sed ' - s/^gnu-//; t - s/^gnu//; t - s/^g//; t'` - - printf '%s\n' "'$1' is $msg." - - configure_deps="'configure.ac' or m4 files included by 'configure.ac'" - case $normalized_program in - autoconf*) - echo "You should only need it if you modified 'configure.ac'," - echo "or m4 files included by it." - program_details 'autoconf' - ;; - autoheader*) - echo "You should only need it if you modified 'acconfig.h' or" - echo "$configure_deps." - program_details 'autoheader' - ;; - automake*) - echo "You should only need it if you modified 'Makefile.am' or" - echo "$configure_deps." - program_details 'automake' - ;; - aclocal*) - echo "You should only need it if you modified 'acinclude.m4' or" - echo "$configure_deps." - program_details 'aclocal' - ;; - autom4te*) - echo "You might have modified some maintainer files that require" - echo "the 'autom4te' program to be rebuilt." - program_details 'autom4te' - ;; - bison*|yacc*) - echo "You should only need it if you modified a '.y' file." - echo "You may want to install the GNU Bison package:" - echo "<$gnu_software_URL/bison/>" - ;; - lex*|flex*) - echo "You should only need it if you modified a '.l' file." - echo "You may want to install the Fast Lexical Analyzer package:" - echo "<$flex_URL>" - ;; - help2man*) - echo "You should only need it if you modified a dependency" \ - "of a man page." - echo "You may want to install the GNU Help2man package:" - echo "<$gnu_software_URL/help2man/>" - ;; - makeinfo*) - echo "You should only need it if you modified a '.texi' file, or" - echo "any other file indirectly affecting the aspect of the manual." - echo "You might want to install the Texinfo package:" - echo "<$gnu_software_URL/texinfo/>" - echo "The spurious makeinfo call might also be the consequence of" - echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" - echo "want to install GNU make:" - echo "<$gnu_software_URL/make/>" - ;; - *) - echo "You might have modified some files without having the proper" - echo "tools for further handling them. Check the 'README' file, it" - echo "often tells you about the needed prerequisites for installing" - echo "this package. You may also peek at any GNU archive site, in" - echo "case some other package contains this missing '$1' program." - ;; - esac -} - -give_advice "$1" | sed -e '1s/^/WARNING: /' \ - -e '2,$s/^/ /' >&2 - -# Propagate the correct exit status (expected to be 127 for a program -# not found, 63 for a program that failed due to version mismatch). -exit $st - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/packaging/cryptsetup.manifest b/packaging/cryptsetup.manifest deleted file mode 100644 index 808c7a9..0000000 --- a/packaging/cryptsetup.manifest +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/packaging/cryptsetup.spec b/packaging/cryptsetup.spec deleted file mode 100644 index 938a839..0000000 --- a/packaging/cryptsetup.spec +++ /dev/null @@ -1,110 +0,0 @@ -Name: cryptsetup -Summary: A utility for setting up encrypted disks -Version: 1.6.7 -Release: 1 -License: GPL-2.0 -Group: Base/Device Management -URL: https://gitlab.com/cryptsetup/cryptsetup -Source0: cryptsetup-%{version}.tar.xz -Source1: cryptsetup.manifest - -BuildRequires: linux-kernel-headers -BuildRequires: device-mapper-devel -BuildRequires: libgpg-error-devel -BuildRequires: libgcrypt-devel -BuildRequires: libuuid-devel -BuildRequires: util-linux -BuildRequires: popt-devel -BuildRequires: automake -BuildRequires: gettext - -Requires: libgpg-error -Requires: libdevmapper -Requires: libgcrypt - -%description -The cryptsetup package contains a utility for setting up -disk encryption using dm-crypt kernel module. - -%package devel -Summary: Headers and libraries for using encrypted file systems -Group: Development/Libraries -License: LGPL-2.1 -Requires: %{name} = %{version}-%{release} -Requires: libgcrypt-devel > 1.1.42 -Requires: device-mapper-devel -Requires: libuuid-devel -Requires: pkgconfig - -%description devel -The cryptsetup-devel package contains libraries and header files -used for writing code that makes use of disk encryption. - -%package locale -Summary: Cryptsetup locale package -Group: Base/Device Management -License: GPL-2.0 -Requires: %{name} = %{version}-%{release} - -%description locale -locale package for cryptsetup - -%package doc -Summary: Cryptsetup doc package -Group: Base/Device Management -License: GPL-2.0 -Requires: %{name} = %{version}-%{release} - -%description doc -doc package for cryptsetup - -%prep -%setup -q - -%build -./autogen.sh --prefix=%{_prefix} -localedir=%{_prefix}/share/locale - -make %{?jobs:-j%jobs} - -%install -rm -rf %{buildroot} -%make_install -cp -a %{SOURCE1} %{buildroot}%{_datadir}/binary_package_name.manifest - -%clean - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - -%files -%defattr(-,root,root,-) -%manifest %{_datadir}/binary_package_name.manifest -%{_prefix}/lib/libcryptsetup.so -%{_prefix}/lib/libcryptsetup.so.4 -%{_prefix}/lib/libcryptsetup.so.4.7.0 -%{_prefix}/sbin/cryptsetup -%{_prefix}/sbin/veritysetup - -%files devel -%{_prefix}/include/libcryptsetup.h -%{_prefix}/lib/libcryptsetup.so -%{_prefix}/lib/pkgconfig/libcryptsetup.pc - -%files locale -%{_prefix}/share/locale/cs/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/de/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/fi/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/fr/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/id/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/it/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/nl/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/pl/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/sv/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/uk/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/vi/LC_MESSAGES/cryptsetup.mo -%{_prefix}/share/locale/es/LC_MESSAGES/cryptsetup.mo - -%files doc -%{_prefix}/share/man/man8/cryptsetup.8.gz -%{_prefix}/share/man/man8/veritysetup.8.gz diff --git a/po/LINGUAS b/po/LINGUAS index 3942a0f..124874e 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -1,6 +1,5 @@ cs de -es fi fr id diff --git a/po/Makefile.in.in b/po/Makefile.in.in deleted file mode 100644 index 2ed49e6..0000000 --- a/po/Makefile.in.in +++ /dev/null @@ -1,393 +0,0 @@ -# Makefile for PO directory in any package using GNU gettext. -# Copyright (C) 1995-1997, 2000-2006 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.15 - -PACKAGE = @PACKAGE@ -VERSION = @VERSION@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ - -SHELL = /bin/sh -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -datarootdir = @datarootdir@ -datadir = @datadir@ -localedir = @localedir@ -gettextsrcdir = $(datadir)/gettext/po - -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -mkinstalldirs = $(SHELL) @install_sh@ -d -mkdir_p = @mkdir_p@ - -GMSGFMT_ = @GMSGFMT@ -GMSGFMT_no = @GMSGFMT@ -GMSGFMT_yes = @GMSGFMT_015@ -GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) -MSGFMT_ = @MSGFMT@ -MSGFMT_no = @MSGFMT@ -MSGFMT_yes = @MSGFMT_015@ -MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) -XGETTEXT_ = @XGETTEXT@ -XGETTEXT_no = @XGETTEXT@ -XGETTEXT_yes = @XGETTEXT_015@ -XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) -MSGMERGE = msgmerge -MSGMERGE_UPDATE = @MSGMERGE@ --update -MSGINIT = msginit -MSGCONV = msgconv -MSGFILTER = msgfilter - -POFILES = @POFILES@ -GMOFILES = @GMOFILES@ -UPDATEPOFILES = @UPDATEPOFILES@ -DUMMYPOFILES = @DUMMYPOFILES@ -DISTFILES.common = Makefile.in.in remove-potcdate.sin \ -$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) -DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ -$(POFILES) $(GMOFILES) \ -$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) - -POTFILES = \ - -CATALOGS = @CATALOGS@ - -# Makevars gets inserted here. (Don't remove this line!) - -.SUFFIXES: -.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update - -.po.mo: - @echo "$(MSGFMT) -c -o $@ $<"; \ - $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ - -.po.gmo: - @lang=`echo $* | sed -e 's,.*/,,'`; \ - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo - -.sin.sed: - sed -e '/^#/d' $< > t-$@ - mv t-$@ $@ - - -all: all-@USE_NLS@ - -all-yes: stamp-po -all-no: - -# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no -# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because -# we don't want to bother translators with empty POT files). We assume that -# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. -# In this case, stamp-po is a nop (i.e. a phony target). - -# stamp-po is a timestamp denoting the last time at which the CATALOGS have -# been loosely updated. Its purpose is that when a developer or translator -# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, -# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent -# invocations of "make" will do nothing. This timestamp would not be necessary -# if updating the $(CATALOGS) would always touch them; however, the rule for -# $(POFILES) has been designed to not touch files that don't need to be -# changed. -stamp-po: $(srcdir)/$(DOMAIN).pot - test ! -f $(srcdir)/$(DOMAIN).pot || \ - test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) - @test ! -f $(srcdir)/$(DOMAIN).pot || { \ - echo "touch stamp-po" && \ - echo timestamp > stamp-poT && \ - mv stamp-poT stamp-po; \ - } - -# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', -# otherwise packages like GCC can not be built if only parts of the source -# have been downloaded. - -# This target rebuilds $(DOMAIN).pot; it is an expensive operation. -# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. -$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed - if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ - msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ - else \ - msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ - fi; \ - $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ - --files-from=$(srcdir)/POTFILES.in \ - --copyright-holder='$(COPYRIGHT_HOLDER)' \ - --msgid-bugs-address="$$msgid_bugs_address" - test ! -f $(DOMAIN).po || { \ - if test -f $(srcdir)/$(DOMAIN).pot; then \ - sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ - sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ - if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ - rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ - else \ - rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ - mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ - fi; \ - else \ - mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ - fi; \ - } - -# This rule has no dependencies: we don't need to update $(DOMAIN).pot at -# every "make" invocation, only create it when it is missing. -# Only "make $(DOMAIN).pot-update" or "make dist" will force an update. -$(srcdir)/$(DOMAIN).pot: - $(MAKE) $(DOMAIN).pot-update - -# This target rebuilds a PO file if $(DOMAIN).pot has changed. -# Note that a PO file is not touched if it doesn't need to be changed. -$(POFILES): $(srcdir)/$(DOMAIN).pot - @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ - if test -f "$(srcdir)/$${lang}.po"; then \ - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ - else \ - $(MAKE) $${lang}.po-create; \ - fi - - -install: install-exec install-data -install-exec: -install-data: install-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ - $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ - for file in $(DISTFILES.common) Makevars.template; do \ - $(INSTALL_DATA) $(srcdir)/$$file \ - $(DESTDIR)$(gettextsrcdir)/$$file; \ - done; \ - for file in Makevars; do \ - rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ - done; \ - else \ - : ; \ - fi -install-data-no: all -install-data-yes: all - $(mkdir_p) $(DESTDIR)$(datadir) - @catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - dir=$(localedir)/$$lang/LC_MESSAGES; \ - $(mkdir_p) $(DESTDIR)$$dir; \ - if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ - $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ - echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ - for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ - if test -n "$$lc"; then \ - if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ - link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ - mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ - for file in *; do \ - if test -f $$file; then \ - ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ - fi; \ - done); \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - else \ - if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ - :; \ - else \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - fi; \ - fi; \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ - ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ - ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ - cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ - echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ - fi; \ - done; \ - done - -install-strip: install - -installdirs: installdirs-exec installdirs-data -installdirs-exec: -installdirs-data: installdirs-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ - $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ - else \ - : ; \ - fi -installdirs-data-no: -installdirs-data-yes: - $(mkdir_p) $(DESTDIR)$(datadir) - @catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - dir=$(localedir)/$$lang/LC_MESSAGES; \ - $(mkdir_p) $(DESTDIR)$$dir; \ - for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ - if test -n "$$lc"; then \ - if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ - link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ - mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ - for file in *; do \ - if test -f $$file; then \ - ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ - fi; \ - done); \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - else \ - if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ - :; \ - else \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - fi; \ - fi; \ - fi; \ - done; \ - done - -# Define this as empty until I found a useful application. -installcheck: - -uninstall: uninstall-exec uninstall-data -uninstall-exec: -uninstall-data: uninstall-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ - for file in $(DISTFILES.common) Makevars.template; do \ - rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ - done; \ - else \ - : ; \ - fi -uninstall-data-no: -uninstall-data-yes: - catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ - done; \ - done - -check: all - -info dvi ps pdf html tags TAGS ctags CTAGS ID: - -mostlyclean: - rm -f remove-potcdate.sed - rm -f stamp-poT - rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po - rm -fr *.o - -clean: mostlyclean - -distclean: clean - rm -f Makefile Makefile.in POTFILES *.mo - -maintainer-clean: distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - rm -f stamp-po $(GMOFILES) - -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) -dist distdir: - $(MAKE) update-po - @$(MAKE) dist2 -# This is a separate target because 'update-po' must be executed before. -dist2: stamp-po $(DISTFILES) - dists="$(DISTFILES)"; \ - if test "$(PACKAGE)" = "gettext-tools"; then \ - dists="$$dists Makevars.template"; \ - fi; \ - if test -f $(srcdir)/$(DOMAIN).pot; then \ - dists="$$dists $(DOMAIN).pot stamp-po"; \ - fi; \ - if test -f $(srcdir)/ChangeLog; then \ - dists="$$dists ChangeLog"; \ - fi; \ - for i in 0 1 2 3 4 5 6 7 8 9; do \ - if test -f $(srcdir)/ChangeLog.$$i; then \ - dists="$$dists ChangeLog.$$i"; \ - fi; \ - done; \ - if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ - for file in $$dists; do \ - if test -f $$file; then \ - cp -p $$file $(distdir) || exit 1; \ - else \ - cp -p $(srcdir)/$$file $(distdir) || exit 1; \ - fi; \ - done - -update-po: Makefile - $(MAKE) $(DOMAIN).pot-update - test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) - $(MAKE) update-gmo - -# General rule for creating PO files. - -.nop.po-create: - @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ - echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ - exit 1 - -# General rule for updating PO files. - -.nop.po-update: - @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ - if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ - tmpdir=`pwd`; \ - echo "$$lang:"; \ - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ - cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ - if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ - rm -f $$tmpdir/$$lang.new.po; \ - else \ - if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ - :; \ - else \ - echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ - exit 1; \ - fi; \ - fi; \ - else \ - echo "msgmerge for $$lang.po failed!" 1>&2; \ - rm -f $$tmpdir/$$lang.new.po; \ - fi - -$(DUMMYPOFILES): - -update-gmo: Makefile $(GMOFILES) - @: - -Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ - cd $(top_builddir) \ - && $(SHELL) ./config.status $(subdir)/$@.in po-directories - -force: - -# Tell versions [3.59,3.63) of GNU make not to export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/po/Rules-quot b/po/Rules-quot deleted file mode 100644 index 9c2a995..0000000 --- a/po/Rules-quot +++ /dev/null @@ -1,47 +0,0 @@ -# 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 diff --git a/po/boldquot.sed b/po/boldquot.sed deleted file mode 100644 index 4b937aa..0000000 --- a/po/boldquot.sed +++ /dev/null @@ -1,10 +0,0 @@ -s/"\([^"]*\)"/“\1”/g -s/`\([^`']*\)'/‘\1’/g -s/ '\([^`']*\)' / ‘\1’ /g -s/ '\([^`']*\)'$/ ‘\1’/g -s/^'\([^`']*\)' /‘\1’ /g -s/“”/""/g -s/“/“/g -s/”/”/g -s/‘/‘/g -s/’/’/g diff --git a/po/cryptsetup.pot b/po/cryptsetup.pot deleted file mode 100644 index 29494e1..0000000 --- a/po/cryptsetup.pot +++ /dev/null @@ -1,1760 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# This file is put in the public domain. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" -"Content-Transfer-Encoding: 8bit\n" - -#: lib/libdevmapper.c:252 -msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "" - -#: lib/libdevmapper.c:255 -msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" -msgstr "" - -#: lib/libdevmapper.c:550 -#, c-format -msgid "DM-UUID for device %s was truncated.\n" -msgstr "" - -#: lib/libdevmapper.c:698 -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "" - -#: lib/random.c:76 -msgid "" -"System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" -msgstr "" - -#: lib/random.c:80 -#, c-format -msgid "Generating key (%d%% done).\n" -msgstr "" - -#: lib/random.c:169 -msgid "Fatal error during RNG initialisation.\n" -msgstr "" - -#: lib/random.c:206 -msgid "Unknown RNG quality requested.\n" -msgstr "" - -#: lib/random.c:211 -#, c-format -msgid "Error %d reading from RNG: %s\n" -msgstr "" - -#: lib/setup.c:200 -msgid "Cannot initialize crypto RNG backend.\n" -msgstr "" - -#: lib/setup.c:206 -msgid "Cannot initialize crypto backend.\n" -msgstr "" - -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 -#, c-format -msgid "Hash algorithm %s not supported.\n" -msgstr "" - -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 -#, c-format -msgid "Key processing error (using hash %s).\n" -msgstr "" - -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "" - -#: lib/setup.c:320 -msgid "All key slots full.\n" -msgstr "" - -#: lib/setup.c:327 -#, c-format -msgid "Key slot %d is invalid, please select between 0 and %d.\n" -msgstr "" - -#: lib/setup.c:333 -#, c-format -msgid "Key slot %d is full, please select another one.\n" -msgstr "" - -#: lib/setup.c:472 -#, c-format -msgid "Enter passphrase for %s: " -msgstr "" - -#: lib/setup.c:653 -#, c-format -msgid "Header detected but device %s is too small.\n" -msgstr "" - -#: lib/setup.c:669 lib/setup.c:1420 -msgid "This operation is not supported for this device type.\n" -msgstr "" - -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 -#, c-format -msgid "Device %s is not active.\n" -msgstr "" - -#: lib/setup.c:925 -#, c-format -msgid "Underlying device for crypt device %s disappeared.\n" -msgstr "" - -#: lib/setup.c:994 -msgid "Invalid plain crypt parameters.\n" -msgstr "" - -#: lib/setup.c:999 lib/setup.c:1119 -msgid "Invalid key size.\n" -msgstr "" - -#: lib/setup.c:1004 lib/setup.c:1124 -msgid "UUID is not supported for this crypt type.\n" -msgstr "" - -#: lib/setup.c:1046 -msgid "Can't format LUKS without device.\n" -msgstr "" - -#: lib/setup.c:1089 -#, c-format -msgid "Cannot format device %s which is still in use.\n" -msgstr "" - -#: lib/setup.c:1092 -#, c-format -msgid "Cannot format device %s, permission denied.\n" -msgstr "" - -#: lib/setup.c:1096 -#, c-format -msgid "Cannot wipe header on device %s.\n" -msgstr "" - -#: lib/setup.c:1114 -msgid "Can't format LOOPAES without device.\n" -msgstr "" - -#: lib/setup.c:1152 -msgid "Can't format VERITY without device.\n" -msgstr "" - -#: lib/setup.c:1160 lib/verity/verity.c:106 -#, c-format -msgid "Unsupported VERITY hash type %d.\n" -msgstr "" - -#: lib/setup.c:1166 lib/verity/verity.c:114 -msgid "Unsupported VERITY block size.\n" -msgstr "" - -#: lib/setup.c:1171 lib/verity/verity.c:76 -msgid "Unsupported VERITY hash offset.\n" -msgstr "" - -#: lib/setup.c:1285 -#, c-format -msgid "Unknown crypt device type %s requested.\n" -msgstr "" - -#: lib/setup.c:1435 -msgid "Do you really want to change UUID of device?" -msgstr "" - -#: lib/setup.c:1545 -#, c-format -msgid "Volume %s is not active.\n" -msgstr "" - -#: lib/setup.c:1556 -#, c-format -msgid "Volume %s is already suspended.\n" -msgstr "" - -#: lib/setup.c:1563 -#, c-format -msgid "Suspend is not supported for device %s.\n" -msgstr "" - -#: lib/setup.c:1565 -#, c-format -msgid "Error during suspending device %s.\n" -msgstr "" - -#: lib/setup.c:1591 lib/setup.c:1638 -#, c-format -msgid "Volume %s is not suspended.\n" -msgstr "" - -#: lib/setup.c:1605 -#, c-format -msgid "Resume is not supported for device %s.\n" -msgstr "" - -#: lib/setup.c:1607 lib/setup.c:1659 -#, c-format -msgid "Error during resuming device %s.\n" -msgstr "" - -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 -msgid "Enter passphrase: " -msgstr "" - -#: lib/setup.c:1707 lib/setup.c:1843 -msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" - -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 -msgid "Enter any passphrase: " -msgstr "" - -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 -msgid "Enter new passphrase for key slot: " -msgstr "" - -#: lib/setup.c:1798 -#, c-format -msgid "Key slot %d changed.\n" -msgstr "" - -#: lib/setup.c:1801 -#, c-format -msgid "Replaced with key slot %d.\n" -msgstr "" - -#: lib/setup.c:1806 -msgid "Failed to swap new key slot.\n" -msgstr "" - -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 -msgid "Volume key does not match the volume.\n" -msgstr "" - -#: lib/setup.c:1961 -#, c-format -msgid "Key slot %d is invalid.\n" -msgstr "" - -#: lib/setup.c:1966 -#, c-format -msgid "Key slot %d is not used.\n" -msgstr "" - -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 -#, c-format -msgid "Device %s already exists.\n" -msgstr "" - -#: lib/setup.c:2171 -msgid "Incorrect volume key specified for plain device.\n" -msgstr "" - -#: lib/setup.c:2204 -msgid "Incorrect root hash specified for verity device.\n" -msgstr "" - -#: lib/setup.c:2227 -msgid "Device type is not properly initialised.\n" -msgstr "" - -#: lib/setup.c:2259 -#, c-format -msgid "Device %s is still in use.\n" -msgstr "" - -#: lib/setup.c:2268 -#, c-format -msgid "Invalid device %s.\n" -msgstr "" - -#: lib/setup.c:2289 -msgid "Function not available in FIPS mode.\n" -msgstr "" - -#: lib/setup.c:2295 -msgid "Volume key buffer too small.\n" -msgstr "" - -#: lib/setup.c:2303 -msgid "Cannot retrieve volume key for plain device.\n" -msgstr "" - -#: lib/setup.c:2310 -#, c-format -msgid "This operation is not supported for %s crypt device.\n" -msgstr "" - -#: lib/setup.c:2506 -msgid "Dump operation is not supported for this device type.\n" -msgstr "" - -#: lib/utils.c:244 -msgid "Cannot get process priority.\n" -msgstr "" - -#: lib/utils.c:258 -msgid "Cannot unlock memory.\n" -msgstr "" - -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 -msgid "Out of memory while reading passphrase.\n" -msgstr "" - -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 -msgid "Error reading passphrase from terminal.\n" -msgstr "" - -#: lib/utils_crypt.c:259 -msgid "Verify passphrase: " -msgstr "" - -#: lib/utils_crypt.c:266 -msgid "Passphrases do not match.\n" -msgstr "" - -#: lib/utils_crypt.c:350 -msgid "Cannot use offset with terminal input.\n" -msgstr "" - -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 -msgid "Failed to open key file.\n" -msgstr "" - -#: lib/utils_crypt.c:378 -msgid "Failed to stat key file.\n" -msgstr "" - -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 -msgid "Cannot seek to requested keyfile offset.\n" -msgstr "" - -#: lib/utils_crypt.c:424 -msgid "Error reading passphrase.\n" -msgstr "" - -#: lib/utils_crypt.c:442 -msgid "Maximum keyfile size exceeded.\n" -msgstr "" - -#: lib/utils_crypt.c:447 -msgid "Cannot read requested amount of data.\n" -msgstr "" - -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 -#, c-format -msgid "Device %s doesn't exist or access denied.\n" -msgstr "" - -#: lib/utils_device.c:430 -msgid "Cannot use a loopback device, running as non-root user.\n" -msgstr "" - -#: lib/utils_device.c:433 -msgid "Cannot find a free loopback device.\n" -msgstr "" - -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" - -#: lib/utils_device.c:484 -#, c-format -msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" - -#: lib/utils_device.c:488 -#, c-format -msgid "Cannot get info about device %s.\n" -msgstr "" - -#: lib/utils_device.c:494 -#, c-format -msgid "Requested offset is beyond real size of device %s.\n" -msgstr "" - -#: lib/utils_device.c:502 -#, c-format -msgid "Device %s has zero size.\n" -msgstr "" - -#: lib/utils_device.c:513 -#, c-format -msgid "Device %s is too small.\n" -msgstr "" - -#: lib/luks1/keyencryption.c:37 -#, c-format -msgid "" -"Failed to setup dm-crypt key mapping for device %s.\n" -"Check that kernel supports %s cipher (check syslog for more info).\n" -msgstr "" - -#: lib/luks1/keyencryption.c:42 -msgid "Key size in XTS mode must be 256 or 512 bits.\n" -msgstr "" - -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 -#, c-format -msgid "Cannot write to device %s, permission denied.\n" -msgstr "" - -#: lib/luks1/keyencryption.c:111 -msgid "Failed to open temporary keystore device.\n" -msgstr "" - -#: lib/luks1/keyencryption.c:118 -msgid "Failed to access temporary keystore device.\n" -msgstr "" - -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "" - -#: lib/luks1/keymanage.c:90 -#, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "" - -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 -#, c-format -msgid "Device %s is not a valid LUKS device.\n" -msgstr "" - -#: lib/luks1/keymanage.c:198 -#, c-format -msgid "Requested header backup file %s already exists.\n" -msgstr "" - -#: lib/luks1/keymanage.c:200 -#, c-format -msgid "Cannot create header backup file %s.\n" -msgstr "" - -#: lib/luks1/keymanage.c:205 -#, c-format -msgid "Cannot write header backup file %s.\n" -msgstr "" - -#: lib/luks1/keymanage.c:239 -msgid "Backup file doesn't contain valid LUKS header.\n" -msgstr "" - -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 -#, c-format -msgid "Cannot open header backup file %s.\n" -msgstr "" - -#: lib/luks1/keymanage.c:258 -#, c-format -msgid "Cannot read header backup file %s.\n" -msgstr "" - -#: lib/luks1/keymanage.c:269 -msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" - -#: lib/luks1/keymanage.c:277 -#, c-format -msgid "Device %s %s%s" -msgstr "" - -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" - -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" - -#: lib/luks1/keymanage.c:280 -msgid "" -"\n" -"WARNING: real device header has different UUID than backup!" -msgstr "" - -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 -#: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 -#: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 -#, c-format -msgid "Cannot open device %s.\n" -msgstr "" - -#: lib/luks1/keymanage.c:329 -msgid "Non standard key size, manual repair required.\n" -msgstr "" - -#: lib/luks1/keymanage.c:334 -msgid "Non standard keyslots alignment, manual repair required.\n" -msgstr "" - -#: lib/luks1/keymanage.c:340 -msgid "Repairing keyslots.\n" -msgstr "" - -#: lib/luks1/keymanage.c:351 -msgid "Repair failed." -msgstr "" - -#: lib/luks1/keymanage.c:363 -#, c-format -msgid "Keyslot %i: offset repaired (%u -> %u).\n" -msgstr "" - -#: lib/luks1/keymanage.c:371 -#, c-format -msgid "Keyslot %i: stripes repaired (%u -> %u).\n" -msgstr "" - -#: lib/luks1/keymanage.c:380 -#, c-format -msgid "Keyslot %i: bogus partition signature.\n" -msgstr "" - -#: lib/luks1/keymanage.c:385 -#, c-format -msgid "Keyslot %i: salt wiped.\n" -msgstr "" - -#: lib/luks1/keymanage.c:396 -msgid "Writing LUKS header to disk.\n" -msgstr "" - -#: lib/luks1/keymanage.c:421 -#, c-format -msgid "Unsupported LUKS version %d.\n" -msgstr "" - -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 -#, c-format -msgid "Requested LUKS hash %s is not supported.\n" -msgstr "" - -#: lib/luks1/keymanage.c:442 -#, c-format -msgid "LUKS keyslot %u is invalid.\n" -msgstr "" - -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 -msgid "No known problems detected for LUKS header.\n" -msgstr "" - -#: lib/luks1/keymanage.c:596 -#, c-format -msgid "Error during update of LUKS header on device %s.\n" -msgstr "" - -#: lib/luks1/keymanage.c:603 -#, c-format -msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" - -#: lib/luks1/keymanage.c:654 -#, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" - -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 -msgid "Wrong LUKS UUID format provided.\n" -msgstr "" - -#: lib/luks1/keymanage.c:695 -msgid "Cannot create LUKS header: reading random salt failed.\n" -msgstr "" - -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 -#, c-format -msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" -msgstr "" - -#: lib/luks1/keymanage.c:717 -#, c-format -msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" - -#: lib/luks1/keymanage.c:782 -#, c-format -msgid "Key slot %d active, purge first.\n" -msgstr "" - -#: lib/luks1/keymanage.c:788 -#, c-format -msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" - -#: lib/luks1/keymanage.c:950 -#, c-format -msgid "Key slot %d unlocked.\n" -msgstr "" - -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 -msgid "No key available with this passphrase.\n" -msgstr "" - -#: lib/luks1/keymanage.c:1003 -#, c-format -msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" -msgstr "" - -#: lib/luks1/keymanage.c:1021 -#, c-format -msgid "Cannot wipe device %s.\n" -msgstr "" - -#: lib/loopaes/loopaes.c:146 -msgid "Detected not yet supported GPG encrypted keyfile.\n" -msgstr "" - -#: lib/loopaes/loopaes.c:147 -msgid "Please use gpg --decrypt | cryptsetup --keyfile=- ...\n" -msgstr "" - -#: lib/loopaes/loopaes.c:168 lib/loopaes/loopaes.c:188 -msgid "Incompatible loop-AES keyfile detected.\n" -msgstr "" - -#: lib/loopaes/loopaes.c:244 -msgid "Kernel doesn't support loop-AES compatible mapping.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:475 -#, c-format -msgid "Error reading keyfile %s.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:513 -#, c-format -msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:543 -#, c-format -msgid "PBKDF2 hash algorithm %s not available, skipping.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 -msgid "Required kernel crypto interface not available.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 -msgid "Ensure you have algif_skcipher kernel module loaded.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:707 -#, c-format -msgid "Activation is not supported for %d sector size.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:713 -msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:744 -#, c-format -msgid "Activating TCRYPT system encryption for partition %s.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:1020 -msgid "This function is not supported without TCRYPT header load." -msgstr "" - -#: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "" - -#: lib/verity/verity.c:94 -#, c-format -msgid "Device %s is not a valid VERITY device.\n" -msgstr "" - -#: lib/verity/verity.c:101 -#, c-format -msgid "Unsupported VERITY version %d.\n" -msgstr "" - -#: lib/verity/verity.c:131 -msgid "VERITY header corrupted.\n" -msgstr "" - -#: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "" - -#: lib/verity/verity.c:196 -#, c-format -msgid "Error during update of verity header on device %s.\n" -msgstr "" - -#: lib/verity/verity.c:276 -msgid "Kernel doesn't support dm-verity mapping.\n" -msgstr "" - -#: lib/verity/verity.c:287 -msgid "Verity device detected corruption after activation.\n" -msgstr "" - -#: lib/verity/verity_hash.c:59 -#, c-format -msgid "Spare area is not zeroed at position %.\n" -msgstr "" - -#: lib/verity/verity_hash.c:121 lib/verity/verity_hash.c:249 -#: lib/verity/verity_hash.c:277 lib/verity/verity_hash.c:284 -msgid "Device offset overflow.\n" -msgstr "" - -#: lib/verity/verity_hash.c:161 -#, c-format -msgid "Verification failed at position %.\n" -msgstr "" - -#: lib/verity/verity_hash.c:235 -msgid "Invalid size parameters for verity device.\n" -msgstr "" - -#: lib/verity/verity_hash.c:266 -msgid "Too many tree levels for verity volume.\n" -msgstr "" - -#: lib/verity/verity_hash.c:354 -msgid "Verification of data area failed.\n" -msgstr "" - -#: lib/verity/verity_hash.c:359 -msgid "Verification of root hash failed.\n" -msgstr "" - -#: lib/verity/verity_hash.c:365 -msgid "Input/output error while creating hash area.\n" -msgstr "" - -#: lib/verity/verity_hash.c:367 -msgid "Creation of hash area failed.\n" -msgstr "" - -#: lib/verity/verity_hash.c:414 -#, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" - -#: src/cryptsetup.c:91 -msgid "Can't do passphrase verification on non-tty inputs.\n" -msgstr "" - -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 -msgid "No known cipher specification pattern detected.\n" -msgstr "" - -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" - -#: src/cryptsetup.c:218 -msgid "Option --key-file is required.\n" -msgstr "" - -#: src/cryptsetup.c:267 -msgid "No device header detected with this passphrase.\n" -msgstr "" - -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 -msgid "" -"Header dump with volume key is sensitive information\n" -"which allows access to encrypted partition without passphrase.\n" -"This dump should be always stored encrypted on safe place." -msgstr "" - -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "" - -#: src/cryptsetup.c:558 -msgid "# Tests are approximate using memory only (no storage IO).\n" -msgstr "" - -#: src/cryptsetup.c:583 src/cryptsetup.c:605 -msgid "# Algorithm | Key | Encryption | Decryption\n" -msgstr "" - -#: src/cryptsetup.c:587 -#, c-format -msgid "Cipher %s is not available.\n" -msgstr "" - -#: src/cryptsetup.c:614 -msgid "N/A" -msgstr "" - -#: src/cryptsetup.c:639 -#, c-format -msgid "Cannot read keyfile %s.\n" -msgstr "" - -#: src/cryptsetup.c:643 -#, c-format -msgid "Cannot read %d bytes from keyfile %s.\n" -msgstr "" - -#: src/cryptsetup.c:672 -msgid "Really try to repair LUKS device header?" -msgstr "" - -#: src/cryptsetup.c:697 -#, c-format -msgid "This will overwrite data on %s irrevocably." -msgstr "" - -#: src/cryptsetup.c:699 -msgid "memory allocation error in action_luksFormat" -msgstr "" - -#: src/cryptsetup.c:717 -#, c-format -msgid "Cannot use %s as on-disk header.\n" -msgstr "" - -#: src/cryptsetup.c:784 -msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" - -#: src/cryptsetup.c:881 src/cryptsetup.c:937 -#, c-format -msgid "Key slot %d selected for deletion.\n" -msgstr "" - -#: src/cryptsetup.c:884 -#, c-format -msgid "Key %d not active. Can't wipe.\n" -msgstr "" - -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" - -#: src/cryptsetup.c:893 -msgid "Enter any remaining passphrase: " -msgstr "" - -#: src/cryptsetup.c:921 -msgid "Enter passphrase to be deleted: " -msgstr "" - -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format -msgid "Enter any existing passphrase: " -msgstr "" - -#: src/cryptsetup.c:1052 -msgid "Enter passphrase to be changed: " -msgstr "" - -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 -msgid "Enter new passphrase: " -msgstr "" - -#: src/cryptsetup.c:1090 -msgid "Only one device argument for isLuks operation is supported.\n" -msgstr "" - -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 -msgid "Option --header-backup-file is required.\n" -msgstr "" - -#: src/cryptsetup.c:1304 -#, c-format -msgid "Unrecognized metadata device type %s.\n" -msgstr "" - -#: src/cryptsetup.c:1307 -msgid "Command requires device and mapped name as arguments.\n" -msgstr "" - -#: src/cryptsetup.c:1326 -#, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" - -#: src/cryptsetup.c:1360 -msgid " [--type ] []" -msgstr "" - -#: src/cryptsetup.c:1360 -msgid "open device as mapping " -msgstr "" - -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 -msgid "" -msgstr "" - -#: src/cryptsetup.c:1361 -msgid "close device (remove mapping)" -msgstr "" - -#: src/cryptsetup.c:1362 -msgid "resize active device" -msgstr "" - -#: src/cryptsetup.c:1363 -msgid "show device status" -msgstr "" - -#: src/cryptsetup.c:1364 -msgid "benchmark cipher" -msgstr "" - -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 -msgid "" -msgstr "" - -#: src/cryptsetup.c:1365 -msgid "try to repair on-disk metadata" -msgstr "" - -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 -msgid " []" -msgstr "" - -#: src/cryptsetup.c:1367 -msgid "formats a LUKS device" -msgstr "" - -#: src/cryptsetup.c:1368 -msgid "add key to LUKS device" -msgstr "" - -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 -msgid " []" -msgstr "" - -#: src/cryptsetup.c:1369 -msgid "removes supplied key or key file from LUKS device" -msgstr "" - -#: src/cryptsetup.c:1370 -msgid "changes supplied key or key file of LUKS device" -msgstr "" - -#: src/cryptsetup.c:1371 -msgid " " -msgstr "" - -#: src/cryptsetup.c:1371 -msgid "wipes key with number from LUKS device" -msgstr "" - -#: src/cryptsetup.c:1372 -msgid "print UUID of LUKS device" -msgstr "" - -#: src/cryptsetup.c:1373 -msgid "tests for LUKS partition header" -msgstr "" - -#: src/cryptsetup.c:1374 -msgid "dump LUKS partition information" -msgstr "" - -#: src/cryptsetup.c:1375 -msgid "dump TCRYPT device information" -msgstr "" - -#: src/cryptsetup.c:1376 -msgid "Suspend LUKS device and wipe key (all IOs are frozen)." -msgstr "" - -#: src/cryptsetup.c:1377 -msgid "Resume suspended LUKS device." -msgstr "" - -#: src/cryptsetup.c:1378 -msgid "Backup LUKS device header and keyslots" -msgstr "" - -#: src/cryptsetup.c:1379 -msgid "Restore LUKS device header and keyslots" -msgstr "" - -#: src/cryptsetup.c:1396 src/veritysetup.c:328 -msgid "" -"\n" -" is one of:\n" -msgstr "" - -#: src/cryptsetup.c:1402 -msgid "" -"\n" -"You can also use old syntax aliases:\n" -"\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" -"\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" -msgstr "" - -#: src/cryptsetup.c:1406 -#, c-format -msgid "" -"\n" -" is the device to create under %s\n" -" is the encrypted device\n" -" is the LUKS key slot number to modify\n" -" optional key file for the new key for luksAddKey action\n" -msgstr "" - -#: src/cryptsetup.c:1413 -#, c-format -msgid "" -"\n" -"Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" -"Default PBKDF2 iteration time for LUKS: %d (ms)\n" -msgstr "" - -#: src/cryptsetup.c:1420 -#, c-format -msgid "" -"\n" -"Default compiled-in device cipher parameters:\n" -"\tloop-AES: %s, Key %d bits\n" -"\tplain: %s, Key: %d bits, Password hashing: %s\n" -"\tLUKS1: %s, Key: %d bits, LUKS header hashing: %s, RNG: %s\n" -msgstr "" - -#: src/cryptsetup.c:1437 src/veritysetup.c:460 -#, c-format -msgid "%s: requires %s as arguments" -msgstr "" - -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 -msgid "Show this help message" -msgstr "" - -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 -msgid "Display brief usage" -msgstr "" - -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 -msgid "Help options:" -msgstr "" - -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 -msgid "Print package version" -msgstr "" - -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 -msgid "Shows more detailed error messages" -msgstr "" - -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 -msgid "Show debug messages" -msgstr "" - -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 -msgid "The cipher used to encrypt the disk (see /proc/crypto)" -msgstr "" - -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 -msgid "The hash used to create the encryption key from the passphrase" -msgstr "" - -#: src/cryptsetup.c:1481 -msgid "Verifies the passphrase by asking for it twice" -msgstr "" - -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 -msgid "Read the key from a file." -msgstr "" - -#: src/cryptsetup.c:1483 -msgid "Read the volume (master) key from file." -msgstr "" - -#: src/cryptsetup.c:1484 -msgid "Dump volume (master) key instead of keyslots info." -msgstr "" - -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 -msgid "The size of the encryption key" -msgstr "" - -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 -msgid "BITS" -msgstr "" - -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 -msgid "Limits the read from keyfile" -msgstr "" - -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 -msgid "bytes" -msgstr "" - -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 -msgid "Number of bytes to skip in keyfile" -msgstr "" - -#: src/cryptsetup.c:1488 -msgid "Limits the read from newly added keyfile" -msgstr "" - -#: src/cryptsetup.c:1489 -msgid "Number of bytes to skip in newly added keyfile" -msgstr "" - -#: src/cryptsetup.c:1490 -msgid "Slot number for new key (default is first free)" -msgstr "" - -#: src/cryptsetup.c:1491 -msgid "The size of the device" -msgstr "" - -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 -msgid "SECTORS" -msgstr "" - -#: src/cryptsetup.c:1492 -msgid "The start offset in the backend device" -msgstr "" - -#: src/cryptsetup.c:1493 -msgid "How many sectors of the encrypted data to skip at the beginning" -msgstr "" - -#: src/cryptsetup.c:1494 -msgid "Create a readonly mapping" -msgstr "" - -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 -msgid "PBKDF2 iteration time for LUKS (in ms)" -msgstr "" - -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 -msgid "msecs" -msgstr "" - -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 -msgid "Do not ask for confirmation" -msgstr "" - -#: src/cryptsetup.c:1497 -msgid "Timeout for interactive passphrase prompt (in seconds)" -msgstr "" - -#: src/cryptsetup.c:1497 -msgid "secs" -msgstr "" - -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 -msgid "How often the input of the passphrase can be retried" -msgstr "" - -#: src/cryptsetup.c:1499 -msgid "Align payload at sector boundaries - for luksFormat" -msgstr "" - -#: src/cryptsetup.c:1500 -msgid "File with LUKS header and keyslots backup." -msgstr "" - -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 -msgid "Use /dev/random for generating volume key." -msgstr "" - -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 -msgid "Use /dev/urandom for generating volume key." -msgstr "" - -#: src/cryptsetup.c:1503 -msgid "Share device with another non-overlapping crypt segment." -msgstr "" - -#: src/cryptsetup.c:1504 src/veritysetup.c:385 -msgid "UUID for device to use." -msgstr "" - -#: src/cryptsetup.c:1505 -msgid "Allow discards (aka TRIM) requests for device." -msgstr "" - -#: src/cryptsetup.c:1506 -msgid "Device or file with separated LUKS header." -msgstr "" - -#: src/cryptsetup.c:1507 -msgid "Do not activate device, just check passphrase." -msgstr "" - -#: src/cryptsetup.c:1508 -msgid "Use hidden header (hidden TCRYPT device)." -msgstr "" - -#: src/cryptsetup.c:1509 -msgid "Device is system TCRYPT drive (with bootloader)." -msgstr "" - -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "" - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "" - -#: src/cryptsetup.c:1512 -msgid "Type of device metadata: luks, plain, loopaes, tcrypt." -msgstr "" - -#: src/cryptsetup.c:1513 -msgid "Disable password quality check (if enabled)." -msgstr "" - -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "" - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 -msgid "[OPTION...] " -msgstr "" - -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 -msgid "Argument missing." -msgstr "" - -#: src/cryptsetup.c:1634 src/veritysetup.c:445 -msgid "Unknown action." -msgstr "" - -#: src/cryptsetup.c:1644 -msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "" - -#: src/cryptsetup.c:1649 -msgid "Option --allow-discards is allowed only for open operation.\n" -msgstr "" - -#: src/cryptsetup.c:1657 -msgid "" -"Option --key-size is allowed only for luksFormat, open and benchmark.\n" -"To limit read from keyfile use --keyfile-size=(bytes)." -msgstr "" - -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" - -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 -msgid "Key size must be a multiple of 8 bits" -msgstr "" - -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 -msgid "Key slot is invalid." -msgstr "" - -#: src/cryptsetup.c:1683 -msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" - -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 -msgid "Negative number for option not permitted." -msgstr "" - -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 -msgid "Only one of --use-[u]random options is allowed." -msgstr "" - -#: src/cryptsetup.c:1699 -msgid "Option --use-[u]random is allowed only for luksFormat." -msgstr "" - -#: src/cryptsetup.c:1703 -msgid "Option --uuid is allowed only for luksFormat and luksUUID." -msgstr "" - -#: src/cryptsetup.c:1707 -msgid "Option --align-payload is allowed only for luksFormat." -msgstr "" - -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" - -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" - -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" - -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "" - -#: src/cryptsetup.c:1735 -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "" - -#: src/veritysetup.c:58 -msgid "Invalid salt string specified.\n" -msgstr "" - -#: src/veritysetup.c:88 -#, c-format -msgid "Cannot create hash image %s for writing.\n" -msgstr "" - -#: src/veritysetup.c:148 -msgid "Invalid root hash string specified.\n" -msgstr "" - -#: src/veritysetup.c:308 -msgid " " -msgstr "" - -#: src/veritysetup.c:308 -msgid "format device" -msgstr "" - -#: src/veritysetup.c:309 -msgid " " -msgstr "" - -#: src/veritysetup.c:309 -msgid "verify device" -msgstr "" - -#: src/veritysetup.c:310 -msgid " " -msgstr "" - -#: src/veritysetup.c:310 -msgid "create active device" -msgstr "" - -#: src/veritysetup.c:311 -msgid "remove (deactivate) device" -msgstr "" - -#: src/veritysetup.c:312 -msgid "show active device status" -msgstr "" - -#: src/veritysetup.c:313 -msgid "" -msgstr "" - -#: src/veritysetup.c:313 -msgid "show on-disk information" -msgstr "" - -#: src/veritysetup.c:332 -#, c-format -msgid "" -"\n" -" is the device to create under %s\n" -" is the data device\n" -" is the device containing verification data\n" -" hash of the root node on \n" -msgstr "" - -#: src/veritysetup.c:339 -#, c-format -msgid "" -"\n" -"Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" -msgstr "" - -#: src/veritysetup.c:377 -msgid "Do not use verity superblock" -msgstr "" - -#: src/veritysetup.c:378 -msgid "Format type (1 - normal, 0 - original Chrome OS)" -msgstr "" - -#: src/veritysetup.c:378 -msgid "number" -msgstr "" - -#: src/veritysetup.c:379 -msgid "Block size on the data device" -msgstr "" - -#: src/veritysetup.c:380 -msgid "Block size on the hash device" -msgstr "" - -#: src/veritysetup.c:381 -msgid "The number of blocks in the data file" -msgstr "" - -#: src/veritysetup.c:381 -msgid "blocks" -msgstr "" - -#: src/veritysetup.c:382 -msgid "Starting offset on the hash device" -msgstr "" - -#: src/veritysetup.c:383 -msgid "Hash algorithm" -msgstr "" - -#: src/veritysetup.c:383 -msgid "string" -msgstr "" - -#: src/veritysetup.c:384 -msgid "Salt" -msgstr "" - -#: src/veritysetup.c:384 -msgid "hex string" -msgstr "" - -#: src/cryptsetup_reencrypt.c:147 -#, c-format -msgid "Cannot exclusively open %s, device in use.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:151 -#, c-format -msgid "Cannot open device %s\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 -msgid "Allocation of aligned memory failed.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:168 -#, c-format -msgid "Cannot read device %s.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:179 -#, c-format -msgid "Marking LUKS device %s unusable.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:184 -#, c-format -msgid "Marking LUKS device %s usable.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:200 -#, c-format -msgid "Cannot write device %s.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:281 -msgid "Cannot write reencryption log file.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:337 -msgid "Cannot read reencryption log file.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:374 -#, c-format -msgid "Log file %s exists, resuming reencryption.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:403 -msgid "Activating temporary device using old LUKS header.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:414 -msgid "Activating temporary device using new LUKS header.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:424 -msgid "Activation of temporary devices failed.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:450 -#, c-format -msgid "New LUKS header for device %s created.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:458 -#, c-format -msgid "Activated keyslot %i.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:484 -#, c-format -msgid "LUKS header backup of device %s created.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:532 -msgid "Creation of LUKS backup headers failed.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:634 -#, c-format -msgid "Cannot restore LUKS header on device %s.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:636 -#, c-format -msgid "LUKS header on device %s restored.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:669 -#, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" - -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 -msgid "Cannot seek to device offset.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 -msgid "Cannot open temporary LUKS header file.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 -msgid "Cannot get device size.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:919 -msgid "Interrupted by a signal.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:921 -msgid "IO error during reencryption.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 -#, c-format -msgid "Enter passphrase for key slot %u: " -msgstr "" - -#: src/cryptsetup_reencrypt.c:1136 -msgid "Cannot open reencryption log file.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1262 -msgid "Reencryption block size" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1262 -msgid "MiB" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1274 -msgid "Use fsync after each block." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1275 -msgid "Update log file after every block." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1276 -msgid "Use only this slot (others will be disabled)." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1279 -msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1280 -msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1281 -msgid "Create new header on not encrypted device." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1298 -msgid "[OPTION...] " -msgstr "" - -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1313 -#, c-format -msgid "Reencryption will change: volume key%s%s%s%s.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1314 -msgid ", set hash to " -msgstr "" - -#: src/cryptsetup_reencrypt.c:1315 -msgid ", set cipher to " -msgstr "" - -#: src/cryptsetup_reencrypt.c:1320 -msgid "Argument required." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 -msgid "Invalid device size specification." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1363 -msgid "Maximum device reduce size is 64 MiB." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1366 -msgid "Reduce size must be multiple of 512 bytes sector." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1370 -msgid "Option --new must be used together with --reduce-device-size." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "" - -#: src/utils_tools.c:151 -msgid "Error reading response from terminal.\n" -msgstr "" - -#: src/utils_tools.c:173 -msgid "Command successful.\n" -msgstr "" - -#: src/utils_tools.c:191 -#, c-format -msgid "Command failed with code %i" -msgstr "" - -#: src/utils_password.c:42 -#, c-format -msgid "Cannot check password quality: %s\n" -msgstr "" - -#: src/utils_password.c:50 -#, c-format -msgid "" -"Password quality check failed:\n" -" %s\n" -msgstr "" diff --git a/po/cs.gmo b/po/cs.gmo deleted file mode 100644 index 6504e45..0000000 Binary files a/po/cs.gmo and /dev/null differ diff --git a/po/cs.po b/po/cs.po index 81f6552..1f6cde6 100644 --- a/po/cs.po +++ b/po/cs.po @@ -2,7 +2,7 @@ # Copyright (C) 2010 Free Software Foundation, Inc. # This file is distributed under the same license as the cryptsetup package. # Milan Broz , 2010. -# Petr Pisar , 2010, 2011, 2012, 2013, 2014, 2015. +# Petr Pisar , 2010, 2011, 2012, 2013. # # See `LUKS On-Disk Format Specification' document to clarify some terms. # @@ -13,10 +13,10 @@ # msgid "" msgstr "" -"Project-Id-Version: cryptsetup 1.6.7\n" +"Project-Id-Version: cryptsetup 1.6.2\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: 2015-03-19 19:00+0100\n" +"POT-Creation-Date: 2013-07-27 19:53+0200\n" +"PO-Revision-Date: 2013-07-28 21:42+0200\n" "Last-Translator: Petr Pisar \n" "Language-Team: Czech \n" "Language: cs\n" @@ -25,28 +25,23 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" -#: lib/libdevmapper.c:252 +#: lib/libdevmapper.c:245 msgid "Cannot initialize device-mapper, running as non-root user.\n" msgstr "Nelze inicializovat device-mapper, nespuštěno superuživatelem.\n" -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:248 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" msgstr "Nelze inicializovat device-mapper. Je jaderný modul dm_mod zaveden?\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:536 #, c-format msgid "DM-UUID for device %s was truncated.\n" msgstr "DM-UUID pro zařízení %s bylo zkráceno.\n" -#: lib/libdevmapper.c:698 -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Požadované výkonnostní volby dmcryptu nejsou podporovány.\n" - #: lib/random.c:76 msgid "" "System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" +"Please move mouse or type some text in another window to gather some random events.\n" msgstr "" "Během vytváření klíče svazku došla systému entropie.\n" "Aby bylo možné nasbírat náhodné události, žádáme uživatele, aby pohyboval\n" @@ -70,260 +65,258 @@ msgstr "Požadována neznámá kvalita generátoru náhodných čísel.\n" msgid "Error %d reading from RNG: %s\n" msgstr "Chyba %d při čtení z generátoru náhodných čísel: %s\n" -#: lib/setup.c:200 +#: lib/setup.c:190 msgid "Cannot initialize crypto RNG backend.\n" -msgstr "" -"Implementaci šifrovacího generátoru náhodných čísel nelze inicializovat.\n" +msgstr "Implementaci šifrovacího generátoru náhodných čísel nelze inicializovat.\n" -#: lib/setup.c:206 +#: lib/setup.c:196 msgid "Cannot initialize crypto backend.\n" msgstr "Implementaci šifrování nelze inicializovat.\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 +#: lib/setup.c:219 lib/setup.c:1110 lib/verity/verity.c:123 #, c-format msgid "Hash algorithm %s not supported.\n" msgstr "Hašovací algoritmus %s není podporován.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 +#: lib/setup.c:222 lib/loopaes/loopaes.c:90 #, c-format msgid "Key processing error (using hash %s).\n" msgstr "Chyba zpracování klíče (za použití haše %s).\n" -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "Druh zařízení nelze určit. Nekompatibilní aktivace zařízení?\n" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Tato operace je podporována jen u zařízení LUKS.\n" - -#: lib/setup.c:320 +#: lib/setup.c:268 msgid "All key slots full.\n" msgstr "Všechny pozice klíčů jsou obsazeny.\n" -#: lib/setup.c:327 +#: lib/setup.c:275 #, c-format msgid "Key slot %d is invalid, please select between 0 and %d.\n" msgstr "Pozice klíče %d není platná, prosím, vyberte číslo mezi 0 a %d.\n" -#: lib/setup.c:333 +#: lib/setup.c:281 #, c-format msgid "Key slot %d is full, please select another one.\n" msgstr "Pozice klíče %d je obsazena, prosím, vyberte jinou.\n" -#: lib/setup.c:472 +#: lib/setup.c:390 #, c-format msgid "Enter passphrase for %s: " msgstr "Zadejte heslo pro %s: " -#: lib/setup.c:653 +#: lib/setup.c:571 #, c-format msgid "Header detected but device %s is too small.\n" msgstr "Nalezena hlavička, ale zařízení %s je příliš malé.\n" -#: lib/setup.c:669 lib/setup.c:1420 +#: lib/setup.c:587 lib/setup.c:1337 msgid "This operation is not supported for this device type.\n" msgstr "Tato operace není na zařízení tohoto typu podporována.\n" -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:825 lib/setup.c:1298 lib/setup.c:2173 #, c-format msgid "Device %s is not active.\n" msgstr "Zařízení %s není aktivní.\n" -#: lib/setup.c:925 +#: lib/setup.c:842 #, c-format msgid "Underlying device for crypt device %s disappeared.\n" msgstr "Zařízení nižší úrovně pod šifrovaným zařízením %s zmizelo.\n" -#: lib/setup.c:994 +#: lib/setup.c:907 msgid "Invalid plain crypt parameters.\n" msgstr "Neplatné parametry plain šifry.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:912 lib/setup.c:1037 msgid "Invalid key size.\n" msgstr "Neplatná velikost klíče.\n" -#: lib/setup.c:1004 lib/setup.c:1124 +#: lib/setup.c:917 lib/setup.c:1042 msgid "UUID is not supported for this crypt type.\n" msgstr "UUID není na šifře tohoto typu podporováno.\n" -#: lib/setup.c:1046 +#: lib/setup.c:959 msgid "Can't format LUKS without device.\n" msgstr "LUKS nelze bez zařízení naformátovat.\n" -#: lib/setup.c:1089 +#: lib/setup.c:1007 #, c-format msgid "Cannot format device %s which is still in use.\n" msgstr "Zařízení %s, které se stále používá, nelze formátovat.\n" -#: lib/setup.c:1092 +#: lib/setup.c:1010 #, c-format msgid "Cannot format device %s, permission denied.\n" msgstr "Zařízení %s nelze formátovat, povolení zamítnuto.\n" -#: lib/setup.c:1096 +#: lib/setup.c:1014 #, c-format msgid "Cannot wipe header on device %s.\n" msgstr "Ze zařízení %s nelze odstranit hlavičku.\n" -#: lib/setup.c:1114 +#: lib/setup.c:1032 msgid "Can't format LOOPAES without device.\n" msgstr "LOOPAES nelze bez zařízení naformátovat.\n" -#: lib/setup.c:1152 +#: lib/setup.c:1070 msgid "Can't format VERITY without device.\n" msgstr "VERITY nelze bez zařízení naformátovat.\n" -#: lib/setup.c:1160 lib/verity/verity.c:106 +#: lib/setup.c:1078 lib/verity/verity.c:106 #, c-format msgid "Unsupported VERITY hash type %d.\n" msgstr "Nepodporovaný druh VERITY haše %d.\n" -#: lib/setup.c:1166 lib/verity/verity.c:114 +#: lib/setup.c:1084 lib/verity/verity.c:114 msgid "Unsupported VERITY block size.\n" msgstr "Nepodporovaná velikost bloku VERITY.\n" -#: lib/setup.c:1171 lib/verity/verity.c:76 +#: lib/setup.c:1089 lib/verity/verity.c:76 msgid "Unsupported VERITY hash offset.\n" msgstr "Nepodporovaná poloha haše VERITY.\n" -#: lib/setup.c:1285 +#: lib/setup.c:1201 #, c-format msgid "Unknown crypt device type %s requested.\n" msgstr "Požadován neznámý typ šifrovaného zařízení %s.\n" -#: lib/setup.c:1435 +#: lib/setup.c:1352 msgid "Do you really want to change UUID of device?" msgstr "Opravdu chcete změnit UUID zařízení?" -#: lib/setup.c:1545 +#: lib/setup.c:1440 lib/setup.c:1485 lib/setup.c:1534 lib/setup.c:1600 +#: lib/setup.c:1673 lib/setup.c:1737 lib/setup.c:1818 lib/setup.c:1864 +#: lib/setup.c:2238 lib/setup.c:2532 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Tato operace je podporována jen u zařízení LUKS.\n" + +#: lib/setup.c:1447 #, c-format msgid "Volume %s is not active.\n" msgstr "Svazek %s není aktivní.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1458 #, c-format msgid "Volume %s is already suspended.\n" msgstr "Svazek %s je již uspán.\n" -#: lib/setup.c:1563 +#: lib/setup.c:1465 #, c-format msgid "Suspend is not supported for device %s.\n" msgstr "Uspání není na zařízení %s podporováno.\n" -#: lib/setup.c:1565 +#: lib/setup.c:1467 #, c-format msgid "Error during suspending device %s.\n" msgstr "Chyba při uspávání zařízení %s.\n" -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1495 lib/setup.c:1544 #, c-format msgid "Volume %s is not suspended.\n" msgstr "Svazek %s není uspán.\n" -#: lib/setup.c:1605 +#: lib/setup.c:1509 #, c-format msgid "Resume is not supported for device %s.\n" msgstr "Probuzení není na zařízení %s podporováno.\n" -#: lib/setup.c:1607 lib/setup.c:1659 +#: lib/setup.c:1511 lib/setup.c:1565 #, c-format msgid "Error during resuming device %s.\n" msgstr "Chyba při probouzení zařízení %s.\n" -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 +#: lib/setup.c:1551 lib/setup.c:1989 lib/setup.c:2003 src/cryptsetup.c:151 +#: src/cryptsetup.c:229 src/cryptsetup.c:316 src/cryptsetup.c:660 +#: src/cryptsetup.c:1076 msgid "Enter passphrase: " msgstr "Zadejte heslo: " -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1614 lib/setup.c:1751 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" msgstr "" "Nelze přidat pozici klíče, všechny pozice jsou zakázány a klíč svazku\n" "nebyl poskytnut.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1623 lib/setup.c:1757 lib/setup.c:1761 msgid "Enter any passphrase: " msgstr "Zadejte jakékoliv heslo: " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1640 lib/setup.c:1774 lib/setup.c:1778 lib/setup.c:1841 +#: src/cryptsetup.c:942 msgid "Enter new passphrase for key slot: " msgstr "Zadejte nové heslo pro pozici klíče: " -#: lib/setup.c:1798 +#: lib/setup.c:1705 #, c-format msgid "Key slot %d changed.\n" msgstr "Pozice klíče %d změněna.\n" -#: lib/setup.c:1801 +#: lib/setup.c:1708 #, c-format msgid "Replaced with key slot %d.\n" msgstr "Nahrazeno pozicí klíče %d.\n" -#: lib/setup.c:1806 +#: lib/setup.c:1713 msgid "Failed to swap new key slot.\n" msgstr "Záměna novou pozicí klíče se nezdařila.\n" -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1832 lib/setup.c:2093 lib/setup.c:2106 lib/setup.c:2249 msgid "Volume key does not match the volume.\n" msgstr "Heslo svazku neodpovídá svazku.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1870 #, c-format msgid "Key slot %d is invalid.\n" msgstr "Pozice klíče %d je neplatná.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1875 #, c-format msgid "Key slot %d is not used.\n" msgstr "Pozice klíče %d není použita.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1905 lib/setup.c:1977 lib/setup.c:2069 #, c-format msgid "Device %s already exists.\n" msgstr "Zařízení %s již existuje.\n" -#: lib/setup.c:2171 +#: lib/setup.c:2080 msgid "Incorrect volume key specified for plain device.\n" msgstr "Byl zadán neplatný klíč svazku.\n" -#: lib/setup.c:2204 +#: lib/setup.c:2113 msgid "Incorrect root hash specified for verity device.\n" msgstr "K zařízení VERITY byl zadán neplatný kořenový haš.\n" -#: lib/setup.c:2227 +#: lib/setup.c:2136 msgid "Device type is not properly initialised.\n" msgstr "Typ zařízení není řádně inicializován.\n" -#: lib/setup.c:2259 +#: lib/setup.c:2168 #, c-format msgid "Device %s is still in use.\n" msgstr "Zařízení %s se stále používá.\n" -#: lib/setup.c:2268 +#: lib/setup.c:2177 #, c-format msgid "Invalid device %s.\n" msgstr "Neplatné zařízení %s.\n" -#: lib/setup.c:2289 +#: lib/setup.c:2198 msgid "Function not available in FIPS mode.\n" msgstr "V režimu FIPS není funkce dostupná.\n" -#: lib/setup.c:2295 +#: lib/setup.c:2204 msgid "Volume key buffer too small.\n" msgstr "Vyhrazená paměť pro klíč svazku je příliš malá.\n" -#: lib/setup.c:2303 +#: lib/setup.c:2212 msgid "Cannot retrieve volume key for plain device.\n" msgstr "Nelze získat klíč svazku pro otevřené zařízení.\n" -#: lib/setup.c:2310 +#: lib/setup.c:2219 #, c-format msgid "This operation is not supported for %s crypt device.\n" msgstr "Na šifrovaném zařízení %s není tato operace podporována.\n" -#: lib/setup.c:2506 +#: lib/setup.c:2416 msgid "Dump operation is not supported for this device type.\n" msgstr "Operace výpisu není na zařízení tohoto typu podporována.\n" @@ -335,100 +328,106 @@ msgstr "Nelze zjistit prioritu procesu.\n" msgid "Cannot unlock memory.\n" msgstr "Paměť nelze odemknout.\n" -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 +#: lib/utils_crypt.c:227 lib/utils_crypt.c:240 lib/utils_crypt.c:387 +#: lib/utils_crypt.c:402 msgid "Out of memory while reading passphrase.\n" msgstr "Při čtení hesla došla paměť.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils_crypt.c:232 lib/utils_crypt.c:247 msgid "Error reading passphrase from terminal.\n" msgstr "Chyba při čtení hesla z terminálu.\n" -#: lib/utils_crypt.c:259 +#: lib/utils_crypt.c:245 msgid "Verify passphrase: " msgstr "Ověřte heslo: " -#: lib/utils_crypt.c:266 +#: lib/utils_crypt.c:252 msgid "Passphrases do not match.\n" msgstr "Hesla se neshodují.\n" -#: lib/utils_crypt.c:350 +#: lib/utils_crypt.c:336 msgid "Cannot use offset with terminal input.\n" msgstr "Ve vstupu z terminálu nelze měnit polohu.\n" -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 +#: lib/utils_crypt.c:355 lib/tcrypt/tcrypt.c:443 msgid "Failed to open key file.\n" msgstr "Soubor s klíčem se nepodařilo otevřít.\n" -#: lib/utils_crypt.c:378 +#: lib/utils_crypt.c:364 msgid "Failed to stat key file.\n" msgstr "O souboru s klíčem nebylo možné zjistit údaje.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 +#: lib/utils_crypt.c:372 lib/utils_crypt.c:393 msgid "Cannot seek to requested keyfile offset.\n" msgstr "Nelze se přesunout na požadované místo v souboru s klíčem.\n" -#: lib/utils_crypt.c:424 +#: lib/utils_crypt.c:410 msgid "Error reading passphrase.\n" msgstr "Chyba při čtení hesla.\n" -#: lib/utils_crypt.c:442 +#: lib/utils_crypt.c:428 msgid "Maximum keyfile size exceeded.\n" msgstr "Maximální délka souboru s klíčem překročena.\n" -#: lib/utils_crypt.c:447 +#: lib/utils_crypt.c:433 msgid "Cannot read requested amount of data.\n" msgstr "Požadované množství dat nelze načíst.\n" -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/utils_fips.c:46 +msgid "FIPS checksum verification failed.\n" +msgstr "Ověření kontrolního součtu FIPS selhalo.\n" + +#: lib/utils_fips.c:50 +msgid "Running in FIPS mode.\n" +msgstr "Režim FIPS zapnut.\n" + +#: lib/utils_device.c:52 lib/luks1/keyencryption.c:82 #, c-format msgid "Device %s doesn't exist or access denied.\n" msgstr "Zařízení %s neexistuje nebo přístup byl zamítnut.\n" -#: lib/utils_device.c:430 +#: lib/utils_device.c:346 msgid "Cannot use a loopback device, running as non-root user.\n" msgstr "Zařízení typu loopback nelze použít, nespuštěno superuživatelem.\n" -#: lib/utils_device.c:433 +#: lib/utils_device.c:349 msgid "Cannot find a free loopback device.\n" msgstr "Nelze najít volné zařízení zpětné smyčky.\n" -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" +#: lib/utils_device.c:356 +msgid "Attaching loopback device failed (loop device with autoclear flag is required).\n" msgstr "" "Připojení zařízení zpětné smyčky selhalo (požadováno zařízení s příznakem\n" "autoclear).\n" -#: lib/utils_device.c:484 +#: lib/utils_device.c:396 #, c-format msgid "Cannot use device %s which is in use (already mapped or mounted).\n" msgstr "" "Zařízení %s nelze použít, protože se již používá\n" "(již namapováno nebo připojeno).\n" -#: lib/utils_device.c:488 +#: lib/utils_device.c:400 #, c-format msgid "Cannot get info about device %s.\n" msgstr "O zařízení %s nelze získat údaje.\n" -#: lib/utils_device.c:494 +#: lib/utils_device.c:406 #, c-format msgid "Requested offset is beyond real size of device %s.\n" msgstr "Požadovaná poloha je za hranicí skutečné velikosti zařízení %s.\n" -#: lib/utils_device.c:502 +#: lib/utils_device.c:414 #, c-format msgid "Device %s has zero size.\n" msgstr "Zařízení %s má nulovou velikost.\n" -#: lib/utils_device.c:513 +#: lib/utils_device.c:425 lib/luks1/keymanage.c:89 #, c-format msgid "Device %s is too small.\n" msgstr "Zařízení %s je příliš malé.\n" -#: lib/luks1/keyencryption.c:37 +#: lib/luks1/keyencryption.c:31 #, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" @@ -437,100 +436,77 @@ msgstr "" "Nepodařilo se nastavit mapování klíče v dm-cryptu pro zařízení %s.\n" "Zkontrolujte, že jádro podporuje šifru %s (podrobnosti v syslogu).\n" -#: lib/luks1/keyencryption.c:42 +#: lib/luks1/keyencryption.c:36 msgid "Key size in XTS mode must be 256 or 512 bits.\n" msgstr "V režimu XTS musí být velikost klíče 256 nebo 512 bitů.\n" -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 +#: lib/luks1/keyencryption.c:88 lib/luks1/keymanage.c:290 +#: lib/luks1/keymanage.c:559 lib/luks1/keymanage.c:978 #, c-format msgid "Cannot write to device %s, permission denied.\n" msgstr "Na zařízení %s nelze zapsat, povolení zamítnuto.\n" -#: lib/luks1/keyencryption.c:111 +#: lib/luks1/keyencryption.c:103 msgid "Failed to open temporary keystore device.\n" msgstr "Otevření dočasného zařízení s úložištěm klíče selhalo.\n" -#: lib/luks1/keyencryption.c:118 +#: lib/luks1/keyencryption.c:110 msgid "Failed to access temporary keystore device.\n" msgstr "Přístup do dočasného zařízení s úložištěm klíče selhal.\n" -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "Chyba vstupu/výstupu při šifrování pozice klíče.\n" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "Chyba vstupu/výstupu při dešifrování pozice klíče.\n" - -#: lib/luks1/keymanage.c:90 -#, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "Zařízení %s je příliš malé. (LUKS vyžaduje alespoň % bajtů.)\n" - -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 +#: lib/luks1/keymanage.c:175 lib/luks1/keymanage.c:412 +#: src/cryptsetup_reencrypt.c:978 #, c-format msgid "Device %s is not a valid LUKS device.\n" msgstr "Zařízení %s není platným zařízením LUKS.\n" -#: lib/luks1/keymanage.c:198 +#: lib/luks1/keymanage.c:193 #, c-format msgid "Requested header backup file %s already exists.\n" msgstr "Požadovaný soubor se zálohou hlavičky %s již existuje.\n" -#: lib/luks1/keymanage.c:200 +#: lib/luks1/keymanage.c:195 #, c-format msgid "Cannot create header backup file %s.\n" msgstr "Soubor se zálohou hlavičky %s nelze vytvořit.\n" -#: lib/luks1/keymanage.c:205 +#: lib/luks1/keymanage.c:200 #, c-format msgid "Cannot write header backup file %s.\n" msgstr "Nelze zapsat soubor %s se zálohou hlavičky.\n" -#: lib/luks1/keymanage.c:239 +#: lib/luks1/keymanage.c:233 msgid "Backup file doesn't contain valid LUKS header.\n" msgstr "Záložní soubor neobsahuje platnou hlavičku LUKS.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: lib/luks1/keymanage.c:246 lib/luks1/keymanage.c:483 #, c-format msgid "Cannot open header backup file %s.\n" msgstr "Nelze otevřít soubor se zálohou hlavičky %s.\n" -#: lib/luks1/keymanage.c:258 +#: lib/luks1/keymanage.c:252 #, c-format msgid "Cannot read header backup file %s.\n" msgstr "Soubor se zálohou hlavičky %s nelze načíst.\n" -#: lib/luks1/keymanage.c:269 +#: lib/luks1/keymanage.c:263 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"Počátek dat nebo velikost klíče se liší mezi zařízením a zálohou, obnova se " -"nezdařila.\n" +msgstr "Počátek dat nebo velikost klíče se liší mezi zařízením a zálohou, obnova se nezdařila.\n" -#: lib/luks1/keymanage.c:277 +#: lib/luks1/keymanage.c:271 #, c-format msgid "Device %s %s%s" msgstr "Zařízení %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"neobsahuje hlavičku LUKS. Nahrazení hlavičky může zničit data na daném " -"zařízení." +#: lib/luks1/keymanage.c:272 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "neobsahuje hlavičku LUKS. Nahrazení hlavičky může zničit data na daném zařízení." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"již obsahuje hlavičku LUKS. Nahrazení hlavičky zničí existující pozice " -"s klíči." +#: lib/luks1/keymanage.c:273 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "již obsahuje hlavičku LUKS. Nahrazení hlavičky zničí existující pozice s klíči." -#: lib/luks1/keymanage.c:280 +#: lib/luks1/keymanage.c:274 msgid "" "\n" "WARNING: real device header has different UUID than backup!" @@ -538,138 +514,133 @@ msgstr "" "\n" "POZOR: hlavička ve skutečném zařízení má jiné UUID než záloha!" -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 +#: lib/luks1/keymanage.c:293 lib/luks1/keymanage.c:522 +#: lib/luks1/keymanage.c:562 lib/tcrypt/tcrypt.c:581 lib/verity/verity.c:82 #: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 #: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 #, c-format msgid "Cannot open device %s.\n" msgstr "Zařízení %s nelze otevřít.\n" -#: lib/luks1/keymanage.c:329 +#: lib/luks1/keymanage.c:323 msgid "Non standard key size, manual repair required.\n" msgstr "Nestandardní velikost klíče, je třeba ruční opravy.\n" -#: lib/luks1/keymanage.c:334 +#: lib/luks1/keymanage.c:328 msgid "Non standard keyslots alignment, manual repair required.\n" msgstr "Nestandardní zarovnání pozice klíče, je třeba ruční opravy.\n" -#: lib/luks1/keymanage.c:340 +#: lib/luks1/keymanage.c:334 msgid "Repairing keyslots.\n" msgstr "Opravují se pozice klíčů.\n" -#: lib/luks1/keymanage.c:351 +#: lib/luks1/keymanage.c:345 msgid "Repair failed." msgstr "Oprava selhala." -#: lib/luks1/keymanage.c:363 +#: lib/luks1/keymanage.c:357 #, c-format msgid "Keyslot %i: offset repaired (%u -> %u).\n" msgstr "Pozice klíče %i: poloha opravena (%u → %u).\n" -#: lib/luks1/keymanage.c:371 +#: lib/luks1/keymanage.c:365 #, c-format msgid "Keyslot %i: stripes repaired (%u -> %u).\n" msgstr "Pozice klíče %i: proklad opraven (%u → %u).\n" -#: lib/luks1/keymanage.c:380 +#: lib/luks1/keymanage.c:374 #, c-format msgid "Keyslot %i: bogus partition signature.\n" msgstr "Pozice klíče %i: chybná značka oddílu.\n" -#: lib/luks1/keymanage.c:385 +#: lib/luks1/keymanage.c:379 #, c-format msgid "Keyslot %i: salt wiped.\n" msgstr "Pozice klíče %i: sůl vymazána.\n" -#: lib/luks1/keymanage.c:396 +#: lib/luks1/keymanage.c:390 msgid "Writing LUKS header to disk.\n" msgstr "Hlavička LUKS se zapisuje na disk.\n" -#: lib/luks1/keymanage.c:421 +#: lib/luks1/keymanage.c:415 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "Nepodporovaná verze LUKS %d.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: lib/luks1/keymanage.c:421 lib/luks1/keymanage.c:626 #, c-format msgid "Requested LUKS hash %s is not supported.\n" msgstr "Požadovaný haš LUKSu %s není podporován.\n" -#: lib/luks1/keymanage.c:442 +#: lib/luks1/keymanage.c:436 #, c-format msgid "LUKS keyslot %u is invalid.\n" msgstr "Pozice %u klíče LUKS není platná.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 +#: lib/luks1/keymanage.c:450 src/cryptsetup.c:596 msgid "No known problems detected for LUKS header.\n" msgstr "V hlavičce LUKS nenalezen žádný známý problém.\n" -#: lib/luks1/keymanage.c:596 +#: lib/luks1/keymanage.c:583 #, c-format msgid "Error during update of LUKS header on device %s.\n" msgstr "Chyba při aktualizaci hlavičky LUKS na zařízení %s.\n" -#: lib/luks1/keymanage.c:603 +#: lib/luks1/keymanage.c:590 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" msgstr "Chyba při opakovaném čtení hlavičky LUKS po aktualizaci zařízení %s.\n" # TODO: Pluralize -#: lib/luks1/keymanage.c:654 +#: lib/luks1/keymanage.c:619 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" -"Poloha dat u oddělené hlavičky LUKS musí být buď 0, nebo více než velikost " -"hlavičky (sektorů: %d).\n" +msgid "Data offset for detached LUKS header must be either 0 or higher than header size (%d sectors).\n" +msgstr "Poloha dat u oddělené hlavičky LUKS musí být buď 0, nebo více než velikost hlavičky (sektorů: %d).\n" -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 +#: lib/luks1/keymanage.c:631 lib/luks1/keymanage.c:718 msgid "Wrong LUKS UUID format provided.\n" msgstr "Poskytnut UUID LUKSu ve špatném tvaru.\n" -#: lib/luks1/keymanage.c:695 +#: lib/luks1/keymanage.c:656 msgid "Cannot create LUKS header: reading random salt failed.\n" msgstr "Hlavičku LUKS nelze vytvořit: čtení náhodné soli selhalo.\n" -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 +#: lib/luks1/keymanage.c:663 lib/luks1/keymanage.c:759 #, c-format msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" msgstr "Neslučitelné volby PBKDF2 (při použití hašovacího algoritmu %s).\n" -#: lib/luks1/keymanage.c:717 +#: lib/luks1/keymanage.c:678 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"Hlavičku LUKS nelze vytvořit: výpočet otisku hlavičky (haš %s) selhal.\n" +msgstr "Hlavičku LUKS nelze vytvořit: výpočet otisku hlavičky (haš %s) selhal.\n" -#: lib/luks1/keymanage.c:782 +#: lib/luks1/keymanage.c:743 #, c-format msgid "Key slot %d active, purge first.\n" msgstr "Pozice klíče %d je aktivní, nejprve ji uvolněte.\n" -#: lib/luks1/keymanage.c:788 +#: lib/luks1/keymanage.c:749 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" msgstr "Pozice klíče %d obsahuje příliš málo útržků. Manipulace s hlavičkou?\n" -#: lib/luks1/keymanage.c:950 +#: lib/luks1/keymanage.c:911 #, c-format msgid "Key slot %d unlocked.\n" msgstr "Pozice klíče %d odemknuta.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: lib/luks1/keymanage.c:946 src/cryptsetup.c:796 +#: src/cryptsetup_reencrypt.c:882 src/cryptsetup_reencrypt.c:916 msgid "No key available with this passphrase.\n" msgstr "S tímto heslem není dostupný žádný klíč.\n" -#: lib/luks1/keymanage.c:1003 +#: lib/luks1/keymanage.c:964 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" msgstr "Pozice klíče %d není platná, prosím, vyberte pozici mezi 0 a %d.\n" -#: lib/luks1/keymanage.c:1021 +#: lib/luks1/keymanage.c:982 #, c-format msgid "Cannot wipe device %s.\n" msgstr "Zařízení %s není možné smazat.\n" @@ -680,8 +651,7 @@ msgstr "Zjištěn dosud nepodporovaný soubor s klíčem šifrovaný pomocí GP #: lib/loopaes/loopaes.c:147 msgid "Please use gpg --decrypt | cryptsetup --keyfile=- ...\n" -msgstr "" -"Prosím, použijte gpg --decrypt SOUBOR_S_KLÍČEM | cryptsetup --keyfile=- …\n" +msgstr "Prosím, použijte gpg --decrypt SOUBOR_S_KLÍČEM | cryptsetup --keyfile=- …\n" #: lib/loopaes/loopaes.c:168 lib/loopaes/loopaes.c:188 msgid "Incompatible loop-AES keyfile detected.\n" @@ -691,55 +661,59 @@ msgstr "Zjištěn nekompatibilní soubor s klíčem loop-AES.\n" msgid "Kernel doesn't support loop-AES compatible mapping.\n" msgstr "Jádro nepodporuje mapování kompatibilní s loop-AES.\n" -#: lib/tcrypt/tcrypt.c:475 +#: lib/tcrypt/tcrypt.c:451 #, c-format msgid "Error reading keyfile %s.\n" msgstr "Chyba při čtení souboru s klíčem %s\n" -#: lib/tcrypt/tcrypt.c:513 +#: lib/tcrypt/tcrypt.c:489 #, c-format msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" msgstr "Překročena maximální délka hesla TCRYPT (%d).\n" -#: lib/tcrypt/tcrypt.c:543 +#: lib/tcrypt/tcrypt.c:518 #, c-format msgid "PBKDF2 hash algorithm %s not available, skipping.\n" msgstr "Hašovací algoritmus PBKDF2 %s není podporován, přeskakuje se.\n" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 +#: lib/tcrypt/tcrypt.c:536 src/cryptsetup.c:549 msgid "Required kernel crypto interface not available.\n" msgstr "Požadované kryptografické rozhraní jádra není dostupné.\n" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 +#: lib/tcrypt/tcrypt.c:538 src/cryptsetup.c:551 msgid "Ensure you have algif_skcipher kernel module loaded.\n" msgstr "Ujistěte se, že jaderný modul algif_skcipher je zaveden.\n" -#: lib/tcrypt/tcrypt.c:707 +#: lib/tcrypt/tcrypt.c:591 +#, c-format +msgid "WARNING: device %s is a partition, for TCRYPT system encryption you usually need to use whole block device path.\n" +msgstr "POZOR: zařízení %s je oddíl. U systémového šifrování TCRYPT je obvykle třeba použít cestu k celému blokovému zařízení.\n" + +#: lib/tcrypt/tcrypt.c:667 #, c-format msgid "Activation is not supported for %d sector size.\n" msgstr "Aktivace nad sektory o velikosti %d není podporována.\n" -#: lib/tcrypt/tcrypt.c:713 +#: lib/tcrypt/tcrypt.c:673 msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" msgstr "Jádro nepodporuje aktivaci v tomto zastaralém režimu TCRYPT.\n" -#: lib/tcrypt/tcrypt.c:744 +#: lib/tcrypt/tcrypt.c:701 #, c-format msgid "Activating TCRYPT system encryption for partition %s.\n" msgstr "Aktivuje se systémové šifrování TCRYPT pro oddíl %s.\n" -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "Jádro nepodporuje mapování kompatibilní s TCRYPT.\n" +#: lib/tcrypt/tcrypt.c:756 +msgid "Kernel doesn't support plain64 IV.\n" +msgstr "Jádro nepodporuje inicializační vektor plain64.\n" -#: lib/tcrypt/tcrypt.c:1020 +#: lib/tcrypt/tcrypt.c:961 msgid "This function is not supported without TCRYPT header load." msgstr "Bez dat s hlavičkou TCRYPT není tato funkce podporována." #: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "Zařízení VERITY %s nepoužívá hlavičku uvnitř disku.\n" +msgid "Verity device doesn't use on-disk header.\n" +msgstr "Zařízení VERITY nepoužívá hlavičku uvnitř disku.\n" #: lib/verity/verity.c:94 #, c-format @@ -756,9 +730,8 @@ msgid "VERITY header corrupted.\n" msgstr "Hlavička VERITY je poškozena.\n" #: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "Na zařízení %s poskytnuto UUID VERITY ve špatném tvaru.\n" +msgid "Wrong VERITY UUID format provided.\n" +msgstr "Poskytnut UUID VERITY ve špatném tvaru.\n" #: lib/verity/verity.c:196 #, c-format @@ -814,47 +787,31 @@ msgstr "Oblast haší se nepodařilo vytvořit.\n" #: lib/verity/verity_hash.c:414 #, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" -"POZOR: Jádro nemůže aktivovat zařízení, pokud velikost datového bloku " -"přesahuje velikost stránky (%u).\n" +msgid "WARNING: Kernel cannot activate device if data block size exceeds page size (%u).\n" +msgstr "POZOR: Jádro nemůže aktivovat zařízení, pokud velikost datového bloku přesahuje velikost stránky (%u).\n" -#: src/cryptsetup.c:91 +#: src/cryptsetup.c:79 msgid "Can't do passphrase verification on non-tty inputs.\n" msgstr "Se vstupem mimo terminál nelze ověřit heslo.\n" -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 +#: src/cryptsetup.c:110 +msgid "Ignoring keyfile offset and size options, keyfile read size is always the same as encryption key size.\n" +msgstr "Přepínače pozice a velikosti souboru s klíčem se ignoruje, velikost pro čtení souboru s klíčem je vždy stejná jako velikosti šifrovacího klíče.\n" + +#: src/cryptsetup.c:116 src/cryptsetup.c:495 src/cryptsetup.c:639 +#: src/cryptsetup_reencrypt.c:485 src/cryptsetup_reencrypt.c:520 msgid "No known cipher specification pattern detected.\n" msgstr "Nelze určit žádnou známou specifikaci šifry.\n" -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" -"POZOR: Jedná-li se o režim plain a je-li určen soubor s klíčem, parametr --" -"hash se ignoruje.\n" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" -"POZOR: Přepínač --keyfile-size se ignoruje, velikost pro čtení je stejná " -"jako velikosti šifrovacího klíče.\n" - -#: src/cryptsetup.c:218 +#: src/cryptsetup.c:183 msgid "Option --key-file is required.\n" msgstr "Je vyžadován přepínač --key-file.\n" -#: src/cryptsetup.c:267 +#: src/cryptsetup.c:254 src/cryptsetup.c:340 msgid "No device header detected with this passphrase.\n" msgstr "S tímto heslem není rozpoznatelná žádná hlavička zařízení.\n" -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 +#: src/cryptsetup.c:269 src/cryptsetup.c:1065 msgid "" "Header dump with volume key is sensitive information\n" "which allows access to encrypted partition without passphrase.\n" @@ -864,238 +821,218 @@ msgstr "" "který umožňuje přístup k šifrovanému oddílu bez znalosti hesla.\n" "Tento výpis by měl být vždy uložen na bezpečném místě a v zašifrované podobě." -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "Výsledek hodnocení výkonu není spolehlivý.\n" - # ???: are aproximated? -#: src/cryptsetup.c:558 +#: src/cryptsetup.c:489 msgid "# Tests are approximate using memory only (no storage IO).\n" msgstr "# Testy jsou počítány jen z práce s pamětí (žádné I/O úložiště).\n" -#: src/cryptsetup.c:583 src/cryptsetup.c:605 +#: src/cryptsetup.c:511 src/cryptsetup.c:533 msgid "# Algorithm | Key | Encryption | Decryption\n" msgstr "# Algoritmus | Klíč | Šifrování | Dešifrování\n" -#: src/cryptsetup.c:587 +#: src/cryptsetup.c:515 #, c-format msgid "Cipher %s is not available.\n" msgstr "Šifra %s není dostupná.\n" -#: src/cryptsetup.c:614 +#: src/cryptsetup.c:542 msgid "N/A" msgstr "–" -#: src/cryptsetup.c:639 +#: src/cryptsetup.c:567 #, c-format msgid "Cannot read keyfile %s.\n" msgstr "Soubor s klíčem %s nelze číst.\n" # FIXME: Pluralize -#: src/cryptsetup.c:643 +#: src/cryptsetup.c:571 #, c-format msgid "Cannot read %d bytes from keyfile %s.\n" msgstr "Ze souboru s klíčem %2$s nelze přečíst %1$d bajtů.\n" -#: src/cryptsetup.c:672 +#: src/cryptsetup.c:600 msgid "Really try to repair LUKS device header?" msgstr "Opravdu se pokusit opravit hlavičku zařízení LUKS?" -#: src/cryptsetup.c:697 +#: src/cryptsetup.c:625 #, c-format msgid "This will overwrite data on %s irrevocably." msgstr "Toto nevratně přepíše data na %s." -#: src/cryptsetup.c:699 +#: src/cryptsetup.c:627 msgid "memory allocation error in action_luksFormat" msgstr "chyba alokace paměti v action_luksFormat" -#: src/cryptsetup.c:717 +#: src/cryptsetup.c:645 #, c-format msgid "Cannot use %s as on-disk header.\n" msgstr "%s nelze použít pro hlavičku uvnitř disku.\n" -#: src/cryptsetup.c:784 +#: src/cryptsetup.c:718 msgid "Reduced data offset is allowed only for detached LUKS header.\n" msgstr "Zmenšená poloha dat je dovolena jen u oddělené hlavičky LUKS.\n" -#: src/cryptsetup.c:881 src/cryptsetup.c:937 +#: src/cryptsetup.c:819 src/cryptsetup.c:875 #, c-format msgid "Key slot %d selected for deletion.\n" msgstr "Ke smazání vybrán klíč na pozici %d.\n" -#: src/cryptsetup.c:884 +#: src/cryptsetup.c:822 #, c-format msgid "Key %d not active. Can't wipe.\n" msgstr "Klíč %d není aktivní. Nelze jej odstranit.\n" -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." +#: src/cryptsetup.c:830 src/cryptsetup.c:878 +msgid "This is the last keyslot. Device will become unusable after purging this key." msgstr "" "Toto je poslední pozice klíče. Smazáním tohoto klíče přijdete o možnost\n" "zařízení použít." -#: src/cryptsetup.c:893 +#: src/cryptsetup.c:831 msgid "Enter any remaining passphrase: " msgstr "Zadejte jakékoliv jiné heslo: " -#: src/cryptsetup.c:921 +#: src/cryptsetup.c:859 msgid "Enter passphrase to be deleted: " msgstr "Zadejte heslo, které se má smazat: " -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format +#: src/cryptsetup.c:928 src/cryptsetup_reencrypt.c:948 msgid "Enter any existing passphrase: " msgstr "Zadejte jakékoliv existující heslo: " -#: src/cryptsetup.c:1052 +#: src/cryptsetup.c:977 msgid "Enter passphrase to be changed: " msgstr "Zadejte heslo, které má být změněno: " -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 +#: src/cryptsetup.c:991 src/cryptsetup_reencrypt.c:934 msgid "Enter new passphrase: " msgstr "Zadejte nové heslo: " -#: src/cryptsetup.c:1090 +#: src/cryptsetup.c:1015 msgid "Only one device argument for isLuks operation is supported.\n" msgstr "U operace isLuks je podporován pouze jeden argument se zařízením.\n" -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 +#: src/cryptsetup.c:1171 src/cryptsetup.c:1192 msgid "Option --header-backup-file is required.\n" msgstr "Je vyžadován přepínač --header-backup-file.\n" -#: src/cryptsetup.c:1304 +#: src/cryptsetup.c:1229 #, c-format msgid "Unrecognized metadata device type %s.\n" msgstr "Nerozpoznaná metadata druhu zařízení %s.\n" -#: src/cryptsetup.c:1307 +#: src/cryptsetup.c:1232 msgid "Command requires device and mapped name as arguments.\n" msgstr "Příkaz vyžaduje jako argumenty zařízení a mapovaný název.\n" -#: src/cryptsetup.c:1326 -#, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Tento úkon smaže všechny pozice s klíči na zařízení %s.\n" -"Po jeho dokončení zařízení bude nepoužitelné." - -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid " [--type ] []" msgstr " [--type ] []" -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid "open device as mapping " msgstr "otevře zařízení jako mapování " -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 +#: src/cryptsetup.c:1245 src/cryptsetup.c:1246 src/cryptsetup.c:1247 +#: src/cryptsetup.c:1248 src/veritysetup.c:310 src/veritysetup.c:311 msgid "" msgstr "" -#: src/cryptsetup.c:1361 +#: src/cryptsetup.c:1245 msgid "close device (remove mapping)" msgstr "zavře zařízení (odstraní mapování)" -#: src/cryptsetup.c:1362 +#: src/cryptsetup.c:1246 msgid "resize active device" msgstr "změní velikost aktivního zařízení" -#: src/cryptsetup.c:1363 +#: src/cryptsetup.c:1247 msgid "show device status" msgstr "zobrazí stav zařízení" -#: src/cryptsetup.c:1364 +#: src/cryptsetup.c:1248 msgid "benchmark cipher" msgstr "zhodnotí výkon šifry" -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1249 src/cryptsetup.c:1255 src/cryptsetup.c:1256 +#: src/cryptsetup.c:1257 src/cryptsetup.c:1258 src/cryptsetup.c:1259 +#: src/cryptsetup.c:1260 src/cryptsetup.c:1261 src/cryptsetup.c:1262 msgid "" msgstr "" -#: src/cryptsetup.c:1365 +#: src/cryptsetup.c:1249 msgid "try to repair on-disk metadata" msgstr "pokusí se opravit metadata uložená na disku" -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "smaže všechny pozice s klíči (odstraní šifrovací klíč)" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 +#: src/cryptsetup.c:1250 src/cryptsetup.c:1251 msgid " []" msgstr " []" -#: src/cryptsetup.c:1367 +#: src/cryptsetup.c:1250 msgid "formats a LUKS device" msgstr "naformátuje zařízení LUKS" -#: src/cryptsetup.c:1368 +#: src/cryptsetup.c:1251 msgid "add key to LUKS device" msgstr "do zařízení LUKS přidá klíč" -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 +#: src/cryptsetup.c:1252 src/cryptsetup.c:1253 msgid " []" msgstr " []" -#: src/cryptsetup.c:1369 +#: src/cryptsetup.c:1252 msgid "removes supplied key or key file from LUKS device" msgstr "odstraní zadaný klíč nebo soubor s klíčem ze zařízení LUKS" -#: src/cryptsetup.c:1370 +#: src/cryptsetup.c:1253 msgid "changes supplied key or key file of LUKS device" msgstr "změní zadaný klíč nebo soubor s klíčem u zařízení LUKS" -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid " " msgstr " " -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid "wipes key with number from LUKS device" msgstr "smaže klíč s číslem ze zařízení LUKS" -#: src/cryptsetup.c:1372 +#: src/cryptsetup.c:1255 msgid "print UUID of LUKS device" msgstr "zobrazí UUID zařízení LUKS" -#: src/cryptsetup.c:1373 +#: src/cryptsetup.c:1256 msgid "tests for LUKS partition header" msgstr "otestuje na hlavičku oddílu LUKS" -#: src/cryptsetup.c:1374 +#: src/cryptsetup.c:1257 msgid "dump LUKS partition information" msgstr "vypíše údaje o oddílu LUKS" -#: src/cryptsetup.c:1375 +#: src/cryptsetup.c:1258 msgid "dump TCRYPT device information" msgstr "vypíše údaje o oddílu TCRYPT" # TODO: not consistent with previous line -#: src/cryptsetup.c:1376 +#: src/cryptsetup.c:1259 msgid "Suspend LUKS device and wipe key (all IOs are frozen)." msgstr "uspí zařízení LUKS a smaže klíč (všechny operace budou zmrazeny)" # TODO: not consistent with previous line -#: src/cryptsetup.c:1377 +#: src/cryptsetup.c:1260 msgid "Resume suspended LUKS device." msgstr "probudí uspané zařízení LUKS" # TODO: not consistent with previous line -#: src/cryptsetup.c:1378 +#: src/cryptsetup.c:1261 msgid "Backup LUKS device header and keyslots" msgstr "zálohuje hlavičku zařízení LUKS a jeho pozice s klíči" # TODO: not consistent with previous line -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1262 msgid "Restore LUKS device header and keyslots" msgstr "obnoví hlavičku zařízení LUKS a jeho pozice s klíči" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:1279 src/veritysetup.c:327 msgid "" "\n" " is one of:\n" @@ -1103,7 +1040,7 @@ msgstr "" "\n" " je jedna z:\n" -#: src/cryptsetup.c:1402 +#: src/cryptsetup.c:1285 msgid "" "\n" "You can also use old syntax aliases:\n" @@ -1115,7 +1052,7 @@ msgstr "" "\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" "\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:1289 #, c-format msgid "" "\n" @@ -1130,22 +1067,20 @@ msgstr "" " je číslo pozice klíče LUKS, který se má upravit\n" " je volitelný soubor s novým klíčem pro akci luksAddKey\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:1296 #, c-format msgid "" "\n" "Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" +"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d (characters)\n" "Default PBKDF2 iteration time for LUKS: %d (ms)\n" msgstr "" "\n" "Výchozí zakompilované parametry klíče a hesla:\n" -"\tMaximální velikost souboru s klíčem: %d kB, Maximální délka interaktivního " -"hesla %d (znaků)\n" +"\tMaximální velikost souboru s klíčem: %d kB, Maximální délka interaktivního hesla %d (znaků)\n" "Výchozí čas opakování PBKDF2 pro LUKS: %d (ms)\n" -#: src/cryptsetup.c:1420 +#: src/cryptsetup.c:1303 #, c-format msgid "" "\n" @@ -1160,237 +1095,216 @@ msgstr "" "\tplain: %s, Klíč: %d bitů, Haš hesla: %s\n" "\tLUKS1: %s, Klíč: %d bitů, Haš hlavičky LUKS: %s, RNG: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 +#: src/cryptsetup.c:1320 src/veritysetup.c:459 #, c-format msgid "%s: requires %s as arguments" msgstr "%s: vyžaduje %s jako argumenty" -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:1353 src/veritysetup.c:367 src/cryptsetup_reencrypt.c:1099 msgid "Show this help message" msgstr "Zobrazí tuto nápovědu" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:1354 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1100 msgid "Display brief usage" msgstr "Zobrazí stručný návod na použití" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:1358 src/veritysetup.c:372 src/cryptsetup_reencrypt.c:1104 msgid "Help options:" msgstr "Přepínače nápovědy:" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 +#: src/cryptsetup.c:1359 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1105 msgid "Print package version" msgstr "Vypíše verzi balíku" -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:1360 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1106 msgid "Shows more detailed error messages" msgstr "Zobrazuje podrobnější chybové hlášky" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:1361 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1107 msgid "Show debug messages" msgstr "Zobrazuje ladicí hlášky" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:1362 src/cryptsetup_reencrypt.c:1109 msgid "The cipher used to encrypt the disk (see /proc/crypto)" msgstr "Šifra použita k zašifrování disku (vizte /proc/crypto)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:1363 src/cryptsetup_reencrypt.c:1111 msgid "The hash used to create the encryption key from the passphrase" msgstr "Haš použit k vytvoření šifrovacího klíče z hesla" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:1364 msgid "Verifies the passphrase by asking for it twice" msgstr "Ověřuje heslo dvojitým dotazem" # TODO: Remove period -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 +#: src/cryptsetup.c:1365 src/cryptsetup_reencrypt.c:1112 msgid "Read the key from a file." msgstr "Klíč načte ze souboru" # TODO: Remove period -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:1366 msgid "Read the volume (master) key from file." msgstr "(Hlavní) klíč svazku načte ze souboru" # TODO: Remove period -#: src/cryptsetup.c:1484 +#: src/cryptsetup.c:1367 msgid "Dump volume (master) key instead of keyslots info." msgstr "Vypíše (hlavní) klíč svazku namísto údajů o pozicích klíčů" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "The size of the encryption key" msgstr "Velikost šifrovacího klíče" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "BITS" msgstr "BITY" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 +#: src/cryptsetup.c:1369 src/cryptsetup_reencrypt.c:1123 msgid "Limits the read from keyfile" msgstr "Omezí čtení ze souboru s klíčem" -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 src/cryptsetup.c:1371 +#: src/cryptsetup.c:1372 src/veritysetup.c:378 src/veritysetup.c:379 +#: src/veritysetup.c:381 src/cryptsetup_reencrypt.c:1122 +#: src/cryptsetup_reencrypt.c:1123 src/cryptsetup_reencrypt.c:1124 +#: src/cryptsetup_reencrypt.c:1125 msgid "bytes" msgstr "bajty" -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 +#: src/cryptsetup.c:1370 src/cryptsetup_reencrypt.c:1122 msgid "Number of bytes to skip in keyfile" msgstr "Přeskočí daný počet bajtů na začátku souboru s klíčem" -#: src/cryptsetup.c:1488 +#: src/cryptsetup.c:1371 msgid "Limits the read from newly added keyfile" msgstr "Omezí čtení z nově přidaného souboru s klíčem" -#: src/cryptsetup.c:1489 +#: src/cryptsetup.c:1372 msgid "Number of bytes to skip in newly added keyfile" msgstr "Přeskočí daný počet bajtů na začátku nově přidaného souboru s klíčem" -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:1373 msgid "Slot number for new key (default is first free)" msgstr "Číslo pozice pro nový klíč (výchozí je první volná)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:1374 msgid "The size of the device" msgstr "Velikost zařízení" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1374 src/cryptsetup.c:1375 src/cryptsetup.c:1376 +#: src/cryptsetup.c:1382 msgid "SECTORS" msgstr "SEKTORY" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:1375 msgid "The start offset in the backend device" msgstr "Poloha začátku dat v podkladovém zařízení" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:1376 msgid "How many sectors of the encrypted data to skip at the beginning" msgstr "Kolik sektorů šifrovaných dat se má na začátku přeskočit" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:1377 msgid "Create a readonly mapping" msgstr "Vytvoří mapování určené jen pro čtení" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "Doba opakování PBKDF2 pro LUKS (v ms)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "msecs" msgstr "milisekundy" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:1379 src/cryptsetup_reencrypt.c:1114 msgid "Do not ask for confirmation" msgstr "Nevyžaduje potvrzení" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "Timeout for interactive passphrase prompt (in seconds)" msgstr "Časový limit pro interaktivní dotaz na heslo (v sekundách)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "secs" msgstr "sekundy" -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:1381 src/cryptsetup_reencrypt.c:1115 msgid "How often the input of the passphrase can be retried" msgstr "Kolikrát se lze zeptat na heslo" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1382 msgid "Align payload at sector boundaries - for luksFormat" msgstr "Zarovnává data na hranici sektorů – pro luksFormat" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:1383 msgid "File with LUKS header and keyslots backup." msgstr "Soubor se zálohou hlavičky LUKS a jejích pozic s klíči" -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 +#: src/cryptsetup.c:1384 src/cryptsetup_reencrypt.c:1116 msgid "Use /dev/random for generating volume key." msgstr "Klíče svazku vytvoří z /dev/random." -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 +#: src/cryptsetup.c:1385 src/cryptsetup_reencrypt.c:1117 msgid "Use /dev/urandom for generating volume key." msgstr "Klíč svazku vytvoří z /dev/urandom." -#: src/cryptsetup.c:1503 +#: src/cryptsetup.c:1386 msgid "Share device with another non-overlapping crypt segment." msgstr "Zařízení sdílí s jiným nepřekrývajícím se šifrovaným segmentem." -#: src/cryptsetup.c:1504 src/veritysetup.c:385 +#: src/cryptsetup.c:1387 src/veritysetup.c:384 msgid "UUID for device to use." msgstr "Použije zařízení s UUID." -#: src/cryptsetup.c:1505 +#: src/cryptsetup.c:1388 msgid "Allow discards (aka TRIM) requests for device." msgstr "Povolí u daného zařízení požadavky na zahození (TRIM)." -#: src/cryptsetup.c:1506 +#: src/cryptsetup.c:1389 msgid "Device or file with separated LUKS header." msgstr "Zařízení nebo soubor s oddělenou hlavičkou LUKS." -#: src/cryptsetup.c:1507 +#: src/cryptsetup.c:1390 msgid "Do not activate device, just check passphrase." msgstr "Zařízení neaktivuje, jen zkontroluje heslo." -#: src/cryptsetup.c:1508 +#: src/cryptsetup.c:1391 msgid "Use hidden header (hidden TCRYPT device)." msgstr "Použije se skrytá hlavička (skryté zařízení TCRYPT)." -#: src/cryptsetup.c:1509 +#: src/cryptsetup.c:1392 msgid "Device is system TCRYPT drive (with bootloader)." msgstr "Zařízení je systémová jednotka TCRYPT (se zavaděčem)." -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "Použije se záložní (druhá) hlavička TCRYPT." - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "Hledá také zařízení kompatibilní s VeraCrypt." - -#: src/cryptsetup.c:1512 +#: src/cryptsetup.c:1393 msgid "Type of device metadata: luks, plain, loopaes, tcrypt." msgstr "Druh metadat zařízení: luks, plain, loopaes, tcrypt." -#: src/cryptsetup.c:1513 +#: src/cryptsetup.c:1394 msgid "Disable password quality check (if enabled)." msgstr "Vypne kontrolku odolnosti hesla (byla-li zapnuta)." -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "Použije výkonnostně kompatibilní přepínač dmcryptu same_cpu_crypt." - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" -"Použije výkonnostně kompatibilní přepínač dmcryptu submit_from_crypt_cpus." - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 +#: src/cryptsetup.c:1412 src/veritysetup.c:401 msgid "[OPTION...] " msgstr "[PŘEPÍNAČ…] " -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "Režim FIPS zapnut.\n" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 +#: src/cryptsetup.c:1458 src/veritysetup.c:438 msgid "Argument missing." msgstr "Chybí argument ." -#: src/cryptsetup.c:1634 src/veritysetup.c:445 +#: src/cryptsetup.c:1506 src/veritysetup.c:444 msgid "Unknown action." msgstr "Neznámá akce." -#: src/cryptsetup.c:1644 +#: src/cryptsetup.c:1516 msgid "Option --shared is allowed only for open of plain device.\n" msgstr "Přepínač --shared je dovolen jen při úkonu otevírání zařízení plain.\n" -#: src/cryptsetup.c:1649 +#: src/cryptsetup.c:1521 msgid "Option --allow-discards is allowed only for open operation.\n" msgstr "Přepínač --allow-discards je dovolen jen při úkonu otevírání.\n" -#: src/cryptsetup.c:1657 +#: src/cryptsetup.c:1529 msgid "" "Option --key-size is allowed only for luksFormat, open and benchmark.\n" "To limit read from keyfile use --keyfile-size=(bytes)." @@ -1398,130 +1312,109 @@ msgstr "" "Přepínač --key-size je dovolen jen u luksFormat, open a benchmark.\n" "Čtení ze souboru s klíčem lze omezit pomocí --keyfile-size=(bajty)." -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" -"Přepínač --test-passphrase je dovolen pouze při otevírání zařízení LUKS a " -"TCRYPT.\n" +#: src/cryptsetup.c:1536 +msgid "Option --test-passphrase is allowed only for open of LUKS and TCRYPT devices.\n" +msgstr "Přepínač --test-passphrase je dovolen pouze při otevírání zařízení LUKS a TCRYPT.\n" -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 +#: src/cryptsetup.c:1541 src/cryptsetup_reencrypt.c:1185 msgid "Key size must be a multiple of 8 bits" msgstr "Velikost klíče musí být násobkem 8 bitů." -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 +#: src/cryptsetup.c:1548 src/cryptsetup_reencrypt.c:1190 msgid "Key slot is invalid." msgstr "Pozice klíče není platná." -#: src/cryptsetup.c:1683 +#: src/cryptsetup.c:1555 msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" -"Přepínač --key-file má přednost před zadaným argumentem souboru s klíčem.\n" +msgstr "Přepínač --key-file má přednost před zadaným argumentem souboru s klíčem.\n" -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 +#: src/cryptsetup.c:1563 src/veritysetup.c:466 src/cryptsetup_reencrypt.c:1174 msgid "Negative number for option not permitted." msgstr "U přepínače není záporné číslo dovoleno." -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 +#: src/cryptsetup.c:1567 src/cryptsetup_reencrypt.c:1168 +#: src/cryptsetup_reencrypt.c:1194 msgid "Only one of --use-[u]random options is allowed." msgstr "Je dovolen pouze jeden z přepínačů --use-[u]random." -#: src/cryptsetup.c:1699 +#: src/cryptsetup.c:1571 msgid "Option --use-[u]random is allowed only for luksFormat." msgstr "Přepínač --use-[u]random je dovolen pouze u luksFormat." -#: src/cryptsetup.c:1703 +#: src/cryptsetup.c:1575 msgid "Option --uuid is allowed only for luksFormat and luksUUID." msgstr "Přepínač --uuid je dovolen pouze u luksFormat a luksUUID." -#: src/cryptsetup.c:1707 +#: src/cryptsetup.c:1579 msgid "Option --align-payload is allowed only for luksFormat." msgstr "Přepínač --align-payload je dovolen pouze u luksFormat." -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Přepínač --skip je podporován jen při otevírání zařízení plain a loopaes.\n" +#: src/cryptsetup.c:1585 +msgid "Option --skip is supported only for open of plain and loopaes devices.\n" +msgstr "Přepínač --skip je podporován jen při otevírání zařízení plain a loopaes.\n" -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Přepínač --offset je podporován jen při otevírání zařízení plain a loopaes.\n" +#: src/cryptsetup.c:1591 +msgid "Option --offset is supported only for open of plain and loopaes devices.\n" +msgstr "Přepínač --offset je podporován jen při otevírání zařízení plain a loopaes.\n" -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" -"Přepínač --tcrypt-hidden, --tcrypt-system nebo --tcrypt-backup je podporován " -"jen u zařízení TCRYPT.\n" - -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "Přepínač --tcrypt-hidden nelze použít s přepínačem --allow-discards.\n" +#: src/cryptsetup.c:1597 +msgid "Option --tcrypt-hidden or --tcrypt-system is supported only for TCRYPT device.\n" +msgstr "Přepínač --tcrypt-hidden nebo --tcrypt-system je podporován jen u zařízení TCRYPT.\n" -#: src/cryptsetup.c:1735 -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "Přepínač --veracrypt je podporován jen u typu zařízení TCRYPT.\n" - -#: src/veritysetup.c:58 +#: src/veritysetup.c:57 msgid "Invalid salt string specified.\n" msgstr "Zadán neplatný řetězec se solí.\n" -#: src/veritysetup.c:88 +#: src/veritysetup.c:87 #, c-format msgid "Cannot create hash image %s for writing.\n" msgstr "Nelze vytvořit obraz hašů %s určený k zápisu.\n" -#: src/veritysetup.c:148 +#: src/veritysetup.c:147 msgid "Invalid root hash string specified.\n" msgstr "Zadán neplatný řetězec s kořenovým hašem.\n" -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid " " msgstr " " -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid "format device" msgstr "naformátuje zařízení" -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid " " msgstr " " -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid "verify device" msgstr "ověří zařízení" -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid " " msgstr " " -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid "create active device" msgstr "vytvoří aktivní zařízení" -#: src/veritysetup.c:311 +#: src/veritysetup.c:310 msgid "remove (deactivate) device" msgstr "odstraní (deaktivuje) zařízení" -#: src/veritysetup.c:312 +#: src/veritysetup.c:311 msgid "show active device status" msgstr "zobrazí stav aktivního zařízení" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "" msgstr "" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "show on-disk information" msgstr "zobrazí údaje z disku" -#: src/veritysetup.c:332 +#: src/veritysetup.c:331 #, c-format msgid "" "\n" @@ -1536,317 +1429,284 @@ msgstr "" " je zařízení obsahující ověřovací data\n" " haš kořenového uzlu na \n" -#: src/veritysetup.c:339 +#: src/veritysetup.c:338 #, c-format msgid "" "\n" "Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" +"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, Hash format: %u\n" msgstr "" "\n" "Výchozí zakompilované parametry dm-verity:\n" -"\tHaš: %s, Datový blok (bajty): %u, Blok hašů (bajty): %u, Velikost soli: " -"%u, Formát haše: %u\n" +"\tHaš: %s, Datový blok (bajty): %u, Blok hašů (bajty): %u, Velikost soli: %u, Formát haše: %u\n" -#: src/veritysetup.c:377 +#: src/veritysetup.c:376 msgid "Do not use verity superblock" msgstr "Nepoužije superblok verity" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "Format type (1 - normal, 0 - original Chrome OS)" msgstr "Druh formátu (1 – běžný, 0 – původní z OS Chrome)" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "number" msgstr "číslo" -#: src/veritysetup.c:379 +#: src/veritysetup.c:378 msgid "Block size on the data device" msgstr "Velikost bloku na zařízení dat" -#: src/veritysetup.c:380 +#: src/veritysetup.c:379 msgid "Block size on the hash device" msgstr "Velikost bloku na zařízení hašů" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "The number of blocks in the data file" msgstr "Počet bloků v datovém souboru" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "blocks" msgstr "bloky" -#: src/veritysetup.c:382 +#: src/veritysetup.c:381 msgid "Starting offset on the hash device" msgstr "Poloha začátku dat v zařízení hašů" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "Hash algorithm" msgstr "Hašovací algoritmus" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "string" msgstr "řetězec" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "Salt" msgstr "Sůl" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "hex string" msgstr "šestnáctkový řetězec" -#: src/cryptsetup_reencrypt.c:147 +#: src/cryptsetup_reencrypt.c:136 #, c-format msgid "Cannot exclusively open %s, device in use.\n" msgstr "Zařízení %s nelze výlučně otevřít. Zařízení se používá.\n" -#: src/cryptsetup_reencrypt.c:151 +#: src/cryptsetup_reencrypt.c:140 #, c-format msgid "Cannot open device %s\n" msgstr "Zařízení %s nelze otevřít\n" -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 +#: src/cryptsetup_reencrypt.c:150 src/cryptsetup_reencrypt.c:367 +#: src/cryptsetup_reencrypt.c:786 msgid "Allocation of aligned memory failed.\n" msgstr "Alokace zarovnané paměti se nezdařila.\n" -#: src/cryptsetup_reencrypt.c:168 +#: src/cryptsetup_reencrypt.c:157 #, c-format msgid "Cannot read device %s.\n" msgstr "Ze zařízení %s nelze číst.\n" -#: src/cryptsetup_reencrypt.c:179 +#: src/cryptsetup_reencrypt.c:168 #, c-format msgid "Marking LUKS device %s unusable.\n" msgstr "LUKS zařízení %s se označuje za nepoužitelné.\n" -#: src/cryptsetup_reencrypt.c:184 +#: src/cryptsetup_reencrypt.c:173 #, c-format msgid "Marking LUKS device %s usable.\n" msgstr "LUKS zařízení %s se označuje za použitelné.\n" -#: src/cryptsetup_reencrypt.c:200 +#: src/cryptsetup_reencrypt.c:189 #, c-format msgid "Cannot write device %s.\n" msgstr "Zařízení %s není možné zapsat.\n" -#: src/cryptsetup_reencrypt.c:281 +#: src/cryptsetup_reencrypt.c:270 msgid "Cannot write reencryption log file.\n" msgstr "Nelze zapsat soubor s protokolem přešifrování.\n" -#: src/cryptsetup_reencrypt.c:337 +#: src/cryptsetup_reencrypt.c:319 msgid "Cannot read reencryption log file.\n" msgstr "Soubor s protokolem přešifrování nelze načíst.\n" -#: src/cryptsetup_reencrypt.c:374 +#: src/cryptsetup_reencrypt.c:358 #, c-format msgid "Log file %s exists, resuming reencryption.\n" -msgstr "" -"Soubor s protokolem %s existuje, pokračuje se v přerušeném přešifrování.\n" +msgstr "Soubor s protokolem %s existuje, pokračuje se v přerušeném přešifrování.\n" -#: src/cryptsetup_reencrypt.c:403 +#: src/cryptsetup_reencrypt.c:393 msgid "Activating temporary device using old LUKS header.\n" msgstr "Aktivuje se dočasné zařízení za pomoci staré hlavičky LUKS.\n" -#: src/cryptsetup_reencrypt.c:414 +#: src/cryptsetup_reencrypt.c:404 msgid "Activating temporary device using new LUKS header.\n" msgstr "Aktivuje se dočasné zařízení za pomoci nové hlavičky LUKS.\n" -#: src/cryptsetup_reencrypt.c:424 +#: src/cryptsetup_reencrypt.c:414 msgid "Activation of temporary devices failed.\n" msgstr "Aktivace dočasných zařízení selhala.\n" -#: src/cryptsetup_reencrypt.c:450 +#: src/cryptsetup_reencrypt.c:439 #, c-format msgid "New LUKS header for device %s created.\n" msgstr "Byla vytvořena nová hlavička LUKS zařízení %s.\n" -#: src/cryptsetup_reencrypt.c:458 +#: src/cryptsetup_reencrypt.c:447 #, c-format msgid "Activated keyslot %i.\n" msgstr "Pozice klíče %i aktivována.\n" -#: src/cryptsetup_reencrypt.c:484 +#: src/cryptsetup_reencrypt.c:471 #, c-format msgid "LUKS header backup of device %s created.\n" msgstr "Záloha hlavičky LUKS zařízení %s byla vytvořena.\n" -#: src/cryptsetup_reencrypt.c:532 +#: src/cryptsetup_reencrypt.c:499 msgid "Creation of LUKS backup headers failed.\n" msgstr "Záložní hlavičky LUKS se nepodařilo vytvořit.\n" -#: src/cryptsetup_reencrypt.c:634 +#: src/cryptsetup_reencrypt.c:594 #, c-format msgid "Cannot restore LUKS header on device %s.\n" msgstr "Hlavičku LUKS na zařízení %s nelze obnovit.\n" -#: src/cryptsetup_reencrypt.c:636 +#: src/cryptsetup_reencrypt.c:596 #, c-format msgid "LUKS header on device %s restored.\n" msgstr "Hlavička LUKS na zařízení %s byla obnovena.\n" -#: src/cryptsetup_reencrypt.c:669 +#: src/cryptsetup_reencrypt.c:629 #, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" -"Průběh: %5.1f %%, ETA %02llu:%02llu, zapsáno %'4llu MiB, rychlost %'5.1f MiB/" -"s%s" +msgid "Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" +msgstr "Průběh: %5.1f %%, ETA %02llu:%02llu, zapsáno %'4llu MiB, rychlost %'5.1f MiB/s%s" -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 +#: src/cryptsetup_reencrypt.c:645 src/cryptsetup_reencrypt.c:721 msgid "Cannot seek to device offset.\n" msgstr "Nelze se přesunout na požadované místo v zařízení.\n" -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 +#: src/cryptsetup_reencrypt.c:767 src/cryptsetup_reencrypt.c:773 msgid "Cannot open temporary LUKS header file.\n" msgstr "Nelze otevřít dočasný soubor s hlavičkou LUKS.\n" -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 +#: src/cryptsetup_reencrypt.c:779 msgid "Cannot get device size.\n" msgstr "Velikost zařízení nelze zjistit.\n" -#: src/cryptsetup_reencrypt.c:919 +#: src/cryptsetup_reencrypt.c:803 msgid "Interrupted by a signal.\n" msgstr "Přerušeno signálem.\n" -#: src/cryptsetup_reencrypt.c:921 +#: src/cryptsetup_reencrypt.c:805 msgid "IO error during reencryption.\n" msgstr "Chyba vstupu/výstupu během přešifrování.\n" -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" +#: src/cryptsetup_reencrypt.c:906 +msgid "Key file can be used only with --key-slot or with exactly one key slot active.\n" msgstr "" "Soubor s klíčem lze použít jen s přepínačem --key-slot nebo s právě jednou\n" "aktivní pozicí klíče.\n" -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 +#: src/cryptsetup_reencrypt.c:955 #, c-format msgid "Enter passphrase for key slot %u: " msgstr "Zadejte heslo pro pozici klíče %u: " -#: src/cryptsetup_reencrypt.c:1136 +#: src/cryptsetup_reencrypt.c:1004 msgid "Cannot open reencryption log file.\n" msgstr "Nelze otevřít soubor s protokolem přešifrování.\n" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "Reencryption block size" msgstr "Velikost bloku přešifrování" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "MiB" msgstr "MiB" -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "Nezmění klíč, oblast s daty se nebude přešifrovávat." - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." +#: src/cryptsetup_reencrypt.c:1118 +msgid "Use direct-io when accesing devices." msgstr "K zařízením se bude přistupovat pomocí přímého I/O." -#: src/cryptsetup_reencrypt.c:1274 +#: src/cryptsetup_reencrypt.c:1119 msgid "Use fsync after each block." msgstr "Po každém bloku se zavolá fsync." -#: src/cryptsetup_reencrypt.c:1275 +#: src/cryptsetup_reencrypt.c:1120 msgid "Update log file after every block." msgstr "Po každém bloku se aktualizuje soubor s protokolem." -#: src/cryptsetup_reencrypt.c:1276 +#: src/cryptsetup_reencrypt.c:1121 msgid "Use only this slot (others will be disabled)." msgstr "Použije se pouze tato pozice (ostatní budou zakázány)." -#: src/cryptsetup_reencrypt.c:1279 +#: src/cryptsetup_reencrypt.c:1124 msgid "Reduce data device size (move data offset). DANGEROUS!" msgstr "Zmenší velikost datového zařízení (posune začátek dat). NEBEZPEČNÉ!" -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup_reencrypt.c:1125 msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" -"Použije zadanou velikost zařízení (ignoruje zbytek zařízení). NEBEZPEČNÉ!" +msgstr "Použije zadanou velikost zařízení (ignoruje zbytek zařízení). NEBEZPEČNÉ!" -#: src/cryptsetup_reencrypt.c:1281 +#: src/cryptsetup_reencrypt.c:1126 msgid "Create new header on not encrypted device." msgstr "Vytvoří novou hlavičku na nešifrovaném zařízení." -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "Natrvalo dešifruje zařízení (odstraní šifrování)." - -#: src/cryptsetup_reencrypt.c:1298 +#: src/cryptsetup_reencrypt.c:1142 msgid "[OPTION...] " msgstr "[PŘEPÍNAČ…] " -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" +#: src/cryptsetup_reencrypt.c:1156 +msgid "WARNING: this is experimental code, it can completely break your data.\n" msgstr "POZOR: toto je pokusný kód, může zničit vaše data.\n" -#: src/cryptsetup_reencrypt.c:1313 +#: src/cryptsetup_reencrypt.c:1157 #, c-format msgid "Reencryption will change: volume key%s%s%s%s.\n" msgstr "Přešifrování změní: klíč svazku%s%s%s%s.\n" -#: src/cryptsetup_reencrypt.c:1314 +#: src/cryptsetup_reencrypt.c:1158 msgid ", set hash to " msgstr ", nastaví haš na " -#: src/cryptsetup_reencrypt.c:1315 +#: src/cryptsetup_reencrypt.c:1159 msgid ", set cipher to " msgstr ", nastaví šifru na " -#: src/cryptsetup_reencrypt.c:1320 +#: src/cryptsetup_reencrypt.c:1164 msgid "Argument required." msgstr "Vyžadován argument." -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" -"Velikost bloku při přešifrování může nabývat hodnot pouze mezi 1 a 64 MiB." +#: src/cryptsetup_reencrypt.c:1180 +msgid "Only values between 1 MiB and 64 MiB allowed for reencryption block size." +msgstr "Velikost bloku při přešifrování může nabývat hodnot pouze mezi 1 a 64 MiB." -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 +#: src/cryptsetup_reencrypt.c:1199 src/cryptsetup_reencrypt.c:1204 msgid "Invalid device size specification." msgstr "Zadána neplatná velikost zařízení." -#: src/cryptsetup_reencrypt.c:1363 +#: src/cryptsetup_reencrypt.c:1207 msgid "Maximum device reduce size is 64 MiB." msgstr "Maximální velikost zmenšení zařízení je 64 MiB." -#: src/cryptsetup_reencrypt.c:1366 +#: src/cryptsetup_reencrypt.c:1210 msgid "Reduce size must be multiple of 512 bytes sector." msgstr "Velikost zmenšení musí být násobkem 512bajtových sektorů." -#: src/cryptsetup_reencrypt.c:1370 +#: src/cryptsetup_reencrypt.c:1214 msgid "Option --new must be used together with --reduce-device-size." msgstr "Přepínač --new musí být použit spolu s --reduce-device-size." -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "" -"Přepínač --keep-key lze použít jen s přepínači --hash nebo --iter-time." - -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "Přepínač --new nelze být použit spolu s --decrypt." - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "Přepínač --decrypt se neslučuje se zadanými parametry." - -#: src/utils_tools.c:151 +#: src/utils_tools.c:150 msgid "Error reading response from terminal.\n" msgstr "Chyba při čtení odpovědi z terminálu.\n" -#: src/utils_tools.c:173 +#: src/utils_tools.c:172 msgid "Command successful.\n" msgstr "Příkaz úspěšně vykonán.\n" -#: src/utils_tools.c:191 +#: src/utils_tools.c:186 #, c-format msgid "Command failed with code %i" msgstr "Příkaz selhal s kódem %i" @@ -1865,19 +1725,6 @@ msgstr "" "Kontrola odolnosti hesla selhala:\n" " %s\n" -#~ msgid "FIPS checksum verification failed.\n" -#~ msgstr "Ověření kontrolního součtu FIPS selhalo.\n" - -#~ msgid "" -#~ "WARNING: device %s is a partition, for TCRYPT system encryption you " -#~ "usually need to use whole block device path.\n" -#~ msgstr "" -#~ "POZOR: zařízení %s je oddíl. U systémového šifrování TCRYPT je obvykle " -#~ "třeba použít cestu k celému blokovému zařízení.\n" - -#~ msgid "Kernel doesn't support plain64 IV.\n" -#~ msgstr "Jádro nepodporuje inicializační vektor plain64.\n" - #~ msgid "Enter LUKS passphrase: " #~ msgstr "Zadejte heslo LUKS: " @@ -1914,12 +1761,8 @@ msgstr "" #~ msgid "remove loop-AES mapping" #~ msgstr "odstraní mapování loop-AES" -#~ msgid "" -#~ "Option --allow-discards is allowed only for luksOpen, loopaesOpen and " -#~ "create operation.\n" -#~ msgstr "" -#~ "Přepínač --allow-discards je dovolen jen při úkonech luksOpen, " -#~ "loopaesOpen a create.\n" +#~ msgid "Option --allow-discards is allowed only for luksOpen, loopaesOpen and create operation.\n" +#~ msgstr "Přepínač --allow-discards je dovolen jen při úkonech luksOpen, loopaesOpen a create.\n" #~ msgid "Cannot open device %s for %s%s access.\n" #~ msgstr "Zařízení %s nelze otevřít pro %s%s přístup.\n" @@ -1945,12 +1788,8 @@ msgstr "" #~ msgid "Failed to read from key storage.\n" #~ msgstr "Čtení z úložiště klíče selhalo.\n" -#~ msgid "" -#~ "Cannot use device %s (crypt segments overlaps or in use by another " -#~ "device).\n" -#~ msgstr "" -#~ "Zařízení %s nelze použít (šifrované segmenty se překrývají nebo jsou " -#~ "používány jiným zařízením).\n" +#~ msgid "Cannot use device %s (crypt segments overlaps or in use by another device).\n" +#~ msgstr "Zařízení %s nelze použít (šifrované segmenty se překrývají nebo jsou používány jiným zařízením).\n" #~ msgid "Key slot %d verified.\n" #~ msgstr "Pozice klíče %d ověřena.\n" @@ -1970,9 +1809,5 @@ msgstr "" #~ msgid "Negative keyfile size not permitted.\n" #~ msgstr "Záporná velikost souboru s klíčen není dovolena.\n" -#~ msgid "" -#~ "Warning: exhausting read requested, but key file is not a regular file, " -#~ "function might never return.\n" -#~ msgstr "" -#~ "Pozor: požadováno úplné čtení, avšak soubor s klíčem není běžný soubor. " -#~ "Funkce se možná nikdy nevrátí.\n" +#~ msgid "Warning: exhausting read requested, but key file is not a regular file, function might never return.\n" +#~ msgstr "Pozor: požadováno úplné čtení, avšak soubor s klíčem není běžný soubor. Funkce se možná nikdy nevrátí.\n" diff --git a/po/de.gmo b/po/de.gmo deleted file mode 100644 index b03ec22..0000000 Binary files a/po/de.gmo and /dev/null differ diff --git a/po/de.po b/po/de.po index 66d895b..2907fc4 100644 --- a/po/de.po +++ b/po/de.po @@ -1,695 +1,637 @@ # German translation for the cryptsetup package. # Copyright (C) 2010 Free Software Foundation, Inc. # This file is distributed under the same license as the cryptsetup package. -# Roland Illig , 2010-2015. +# Roland Illig , 2010. +# Roland Illig , 2011. +# Roland Illig , 2012. +# Roland Illig , 2013. # msgid "" msgstr "" -"Project-Id-Version: cryptsetup 1.6.7\n" +"Project-Id-Version: cryptsetup 1.6.2\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: 2015-03-20 12:19+0100\n" +"POT-Creation-Date: 2013-07-27 19:53+0200\n" +"PO-Revision-Date: 2013-07-29 12:30+0100\n" "Last-Translator: Roland Illig \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.7.5\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.5.7\n" -#: lib/libdevmapper.c:252 +#: lib/libdevmapper.c:245 msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "" -"Das Kernelmodul »device-mapper« kann nicht initialisiert werden, da das " -"Programm nicht mit Root-Rechten läuft.\n" +msgstr "Kann die Gerätezuordnung nicht initialisieren, da das Programm nicht mit Root-Rechten läuft.\n" -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:248 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" -msgstr "" -"Das Kernelmodul »device-mapper« kann nicht initialisiert werden. Ist das " -"Kernelmodul »dm_mod« geladen?\n" +msgstr "Kann die Gerätezuordnung nicht initialisieren. Ist das Kernelmodul dm_mod geladen?\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:536 #, c-format msgid "DM-UUID for device %s was truncated.\n" -msgstr "DM-UUID für Gerät »%s« wurde verkürzt.\n" - -#: lib/libdevmapper.c:698 -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Verlangte dmcrypt-Performance-Optionen werden nicht unterstützt.\n" +msgstr "DM-UUID für Gerät %s wurde abgeschnitten.\n" #: lib/random.c:76 msgid "" "System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" +"Please move mouse or type some text in another window to gather some random events.\n" msgstr "" -"Das System hat keine Entropie mehr, um den Laufwerksschlüssel zu " -"generieren.\n" -"Bitte bewegen Sie die Maus oder tippen Sie etwas Text in ein anderes " -"Fenster, um einige zufällige Ereignisse zu sammeln.\n" +"Das System hat keine Entropie mehr, um den Laufwerksschlüssel zu generieren.\n" +"Bitte bewegen Sie die Maus oder tippen Sie etwas Text in ein anderes Fenster, um einige zufällige Ereignisse zu sammeln.\n" #: lib/random.c:80 #, c-format msgid "Generating key (%d%% done).\n" -msgstr "Schlüssel wird generiert (%d %% erledigt).\n" +msgstr "Generiere Schlüssel (%d%% erledigt).\n" #: lib/random.c:169 msgid "Fatal error during RNG initialisation.\n" -msgstr "" -"Fataler Fehler während der Initialisierung des Zufallszahlengenerators.\n" +msgstr "Fataler Fehler während der Initialisierung des Zufallszahlengenerators.\n" #: lib/random.c:206 msgid "Unknown RNG quality requested.\n" -msgstr "Unbekannte Qualität des Zufallszahlengenerators verlangt.\n" +msgstr "Unbekannte Verschlüsselungsqualität verlangt.\n" #: lib/random.c:211 #, c-format msgid "Error %d reading from RNG: %s\n" msgstr "Fehler %d beim Einlesen vom Zufallszahlengenerator: %s\n" -#: lib/setup.c:200 +#: lib/setup.c:190 msgid "Cannot initialize crypto RNG backend.\n" -msgstr "" -"Fehler beim Initialisieren des Krypto-Zufallszahlengenerator-Backends.\n" +msgstr "Kann das Krypto-Zufallszahlengenerator-Backend nicht initialisieren.\n" -#: lib/setup.c:206 +#: lib/setup.c:196 msgid "Cannot initialize crypto backend.\n" -msgstr "Fehler beim Initialisieren des Krypto-Backends.\n" +msgstr "Kann das Krypto-Backend nicht initialisieren.\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 +#: lib/setup.c:219 lib/setup.c:1110 lib/verity/verity.c:123 #, c-format msgid "Hash algorithm %s not supported.\n" -msgstr "Hash-Algorithmus »%s« wird nicht unterstützt.\n" +msgstr "Hash-Algorithmus %s wird nicht unterstützt.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 +#: lib/setup.c:222 lib/loopaes/loopaes.c:90 #, c-format msgid "Key processing error (using hash %s).\n" -msgstr "Fehler beim Verarbeiten des Schlüssels (mit Hash-Algorithmus »%s«).\n" - -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" -"Geräte-Art kann nicht bestimmt werden. Inkompatible Aktivierung des Geräts?\n" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Diese Operation wird nur für LUKS-Geräte unterstützt.\n" +msgstr "Fehler beim Verarbeiten des Schlüssels (mit Hash %s).\n" -#: lib/setup.c:320 +#: lib/setup.c:268 msgid "All key slots full.\n" -msgstr "Alle Schlüsselfächer sind voll.\n" +msgstr "Alle Schlüsselfächer voll.\n" -#: lib/setup.c:327 +#: lib/setup.c:275 #, c-format msgid "Key slot %d is invalid, please select between 0 and %d.\n" -msgstr "" -"Schlüsselfach %d ist ungültig, bitte wählen Sie eins zwischen 0 und %d.\n" +msgstr "Schlüsselfach %d ist ungültig, bitte wählen Sie eins zwischen 0 und %d.\n" -#: lib/setup.c:333 +#: lib/setup.c:281 #, c-format msgid "Key slot %d is full, please select another one.\n" msgstr "Schlüsselfach %d ist voll, bitte wählen Sie ein anderes.\n" -#: lib/setup.c:472 +#: lib/setup.c:390 #, c-format msgid "Enter passphrase for %s: " -msgstr "Geben Sie die Passphrase für »%s« ein: " +msgstr "Geben Sie die Passphrase für %s ein: " -#: lib/setup.c:653 +#: lib/setup.c:571 #, c-format msgid "Header detected but device %s is too small.\n" -msgstr "Header gefunden, aber Gerät »%s« ist zu klein.\n" +msgstr "LUKS-Kopfbereich gefunden, aber Gerät %s ist zu klein.\n" -#: lib/setup.c:669 lib/setup.c:1420 +#: lib/setup.c:587 lib/setup.c:1337 msgid "This operation is not supported for this device type.\n" msgstr "Diese Operation wird für diese Geräteart nicht unterstützt.\n" -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:825 lib/setup.c:1298 lib/setup.c:2173 #, c-format msgid "Device %s is not active.\n" -msgstr "Gerät »%s« ist nicht aktiv.\n" +msgstr "Gerät %s ist nicht aktiv.\n" -#: lib/setup.c:925 +#: lib/setup.c:842 #, c-format msgid "Underlying device for crypt device %s disappeared.\n" -msgstr "Zugrundeliegendes Gerät für das Kryptogerät »%s« ist verschwunden.\n" +msgstr "Zugrundeliegendes Gerät für das Kryptogerät %s ist verschwunden.\n" -#: lib/setup.c:994 +#: lib/setup.c:907 msgid "Invalid plain crypt parameters.\n" msgstr "Ungültige Parameter für Plain-Verschlüsselung.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:912 lib/setup.c:1037 msgid "Invalid key size.\n" msgstr "Ungültige Schlüsselgröße.\n" -#: lib/setup.c:1004 lib/setup.c:1124 +#: lib/setup.c:917 lib/setup.c:1042 msgid "UUID is not supported for this crypt type.\n" -msgstr "UUID wird für diese Verschlüsselungsart nicht unterstützt.\n" +msgstr "UUID wird für diese Verschlüsselungs-Art nicht unterstützt.\n" -#: lib/setup.c:1046 +#: lib/setup.c:959 msgid "Can't format LUKS without device.\n" msgstr "Ohne Gerät kann LUKS nicht formatiert werden.\n" -#: lib/setup.c:1089 +#: lib/setup.c:1007 #, c-format msgid "Cannot format device %s which is still in use.\n" -msgstr "Gerät »%s« kann nicht formatiert werden, da es gerade benutzt wird.\n" +msgstr "Kann Gerät %s nicht formatieren, da es noch in Betrieb ist.\n" -#: lib/setup.c:1092 +#: lib/setup.c:1010 #, c-format msgid "Cannot format device %s, permission denied.\n" -msgstr "Gerät »%s« kann nicht formatiert werden, Zugriff verweigert.\n" +msgstr "Kann Gerät %s nicht formatieren, Zugriff verweigert.\n" -#: lib/setup.c:1096 +#: lib/setup.c:1014 #, c-format msgid "Cannot wipe header on device %s.\n" -msgstr "Fehler beim Auslöschen des Headers auf Gerät »%s«.\n" +msgstr "Kann den Kopfbereich auf Gerät %s nicht auslöschen.\n" -#: lib/setup.c:1114 +#: lib/setup.c:1032 msgid "Can't format LOOPAES without device.\n" msgstr "Ohne Gerät kann LOOPAES nicht formatiert werden.\n" -#: lib/setup.c:1152 +#: lib/setup.c:1070 msgid "Can't format VERITY without device.\n" -msgstr "Ohne Gerät kann VERITY nicht formatiert werden.\n" +msgstr "Ohne Geräteangabe kann VERITY nicht formatiert werden.\n" -#: lib/setup.c:1160 lib/verity/verity.c:106 +#: lib/setup.c:1078 lib/verity/verity.c:106 #, c-format msgid "Unsupported VERITY hash type %d.\n" msgstr "Nicht unterstützte VERITY-Hash-Art %d.\n" -#: lib/setup.c:1166 lib/verity/verity.c:114 +#: lib/setup.c:1084 lib/verity/verity.c:114 msgid "Unsupported VERITY block size.\n" msgstr "Nicht unterstützte VERITY-Blockgröße.\n" -#: lib/setup.c:1171 lib/verity/verity.c:76 +#: lib/setup.c:1089 lib/verity/verity.c:76 msgid "Unsupported VERITY hash offset.\n" msgstr "Nicht unterstützter VERITY-Hash-Offset.\n" -#: lib/setup.c:1285 +#: lib/setup.c:1201 #, c-format msgid "Unknown crypt device type %s requested.\n" -msgstr "Unbekannte Art des Verschlüsselungsgeräts »%s« verlangt.\n" +msgstr "Unbekannte Art des Verschlüsselungsgeräts %s verlangt.\n" -#: lib/setup.c:1435 +#: lib/setup.c:1352 msgid "Do you really want to change UUID of device?" msgstr "Wollen Sie wirklich die UUID des Geräts ändern?" -#: lib/setup.c:1545 +#: lib/setup.c:1440 lib/setup.c:1485 lib/setup.c:1534 lib/setup.c:1600 +#: lib/setup.c:1673 lib/setup.c:1737 lib/setup.c:1818 lib/setup.c:1864 +#: lib/setup.c:2238 lib/setup.c:2532 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Diese Operation wird nur für LUKS-Geräte unterstützt.\n" + +#: lib/setup.c:1447 #, c-format msgid "Volume %s is not active.\n" -msgstr "Laufwerk »%s« ist nicht aktiv.\n" +msgstr "Laufwerk %s ist nicht aktiv.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1458 #, c-format msgid "Volume %s is already suspended.\n" -msgstr "Laufwerk »%s« ist bereits im Ruhezustand.\n" +msgstr "Laufwerk %s ist bereits abgeschaltet.\n" -#: lib/setup.c:1563 +#: lib/setup.c:1465 #, c-format msgid "Suspend is not supported for device %s.\n" msgstr "Das Gerät »%s« unterstützt keinen Ruhezustand.\n" -#: lib/setup.c:1565 +#: lib/setup.c:1467 #, c-format msgid "Error during suspending device %s.\n" msgstr "Das Gerät »%s« kann nicht in den Ruhezustand versetzt werden.\n" -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1495 lib/setup.c:1544 #, c-format msgid "Volume %s is not suspended.\n" -msgstr "Laufwerk »%s« ist nicht im Ruhezustand.\n" +msgstr "Laufwerk %s ist nicht abgeschaltet.\n" -#: lib/setup.c:1605 +#: lib/setup.c:1509 #, c-format msgid "Resume is not supported for device %s.\n" -msgstr "Das Gerät »%s« kann nicht aus dem Ruhezustand aufgeweckt werden.\n" +msgstr "Das Gerät »%s« kann nicht aufgeweckt werden.\n" -#: lib/setup.c:1607 lib/setup.c:1659 +#: lib/setup.c:1511 lib/setup.c:1565 #, c-format msgid "Error during resuming device %s.\n" -msgstr "Fehler beim Aufwecken von Gerät »%s« aus dem Ruhezustand.\n" +msgstr "Fehler beim Aufwecken von Gerät »%s«.\n" -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 +#: lib/setup.c:1551 lib/setup.c:1989 lib/setup.c:2003 src/cryptsetup.c:151 +#: src/cryptsetup.c:229 src/cryptsetup.c:316 src/cryptsetup.c:660 +#: src/cryptsetup.c:1076 msgid "Enter passphrase: " msgstr "Passphrase eingeben: " -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1614 lib/setup.c:1751 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"Schlüsselfach kann nicht hinzugefügt werden, da alle Fächer deaktiviert sind " -"und kein Laufwerksschlüssel angegeben wurde.\n" +msgstr "Kann kein Schlüsselfach hinzufügen, alle Fächer sind deaktiviert und kein Laufwerksschlüssel angegeben.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1623 lib/setup.c:1757 lib/setup.c:1761 msgid "Enter any passphrase: " msgstr "Geben Sie irgendeine Passphrase ein: " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1640 lib/setup.c:1774 lib/setup.c:1778 lib/setup.c:1841 +#: src/cryptsetup.c:942 msgid "Enter new passphrase for key slot: " msgstr "Geben Sie die neue Passphrase für das Schlüsselfach ein: " -#: lib/setup.c:1798 +#: lib/setup.c:1705 #, c-format msgid "Key slot %d changed.\n" msgstr "Schlüsselfach %d geändert.\n" -#: lib/setup.c:1801 +#: lib/setup.c:1708 #, c-format msgid "Replaced with key slot %d.\n" -msgstr "Ersetzt durch Schlüsselfach %d.\n" +msgstr "Ersetzt durch Schlüssel-Einschub %d.\n" -#: lib/setup.c:1806 +#: lib/setup.c:1713 msgid "Failed to swap new key slot.\n" -msgstr "Neues Schlüsselfach konnte nicht ausgewechselt werden.\n" +msgstr "Konnte neues Schlüsselfach nicht auswechseln.\n" -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1832 lib/setup.c:2093 lib/setup.c:2106 lib/setup.c:2249 msgid "Volume key does not match the volume.\n" msgstr "Der Laufwerksschlüssel passt nicht zum Laufwerk.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1870 #, c-format msgid "Key slot %d is invalid.\n" msgstr "Schlüsselfach %d ist ungültig.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1875 #, c-format msgid "Key slot %d is not used.\n" msgstr "Schlüsselfach %d ist unbenutzt.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1905 lib/setup.c:1977 lib/setup.c:2069 #, c-format msgid "Device %s already exists.\n" -msgstr "Das Gerät »%s« existiert bereits.\n" +msgstr "Das Gerät %s existiert bereits.\n" -#: lib/setup.c:2171 +#: lib/setup.c:2080 msgid "Incorrect volume key specified for plain device.\n" msgstr "Falscher Laufwerksschlüssel für Plain-Gerät angegeben.\n" -#: lib/setup.c:2204 +#: lib/setup.c:2113 msgid "Incorrect root hash specified for verity device.\n" msgstr "Falscher Root-Hash-Schlüssel für VERITY-Gerät angegeben.\n" -#: lib/setup.c:2227 +#: lib/setup.c:2136 msgid "Device type is not properly initialised.\n" -msgstr "Geräteart ist nicht richtig initialisiert.\n" +msgstr "Gerätetyp ist nicht richtig initialisiert.\n" -#: lib/setup.c:2259 +#: lib/setup.c:2168 #, c-format msgid "Device %s is still in use.\n" -msgstr "Gerät »%s« wird gerade benutzt.\n" +msgstr "Gerät %s wird gerade noch benutzt.\n" -#: lib/setup.c:2268 +#: lib/setup.c:2177 #, c-format msgid "Invalid device %s.\n" -msgstr "Ungültiges Gerät »%s«.\n" +msgstr "Ungültiges Gerät %s.\n" -#: lib/setup.c:2289 +#: lib/setup.c:2198 msgid "Function not available in FIPS mode.\n" -msgstr "Diese Funktion ist im FIPS-Modus nicht verfügbar.\n" +msgstr "Diese Funktion gibt es im FIPS-Modus nicht.\n" -#: lib/setup.c:2295 +#: lib/setup.c:2204 msgid "Volume key buffer too small.\n" msgstr "Laufwerks-Schlüsselpuffer zu klein.\n" -#: lib/setup.c:2303 +#: lib/setup.c:2212 msgid "Cannot retrieve volume key for plain device.\n" -msgstr "Fehler beim Ermitteln des Laufwerksschlüssels für Plain-Gerät.\n" +msgstr "Kann Laufwerksschlüssel für Plain-Gerät nicht ermitteln.\n" -#: lib/setup.c:2310 +#: lib/setup.c:2219 #, c-format msgid "This operation is not supported for %s crypt device.\n" -msgstr "Diese Operation wird für Kryptogerät »%s« nicht unterstützt.\n" +msgstr "Diese Operation wird für Kryptogerät %s nicht unterstützt.\n" -#: lib/setup.c:2506 +#: lib/setup.c:2416 msgid "Dump operation is not supported for this device type.\n" msgstr "Die Dump-Operation wird für diese Geräteart nicht unterstützt.\n" #: lib/utils.c:244 msgid "Cannot get process priority.\n" -msgstr "Fehler beim Ermitteln der Prozesspriorität.\n" +msgstr "Kann Prozesspriorität nicht ermitteln.\n" #: lib/utils.c:258 msgid "Cannot unlock memory.\n" -msgstr "Fehler beim Entsperren des Speichers.\n" +msgstr "Kann Speicher nicht entsperren.\n" -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 +#: lib/utils_crypt.c:227 lib/utils_crypt.c:240 lib/utils_crypt.c:387 +#: lib/utils_crypt.c:402 msgid "Out of memory while reading passphrase.\n" -msgstr "Zu wenig Speicher zum Einlesen der Passphrase.\n" +msgstr "Zu wenig Speicher zum Einlesen der Passphrasees.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils_crypt.c:232 lib/utils_crypt.c:247 msgid "Error reading passphrase from terminal.\n" msgstr "Fehler beim Lesen der Passphrase vom Terminal.\n" -#: lib/utils_crypt.c:259 +#: lib/utils_crypt.c:245 msgid "Verify passphrase: " -msgstr "Passphrase bestätigen: " +msgstr "Passphrase wiederholen: " -#: lib/utils_crypt.c:266 +#: lib/utils_crypt.c:252 msgid "Passphrases do not match.\n" -msgstr "Passphrasen stimmen nicht überein.\n" +msgstr "Passsätze stimmen nicht überein.\n" -#: lib/utils_crypt.c:350 +#: lib/utils_crypt.c:336 msgid "Cannot use offset with terminal input.\n" -msgstr "Offset kann nicht zusammen mit Terminaleingabe benutzt werden.\n" +msgstr "Kann Offset nicht mit Terminaleingabe nutzen.\n" -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 +#: lib/utils_crypt.c:355 lib/tcrypt/tcrypt.c:443 msgid "Failed to open key file.\n" -msgstr "Fehler beim Öffnen der Schlüsseldatei.\n" +msgstr "Konnte Schlüsseldatei nicht öffnen.\n" -#: lib/utils_crypt.c:378 +#: lib/utils_crypt.c:364 msgid "Failed to stat key file.\n" -msgstr "Fehler beim Öffnen der Schlüsseldatei.\n" +msgstr "Konnte Infos zur Schlüsseldatei nicht bekommen.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 +#: lib/utils_crypt.c:372 lib/utils_crypt.c:393 msgid "Cannot seek to requested keyfile offset.\n" -msgstr "Fehler beim Zugriff auf die Schlüsseldatei.\n" +msgstr "Kann nicht zur gewünschten Position in der Schlüsseldatei springen.\n" -#: lib/utils_crypt.c:424 +#: lib/utils_crypt.c:410 msgid "Error reading passphrase.\n" -msgstr "Fehler beim Einlesen der Passphrase.\n" +msgstr "Fehler beim Einlesen der Passphrasees.\n" -#: lib/utils_crypt.c:442 +#: lib/utils_crypt.c:428 msgid "Maximum keyfile size exceeded.\n" msgstr "Größenbegrenzung für die Schlüsseldatei überschritten.\n" -#: lib/utils_crypt.c:447 +#: lib/utils_crypt.c:433 msgid "Cannot read requested amount of data.\n" -msgstr "Die gewünschte Menge an Daten kann nicht eingelesen werden.\n" +msgstr "Kann die gewünschte Menge an Daten nicht lesen.\n" + +#: lib/utils_fips.c:46 +msgid "FIPS checksum verification failed.\n" +msgstr "FIPS-Prüfsummen-Verifizierung fehlgeschlagen.\n" -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/utils_fips.c:50 +msgid "Running in FIPS mode.\n" +msgstr "Laufe im FIPS-Modus.\n" + +#: lib/utils_device.c:52 lib/luks1/keyencryption.c:82 #, c-format msgid "Device %s doesn't exist or access denied.\n" -msgstr "Gerät »%s« existiert nicht oder Zugriff verweigert.\n" +msgstr "Gerät %s existiert nicht oder ist vor Zugriffen geschützt.\n" -#: lib/utils_device.c:430 +#: lib/utils_device.c:346 msgid "Cannot use a loopback device, running as non-root user.\n" -msgstr "" -"Das Loopback-Gerät kann nicht benutzt werden, da das Programm nicht mit Root-" -"Rechten läuft.\n" +msgstr "Kann das Loopback-Gerät nicht benutzen, weil das Programm nicht mit Root-Rechten läuft.\n" -#: lib/utils_device.c:433 +#: lib/utils_device.c:349 msgid "Cannot find a free loopback device.\n" -msgstr "Kein freies Loopback-Gerät gefunden.\n" +msgstr "Kann kein freies Loopback-Gerät finden.\n" -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" -"Anklemmen des Loopback-Geräts fehlgeschlagen (das Loopback-Gerät benötigt " -"den »autoclear«-Schalter).\n" +#: lib/utils_device.c:356 +msgid "Attaching loopback device failed (loop device with autoclear flag is required).\n" +msgstr "Anklemmen des Loopback-Geräts fehlgeschlagen (das Loopback-Gerät benötigt den autoclear-Schalter).\n" -#: lib/utils_device.c:484 +#: lib/utils_device.c:396 #, c-format msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" -"Gerät »%s« kann nicht benutzt werden, da es bereits anderweitig benutzt " -"wird.\n" +msgstr "Kann Gerät %s nicht nutzen, da es bereits in Betrieb ist.\n" -#: lib/utils_device.c:488 +#: lib/utils_device.c:400 #, c-format msgid "Cannot get info about device %s.\n" -msgstr "Fehler beim Abrufen der Infos über Gerät »%s«.\n" +msgstr "Kann Infos über Gerät %s nicht bekommen.\n" -#: lib/utils_device.c:494 +#: lib/utils_device.c:406 #, c-format msgid "Requested offset is beyond real size of device %s.\n" -msgstr "" -"Der angeforderte Offset ist jenseits der wirklichen Größe des Geräts »%s«.\n" +msgstr "Der angeforderte Offset ist jenseits der wirklichen Größe des Geräts »%s«.\n" -#: lib/utils_device.c:502 +#: lib/utils_device.c:414 #, c-format msgid "Device %s has zero size.\n" -msgstr "Gerät »%s« hat die Größe 0.\n" +msgstr "Gerät %s hat die Größe 0.\n" -#: lib/utils_device.c:513 +#: lib/utils_device.c:425 lib/luks1/keymanage.c:89 #, c-format msgid "Device %s is too small.\n" -msgstr "Gerät »%s« ist zu klein.\n" +msgstr "Gerät %s ist zu klein.\n" -#: lib/luks1/keyencryption.c:37 +#: lib/luks1/keyencryption.c:31 #, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n" msgstr "" -"Einrichten der dm-crypt-Schlüsselzuordnung für Gerät »%s« fehlgeschlagen.\n" -"Stellen Sie sicher, dass der Kernel die Verschlüsselung »%s« unterstützt.\n" +"Einrichten der dm-crypt-Schlüsselzuordnung für Gerät %s fehlgeschlagen.\n" +"Prüfen Sie, dass der Kernel die %s-Verschlüsselung unterstützt.\n" "(Sehen Sie im System-Log nach, ob sich dort Hinweise finden.)\n" -#: lib/luks1/keyencryption.c:42 +#: lib/luks1/keyencryption.c:36 msgid "Key size in XTS mode must be 256 or 512 bits.\n" msgstr "Schlüsselgröße im XTS-Modus muss entweder 256 oder 512 Bits sein.\n" -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 +#: lib/luks1/keyencryption.c:88 lib/luks1/keymanage.c:290 +#: lib/luks1/keymanage.c:559 lib/luks1/keymanage.c:978 #, c-format msgid "Cannot write to device %s, permission denied.\n" -msgstr "Fehler beim Schreiben auf Gerät »%s«, Zugriff verweigert.\n" +msgstr "Kann nicht auf Gerät »%s« schreiben, Zugriff verweigert.\n" -#: lib/luks1/keyencryption.c:111 +#: lib/luks1/keyencryption.c:103 msgid "Failed to open temporary keystore device.\n" -msgstr "Fehler beim Öffnen des temporären Schlüsselspeichergeräts.\n" +msgstr "Öffnen des temporären Schlüsselspeichergeräts fehlgeschlagen.\n" -#: lib/luks1/keyencryption.c:118 +#: lib/luks1/keyencryption.c:110 msgid "Failed to access temporary keystore device.\n" -msgstr "Fehler beim Zugriff auf das temporäre Schlüsselspeichergerät.\n" - -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "E/A-Fehler beim Verschlüsseln des Schlüsselfachs.\n" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "E/A-Fehler beim Entschlüsseln des Schlüsselfachs.\n" - -#: lib/luks1/keymanage.c:90 -#, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "Gerät »%s« ist zu klein. (LUKS benötigt mindestens % Bytes.)\n" +msgstr "Zugriff auf das temporäre Schlüsselspeichergerät fehlgeschlagen.\n" -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 +#: lib/luks1/keymanage.c:175 lib/luks1/keymanage.c:412 +#: src/cryptsetup_reencrypt.c:978 #, c-format msgid "Device %s is not a valid LUKS device.\n" -msgstr "Gerät »%s« ist kein gültiges LUKS-Gerät.\n" +msgstr "Gerät %s ist kein gültiges LUKS-Gerät.\n" -#: lib/luks1/keymanage.c:198 +#: lib/luks1/keymanage.c:193 #, c-format msgid "Requested header backup file %s already exists.\n" msgstr "Angeforderte Header-Backupdatei »%s« existiert bereits.\n" -#: lib/luks1/keymanage.c:200 +#: lib/luks1/keymanage.c:195 #, c-format msgid "Cannot create header backup file %s.\n" -msgstr "Fehler beim Anlegen der Header-Backupdatei »%s«.\n" +msgstr "Kann Header-Backupdatei »%s« nicht anlegen.\n" -#: lib/luks1/keymanage.c:205 +#: lib/luks1/keymanage.c:200 #, c-format msgid "Cannot write header backup file %s.\n" -msgstr "Fehler beim Speichern der Header-Backupdatei »%s«.\n" +msgstr "Kann Sicherungskopie %s des Kopfbereichs nicht schreiben.\n" -#: lib/luks1/keymanage.c:239 +#: lib/luks1/keymanage.c:233 msgid "Backup file doesn't contain valid LUKS header.\n" -msgstr "Backupdatei enthält keinen gültigen LUKS-Header.\n" +msgstr "Sicherungsdatei enthält keinen gültigen LUKS-Kopfbereich.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: lib/luks1/keymanage.c:246 lib/luks1/keymanage.c:483 #, c-format msgid "Cannot open header backup file %s.\n" -msgstr "Fehler beim Öffnen der Header-Backupdatei »%s«.\n" +msgstr "Kann Sicherheitskopie %s des Kopfbereichs nicht öffnen.\n" -#: lib/luks1/keymanage.c:258 +#: lib/luks1/keymanage.c:252 #, c-format msgid "Cannot read header backup file %s.\n" -msgstr "Fehler beim Einlesen der Header-Backupdatei »%s«.\n" +msgstr "Kann Sicherheitskopie %s des Kopfbereichs nicht lesen.\n" -#: lib/luks1/keymanage.c:269 +#: lib/luks1/keymanage.c:263 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"Unterschiedlicher Offset oder Schlüsselgröße zwischen Gerät und Backup. " -"Wiederherstellung fehlgeschlagen.\n" +msgstr "Unterschiedliche Datenposition oder Schlüsselgröße zwischen Gerät und Sicherung, Wiederherstellung fehlgeschlagen.\n" -#: lib/luks1/keymanage.c:277 +#: lib/luks1/keymanage.c:271 #, c-format msgid "Device %s %s%s" -msgstr "Gerät »%s« %s%s" +msgstr "Gerät %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"enthält keinen LUKS-Header. Das Ersetzen des Headers kann Daten auf dem " -"Gerät zerstören." +#: lib/luks1/keymanage.c:272 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "enthält keinen LUKS-Kopfbereich. Das Ersetzen des Kopfbereichs kann Daten auf dem Gerät zerstören." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"enthält bereits einen LUKS-Header. Das Ersetzen des Headers wird bestehende " -"Schlüsselfächer zerstören." +#: lib/luks1/keymanage.c:273 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "enthält bereits einen LUKS-Kopfbereich. Das Ersetzen des Kopfbereichs wird bestehende Schlüsselfächer zerstören." -#: lib/luks1/keymanage.c:280 +#: lib/luks1/keymanage.c:274 msgid "" "\n" "WARNING: real device header has different UUID than backup!" msgstr "" "\n" -"WARNUNG: Der Header des echten Geräts hat eine andere UUID als das Backup!" +"WARNUNG: Der Kopfbereich des echten Geräts hat eine andere UUID als die Sicherung!" -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 +#: lib/luks1/keymanage.c:293 lib/luks1/keymanage.c:522 +#: lib/luks1/keymanage.c:562 lib/tcrypt/tcrypt.c:581 lib/verity/verity.c:82 #: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 #: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 #, c-format msgid "Cannot open device %s.\n" -msgstr "Fehler beim Öffnen des Geräts »%s«.\n" +msgstr "Kann Gerät %s nicht öffnen.\n" -#: lib/luks1/keymanage.c:329 +#: lib/luks1/keymanage.c:323 msgid "Non standard key size, manual repair required.\n" msgstr "Ungewöhnliche Schlüsselgröße, manuelles Reparieren erforderlich.\n" -#: lib/luks1/keymanage.c:334 +#: lib/luks1/keymanage.c:328 msgid "Non standard keyslots alignment, manual repair required.\n" -msgstr "" -"Ungewöhnliche Ausrichtung der Schlüsselfächer, manuelles Reparieren " -"erforderlich.\n" +msgstr "Ungewöhnliche Ausrichtung der Schlüsselfächer, manuelles Reparieren erforderlich.\n" -#: lib/luks1/keymanage.c:340 +#: lib/luks1/keymanage.c:334 msgid "Repairing keyslots.\n" -msgstr "Schlüsselfächer werden repariert.\n" +msgstr "Repariere Schlüsselfächer.\n" -#: lib/luks1/keymanage.c:351 +#: lib/luks1/keymanage.c:345 msgid "Repair failed." -msgstr "Fehler beim Reparieren der Schlüsselfächer." +msgstr "Reparieren fehlgeschlagen." -#: lib/luks1/keymanage.c:363 +#: lib/luks1/keymanage.c:357 #, c-format msgid "Keyslot %i: offset repaired (%u -> %u).\n" -msgstr "Schlüsselfach %i: Offset repariert (%u -> %u).\n" +msgstr "Schlüsselfach %i: Dateiposition repariert (%u -> %u).\n" -#: lib/luks1/keymanage.c:371 +#: lib/luks1/keymanage.c:365 #, c-format msgid "Keyslot %i: stripes repaired (%u -> %u).\n" msgstr "Schlüsselfach %i: Streifen repariert (%u -> %u).\n" -# XXX -#: lib/luks1/keymanage.c:380 +#: lib/luks1/keymanage.c:374 #, c-format msgid "Keyslot %i: bogus partition signature.\n" msgstr "Schlüsselfach %i: schwindlerische Partitions-Signatur.\n" -#: lib/luks1/keymanage.c:385 +#: lib/luks1/keymanage.c:379 #, c-format msgid "Keyslot %i: salt wiped.\n" msgstr "Schlüsselfach %i: Salt gelöscht.\n" -#: lib/luks1/keymanage.c:396 +#: lib/luks1/keymanage.c:390 msgid "Writing LUKS header to disk.\n" -msgstr "LUKS-Header wird auf den Datenträger geschrieben.\n" +msgstr "Schreibe LUKS-Kopfbereich auf die Platte.\n" -#: lib/luks1/keymanage.c:421 +#: lib/luks1/keymanage.c:415 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "Nicht unterstützte LUKS-Version %d.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: lib/luks1/keymanage.c:421 lib/luks1/keymanage.c:626 #, c-format msgid "Requested LUKS hash %s is not supported.\n" -msgstr "Verlangter LUKS-Hash »%s« wird nicht unterstützt.\n" +msgstr "Verlangter LUKS-Hash %s wird nicht unterstützt.\n" -#: lib/luks1/keymanage.c:442 +#: lib/luks1/keymanage.c:436 #, c-format msgid "LUKS keyslot %u is invalid.\n" msgstr "LUKS-Schlüsselfach %u ist ungültig.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 +#: lib/luks1/keymanage.c:450 src/cryptsetup.c:596 msgid "No known problems detected for LUKS header.\n" msgstr "Keine bekannten Probleme im LUKS-Header erkannt.\n" -#: lib/luks1/keymanage.c:596 +#: lib/luks1/keymanage.c:583 #, c-format msgid "Error during update of LUKS header on device %s.\n" -msgstr "Fehler beim Aktualisieren des LUKS-Headers auf Gerät »%s«.\n" +msgstr "Fehler beim Aktualisieren des LUKS-Kopfbereichs auf Gerät %s.\n" -#: lib/luks1/keymanage.c:603 +#: lib/luks1/keymanage.c:590 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" -"Fehler beim Neueinlesen des LUKS-Headers nach dem Aktualisieren auf Gerät " -"»%s«.\n" +msgstr "Fehler beim Neueinlesen des LUKS-Kopfbereichs nach dem Aktualisieren auf Gerät %s.\n" -#: lib/luks1/keymanage.c:654 +#: lib/luks1/keymanage.c:619 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" -"Daten-Offset für separaten LUKS-Header muss entweder 0 sein oder mehr als " -"die Headergröße (%d Sektoren).\n" +msgid "Data offset for detached LUKS header must be either 0 or higher than header size (%d sectors).\n" +msgstr "Daten-Offset für abgetrennten LUKS-Header muss entweder 0 sein oder mehr als die Headergröße (%d Sektoren).\n" -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 +#: lib/luks1/keymanage.c:631 lib/luks1/keymanage.c:718 msgid "Wrong LUKS UUID format provided.\n" msgstr "Falsches LUKS-UUID-Format angegeben.\n" -#: lib/luks1/keymanage.c:695 +#: lib/luks1/keymanage.c:656 msgid "Cannot create LUKS header: reading random salt failed.\n" -msgstr "" -"LUKS-Header kann nicht angelegt werden: Fehler beim Einlesen des zufälligen " -"Salts.\n" +msgstr "Kann LUKS-Kopfbereich nicht erzeugen: Lesen der zufälligen Streuung fehlgeschlagen.\n" -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 +#: lib/luks1/keymanage.c:663 lib/luks1/keymanage.c:759 #, c-format msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" -msgstr "Inkompatible PBKDF2-Optionen (mit Hash-Algorithmus »%s«).\n" +msgstr "Inkompatible PBKDF2-Optionen (mit Hash-Algorithmus %s).\n" -# XXX -#: lib/luks1/keymanage.c:717 +#: lib/luks1/keymanage.c:678 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"LUKS-Header kann nicht angelegt werden: Fehler beim Hashen des Headers (mit " -"Hash-Algorithmus »%s«).\n" +msgstr "Kann LUKS-Kopfbereich nicht erzeugen: Auszug des Kopfbereich fehlgeschlagen (mit Hash %s).\n" -#: lib/luks1/keymanage.c:782 +#: lib/luks1/keymanage.c:743 #, c-format msgid "Key slot %d active, purge first.\n" msgstr "Schlüsselfach %d aktiv, löschen Sie es erst.\n" -#: lib/luks1/keymanage.c:788 +#: lib/luks1/keymanage.c:749 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" -"Material für Schlüsselfach %d enthält zu wenige Streifen. Manipulation des " -"Headers?\n" +msgstr "Material für Schlüsselfach %d enthält zu wenige Streifen. Manipulation des Kopfbereichs?\n" -#: lib/luks1/keymanage.c:950 +#: lib/luks1/keymanage.c:911 #, c-format msgid "Key slot %d unlocked.\n" msgstr "Schlüsselfach %d entsperrt.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: lib/luks1/keymanage.c:946 src/cryptsetup.c:796 +#: src/cryptsetup_reencrypt.c:882 src/cryptsetup_reencrypt.c:916 msgid "No key available with this passphrase.\n" msgstr "Kein Schlüssel mit dieser Passphrase verfügbar.\n" -#: lib/luks1/keymanage.c:1003 +#: lib/luks1/keymanage.c:964 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" -msgstr "" -"Schlüsselfach %d ist ungültig, bitte wählen Sie ein Schlüsselfach zwischen 0 " -"und %d.\n" +msgstr "Schlüsselfach %d ist ungültig, bitte wählen Sie ein Schlüsselfach zwischen 0 und %d.\n" -#: lib/luks1/keymanage.c:1021 +#: lib/luks1/keymanage.c:982 #, c-format msgid "Cannot wipe device %s.\n" -msgstr "Gerät »%s« kann nicht ausgelöscht werden.\n" +msgstr "Kann Gerät %s nicht auslöschen.\n" #: lib/loopaes/loopaes.c:146 msgid "Detected not yet supported GPG encrypted keyfile.\n" @@ -697,9 +639,7 @@ msgstr "Noch nicht unterstützte GPG-Schlüsseldatei erkannt.\n" #: lib/loopaes/loopaes.c:147 msgid "Please use gpg --decrypt | cryptsetup --keyfile=- ...\n" -msgstr "" -"Bitte benutzen Sie »gpg --decrypt | cryptsetup --keyfile=- " -"…«\n" +msgstr "Bitte benutzen Sie »gpg --decrypt | cryptsetup --keyfile=- ...«\n" #: lib/loopaes/loopaes.c:168 lib/loopaes/loopaes.c:188 msgid "Incompatible loop-AES keyfile detected.\n" @@ -709,64 +649,64 @@ msgstr "Inkompatible Loop-AES-Schlüsseldatei erkannt.\n" msgid "Kernel doesn't support loop-AES compatible mapping.\n" msgstr "Kernel unterstützt Loop-AES-kompatibles Mapping nicht.\n" -#: lib/tcrypt/tcrypt.c:475 +#: lib/tcrypt/tcrypt.c:451 #, c-format msgid "Error reading keyfile %s.\n" msgstr "Fehler beim Einlesen der Schlüsseldatei »%s«.\n" -#: lib/tcrypt/tcrypt.c:513 +#: lib/tcrypt/tcrypt.c:489 #, c-format msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" -msgstr "Maximale Länge der TCRYPT-Passphrase (%d) überschritten.\n" +msgstr "Maximale Länge der TCRYPT-Passphrasees (%d) überschritten.\n" -#: lib/tcrypt/tcrypt.c:543 +#: lib/tcrypt/tcrypt.c:518 #, c-format msgid "PBKDF2 hash algorithm %s not available, skipping.\n" -msgstr "" -"Der Hash-Algorithmus »%s« für PBKDF2 wird nicht unterstützt, überspringe " -"diesen Teil.\n" +msgstr "Der Hash-Algorithmus »%s« für PBKDF2 wird nicht unterstützt, überspringe diesen Teil.\n" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 +#: lib/tcrypt/tcrypt.c:536 src/cryptsetup.c:549 msgid "Required kernel crypto interface not available.\n" msgstr "Die benötigte Crypto-Kernel-Schnittstelle ist nicht verfügbar.\n" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 +#: lib/tcrypt/tcrypt.c:538 src/cryptsetup.c:551 msgid "Ensure you have algif_skcipher kernel module loaded.\n" -msgstr "" -"Stellen Sie sicher, dass das Kernelmodul »algif_skcipher« geladen ist.\n" +msgstr "Stellen Sie sicher, dass das Kernelmodul »algif_skcipher« geladen ist.\n" + +#: lib/tcrypt/tcrypt.c:591 +#, c-format +msgid "WARNING: device %s is a partition, for TCRYPT system encryption you usually need to use whole block device path.\n" +msgstr "WARNUNG: Gerät »%s« ist eine Partition, für TCRYPT-Systemverschlüsselung müssen Sie normalerweise ein komplettes Gerät auswählen.\n" -#: lib/tcrypt/tcrypt.c:707 +#: lib/tcrypt/tcrypt.c:667 #, c-format msgid "Activation is not supported for %d sector size.\n" msgstr "Aktivierung wird für die Sektorengröße %d nicht unterstützt.\n" -#: lib/tcrypt/tcrypt.c:713 +#: lib/tcrypt/tcrypt.c:673 msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" -msgstr "" -"Der Kernel unterstützt die Aktivierung für diesen TCRYPT-Legacymodus nicht.\n" +msgstr "Der Kernel unterstützt die Aktivierung für diesen TCRYPT-Legacymodus nicht.\n" -#: lib/tcrypt/tcrypt.c:744 +#: lib/tcrypt/tcrypt.c:701 #, c-format msgid "Activating TCRYPT system encryption for partition %s.\n" -msgstr "TCRYPT-Systemverschlüsselung für Partition »%s« wird aktiviert.\n" +msgstr "Aktiviere TCRYPT-Systemverschlüsselung für Partition »%s«.\n" -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "Kernel unterstützt TCRYPT-kompatibles Mapping nicht.\n" +#: lib/tcrypt/tcrypt.c:756 +msgid "Kernel doesn't support plain64 IV.\n" +msgstr "Kernel unterstützt den plain64-IV nicht.\n" -#: lib/tcrypt/tcrypt.c:1020 +#: lib/tcrypt/tcrypt.c:961 msgid "This function is not supported without TCRYPT header load." msgstr "Diese Funktionalität braucht einen geladenen TCRYPT-Header." #: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "Verity-Gerät »%s« benutzt keinen Header auf dem Datenträger.\n" +msgid "Verity device doesn't use on-disk header.\n" +msgstr "Verity-Gerät benutzt keinen Kopfbereich auf der Platte.\n" #: lib/verity/verity.c:94 #, c-format msgid "Device %s is not a valid VERITY device.\n" -msgstr "Gerät »%s« ist kein gültiges VERITY-Gerät.\n" +msgstr "Gerät %s ist kein gültiges VERITY-Gerät.\n" #: lib/verity/verity.c:101 #, c-format @@ -778,14 +718,13 @@ msgid "VERITY header corrupted.\n" msgstr "VERITY-Header verfälscht.\n" #: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "Falsches VERITY-UUID-Format über Gerät »%s« angegeben.\n" +msgid "Wrong VERITY UUID format provided.\n" +msgstr "Falsches VERITY-UUID-Format angegeben.\n" #: lib/verity/verity.c:196 #, c-format msgid "Error during update of verity header on device %s.\n" -msgstr "Fehler beim Aktualisieren des VERITY-Headers auf Gerät »%s«.\n" +msgstr "Fehler beim Aktualisieren des VERITY-Kopfbereichs auf Gerät %s.\n" #: lib/verity/verity.c:276 msgid "Kernel doesn't support dm-verity mapping.\n" @@ -793,13 +732,12 @@ msgstr "Kernel unterstützt dm-verity-Zuordnung nicht.\n" #: lib/verity/verity.c:287 msgid "Verity device detected corruption after activation.\n" -msgstr "" -"Verity-Gerät hat eine Verfälschung nach der Aktivierung festgestellt.\n" +msgstr "Verity-Gerät hat eine Verfälschung nach der Aktivierung festgestellt.\n" #: lib/verity/verity_hash.c:59 #, c-format msgid "Spare area is not zeroed at position %.\n" -msgstr "Zusätzlicher Platz an Position % ist nicht ausgenullt.\n" +msgstr "Zusätzlicher Platz ist nicht ausgenullt an Position %.\n" #: lib/verity/verity_hash.c:121 lib/verity/verity_hash.c:249 #: lib/verity/verity_hash.c:277 lib/verity/verity_hash.c:284 @@ -809,7 +747,7 @@ msgstr "Überlauf beim Geräte-Offset.\n" #: lib/verity/verity_hash.c:161 #, c-format msgid "Verification failed at position %.\n" -msgstr "Fehler beim Verifizieren an Position %.\n" +msgstr "Verifikation fehlgeschlagen an Position %.\n" #: lib/verity/verity_hash.c:235 msgid "Invalid size parameters for verity device.\n" @@ -821,11 +759,11 @@ msgstr "Zu viele Ebenen für Verity-Laufwerk.\n" #: lib/verity/verity_hash.c:354 msgid "Verification of data area failed.\n" -msgstr "Fehler beim Verifizieren des Datenbereichs.\n" +msgstr "Verifikation des Datenbereichs fehlgeschlagen.\n" #: lib/verity/verity_hash.c:359 msgid "Verification of root hash failed.\n" -msgstr "Fehler beim Verifizieren des Root-Hashes.\n" +msgstr "Verifikation des Root-Hashes fehlgeschlagen.\n" #: lib/verity/verity_hash.c:365 msgid "Input/output error while creating hash area.\n" @@ -833,51 +771,35 @@ msgstr "E/A-Fehler beim Anlegen des Hash-Bereiches.\n" #: lib/verity/verity_hash.c:367 msgid "Creation of hash area failed.\n" -msgstr "Fehler beim Anlegen des Hash-Bereiches.\n" +msgstr "Anlegen des Hash-Bereiches fehlgeschlagen.\n" #: lib/verity/verity_hash.c:414 #, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" -"WARNUNG: Kernel kann das Gerät nicht aktivieren, wenn die Datenblockgröße " -"die Seitengröße (%u) übersteigt.\n" +msgid "WARNING: Kernel cannot activate device if data block size exceeds page size (%u).\n" +msgstr "WARNUNG: Kernel kann das Gerät nicht aktivieren, wenn die Datenblockgröße die Seitengröße (%u) übersteigt.\n" -#: src/cryptsetup.c:91 +#: src/cryptsetup.c:79 msgid "Can't do passphrase verification on non-tty inputs.\n" -msgstr "Passphrase-Verifikation ist nur auf Terminal-Eingaben möglich.\n" +msgstr "Kann die Passphrase-Verifikation nur auf Terminal-Eingaben durchführen.\n" + +#: src/cryptsetup.c:110 +msgid "Ignoring keyfile offset and size options, keyfile read size is always the same as encryption key size.\n" +msgstr "Ignoriere Optionen für Schlüsseldatei-Offset und -Größe, da die Schlüsseldatei immer genau so groß ist wie der Verschlüsselungsschlüssel.\n" -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 +#: src/cryptsetup.c:116 src/cryptsetup.c:495 src/cryptsetup.c:639 +#: src/cryptsetup_reencrypt.c:485 src/cryptsetup_reencrypt.c:520 msgid "No known cipher specification pattern detected.\n" msgstr "Kein bekanntes Verschlüsselungsmuster entdeckt.\n" -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" -"WARNUNG: Der Parameter --hash wird im Plain-Modus ignoriert, wenn eine " -"Schlüsseldatei angegeben ist.\n" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" -"WARNUNG: Die Option --keyfile-size wird ignoriert, da die Lesegröße die " -"gleiche ist wie die Verschlüsselungsschlüsselgröße ist.\n" - -#: src/cryptsetup.c:218 +#: src/cryptsetup.c:183 msgid "Option --key-file is required.\n" -msgstr "Die Option »--key-file« muss angegeben werden.\n" +msgstr "Die Option --key-file wird benötigt.\n" -#: src/cryptsetup.c:267 +#: src/cryptsetup.c:254 src/cryptsetup.c:340 msgid "No device header detected with this passphrase.\n" msgstr "Kein Geräte-Header mit dieser Passphrase gefunden.\n" -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 +#: src/cryptsetup.c:269 src/cryptsetup.c:1065 msgid "" "Header dump with volume key is sensitive information\n" "which allows access to encrypted partition without passphrase.\n" @@ -889,240 +811,210 @@ msgstr "" "daher ausschließlich an einem sicheren Ort und verschlüsselt\n" "aufbewahrt werden." -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "Das Ergebnis des Benchmarks ist nicht zuverlässig.\n" - -#: src/cryptsetup.c:558 +#: src/cryptsetup.c:489 msgid "# Tests are approximate using memory only (no storage IO).\n" -msgstr "" -"# Die Tests sind nur annähernd genau, da sie nicht auf den Datenträger " -"zugreifen.\n" +msgstr "# Die Tests sind nur annähernd genau, da sie nicht auf die Festplatte zugreifen.\n" -#: src/cryptsetup.c:583 src/cryptsetup.c:605 +#: src/cryptsetup.c:511 src/cryptsetup.c:533 msgid "# Algorithm | Key | Encryption | Decryption\n" msgstr "# Algorithmus | Schlüssel | Verschlüsselung | Entschlüsselung\n" -#: src/cryptsetup.c:587 +#: src/cryptsetup.c:515 #, c-format msgid "Cipher %s is not available.\n" msgstr "Verschlüsselung »%s« ist nicht verfügbar.\n" -#: src/cryptsetup.c:614 +#: src/cryptsetup.c:542 msgid "N/A" msgstr "N/A" -#: src/cryptsetup.c:639 +#: src/cryptsetup.c:567 #, c-format msgid "Cannot read keyfile %s.\n" -msgstr "Fehler beim Einlesen der Schlüsseldatei »%s«.\n" +msgstr "Kann Schlüsseldatei »%s« nicht lesen.\n" -#: src/cryptsetup.c:643 +#: src/cryptsetup.c:571 #, c-format msgid "Cannot read %d bytes from keyfile %s.\n" -msgstr "Fehler beim Einlesen von %d Bytes aus der Schlüsseldatei »%s«.\n" +msgstr "Kann %d Bytes aus der Schlüsseldatei %s nicht lesen.\n" -#: src/cryptsetup.c:672 +#: src/cryptsetup.c:600 msgid "Really try to repair LUKS device header?" msgstr "Wirklich versuchen, den LUKS-Geräteheader wiederherzustellen?" -#: src/cryptsetup.c:697 +#: src/cryptsetup.c:625 #, c-format msgid "This will overwrite data on %s irrevocably." -msgstr "Hiermit werden die Daten auf »%s« unwiderruflich überschrieben." +msgstr "Hiermit überschreiben Sie Daten auf %s unwiderruflich." -#: src/cryptsetup.c:699 +#: src/cryptsetup.c:627 msgid "memory allocation error in action_luksFormat" msgstr "Speicherproblem in action_luksFormat" -#: src/cryptsetup.c:717 +#: src/cryptsetup.c:645 #, c-format msgid "Cannot use %s as on-disk header.\n" -msgstr "Das Gerät »%s« kann nicht als Datenträger-Header benutzt werden.\n" +msgstr "Kann »%s« nicht als Auf-Platte-Kopfbereich nutzen.\n" -#: src/cryptsetup.c:784 +#: src/cryptsetup.c:718 msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "Verringerter Datenoffset ist nur für separaten LUKS-Header erlaubt.\n" +msgstr "Verringerter Datenoffset ist nur für abgetrennten LUKS-Kopfbereich erlaubt.\n" -#: src/cryptsetup.c:881 src/cryptsetup.c:937 +#: src/cryptsetup.c:819 src/cryptsetup.c:875 #, c-format msgid "Key slot %d selected for deletion.\n" msgstr "Schlüsselfach %d zum Löschen ausgewählt.\n" -#: src/cryptsetup.c:884 +#: src/cryptsetup.c:822 #, c-format msgid "Key %d not active. Can't wipe.\n" -msgstr "" -"Schlüssel %d ist nicht aktiv und kann daher nicht ausgelöscht werden.\n" +msgstr "Schlüssel %d nicht aktiv. Kann nicht auslöschen.\n" -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"Dies ist das letzte Schlüsselfach. Wenn Sie diesen Schlüssel löschen, wird " -"das Gerät unbrauchbar." +#: src/cryptsetup.c:830 src/cryptsetup.c:878 +msgid "This is the last keyslot. Device will become unusable after purging this key." +msgstr "Dies ist das letzte Schlüsselfach. Wenn Sie das auch noch löschen, wird das Gerät unbrauchbar." -#: src/cryptsetup.c:893 +#: src/cryptsetup.c:831 msgid "Enter any remaining passphrase: " -msgstr "Geben Sie irgendeine verbleibende Passphrase ein: " +msgstr "Geben Sie eine eventuell weitere Passphrase ein: " -#: src/cryptsetup.c:921 +#: src/cryptsetup.c:859 msgid "Enter passphrase to be deleted: " msgstr "Geben Sie die zu löschende Passphrase ein: " -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format +#: src/cryptsetup.c:928 src/cryptsetup_reencrypt.c:948 msgid "Enter any existing passphrase: " msgstr "Geben Sie irgendeine bestehende Passphrase ein: " -#: src/cryptsetup.c:1052 +#: src/cryptsetup.c:977 msgid "Enter passphrase to be changed: " msgstr "Geben Sie die zu ändernde Passphrase ein: " -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 +#: src/cryptsetup.c:991 src/cryptsetup_reencrypt.c:934 msgid "Enter new passphrase: " msgstr "Geben Sie die neue Passphrase ein: " -#: src/cryptsetup.c:1090 +#: src/cryptsetup.c:1015 msgid "Only one device argument for isLuks operation is supported.\n" -msgstr "Die Operation »isLuks« unterstützt nur genau ein Geräte-Argument.\n" +msgstr "Die isLuks-Operation unterstützt nur genau ein Geräte-Argument.\n" -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 +#: src/cryptsetup.c:1171 src/cryptsetup.c:1192 msgid "Option --header-backup-file is required.\n" -msgstr "Option »--header-backup-file« muss angegeben werden.\n" +msgstr "Option --header-backup-file wird benötigt.\n" -#: src/cryptsetup.c:1304 +#: src/cryptsetup.c:1229 #, c-format msgid "Unrecognized metadata device type %s.\n" msgstr "Unbekannte Art »%s« des Metadaten-Geräts.\n" -#: src/cryptsetup.c:1307 +#: src/cryptsetup.c:1232 msgid "Command requires device and mapped name as arguments.\n" -msgstr "" -"Dieser Befehl benötigt den Gerätenamen und den zugeordneten Namen als " -"Argumente.\n" - -#: src/cryptsetup.c:1326 -#, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Diese Operation wird alle Schlüsselfächer auf Gerät »%s« löschen.\n" -"Dadurch wird das Gerät unbrauchbar." +msgstr "Diese Anweisung benötigt den Gerätenamen und den zugeordneten Namen als Argumente.\n" -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid " [--type ] []" -msgstr " [--type ] []" +msgstr " [--type ] [ ]" -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid "open device as mapping " msgstr "Gerät als Zuordnung öffnen" -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 +#: src/cryptsetup.c:1245 src/cryptsetup.c:1246 src/cryptsetup.c:1247 +#: src/cryptsetup.c:1248 src/veritysetup.c:310 src/veritysetup.c:311 msgid "" msgstr "" -#: src/cryptsetup.c:1361 +#: src/cryptsetup.c:1245 msgid "close device (remove mapping)" msgstr "Gerät schließen (Zuordnung entfernen)" -#: src/cryptsetup.c:1362 +#: src/cryptsetup.c:1246 msgid "resize active device" msgstr "Größe des aktiven Geräts ändern" -#: src/cryptsetup.c:1363 +#: src/cryptsetup.c:1247 msgid "show device status" msgstr "Gerätestatus anzeigen" -#: src/cryptsetup.c:1364 +#: src/cryptsetup.c:1248 msgid "benchmark cipher" msgstr "Verschlüsselungsalgorithmus benchmarken" -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1249 src/cryptsetup.c:1255 src/cryptsetup.c:1256 +#: src/cryptsetup.c:1257 src/cryptsetup.c:1258 src/cryptsetup.c:1259 +#: src/cryptsetup.c:1260 src/cryptsetup.c:1261 src/cryptsetup.c:1262 msgid "" msgstr "" -#: src/cryptsetup.c:1365 +#: src/cryptsetup.c:1249 msgid "try to repair on-disk metadata" -msgstr "Versuchen, die Metadaten auf dem Datenträger zu reparieren" +msgstr "Versuche die Auf-Platte-Metadaten zu reparieren" -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "Alle Schlüsselfächer löschen (Verschlüsselungsschlüssel entfernen)" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 +#: src/cryptsetup.c:1250 src/cryptsetup.c:1251 msgid " []" msgstr " []" -#: src/cryptsetup.c:1367 +#: src/cryptsetup.c:1250 msgid "formats a LUKS device" -msgstr "Ein LUKS-Gerät formatieren" +msgstr "Formatiert ein LUKS-Gerät" -#: src/cryptsetup.c:1368 +#: src/cryptsetup.c:1251 msgid "add key to LUKS device" msgstr "Schlüssel zu LUKS-Gerät hinzufügen" -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 +#: src/cryptsetup.c:1252 src/cryptsetup.c:1253 msgid " []" msgstr " []" -#: src/cryptsetup.c:1369 +#: src/cryptsetup.c:1252 msgid "removes supplied key or key file from LUKS device" msgstr "Entfernt bereitgestellten Schlüssel oder Schlüsseldatei vom LUKS-Gerät" -#: src/cryptsetup.c:1370 +#: src/cryptsetup.c:1253 msgid "changes supplied key or key file of LUKS device" -msgstr "" -"Ändert den angegebenen Schlüssel oder die Schlüsseldatei des LUKS-Geräts" +msgstr "Ändert den angegebenen Schlüssel oder die Schlüsseldatei des LUKS-Geräts" -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid " " msgstr " " -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid "wipes key with number from LUKS device" msgstr "Löscht Schlüssel mit Nummer vom LUKS-Gerät" -#: src/cryptsetup.c:1372 +#: src/cryptsetup.c:1255 msgid "print UUID of LUKS device" msgstr "UUID des LUKS-Geräts ausgeben" -#: src/cryptsetup.c:1373 +#: src/cryptsetup.c:1256 msgid "tests for LUKS partition header" -msgstr "Testet auf Header einer LUKS-Partition" +msgstr "Testet auf Kopfbereich einer LUKS-Partition" -#: src/cryptsetup.c:1374 +#: src/cryptsetup.c:1257 msgid "dump LUKS partition information" msgstr "LUKS-Partitionsinformationen ausgeben" -#: src/cryptsetup.c:1375 +#: src/cryptsetup.c:1258 msgid "dump TCRYPT device information" msgstr "TCRYPT-Geräteinformationen ausgeben" -#: src/cryptsetup.c:1376 +#: src/cryptsetup.c:1259 msgid "Suspend LUKS device and wipe key (all IOs are frozen)." -msgstr "" -"LUKS-Gerät in Ruhezustand versetzen und alle Schlüssel auslöschen (alle IOs " -"werden eingefroren)." +msgstr "LUKS-Gerät ausschalten und alle Schlüssel auslöschen (alle IOs werden eingefroren)." -#: src/cryptsetup.c:1377 +#: src/cryptsetup.c:1260 msgid "Resume suspended LUKS device." -msgstr "LUKS-Gerät aus dem Ruhezustand aufwecken." +msgstr "Ausgeschaltetes LUKS-Gerät wiederanschalten." -#: src/cryptsetup.c:1378 +#: src/cryptsetup.c:1261 msgid "Backup LUKS device header and keyslots" -msgstr "Header und Schlüsselfächer eines LUKS-Geräts sichern" +msgstr "Sichern des Kopfbereichs und der Schlüsselfächer eines LUKS-Geräts" -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1262 msgid "Restore LUKS device header and keyslots" -msgstr "Header und Schlüsselfächer eines LUKS-Geräts wiederherstellen" +msgstr "Wiederherstellen des Kopfbereichs und der Schlüsselfächer eines LUKS-Geräts" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:1279 src/veritysetup.c:327 msgid "" "\n" " is one of:\n" @@ -1130,7 +1022,7 @@ msgstr "" "\n" " ist eine von:\n" -#: src/cryptsetup.c:1402 +#: src/cryptsetup.c:1285 msgid "" "\n" "You can also use old syntax aliases:\n" @@ -1138,11 +1030,11 @@ msgid "" "\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" msgstr "" "\n" -"Sie können auch die alten -Aliase benutzen:\n" +"Sie können auch die alten -Aliase benutzen:\n" "\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" "\tclose: remove (plainClose), luksClose, lookaesClose, tcryptClose\n" -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:1289 #, c-format msgid "" "\n" @@ -1152,28 +1044,25 @@ msgid "" " optional key file for the new key for luksAddKey action\n" msgstr "" "\n" -" ist das Gerät, das unter »%s« erzeugt wird\n" +" ist das Gerät, das unter %s erzeugt wird\n" " ist das verschlüsselte Gerät\n" " ist die Nummer des zu verändernden LUKS-Schlüsselfachs\n" -" optionale Schlüsseldatei für den neuen Schlüssel der " -"»luksAddKey«-Aktion\n" +" optionale Schlüsseldatei für für den neuen Schlüssel der »luksAddKey«-Aktion\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:1296 #, c-format msgid "" "\n" "Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" +"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d (characters)\n" "Default PBKDF2 iteration time for LUKS: %d (ms)\n" msgstr "" "\n" -"Vorgabewerte für Schlüssel und Passphrasen:\n" -"\tMaximale Größe der Schlüsseldatei: %dkB, Maximale Länge der interaktiven " -"Passphrase: %d Zeichen\n" -"Vorgabe für die Durchlaufzeit für PBKDF2 mit LUKS: %d Millisekunden\n" +"Vorgabewerte für Schlüssel und Passsätze:\n" +"\tMaximale Größe der Schlüsseldatei: %dkB, Maximale Länge der interaktiven Passphrase: %d Zeichen\n" +"Vorgabe für die Durchlaufzeit für PBKDF2 mit LIKS: %d Millisekunden\n" -#: src/cryptsetup.c:1420 +#: src/cryptsetup.c:1303 #, c-format msgid "" "\n" @@ -1186,387 +1075,325 @@ msgstr "" "Standard-Verschlüsselungsparameter:\n" "\tLoop-AES: %s, Schlüssel %d Bits\n" "\tplain: %s, Schlüssel: %d Bits, Passphrase-Hashen: %s\n" -"\tLUKS1: %s, Schlüssel: %d Bits, LUKS-Header-Hashen: %s, " -"Zufallszahlengenerator: %s\n" +"\tLUKS1: %s, Schlüssel: %d Bits, LUKS-Kopfbereich-Hashen: %s, Zufallszahlengenerator: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 +#: src/cryptsetup.c:1320 src/veritysetup.c:459 #, c-format msgid "%s: requires %s as arguments" msgstr "%s: Benötigt %s als Argumente" -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:1353 src/veritysetup.c:367 src/cryptsetup_reencrypt.c:1099 msgid "Show this help message" msgstr "Diese Hilfe anzeigen" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:1354 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1100 msgid "Display brief usage" msgstr "Kurze Aufrufsyntax anzeigen" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:1358 src/veritysetup.c:372 src/cryptsetup_reencrypt.c:1104 msgid "Help options:" msgstr "Hilfe-Optionen:" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 +#: src/cryptsetup.c:1359 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1105 msgid "Print package version" msgstr "Paketversion ausgeben" -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:1360 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1106 msgid "Shows more detailed error messages" msgstr "Zeigt detailliertere Fehlermeldungen an" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:1361 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1107 msgid "Show debug messages" msgstr "Zeigt Debugging-Meldungen an" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:1362 src/cryptsetup_reencrypt.c:1109 msgid "The cipher used to encrypt the disk (see /proc/crypto)" -msgstr "" -"Der Algorithmus zum Verschlüsseln des Datenträgers (siehe /proc/crypto)" +msgstr "Der Algorithmus zum Verschlüsseln der Platte (siehe /proc/crypto)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:1363 src/cryptsetup_reencrypt.c:1111 msgid "The hash used to create the encryption key from the passphrase" -msgstr "" -"Das Hashverfahren, um den Verschlüsselungsschlüssel aus der Passphrase zu " -"erzeugen" +msgstr "Das Hashverfahren, um den Verschlüsselungsschlüssel aus der Passphrase zu erzeugen" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:1364 msgid "Verifies the passphrase by asking for it twice" msgstr "Verifiziert die Passphrase durch doppeltes Nachfragen" -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 +#: src/cryptsetup.c:1365 src/cryptsetup_reencrypt.c:1112 msgid "Read the key from a file." msgstr "Schlüssel aus einer Datei lesen." -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:1366 msgid "Read the volume (master) key from file." msgstr "Laufwerks-(Master-)Schlüssel aus Datei lesen." -#: src/cryptsetup.c:1484 +#: src/cryptsetup.c:1367 msgid "Dump volume (master) key instead of keyslots info." -msgstr "" -"Laufwerks-(Master-)schlüssel anstelle der Schlüsselfach-Informationen " -"wegschreiben." +msgstr "Laufwerksschlüssel (Master) anstelle der Schlüsselfach-Informationen wegschreiben." -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "The size of the encryption key" msgstr "Die Größe des Verschlüsselungsschlüssels" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "BITS" msgstr "BITS" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 +#: src/cryptsetup.c:1369 src/cryptsetup_reencrypt.c:1123 msgid "Limits the read from keyfile" msgstr "Begrenzt das Lesen aus der Schlüsseldatei" -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 src/cryptsetup.c:1371 +#: src/cryptsetup.c:1372 src/veritysetup.c:378 src/veritysetup.c:379 +#: src/veritysetup.c:381 src/cryptsetup_reencrypt.c:1122 +#: src/cryptsetup_reencrypt.c:1123 src/cryptsetup_reencrypt.c:1124 +#: src/cryptsetup_reencrypt.c:1125 msgid "bytes" msgstr "Bytes" -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 +#: src/cryptsetup.c:1370 src/cryptsetup_reencrypt.c:1122 msgid "Number of bytes to skip in keyfile" msgstr "Anzahl der Bytes, die in der Schlüsseldatei übersprungen werden" -#: src/cryptsetup.c:1488 +#: src/cryptsetup.c:1371 msgid "Limits the read from newly added keyfile" msgstr "Begrenzt das Lesen aus der neu erzeugten Schlüsseldatei" -#: src/cryptsetup.c:1489 +#: src/cryptsetup.c:1372 msgid "Number of bytes to skip in newly added keyfile" -msgstr "" -"Anzahl der Bytes, die in der neu erzeugten Schlüsseldatei übersprungen werden" +msgstr "Anzahl der Bytes, die in der neu erzeugten Schlüsseldatei übersprungen werden" -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:1373 msgid "Slot number for new key (default is first free)" -msgstr "Fachnummer für den neuen Schlüssel (im Zweifel das nächste freie)" +msgstr "Fachnummer für den neuen Schlüssel (im Zweifel das nächste leere)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:1374 msgid "The size of the device" msgstr "Die Größe des Geräts" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1374 src/cryptsetup.c:1375 src/cryptsetup.c:1376 +#: src/cryptsetup.c:1382 msgid "SECTORS" msgstr "SEKTOREN" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:1375 msgid "The start offset in the backend device" -msgstr "Der Startoffset im Backend-Gerät" +msgstr "Der Startabstand im Backend-Gerät" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:1376 msgid "How many sectors of the encrypted data to skip at the beginning" -msgstr "" -"Wieviele Sektoren der verschlüsselten Daten am Anfang übersprungen werden " -"sollen" +msgstr "Wieviele Sektoren der verschlüsselten Daten am Anfang übersprungen werden sollen" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:1377 msgid "Create a readonly mapping" msgstr "Eine schreibgeschützte Zuordnung erzeugen" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "PBKDF2 Iterationszeit for LUKS (in ms)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "msecs" msgstr "msek" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:1379 src/cryptsetup_reencrypt.c:1114 msgid "Do not ask for confirmation" -msgstr "Nicht nach Bestätigung fragen" +msgstr "Nicht auf Bestätigung warten" -# XXX -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "Timeout for interactive passphrase prompt (in seconds)" msgstr "Frist für interaktive Eingabe der Passphrase (in Sekunden)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "secs" msgstr "sek" -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:1381 src/cryptsetup_reencrypt.c:1115 msgid "How often the input of the passphrase can be retried" msgstr "Wie oft die Eingabe der Passphrase wiederholt werden kann" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1382 msgid "Align payload at sector boundaries - for luksFormat" msgstr "Nutzdaten an Grenzen von Sektoren ausrichten - für luksFormat" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:1383 msgid "File with LUKS header and keyslots backup." -msgstr "Datei mit dem Backup der LUKS-Header und den Schlüsselfächern." +msgstr "Datei mit der Sicherung der LUKS-Kopfdateien und den Schlüsselfächern." -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 +#: src/cryptsetup.c:1384 src/cryptsetup_reencrypt.c:1116 msgid "Use /dev/random for generating volume key." msgstr "/dev/random zum Generieren des Laufwerksschlüssels benutzen." -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 +#: src/cryptsetup.c:1385 src/cryptsetup_reencrypt.c:1117 msgid "Use /dev/urandom for generating volume key." msgstr "/dev/urandom zum Generieren des Laufwerksschlüssels benutzen." -#: src/cryptsetup.c:1503 +#: src/cryptsetup.c:1386 msgid "Share device with another non-overlapping crypt segment." msgstr "Gerät mit einem anderen nicht-überlappenden Kryptosegment teilen." -#: src/cryptsetup.c:1504 src/veritysetup.c:385 +#: src/cryptsetup.c:1387 src/veritysetup.c:384 msgid "UUID for device to use." msgstr "UUID für das zu verwendende Gerät." -#: src/cryptsetup.c:1505 +#: src/cryptsetup.c:1388 msgid "Allow discards (aka TRIM) requests for device." -msgstr "Auswurf-Anfragen (»TRIM«-Befehl) für das Gerät zulassen." +msgstr "TRIM-Befehle für das Gerät zulassen." -#: src/cryptsetup.c:1506 +#: src/cryptsetup.c:1389 msgid "Device or file with separated LUKS header." -msgstr "Gerät oder Datei mit separatem LUKS-Header." +msgstr "Gerät oder Datei mit separatem LUKS-Kopfbereich." -#: src/cryptsetup.c:1507 +#: src/cryptsetup.c:1390 msgid "Do not activate device, just check passphrase." msgstr "Gerät nicht aktivieren, nur Passphrase überprüfen." -#: src/cryptsetup.c:1508 +#: src/cryptsetup.c:1391 msgid "Use hidden header (hidden TCRYPT device)." msgstr "Versteckten Header benutzen (verstecktes TCRYPT-Gerät)." -#: src/cryptsetup.c:1509 +#: src/cryptsetup.c:1392 msgid "Device is system TCRYPT drive (with bootloader)." msgstr "Das Gerät ist das System-TCRYPT-Laufwerk (mit Bootlader)." -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "Backup-(Zweit-)-TCRYPT-Header benutzen." - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "Auch nach VeryCrypt-kompatiblen Geräten suchen." - -#: src/cryptsetup.c:1512 +#: src/cryptsetup.c:1393 msgid "Type of device metadata: luks, plain, loopaes, tcrypt." msgstr "Art der Geräte-Metadaten: luks, plain, loopaes, tcrypt." -#: src/cryptsetup.c:1513 +#: src/cryptsetup.c:1394 msgid "Disable password quality check (if enabled)." msgstr "Passwort-Qualitätsprüfung deaktivieren (wenn sie aktiviert ist)." -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "" -"Kompatibilitäts-Performance-Option »same_cpu_crypt« für dm-crypt benutzen." - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" -"Kompatibilitäts-Performance-Option »submit_from_crypt_cpus« für dm-crypt " -"benutzen." - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 +#: src/cryptsetup.c:1412 src/veritysetup.c:401 msgid "[OPTION...] " msgstr "[OPTION...] " -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "Laufe im FIPS-Modus.\n" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 +#: src/cryptsetup.c:1458 src/veritysetup.c:438 msgid "Argument missing." msgstr "Argument fehlt." -#: src/cryptsetup.c:1634 src/veritysetup.c:445 +#: src/cryptsetup.c:1506 src/veritysetup.c:444 msgid "Unknown action." msgstr "Unbekannte Aktion." -#: src/cryptsetup.c:1644 +#: src/cryptsetup.c:1516 msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "Die Option --shared ist nur beim Öffnen eines Plain-Geräts erlaubt.\n" +msgstr "Die Option --shared ist nur beim Öffnen eines einfachen Geräts erlaubt.\n" -#: src/cryptsetup.c:1649 +#: src/cryptsetup.c:1521 msgid "Option --allow-discards is allowed only for open operation.\n" msgstr "Die Option --allow-discards ist nur beim Öffnen erlaubt.\n" -#: src/cryptsetup.c:1657 +#: src/cryptsetup.c:1529 msgid "" "Option --key-size is allowed only for luksFormat, open and benchmark.\n" "To limit read from keyfile use --keyfile-size=(bytes)." msgstr "" -"Die Option --key-size ist nur für »luksFormat«, »open« und »benchmark« " -"erlaubt.\n" -"Benutzen Sie stattdessen »--keyfile-size=(Bytes)«, um das Lesen aus der " -"Schlüsseldatei zu begrenzen." +"Die Option --key-size ist nur für luksFormat, open und benchmark erlaubt.\n" +"Benutzen Sie stattdessen --keyfile-size=(Bytes), um das Lesen aus der Schlüsseldatei zu begrenzen." -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" -"Die Option --test-passphrase ist nur beim Öffnen von LUKS- und TCRYPT-" -"Geräten erlaubt.\n" +#: src/cryptsetup.c:1536 +msgid "Option --test-passphrase is allowed only for open of LUKS and TCRYPT devices.\n" +msgstr "Die Option --test-passphrase ist nur beim Öffnen von LUKS- und TCRYPT-Geräten erlaubt.\n" -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 +#: src/cryptsetup.c:1541 src/cryptsetup_reencrypt.c:1185 msgid "Key size must be a multiple of 8 bits" msgstr "Schlüsselgröße muss ein Vielfaches von 8 Bit sein" -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 +#: src/cryptsetup.c:1548 src/cryptsetup_reencrypt.c:1190 msgid "Key slot is invalid." msgstr "Schlüsselfach ist ungültig." -#: src/cryptsetup.c:1683 +#: src/cryptsetup.c:1555 msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" -"Die Option --key-file wirkt stärker als das angegebene Schlüsseldatei-" -"Argument.\n" +msgstr "Die Option --key-file wirkt stärker als das angegebene Schlüsseldatei-Argument.\n" -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 +#: src/cryptsetup.c:1563 src/veritysetup.c:466 src/cryptsetup_reencrypt.c:1174 msgid "Negative number for option not permitted." msgstr "Negative Zahl für die Option nicht erlaubt." -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 +#: src/cryptsetup.c:1567 src/cryptsetup_reencrypt.c:1168 +#: src/cryptsetup_reencrypt.c:1194 msgid "Only one of --use-[u]random options is allowed." -msgstr "Nur eine der Optionen --use-[u]random ist erlaubt." +msgstr "Nur eine von --use-[u]random ist erlaubt." -#: src/cryptsetup.c:1699 +#: src/cryptsetup.c:1571 msgid "Option --use-[u]random is allowed only for luksFormat." msgstr "Die Option --use-[u]random ist nur für luksFormat erlaubt." -#: src/cryptsetup.c:1703 +#: src/cryptsetup.c:1575 msgid "Option --uuid is allowed only for luksFormat and luksUUID." msgstr "Die Option --uuid ist nur für luksFormat und luksUUID erlaubt." -#: src/cryptsetup.c:1707 +#: src/cryptsetup.c:1579 msgid "Option --align-payload is allowed only for luksFormat." msgstr "Die Option --align-payload ist nur für luksFormat erlaubt." -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Die Option --skip ist nur beim Öffnen von plain- und loopaes-Geräten " -"erlaubt.\n" - -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Die Option --offset ist nur beim Öffnen von plain- und loopaes-Geräten " -"erlaubt.\n" - -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" -"Die Optionen --tcrypt-hidden, --tcrypt-system und --tcrypt-backup sind nur " -"zusammen mit einem TCRYPT-Gerät erlaubt.\n" +#: src/cryptsetup.c:1585 +msgid "Option --skip is supported only for open of plain and loopaes devices.\n" +msgstr "Die Option --skip wird nur beim Öffnen von plain- und loopaes-Geräten erlaubt.\n" -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "" -"Die Option --tcrypt-hidden kann nicht mit --allow-discards kombiniert " -"werden.\n" +#: src/cryptsetup.c:1591 +msgid "Option --offset is supported only for open of plain and loopaes devices.\n" +msgstr "Die Option --offset wird nur beim Öffnen von plain- und loopaes-Geräten unterstützt.\n" -#: src/cryptsetup.c:1735 -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "" -"Die Option --veracrypt wird nur für TCRYPT-kompatible Geräte unterstützt.\n" +#: src/cryptsetup.c:1597 +msgid "Option --tcrypt-hidden or --tcrypt-system is supported only for TCRYPT device.\n" +msgstr "Die Optionen --tcrypt-hidden und --tcrypt-system funktionieren nur zusammen mit einem TCRYPT-Gerät.\n" -#: src/veritysetup.c:58 +#: src/veritysetup.c:57 msgid "Invalid salt string specified.\n" msgstr "Ungültiger Salt-String angegeben.\n" -#: src/veritysetup.c:88 +#: src/veritysetup.c:87 #, c-format msgid "Cannot create hash image %s for writing.\n" -msgstr "Fehler beim Schreiben des Hash-Abbilds »%s«.\n" +msgstr "Kann Hash-Abbild »%s« nicht zum Schreiben anlegen.\n" -#: src/veritysetup.c:148 +#: src/veritysetup.c:147 msgid "Invalid root hash string specified.\n" msgstr "Ungültiger Root-Hash-String angegeben.\n" -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid " " msgstr " " -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid "format device" msgstr "Gerät formatieren" -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid " " msgstr " " -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid "verify device" msgstr "Gerät verifizieren" -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid " " msgstr " " -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid "create active device" msgstr "Aktives Gerät anlegen" -#: src/veritysetup.c:311 +#: src/veritysetup.c:310 msgid "remove (deactivate) device" msgstr "Gerät entfernen (deaktivieren)" -#: src/veritysetup.c:312 +#: src/veritysetup.c:311 msgid "show active device status" msgstr "Status der aktiven Geräte anzeigen" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "" msgstr "" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "show on-disk information" -msgstr "Auf dem Datenträger gespeicherte Informationen anzeigen" +msgstr "Daten auf der Platte anzeigen" -#: src/veritysetup.c:332 +#: src/veritysetup.c:331 #, c-format msgid "" "\n" @@ -1581,333 +1408,290 @@ msgstr "" " ist das Gerät, das die Verifikationsdaten enthält\n" " ist der Hash des Rootknotens auf \n" -#: src/veritysetup.c:339 +#: src/veritysetup.c:338 #, c-format msgid "" "\n" "Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" +"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, Hash format: %u\n" msgstr "" "\n" -"Einkompilierte Vorgabewerte für dm-verity:\n" -"\tHash: %s, Datenblock (Bytes): %u, Hashblock (Bytes): %u, Salt-Größe: %u, " -"Hashformat: %u\n" +"Eincompilierte Vorgabewerte für dm-verity:\n" +"\tHash: %s, Datenblock (Bytes): %u, Hashblock (Bytes): %u, Salt-Größe: %u, Hashformat: %u\n" -#: src/veritysetup.c:377 +#: src/veritysetup.c:376 msgid "Do not use verity superblock" msgstr "Verity-Superblock nicht benutzen" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "Format type (1 - normal, 0 - original Chrome OS)" msgstr "Format-Art (1 - normal, 0 - originales Chrome-OS)" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "number" msgstr "Zahl" -#: src/veritysetup.c:379 +#: src/veritysetup.c:378 msgid "Block size on the data device" msgstr "Blockgröße auf dem Datengerät" -#: src/veritysetup.c:380 +#: src/veritysetup.c:379 msgid "Block size on the hash device" msgstr "Blockgröße auf dem Hash-Gerät" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "The number of blocks in the data file" msgstr "Die Anzahl der Blöcke in der Datendatei" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "blocks" msgstr "Blöcke" -#: src/veritysetup.c:382 +#: src/veritysetup.c:381 msgid "Starting offset on the hash device" msgstr "Start-Offset auf dem Hash-Gerät" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "Hash algorithm" msgstr "Hash-Algorithmus" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "string" msgstr "Zeichenkette" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "Salt" msgstr "Salt" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "hex string" msgstr "Hex-Zeichenkette" -#: src/cryptsetup_reencrypt.c:147 +#: src/cryptsetup_reencrypt.c:136 #, c-format msgid "Cannot exclusively open %s, device in use.\n" -msgstr "" -"Gerät »%s« kann nicht exklusiv geöffnet werden, da es bereits benutzt wird.\n" +msgstr "Kann Gerät %s nicht exklusiv öffnen, es wird bereits benutzt.\n" -#: src/cryptsetup_reencrypt.c:151 +#: src/cryptsetup_reencrypt.c:140 #, c-format msgid "Cannot open device %s\n" -msgstr "Fehler beim Öffnen von Gerät »%s«.\n" +msgstr "Kann Gerät %s nicht öffnen\n" -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 +#: src/cryptsetup_reencrypt.c:150 src/cryptsetup_reencrypt.c:367 +#: src/cryptsetup_reencrypt.c:786 msgid "Allocation of aligned memory failed.\n" msgstr "Belegen des ausgerichteten Speichers fehlgeschlagen.\n" -#: src/cryptsetup_reencrypt.c:168 +#: src/cryptsetup_reencrypt.c:157 #, c-format msgid "Cannot read device %s.\n" -msgstr "Fehler beim Lesen von Gerät »%s«.\n" +msgstr "Kann nicht von Gerät %s lesen.\n" -#: src/cryptsetup_reencrypt.c:179 +#: src/cryptsetup_reencrypt.c:168 #, c-format msgid "Marking LUKS device %s unusable.\n" -msgstr "LUKS-Gerät »%s« wird als unbenutzbar markiert.\n" +msgstr "Markiere LUKS-Gerät »%s« als unbenutzbar.\n" -#: src/cryptsetup_reencrypt.c:184 +#: src/cryptsetup_reencrypt.c:173 #, c-format msgid "Marking LUKS device %s usable.\n" -msgstr "LUKS-Gerät »%s« wird als benutzbar markiert.\n" +msgstr "Markiere LUKS-Gerät »%s« als benutzbar.\n" -#: src/cryptsetup_reencrypt.c:200 +#: src/cryptsetup_reencrypt.c:189 #, c-format msgid "Cannot write device %s.\n" -msgstr "Fehler beim Schreiben auf Gerät »%s«.\n" +msgstr "Kann Gerät %s nicht beschreiben.\n" -#: src/cryptsetup_reencrypt.c:281 +#: src/cryptsetup_reencrypt.c:270 msgid "Cannot write reencryption log file.\n" -msgstr "Fehler beim Speichern der Wiederverschlüsselungs-Logdatei.\n" +msgstr "Kann Wiederverschlüsselungs-Logdatei nicht wegschreiben.\n" -#: src/cryptsetup_reencrypt.c:337 +#: src/cryptsetup_reencrypt.c:319 msgid "Cannot read reencryption log file.\n" -msgstr "Fehler beim Einlesen der Wiederverschlüsselungs-Logdatei.\n" +msgstr "Kann Wiederverschlüsselungs-Logdatei nicht einlesen.\n" -#: src/cryptsetup_reencrypt.c:374 +#: src/cryptsetup_reencrypt.c:358 #, c-format msgid "Log file %s exists, resuming reencryption.\n" -msgstr "Logdatei »%s« existiert, Wiederverschlüsselung wird fortgesetzt.\n" +msgstr "Logdatei »%s« existiert, nehme Wiederverschlüsselung wieder auf.\n" -#: src/cryptsetup_reencrypt.c:403 +#: src/cryptsetup_reencrypt.c:393 msgid "Activating temporary device using old LUKS header.\n" -msgstr "Temporäres Gerät mit dem alten LUKS-Header wird aktiviert.\n" +msgstr "Aktivierung der temporären Geräte mit Hilfe des alten LUKS-Headers fehlgeschlagen.\n" -#: src/cryptsetup_reencrypt.c:414 +#: src/cryptsetup_reencrypt.c:404 msgid "Activating temporary device using new LUKS header.\n" -msgstr "Temporäres Gerät mit dem neuen LUKS-Header wird aktiviert.\n" +msgstr "Aktivierung des temporären Gerätes mittels eines neuen LUKS-Headers.\n" -#: src/cryptsetup_reencrypt.c:424 +#: src/cryptsetup_reencrypt.c:414 msgid "Activation of temporary devices failed.\n" -msgstr "Fehler beim Aktivieren der temporären Geräte.\n" +msgstr "Aktivierung der temporären Geräte fehlgeschlagen.\n" -#: src/cryptsetup_reencrypt.c:450 +#: src/cryptsetup_reencrypt.c:439 #, c-format msgid "New LUKS header for device %s created.\n" -msgstr "Neuer LUKS-Header für Gerät »%s« angelegt.\n" +msgstr "Neuer LUKS-Header für Gerät %s angelegt.\n" -#: src/cryptsetup_reencrypt.c:458 +#: src/cryptsetup_reencrypt.c:447 #, c-format msgid "Activated keyslot %i.\n" msgstr "Schlüsselfach %i aktiviert.\n" -#: src/cryptsetup_reencrypt.c:484 +#: src/cryptsetup_reencrypt.c:471 #, c-format msgid "LUKS header backup of device %s created.\n" -msgstr "LUKS-Backup-Header von Gerät »%s« angelegt.\n" +msgstr "LUKS-Backup-Header von Gerät %s angelegt.\n" -#: src/cryptsetup_reencrypt.c:532 +#: src/cryptsetup_reencrypt.c:499 msgid "Creation of LUKS backup headers failed.\n" -msgstr "Fehler beim Anlegen des LUKS-Backup-Headers.\n" +msgstr "Anlegen der LUKS-Backup-Header fehlgeschlagen.\n" -#: src/cryptsetup_reencrypt.c:634 +#: src/cryptsetup_reencrypt.c:594 #, c-format msgid "Cannot restore LUKS header on device %s.\n" -msgstr "Fehler beim Wiederherstellen des LUKS-Headers auf Gerät »%s«.\n" +msgstr "Kann den LUKS-Header auf Gerät %s nicht wiederherstellen.\n" -#: src/cryptsetup_reencrypt.c:636 +#: src/cryptsetup_reencrypt.c:596 #, c-format msgid "LUKS header on device %s restored.\n" -msgstr "LUKS-Header auf Gerät »%s« wiederhergestellt.\n" +msgstr "LUKS-Header auf Gerät %s wiederhergestellt.\n" -#: src/cryptsetup_reencrypt.c:669 +#: src/cryptsetup_reencrypt.c:629 #, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" -"Fortschritt: %5.1f%%, noch %02llu:%02llu, %4llu MiB geschrieben bei %5.1f " -"MiB/s%s" +msgid "Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" +msgstr "Fortschritt: %5.1f%%, noch %02llu:%02llu, %4llu MiB geschrieben bei %5.1f MiB/s%s" -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 +#: src/cryptsetup_reencrypt.c:645 src/cryptsetup_reencrypt.c:721 msgid "Cannot seek to device offset.\n" -msgstr "Fehler beim Springen zum Gerät-Offset.\n" +msgstr "Kann nicht zur gewünschten Position springen.\n" -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 +#: src/cryptsetup_reencrypt.c:767 src/cryptsetup_reencrypt.c:773 msgid "Cannot open temporary LUKS header file.\n" -msgstr "Fehler beim Öffnen der temporären LUKS-Header-Datei.\n" +msgstr "Kann temporäre LUKS-Header-Datei nicht öffnen.\n" -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 +#: src/cryptsetup_reencrypt.c:779 msgid "Cannot get device size.\n" -msgstr "Fehler beim Ermitteln der Gerätegröße.\n" +msgstr "Kann Gerätegröße nicht ermitteln.\n" -#: src/cryptsetup_reencrypt.c:919 +#: src/cryptsetup_reencrypt.c:803 msgid "Interrupted by a signal.\n" msgstr "Durch ein Signal unterbrochen.\n" -#: src/cryptsetup_reencrypt.c:921 +#: src/cryptsetup_reencrypt.c:805 msgid "IO error during reencryption.\n" msgstr "E/A-Fehler während der Wiederverschlüsselung.\n" -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" -"Schlüsseldatei kann nur mit --key-slot oder mit genau einem aktiven " -"Schlüsselfach benutzt werden.\n" +#: src/cryptsetup_reencrypt.c:906 +msgid "Key file can be used only with --key-slot or with exactly one key slot active.\n" +msgstr "Schlüsseldatei kann nur mit --key-slot oder mit genau einem aktiven Schlüsselfach benutzt werden.\n" -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 +#: src/cryptsetup_reencrypt.c:955 #, c-format msgid "Enter passphrase for key slot %u: " msgstr "Geben Sie die Passphrase für Schlüsselfach %u ein: " -#: src/cryptsetup_reencrypt.c:1136 +#: src/cryptsetup_reencrypt.c:1004 msgid "Cannot open reencryption log file.\n" -msgstr "Fehler beim Öffnen der Wiederverschlüsselungs-Logdatei.\n" +msgstr "Kann die Wiederverschlüsselungs-Logdatei nicht öffnen.\n" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "Reencryption block size" msgstr "Wiederverschlüsselungs-Blockgröße" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "MiB" msgstr "MiB" -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "Schlüssel nicht ändern, Datenbereich nicht neu verschlüsseln." - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." -msgstr "Beim Zugriff auf die Geräte direct-io benutzen." +#: src/cryptsetup_reencrypt.c:1118 +msgid "Use direct-io when accesing devices." +msgstr "Direkte I/O beim Zugriff auf die Geräte benutzen." -#: src/cryptsetup_reencrypt.c:1274 +#: src/cryptsetup_reencrypt.c:1119 msgid "Use fsync after each block." msgstr "Nach jedem Block fsync aufrufen." -#: src/cryptsetup_reencrypt.c:1275 +#: src/cryptsetup_reencrypt.c:1120 msgid "Update log file after every block." msgstr "Logdatei nach jedem Block aktualisieren." -#: src/cryptsetup_reencrypt.c:1276 +#: src/cryptsetup_reencrypt.c:1121 msgid "Use only this slot (others will be disabled)." msgstr "Nur dieses Schlüsselfach benutzen (alle anderen werden deaktiviert)." -#: src/cryptsetup_reencrypt.c:1279 +#: src/cryptsetup_reencrypt.c:1124 msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" -"Größe des Datengeräts reduzieren (Datenoffset verschieben). GEFÄHRLICH!" +msgstr "Größe des Datengeräts reduzieren (Datenoffset verschieben). GEFÄHRLICH!" -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup_reencrypt.c:1125 msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" -"Nur die angegebene Gerätegröße benutzen (Rest des Gerätes ignorieren). " -"GEFÄHRLICH!" +msgstr "Nur die angegebene Gerätegröße benutzen (Rest des Gerätes ignorieren). GEFÄHRLICH!" -#: src/cryptsetup_reencrypt.c:1281 +#: src/cryptsetup_reencrypt.c:1126 msgid "Create new header on not encrypted device." msgstr "Neuen Header auf unverschlüsseltem Gerät anlegen." -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "Gerät dauerhaft entschlüsseln (Verschlüsselung entfernen)." - -#: src/cryptsetup_reencrypt.c:1298 +#: src/cryptsetup_reencrypt.c:1142 msgid "[OPTION...] " msgstr "[OPTION...] " -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" -"WARNUNG: Dies ist experimenteller Code, es kann sein, dass er Ihre Daten " -"komplett zerstört.\n" +#: src/cryptsetup_reencrypt.c:1156 +msgid "WARNING: this is experimental code, it can completely break your data.\n" +msgstr "WARNUNG: Dies ist experimenteller Code, kann sein, dass er Ihre Daten komplett zerstört.\n" -#: src/cryptsetup_reencrypt.c:1313 +#: src/cryptsetup_reencrypt.c:1157 #, c-format msgid "Reencryption will change: volume key%s%s%s%s.\n" -msgstr "Wiederverschlüsselung ändert: Laufwerkskennung%s%s%s%s.\n" +msgstr "Wiederverschlüsselung wird ändern: Laufwerkskennung%s%s%s%s.\n" -#: src/cryptsetup_reencrypt.c:1314 +#: src/cryptsetup_reencrypt.c:1158 msgid ", set hash to " msgstr ", Hash auf " -#: src/cryptsetup_reencrypt.c:1315 +#: src/cryptsetup_reencrypt.c:1159 msgid ", set cipher to " msgstr ", Verschlüsselung auf " -#: src/cryptsetup_reencrypt.c:1320 +#: src/cryptsetup_reencrypt.c:1164 msgid "Argument required." -msgstr "Argument muss angegeben werden." +msgstr "Argument erforderlich." -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" -"Für die Wiederverschlüsselungs-Blockgröße sind nur Werte zwischen 1 MiB und " -"64 MiB erlaubt." +#: src/cryptsetup_reencrypt.c:1180 +msgid "Only values between 1 MiB and 64 MiB allowed for reencryption block size." +msgstr "Nur Werte zwischen 1 MiB und 64 MiB sind für die Wiederverschlüsselungs-Blockgröße erlaubt." -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 +#: src/cryptsetup_reencrypt.c:1199 src/cryptsetup_reencrypt.c:1204 msgid "Invalid device size specification." msgstr "Ungültige Angabe der Gerätegröße." -#: src/cryptsetup_reencrypt.c:1363 +#: src/cryptsetup_reencrypt.c:1207 msgid "Maximum device reduce size is 64 MiB." msgstr "Die maximale Verkleinerungsgröße ist 64 MiB." -#: src/cryptsetup_reencrypt.c:1366 +#: src/cryptsetup_reencrypt.c:1210 msgid "Reduce size must be multiple of 512 bytes sector." msgstr "Die verkleinerte Größe muss ein Vielfaches von 512-Byte-Sektoren sein." -#: src/cryptsetup_reencrypt.c:1370 +#: src/cryptsetup_reencrypt.c:1214 msgid "Option --new must be used together with --reduce-device-size." -msgstr "" -"Die Option »--new« muss zusammen mit »--reduce-device-size« benutzt werden." - -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "" -"Die Option »--keep-new« kann nur zusammen mit »--hash« oder »--iter-time« " -"benutzt werden." +msgstr "Die Option --new muss zusammen mit --reduce-device-size benutzt werden." -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "Die Option »--new« kann nicht zusammen mit »--decrypt« benutzt werden." - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "" -"Die Option --decrypt verträgt sich nicht mit den angegebenen Parametern." - -#: src/utils_tools.c:151 +#: src/utils_tools.c:150 msgid "Error reading response from terminal.\n" -msgstr "Fehler beim Lesen der Antwort vom Terminal.\n" +msgstr "Fehler beim Lesen des Antwort vom Terminal.\n" -#: src/utils_tools.c:173 +#: src/utils_tools.c:172 msgid "Command successful.\n" msgstr "Befehl erfolgreich.\n" -#: src/utils_tools.c:191 +#: src/utils_tools.c:186 #, c-format msgid "Command failed with code %i" -msgstr "Fehler %i beim Ausführen eines Befehls" +msgstr "Befehl fehlgeschlagen mit Code %i" #: src/utils_password.c:42 #, c-format msgid "Cannot check password quality: %s\n" -msgstr "Fehler beim Prüfen der Passwortqualität: %s\n" +msgstr "Kann die Passwort-Qualität nicht prüfen: %s\n" #: src/utils_password.c:50 #, c-format @@ -1916,7 +1700,4 @@ msgid "" " %s\n" msgstr "" "Passwort-Qualitätsüberprüfung fehlgeschlagen:\n" -" %s\n" - -#~ msgid "FIPS checksum verification failed.\n" -#~ msgstr "FIPS-Prüfsummen-Verifizierung fehlgeschlagen.\n" +"%s\n" diff --git a/po/en@boldquot.header b/po/en@boldquot.header deleted file mode 100644 index fedb6a0..0000000 --- a/po/en@boldquot.header +++ /dev/null @@ -1,25 +0,0 @@ -# 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. -# diff --git a/po/en@quot.header b/po/en@quot.header deleted file mode 100644 index a9647fc..0000000 --- a/po/en@quot.header +++ /dev/null @@ -1,22 +0,0 @@ -# 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. -# diff --git a/po/es.gmo b/po/es.gmo deleted file mode 100644 index 3a8397f..0000000 Binary files a/po/es.gmo and /dev/null differ diff --git a/po/es.po b/po/es.po deleted file mode 100644 index 4ee6678..0000000 --- a/po/es.po +++ /dev/null @@ -1,2022 +0,0 @@ -# Spanish translations for cryptsetup package -# Traducciones al español para el paquete cryptsetup. -# Copyright (C) 2014, 2015 Free Software Foundation, Inc. -# This file is put in the public domain. -# Antonio Ceballos , 2013, 2014, 2015 -# -# ###################################################################### -# Traducciones dudosas: -# ###################################################################### -# -# initialize = inicializar -# kernel = núcleo -#  imperativo - usted -# % done = % hecho -# fatal error = error fatal -#  RNG = generador de números aleatorios -# not supported = no disponible -# key slot = ranura de claves -# passphrase = frase contraseña -# offset = desplazamiento -# offset = posición -# suspended = suspendido -# plain device = dispositivo no cifrado (dispositivo en claro) -# crypt device = dispositivo cifrado -# error reading = error al leer -# keyfile = fichero de claves (¿fichero de la clave?) -#  checksum = suma de comprobación -# loopback device = dispositivo de bucle invertido (Santiago: dispositivo de bucle) -# backup file = fichero de copia de seguridad -# please - omitido, porque ya es suficiente cortesía tratar de usted al usuario -#  wipe = limpiar, borrar -# interface = (la) interfaz -# cipher = algoritmo de cifrado -# default = predefinido -# default compiled-in = predefinido de fábrica -# debug = depuración -# bootloader = cargador de arranque -# verify = verificar -# verification = verificación -# log file = fichero de registro -# temporary = temporal -# reencryption = recifrado -# invalid = no válido, -a -# -# ####################################################################### -# Términos no traducidos -# ####################################################################### -# -# device mapper -# backend -# hash -# buffer -# offset -# bit(s) -# byte(s) -# loopaes -# luks -# tcrypt -# salt -# verity -# -# ####################################################################### -# Otras dudas -# ####################################################################### -# -# invalid = inválido, -a -> barbarismo -> mejor: no válido -# on-disk -# -# ####################################################################### -# -msgid "" -msgstr "" -"Project-Id-Version: cryptsetup 1.6.7\n" -"Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: 2015-03-19 11:45+0100\n" -"Last-Translator: Antonio Ceballos \n" -"Language-Team: Spanish \n" -"Language: es\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: lib/libdevmapper.c:252 -msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "" -"No se puede inicializar el «device mapper», ejecutando como usuario no " -"administrador.\n" - -#: lib/libdevmapper.c:255 -msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" -msgstr "" -"No se puede inicializar el «device-mapper». ¿Está cargado el módulo del " -"núcleo dm_mod?\n" - -#: lib/libdevmapper.c:550 -#, c-format -msgid "DM-UUID for device %s was truncated.\n" -msgstr "El DM-UUID del dispositivo %s ha sido truncado.\n" - -#: lib/libdevmapper.c:698 -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "" -"Las opciones de rendimiento de dmcrypt solicitadas no están disponibles.\n" - -#: lib/random.c:76 -msgid "" -"System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" -msgstr "" -"El sistema se ha quedado sin entropía mientras estaba generando la clave del " -"volumen.\n" -"Por favor, mueva el ratón o pulse alguna tecla en otra ventana para provocar " -"algún evento aleatorio.\n" - -#: lib/random.c:80 -#, c-format -msgid "Generating key (%d%% done).\n" -msgstr "Generando la clave (%d%% hecho).\n" - -#: lib/random.c:169 -msgid "Fatal error during RNG initialisation.\n" -msgstr "" -"Error fatal durante la inicialización del generador de números aleatorios.\n" - -#: lib/random.c:206 -msgid "Unknown RNG quality requested.\n" -msgstr "" -"La calidad solicitada para el generador de números aleatorios es " -"desconocida.\n" - -#: lib/random.c:211 -#, c-format -msgid "Error %d reading from RNG: %s\n" -msgstr "Error %d leyendo del generador de números aleatorios: %s\n" - -#: lib/setup.c:200 -msgid "Cannot initialize crypto RNG backend.\n" -msgstr "" -"No se puede inicializar el «backend» del generador de números aleatorios de " -"cifrado.\n" - -#: lib/setup.c:206 -msgid "Cannot initialize crypto backend.\n" -msgstr "No se puede inicializar el «backend» de cifrado.\n" - -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 -#, c-format -msgid "Hash algorithm %s not supported.\n" -msgstr "Algoritmo «hash» %s no disponible.\n" - -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 -#, c-format -msgid "Key processing error (using hash %s).\n" -msgstr "Error de procesamiento de la clave (usando «hash» %s).\n" - -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" -"No se puede determinar el tipo de dispositivo. ¿Es incompatible la " -"activación del dispositivo?\n" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Esta operación solamente está disponible para dispositivos LUKS.\n" - -#: lib/setup.c:320 -msgid "All key slots full.\n" -msgstr "Todas las ranuras de claves están llenas.\n" - -#: lib/setup.c:327 -#, c-format -msgid "Key slot %d is invalid, please select between 0 and %d.\n" -msgstr "" -"La ranura de claves %d no es válida; seleccione un número entre 0 y %d.\n" - -#: lib/setup.c:333 -#, c-format -msgid "Key slot %d is full, please select another one.\n" -msgstr "La ranura de claves %d está llena; seleccione otra.\n" - -#: lib/setup.c:472 -#, c-format -msgid "Enter passphrase for %s: " -msgstr "Introduzca la frase contraseña de %s: " - -#: lib/setup.c:653 -#, c-format -msgid "Header detected but device %s is too small.\n" -msgstr "Cabecera detectada pero el dispositivo %s es demasiado pequeño.\n" - -#: lib/setup.c:669 lib/setup.c:1420 -msgid "This operation is not supported for this device type.\n" -msgstr "Esta operación no está disponible para este tipo de dispositivo.\n" - -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 -#, c-format -msgid "Device %s is not active.\n" -msgstr "El dispositivo %s no está activo.\n" - -#: lib/setup.c:925 -#, c-format -msgid "Underlying device for crypt device %s disappeared.\n" -msgstr "" -"El dispositivo subyacente asociado al dispositivo cifrado %s ha " -"desaparecido.\n" - -#: lib/setup.c:994 -msgid "Invalid plain crypt parameters.\n" -msgstr "Parámetros de cifrado para modo claro no válidos.\n" - -#: lib/setup.c:999 lib/setup.c:1119 -msgid "Invalid key size.\n" -msgstr "Tamaño de clave no válido.\n" - -#: lib/setup.c:1004 lib/setup.c:1124 -msgid "UUID is not supported for this crypt type.\n" -msgstr "El UUID no está disponible para este tipo de cifrado.\n" - -#: lib/setup.c:1046 -msgid "Can't format LUKS without device.\n" -msgstr "Imposible dar formato LUKS sin dispositivo.\n" - -#: lib/setup.c:1089 -#, c-format -msgid "Cannot format device %s which is still in use.\n" -msgstr "No se puede dar formato al dispositivo %s que todavía está en uso.\n" - -#: lib/setup.c:1092 -#, c-format -msgid "Cannot format device %s, permission denied.\n" -msgstr "No se puede dar formato al dispositivo %s; permiso denegado.\n" - -#: lib/setup.c:1096 -#, c-format -msgid "Cannot wipe header on device %s.\n" -msgstr "No se puede limpiar la cabecera del dispositivo %s.\n" - -#: lib/setup.c:1114 -msgid "Can't format LOOPAES without device.\n" -msgstr "Imposible dar formato LOOPAES sin dispositivo.\n" - -#: lib/setup.c:1152 -msgid "Can't format VERITY without device.\n" -msgstr "Imposible dar formato VERITY sin dispositivo.\n" - -#: lib/setup.c:1160 lib/verity/verity.c:106 -#, c-format -msgid "Unsupported VERITY hash type %d.\n" -msgstr "Tipo de «hash» VERITY %d no disponible.\n" - -#: lib/setup.c:1166 lib/verity/verity.c:114 -msgid "Unsupported VERITY block size.\n" -msgstr "Tamaño de bloque VERITY no disponible.\n" - -#: lib/setup.c:1171 lib/verity/verity.c:76 -msgid "Unsupported VERITY hash offset.\n" -msgstr "Desplazamiento «hash» VERITY no disponible.\n" - -#: lib/setup.c:1285 -#, c-format -msgid "Unknown crypt device type %s requested.\n" -msgstr "El tipo de dispositivo cifrado % solicitado es desconocido.\n" - -#: lib/setup.c:1435 -msgid "Do you really want to change UUID of device?" -msgstr "¿Está seguro de que quiere cambiar el UUID del dispositivo?" - -#: lib/setup.c:1545 -#, c-format -msgid "Volume %s is not active.\n" -msgstr "El volumen %s no está activo.\n" - -#: lib/setup.c:1556 -#, c-format -msgid "Volume %s is already suspended.\n" -msgstr "El volumen %s ya está suspendido.\n" - -#: lib/setup.c:1563 -#, c-format -msgid "Suspend is not supported for device %s.\n" -msgstr "La suspensión no está disponible para el dispositivo %s.\n" - -#: lib/setup.c:1565 -#, c-format -msgid "Error during suspending device %s.\n" -msgstr "Error durante la suspensión del dispositivo %s.\n" - -#: lib/setup.c:1591 lib/setup.c:1638 -#, c-format -msgid "Volume %s is not suspended.\n" -msgstr "EL volumen %s no está suspendido.\n" - -#: lib/setup.c:1605 -#, c-format -msgid "Resume is not supported for device %s.\n" -msgstr "La reanudación no está disponible para el dispositivo %s.\n" - -#: lib/setup.c:1607 lib/setup.c:1659 -#, c-format -msgid "Error during resuming device %s.\n" -msgstr "Error durante la reanudación del dispositivo %s.\n" - -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 -msgid "Enter passphrase: " -msgstr "Introduzca la frase contraseña: " - -#: lib/setup.c:1707 lib/setup.c:1843 -msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"No se puede añadir ranura de claves; todas las ranuras están desactivadas y " -"no se ha proporcionado una clave para el volumen.\n" - -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 -msgid "Enter any passphrase: " -msgstr "Introduzca una frase contraseña cualquiera: " - -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 -msgid "Enter new passphrase for key slot: " -msgstr "Introduzca una nueva frase contraseña para la ranura de claves: " - -#: lib/setup.c:1798 -#, c-format -msgid "Key slot %d changed.\n" -msgstr "LA ranura de claves %d ha cambiado.\n" - -#: lib/setup.c:1801 -#, c-format -msgid "Replaced with key slot %d.\n" -msgstr "Reemplazado con ranura de claves %d.\n" - -#: lib/setup.c:1806 -msgid "Failed to swap new key slot.\n" -msgstr "No se ha logrado intercambiar la nueva ranura de claves.\n" - -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 -msgid "Volume key does not match the volume.\n" -msgstr "La clave de volumen no corresponde a este volumen.\n" - -#: lib/setup.c:1961 -#, c-format -msgid "Key slot %d is invalid.\n" -msgstr "La ranura de claves %d no es válida.\n" - -#: lib/setup.c:1966 -#, c-format -msgid "Key slot %d is not used.\n" -msgstr "La ranura de claves %d no se está utilizando.\n" - -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 -#, c-format -msgid "Device %s already exists.\n" -msgstr "El dispositivo %s ya existe.\n" - -#: lib/setup.c:2171 -msgid "Incorrect volume key specified for plain device.\n" -msgstr "Clave de volumen incorrecta para dispositivo no cifrado.\n" - -#: lib/setup.c:2204 -msgid "Incorrect root hash specified for verity device.\n" -msgstr "«Hash» raíz incorrecta para dispositivo «verity».\n" - -#: lib/setup.c:2227 -msgid "Device type is not properly initialised.\n" -msgstr "Este tipo de dispositivo no se ha inicializado adecuadamente.\n" - -#: lib/setup.c:2259 -#, c-format -msgid "Device %s is still in use.\n" -msgstr "El dispositivo %s todavía se está utilizando.\n" - -#: lib/setup.c:2268 -#, c-format -msgid "Invalid device %s.\n" -msgstr "Dispositivo inválido %s.\n" - -#: lib/setup.c:2289 -msgid "Function not available in FIPS mode.\n" -msgstr "Función no disponible en modo FIPS.\n" - -#: lib/setup.c:2295 -msgid "Volume key buffer too small.\n" -msgstr "El «buffer» de la clave del volumen es demasiado pequeño.\n" - -#: lib/setup.c:2303 -msgid "Cannot retrieve volume key for plain device.\n" -msgstr "No se puede recuperar la clave para el dispositivo no cifrado.\n" - -#: lib/setup.c:2310 -#, c-format -msgid "This operation is not supported for %s crypt device.\n" -msgstr "Esta operación no está disponible para el dispositivo cifrado %s.\n" - -#: lib/setup.c:2506 -msgid "Dump operation is not supported for this device type.\n" -msgstr "Operación de volcado no deisponible para este tipo de dispositivo.\n" - -#: lib/utils.c:244 -msgid "Cannot get process priority.\n" -msgstr "No se puede obtener la prioridad del proceso.\n" - -#: lib/utils.c:258 -msgid "Cannot unlock memory.\n" -msgstr "No se puede desbloquear la memoria.\n" - -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 -msgid "Out of memory while reading passphrase.\n" -msgstr "Memoria agotada mientras se estaba leyendo la frase contraseña.\n" - -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 -msgid "Error reading passphrase from terminal.\n" -msgstr "Error al leer la frase contraseña desde el terminal.\n" - -#: lib/utils_crypt.c:259 -msgid "Verify passphrase: " -msgstr "Verifique la frase contraseña: " - -#: lib/utils_crypt.c:266 -msgid "Passphrases do not match.\n" -msgstr "La frase contraseña no coincide.\n" - -#: lib/utils_crypt.c:350 -msgid "Cannot use offset with terminal input.\n" -msgstr "No se puede usar «offset» con entrada desde terminal.\n" - -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 -msgid "Failed to open key file.\n" -msgstr "No se ha podido abrir el fichero de claves.\n" - -#: lib/utils_crypt.c:378 -msgid "Failed to stat key file.\n" -msgstr "No se ha podido efectuar «stat» sobre el fichero de claves.\n" - -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 -msgid "Cannot seek to requested keyfile offset.\n" -msgstr "" -"No es posible situarse en la posición solicitada del fichero de claves.\n" - -#: lib/utils_crypt.c:424 -msgid "Error reading passphrase.\n" -msgstr "Error al leer la frase contraseña.\n" - -#: lib/utils_crypt.c:442 -msgid "Maximum keyfile size exceeded.\n" -msgstr "Se ha excedido el tamaño máximo de fichero de claves.\n" - -#: lib/utils_crypt.c:447 -msgid "Cannot read requested amount of data.\n" -msgstr "No se puede leer la cantidad de datos solicitada.\n" - -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 -#, c-format -msgid "Device %s doesn't exist or access denied.\n" -msgstr "El dispositivo %s no existe o el acceso al mismo ha sido denegado.\n" - -#: lib/utils_device.c:430 -msgid "Cannot use a loopback device, running as non-root user.\n" -msgstr "" -"No se puede utilizar un dispositivo de bucle invertido como usuario no " -"administrador.\n" - -#: lib/utils_device.c:433 -msgid "Cannot find a free loopback device.\n" -msgstr "No se ha encontrado ningún dispositivo de bucle invertido libre.\n" - -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" -"No se ha logrado asociar el dispositivo de bucle invertido (hace falta un " -"dispositivo de bucle con marcador de auto-limpieza).\n" - -#: lib/utils_device.c:484 -#, c-format -msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" -"No se puede usar el dispositivo %s porque ya está en uso (asignado o " -"montado).\n" - -#: lib/utils_device.c:488 -#, c-format -msgid "Cannot get info about device %s.\n" -msgstr "No se puede obtener información del dispositivo %s.\n" - -#: lib/utils_device.c:494 -#, c-format -msgid "Requested offset is beyond real size of device %s.\n" -msgstr "" -"El «offset» solicitado está más allá del tamaño real del dispositivo %s.\n" - -#: lib/utils_device.c:502 -#, c-format -msgid "Device %s has zero size.\n" -msgstr "El dispositivo %s tiene tamaño cero.\n" - -#: lib/utils_device.c:513 -#, c-format -msgid "Device %s is too small.\n" -msgstr "El dispositivo %s es demasiado pequeño.\n" - -#: lib/luks1/keyencryption.c:37 -#, c-format -msgid "" -"Failed to setup dm-crypt key mapping for device %s.\n" -"Check that kernel supports %s cipher (check syslog for more info).\n" -msgstr "" -"No se ha podido establecer asignación de clave dm-crypt al dispositivo %s.\n" -"Compruebe que el núcleo admite el algoritmo de cifrado %s (consulte syslog " -"para más información).\n" - -#: lib/luks1/keyencryption.c:42 -msgid "Key size in XTS mode must be 256 or 512 bits.\n" -msgstr "El tamaño de clave en modo XTS debe ser 256 o 512 bits.\n" - -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 -#, c-format -msgid "Cannot write to device %s, permission denied.\n" -msgstr "No se puede escribir en el dispositivo %s; permiso denegado.\n" - -#: lib/luks1/keyencryption.c:111 -msgid "Failed to open temporary keystore device.\n" -msgstr "" -"No se ha podido abrir el dispositivo de almacenamiento de claves temporal.\n" - -#: lib/luks1/keyencryption.c:118 -msgid "Failed to access temporary keystore device.\n" -msgstr "" -"No se ha podido acceder al dispositivo de almacenamiento de claves " -"temporal.\n" - -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "Error de entrada/salida mientras se cifraba una ranura de claves.\n" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "Error de entrada/salida mientras se descifraba una ranura de claves.\n" - -#: lib/luks1/keymanage.c:90 -#, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "" -"El dispositivo %s es demasiado pequeño. (LUKS necesita % btyes como " -"mínimo.)\n" - -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 -#, c-format -msgid "Device %s is not a valid LUKS device.\n" -msgstr "El dispositivo %s no es un dispositivo LUKS válido.\n" - -#: lib/luks1/keymanage.c:198 -#, c-format -msgid "Requested header backup file %s already exists.\n" -msgstr "" -"El fichero de copia de seguridad de cabecera solicitado %s ya existe.\n" - -#: lib/luks1/keymanage.c:200 -#, c-format -msgid "Cannot create header backup file %s.\n" -msgstr "No se puede crear el fichero de copia de seguridad %s.\n" - -#: lib/luks1/keymanage.c:205 -#, c-format -msgid "Cannot write header backup file %s.\n" -msgstr "No se puede escribir en el fichero de copia de seguridad %s.\n" - -#: lib/luks1/keymanage.c:239 -msgid "Backup file doesn't contain valid LUKS header.\n" -msgstr "" -"El fichero de copia de seguridad no contiene una cabecera LUKS válida.\n" - -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 -#, c-format -msgid "Cannot open header backup file %s.\n" -msgstr "No se puede abrir el fichero de copia de seguridad de cabecerda %s.\n" - -#: lib/luks1/keymanage.c:258 -#, c-format -msgid "Cannot read header backup file %s.\n" -msgstr "No se puede leer el fichero de copia de seguridad de cabecerda %s.\n" - -#: lib/luks1/keymanage.c:269 -msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"La posición de los datos o el tamaño de la clave no coinciden en el " -"dispositivo y en la copia de seguridad.\n" - -#: lib/luks1/keymanage.c:277 -#, c-format -msgid "Device %s %s%s" -msgstr "Dispositivo %s %s%s" - -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"no contiene cabecera LUKS. Reemplazar la cabecera puede destruir los datos " -"en ese dispositivo." - -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"ya contiene cabecera LUKS. Reemplazar la cabecera destruirá las ranuras de " -"claves existentes." - -#: lib/luks1/keymanage.c:280 -msgid "" -"\n" -"WARNING: real device header has different UUID than backup!" -msgstr "" -"\n" -"ATENCIÓN: ¡la cabecera del dispositivo real tiene un UUID distinto que el de " -"la copia de seguridad!" - -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 -#: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 -#: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 -#, c-format -msgid "Cannot open device %s.\n" -msgstr "No se puede abrir el dispositivo %s.\n" - -#: lib/luks1/keymanage.c:329 -msgid "Non standard key size, manual repair required.\n" -msgstr "" -"El tamaño de la clave no es estándar; se requiere una reparación manual.\n" - -#: lib/luks1/keymanage.c:334 -msgid "Non standard keyslots alignment, manual repair required.\n" -msgstr "" -"El alineamiento de las ranuras de claves no es estándar; se requiere una " -"reparación manual.\n" - -#: lib/luks1/keymanage.c:340 -msgid "Repairing keyslots.\n" -msgstr "Reparando ranuras de claves.\n" - -#: lib/luks1/keymanage.c:351 -msgid "Repair failed." -msgstr "La reparación ha fallado." - -#: lib/luks1/keymanage.c:363 -#, c-format -msgid "Keyslot %i: offset repaired (%u -> %u).\n" -msgstr "Ranura de claves %i: posición reparada (%u -> %u).\n" - -#: lib/luks1/keymanage.c:371 -#, c-format -msgid "Keyslot %i: stripes repaired (%u -> %u).\n" -msgstr "Ranura de claves %i: bandas reparadas (%u -> %u).\n" - -#: lib/luks1/keymanage.c:380 -#, c-format -msgid "Keyslot %i: bogus partition signature.\n" -msgstr "Ranura de claves %i: la firma de la partición es falsa.\n" - -#: lib/luks1/keymanage.c:385 -#, c-format -msgid "Keyslot %i: salt wiped.\n" -msgstr "Ranura de claves %i: «salt wiped».\n" - -#: lib/luks1/keymanage.c:396 -msgid "Writing LUKS header to disk.\n" -msgstr "Escribiendo cabecera LUKS en el disco.\n" - -#: lib/luks1/keymanage.c:421 -#, c-format -msgid "Unsupported LUKS version %d.\n" -msgstr "Versión LUKS no disponible %d.\n" - -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 -#, c-format -msgid "Requested LUKS hash %s is not supported.\n" -msgstr "La «hash» LUKS solicitada %s no está disponible.\n" - -#: lib/luks1/keymanage.c:442 -#, c-format -msgid "LUKS keyslot %u is invalid.\n" -msgstr "La ranura de claves LUKS %u no es válida.\n" - -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 -msgid "No known problems detected for LUKS header.\n" -msgstr "No se ha detectado ningún problema en la cabecera LUKS.\n" - -#: lib/luks1/keymanage.c:596 -#, c-format -msgid "Error during update of LUKS header on device %s.\n" -msgstr "Error al actualizar la cabecera LUKS en el dispositivo %s.\n" - -#: lib/luks1/keymanage.c:603 -#, c-format -msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" -"Error al leer la cabecera LUKS después de actualizarla en el dispositivo " -"%s.\n" - -#: lib/luks1/keymanage.c:654 -#, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" -"La posición de los datos de una cabecera LUKS separada debe ser 0 o superior " -"al tamaño de la cabecera (%d sectores).\n" - -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 -msgid "Wrong LUKS UUID format provided.\n" -msgstr "El formato de UUID LUKS proporcionado es incorrecto.\n" - -#: lib/luks1/keymanage.c:695 -msgid "Cannot create LUKS header: reading random salt failed.\n" -msgstr "" -"No se puede crear la cabecera LUKS: fallo en la lectura «random salt».\n" - -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 -#, c-format -msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" -msgstr "Opciones PBKDF2 no compatibles (usando el algoritmo «hash» %s).\n" - -#: lib/luks1/keymanage.c:717 -#, c-format -msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"No se puede crear la cabecera LUKS: fallo en la cabecera (usando «hash» " -"%s).\n" - -#: lib/luks1/keymanage.c:782 -#, c-format -msgid "Key slot %d active, purge first.\n" -msgstr "La ranura de claves %d está activa; primero hay que purgar.\n" - -#: lib/luks1/keymanage.c:788 -#, c-format -msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" -"El material de la ranura de claves %d no tiene suficientes bandas. Quizá se " -"haya manipulado la cabecera.\n" - -#: lib/luks1/keymanage.c:950 -#, c-format -msgid "Key slot %d unlocked.\n" -msgstr "Ranura de claves %d desbloqueada.\n" - -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 -msgid "No key available with this passphrase.\n" -msgstr "No hay ninguna clave disponible con esa frase contraseña.\n" - -#: lib/luks1/keymanage.c:1003 -#, c-format -msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" -msgstr "" -"La ranura %d no es válida; seleccione una ranura de claves entre 0 y %d.\n" - -#: lib/luks1/keymanage.c:1021 -#, c-format -msgid "Cannot wipe device %s.\n" -msgstr "No se puede limpiar el dispositivo %s.\n" - -#: lib/loopaes/loopaes.c:146 -msgid "Detected not yet supported GPG encrypted keyfile.\n" -msgstr "" -"Se ha detectado un fichero de claves cifrado con GPG que el programa no " -"puede procesar en la actualidad.\n" - -#: lib/loopaes/loopaes.c:147 -msgid "Please use gpg --decrypt | cryptsetup --keyfile=- ...\n" -msgstr "" -"Utilice 'gpg --decrypt | cryptsetup --keyfile=- ...'\n" - -#: lib/loopaes/loopaes.c:168 lib/loopaes/loopaes.c:188 -msgid "Incompatible loop-AES keyfile detected.\n" -msgstr "Se ha detectado un fichero de claves incompatible con «loop-AES».\n" - -#: lib/loopaes/loopaes.c:244 -msgid "Kernel doesn't support loop-AES compatible mapping.\n" -msgstr "El núcleo no admite asignación compatible con «loop-AES».\n" - -#: lib/tcrypt/tcrypt.c:475 -#, c-format -msgid "Error reading keyfile %s.\n" -msgstr "Error leyendo el fichero de claves %s.\n" - -#: lib/tcrypt/tcrypt.c:513 -#, c-format -msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" -msgstr "" -"Se ha excedido la longitud máxima (%d) de la frase contraseña TCRYPT.\n" - -#: lib/tcrypt/tcrypt.c:543 -#, c-format -msgid "PBKDF2 hash algorithm %s not available, skipping.\n" -msgstr "" -"El algoritmo «hash» %s no está disponible, por lo que se ha ignorado.\n" - -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 -msgid "Required kernel crypto interface not available.\n" -msgstr "La interfaz de cifrado del núcleo requerida no está disponible.\n" - -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 -msgid "Ensure you have algif_skcipher kernel module loaded.\n" -msgstr "Asegúrese de que el módulo del núcleo algof_skcipher está cargado.\n" - -#: lib/tcrypt/tcrypt.c:707 -#, c-format -msgid "Activation is not supported for %d sector size.\n" -msgstr "No es posible la activación para el tamaño de sector %d.\n" - -#: lib/tcrypt/tcrypt.c:713 -msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" -msgstr "El núcleo no dispone de activación para este modo antiguo TCRYPT.\n" - -#: lib/tcrypt/tcrypt.c:744 -#, c-format -msgid "Activating TCRYPT system encryption for partition %s.\n" -msgstr "Activando el sistema de cifrado TCRYPT para la partición %s.\n" - -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "El núcleo no admite asignación compatible con TCRYPT.\n" - -#: lib/tcrypt/tcrypt.c:1020 -msgid "This function is not supported without TCRYPT header load." -msgstr "Esta función no está disponible sin carga de cabecera TCRYPT." - -#: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "El dispositivo «verity» %s no utiliza cabecera en disco.\n" - -#: lib/verity/verity.c:94 -#, c-format -msgid "Device %s is not a valid VERITY device.\n" -msgstr "El dispositivo %s no es un dispositivo VERITY válido.\n" - -#: lib/verity/verity.c:101 -#, c-format -msgid "Unsupported VERITY version %d.\n" -msgstr "Versión VERITY %d no disponible.\n" - -#: lib/verity/verity.c:131 -msgid "VERITY header corrupted.\n" -msgstr "Cabecera VERITY corrupta.\n" - -#: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "" -"El formato UUID VERITY proporcionado en el dispositivo %s es incorrecto.\n" - -#: lib/verity/verity.c:196 -#, c-format -msgid "Error during update of verity header on device %s.\n" -msgstr "Error al actualizar la cabecera «verity» en el dispositivo %s.\n" - -#: lib/verity/verity.c:276 -msgid "Kernel doesn't support dm-verity mapping.\n" -msgstr "El núcleo no dispone de asignación «dm-verity».\n" - -#: lib/verity/verity.c:287 -msgid "Verity device detected corruption after activation.\n" -msgstr "" -"El dispositivo «verity» ha detectado algo corrupto después de la " -"activación.\n" - -#: lib/verity/verity_hash.c:59 -#, c-format -msgid "Spare area is not zeroed at position %.\n" -msgstr "El área de reserva no tiene ceros en la posición %.\n" - -#: lib/verity/verity_hash.c:121 lib/verity/verity_hash.c:249 -#: lib/verity/verity_hash.c:277 lib/verity/verity_hash.c:284 -msgid "Device offset overflow.\n" -msgstr "Desbordamiento de la posición del dispositivo.\n" - -#: lib/verity/verity_hash.c:161 -#, c-format -msgid "Verification failed at position %.\n" -msgstr "La verificación ha fallado en la posición %.\n" - -#: lib/verity/verity_hash.c:235 -msgid "Invalid size parameters for verity device.\n" -msgstr "Parámetros de tamaño inválido para un dispositivo «verity».\n" - -#: lib/verity/verity_hash.c:266 -msgid "Too many tree levels for verity volume.\n" -msgstr "Demasiados niveles de arborescencia en el volumen «verity».\n" - -#: lib/verity/verity_hash.c:354 -msgid "Verification of data area failed.\n" -msgstr "Fallo en la verificación del área de datos.\n" - -#: lib/verity/verity_hash.c:359 -msgid "Verification of root hash failed.\n" -msgstr "Fallo en la verificación de la «hash» raíz.\n" - -#: lib/verity/verity_hash.c:365 -msgid "Input/output error while creating hash area.\n" -msgstr "Error de entrada/salida al crear el área «hash».\n" - -#: lib/verity/verity_hash.c:367 -msgid "Creation of hash area failed.\n" -msgstr "La creación del área «hash» ha fallado.\n" - -#: lib/verity/verity_hash.c:414 -#, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" -"ATENCIÓN: el núcleo no puede activar un dispositivo si el tamaño del bloque " -"de datos excede el tamaño de página (%u).\n" - -#: src/cryptsetup.c:91 -msgid "Can't do passphrase verification on non-tty inputs.\n" -msgstr "" -"No se puede hacer verificación de frase contraseña en entradas no tty.\n" - -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 -msgid "No known cipher specification pattern detected.\n" -msgstr "" -"No se ha detectado ningún patrón conocido de especificación de cifrado.\n" - -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" -"ATENCIÓN: No se va a hacer caso del parámetro --hash en modo no cifrado con " -"el fichero de claves especificado.\n" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" -"ATENCIÓN: No se va a hacer caso de la opción --keyfile-size; el tamaño de " -"lectura es igual al tamaño de la clave de cifrado.\n" - -#: src/cryptsetup.c:218 -msgid "Option --key-file is required.\n" -msgstr "Es necesaria la opción --key-file.\n" - -#: src/cryptsetup.c:267 -msgid "No device header detected with this passphrase.\n" -msgstr "" -"No se ha detectado ninguna cabecera de dispositivo con esa frase " -"contraseña.\n" - -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 -msgid "" -"Header dump with volume key is sensitive information\n" -"which allows access to encrypted partition without passphrase.\n" -"This dump should be always stored encrypted on safe place." -msgstr "" -"El volcado de la cabecera con la clave del volumen es información\n" -"sensible que permite el acceso a una partición cifrada sin frase " -"contraseña.\n" -"Este volcado debería almacenarse siempre cifrado en un lugar seguro." - -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "El resultado de la comparativa no es fiable.\n" - -#: src/cryptsetup.c:558 -msgid "# Tests are approximate using memory only (no storage IO).\n" -msgstr "" -"# Las pruebas son solo aproximadas usando memoria (no hay entrada/salida de " -"almacenadmiento).\n" - -#: src/cryptsetup.c:583 src/cryptsetup.c:605 -msgid "# Algorithm | Key | Encryption | Decryption\n" -msgstr "# Algoritmo | Clave | Cifrado | Descifrado\n" - -#: src/cryptsetup.c:587 -#, c-format -msgid "Cipher %s is not available.\n" -msgstr "El algoritmo de cifrado %s no está disponible.\n" - -#: src/cryptsetup.c:614 -msgid "N/A" -msgstr "/N/A" - -#: src/cryptsetup.c:639 -#, c-format -msgid "Cannot read keyfile %s.\n" -msgstr "No se puede leer el fichero de claves %s.\n" - -#: src/cryptsetup.c:643 -#, c-format -msgid "Cannot read %d bytes from keyfile %s.\n" -msgstr "No se pueden leer %d «bytes» en el fichero de claves %s.\n" - -#: src/cryptsetup.c:672 -msgid "Really try to repair LUKS device header?" -msgstr "" -"¿Está seguro de que quiere intentar reparar la cabecera del dispositivo LUKS?" - -#: src/cryptsetup.c:697 -#, c-format -msgid "This will overwrite data on %s irrevocably." -msgstr "Esto sobreescribirá los datos en %s de forma irrevocable." - -#: src/cryptsetup.c:699 -msgid "memory allocation error in action_luksFormat" -msgstr "error de reserva de memoria en action_luksFormat" - -#: src/cryptsetup.c:717 -#, c-format -msgid "Cannot use %s as on-disk header.\n" -msgstr "No se puede utilizar %s como cabecera en disco.\n" - -#: src/cryptsetup.c:784 -msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" -"La posición de datos reducida está permitida solamente para cabecera LUKS " -"separada.\n" - -#: src/cryptsetup.c:881 src/cryptsetup.c:937 -#, c-format -msgid "Key slot %d selected for deletion.\n" -msgstr "La ranura de claves %d se va a borrar.\n" - -#: src/cryptsetup.c:884 -#, c-format -msgid "Key %d not active. Can't wipe.\n" -msgstr "La clave %d no está activa. No se puede limpiar.\n" - -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"Esta es la última ranura de claves. El dispositivo quedará inutilizado " -"después de purgar esta clave." - -#: src/cryptsetup.c:893 -msgid "Enter any remaining passphrase: " -msgstr "Introduzca cualquier frase contraseña que quede: " - -#: src/cryptsetup.c:921 -msgid "Enter passphrase to be deleted: " -msgstr "Introduzca la frase contraseña que hay que borrar: " - -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format -msgid "Enter any existing passphrase: " -msgstr "Introduzca cualquier frase contraseña que exista: " - -#: src/cryptsetup.c:1052 -msgid "Enter passphrase to be changed: " -msgstr "Introduzca la frase contraseña que hay que cambiar: " - -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 -msgid "Enter new passphrase: " -msgstr "Introduzca una nueva frase contraseña: " - -#: src/cryptsetup.c:1090 -msgid "Only one device argument for isLuks operation is supported.\n" -msgstr "La operación isLuks solo admite un argumento de dispositivo.\n" - -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 -msgid "Option --header-backup-file is required.\n" -msgstr "Es necesaria la opción --header-backup-file.\n" - -#: src/cryptsetup.c:1304 -#, c-format -msgid "Unrecognized metadata device type %s.\n" -msgstr "Tipo de dispositivo de metadatos %s no reconocido.\n" - -#: src/cryptsetup.c:1307 -msgid "Command requires device and mapped name as arguments.\n" -msgstr "" -"Esta orden necesita como argumentos el dispositivo y el nombre asociado.\n" - -#: src/cryptsetup.c:1326 -#, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Esta operación borrará todas las ranuras de claves en el dispositivo %s.\n" -"El dispositivo quedará inutilizable después de esta operación." - -#: src/cryptsetup.c:1360 -msgid " [--type ] []" -msgstr " [--type []" - -#: src/cryptsetup.c:1360 -msgid "open device as mapping " -msgstr "abrir el dispositivo como asociado a " - -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 -msgid "" -msgstr "" - -#: src/cryptsetup.c:1361 -msgid "close device (remove mapping)" -msgstr "cerrar dispositivo (eliminar asociación)" - -#: src/cryptsetup.c:1362 -msgid "resize active device" -msgstr "cambiar el tamaño del dispositivo activo" - -#: src/cryptsetup.c:1363 -msgid "show device status" -msgstr "mostrar el estado del dispositivo" - -#: src/cryptsetup.c:1364 -msgid "benchmark cipher" -msgstr "algoritmo de cifrado para pruebas" - -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 -msgid "" -msgstr "" - -#: src/cryptsetup.c:1365 -msgid "try to repair on-disk metadata" -msgstr "intentar reparar metadatos en disco" - -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "borrar todas las ranuras de claves (eliminar clave de cifrado)" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 -msgid " []" -msgstr " []" - -#: src/cryptsetup.c:1367 -msgid "formats a LUKS device" -msgstr "da formato a un dispositivo LUKS" - -#: src/cryptsetup.c:1368 -msgid "add key to LUKS device" -msgstr "añadir clave a un dispositivo LUKS" - -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 -msgid " []" -msgstr " []" - -#: src/cryptsetup.c:1369 -msgid "removes supplied key or key file from LUKS device" -msgstr "" -"elimina la clave suministrada o el fichero de claves del dispositivo LUKS" - -#: src/cryptsetup.c:1370 -msgid "changes supplied key or key file of LUKS device" -msgstr "" -"cambia la clave suministrada o el fichero de claves del dispositivo LUKS" - -#: src/cryptsetup.c:1371 -msgid " " -msgstr " " - -#: src/cryptsetup.c:1371 -msgid "wipes key with number from LUKS device" -msgstr "borra la clave con el número del dispositivo LUKS" - -#: src/cryptsetup.c:1372 -msgid "print UUID of LUKS device" -msgstr "imprimir el UUID del dispositivo LUKS" - -#: src/cryptsetup.c:1373 -msgid "tests for LUKS partition header" -msgstr "comprueba si tiene cabecera de partición LUKS" - -#: src/cryptsetup.c:1374 -msgid "dump LUKS partition information" -msgstr "volcar información sobre la partición LUKS" - -#: src/cryptsetup.c:1375 -msgid "dump TCRYPT device information" -msgstr "volcar información sobre el dispositivo TCRYPT" - -#: src/cryptsetup.c:1376 -msgid "Suspend LUKS device and wipe key (all IOs are frozen)." -msgstr "" -"Suspender el dispositivo LUKS y limpiar la clave (todas las entradas/salidas " -"congeladas)." - -#: src/cryptsetup.c:1377 -msgid "Resume suspended LUKS device." -msgstr "Reanudar el dispositivo LUKS suspendido." - -#: src/cryptsetup.c:1378 -msgid "Backup LUKS device header and keyslots" -msgstr "" -"Hacer copia de seguridad de la cabecera y de las ranuras de claves del " -"dispositivo LUKS" - -#: src/cryptsetup.c:1379 -msgid "Restore LUKS device header and keyslots" -msgstr "Restaurar la cabecera y las ranuras de claves del dispositivo LUKS" - -#: src/cryptsetup.c:1396 src/veritysetup.c:328 -msgid "" -"\n" -" is one of:\n" -msgstr "" -"\n" -" es una de:\n" - -#: src/cryptsetup.c:1402 -msgid "" -"\n" -"You can also use old syntax aliases:\n" -"\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" -"\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" -msgstr "" -"\n" -"También se pueden utilizar los alias del tipo de la antigua " -"sintaxis:\n" -"\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" -"\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" - -#: src/cryptsetup.c:1406 -#, c-format -msgid "" -"\n" -" is the device to create under %s\n" -" is the encrypted device\n" -" is the LUKS key slot number to modify\n" -" optional key file for the new key for luksAddKey action\n" -msgstr "" -"\n" -" es el dispositivo que se va a crear en %s\n" -" es el dispositivo cifrado\n" -" es el número de la ranura de claves que se va a " -"modificar\n" -" fichero de claves opcional para la nueva clave para la " -"acción 'luksAddKey'\n" - -#: src/cryptsetup.c:1413 -#, c-format -msgid "" -"\n" -"Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" -"Default PBKDF2 iteration time for LUKS: %d (ms)\n" -msgstr "" -"\n" -"Parámetros predefinidos de fábrica de clave y de frase contraseña:\n" -"\tTamaño máximo del fichero de claves: %dk8, Longitud máxima de frase " -"contraseña interactiva: %d (caracteres)\n" -"Tiempo PBKDF2 de iteración de LUKS predefinido: %d (ms)\n" - -#: src/cryptsetup.c:1420 -#, c-format -msgid "" -"\n" -"Default compiled-in device cipher parameters:\n" -"\tloop-AES: %s, Key %d bits\n" -"\tplain: %s, Key: %d bits, Password hashing: %s\n" -"\tLUKS1: %s, Key: %d bits, LUKS header hashing: %s, RNG: %s\n" -msgstr "" -"\n" -"Parámetros predefinidos de fábrica del algoritmo de cifrado de " -"dispositivos:\n" -"\tbucle-AES: %s, Clave %d bits\n" -"\tsin cifrado: %s, Clave: %d bits, Contraseña «hashing»: %s\n" -"\tLUKS1: %s, Clave: %d bits, «hashing» de la cabecera LUKS: %s, Generador de " -"números aleatorios: %s\n" - -#: src/cryptsetup.c:1437 src/veritysetup.c:460 -#, c-format -msgid "%s: requires %s as arguments" -msgstr "%s: necesita %s como argumentos" - -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 -msgid "Show this help message" -msgstr "Mostrar este mensaje de ayuda" - -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 -msgid "Display brief usage" -msgstr "Mostrar brevemente cómo se usa" - -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 -msgid "Help options:" -msgstr "Opciones de ayuda:" - -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 -msgid "Print package version" -msgstr "Imprimir versión del paquete" - -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 -msgid "Shows more detailed error messages" -msgstr "Muestra mensajes de error más detallados" - -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 -msgid "Show debug messages" -msgstr "Mostrar mensajes de depuración" - -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 -msgid "The cipher used to encrypt the disk (see /proc/crypto)" -msgstr "Algoritmo de cifrado utilizado para cifrar el disco (ver /proc/crypto)" - -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 -msgid "The hash used to create the encryption key from the passphrase" -msgstr "" -"Algoritmo «hash» utilizado para crear la clave de cifrado a partir de la " -"frase contraseña" - -#: src/cryptsetup.c:1481 -msgid "Verifies the passphrase by asking for it twice" -msgstr "Verifica la frase contraseña preguntándola dos veces" - -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 -msgid "Read the key from a file." -msgstr "Leer la clave de un fichero." - -#: src/cryptsetup.c:1483 -msgid "Read the volume (master) key from file." -msgstr "Leer la clave (maestra) del volumen desde fichero." - -#: src/cryptsetup.c:1484 -msgid "Dump volume (master) key instead of keyslots info." -msgstr "" -"Volcar la clave (maestra) del volumen en lugar de la información de las " -"ranuras de claves." - -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 -msgid "The size of the encryption key" -msgstr "Tamaño de la clave de cifrado" - -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 -msgid "BITS" -msgstr "BITS" - -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 -msgid "Limits the read from keyfile" -msgstr "Limita la lectura desde fichero de claves" - -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 -msgid "bytes" -msgstr "bytes" - -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 -msgid "Number of bytes to skip in keyfile" -msgstr "Número de bytes que hay que saltar en el fichero de claves" - -#: src/cryptsetup.c:1488 -msgid "Limits the read from newly added keyfile" -msgstr "Limita la lectura desde un fichero de claves recién añadido" - -#: src/cryptsetup.c:1489 -msgid "Number of bytes to skip in newly added keyfile" -msgstr "" -"Número de bytes que hay que saltar en el fichero de claves recién añadido" - -#: src/cryptsetup.c:1490 -msgid "Slot number for new key (default is first free)" -msgstr "" -"Número de ranura para la nueva clave (el primero libre es lo predefinido)" - -#: src/cryptsetup.c:1491 -msgid "The size of the device" -msgstr "Tamaño del dispositivo" - -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 -msgid "SECTORS" -msgstr "SECTORES" - -#: src/cryptsetup.c:1492 -msgid "The start offset in the backend device" -msgstr "iPosición de comienzo en el dispositivo «backend»" - -#: src/cryptsetup.c:1493 -msgid "How many sectors of the encrypted data to skip at the beginning" -msgstr "Cuántos sectores de los datos cifrados hay que saltar al principio" - -#: src/cryptsetup.c:1494 -msgid "Create a readonly mapping" -msgstr "Crear una asignación alatoria" - -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 -msgid "PBKDF2 iteration time for LUKS (in ms)" -msgstr "Tiempo de iteración PBKDF2 para LUKS (en ms)" - -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 -msgid "msecs" -msgstr "ms" - -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 -msgid "Do not ask for confirmation" -msgstr "No pedir confirmación" - -#: src/cryptsetup.c:1497 -msgid "Timeout for interactive passphrase prompt (in seconds)" -msgstr "" -"Tiempo de espera máximo para petición interactiva de frase contraseña (en " -"segundos)" - -#: src/cryptsetup.c:1497 -msgid "secs" -msgstr "s" - -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 -msgid "How often the input of the passphrase can be retried" -msgstr "" -"Con qué frecuencia se puede volver a intentar introducir la frase contraseña" - -#: src/cryptsetup.c:1499 -msgid "Align payload at sector boundaries - for luksFormat" -msgstr "Alinear los datos a bordes de sector - para luksFormat" - -#: src/cryptsetup.c:1500 -msgid "File with LUKS header and keyslots backup." -msgstr "Fichero con copia de seguridad de cabecera LUKS y de ranuras de clave." - -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 -msgid "Use /dev/random for generating volume key." -msgstr "Usar /dev/random para generar la clave del volumen." - -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 -msgid "Use /dev/urandom for generating volume key." -msgstr "Usar /dev/urandom para generar la clave del volumen." - -#: src/cryptsetup.c:1503 -msgid "Share device with another non-overlapping crypt segment." -msgstr "Compartir dispositivo con otro segmento cifrado no solapado." - -#: src/cryptsetup.c:1504 src/veritysetup.c:385 -msgid "UUID for device to use." -msgstr "UUID del dispositivo que se va a usar." - -#: src/cryptsetup.c:1505 -msgid "Allow discards (aka TRIM) requests for device." -msgstr "" -"Permitir solicitudes de descarte (también llamadas TRIM) para el dispositivo." - -#: src/cryptsetup.c:1506 -msgid "Device or file with separated LUKS header." -msgstr "Dispositivo o fichero con cabecera LUKS separada." - -#: src/cryptsetup.c:1507 -msgid "Do not activate device, just check passphrase." -msgstr "No activar dispositivo; comprobar frase contraseña solamente." - -#: src/cryptsetup.c:1508 -msgid "Use hidden header (hidden TCRYPT device)." -msgstr "Utilizar cabecera oculta (dispositivo TCRYPT oculto)." - -#: src/cryptsetup.c:1509 -msgid "Device is system TCRYPT drive (with bootloader)." -msgstr "" -"El dispositivo es una unidad con sistema TCRYPT (con cargador de arranque)." - -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "Utilizar la cabecera TCRYPT de respaldo (secundaria)." - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "Explorar también si es un dispositivo compatible con VeraCrypt." - -#: src/cryptsetup.c:1512 -msgid "Type of device metadata: luks, plain, loopaes, tcrypt." -msgstr "" -"Tipo de metadatos del dispositivo: «luks», no cifrado, «loopaes», «tcrypt»." - -#: src/cryptsetup.c:1513 -msgid "Disable password quality check (if enabled)." -msgstr "" -"Desactivar la comprobación de la calidad de la contraseña (si estaba " -"activada)." - -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "" -"Utilizar la opción de compatibilidad de rendimiento same_cpu_crypt de dm-" -"crypt." - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" -"Utilizar la opción de compatibilidad de rendimiento submit_from_crypt_cpus " -"de dm-crypt." - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 -msgid "[OPTION...] " -msgstr "[OPCIÓN...] " - -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "Modo FIPS en funcionamiento.\n" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 -msgid "Argument missing." -msgstr "El argumento no se ha proporcionado." - -#: src/cryptsetup.c:1634 src/veritysetup.c:445 -msgid "Unknown action." -msgstr "Acción desconocida." - -#: src/cryptsetup.c:1644 -msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "" -"La opción --shared solo se permite para abrir dispositivos no cifrados.\n" - -#: src/cryptsetup.c:1649 -msgid "Option --allow-discards is allowed only for open operation.\n" -msgstr "" -"La opción --allow-discards solo se permite para la operación de abrir.\n" - -#: src/cryptsetup.c:1657 -msgid "" -"Option --key-size is allowed only for luksFormat, open and benchmark.\n" -"To limit read from keyfile use --keyfile-size=(bytes)." -msgstr "" -"La opción --key-size solo se permite con luksFormat, open y benchmark.\n" -"Para limitar la lectura del fichero de claves, utilizar --keyfile-" -"size=(bytes)." - -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" -"La opción --test-passphrase solo se permite para abrir dispositivos LUKS y " -"TCRYPT.\n" - -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 -msgid "Key size must be a multiple of 8 bits" -msgstr "El tamaño de clave debe ser un múltiplo de 8 bits" - -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 -msgid "Key slot is invalid." -msgstr "La ranura de claves no es válida." - -#: src/cryptsetup.c:1683 -msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" -"La opción --key-file tiene precedencia sobre el argumento de fichero de " -"claves especificado.\n" - -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 -msgid "Negative number for option not permitted." -msgstr "No se permiten números negativos para esta opción." - -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 -msgid "Only one of --use-[u]random options is allowed." -msgstr "Solo se permite una de las opciones --use-[u]random." - -#: src/cryptsetup.c:1699 -msgid "Option --use-[u]random is allowed only for luksFormat." -msgstr "La opción --use-[u]random solo se permite con luksFormat." - -#: src/cryptsetup.c:1703 -msgid "Option --uuid is allowed only for luksFormat and luksUUID." -msgstr "La opción --uuid solo se permite con luksFormat luksUUID." - -#: src/cryptsetup.c:1707 -msgid "Option --align-payload is allowed only for luksFormat." -msgstr "La opción --align-payload solo se permite con luksFormat." - -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" -"La opción --skip solo está disponible para abrir dispositivos no cifrados y " -"«loopaes».\n" - -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" -"La opción --offset solo está disponible para abrir dispositivos no cifrados " -"y «loopaes».\n" - -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" -"La opción --tcrypt-hidden o --tcrypt-system o --tcrypt-backup solo está " -"disponible para dispositivos TCRYPT.\n" - -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "La opción --tcrypt-hidden no puede combinarse con --allow-discards.\n" - -#: src/cryptsetup.c:1735 -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "La opción --veracrypt solo está disponible para dispositivos TCRYPT.\n" - -#: src/veritysetup.c:58 -msgid "Invalid salt string specified.\n" -msgstr "La cadena «salt» especificada no es válida.\n" - -#: src/veritysetup.c:88 -#, c-format -msgid "Cannot create hash image %s for writing.\n" -msgstr "No se puede crear la imagen «hash» %s para escribir.\n" - -#: src/veritysetup.c:148 -msgid "Invalid root hash string specified.\n" -msgstr "La cadena «hash» raíz especificada no es válida.\n" - -#: src/veritysetup.c:308 -msgid " " -msgstr " " - -#: src/veritysetup.c:308 -msgid "format device" -msgstr "dar formato al dispositivo" - -#: src/veritysetup.c:309 -msgid " " -msgstr " <«hash»_raíz>" - -#: src/veritysetup.c:309 -msgid "verify device" -msgstr "verificar dispositivo" - -#: src/veritysetup.c:310 -msgid " " -msgstr " <«hash»_raíz>" - -#: src/veritysetup.c:310 -msgid "create active device" -msgstr "crear dispositivo activo" - -#: src/veritysetup.c:311 -msgid "remove (deactivate) device" -msgstr "eliminar (desactivar) dispositivo" - -#: src/veritysetup.c:312 -msgid "show active device status" -msgstr "mostrar el estado del dispositivo activo" - -#: src/veritysetup.c:313 -msgid "" -msgstr "" - -#: src/veritysetup.c:313 -msgid "show on-disk information" -msgstr "mostrar información sobre el disco" - -#: src/veritysetup.c:332 -#, c-format -msgid "" -"\n" -" is the device to create under %s\n" -" is the data device\n" -" is the device containing verification data\n" -" hash of the root node on \n" -msgstr "" -"\n" -" es el dispositivo que se va a crear bajo %s\n" -" es el dispositivo de datos\n" -" es el dispositivo que contiene los datos de " -"verificación\n" -"<«hash»_raíz> «hash» del nodo raíz en «dispositivo—«hash»>\n" - -#: src/veritysetup.c:339 -#, c-format -msgid "" -"\n" -"Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" -msgstr "" -"\n" -"Parámetros dm-verity predefinidos de fábrica:\n" -"\tAlgoritmo «hash»: %s, Bloque de datos (bytes): %u, Bloque «hash» (bytes): " -"%u, Tamaño de «salt»: %u, Formato «hash»: %u\n" - -#: src/veritysetup.c:377 -msgid "Do not use verity superblock" -msgstr "No utilizar superbloque «verity»" - -#: src/veritysetup.c:378 -msgid "Format type (1 - normal, 0 - original Chrome OS)" -msgstr "Tipo de formato (1 - normal, 0 - Chrome OS original)" - -#: src/veritysetup.c:378 -msgid "number" -msgstr "número" - -#: src/veritysetup.c:379 -msgid "Block size on the data device" -msgstr "Tamaño de bloque en el dispositivo de datos" - -#: src/veritysetup.c:380 -msgid "Block size on the hash device" -msgstr "Tamaño de bloque en el dispositivo «hash»" - -#: src/veritysetup.c:381 -msgid "The number of blocks in the data file" -msgstr "Número de bloques en el fichero de datos" - -#: src/veritysetup.c:381 -msgid "blocks" -msgstr "bloques" - -#: src/veritysetup.c:382 -msgid "Starting offset on the hash device" -msgstr "Posición inicial en el dispositivo «hash»" - -#: src/veritysetup.c:383 -msgid "Hash algorithm" -msgstr "Algoritmo «hash»" - -#: src/veritysetup.c:383 -msgid "string" -msgstr "cadena" - -#: src/veritysetup.c:384 -msgid "Salt" -msgstr "«Salt»" - -#: src/veritysetup.c:384 -msgid "hex string" -msgstr "cadena hexadecimal" - -#: src/cryptsetup_reencrypt.c:147 -#, c-format -msgid "Cannot exclusively open %s, device in use.\n" -msgstr "No se puede abrir %s en exclusividad; el dispositivo está en uso.\n" - -#: src/cryptsetup_reencrypt.c:151 -#, c-format -msgid "Cannot open device %s\n" -msgstr "No se puede abrir el dispositivo %s\n" - -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 -msgid "Allocation of aligned memory failed.\n" -msgstr "La reserva de memoria alineada ha fallado.\n" - -#: src/cryptsetup_reencrypt.c:168 -#, c-format -msgid "Cannot read device %s.\n" -msgstr "No se puede leer el dispositivo %s.\n" - -#: src/cryptsetup_reencrypt.c:179 -#, c-format -msgid "Marking LUKS device %s unusable.\n" -msgstr "Marcando el dispositivo LUKS %s como inutilizable.\n" - -#: src/cryptsetup_reencrypt.c:184 -#, c-format -msgid "Marking LUKS device %s usable.\n" -msgstr "Marcando el dispositivo LUKS %s como utilizable.\n" - -#: src/cryptsetup_reencrypt.c:200 -#, c-format -msgid "Cannot write device %s.\n" -msgstr "No se puede escribir en el dispositivo %s.\n" - -#: src/cryptsetup_reencrypt.c:281 -msgid "Cannot write reencryption log file.\n" -msgstr "No se puede escribir en el fichero de registro de recifrado.\n" - -#: src/cryptsetup_reencrypt.c:337 -msgid "Cannot read reencryption log file.\n" -msgstr "No se puede leer el fichero de registro de recifrado.\n" - -#: src/cryptsetup_reencrypt.c:374 -#, c-format -msgid "Log file %s exists, resuming reencryption.\n" -msgstr "El fichero de registro %s ya existe; reanudando el recifrado.\n" - -#: src/cryptsetup_reencrypt.c:403 -msgid "Activating temporary device using old LUKS header.\n" -msgstr "Activando dispositivo temporal utilizando cabecera LUKS antigua.\n" - -#: src/cryptsetup_reencrypt.c:414 -msgid "Activating temporary device using new LUKS header.\n" -msgstr "Activando dispositivo temporal utilizando cabecera LUKS nueva.\n" - -#: src/cryptsetup_reencrypt.c:424 -msgid "Activation of temporary devices failed.\n" -msgstr "Fallo en la activación de los dispositivos temporales.\n" - -#: src/cryptsetup_reencrypt.c:450 -#, c-format -msgid "New LUKS header for device %s created.\n" -msgstr "Se ha creado una nueva cabecera LUKS para el dispositivo %s.\n" - -#: src/cryptsetup_reencrypt.c:458 -#, c-format -msgid "Activated keyslot %i.\n" -msgstr "Se ha activado la ranura de claves %i.\n" - -#: src/cryptsetup_reencrypt.c:484 -#, c-format -msgid "LUKS header backup of device %s created.\n" -msgstr "" -"Se ha creado una copia de seguridad de la cabecera LUKS del dispositivo %s.\n" - -#: src/cryptsetup_reencrypt.c:532 -msgid "Creation of LUKS backup headers failed.\n" -msgstr "Fallo al crear la copia de seguridad de las cabeceras LUKS.\n" - -#: src/cryptsetup_reencrypt.c:634 -#, c-format -msgid "Cannot restore LUKS header on device %s.\n" -msgstr "No se puede restaurar la cabecera LUKS en el dispositivo %s.\n" - -#: src/cryptsetup_reencrypt.c:636 -#, c-format -msgid "LUKS header on device %s restored.\n" -msgstr "Se ha restaurado la cabecera LUKS en el dispositivo %s.\n" - -#: src/cryptsetup_reencrypt.c:669 -#, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" -"Progreso: %5.1f%%, ETA %02llu:%02llu, %4llu MiB escritos, velocidad %5.1f " -"MiB/s%s" - -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 -msgid "Cannot seek to device offset.\n" -msgstr "No es posible situarse en la posición del dispositivo.\n" - -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 -msgid "Cannot open temporary LUKS header file.\n" -msgstr "No se puede abrir el fichero temporal de la cabecera LUKS.\n" - -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 -msgid "Cannot get device size.\n" -msgstr "No se puede obtener el tamaño del dispositivo.\n" - -#: src/cryptsetup_reencrypt.c:919 -msgid "Interrupted by a signal.\n" -msgstr "Interrumpido por una señal.\n" - -#: src/cryptsetup_reencrypt.c:921 -msgid "IO error during reencryption.\n" -msgstr "Error de entrada/salida durante el recifrado.\n" - -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" -"El fichero de claves solo puede usarse con --key-slot o con una sola ranura " -"de claves activa exactamente.\n" - -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 -#, c-format -msgid "Enter passphrase for key slot %u: " -msgstr "Introduzca la fase contraseña para la ranura de claves %u: " - -#: src/cryptsetup_reencrypt.c:1136 -msgid "Cannot open reencryption log file.\n" -msgstr "No se puede abrir el fichero de registro de recifrado.\n" - -#: src/cryptsetup_reencrypt.c:1262 -msgid "Reencryption block size" -msgstr "Tamaño de bloque de recifrado" - -#: src/cryptsetup_reencrypt.c:1262 -msgid "MiB" -msgstr "MiB" - -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "No cambie la clave; no hay recifrado en la zona de datos." - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." -msgstr "Utilizar entrada/salida directa para acceder a los dispositivos." - -#: src/cryptsetup_reencrypt.c:1274 -msgid "Use fsync after each block." -msgstr "Utilizar fsync después de cada bloque." - -#: src/cryptsetup_reencrypt.c:1275 -msgid "Update log file after every block." -msgstr "Actualizar el fichero de registro después de cada bloque." - -#: src/cryptsetup_reencrypt.c:1276 -msgid "Use only this slot (others will be disabled)." -msgstr "Utilizar solamente esta ranura (se desactivarán las demás)." - -#: src/cryptsetup_reencrypt.c:1279 -msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" -"Reducir el tamaño del dispositivo de datos (mover la posición de los datos). " -"¡PELIGROSO!" - -#: src/cryptsetup_reencrypt.c:1280 -msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" -"Utilizar solamente el tamaño especificado de dispositivo (ignorar el resto " -"del dispositivo). ¡PELIGROSO!" - -#: src/cryptsetup_reencrypt.c:1281 -msgid "Create new header on not encrypted device." -msgstr "Crear nueva cabecera en dispositivo no cifrado." - -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "Descrifrar el dispositivo de forma permanente (eliminar cifrado)." - -#: src/cryptsetup_reencrypt.c:1298 -msgid "[OPTION...] " -msgstr "[OPCIÓN...] " - -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" -"ATENCIÓN: este código es experimental; puede ser que sus datos queden " -"deteriorados por completo.\n" - -#: src/cryptsetup_reencrypt.c:1313 -#, c-format -msgid "Reencryption will change: volume key%s%s%s%s.\n" -msgstr "El recifrado va a cambiar: clave del volumen%s%s%s%s.\n" - -#: src/cryptsetup_reencrypt.c:1314 -msgid ", set hash to " -msgstr ", nuevo algoritmo «hash»: " - -#: src/cryptsetup_reencrypt.c:1315 -msgid ", set cipher to " -msgstr ", nuevo algoritmo de cifrado: " - -#: src/cryptsetup_reencrypt.c:1320 -msgid "Argument required." -msgstr "Hace falta argumento." - -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" -"Solo se permiten valores entre 1 MiB y 64 MiB para el tamaño de bloque de " -"recifrado." - -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 -msgid "Invalid device size specification." -msgstr "La especificación del tamaño del dispositivo no es válida." - -#: src/cryptsetup_reencrypt.c:1363 -msgid "Maximum device reduce size is 64 MiB." -msgstr "El tamaño máximo de reducción del dispositivo es de 64 MiB." - -#: src/cryptsetup_reencrypt.c:1366 -msgid "Reduce size must be multiple of 512 bytes sector." -msgstr "El tamaño de reducción debe ser múltiplo de sectores de 512 bytes." - -#: src/cryptsetup_reencrypt.c:1370 -msgid "Option --new must be used together with --reduce-device-size." -msgstr "" -"La opción --new debe utilizarse conjuntamente con --reduce-device-size." - -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "" -"La opción --keep-key solamente puede utilizarse con --hash o --iter-time." - -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "La opción --new no puede utilizarse conjuntamente con --decrypt." - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "La opción --decrypt es incompatible con los parámetros especificados." - -#: src/utils_tools.c:151 -msgid "Error reading response from terminal.\n" -msgstr "Error de lectura de la respuesta recibida desde el terminal.\n" - -#: src/utils_tools.c:173 -msgid "Command successful.\n" -msgstr "Orden ejecutada correctamente.\n" - -#: src/utils_tools.c:191 -#, c-format -msgid "Command failed with code %i" -msgstr "La orden ha fallado con código %i" - -#: src/utils_password.c:42 -#, c-format -msgid "Cannot check password quality: %s\n" -msgstr "No se puede comprobar la calidad de la contraseña: %s\n" - -#: src/utils_password.c:50 -#, c-format -msgid "" -"Password quality check failed:\n" -" %s\n" -msgstr "" -"Fallo en la comprobación de la calidad de la contraseña:\n" -" %s\n" - -#~ msgid "FIPS checksum verification failed.\n" -#~ msgstr "La verificación de suma («checksum») FIPS ha fallado.\n" - -#~ msgid "" -#~ "WARNING: device %s is a partition, for TCRYPT system encryption you " -#~ "usually need to use whole block device path.\n" -#~ msgstr "" -#~ "ATENCIÓN: el dispositivo %s es una partición; para el sistema de cifrado " -#~ "TCRYPT normalmente se necesita usar la ruta de un dispositivo de bloque " -#~ "entero.\n" diff --git a/po/fi.gmo b/po/fi.gmo deleted file mode 100644 index e33059a..0000000 Binary files a/po/fi.gmo and /dev/null differ diff --git a/po/fi.po b/po/fi.po index ab92db1..67bfe34 100644 --- a/po/fi.po +++ b/po/fi.po @@ -1,15 +1,15 @@ # Finnish messages for cryptsetup. -# Copyright © 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc. +# Copyright © 2011, 2012, 2013 Free Software Foundation, Inc. # This file is put in the public domain. # This file is distributed under the same license as the cryptsetup package. -# Jorma Karvonen , 2011-2015. +# Jorma Karvonen , 2011-2013. # msgid "" msgstr "" -"Project-Id-Version: cryptsetup 1.6.7\n" +"Project-Id-Version: cryptsetup 1.6.2\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: 2015-03-20 02:26+0200\n" +"POT-Creation-Date: 2013-07-27 19:53+0200\n" +"PO-Revision-Date: 2013-07-28 14:42+0300\n" "Last-Translator: Jorma Karvonen \n" "Language-Team: Finnish \n" "Language: fi\n" @@ -18,35 +18,27 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: lib/libdevmapper.c:252 +#: lib/libdevmapper.c:245 msgid "Cannot initialize device-mapper, running as non-root user.\n" msgstr "Laitekuvaimen alustus epäonnistui, suoritetaan ei-root-käyttäjänä.\n" -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:248 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" -msgstr "" -"Laitekuvaimen alustus epäonnistui. Onko dm_mod-käyttöjärjestelmäydinmoduuli " -"ladattu?\n" +msgstr "Laitekuvaimen alustus epäonnistui. Onko dm_mod-käyttöjärjestelmäydinmoduuli ladattu?\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:536 #, c-format msgid "DM-UUID for device %s was truncated.\n" msgstr "DM-UUID laitteelle %s typistettiin.\n" -#: lib/libdevmapper.c:698 -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Pyydetyt dmcrypt-suorituskykyvalitsimet eivät ole tuettuja.\n" - # Entropy viittaa tässä ilmeisesti tiivistettävän tekstin satunnaisuuteen. Mitä satunnaisempi se on, sitä vähemmän sitä voi tiivistää. #: lib/random.c:76 msgid "" "System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" +"Please move mouse or type some text in another window to gather some random events.\n" msgstr "" "Järjestelmässä ei ole satunnaisuutta taltioavainta tuotettaessa.\n" -"Siirrä hiirtä tai kirjoita jotain tekstiä toiseen ikkunaan joidenkin " -"satunnaistapahtumien keräämiseksi.\n" +"Siirrä hiirtä tai kirjoita jotain tekstiä toiseen ikkunaan joidenkin satunnaistapahtumien keräämiseksi.\n" #: lib/random.c:80 #, c-format @@ -66,263 +58,257 @@ msgstr "Tuntematonta RNG-laatua pyydetty.\n" msgid "Error %d reading from RNG: %s\n" msgstr "Virhe %d luettaessa kohteesta RNG: %s\n" -#: lib/setup.c:200 +#: lib/setup.c:190 msgid "Cannot initialize crypto RNG backend.\n" msgstr "RNG-salaustaustaohjelman alustus epäonnistui.\n" -#: lib/setup.c:206 +#: lib/setup.c:196 msgid "Cannot initialize crypto backend.\n" msgstr "Salaustaustaohjelman alustus epäonnistui.\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 +#: lib/setup.c:219 lib/setup.c:1110 lib/verity/verity.c:123 #, c-format msgid "Hash algorithm %s not supported.\n" msgstr "Tiivistealgoritmia %s ei tueta.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 +#: lib/setup.c:222 lib/loopaes/loopaes.c:90 #, c-format msgid "Key processing error (using hash %s).\n" msgstr "Avainkäsittelyvirhe (käytetään tiivistealgoritmia %s).\n" -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" -"Laitetyypin määritteleminen epäonnistui. Laitteen yhteensopimaton " -"aktivointi?\n" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Tätä toimintoa tuetaan vain LUKS-laitteelle.\n" - -#: lib/setup.c:320 +#: lib/setup.c:268 msgid "All key slots full.\n" msgstr "Kaikki avainvälit ovat täynnä.\n" -#: lib/setup.c:327 +#: lib/setup.c:275 #, c-format msgid "Key slot %d is invalid, please select between 0 and %d.\n" msgstr "Avainväli %d on virheellinen, valitse väliltä 0 ... %d.\n" -#: lib/setup.c:333 +#: lib/setup.c:281 #, c-format msgid "Key slot %d is full, please select another one.\n" msgstr "Avainväli %d on täynnä, valitse joku toinen.\n" -#: lib/setup.c:472 +#: lib/setup.c:390 #, c-format msgid "Enter passphrase for %s: " msgstr "Kirjoita salasanalause kohteelle %s: " -#: lib/setup.c:653 +#: lib/setup.c:571 #, c-format msgid "Header detected but device %s is too small.\n" msgstr "Otsake havaittu, mutta laite %s on liian pieni.\n" -#: lib/setup.c:669 lib/setup.c:1420 +#: lib/setup.c:587 lib/setup.c:1337 msgid "This operation is not supported for this device type.\n" msgstr "Tätä toimintoa ei tueta tälle laitetyypille.\n" -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:825 lib/setup.c:1298 lib/setup.c:2173 #, c-format msgid "Device %s is not active.\n" msgstr "Laite %s ei ole aktiivinen.\n" -#: lib/setup.c:925 +#: lib/setup.c:842 #, c-format msgid "Underlying device for crypt device %s disappeared.\n" msgstr "Salauslaitteen %s perustana oleva laite hävisi.\n" -#: lib/setup.c:994 +#: lib/setup.c:907 msgid "Invalid plain crypt parameters.\n" msgstr "Virheelliset tavalliset salausparametrit.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:912 lib/setup.c:1037 msgid "Invalid key size.\n" msgstr "Virheellinen avainkoko.\n" -#: lib/setup.c:1004 lib/setup.c:1124 +#: lib/setup.c:917 lib/setup.c:1042 msgid "UUID is not supported for this crypt type.\n" msgstr "UUID ei ole tuettu tälle laitetyypille.\n" -#: lib/setup.c:1046 +#: lib/setup.c:959 msgid "Can't format LUKS without device.\n" msgstr "Kohteen LUKS pohjustus ilman laitetta epäonnistui.\n" -#: lib/setup.c:1089 +#: lib/setup.c:1007 #, c-format msgid "Cannot format device %s which is still in use.\n" msgstr "Laitteen %s pohjustus epäonnistui, koska se on yhä käytössä.\n" -#: lib/setup.c:1092 +#: lib/setup.c:1010 #, c-format msgid "Cannot format device %s, permission denied.\n" -msgstr "" -"Laitteen %s pohjustus epäonnistui, koska pääsy laitteeseen on kielletty.\n" +msgstr "Laitteen %s pohjustus epäonnistui, koska pääsy laitteeseen on kielletty.\n" -#: lib/setup.c:1096 +#: lib/setup.c:1014 #, c-format msgid "Cannot wipe header on device %s.\n" msgstr "Otsakkeen pyyhkiminen pois laitteesta %s epäonnistui.\n" -#: lib/setup.c:1114 +#: lib/setup.c:1032 msgid "Can't format LOOPAES without device.\n" msgstr "Kohteen LOOPAES pohjustus ilman laitetta epäonnistui.\n" -#: lib/setup.c:1152 +#: lib/setup.c:1070 msgid "Can't format VERITY without device.\n" msgstr "Kohteen VERITY pohjustus ilman laitetta epäonnistui.\n" -#: lib/setup.c:1160 lib/verity/verity.c:106 +#: lib/setup.c:1078 lib/verity/verity.c:106 #, c-format msgid "Unsupported VERITY hash type %d.\n" msgstr "Tukematon VERITY-tiivistetyyppi %d.\n" -#: lib/setup.c:1166 lib/verity/verity.c:114 +#: lib/setup.c:1084 lib/verity/verity.c:114 msgid "Unsupported VERITY block size.\n" msgstr "Tukematon VERITY-lohkokoko.\n" -#: lib/setup.c:1171 lib/verity/verity.c:76 +#: lib/setup.c:1089 lib/verity/verity.c:76 msgid "Unsupported VERITY hash offset.\n" msgstr "Tukematon VERITY-tiivistesiirros.\n" -#: lib/setup.c:1285 +#: lib/setup.c:1201 #, c-format msgid "Unknown crypt device type %s requested.\n" msgstr "Tuntematon salauslaitetyyppi %s pyydetty.\n" -#: lib/setup.c:1435 +#: lib/setup.c:1352 msgid "Do you really want to change UUID of device?" msgstr "Haluatko todella vaihtaa laitteen UUID-tunnistetta?" -#: lib/setup.c:1545 +#: lib/setup.c:1440 lib/setup.c:1485 lib/setup.c:1534 lib/setup.c:1600 +#: lib/setup.c:1673 lib/setup.c:1737 lib/setup.c:1818 lib/setup.c:1864 +#: lib/setup.c:2238 lib/setup.c:2532 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Tätä toimintoa tuetaan vain LUKS-laitteelle.\n" + +#: lib/setup.c:1447 #, c-format msgid "Volume %s is not active.\n" msgstr "Taltio %s ei ole käytössä.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1458 #, c-format msgid "Volume %s is already suspended.\n" msgstr "Taltio %s on jo keskeytetty.\n" -#: lib/setup.c:1563 +#: lib/setup.c:1465 #, c-format msgid "Suspend is not supported for device %s.\n" msgstr "Keskeyttämistä ei tueta laitetyypille %s.\n" -#: lib/setup.c:1565 +#: lib/setup.c:1467 #, c-format msgid "Error during suspending device %s.\n" msgstr "Virhe keskeytettäessä laitetta %s.\n" -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1495 lib/setup.c:1544 #, c-format msgid "Volume %s is not suspended.\n" msgstr "Taltiota %s ei ole keskeytetty.\n" -#: lib/setup.c:1605 +#: lib/setup.c:1509 #, c-format msgid "Resume is not supported for device %s.\n" msgstr "Jatkamista ei tueta laiteelle %s.\n" -#: lib/setup.c:1607 lib/setup.c:1659 +#: lib/setup.c:1511 lib/setup.c:1565 #, c-format msgid "Error during resuming device %s.\n" msgstr "Virhe jatkettaessa laitteella %s.\n" -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 +#: lib/setup.c:1551 lib/setup.c:1989 lib/setup.c:2003 src/cryptsetup.c:151 +#: src/cryptsetup.c:229 src/cryptsetup.c:316 src/cryptsetup.c:660 +#: src/cryptsetup.c:1076 msgid "Enter passphrase: " msgstr "Kirjoita salasanalause: " # Volume key tarkoittaa yleensä äänenvoimakkuussäädintä, ei välttämättä tässä. -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1614 lib/setup.c:1751 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"Avainvälin lisäys epäonnistui, kaikki välit on otettu pois käytöstä ja " -"yhtään taltioavainta ei ole tarjottu.\n" +msgstr "Avainvälin lisäys epäonnistui, kaikki välit on otettu pois käytöstä ja yhtään taltioavainta ei ole tarjottu.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1623 lib/setup.c:1757 lib/setup.c:1761 msgid "Enter any passphrase: " msgstr "Kirjoita mikä tahansa salasanalause: " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1640 lib/setup.c:1774 lib/setup.c:1778 lib/setup.c:1841 +#: src/cryptsetup.c:942 msgid "Enter new passphrase for key slot: " msgstr "Kirjoita uusi salasanalause avainvälille: " -#: lib/setup.c:1798 +#: lib/setup.c:1705 #, c-format msgid "Key slot %d changed.\n" msgstr "Avaivälin %d vaihtui.\n" -#: lib/setup.c:1801 +#: lib/setup.c:1708 #, c-format msgid "Replaced with key slot %d.\n" msgstr "Korvattiin avainvälillä %d.\n" -#: lib/setup.c:1806 +#: lib/setup.c:1713 msgid "Failed to swap new key slot.\n" msgstr "Uuden avainvälin vaihtaminen epäonnistui.\n" -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1832 lib/setup.c:2093 lib/setup.c:2106 lib/setup.c:2249 msgid "Volume key does not match the volume.\n" msgstr "Taltioavain ei täsmää taltion kanssa.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1870 #, c-format msgid "Key slot %d is invalid.\n" msgstr "Avainväli %d on virheellinen.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1875 #, c-format msgid "Key slot %d is not used.\n" msgstr "Avainväli %d ei ole käytössä.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1905 lib/setup.c:1977 lib/setup.c:2069 #, c-format msgid "Device %s already exists.\n" msgstr "Laite %s on jo olemassa.\n" -#: lib/setup.c:2171 +#: lib/setup.c:2080 msgid "Incorrect volume key specified for plain device.\n" msgstr "Virheellinen taltioavain määritelty tavalliselle laitteelle.\n" -#: lib/setup.c:2204 +#: lib/setup.c:2113 msgid "Incorrect root hash specified for verity device.\n" msgstr "Virheellinen root-tiiviste määritelty verity-laitteelle.\n" -#: lib/setup.c:2227 +#: lib/setup.c:2136 msgid "Device type is not properly initialised.\n" msgstr "Laitetyyppi ei ole alustettu oikein.\n" -#: lib/setup.c:2259 +#: lib/setup.c:2168 #, c-format msgid "Device %s is still in use.\n" msgstr "Laite %s on yhä käytössä.\n" -#: lib/setup.c:2268 +#: lib/setup.c:2177 #, c-format msgid "Invalid device %s.\n" msgstr "Virheellinen laite %s.\n" -#: lib/setup.c:2289 +#: lib/setup.c:2198 msgid "Function not available in FIPS mode.\n" msgstr "Funktio ei ole käytettävissä FIPS-tilassa.\n" -#: lib/setup.c:2295 +#: lib/setup.c:2204 msgid "Volume key buffer too small.\n" msgstr "Taltioavainpuskuri on liian pieni.\n" -#: lib/setup.c:2303 +#: lib/setup.c:2212 msgid "Cannot retrieve volume key for plain device.\n" msgstr "Taltioavaimen nouto tavalliselle laitteelle epäonnistui.\n" -#: lib/setup.c:2310 +#: lib/setup.c:2219 #, c-format msgid "This operation is not supported for %s crypt device.\n" msgstr "Tätä toimintoa ei tueta %s-salauslaitteelle.\n" -#: lib/setup.c:2506 +#: lib/setup.c:2416 msgid "Dump operation is not supported for this device type.\n" msgstr "Dump-toimintoa ei tueta tälle laitetyypille.\n" @@ -334,351 +320,314 @@ msgstr "Prosessiprioriteetin hakeminen epäonnistui.\n" msgid "Cannot unlock memory.\n" msgstr "Muistin lukituksen avaus epäonnistui.\n" -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 +#: lib/utils_crypt.c:227 lib/utils_crypt.c:240 lib/utils_crypt.c:387 +#: lib/utils_crypt.c:402 msgid "Out of memory while reading passphrase.\n" msgstr "Muisti loppui luettaessa salasanalausetta.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils_crypt.c:232 lib/utils_crypt.c:247 msgid "Error reading passphrase from terminal.\n" msgstr "Virhe luettaessa salasanalausetta pääteikkunasta.\n" -#: lib/utils_crypt.c:259 +#: lib/utils_crypt.c:245 msgid "Verify passphrase: " msgstr "Todenna salasanalause: " -#: lib/utils_crypt.c:266 +#: lib/utils_crypt.c:252 msgid "Passphrases do not match.\n" msgstr "Salasanalauseet eivät täsmää.\n" -#: lib/utils_crypt.c:350 +#: lib/utils_crypt.c:336 msgid "Cannot use offset with terminal input.\n" msgstr "Siirrososoitteen käyttö pääteikkunasyötteellä epäonnistui.\n" -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 +#: lib/utils_crypt.c:355 lib/tcrypt/tcrypt.c:443 msgid "Failed to open key file.\n" msgstr "Avaintiedoston avaus epäonnistui.\n" -#: lib/utils_crypt.c:378 +#: lib/utils_crypt.c:364 msgid "Failed to stat key file.\n" msgstr "Avaintiedoston kutsuminen stat-funktiolla epäonnistui.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 +#: lib/utils_crypt.c:372 lib/utils_crypt.c:393 msgid "Cannot seek to requested keyfile offset.\n" msgstr "Pyydetyn avaintiedostosiirrososoitteen etsintä epäonnistui.\n" -#: lib/utils_crypt.c:424 +#: lib/utils_crypt.c:410 msgid "Error reading passphrase.\n" msgstr "Virhe luettaessa salasanalausetta.\n" -#: lib/utils_crypt.c:442 +#: lib/utils_crypt.c:428 msgid "Maximum keyfile size exceeded.\n" msgstr "Avaintiedoston enimmäiskoko ylitettiin.\n" -#: lib/utils_crypt.c:447 +#: lib/utils_crypt.c:433 msgid "Cannot read requested amount of data.\n" msgstr "Pyydetyn tietomäärän lukeminen epäonnistui.\n" -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/utils_fips.c:46 +msgid "FIPS checksum verification failed.\n" +msgstr "FIPS-tarkistussummavarmennus epäonnistui.\n" + +#: lib/utils_fips.c:50 +msgid "Running in FIPS mode.\n" +msgstr "Suoritetaan FIPS-tilassa.\n" + +#: lib/utils_device.c:52 lib/luks1/keyencryption.c:82 #, c-format msgid "Device %s doesn't exist or access denied.\n" msgstr "Laite %s ei ole olemassa tai pääsy siihen on kielletty.\n" -#: lib/utils_device.c:430 +#: lib/utils_device.c:346 msgid "Cannot use a loopback device, running as non-root user.\n" msgstr "Silmukkalaitteen käyttö epäonnistui, suoritetaan ei-root-käyttäjänä.\n" -#: lib/utils_device.c:433 +#: lib/utils_device.c:349 msgid "Cannot find a free loopback device.\n" msgstr "Vapaan silmukkalaiteen löytäminen epäonnistui.\n" -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" -"Silmukkalaitteeseen liittyminen epäonnistui (vaaditaan silmukkalaite " -"autoclear-lipulla).\n" +#: lib/utils_device.c:356 +msgid "Attaching loopback device failed (loop device with autoclear flag is required).\n" +msgstr "Silmukkalaitteeseen liittyminen epäonnistui (vaaditaan silmukkalaite autoclear-lipulla).\n" -#: lib/utils_device.c:484 +#: lib/utils_device.c:396 #, c-format msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" -"Laitteen %s käyttö epäonnistui, koska se on jo käytössä (jo kuvattu tai " -"liitetty).\n" +msgstr "Laitteen %s käyttö epäonnistui, koska se on jo käytössä (jo kuvattu tai liitetty).\n" -#: lib/utils_device.c:488 +#: lib/utils_device.c:400 #, c-format msgid "Cannot get info about device %s.\n" msgstr "Tietojen hakeminen laitteesta %s epäonnistui.\n" -#: lib/utils_device.c:494 +#: lib/utils_device.c:406 #, c-format msgid "Requested offset is beyond real size of device %s.\n" msgstr "Pyydetty siirrososoite on laitteen %s todellisen koon ulkopuolella.\n" -#: lib/utils_device.c:502 +#: lib/utils_device.c:414 #, c-format msgid "Device %s has zero size.\n" msgstr "Laitteen %s koko on nolla.\n" -#: lib/utils_device.c:513 +#: lib/utils_device.c:425 lib/luks1/keymanage.c:89 #, c-format msgid "Device %s is too small.\n" msgstr "Laite %s on liian pieni.\n" -#: lib/luks1/keyencryption.c:37 +#: lib/luks1/keyencryption.c:31 #, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n" msgstr "" "Dm-crypt -avainkuvausasetus laitteelle %s epäonnistui.\n" -"Tarkista, että käyttöjärjestelmäydin tukee %s-salakirjoitusmenetelmää " -"(lisätietoja tarkistamalla syslog).\n" +"Tarkista, että käyttöjärjestelmäydin tukee %s-salakirjoitusmenetelmää (lisätietoja tarkistamalla syslog).\n" -#: lib/luks1/keyencryption.c:42 +#: lib/luks1/keyencryption.c:36 msgid "Key size in XTS mode must be 256 or 512 bits.\n" msgstr "Avainkoon on oltava XTS-tilassa 256 tai 512 bittiä.\n" -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 +#: lib/luks1/keyencryption.c:88 lib/luks1/keymanage.c:290 +#: lib/luks1/keymanage.c:559 lib/luks1/keymanage.c:978 #, c-format msgid "Cannot write to device %s, permission denied.\n" msgstr "Laitteeseen %s kirjoittaminen epäonnistui, pääsy kielletty.\n" -#: lib/luks1/keyencryption.c:111 +#: lib/luks1/keyencryption.c:103 msgid "Failed to open temporary keystore device.\n" msgstr "Tilapäisen avainsäiliön avaaminen epäonnistui.\n" -#: lib/luks1/keyencryption.c:118 +#: lib/luks1/keyencryption.c:110 msgid "Failed to access temporary keystore device.\n" msgstr "Pääsy tilapäiseen avainsäiliölaitteeseen epäonnistui.\n" -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "Siirräntävirhe salattaessa avainväliä.\n" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "Siirräntävirhe purettaessa avainvälin salausta.\n" - -#: lib/luks1/keymanage.c:90 -#, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "Laite %s on liian pieni. (LUKS vaatii vähintään % tavua.)\n" - -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 +#: lib/luks1/keymanage.c:175 lib/luks1/keymanage.c:412 +#: src/cryptsetup_reencrypt.c:978 #, c-format msgid "Device %s is not a valid LUKS device.\n" msgstr "Laite %s ei ole kelvollinen LUKS-laite.\n" -#: lib/luks1/keymanage.c:198 +#: lib/luks1/keymanage.c:193 #, c-format msgid "Requested header backup file %s already exists.\n" msgstr "Pyydetty otsakevarmuuskopiotiedosto %s on jo olemassa.\n" -#: lib/luks1/keymanage.c:200 +#: lib/luks1/keymanage.c:195 #, c-format msgid "Cannot create header backup file %s.\n" msgstr "Otsakevarmuuskopiotiedoston %s luominen epäonnistui.\n" -#: lib/luks1/keymanage.c:205 +#: lib/luks1/keymanage.c:200 #, c-format msgid "Cannot write header backup file %s.\n" msgstr "Otsakevarmuuskopiotiedoston %s kirjoittaminen epäonnistui.\n" -#: lib/luks1/keymanage.c:239 +#: lib/luks1/keymanage.c:233 msgid "Backup file doesn't contain valid LUKS header.\n" msgstr "Varmuuskopiotiedosto ei sisällä kelvollista LUKS-otsaketta.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: lib/luks1/keymanage.c:246 lib/luks1/keymanage.c:483 #, c-format msgid "Cannot open header backup file %s.\n" msgstr "Otsakevarmuuskopiotiedoston %s avaus epäonnistui.\n" -#: lib/luks1/keymanage.c:258 +#: lib/luks1/keymanage.c:252 #, c-format msgid "Cannot read header backup file %s.\n" msgstr "Otsakevarmuuskopiotiedoston %s lukeminen epäonnistui.\n" -#: lib/luks1/keymanage.c:269 +#: lib/luks1/keymanage.c:263 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"Tietosiirrososoite tai avainkoko eroaa laitteessa ja varmuuskopiossa, " -"palautus epäonnistui.\n" +msgstr "Tietosiirrososoite tai avainkoko eroaa laitteessa ja varmuuskopiossa, palautus epäonnistui.\n" -#: lib/luks1/keymanage.c:277 +#: lib/luks1/keymanage.c:271 #, c-format msgid "Device %s %s%s" msgstr "Laite %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"ei sisällä LUKS-otsaketta. Otsakkeen korvaaminen voi tuhota tietoja tuossa " -"laitteessa." +#: lib/luks1/keymanage.c:272 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "ei sisällä LUKS-otsaketta. Otsakkeen korvaaminen voi tuhota tietoja tuossa laitteessa." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"sisältää jo LUKS-otsakkeen. Otsakkeen korvaaminen tuhoaa olemassaolevat " -"avainvälit." +#: lib/luks1/keymanage.c:273 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "sisältää jo LUKS-otsakkeen. Otsakkeen korvaaminen tuhoaa olemassaolevat avainvälit." -#: lib/luks1/keymanage.c:280 +#: lib/luks1/keymanage.c:274 msgid "" "\n" "WARNING: real device header has different UUID than backup!" msgstr "" "\n" -"VAROITUS: oikealla laiteotsakkeella on eri UUID-tunniste kuin " -"varmuuskopiolla!" +"VAROITUS: oikealla laiteotsakkeella on eri UUID-tunniste kuin varmuuskopiolla!" -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 +#: lib/luks1/keymanage.c:293 lib/luks1/keymanage.c:522 +#: lib/luks1/keymanage.c:562 lib/tcrypt/tcrypt.c:581 lib/verity/verity.c:82 #: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 #: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 #, c-format msgid "Cannot open device %s.\n" msgstr "Laitteen %s avaus epäonnistui.\n" -#: lib/luks1/keymanage.c:329 +#: lib/luks1/keymanage.c:323 msgid "Non standard key size, manual repair required.\n" msgstr "Ei-vakio avainkoko, manuaalinen korjaus pyydetty.\n" -#: lib/luks1/keymanage.c:334 +#: lib/luks1/keymanage.c:328 msgid "Non standard keyslots alignment, manual repair required.\n" msgstr "Ei-vakiot avainvälitasaukset, manuaalinen korjaus pyydetty.\n" -#: lib/luks1/keymanage.c:340 +#: lib/luks1/keymanage.c:334 msgid "Repairing keyslots.\n" msgstr "Korjataan avainvälit.\n" -#: lib/luks1/keymanage.c:351 +#: lib/luks1/keymanage.c:345 msgid "Repair failed." msgstr "Korjaus epäonnistui." -#: lib/luks1/keymanage.c:363 +#: lib/luks1/keymanage.c:357 #, c-format msgid "Keyslot %i: offset repaired (%u -> %u).\n" msgstr "Avainväli %i: siirrososoite korjattu (%u -> %u).\n" -#: lib/luks1/keymanage.c:371 +#: lib/luks1/keymanage.c:365 #, c-format msgid "Keyslot %i: stripes repaired (%u -> %u).\n" msgstr "Avainväli %i: raidat korjattu (%u -> %u).\n" -#: lib/luks1/keymanage.c:380 +#: lib/luks1/keymanage.c:374 #, c-format msgid "Keyslot %i: bogus partition signature.\n" msgstr "Avainväli %i: valeosiotunniste.\n" -#: lib/luks1/keymanage.c:385 +#: lib/luks1/keymanage.c:379 #, c-format msgid "Keyslot %i: salt wiped.\n" msgstr "Avainväli %i: satunnaisarvosiemen tuhottu.\n" -#: lib/luks1/keymanage.c:396 +#: lib/luks1/keymanage.c:390 msgid "Writing LUKS header to disk.\n" msgstr "Kirjoitetaan LUKS-otsake levylle.\n" -#: lib/luks1/keymanage.c:421 +#: lib/luks1/keymanage.c:415 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "Tukematon LUKS-versio %d.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: lib/luks1/keymanage.c:421 lib/luks1/keymanage.c:626 #, c-format msgid "Requested LUKS hash %s is not supported.\n" msgstr "Pyydetty LUKS-tiiviste %s ei ole tuettu.\n" -#: lib/luks1/keymanage.c:442 +#: lib/luks1/keymanage.c:436 #, c-format msgid "LUKS keyslot %u is invalid.\n" msgstr "LUKS-avainväli %u on virheellinen.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 +#: lib/luks1/keymanage.c:450 src/cryptsetup.c:596 msgid "No known problems detected for LUKS header.\n" msgstr "Tuntemattomat pulmat havaittu LUKS-otsakkeelle.\n" -#: lib/luks1/keymanage.c:596 +#: lib/luks1/keymanage.c:583 #, c-format msgid "Error during update of LUKS header on device %s.\n" msgstr "Virhe LUKS-otsakkeen päivityksen aikana laitteessa %s.\n" -#: lib/luks1/keymanage.c:603 +#: lib/luks1/keymanage.c:590 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" -"Virhe luettaessa uudelleen LUKS-otsaketta päivityksen jälkeen laitteessa " -"%s.\n" +msgstr "Virhe luettaessa uudelleen LUKS-otsaketta päivityksen jälkeen laitteessa %s.\n" -#: lib/luks1/keymanage.c:654 +#: lib/luks1/keymanage.c:619 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" -"Tietosiirrososoitteen irrotetulle LUKS-otsakkeelle on oltava joko 0 tai " -"suurempi kuin otsakekoko (%d sektoria).\n" +msgid "Data offset for detached LUKS header must be either 0 or higher than header size (%d sectors).\n" +msgstr "Tietosiirrososoitteen irrotetulle LUKS-otsakkeelle on oltava joko 0 tai suurempi kuin otsakekoko (%d sektoria).\n" -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 +#: lib/luks1/keymanage.c:631 lib/luks1/keymanage.c:718 msgid "Wrong LUKS UUID format provided.\n" msgstr "Väärä LUKS UUID-muoto tarjottu.\n" -#: lib/luks1/keymanage.c:695 +#: lib/luks1/keymanage.c:656 msgid "Cannot create LUKS header: reading random salt failed.\n" -msgstr "" -"LUKS-otsakkeen luominen epäonnistui: satunnaisarvosiemenen lukeminen " -"epäonnistui.\n" +msgstr "LUKS-otsakkeen luominen epäonnistui: satunnaisarvosiemenen lukeminen epäonnistui.\n" -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 +#: lib/luks1/keymanage.c:663 lib/luks1/keymanage.c:759 #, c-format msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" -msgstr "" -"Ei ole yhteensopiva PBKDF2-valitsimien kanssa (käytetään tiivitstealgoritmia " -"%s).\n" +msgstr "Ei ole yhteensopiva PBKDF2-valitsimien kanssa (käytetään tiivitstealgoritmia %s).\n" -#: lib/luks1/keymanage.c:717 +#: lib/luks1/keymanage.c:678 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"LUKS-otsakkeen luominen epäonnistui: otsaketiiviste epäonnistui (käytettäen " -"tiivistettä %s).\n" +msgstr "LUKS-otsakkeen luominen epäonnistui: otsaketiiviste epäonnistui (käytettäen tiivistettä %s).\n" -#: lib/luks1/keymanage.c:782 +#: lib/luks1/keymanage.c:743 #, c-format msgid "Key slot %d active, purge first.\n" msgstr "Avainväli %d aktiivinen, puhdista ensimmäinen.\n" -#: lib/luks1/keymanage.c:788 +#: lib/luks1/keymanage.c:749 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" -"Avainvälin %d materiaali sisältää liian vähän raitoja. Otsaketta on " -"käsitelty?\n" +msgstr "Avainvälin %d materiaali sisältää liian vähän raitoja. Otsaketta on käsitelty?\n" -#: lib/luks1/keymanage.c:950 +#: lib/luks1/keymanage.c:911 #, c-format msgid "Key slot %d unlocked.\n" msgstr "Avaivälin %d lukitus avattu.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: lib/luks1/keymanage.c:946 src/cryptsetup.c:796 +#: src/cryptsetup_reencrypt.c:882 src/cryptsetup_reencrypt.c:916 msgid "No key available with this passphrase.\n" msgstr "Tälle salasanalauseelle ei ole saatavissa avainta.\n" -#: lib/luks1/keymanage.c:1003 +#: lib/luks1/keymanage.c:964 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" msgstr "Avainväli %d on virheellinen, valitse avainväli välillä 0 ... %d.\n" -#: lib/luks1/keymanage.c:1021 +#: lib/luks1/keymanage.c:982 #, c-format msgid "Cannot wipe device %s.\n" msgstr "Laitteen %s pyyhkiminen tyhjäksi epäonnistui.\n" @@ -699,57 +648,59 @@ msgstr "Yhteensopimaton loop-AES -avaintiedosto havaittu.\n" msgid "Kernel doesn't support loop-AES compatible mapping.\n" msgstr "Käyttöjärjestelmäydin ei tule loop-AES -yhteensopivaa kuvausta.\n" -#: lib/tcrypt/tcrypt.c:475 +#: lib/tcrypt/tcrypt.c:451 #, c-format msgid "Error reading keyfile %s.\n" msgstr "Virhe luettaessa avaintiedostoa %s.\n" -#: lib/tcrypt/tcrypt.c:513 +#: lib/tcrypt/tcrypt.c:489 #, c-format msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" msgstr "TCRYPT-salasanalauseen enimmäispituus (%d) ylitettiin.\n" -#: lib/tcrypt/tcrypt.c:543 +#: lib/tcrypt/tcrypt.c:518 #, c-format msgid "PBKDF2 hash algorithm %s not available, skipping.\n" msgstr "PBKDF2-tiivistealgoritmi %s ei ole käytettävissä, ohitetaan.\n" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 +#: lib/tcrypt/tcrypt.c:536 src/cryptsetup.c:549 msgid "Required kernel crypto interface not available.\n" msgstr "Pyydetty ydinsalauskäyttöliittymä ei ole käytettävissä.\n" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 +#: lib/tcrypt/tcrypt.c:538 src/cryptsetup.c:551 msgid "Ensure you have algif_skcipher kernel module loaded.\n" -msgstr "" -"Varmista, että algif_skcipher-käyttöjärjestelmäydinmoduuli on ladattu.\n" +msgstr "Varmista, että algif_skcipher-käyttöjärjestelmäydinmoduuli on ladattu.\n" + +#: lib/tcrypt/tcrypt.c:591 +#, c-format +msgid "WARNING: device %s is a partition, for TCRYPT system encryption you usually need to use whole block device path.\n" +msgstr "VAROITUS: laite %s on osio, TCRYPT-järjestelmäsalaukselle tarvitaan normaalisti koko lohkolaitepolun käyttö.\n" -#: lib/tcrypt/tcrypt.c:707 +#: lib/tcrypt/tcrypt.c:667 #, c-format msgid "Activation is not supported for %d sector size.\n" msgstr "Aktivointia ei tueta sektorikoolle %d.\n" -#: lib/tcrypt/tcrypt.c:713 +#: lib/tcrypt/tcrypt.c:673 msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" -msgstr "" -"Käyttöjärjestelmäydin ei tue aktivointia tälle TCRYPT-perinnetilassa.\n" +msgstr "Käyttöjärjestelmäydin ei tue aktivointia tälle TCRYPT-perinnetilassa.\n" -#: lib/tcrypt/tcrypt.c:744 +#: lib/tcrypt/tcrypt.c:701 #, c-format msgid "Activating TCRYPT system encryption for partition %s.\n" msgstr "Aktivoidaan TCRYPT-järjestelmäsalaus osiolle %s.\n" -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "Käyttöjärjestelmäydin ei tue TCRYPT -yhteensopivaa kuvausta.\n" +#: lib/tcrypt/tcrypt.c:756 +msgid "Kernel doesn't support plain64 IV.\n" +msgstr "Käyttöjärjestelmäydin ei tule plain64 IV.\n" -#: lib/tcrypt/tcrypt.c:1020 +#: lib/tcrypt/tcrypt.c:961 msgid "This function is not supported without TCRYPT header load." msgstr "Tätä toimintoa ei tueta ilman TCRYPT-otsakelatausta." #: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "Verity-laite %s ei käytä paikallista levyotsaketta.\n" +msgid "Verity device doesn't use on-disk header.\n" +msgstr "Verity-laite ei käytä paikallista levyotsaketta.\n" #: lib/verity/verity.c:94 #, c-format @@ -766,9 +717,8 @@ msgid "VERITY header corrupted.\n" msgstr "VERITY-otsake rikkinäinen.\n" #: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "Väärä VERITY UUID-muoto tarjottu laitteessa %s.\n" +msgid "Wrong VERITY UUID format provided.\n" +msgstr "Väärä VERITY UUID-muoto tarjottu.\n" #: lib/verity/verity.c:196 #, c-format @@ -824,47 +774,31 @@ msgstr "Tiivistealueen luominen epäonnistui.\n" #: lib/verity/verity_hash.c:414 #, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" -"VAROITUS: Käyttöjärjestelmäydin ei voi aktivoida laitetta, jos lohkokoko " -"ylittää sivukoon (%u).\n" +msgid "WARNING: Kernel cannot activate device if data block size exceeds page size (%u).\n" +msgstr "VAROITUS: Käyttöjärjestelmäydin ei voi aktivoida laitetta, jos lohkokoko ylittää sivukoon (%u).\n" -#: src/cryptsetup.c:91 +#: src/cryptsetup.c:79 msgid "Can't do passphrase verification on non-tty inputs.\n" msgstr "Salasanalauseiden todennus epäonnistui ei-tty-syötteissä.\n" -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 +#: src/cryptsetup.c:110 +msgid "Ignoring keyfile offset and size options, keyfile read size is always the same as encryption key size.\n" +msgstr "Ohitetaan avaintiedoston siirros- ja kokovalitsimet, avaintiedoston lukukoko on aina sama kuin salausavaimen koko.\n" + +#: src/cryptsetup.c:116 src/cryptsetup.c:495 src/cryptsetup.c:639 +#: src/cryptsetup_reencrypt.c:485 src/cryptsetup_reencrypt.c:520 msgid "No known cipher specification pattern detected.\n" msgstr "Havaittu tuntematon salakirjoitusmenetelmämäärittelymalli.\n" -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" -"VAROITUS: Parametri --hash ohitetaan tavallisessa tilassa kun avaintiedosto " -"on määritelty.\n" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" -"VAROITUS: Valitsin --keyfile-size ohitetaan , lukukoko on sama kuin " -"salausavaimen koko.\n" - -#: src/cryptsetup.c:218 +#: src/cryptsetup.c:183 msgid "Option --key-file is required.\n" msgstr "Vaaditaan valitsin --key-file.\n" -#: src/cryptsetup.c:267 +#: src/cryptsetup.c:254 src/cryptsetup.c:340 msgid "No device header detected with this passphrase.\n" msgstr "Tälle salasanalauseelle ei ole saatavissa laiteotsaketta.\n" -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 +#: src/cryptsetup.c:269 src/cryptsetup.c:1065 msgid "" "Header dump with volume key is sensitive information\n" "which allows access to encrypted partition without passphrase.\n" @@ -874,235 +808,210 @@ msgstr "" "joka sallii pääsyn salatulle osiolle ilman salasanaa.\n" "Tämä vedos pitäisi aina tallentaa salattuna turvallisessa paikasssa." -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "Suorituskykytestin tulos ei ole luotettava.\n" - -#: src/cryptsetup.c:558 +#: src/cryptsetup.c:489 msgid "# Tests are approximate using memory only (no storage IO).\n" msgstr "# Testit käyttävät vain muistia ylimalkaan (ei tallennussiirtos).\n" -#: src/cryptsetup.c:583 src/cryptsetup.c:605 +#: src/cryptsetup.c:511 src/cryptsetup.c:533 msgid "# Algorithm | Key | Encryption | Decryption\n" msgstr "# Algoritmi | Avain | Salaus | Salauksen purku\n" -#: src/cryptsetup.c:587 +#: src/cryptsetup.c:515 #, c-format msgid "Cipher %s is not available.\n" msgstr "Salaus %s ei ole käytettävissä.\n" -#: src/cryptsetup.c:614 +#: src/cryptsetup.c:542 msgid "N/A" msgstr "Ei käytössä" -#: src/cryptsetup.c:639 +#: src/cryptsetup.c:567 #, c-format msgid "Cannot read keyfile %s.\n" msgstr "Avaintiedoston %s lukeminen epäonnistui.\n" -#: src/cryptsetup.c:643 +#: src/cryptsetup.c:571 #, c-format msgid "Cannot read %d bytes from keyfile %s.\n" msgstr "Ei voida lukea %d tavua avaintiedostosta %s.\n" -#: src/cryptsetup.c:672 +#: src/cryptsetup.c:600 msgid "Really try to repair LUKS device header?" msgstr "Yritetäänkö todella korjata LUKS-laiteotsake?" -#: src/cryptsetup.c:697 +#: src/cryptsetup.c:625 #, c-format msgid "This will overwrite data on %s irrevocably." msgstr "Tämä korvaa tiedot kohteella %s peruuttamattomasti." -#: src/cryptsetup.c:699 +#: src/cryptsetup.c:627 msgid "memory allocation error in action_luksFormat" msgstr "muistivarausvirhe kohteessa action_luksFormat" -#: src/cryptsetup.c:717 +#: src/cryptsetup.c:645 #, c-format msgid "Cannot use %s as on-disk header.\n" msgstr "Kohteen %s käyttö paikallisena levyotsakkeena epäonnistui.\n" -#: src/cryptsetup.c:784 +#: src/cryptsetup.c:718 msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" -"Pienennetty tietosiirrososoite sallitaan vain irrotetulle LUKS-otsakkeelle.\n" +msgstr "Pienennetty tietosiirrososoite sallitaan vain irrotetulle LUKS-otsakkeelle.\n" -#: src/cryptsetup.c:881 src/cryptsetup.c:937 +#: src/cryptsetup.c:819 src/cryptsetup.c:875 #, c-format msgid "Key slot %d selected for deletion.\n" msgstr "Avainväli %d valittu poistoa varten.\n" -#: src/cryptsetup.c:884 +#: src/cryptsetup.c:822 #, c-format msgid "Key %d not active. Can't wipe.\n" msgstr "Avain %d ei ole käytössä. Ei voida pyyhkiä pois.\n" -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"Tämä on viimeinen avainväli. Laite tulee käyttökelvottomaksi tämän avaimen " -"poistamisen jälkeen." +#: src/cryptsetup.c:830 src/cryptsetup.c:878 +msgid "This is the last keyslot. Device will become unusable after purging this key." +msgstr "Tämä on viimeinen avainväli. Laite tulee käyttökelvottomaksi tämän avaimen poistamisen jälkeen." -#: src/cryptsetup.c:893 +#: src/cryptsetup.c:831 msgid "Enter any remaining passphrase: " msgstr "Kirjoita mikä tahansa jäljellä oleva salasanalause: " -#: src/cryptsetup.c:921 +#: src/cryptsetup.c:859 msgid "Enter passphrase to be deleted: " msgstr "Kirjoita poistettava salasanalause: " -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format +#: src/cryptsetup.c:928 src/cryptsetup_reencrypt.c:948 msgid "Enter any existing passphrase: " msgstr "Kirjoita mikä tahansa olemassa oleva salasanalause: " -#: src/cryptsetup.c:1052 +#: src/cryptsetup.c:977 msgid "Enter passphrase to be changed: " msgstr "Kirjoita vaihdettava salasanalause: " -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 +#: src/cryptsetup.c:991 src/cryptsetup_reencrypt.c:934 msgid "Enter new passphrase: " msgstr "Kirjoita uusi salasanalause: " -#: src/cryptsetup.c:1090 +#: src/cryptsetup.c:1015 msgid "Only one device argument for isLuks operation is supported.\n" msgstr "Tuetaan vain yhtä laiteargumenttia isLuks-toiminnolle.\n" -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 +#: src/cryptsetup.c:1171 src/cryptsetup.c:1192 msgid "Option --header-backup-file is required.\n" msgstr "Vaaditaan valitsin --header-backup-file.\n" -#: src/cryptsetup.c:1304 +#: src/cryptsetup.c:1229 #, c-format msgid "Unrecognized metadata device type %s.\n" msgstr "Tunnistamaton metatietolaitetyyppi %s.\n" -#: src/cryptsetup.c:1307 +#: src/cryptsetup.c:1232 msgid "Command requires device and mapped name as arguments.\n" msgstr "Komento vaatii laitteen ja kuvausnimen argumenttina.\n" -#: src/cryptsetup.c:1326 -#, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Tämä toiminto poistaa kaikki avainvälit laitteesta %s.\n" -"Laite tulee käyttökelvottomaksi tämän toiminnon jälkeen." - -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid " [--type ] []" msgstr " [--type ] []" -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid "open device as mapping " msgstr "avaa laite kuvauksena " -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 +#: src/cryptsetup.c:1245 src/cryptsetup.c:1246 src/cryptsetup.c:1247 +#: src/cryptsetup.c:1248 src/veritysetup.c:310 src/veritysetup.c:311 msgid "" msgstr "" -#: src/cryptsetup.c:1361 +#: src/cryptsetup.c:1245 msgid "close device (remove mapping)" msgstr "sulje laite (poista kuvaus)" -#: src/cryptsetup.c:1362 +#: src/cryptsetup.c:1246 msgid "resize active device" msgstr "muuta käytössä olevan laitteen kokoa" -#: src/cryptsetup.c:1363 +#: src/cryptsetup.c:1247 msgid "show device status" msgstr "näytä laitetila" -#: src/cryptsetup.c:1364 +#: src/cryptsetup.c:1248 msgid "benchmark cipher" msgstr "koestussalaus" -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1249 src/cryptsetup.c:1255 src/cryptsetup.c:1256 +#: src/cryptsetup.c:1257 src/cryptsetup.c:1258 src/cryptsetup.c:1259 +#: src/cryptsetup.c:1260 src/cryptsetup.c:1261 src/cryptsetup.c:1262 msgid "" msgstr "" -#: src/cryptsetup.c:1365 +#: src/cryptsetup.c:1249 msgid "try to repair on-disk metadata" msgstr "yritä korjata levyn sisäiset metatiedot" -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "poista kaikki avainvälit (poista salausavain)" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 +#: src/cryptsetup.c:1250 src/cryptsetup.c:1251 msgid " []" msgstr " []" -#: src/cryptsetup.c:1367 +#: src/cryptsetup.c:1250 msgid "formats a LUKS device" msgstr "pohjustaa LUKS-laitteen" -#: src/cryptsetup.c:1368 +#: src/cryptsetup.c:1251 msgid "add key to LUKS device" msgstr "lisää avain LUKS-laitteeseen" -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 +#: src/cryptsetup.c:1252 src/cryptsetup.c:1253 msgid " []" msgstr " []" -#: src/cryptsetup.c:1369 +#: src/cryptsetup.c:1252 msgid "removes supplied key or key file from LUKS device" msgstr "poistaa tarjotun avaimen tai avaintiedoston LUKS-laitteesta" -#: src/cryptsetup.c:1370 +#: src/cryptsetup.c:1253 msgid "changes supplied key or key file of LUKS device" msgstr "vaihtaa LUKS-laitteen tarjotun avaimen tai avaintiedoston" -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid " " msgstr " " -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid "wipes key with number from LUKS device" msgstr "pyyhkäisee pois avaimen numerolla LUKS-laitteesta" -#: src/cryptsetup.c:1372 +#: src/cryptsetup.c:1255 msgid "print UUID of LUKS device" msgstr "tulostaa LUKS-laitteen UUID-tunnuksen" -#: src/cryptsetup.c:1373 +#: src/cryptsetup.c:1256 msgid "tests for LUKS partition header" msgstr "testaa LUKS-osio-otsakkeesta" -#: src/cryptsetup.c:1374 +#: src/cryptsetup.c:1257 msgid "dump LUKS partition information" msgstr "vedosta LUKS-osiotiedot" -#: src/cryptsetup.c:1375 +#: src/cryptsetup.c:1258 msgid "dump TCRYPT device information" msgstr "vedosta TCRYPT-laitetiedot" -#: src/cryptsetup.c:1376 +#: src/cryptsetup.c:1259 msgid "Suspend LUKS device and wipe key (all IOs are frozen)." -msgstr "" -"Keskeytä LUKS-laite ja pyyhi pois avain (kaikki siirräntäliitännät " -"jäädytetään)." +msgstr "Keskeytä LUKS-laite ja pyyhi pois avain (kaikki siirräntäliitännät jäädytetään)." -#: src/cryptsetup.c:1377 +#: src/cryptsetup.c:1260 msgid "Resume suspended LUKS device." msgstr "Aloita uudelleen pysäytetty LUKS-laite." -#: src/cryptsetup.c:1378 +#: src/cryptsetup.c:1261 msgid "Backup LUKS device header and keyslots" msgstr "Varmuuskopioi LUKS-laiteotsake ja avainvälit" -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1262 msgid "Restore LUKS device header and keyslots" msgstr "Palauta LUKS-laiteotsake ja avainvälit" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:1279 src/veritysetup.c:327 msgid "" "\n" " is one of:\n" @@ -1110,7 +1019,7 @@ msgstr "" "\n" " on yksi seuraavista:\n" -#: src/cryptsetup.c:1402 +#: src/cryptsetup.c:1285 msgid "" "\n" "You can also use old syntax aliases:\n" @@ -1122,7 +1031,7 @@ msgstr "" "\topen: luo (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" "\tclose: poista (plainClose), luksClose, loopaesClose, tcryptClose\n" -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:1289 #, c-format msgid "" "\n" @@ -1135,16 +1044,14 @@ msgstr "" " on laite, joka luodaan kohteen %s alaisena\n" " on salaussuojattu laite\n" " on LUKS-avainväli muokattavaksi\n" -" valinnainen avaintiedosto uudelle avaimelle luksAddKey-" -"toimintoa varten\n" +" valinnainen avaintiedosto uudelle avaimelle luksAddKey-toimintoa varten\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:1296 #, c-format msgid "" "\n" "Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" +"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d (characters)\n" "Default PBKDF2 iteration time for LUKS: %d (ms)\n" msgstr "" "\n" @@ -1153,7 +1060,7 @@ msgstr "" "\tsalasanalauseen enimmäispituus %d (merkkiä)\n" "PBKDF2-iteroinnin enimmäisaika LUKS-avainvälille: %d (millisekuntia)\n" -#: src/cryptsetup.c:1420 +#: src/cryptsetup.c:1303 #, c-format msgid "" "\n" @@ -1168,373 +1075,323 @@ msgstr "" "\tplain-tyyppi: %s, Avain: %d bittiä, Salasanatiivistys: %s\n" "\tLUKS1: %s, Avain: %d bittiä, LUKS-otsaketiivistys: %s, RNG: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 +#: src/cryptsetup.c:1320 src/veritysetup.c:459 #, c-format msgid "%s: requires %s as arguments" msgstr "%s: vaatii %s argumentteina" -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:1353 src/veritysetup.c:367 src/cryptsetup_reencrypt.c:1099 msgid "Show this help message" msgstr "Näytä tämä opastesanoma" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:1354 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1100 msgid "Display brief usage" msgstr "Näytä lyhyt käyttöopaste" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:1358 src/veritysetup.c:372 src/cryptsetup_reencrypt.c:1104 msgid "Help options:" msgstr "Opastevalitsimet:" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 +#: src/cryptsetup.c:1359 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1105 msgid "Print package version" msgstr "Tulosta pakkausversio" -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:1360 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1106 msgid "Shows more detailed error messages" msgstr "Näyttää yksityiskohtaisemmat virheilmoitukset" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:1361 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1107 msgid "Show debug messages" msgstr "Näytä vianjäljityssanomat" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:1362 src/cryptsetup_reencrypt.c:1109 msgid "The cipher used to encrypt the disk (see /proc/crypto)" -msgstr "" -"Salakirjoitusmenetelmä, jota käytetään salaamaan levy (katso /proc/crypto)" +msgstr "Salakirjoitusmenetelmä, jota käytetään salaamaan levy (katso /proc/crypto)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:1363 src/cryptsetup_reencrypt.c:1111 msgid "The hash used to create the encryption key from the passphrase" -msgstr "" -"Tiivisteavain, jota käytetään salausavaimen luomiseen salasanalauseesta" +msgstr "Tiivisteavain, jota käytetään salausavaimen luomiseen salasanalauseesta" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:1364 msgid "Verifies the passphrase by asking for it twice" msgstr "Todentaa salasanalauseen kysymällä kahdesti" -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 +#: src/cryptsetup.c:1365 src/cryptsetup_reencrypt.c:1112 msgid "Read the key from a file." msgstr "Lue avain tiedostosta." -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:1366 msgid "Read the volume (master) key from file." msgstr "Lue taltion (pää)avain tiedostosta." -#: src/cryptsetup.c:1484 +#: src/cryptsetup.c:1367 msgid "Dump volume (master) key instead of keyslots info." msgstr "Vedosta taltion (pää)avain eikä avainvälien tiedot." -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "The size of the encryption key" msgstr "Salausavaimen koko" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "BITS" msgstr "BITTIÄ" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 +#: src/cryptsetup.c:1369 src/cryptsetup_reencrypt.c:1123 msgid "Limits the read from keyfile" msgstr "Avaintiedostosta luettavat rajat" -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 src/cryptsetup.c:1371 +#: src/cryptsetup.c:1372 src/veritysetup.c:378 src/veritysetup.c:379 +#: src/veritysetup.c:381 src/cryptsetup_reencrypt.c:1122 +#: src/cryptsetup_reencrypt.c:1123 src/cryptsetup_reencrypt.c:1124 +#: src/cryptsetup_reencrypt.c:1125 msgid "bytes" msgstr "tavua" -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 +#: src/cryptsetup.c:1370 src/cryptsetup_reencrypt.c:1122 msgid "Number of bytes to skip in keyfile" msgstr "Avaintiedostossa ohitettavien tavujen määrä" -#: src/cryptsetup.c:1488 +#: src/cryptsetup.c:1371 msgid "Limits the read from newly added keyfile" msgstr "Äskettäin lisätystä avaintiedostosta luetut rajat" -#: src/cryptsetup.c:1489 +#: src/cryptsetup.c:1372 msgid "Number of bytes to skip in newly added keyfile" msgstr "Ohitettu tavumäärä äskettäin lisätyssä avaintiedostossa" -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:1373 msgid "Slot number for new key (default is first free)" msgstr "Välinumero uudelle avaimelle (oletus on ensimmäinen vapaa)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:1374 msgid "The size of the device" msgstr "Laitteen koko" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1374 src/cryptsetup.c:1375 src/cryptsetup.c:1376 +#: src/cryptsetup.c:1382 msgid "SECTORS" msgstr "SEKTORIA" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:1375 msgid "The start offset in the backend device" msgstr "Alkusiirrososoite taustalaitteessa" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:1376 msgid "How many sectors of the encrypted data to skip at the beginning" msgstr "Kuinka monta salaustietojen sektoria ohitetaan alussa" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:1377 msgid "Create a readonly mapping" msgstr "Luo kirjoitussuojattu kuvaus" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "PBKDF2-iterointiaika kohteelle LUKS (millisekunneissa)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "msecs" msgstr "ms" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:1379 src/cryptsetup_reencrypt.c:1114 msgid "Do not ask for confirmation" msgstr "Älä pyydä vahvistusta" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "Timeout for interactive passphrase prompt (in seconds)" msgstr "Aikakatkaisu vuorovaikutteiselle salasanalausekyselylle (sekunteina)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "secs" msgstr "s" -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:1381 src/cryptsetup_reencrypt.c:1115 msgid "How often the input of the passphrase can be retried" msgstr "Kuinka usein salasanasyötettä voidaan yrittää uudelleen" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1382 msgid "Align payload at sector boundaries - for luksFormat" -msgstr "" -"Tasaa tietosisältö osoitteessa sektorirajoihin - kohdetta luksFormat " -"varten" +msgstr "Tasaa tietosisältö osoitteessa sektorirajoihin - kohdetta luksFormat varten" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:1383 msgid "File with LUKS header and keyslots backup." msgstr "Tiedosto LUKS-otsakkeella ja avainvälien varmuuskopiolla." -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 +#: src/cryptsetup.c:1384 src/cryptsetup_reencrypt.c:1116 msgid "Use /dev/random for generating volume key." msgstr "Käytä /dev/random taltioavaimen synnyttämiseen." -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 +#: src/cryptsetup.c:1385 src/cryptsetup_reencrypt.c:1117 msgid "Use /dev/urandom for generating volume key." msgstr "Käytä /dev/urandom taltioavaimen synnyttämiseen." -#: src/cryptsetup.c:1503 +#: src/cryptsetup.c:1386 msgid "Share device with another non-overlapping crypt segment." msgstr "Jaa laite toisen ei-päällekkäisen salaussegmentin kanssa." -#: src/cryptsetup.c:1504 src/veritysetup.c:385 +#: src/cryptsetup.c:1387 src/veritysetup.c:384 msgid "UUID for device to use." msgstr "UUID laitteelle käytettäväksi." -#: src/cryptsetup.c:1505 +#: src/cryptsetup.c:1388 msgid "Allow discards (aka TRIM) requests for device." msgstr "Salli hylkäys(lempinimeltään TRIM)-pyynnöt laitteelle." -#: src/cryptsetup.c:1506 +#: src/cryptsetup.c:1389 msgid "Device or file with separated LUKS header." msgstr "Laite tai tiedosto erillisellä LUKS-otsakkeella." -#: src/cryptsetup.c:1507 +#: src/cryptsetup.c:1390 msgid "Do not activate device, just check passphrase." msgstr "Älä aktivoi laitetta, tarkista vain salasanalauseke." -#: src/cryptsetup.c:1508 +#: src/cryptsetup.c:1391 msgid "Use hidden header (hidden TCRYPT device)." msgstr "Käytä piilotettua otsaketta (piilotettu TCRYPT-laite)." -#: src/cryptsetup.c:1509 +#: src/cryptsetup.c:1392 msgid "Device is system TCRYPT drive (with bootloader)." msgstr "Laite on järjestelmä-TCRYPT-levyasema (alkulatausohjelmalla)." -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "Käytä (toissijaista) TCRYPT-varmuuskopio-otsaketta." - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "Tutkinta myös VeraCrypt-yhteensopivalle laitteelle." - -#: src/cryptsetup.c:1512 +#: src/cryptsetup.c:1393 msgid "Type of device metadata: luks, plain, loopaes, tcrypt." msgstr "Laitemetatietojen tyyppi: luks, plain, loopaes, tcrypt." -#: src/cryptsetup.c:1513 +#: src/cryptsetup.c:1394 msgid "Disable password quality check (if enabled)." msgstr "Ota pois käytöstä salasanan laatutarkistus (jos käytössä)." -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "Käytä dm-crypt same_cpu_crypt-suorituskyky-yhteensopivuusvalitsinta." - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" -"Käytä dm-crypt submit_from_crypt_cpus-suorituskyky-yhteensopivuusvalitsinta." - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 +#: src/cryptsetup.c:1412 src/veritysetup.c:401 msgid "[OPTION...] " msgstr "[VALITSIN...] " -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "Suoritetaan FIPS-tilassa.\n" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 +#: src/cryptsetup.c:1458 src/veritysetup.c:438 msgid "Argument missing." msgstr "Argumentti puuttuu." -#: src/cryptsetup.c:1634 src/veritysetup.c:445 +#: src/cryptsetup.c:1506 src/veritysetup.c:444 msgid "Unknown action." msgstr "Tuntematon toiminto." -#: src/cryptsetup.c:1644 +#: src/cryptsetup.c:1516 msgid "Option --shared is allowed only for open of plain device.\n" msgstr "Valitsin --shared sallitaan vain pelkän laitteen avaukseen.\n" -#: src/cryptsetup.c:1649 +#: src/cryptsetup.c:1521 msgid "Option --allow-discards is allowed only for open operation.\n" msgstr "Valitsin --allow-discards sallitaan vain open-toiminnolle.\n" -#: src/cryptsetup.c:1657 +#: src/cryptsetup.c:1529 msgid "" "Option --key-size is allowed only for luksFormat, open and benchmark.\n" "To limit read from keyfile use --keyfile-size=(bytes)." msgstr "" "Valitsin --key-size sallitaan vain muodoille luksFormat, open ja benchmark.\n" -"Käytä avaintiedostosta lukemisen rajoittamiseksi valitsinta --keyfile-" -"size=(tavua)." +"Käytä avaintiedostosta lukemisen rajoittamiseksi valitsinta --keyfile-size=(tavua)." -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" -"Valitsin --test-passphrase sallitaan vain LUKS- ja TCRYPT-laitteiden " -"avaamiseen.\n" +#: src/cryptsetup.c:1536 +msgid "Option --test-passphrase is allowed only for open of LUKS and TCRYPT devices.\n" +msgstr "Valitsin --test-passphrase sallitaan vain LUKS- ja TCRYPT-laitteiden avaamiseen.\n" -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 +#: src/cryptsetup.c:1541 src/cryptsetup_reencrypt.c:1185 msgid "Key size must be a multiple of 8 bits" msgstr "Avainkoon on oltava 8-bitin monikerta" -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 +#: src/cryptsetup.c:1548 src/cryptsetup_reencrypt.c:1190 msgid "Key slot is invalid." msgstr "Avainväli on virheellinen." -#: src/cryptsetup.c:1683 +#: src/cryptsetup.c:1555 msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" -"Valitsin --key-file on ensisijainen määritellylle " -"avaintiedostoargumentille.\n" +msgstr "Valitsin --key-file on ensisijainen määritellylle avaintiedostoargumentille.\n" -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 +#: src/cryptsetup.c:1563 src/veritysetup.c:466 src/cryptsetup_reencrypt.c:1174 msgid "Negative number for option not permitted." msgstr "Valitsimelle ei sallita negatiivista numeroa." -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 +#: src/cryptsetup.c:1567 src/cryptsetup_reencrypt.c:1168 +#: src/cryptsetup_reencrypt.c:1194 msgid "Only one of --use-[u]random options is allowed." msgstr "Vain yksi --use-[u]random -valitsin on sallittu." -#: src/cryptsetup.c:1699 +#: src/cryptsetup.c:1571 msgid "Option --use-[u]random is allowed only for luksFormat." msgstr "Valitsin --use-[u]random sallitaan vain luksFormat-muodolle." -#: src/cryptsetup.c:1703 +#: src/cryptsetup.c:1575 msgid "Option --uuid is allowed only for luksFormat and luksUUID." -msgstr "" -"Valitsin --uuid sallitaan vain luksFormat-muodolle ja luksUUID-muodolle." +msgstr "Valitsin --uuid sallitaan vain luksFormat-muodolle ja luksUUID-muodolle." -#: src/cryptsetup.c:1707 +#: src/cryptsetup.c:1579 msgid "Option --align-payload is allowed only for luksFormat." msgstr "Valitsin --align-payload sallitaan vain luksFormat-muodolle." -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Valitsinta --skip tuetaan vain plain- ja loopaes-laitteiden avaamiseen.\n" +#: src/cryptsetup.c:1585 +msgid "Option --skip is supported only for open of plain and loopaes devices.\n" +msgstr "Valitsinta --skip tuetaan vain plain- ja loopaes-laitteiden avaamiseen.\n" -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Valitsinta --offset tuetaan vain plain- ja loopaes-laitteiden avaamiseen.\n" +#: src/cryptsetup.c:1591 +msgid "Option --offset is supported only for open of plain and loopaes devices.\n" +msgstr "Valitsinta --offset tuetaan vain plain- ja loopaes-laitteiden avaamiseen.\n" -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" -"Valitsinta --tcrypt-hidden, --tcrypt-system tai --tcrypt-backup tuetaan vain " -"TCRYPT-laiteeelle.\n" +#: src/cryptsetup.c:1597 +msgid "Option --tcrypt-hidden or --tcrypt-system is supported only for TCRYPT device.\n" +msgstr "Valitsinta --tcrypt-hidden tai --tcrypt-system tuetaan vain TCRYPT-laiteeelle.\n" -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "" -"Valitsinta --tcrypt-hidden ei voida yhdistää valitsimeen --allow-discards.\n" - -#: src/cryptsetup.c:1735 -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "Valitsinta --veracrypt tuetaan vain TCRYPT-laiteeelle.\n" - -#: src/veritysetup.c:58 +#: src/veritysetup.c:57 msgid "Invalid salt string specified.\n" msgstr "Määritelty virheellinen satunnaisarvosiemenmerkkijono.\n" -#: src/veritysetup.c:88 +#: src/veritysetup.c:87 #, c-format msgid "Cannot create hash image %s for writing.\n" msgstr "Tiivistevedoksen %s luominen kirjoittamista varten epäonnistui.\n" -#: src/veritysetup.c:148 +#: src/veritysetup.c:147 msgid "Invalid root hash string specified.\n" msgstr "Virheellinen root-tiivistemerkkijono määritelty.\n" -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid " " msgstr " " -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid "format device" msgstr "pohjusta laite" -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid " " msgstr " " -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid "verify device" msgstr "todenna laite" -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid " " msgstr " " -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid "create active device" msgstr "luo aktiivilaite" -#: src/veritysetup.c:311 +#: src/veritysetup.c:310 msgid "remove (deactivate) device" msgstr "poista (deaktivoi) laite" -#: src/veritysetup.c:312 +#: src/veritysetup.c:311 msgid "show active device status" msgstr "näytä aktiivilaitteen tila" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "" msgstr "" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "show on-disk information" msgstr "näytä paikallisen levyn tiedot" -#: src/veritysetup.c:332 +#: src/veritysetup.c:331 #, c-format msgid "" "\n" @@ -1549,322 +1406,282 @@ msgstr "" " on todennusdataa sisältävä laite\n" " root-solmun tiiviste kohteella \n" -#: src/veritysetup.c:339 +#: src/veritysetup.c:338 #, c-format msgid "" "\n" "Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" +"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, Hash format: %u\n" msgstr "" "\n" "Käännetyt dm-verity oletusparametrit:\n" -"\tTiiviste: %s, Data-lohko (tavua): %u, Tiivistelohko (tavua): %u, " -"Satunnaislukuarvosiemenen koko: %u, Tiivistemuoto: %u\n" +"\tTiiviste: %s, Data-lohko (tavua): %u, Tiivistelohko (tavua): %u, Satunnaislukuarvosiemenen koko: %u, Tiivistemuoto: %u\n" -#: src/veritysetup.c:377 +#: src/veritysetup.c:376 msgid "Do not use verity superblock" msgstr "Älä käytä verity-superlohkoa" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "Format type (1 - normal, 0 - original Chrome OS)" msgstr "Muototyyppi (1 - normaali, 0 - alkuperäinen Chrome OS)" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "number" msgstr "numero" -#: src/veritysetup.c:379 +#: src/veritysetup.c:378 msgid "Block size on the data device" msgstr "Data-laitteen lohkokoko" -#: src/veritysetup.c:380 +#: src/veritysetup.c:379 msgid "Block size on the hash device" msgstr "Tiivistelaitteen lohkokoko" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "The number of blocks in the data file" msgstr "Data-tiedoston lohkojen määrä" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "blocks" msgstr "lohkoa" -#: src/veritysetup.c:382 +#: src/veritysetup.c:381 msgid "Starting offset on the hash device" msgstr "Tiivistelaitteen alkusiirrososoite" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "Hash algorithm" msgstr "Tiivistealgoritmi" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "string" msgstr "merkkijono" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "Salt" msgstr "Satunnaisarvosiemenluku" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "hex string" msgstr "heksadesimaalimerkkijono" -#: src/cryptsetup_reencrypt.c:147 +#: src/cryptsetup_reencrypt.c:136 #, c-format msgid "Cannot exclusively open %s, device in use.\n" -msgstr "" -"Kohteen %s avaaminen eksklusiivisesti epäonnistui, laite on käytössä.\n" +msgstr "Kohteen %s avaaminen eksklusiivisesti epäonnistui, laite on käytössä.\n" -#: src/cryptsetup_reencrypt.c:151 +#: src/cryptsetup_reencrypt.c:140 #, c-format msgid "Cannot open device %s\n" msgstr "Laitteen %s avaus epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 +#: src/cryptsetup_reencrypt.c:150 src/cryptsetup_reencrypt.c:367 +#: src/cryptsetup_reencrypt.c:786 msgid "Allocation of aligned memory failed.\n" msgstr "Tasatun muistin varaaminen epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:168 +#: src/cryptsetup_reencrypt.c:157 #, c-format msgid "Cannot read device %s.\n" msgstr "Laitteen %s lukeminen epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:179 +#: src/cryptsetup_reencrypt.c:168 #, c-format msgid "Marking LUKS device %s unusable.\n" msgstr "Merkitään LUKS-laite %s käyttökelvottomaksi.\n" -#: src/cryptsetup_reencrypt.c:184 +#: src/cryptsetup_reencrypt.c:173 #, c-format msgid "Marking LUKS device %s usable.\n" msgstr "Merkitään LUKS-laite %s käyttökelpoiseksi.\n" -#: src/cryptsetup_reencrypt.c:200 +#: src/cryptsetup_reencrypt.c:189 #, c-format msgid "Cannot write device %s.\n" msgstr "Laitteelle %s kirjoittaminen epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:281 +#: src/cryptsetup_reencrypt.c:270 msgid "Cannot write reencryption log file.\n" msgstr "Uudelleensalauslokitiedoston kirjoittaminen epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:337 +#: src/cryptsetup_reencrypt.c:319 msgid "Cannot read reencryption log file.\n" msgstr "Uudelleensalauslokitiedoston lukeminen epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:374 +#: src/cryptsetup_reencrypt.c:358 #, c-format msgid "Log file %s exists, resuming reencryption.\n" msgstr "Lokitiedosto %s on olemassa, aloitetaan salaus uudelleen.\n" -#: src/cryptsetup_reencrypt.c:403 +#: src/cryptsetup_reencrypt.c:393 msgid "Activating temporary device using old LUKS header.\n" msgstr "Aktivoidaan tilapäinen laite käyttäen vanhaa LUKS-otsaketta.\n" -#: src/cryptsetup_reencrypt.c:414 +#: src/cryptsetup_reencrypt.c:404 msgid "Activating temporary device using new LUKS header.\n" msgstr "Aktivoidaan tilapäinen laite käyttäen uutta LUKS-otsaketta.\n" -#: src/cryptsetup_reencrypt.c:424 +#: src/cryptsetup_reencrypt.c:414 msgid "Activation of temporary devices failed.\n" msgstr "Tilapäisten laitteiden aktivoiminen epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:450 +#: src/cryptsetup_reencrypt.c:439 #, c-format msgid "New LUKS header for device %s created.\n" msgstr "Luotiin uusi LUKS-otsake laitteelle %s.\n" -#: src/cryptsetup_reencrypt.c:458 +#: src/cryptsetup_reencrypt.c:447 #, c-format msgid "Activated keyslot %i.\n" msgstr "Aktivoitiin avainväli %i.\n" -#: src/cryptsetup_reencrypt.c:484 +#: src/cryptsetup_reencrypt.c:471 #, c-format msgid "LUKS header backup of device %s created.\n" msgstr "Laitteen %s LUKS-otsakkeen varmuuskopio luotu.\n" -#: src/cryptsetup_reencrypt.c:532 +#: src/cryptsetup_reencrypt.c:499 msgid "Creation of LUKS backup headers failed.\n" msgstr "LUKS-varmuuskopio-otsakkeiden luominen epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:634 +#: src/cryptsetup_reencrypt.c:594 #, c-format msgid "Cannot restore LUKS header on device %s.\n" msgstr "LUKS-otsakkeen palautus laitteeseen %s epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:636 +#: src/cryptsetup_reencrypt.c:596 #, c-format msgid "LUKS header on device %s restored.\n" msgstr "LUKS-otsake palautettu laitteessa %s.\n" -#: src/cryptsetup_reencrypt.c:669 +#: src/cryptsetup_reencrypt.c:629 #, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" -"Eteneminen: %5.1f%%, ETA %02llu:%02llu, %4llu Mebitavua kirjoitettu, nopeus " -"%5.1f Mebitavua/s%s" +msgid "Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" +msgstr "Eteneminen: %5.1f%%, ETA %02llu:%02llu, %4llu Mebitavua kirjoitettu, nopeus %5.1f Mebitavua/s%s" -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 +#: src/cryptsetup_reencrypt.c:645 src/cryptsetup_reencrypt.c:721 msgid "Cannot seek to device offset.\n" msgstr "Laitteen siirrososoitteen etsintä epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 +#: src/cryptsetup_reencrypt.c:767 src/cryptsetup_reencrypt.c:773 msgid "Cannot open temporary LUKS header file.\n" msgstr "Tilapäisen LUKS-otsaketiedoston avaaminen epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 +#: src/cryptsetup_reencrypt.c:779 msgid "Cannot get device size.\n" msgstr "Laitekoon hakeminen epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:919 +#: src/cryptsetup_reencrypt.c:803 msgid "Interrupted by a signal.\n" msgstr "Signaalin keskeyttämä.\n" -#: src/cryptsetup_reencrypt.c:921 +#: src/cryptsetup_reencrypt.c:805 msgid "IO error during reencryption.\n" msgstr "Siirräntävirhe uudelleensalauksen aikana.\n" -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" -"Avaintiedostoa voidaan käyttää vain valitsimen --key-slot kanssa tai " -"täsmälleen yhden avainvälin ollessa aktiivisena.\n" +#: src/cryptsetup_reencrypt.c:906 +msgid "Key file can be used only with --key-slot or with exactly one key slot active.\n" +msgstr "Avaintiedostoa voidaan käyttää vain valitsimen --key-slot kanssa tai täsmälleen yhden avainvälin ollessa aktiivisena.\n" -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 +#: src/cryptsetup_reencrypt.c:955 #, c-format msgid "Enter passphrase for key slot %u: " msgstr "Kirjoita salasanalause avainvälille %u: " -#: src/cryptsetup_reencrypt.c:1136 +#: src/cryptsetup_reencrypt.c:1004 msgid "Cannot open reencryption log file.\n" msgstr "Uudelleensalauslokitiedoston avaus epäonnistui.\n" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "Reencryption block size" msgstr "Uudelleensalauslohkon koko" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "MiB" msgstr "Mebitavua" -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "Älä vaihda avainta, yhtään data-aluetta ei ole salattu uudelleen." - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." +#: src/cryptsetup_reencrypt.c:1118 +msgid "Use direct-io when accesing devices." msgstr "Käytä direct-io -siirräntää laitteisiin yhdistettäessä." -#: src/cryptsetup_reencrypt.c:1274 +#: src/cryptsetup_reencrypt.c:1119 msgid "Use fsync after each block." msgstr "Käytä fsync-komentoa jokaisen lohkon jälkeen." -#: src/cryptsetup_reencrypt.c:1275 +#: src/cryptsetup_reencrypt.c:1120 msgid "Update log file after every block." msgstr "Päivitä lokitiedosto jokaisen lohkon jälkeen." -#: src/cryptsetup_reencrypt.c:1276 +#: src/cryptsetup_reencrypt.c:1121 msgid "Use only this slot (others will be disabled)." msgstr "Käytä vain tätä väliä (muut ovat pois käytöstä)." -#: src/cryptsetup_reencrypt.c:1279 +#: src/cryptsetup_reencrypt.c:1124 msgid "Reduce data device size (move data offset). DANGEROUS!" msgstr "Pienennä datalaitekokoa (siirrä datasiirrososoitetta). VAARALLINEN!" -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup_reencrypt.c:1125 msgid "Use only specified device size (ignore rest of device). DANGEROUS!" msgstr "Käytä vain määriteltyä laitekokoa (ohita laitteen loppu). VAARALLINEN!" -#: src/cryptsetup_reencrypt.c:1281 +#: src/cryptsetup_reencrypt.c:1126 msgid "Create new header on not encrypted device." msgstr "Luo uusi otsake ei-salattuun laitteeseen." -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "Poista laitteen salaus pysyvästi (poista salaus)" - -#: src/cryptsetup_reencrypt.c:1298 +#: src/cryptsetup_reencrypt.c:1142 msgid "[OPTION...] " msgstr "[VALITSIN...] " -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" -"VAROITUS: tämä on kokeellista koodia, se voi rikkoa tietosi kokonaan.\n" +#: src/cryptsetup_reencrypt.c:1156 +msgid "WARNING: this is experimental code, it can completely break your data.\n" +msgstr "VAROITUS: tämä on kokeellista koodia, se voi rikkoa tietosi kokonaan.\n" -#: src/cryptsetup_reencrypt.c:1313 +#: src/cryptsetup_reencrypt.c:1157 #, c-format msgid "Reencryption will change: volume key%s%s%s%s.\n" msgstr "Uudelleensalauas muuttuu: taltio key%s%s%s%s.\n" -#: src/cryptsetup_reencrypt.c:1314 +#: src/cryptsetup_reencrypt.c:1158 msgid ", set hash to " msgstr ", aseta tiivisteeksi " -#: src/cryptsetup_reencrypt.c:1315 +#: src/cryptsetup_reencrypt.c:1159 msgid ", set cipher to " msgstr ", aseta salaukseksi " -#: src/cryptsetup_reencrypt.c:1320 +#: src/cryptsetup_reencrypt.c:1164 msgid "Argument required." msgstr "Argumentti vaadittu." -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" -"Vain arvot välillä 1 mebitavua ja 64 mebitavua ovat sallittuja " -"uudelleensalauslohkokokoja." +#: src/cryptsetup_reencrypt.c:1180 +msgid "Only values between 1 MiB and 64 MiB allowed for reencryption block size." +msgstr "Vain arvot välillä 1 mebitavua ja 64 mebitavua ovat sallittuja uudelleensalauslohkokokoja." -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 +#: src/cryptsetup_reencrypt.c:1199 src/cryptsetup_reencrypt.c:1204 msgid "Invalid device size specification." msgstr "Virheellinen laitekokomäärittely." -#: src/cryptsetup_reencrypt.c:1363 +#: src/cryptsetup_reencrypt.c:1207 msgid "Maximum device reduce size is 64 MiB." msgstr "Maksimi laitepienennyskoko on 64 mebitavua." -#: src/cryptsetup_reencrypt.c:1366 +#: src/cryptsetup_reencrypt.c:1210 msgid "Reduce size must be multiple of 512 bytes sector." msgstr "Pienennyskoon on oltava 512-tavuisen sektorin monikerta." -#: src/cryptsetup_reencrypt.c:1370 +#: src/cryptsetup_reencrypt.c:1214 msgid "Option --new must be used together with --reduce-device-size." -msgstr "" -"Valitsinta --new on käytettävä yhdessä valitsimen --reduce-device-size " -"kanssa." - -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "" -"Valitsinta --keep-key voidaan käyttää vain valitsimen --hash tai --iter-time " -"kanssa." +msgstr "Valitsinta --new on käytettävä yhdessä valitsimen --reduce-device-size kanssa." -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "Valitsinta --new ei voi käytttää yhdessä valitsimen --decrypt kanssa." - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "" -"Valitsin --decrypt on yhteensopimaton määriteltyjen parametrien kanssa." - -#: src/utils_tools.c:151 +#: src/utils_tools.c:150 msgid "Error reading response from terminal.\n" msgstr "Virhe luettaessa vastausta pääteikkunasta.\n" -#: src/utils_tools.c:173 +#: src/utils_tools.c:172 msgid "Command successful.\n" msgstr "Komento onnistui.\n" -#: src/utils_tools.c:191 +#: src/utils_tools.c:186 #, c-format msgid "Command failed with code %i" msgstr "Komento epäonnistui koodilla %i" @@ -1883,19 +1700,6 @@ msgstr "" "Salasanan laatutarkistus epäonnistui:\n" " %s\n" -#~ msgid "FIPS checksum verification failed.\n" -#~ msgstr "FIPS-tarkistussummavarmennus epäonnistui.\n" - -#~ msgid "" -#~ "WARNING: device %s is a partition, for TCRYPT system encryption you " -#~ "usually need to use whole block device path.\n" -#~ msgstr "" -#~ "VAROITUS: laite %s on osio, TCRYPT-järjestelmäsalaukselle tarvitaan " -#~ "normaalisti koko lohkolaitepolun käyttö.\n" - -#~ msgid "Kernel doesn't support plain64 IV.\n" -#~ msgstr "Käyttöjärjestelmäydin ei tule plain64 IV.\n" - #~ msgid "Enter LUKS passphrase: " #~ msgstr "Kirjoita LUKS-salasanalause: " @@ -1935,12 +1739,8 @@ msgstr "" #~ msgid "remove loop-AES mapping" #~ msgstr "poista loop-AES -kuvaus" -#~ msgid "" -#~ "Option --allow-discards is allowed only for luksOpen, loopaesOpen and " -#~ "create operation.\n" -#~ msgstr "" -#~ "Valitsin --allow-discards sallitaan vain luksOpen-, loopaesOpen- ja " -#~ "create-toiminnoille .\n" +#~ msgid "Option --allow-discards is allowed only for luksOpen, loopaesOpen and create operation.\n" +#~ msgstr "Valitsin --allow-discards sallitaan vain luksOpen-, loopaesOpen- ja create-toiminnoille .\n" #~ msgid "Cannot open device %s for %s%s access.\n" #~ msgstr "Ei voida avata laitetta %s kohteeseen %s%s pääsyä varten.\n" @@ -1966,12 +1766,8 @@ msgstr "" #~ msgid "Failed to read from key storage.\n" #~ msgstr "Avainsäiliöstä lukeminen epäonnistui.\n" -#~ msgid "" -#~ "Cannot use device %s (crypt segments overlaps or in use by another " -#~ "device).\n" -#~ msgstr "" -#~ "Ei voida käyttää laitetta %s (salatut segmentit ovat päällekkäin tai " -#~ "toisen laitteen käyttämiä).\n" +#~ msgid "Cannot use device %s (crypt segments overlaps or in use by another device).\n" +#~ msgstr "Ei voida käyttää laitetta %s (salatut segmentit ovat päällekkäin tai toisen laitteen käyttämiä).\n" #~ msgid "Key slot %d verified.\n" #~ msgstr "Avainväli %d on todennettu.\n" @@ -1980,31 +1776,22 @@ msgstr "" #~ msgstr "Virheellinen avainkoko %d.\n" #~ msgid "Block mode XTS is available since kernel 2.6.24.\n" -#~ msgstr "" -#~ "Lohkotila XTS on käytetettävissä käyttöjärjestelmäytimestä 2.6.24 " -#~ "alkaen.\n" +#~ msgstr "Lohkotila XTS on käytetettävissä käyttöjärjestelmäytimestä 2.6.24 alkaen.\n" #~ msgid "Key size in LRW mode must be 256 or 512 bits.\n" #~ msgstr "Avainkoon on oltava LRW-tilassa 256 tai 512 bittiä.\n" #~ msgid "Block mode LRW is available since kernel 2.6.20.\n" -#~ msgstr "" -#~ "Lohkotila LRW on käytettävissä käyttöjärjestelmäytimestä 2.6.20 alkaen.\n" +#~ msgstr "Lohkotila LRW on käytettävissä käyttöjärjestelmäytimestä 2.6.20 alkaen.\n" #~ msgid "Negative keyfile size not permitted.\n" #~ msgstr "Negatiivinen avaintiedostokoko ei ole sallittu.\n" -#~ msgid "" -#~ "Warning: exhausting read requested, but key file is not a regular file, " -#~ "function might never return.\n" -#~ msgstr "" -#~ "Varoitus: uuvuttava luku pyydetty, mutta avaintiedosto ei ole tavallinen " -#~ "tiedosto, funktio ei ehkä koskaan palaa.\n" +#~ msgid "Warning: exhausting read requested, but key file is not a regular file, function might never return.\n" +#~ msgstr "Varoitus: uuvuttava luku pyydetty, mutta avaintiedosto ei ole tavallinen tiedosto, funktio ei ehkä koskaan palaa.\n" #~ msgid "Cannot find compatible device-mapper kernel modules.\n" -#~ msgstr "" -#~ "Ei voida löytää yhteensopivia laitekuvaimen " -#~ "käyttöjärjestelmäydinmoduuleja.\n" +#~ msgstr "Ei voida löytää yhteensopivia laitekuvaimen käyttöjärjestelmäydinmoduuleja.\n" #~ msgid "Cannot open device: %s\n" #~ msgstr "Ei voida avata laitetta: %s\n" @@ -2022,15 +1809,11 @@ msgstr "" #~ msgstr "muokkaa aktiivista laitetta - VANHENTUNUT - katso man-sivua" #~ msgid "" -#~ "The reload action is deprecated. Please use \"dmsetup reload\" in case " -#~ "you really need this functionality.\n" -#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, " -#~ "hit Ctrl-C now.\n" +#~ "The reload action is deprecated. Please use \"dmsetup reload\" in case you really need this functionality.\n" +#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, hit Ctrl-C now.\n" #~ msgstr "" -#~ "Uudelleenlataustoiminto on vanhentunut. Käytä ”dmsetup reload” siinä " -#~ "tapauksessa, että todella tarvitset tätä toiminnallisuutta.\n" -#~ "VAROITUS: älä käytä uudelleenlatausta koskettamaan LUKS-laitteita. Jos " -#~ "näin on laita, paina nyt näppäimiä Ctrl-C.\n" +#~ "Uudelleenlataustoiminto on vanhentunut. Käytä ”dmsetup reload” siinä tapauksessa, että todella tarvitset tätä toiminnallisuutta.\n" +#~ "VAROITUS: älä käytä uudelleenlatausta koskettamaan LUKS-laitteita. Jos näin on laita, paina nyt näppäimiä Ctrl-C.\n" #~ msgid "Obsolete option --non-exclusive is ignored.\n" #~ msgstr "Vanhentunut valitsin --non-exclusive ohitetaan.\n" diff --git a/po/fr.gmo b/po/fr.gmo deleted file mode 100644 index 950e0fa..0000000 Binary files a/po/fr.gmo and /dev/null differ diff --git a/po/fr.po b/po/fr.po index 379874e..952eef2 100644 --- a/po/fr.po +++ b/po/fr.po @@ -1,16 +1,16 @@ # Messages français pour cryptsetup. -# Copyright (C) 2015 Free Software Foundation, Inc. +# Copyright (C) 2013 Free Software Foundation, Inc. # This file is put in the public domain. # # Solveig , 2009. # Nicolas Provost , 2011. -# Frédéric Marchal , 2015. +# Frédéric Marchal , 2013. msgid "" msgstr "" -"Project-Id-Version: cryptsetup 1.6.7\n" +"Project-Id-Version: cryptsetup 1.6.2\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: 2015-03-19 11:29+0100\n" +"POT-Creation-Date: 2013-07-27 19:53+0200\n" +"PO-Revision-Date: 2013-07-30 20:06+0200\n" "Last-Translator: Frédéric Marchal \n" "Language-Team: French \n" "Language: fr\n" @@ -18,37 +18,28 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Lokalize 1.0\n" -#: lib/libdevmapper.c:252 +#: lib/libdevmapper.c:245 msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "" -"Impossible d'initialiser le gestionnaire « device-mapper ». Fonctionne comme " -"un utilisateur non-root.\n" +msgstr "Impossible d'initialiser le gestionnaire « device-mapper ». Fonctionne comme un utilisateur non-root.\n" -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:248 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" -msgstr "" -"Impossible d'initialiser le gestionnaire « device-mapper ». Le module noyau " -"dm_mod est-il chargé ?\n" +msgstr "Impossible d'initialiser le gestionnaire « device-mapper ». Le module noyau dm_mod est-il chargé ?\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:536 #, c-format msgid "DM-UUID for device %s was truncated.\n" msgstr "Le DM-UUID du périphérique %s a été tronqué.\n" -#: lib/libdevmapper.c:698 -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Les options de performance dmcrypt demandées ne sont pas supportées.\n" - #: lib/random.c:76 msgid "" "System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" +"Please move mouse or type some text in another window to gather some random events.\n" msgstr "" "Le système a manqué d'entropie lors de la génération de la clef de volume.\n" -"Veuillez remuer la souris ou taper du texte dans une autre fenêtre pour " -"générer des événements aléatoires.\n" +"Veuillez remuer la souris ou taper du texte dans une autre fenêtre pour générer des événements aléatoires.\n" #: lib/random.c:80 #, c-format @@ -68,273 +59,258 @@ msgstr "La qualité du générateur aléatoire RNG demandé est inconnue.\n" msgid "Error %d reading from RNG: %s\n" msgstr "Erreur %d en lecture du générateur aléatoire RNG :%s\n" -#: lib/setup.c:200 +#: lib/setup.c:190 msgid "Cannot initialize crypto RNG backend.\n" -msgstr "" -"Impossible d'initialiser le moteur aléatoire RNG pour le chiffrement.\n" +msgstr "Impossible d'initialiser le moteur aléatoire RNG pour le chiffrement.\n" -#: lib/setup.c:206 +#: lib/setup.c:196 msgid "Cannot initialize crypto backend.\n" msgstr "Impossible d'initialiser le moteur de chiffrement.\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 +#: lib/setup.c:219 lib/setup.c:1110 lib/verity/verity.c:123 #, c-format msgid "Hash algorithm %s not supported.\n" msgstr "L'algorithme de hachage %s n'est pas supporté.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 +#: lib/setup.c:222 lib/loopaes/loopaes.c:90 #, c-format msgid "Key processing error (using hash %s).\n" msgstr "Erreur de traitement de clé (valeur hachage %s).\n" -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" -"Impossible de déterminer le type de périphérique. Activation du périphérique " -"incompatible ?\n" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Cette opération n'est possible que pour les périphériques LUKS.\n" - -#: lib/setup.c:320 +#: lib/setup.c:268 msgid "All key slots full.\n" msgstr "Tous les emplacements de clés sont utilisés.\n" -#: lib/setup.c:327 +#: lib/setup.c:275 #, c-format msgid "Key slot %d is invalid, please select between 0 and %d.\n" -msgstr "" -"L'emplacement de clé %d n'est pas valide, merci d'en choisir un entre 0 et " -"%d.\n" +msgstr "L'emplacement de clé %d n'est pas valide, merci d'en choisir un entre 0 et %d.\n" -#: lib/setup.c:333 +#: lib/setup.c:281 #, c-format msgid "Key slot %d is full, please select another one.\n" -msgstr "" -"L'emplacement de clé %d est utilisé, merci d'en sélectionner un autre.\n" +msgstr "L'emplacement de clé %d est utilisé, merci d'en sélectionner un autre.\n" -#: lib/setup.c:472 +#: lib/setup.c:390 #, c-format msgid "Enter passphrase for %s: " msgstr "Saisissez la phrase secrète pour %s : " -#: lib/setup.c:653 +#: lib/setup.c:571 #, c-format msgid "Header detected but device %s is too small.\n" msgstr "En-tête détecté mais le périphérique %s est trop petit.\n" -#: lib/setup.c:669 lib/setup.c:1420 +#: lib/setup.c:587 lib/setup.c:1337 msgid "This operation is not supported for this device type.\n" msgstr "Cette opération n'est pas supportée pour ce type de périphérique.\n" -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:825 lib/setup.c:1298 lib/setup.c:2173 #, c-format msgid "Device %s is not active.\n" msgstr "Le périphérique %s n'est pas activé.\n" -#: lib/setup.c:925 +#: lib/setup.c:842 #, c-format msgid "Underlying device for crypt device %s disappeared.\n" -msgstr "" -"Le périphérique sous-jacent pour le périphérique chiffré %s a disparu.\n" +msgstr "Le périphérique sous-jacent pour le périphérique chiffré %s a disparu.\n" -#: lib/setup.c:994 +#: lib/setup.c:907 msgid "Invalid plain crypt parameters.\n" msgstr "Paramètres de chiffrement non valides.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:912 lib/setup.c:1037 msgid "Invalid key size.\n" msgstr "La taille de la clé n'est pas valide.\n" -#: lib/setup.c:1004 lib/setup.c:1124 +#: lib/setup.c:917 lib/setup.c:1042 msgid "UUID is not supported for this crypt type.\n" msgstr "le UUID n'est pas supporté avec ce type de chiffrement.\n" -#: lib/setup.c:1046 +#: lib/setup.c:959 msgid "Can't format LUKS without device.\n" msgstr "Impossible de formater en LUKS sans périphérique.\n" -#: lib/setup.c:1089 +#: lib/setup.c:1007 #, c-format msgid "Cannot format device %s which is still in use.\n" -msgstr "" -"Impossible de formater le périphérique %s qui est déjà en cours " -"d'utilisation.\n" +msgstr "Impossible de formater le périphérique %s qui est déjà en cours d'utilisation.\n" -#: lib/setup.c:1092 +#: lib/setup.c:1010 #, c-format msgid "Cannot format device %s, permission denied.\n" msgstr "Impossible de formater le périphérique %s. Permission refusée.\n" -#: lib/setup.c:1096 +#: lib/setup.c:1014 #, c-format msgid "Cannot wipe header on device %s.\n" msgstr "Impossible d'effacer l'en-tête du périphérique %s.\n" -#: lib/setup.c:1114 +#: lib/setup.c:1032 msgid "Can't format LOOPAES without device.\n" msgstr "Impossible de formater LOOPAES sans périphérique.\n" -#: lib/setup.c:1152 +#: lib/setup.c:1070 msgid "Can't format VERITY without device.\n" msgstr "Impossible de formater VERITY sans périphérique.\n" -#: lib/setup.c:1160 lib/verity/verity.c:106 +#: lib/setup.c:1078 lib/verity/verity.c:106 #, c-format msgid "Unsupported VERITY hash type %d.\n" msgstr "Type de hachage VERITY %d non supporté.\n" -#: lib/setup.c:1166 lib/verity/verity.c:114 +#: lib/setup.c:1084 lib/verity/verity.c:114 msgid "Unsupported VERITY block size.\n" msgstr "Taille de bloc VERITY non supportée.\n" -#: lib/setup.c:1171 lib/verity/verity.c:76 +#: lib/setup.c:1089 lib/verity/verity.c:76 msgid "Unsupported VERITY hash offset.\n" msgstr "Décalage de hachage VERITY non supporté.\n" -#: lib/setup.c:1285 +#: lib/setup.c:1201 #, c-format msgid "Unknown crypt device type %s requested.\n" msgstr "Type de chiffrement de périphérique demandé (%s) inconnu.\n" -#: lib/setup.c:1435 +#: lib/setup.c:1352 msgid "Do you really want to change UUID of device?" -msgstr "Voulez vous réellement changer l'UUID du périphérique ?" +msgstr "Voulez-vous réellement changer l'UUID du périphérique ?" + +#: lib/setup.c:1440 lib/setup.c:1485 lib/setup.c:1534 lib/setup.c:1600 +#: lib/setup.c:1673 lib/setup.c:1737 lib/setup.c:1818 lib/setup.c:1864 +#: lib/setup.c:2238 lib/setup.c:2532 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Cette opération n'est possible que pour les périphériques LUKS.\n" -#: lib/setup.c:1545 +#: lib/setup.c:1447 #, c-format msgid "Volume %s is not active.\n" msgstr "Le volume %s n'est pas actif.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1458 #, c-format msgid "Volume %s is already suspended.\n" msgstr "Le volume %s est déjà en suspendu.\n" -#: lib/setup.c:1563 +#: lib/setup.c:1465 #, c-format msgid "Suspend is not supported for device %s.\n" msgstr "Le périphérique %s ne supporte pas la suspension.\n" -#: lib/setup.c:1565 +#: lib/setup.c:1467 #, c-format msgid "Error during suspending device %s.\n" msgstr "Erreur lors de la suspension du périphérique %s.\n" -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1495 lib/setup.c:1544 #, c-format msgid "Volume %s is not suspended.\n" msgstr "Le volume %s n'est pas suspendu.\n" -#: lib/setup.c:1605 +#: lib/setup.c:1509 #, c-format msgid "Resume is not supported for device %s.\n" msgstr "Le périphérique %s ne supporte pas la remise en service.\n" -#: lib/setup.c:1607 lib/setup.c:1659 +#: lib/setup.c:1511 lib/setup.c:1565 #, c-format msgid "Error during resuming device %s.\n" msgstr "Erreur lors de la remise en service du périphérique %s.\n" -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 +#: lib/setup.c:1551 lib/setup.c:1989 lib/setup.c:2003 src/cryptsetup.c:151 +#: src/cryptsetup.c:229 src/cryptsetup.c:316 src/cryptsetup.c:660 +#: src/cryptsetup.c:1076 msgid "Enter passphrase: " msgstr "Saisissez la phrase secrète : " -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1614 lib/setup.c:1751 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"Impossible d'ajouter un emplacement de clé, tous les emplacements sont " -"désactivés et aucune clé n'a été fournie pour ce volume.\n" +msgstr "Impossible d'ajouter un emplacement de clé, tous les emplacements sont désactivés et aucune clé n'a été fournie pour ce volume.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1623 lib/setup.c:1757 lib/setup.c:1761 msgid "Enter any passphrase: " msgstr "Entrez une phrase de passe : " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1640 lib/setup.c:1774 lib/setup.c:1778 lib/setup.c:1841 +#: src/cryptsetup.c:942 msgid "Enter new passphrase for key slot: " msgstr "Entrez une nouvelle phrase secrète pour l'emplacement de clé : " -#: lib/setup.c:1798 +#: lib/setup.c:1705 #, c-format msgid "Key slot %d changed.\n" msgstr "Emplacement de clef %d modifié.\n" -#: lib/setup.c:1801 +#: lib/setup.c:1708 #, c-format msgid "Replaced with key slot %d.\n" msgstr "Remplacé par l'emplacement de clé %d.\n" -#: lib/setup.c:1806 +#: lib/setup.c:1713 msgid "Failed to swap new key slot.\n" msgstr "Nouvel emplacement de clé impossible à échanger.\n" -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1832 lib/setup.c:2093 lib/setup.c:2106 lib/setup.c:2249 msgid "Volume key does not match the volume.\n" msgstr "Ceci n'est pas la clé du volume.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1870 #, c-format msgid "Key slot %d is invalid.\n" msgstr "L'emplacement de clé %d n'est pas valide.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1875 #, c-format msgid "Key slot %d is not used.\n" msgstr "L'emplacement de clé %d n'est pas utilisé.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1905 lib/setup.c:1977 lib/setup.c:2069 #, c-format msgid "Device %s already exists.\n" msgstr "Le périphérique %s existe déjà.\n" -#: lib/setup.c:2171 +#: lib/setup.c:2080 msgid "Incorrect volume key specified for plain device.\n" msgstr "Clé de volume incorrecte pour le périphérique en clair.\n" -#: lib/setup.c:2204 +#: lib/setup.c:2113 msgid "Incorrect root hash specified for verity device.\n" msgstr "Hachage racine incorrect spécifié pour le périphérique verity.\n" -#: lib/setup.c:2227 +#: lib/setup.c:2136 msgid "Device type is not properly initialised.\n" msgstr "Type de périphérique non proprement initialisé.\n" -#: lib/setup.c:2259 +#: lib/setup.c:2168 #, c-format msgid "Device %s is still in use.\n" msgstr "Le périphérique %s est toujours occupé.\n" -#: lib/setup.c:2268 +#: lib/setup.c:2177 #, c-format msgid "Invalid device %s.\n" msgstr "Le périphérique %s n'est pas valide.\n" -#: lib/setup.c:2289 +#: lib/setup.c:2198 msgid "Function not available in FIPS mode.\n" msgstr "Fonction pas disponible en mode FIPS.\n" -#: lib/setup.c:2295 +#: lib/setup.c:2204 msgid "Volume key buffer too small.\n" msgstr "Le tampon de la clé du volume est trop petit.\n" -#: lib/setup.c:2303 +#: lib/setup.c:2212 msgid "Cannot retrieve volume key for plain device.\n" -msgstr "" -"Impossible de récupérer la clé du volume pour ce périphérique de type " -"« plain ».\n" +msgstr "Impossible de récupérer la clé du volume pour ce périphérique de type « plain ».\n" -#: lib/setup.c:2310 +#: lib/setup.c:2219 #, c-format msgid "This operation is not supported for %s crypt device.\n" msgstr "Cette opération n'est pas possible pour le périphérique chiffré %s.\n" -#: lib/setup.c:2506 +#: lib/setup.c:2416 msgid "Dump operation is not supported for this device type.\n" -msgstr "" -"L'opération de vidage n'est pas supportée pour ce type de périphérique.\n" +msgstr "L'opération de vidage n'est pas supportée pour ce type de périphérique.\n" #: lib/utils.c:244 msgid "Cannot get process priority.\n" @@ -344,363 +320,314 @@ msgstr "Impossible d'obtenir la priorité du processus.\n" msgid "Cannot unlock memory.\n" msgstr "Impossible de déverrouiller la mémoire.\n" -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 +#: lib/utils_crypt.c:227 lib/utils_crypt.c:240 lib/utils_crypt.c:387 +#: lib/utils_crypt.c:402 msgid "Out of memory while reading passphrase.\n" msgstr "Plus assez de mémoire lors de la lecture de la phrase secrète.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils_crypt.c:232 lib/utils_crypt.c:247 msgid "Error reading passphrase from terminal.\n" msgstr "Erreur de lecture de la phrase secrète depuis la console.\n" -#: lib/utils_crypt.c:259 +#: lib/utils_crypt.c:245 msgid "Verify passphrase: " msgstr "Vérifiez la phrase secrète : " -#: lib/utils_crypt.c:266 +#: lib/utils_crypt.c:252 msgid "Passphrases do not match.\n" msgstr "Les phrases secrètes ne sont pas identiques.\n" -#: lib/utils_crypt.c:350 +#: lib/utils_crypt.c:336 msgid "Cannot use offset with terminal input.\n" msgstr "Le décalage n'est pas possible si l'entrée provient de la console.\n" -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 +#: lib/utils_crypt.c:355 lib/tcrypt/tcrypt.c:443 msgid "Failed to open key file.\n" msgstr "Impossible d'ouvrir le fichier de clef.\n" -#: lib/utils_crypt.c:378 +#: lib/utils_crypt.c:364 msgid "Failed to stat key file.\n" msgstr "Impossible d'exécuter « stat » sur le fichier de clef.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 +#: lib/utils_crypt.c:372 lib/utils_crypt.c:393 msgid "Cannot seek to requested keyfile offset.\n" msgstr "Impossible de sauter au décalage demandé dans le fichier de clé.\n" -#: lib/utils_crypt.c:424 +#: lib/utils_crypt.c:410 msgid "Error reading passphrase.\n" msgstr "Erreur de lecture de la phrase secrète.\n" -#: lib/utils_crypt.c:442 +#: lib/utils_crypt.c:428 msgid "Maximum keyfile size exceeded.\n" msgstr "Taille max. de fichier de clé dépassée.\n" -#: lib/utils_crypt.c:447 +#: lib/utils_crypt.c:433 msgid "Cannot read requested amount of data.\n" msgstr "Impossible de lire la quantité de données demandée.\n" -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/utils_fips.c:46 +msgid "FIPS checksum verification failed.\n" +msgstr "La vérification de la somme de contrôle FIPS a échoué.\n" + +#: lib/utils_fips.c:50 +msgid "Running in FIPS mode.\n" +msgstr "Fonctionne en mode FIPS.\n" + +#: lib/utils_device.c:52 lib/luks1/keyencryption.c:82 #, c-format msgid "Device %s doesn't exist or access denied.\n" msgstr "Le périphérique %s n'existe pas ou l'accès y est interdit.\n" -#: lib/utils_device.c:430 +#: lib/utils_device.c:346 msgid "Cannot use a loopback device, running as non-root user.\n" -msgstr "" -"Impossible d'utiliser un périphérique loopback. Fonctionne comme un " -"utilisateur non-root.\n" +msgstr "Impossible d'utiliser un périphérique loopback. Fonctionne comme un utilisateur non-root.\n" -#: lib/utils_device.c:433 +#: lib/utils_device.c:349 msgid "Cannot find a free loopback device.\n" msgstr "Impossible de trouver un périphérique loopback libre.\n" -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" -"Impossible d'associer le périphérique loopback (le drapeau « autoclear » est " -"requis).\n" +#: lib/utils_device.c:356 +msgid "Attaching loopback device failed (loop device with autoclear flag is required).\n" +msgstr "Impossible d'associer le périphérique loopback (le drapeau « autoclear » est requis).\n" -#: lib/utils_device.c:484 +#: lib/utils_device.c:396 #, c-format msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" -"Impossible d'utiliser le périphérique %s actuellement en usage (déjà mappé " -"ou monté).\n" +msgstr "Impossible d'utiliser le périphérique %s actuellement en usage (déjà mappé ou monté).\n" -#: lib/utils_device.c:488 +#: lib/utils_device.c:400 #, c-format msgid "Cannot get info about device %s.\n" msgstr "Impossible d'obtenir des informations au sujet du périphérique %s.\n" -#: lib/utils_device.c:494 +#: lib/utils_device.c:406 #, c-format msgid "Requested offset is beyond real size of device %s.\n" -msgstr "" -"Le décalage demandé est au delà de la taille réelle du périphérique %s.\n" +msgstr "Le décalage demandé est au delà de la taille réelle du périphérique %s.\n" -#: lib/utils_device.c:502 +#: lib/utils_device.c:414 #, c-format msgid "Device %s has zero size.\n" msgstr "Le périphérique %s a une taille nulle.\n" -#: lib/utils_device.c:513 +#: lib/utils_device.c:425 lib/luks1/keymanage.c:89 #, c-format msgid "Device %s is too small.\n" msgstr "Le périphérique %s est trop petit.\n" -#: lib/luks1/keyencryption.c:37 +#: lib/luks1/keyencryption.c:31 #, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n" msgstr "" -"Impossible de configurer la correspondance des clés dm-crypt du périphérique " -"%s.\n" -"Vérifiez que le noyau supporte le chiffrement %s (pour plus d'informations, " -"voir les journaux syslog).\n" +"Impossible de configurer la correspondance des clés dm-crypt du périphérique %s.\n" +"Vérifiez que le noyau supporte le chiffrement %s (pour plus d'informations, voir les journaux syslog).\n" -#: lib/luks1/keyencryption.c:42 +#: lib/luks1/keyencryption.c:36 msgid "Key size in XTS mode must be 256 or 512 bits.\n" -msgstr "" -"La taille de la clé en mode XTS doit être un multiple de 256 ou 512 bits.\n" +msgstr "La taille de la clé en mode XTS doit être un multiple de 256 ou 512 bits.\n" -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 +#: lib/luks1/keyencryption.c:88 lib/luks1/keymanage.c:290 +#: lib/luks1/keymanage.c:559 lib/luks1/keymanage.c:978 #, c-format msgid "Cannot write to device %s, permission denied.\n" msgstr "Impossible d'écrire sur le périphérique %s. Permission refusée.\n" -#: lib/luks1/keyencryption.c:111 +#: lib/luks1/keyencryption.c:103 msgid "Failed to open temporary keystore device.\n" -msgstr "" -"Échec lors de l'ouverture du périphérique de stockage temporaire de clés.\n" +msgstr "Échec lors de l'ouverture du périphérique de stockage temporaire de clés.\n" -#: lib/luks1/keyencryption.c:118 +#: lib/luks1/keyencryption.c:110 msgid "Failed to access temporary keystore device.\n" msgstr "Impossible d'accéder au périphérique de stockage temporaire de clé.\n" -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "Erreur E/S pendant le chiffrement de l'emplacement de clé.\n" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "Erreur E/S pendant le déchiffrement de l'emplacement de clé.\n" - -#: lib/luks1/keymanage.c:90 -#, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "" -"Le périphérique %s est trop petit (LUKS a besoin d'au moins % " -"octets).\n" - -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 +#: lib/luks1/keymanage.c:175 lib/luks1/keymanage.c:412 +#: src/cryptsetup_reencrypt.c:978 #, c-format msgid "Device %s is not a valid LUKS device.\n" msgstr "%s n'est pas un périphérique LUKS valide.\n" -#: lib/luks1/keymanage.c:198 +#: lib/luks1/keymanage.c:193 #, c-format msgid "Requested header backup file %s already exists.\n" msgstr "Le fichier de sauvegarde d'en-tête demandé %s existe déjà.\n" -#: lib/luks1/keymanage.c:200 +#: lib/luks1/keymanage.c:195 #, c-format msgid "Cannot create header backup file %s.\n" msgstr "Impossible de créer le fichier de sauvegarde d'en-tête %s.\n" -#: lib/luks1/keymanage.c:205 +#: lib/luks1/keymanage.c:200 #, c-format msgid "Cannot write header backup file %s.\n" msgstr "Impossible d'écrire le fichier de sauvegarde d'en-tête %s.\n" -#: lib/luks1/keymanage.c:239 +#: lib/luks1/keymanage.c:233 msgid "Backup file doesn't contain valid LUKS header.\n" msgstr "Le fichier de sauvegarde ne contient pas d'en-tête LUKS valide.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: lib/luks1/keymanage.c:246 lib/luks1/keymanage.c:483 #, c-format msgid "Cannot open header backup file %s.\n" msgstr "Impossible d'ouvrir le fichier de sauvegarde d'en-tête %s.\n" -#: lib/luks1/keymanage.c:258 +#: lib/luks1/keymanage.c:252 #, c-format msgid "Cannot read header backup file %s.\n" msgstr "Impossible de lire le fichier de sauvegarde d'en-tête %s.\n" -#: lib/luks1/keymanage.c:269 +#: lib/luks1/keymanage.c:263 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"Le décalage des données (« offset ») ou la taille de la clé ne sont pas " -"identiques dans le périphérique et la sauvegarde. La restauration a " -"échouée.\n" +msgstr "Le décalage des données (« offset ») ou la taille de la clé ne sont pas identiques dans le périphérique et la sauvegarde. La restauration a échouée.\n" -#: lib/luks1/keymanage.c:277 +#: lib/luks1/keymanage.c:271 #, c-format msgid "Device %s %s%s" msgstr "Périphérique %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"ne contient pas d'en-tête LUKS. Remplacer l'en-tête peut détruire les " -"données de ce périphérique." +#: lib/luks1/keymanage.c:272 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "ne contient pas d'en-tête LUKS. Remplacer l'en-tête peut détruire les données de ce périphérique." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"contient déjà un en-tête LUKS. Remplacer l'en-tête détruira les emplacements " -"de clés actuels." +#: lib/luks1/keymanage.c:273 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "contient déjà un en-tête LUKS. Remplacer l'en-tête détruira les emplacements de clés actuels." -#: lib/luks1/keymanage.c:280 +#: lib/luks1/keymanage.c:274 msgid "" "\n" "WARNING: real device header has different UUID than backup!" msgstr "" "\n" -"ATTENTION : l'en-tête du périphérique a un UUID différent de celui de la " -"sauvegarde !" +"ATTENTION : l'en-tête du périphérique a un UUID différent de celui de la sauvegarde !" -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 +#: lib/luks1/keymanage.c:293 lib/luks1/keymanage.c:522 +#: lib/luks1/keymanage.c:562 lib/tcrypt/tcrypt.c:581 lib/verity/verity.c:82 #: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 #: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 #, c-format msgid "Cannot open device %s.\n" msgstr "Impossible d'ouvrir le périphérique %s.\n" -#: lib/luks1/keymanage.c:329 +#: lib/luks1/keymanage.c:323 msgid "Non standard key size, manual repair required.\n" msgstr "Taille de clé non standard. Réparation manuelle requise.\n" -#: lib/luks1/keymanage.c:334 +#: lib/luks1/keymanage.c:328 msgid "Non standard keyslots alignment, manual repair required.\n" -msgstr "" -"Alignement non standard des emplacements de clé. Réparation manuelle " -"requise.\n" +msgstr "Alignement non standard des emplacements de clé. Réparation manuelle requise.\n" -#: lib/luks1/keymanage.c:340 +#: lib/luks1/keymanage.c:334 msgid "Repairing keyslots.\n" msgstr "Réparation des emplacements de clé.\n" -#: lib/luks1/keymanage.c:351 +#: lib/luks1/keymanage.c:345 msgid "Repair failed." msgstr "Échec de la réparation." -#: lib/luks1/keymanage.c:363 +#: lib/luks1/keymanage.c:357 #, c-format msgid "Keyslot %i: offset repaired (%u -> %u).\n" msgstr "Emplacement de clé %i : décalage réparé (%u -> %u).\n" -#: lib/luks1/keymanage.c:371 +#: lib/luks1/keymanage.c:365 #, c-format msgid "Keyslot %i: stripes repaired (%u -> %u).\n" msgstr "Emplacement de clé %i : bandes réparées (%u -> %u).\n" -#: lib/luks1/keymanage.c:380 +#: lib/luks1/keymanage.c:374 #, c-format msgid "Keyslot %i: bogus partition signature.\n" msgstr "Emplacement de clé %i : signature de partition contrefaite.\n" -#: lib/luks1/keymanage.c:385 +#: lib/luks1/keymanage.c:379 #, c-format msgid "Keyslot %i: salt wiped.\n" msgstr "Emplacement de clé %i : aléa effacé.\n" -#: lib/luks1/keymanage.c:396 +#: lib/luks1/keymanage.c:390 msgid "Writing LUKS header to disk.\n" msgstr "Écriture de l'en-tête LUKS sur le disque.\n" -#: lib/luks1/keymanage.c:421 +#: lib/luks1/keymanage.c:415 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "La version %d de LUKS n'est pas supportée.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: lib/luks1/keymanage.c:421 lib/luks1/keymanage.c:626 #, c-format msgid "Requested LUKS hash %s is not supported.\n" msgstr "L'algorithme de hachage LUKS demandé (%s) n'est pas supporté.\n" -#: lib/luks1/keymanage.c:442 +#: lib/luks1/keymanage.c:436 #, c-format msgid "LUKS keyslot %u is invalid.\n" msgstr "L'emplacement de clé LUKS %u n'est pas valide.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 +#: lib/luks1/keymanage.c:450 src/cryptsetup.c:596 msgid "No known problems detected for LUKS header.\n" msgstr "Aucun problème connu détecté pour l'en-tête LUKS.\n" -#: lib/luks1/keymanage.c:596 +#: lib/luks1/keymanage.c:583 #, c-format msgid "Error during update of LUKS header on device %s.\n" -msgstr "" -"Erreur lors de la mise à jour de l'en-tête LUKS sur le périphérique %s.\n" +msgstr "Erreur lors de la mise à jour de l'en-tête LUKS sur le périphérique %s.\n" -#: lib/luks1/keymanage.c:603 +#: lib/luks1/keymanage.c:590 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" -"Erreur lors de la relecture de l'en-tête LUKS après la mise à jour sur le " -"périphérique %s.\n" +msgstr "Erreur lors de la relecture de l'en-tête LUKS après la mise à jour sur le périphérique %s.\n" -#: lib/luks1/keymanage.c:654 +#: lib/luks1/keymanage.c:619 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" -"L'offset des données d'un en-tête LUKS détachés doit être soit 0 ou soit " -"plus grand que la taille de l'en-tête (%d secteurs).\n" +msgid "Data offset for detached LUKS header must be either 0 or higher than header size (%d sectors).\n" +msgstr "L'offset des données d'un en-tête LUKS détachés doit être soit 0 ou soit plus grand que la taille de l'en-tête (%d secteurs).\n" -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 +#: lib/luks1/keymanage.c:631 lib/luks1/keymanage.c:718 msgid "Wrong LUKS UUID format provided.\n" msgstr "Mauvais format fourni pour le UUID LUKS.\n" -#: lib/luks1/keymanage.c:695 +#: lib/luks1/keymanage.c:656 msgid "Cannot create LUKS header: reading random salt failed.\n" -msgstr "" -"Impossible de créer un en-tête LUKS : échec lors de la lecture de l'aléa.\n" +msgstr "Impossible de créer un en-tête LUKS : échec lors de la lecture de l'aléa.\n" -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 +#: lib/luks1/keymanage.c:663 lib/luks1/keymanage.c:759 #, c-format msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" -msgstr "" -"Options PBKDF2 incompatibles (en utilisant l'algorithme de hachage %s).\n" +msgstr "Options PBKDF2 incompatibles (en utilisant l'algorithme de hachage %s).\n" -#: lib/luks1/keymanage.c:717 +#: lib/luks1/keymanage.c:678 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"Impossible de créer un en-tête LUKS : le résumé (« digest ») de l'en-tête a " -"échoué (en utilisant l'algorithme de hachage %s).\n" +msgstr "Impossible de créer un en-tête LUKS : le résumé (« digest ») de l'en-tête a échoué (en utilisant l'algorithme de hachage %s).\n" -#: lib/luks1/keymanage.c:782 +#: lib/luks1/keymanage.c:743 #, c-format msgid "Key slot %d active, purge first.\n" -msgstr "L'emplacement de clé %d est activé, effacez le d'abord.\n" +msgstr "L'emplacement de clé %d est activé, effacez-le d'abord.\n" -#: lib/luks1/keymanage.c:788 +#: lib/luks1/keymanage.c:749 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" -"Le matériel de l'emplacement de clé %d a trop peu de bandes. L'en-tête a-t-" -"il été modifié ?\n" +msgstr "Le matériel de l'emplacement de clé %d a trop peu de bandes. L'en-tête a-t-il été modifié ?\n" -#: lib/luks1/keymanage.c:950 +#: lib/luks1/keymanage.c:911 #, c-format msgid "Key slot %d unlocked.\n" msgstr "Emplacement de clé %d déverrouillé.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: lib/luks1/keymanage.c:946 src/cryptsetup.c:796 +#: src/cryptsetup_reencrypt.c:882 src/cryptsetup_reencrypt.c:916 msgid "No key available with this passphrase.\n" msgstr "Aucune clé disponible avec cette phrase secrète.\n" -#: lib/luks1/keymanage.c:1003 +#: lib/luks1/keymanage.c:964 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" -msgstr "" -"L'emplacement de clé %d n'est pas valide, merci de sélectionner un " -"emplacement entre 0 et %d.\n" +msgstr "L'emplacement de clé %d n'est pas valide, merci de sélectionner un emplacement entre 0 et %d.\n" -#: lib/luks1/keymanage.c:1021 +#: lib/luks1/keymanage.c:982 #, c-format msgid "Cannot wipe device %s.\n" msgstr "Impossible d'effacer de façon sécurisée le périphérique %s.\n" @@ -711,8 +638,7 @@ msgstr "Fichier de clé GPG chiffré détecté mais pas encore supporté.\n" #: lib/loopaes/loopaes.c:147 msgid "Please use gpg --decrypt | cryptsetup --keyfile=- ...\n" -msgstr "" -"SVP utilisez gpg --decrypt | cryptsetup --keyfile=-...\n" +msgstr "SVP utilisez gpg --decrypt | cryptsetup --keyfile=-...\n" #: lib/loopaes/loopaes.c:168 lib/loopaes/loopaes.c:188 msgid "Incompatible loop-AES keyfile detected.\n" @@ -720,61 +646,61 @@ msgstr "Fichier de clé incompatible pour boucle « loop-AES ».\n" #: lib/loopaes/loopaes.c:244 msgid "Kernel doesn't support loop-AES compatible mapping.\n" -msgstr "" -"Le noyau ne supporte pas les associations de type boucle « loop-AES ».\n" +msgstr "Le noyau ne supporte pas les associations de type boucle « loop-AES ».\n" -#: lib/tcrypt/tcrypt.c:475 +#: lib/tcrypt/tcrypt.c:451 #, c-format msgid "Error reading keyfile %s.\n" msgstr "Erreur lors de la lecture du fichier de clé %s.\n" -#: lib/tcrypt/tcrypt.c:513 +#: lib/tcrypt/tcrypt.c:489 #, c-format msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" msgstr "Longueur maximum de la phrase secrète TCRYPT (%d) dépassée.\n" -#: lib/tcrypt/tcrypt.c:543 +#: lib/tcrypt/tcrypt.c:518 #, c-format msgid "PBKDF2 hash algorithm %s not available, skipping.\n" msgstr "L'algorithme de hachage PBKDF2 %s n'est pas supporté, ignoré.\n" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 +#: lib/tcrypt/tcrypt.c:536 src/cryptsetup.c:549 msgid "Required kernel crypto interface not available.\n" -msgstr "" -"L'interface du noyau requise pour le chiffrement n'est pas disponible.\n" +msgstr "L'interface du noyau requise pour le chiffrement n'est pas disponible.\n" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 +#: lib/tcrypt/tcrypt.c:538 src/cryptsetup.c:551 msgid "Ensure you have algif_skcipher kernel module loaded.\n" msgstr "Vérifiez que le module du noyau algif_skcipher est chargé.\n" -#: lib/tcrypt/tcrypt.c:707 +#: lib/tcrypt/tcrypt.c:591 +#, c-format +msgid "WARNING: device %s is a partition, for TCRYPT system encryption you usually need to use whole block device path.\n" +msgstr "ATTENTION : le périphérique %s est une partition. Pour le chiffrement de système TCRYPT, vous avez généralement besoin du chemin d'un périphérique bloc entier.\n" + +#: lib/tcrypt/tcrypt.c:667 #, c-format msgid "Activation is not supported for %d sector size.\n" msgstr "L'activation n'est pas supportée pour des secteurs de taille %d.\n" -#: lib/tcrypt/tcrypt.c:713 +#: lib/tcrypt/tcrypt.c:673 msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" -msgstr "" -"Le noyau ne supporte pas l'activation pour ce mode TCRYPT historique.\n" +msgstr "Le noyau ne supporte pas l'activation pour ce mode TCRYPT historique.\n" -#: lib/tcrypt/tcrypt.c:744 +#: lib/tcrypt/tcrypt.c:701 #, c-format msgid "Activating TCRYPT system encryption for partition %s.\n" msgstr "Activation du chiffrement du système TCRYPT sur la partition %s.\n" -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "Le noyau ne supporte pas les associations de type TCRYPT.\n" +#: lib/tcrypt/tcrypt.c:756 +msgid "Kernel doesn't support plain64 IV.\n" +msgstr "Le noyau ne supporte pas plain64 IV.\n" -#: lib/tcrypt/tcrypt.c:1020 +#: lib/tcrypt/tcrypt.c:961 msgid "This function is not supported without TCRYPT header load." -msgstr "" -"Cette fonction n'est pas supportée sans le chargement de l'en-tête TCRYPT." +msgstr "Cette fonction n'est pas supportée sans le chargement de l'en-tête TCRYPT." #: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "Le périphérique verity %s n'utilise pas l'en-tête sur le disque.\n" +msgid "Verity device doesn't use on-disk header.\n" +msgstr "Le périphérique verity n'utilise pas l'en-tête sur le disque.\n" #: lib/verity/verity.c:94 #, c-format @@ -791,15 +717,13 @@ msgid "VERITY header corrupted.\n" msgstr "En-tête VERITY corrompu.\n" #: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "Mauvais format d'UUID VERITY fourni sur le périphérique %s.\n" +msgid "Wrong VERITY UUID format provided.\n" +msgstr "Mauvais format d'UUID VERITY fourni.\n" #: lib/verity/verity.c:196 #, c-format msgid "Error during update of verity header on device %s.\n" -msgstr "" -"Erreur lors de la mise à jour de l'en-tête verity sur le périphérique %s.\n" +msgstr "Erreur lors de la mise à jour de l'en-tête verity sur le périphérique %s.\n" #: lib/verity/verity.c:276 msgid "Kernel doesn't support dm-verity mapping.\n" @@ -850,48 +774,31 @@ msgstr "La création de la zone de hachage a échoué.\n" #: lib/verity/verity_hash.c:414 #, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" -"ATTENTION : Le kernel ne peut pas activer le périphérique si la taille des " -"blocs de données dépasse la taille d'une page (%u).\n" +msgid "WARNING: Kernel cannot activate device if data block size exceeds page size (%u).\n" +msgstr "ATTENTION : Le kernel ne peut pas activer le périphérique si la taille des blocs de données dépasse la taille d'une page (%u).\n" -#: src/cryptsetup.c:91 +#: src/cryptsetup.c:79 msgid "Can't do passphrase verification on non-tty inputs.\n" -msgstr "" -"Impossible de vérifier une phrase secrète non saisie sur une console.\n" +msgstr "Impossible de vérifier une phrase secrète non saisie sur une console.\n" -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 +#: src/cryptsetup.c:110 +msgid "Ignoring keyfile offset and size options, keyfile read size is always the same as encryption key size.\n" +msgstr "Le décalage dans le fichier de clé et les options de taille sont ignorés. La taille de lecture du fichier de clé est toujours la même que la taille de la clé de chiffrement.\n" + +#: src/cryptsetup.c:116 src/cryptsetup.c:495 src/cryptsetup.c:639 +#: src/cryptsetup_reencrypt.c:485 src/cryptsetup_reencrypt.c:520 msgid "No known cipher specification pattern detected.\n" msgstr "Aucun motif connu d'algorithme de chiffrement n'a été détecté.\n" -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" -"ATTENTION: Le paramètre --hash est ignoré en mode non chiffré quand le " -"fichier de clé est spécifié.\n" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" -"ATTENTION: L'option --keyfile-size est ignorée. La taille de lecture est la " -"même que la taille de la clé de chiffrement.\n" - -#: src/cryptsetup.c:218 +#: src/cryptsetup.c:183 msgid "Option --key-file is required.\n" msgstr "L'option --key-file est requise.\n" -#: src/cryptsetup.c:267 +#: src/cryptsetup.c:254 src/cryptsetup.c:340 msgid "No device header detected with this passphrase.\n" msgstr "Aucun en-tête détecté avec cette phrase secrète sur le périphérique.\n" -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 +#: src/cryptsetup.c:269 src/cryptsetup.c:1065 msgid "" "Header dump with volume key is sensitive information\n" "which allows access to encrypted partition without passphrase.\n" @@ -901,244 +808,210 @@ msgstr "" "sensible qui permet d'accéder à la partition chiffrée sans mot de passe.\n" "Ce contenu devrait toujours être stocké, chiffré, en lieu sûr." -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "Le résultat de l'évaluation de performance n'est pas fiable.\n" - -#: src/cryptsetup.c:558 +#: src/cryptsetup.c:489 msgid "# Tests are approximate using memory only (no storage IO).\n" -msgstr "" -"# Tests approximatifs en utilisant uniquement la mémoire (pas de stockage E/" -"S).\n" +msgstr "# Tests approximatifs en utilisant uniquement la mémoire (pas de stockage E/S).\n" -#: src/cryptsetup.c:583 src/cryptsetup.c:605 +#: src/cryptsetup.c:511 src/cryptsetup.c:533 msgid "# Algorithm | Key | Encryption | Decryption\n" msgstr "# Algorithme | Clé | Chiffrement | Déchiffrement\n" -#: src/cryptsetup.c:587 +#: src/cryptsetup.c:515 #, c-format msgid "Cipher %s is not available.\n" msgstr "Le chiffrement %s n'est pas disponible.\n" -#: src/cryptsetup.c:614 +#: src/cryptsetup.c:542 msgid "N/A" msgstr "N/D" -#: src/cryptsetup.c:639 +#: src/cryptsetup.c:567 #, c-format msgid "Cannot read keyfile %s.\n" msgstr "Impossible de lire le fichier de clé %s.\n" -#: src/cryptsetup.c:643 +#: src/cryptsetup.c:571 #, c-format msgid "Cannot read %d bytes from keyfile %s.\n" msgstr "Échec à la lecture de %d octets du fichier de clé %s.\n" -#: src/cryptsetup.c:672 +#: src/cryptsetup.c:600 msgid "Really try to repair LUKS device header?" msgstr "Réellement essayer de réparer l'en-tête du périphérique LUKS ?" -#: src/cryptsetup.c:697 +#: src/cryptsetup.c:625 #, c-format msgid "This will overwrite data on %s irrevocably." msgstr "Cette action écrasera définitivement les données sur %s." -#: src/cryptsetup.c:699 +#: src/cryptsetup.c:627 msgid "memory allocation error in action_luksFormat" msgstr "erreur d'allocation de mémoire dans action_luksFormat" -#: src/cryptsetup.c:717 +#: src/cryptsetup.c:645 #, c-format msgid "Cannot use %s as on-disk header.\n" msgstr "Ne peut utiliser %s comme en-tête sur disque.\n" -#: src/cryptsetup.c:784 +#: src/cryptsetup.c:718 msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" -"Décalage réduit de données est uniquement permis dans un en-tête LUKS " -"détaché.\n" +msgstr "Décalage réduit de données est uniquement permis dans un en-tête LUKS détaché.\n" -#: src/cryptsetup.c:881 src/cryptsetup.c:937 +#: src/cryptsetup.c:819 src/cryptsetup.c:875 #, c-format msgid "Key slot %d selected for deletion.\n" msgstr "Emplacement de clé %d sélectionné pour suppression.\n" -#: src/cryptsetup.c:884 +#: src/cryptsetup.c:822 #, c-format msgid "Key %d not active. Can't wipe.\n" msgstr "La clé %d n'est pas active. Impossible de l'effacer.\n" -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"Ceci est le dernier emplacement de clé. Le périphérique sera inutilisable " -"après la suppression de cette clé." +#: src/cryptsetup.c:830 src/cryptsetup.c:878 +msgid "This is the last keyslot. Device will become unusable after purging this key." +msgstr "Ceci est le dernier emplacement de clé. Le périphérique sera inutilisable après la suppression de cette clé." -#: src/cryptsetup.c:893 +#: src/cryptsetup.c:831 msgid "Enter any remaining passphrase: " msgstr "Entrez toute phrase secrète restante : " -#: src/cryptsetup.c:921 +#: src/cryptsetup.c:859 msgid "Enter passphrase to be deleted: " msgstr "Entrez la phrase secrète à effacer : " -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format +#: src/cryptsetup.c:928 src/cryptsetup_reencrypt.c:948 msgid "Enter any existing passphrase: " msgstr "Entrez une phrase de passe existante : " -#: src/cryptsetup.c:1052 +#: src/cryptsetup.c:977 msgid "Enter passphrase to be changed: " msgstr "Entrez la phrase secrète à changer : " -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 +#: src/cryptsetup.c:991 src/cryptsetup_reencrypt.c:934 msgid "Enter new passphrase: " msgstr "Entrez la nouvelle phrase secrète : " -#: src/cryptsetup.c:1090 +#: src/cryptsetup.c:1015 msgid "Only one device argument for isLuks operation is supported.\n" msgstr "L'opération isLuks supporte seulement un périphérique en argument.\n" -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 +#: src/cryptsetup.c:1171 src/cryptsetup.c:1192 msgid "Option --header-backup-file is required.\n" msgstr "L'option --header-backup-file est requise.\n" -#: src/cryptsetup.c:1304 +#: src/cryptsetup.c:1229 #, c-format msgid "Unrecognized metadata device type %s.\n" msgstr "Type de métadonnée du périphérique %s non reconnu.\n" -#: src/cryptsetup.c:1307 +#: src/cryptsetup.c:1232 msgid "Command requires device and mapped name as arguments.\n" -msgstr "" -"La commande exige un périphérique et un nom de correspondance comme " -"arguments.\n" +msgstr "La commande exige un périphérique et un nom de correspondance comme arguments.\n" -#: src/cryptsetup.c:1326 -#, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Cette opération va supprimer tous les emplacements de clés du périphérique " -"%s.\n" -"Le périphérique sera inutilisable après cette opération." - -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid " [--type ] []" msgstr " [--type ] []" -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid "open device as mapping " msgstr "ouvrir un périphérique avec comme « mapping »" -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 +#: src/cryptsetup.c:1245 src/cryptsetup.c:1246 src/cryptsetup.c:1247 +#: src/cryptsetup.c:1248 src/veritysetup.c:310 src/veritysetup.c:311 msgid "" msgstr "" -#: src/cryptsetup.c:1361 +#: src/cryptsetup.c:1245 msgid "close device (remove mapping)" msgstr "fermeture du périphérique (supprime le « mapping »)" -#: src/cryptsetup.c:1362 +#: src/cryptsetup.c:1246 msgid "resize active device" msgstr "redimensionner le périphérique actif" -#: src/cryptsetup.c:1363 +#: src/cryptsetup.c:1247 msgid "show device status" msgstr "afficher le statut du périphérique" -#: src/cryptsetup.c:1364 +#: src/cryptsetup.c:1248 msgid "benchmark cipher" msgstr "chiffrement pour test de performance" -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1249 src/cryptsetup.c:1255 src/cryptsetup.c:1256 +#: src/cryptsetup.c:1257 src/cryptsetup.c:1258 src/cryptsetup.c:1259 +#: src/cryptsetup.c:1260 src/cryptsetup.c:1261 src/cryptsetup.c:1262 msgid "" msgstr "" -#: src/cryptsetup.c:1365 +#: src/cryptsetup.c:1249 msgid "try to repair on-disk metadata" msgstr "essayer de réparer les métadonnées sur le disque" -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "" -"supprime tous les emplacements de clés (supprime la clé de chiffrement)" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 +#: src/cryptsetup.c:1250 src/cryptsetup.c:1251 msgid " []" msgstr " []" -#: src/cryptsetup.c:1367 +#: src/cryptsetup.c:1250 msgid "formats a LUKS device" msgstr "formate un périphérique LUKS" -#: src/cryptsetup.c:1368 +#: src/cryptsetup.c:1251 msgid "add key to LUKS device" msgstr "ajouter une clé au périphérique LUKS" -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 +#: src/cryptsetup.c:1252 src/cryptsetup.c:1253 msgid " []" msgstr " []" -#: src/cryptsetup.c:1369 +#: src/cryptsetup.c:1252 msgid "removes supplied key or key file from LUKS device" msgstr "retire du périphérique LUKS la clé ou le fichier de clé fourni" -#: src/cryptsetup.c:1370 +#: src/cryptsetup.c:1253 msgid "changes supplied key or key file of LUKS device" msgstr "modifie la clé ou le fichier de clé fourni pour le périphérique LUKS" -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid " " msgstr " " -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid "wipes key with number from LUKS device" -msgstr "" -"efface de façon sécurisée la clé avec le numéro du " -"périphérique LUKS" +msgstr "efface de façon sécurisée la clé avec le numéro du périphérique LUKS" -#: src/cryptsetup.c:1372 +#: src/cryptsetup.c:1255 msgid "print UUID of LUKS device" msgstr "afficher l'UUID du périphérique LUKS" -#: src/cryptsetup.c:1373 +#: src/cryptsetup.c:1256 msgid "tests for LUKS partition header" msgstr "teste si a un en-tête de partition LUKS" -#: src/cryptsetup.c:1374 +#: src/cryptsetup.c:1257 msgid "dump LUKS partition information" msgstr "affiche les informations LUKS de la partition" -#: src/cryptsetup.c:1375 +#: src/cryptsetup.c:1258 msgid "dump TCRYPT device information" msgstr "affiche les informations du périphérique TCRYPT" -#: src/cryptsetup.c:1376 +#: src/cryptsetup.c:1259 msgid "Suspend LUKS device and wipe key (all IOs are frozen)." -msgstr "" -"Suspend le périphérique LUKS et effacer de façon sécurisée la clé (toutes " -"les entrées/sorties sont suspendues)." +msgstr "Suspend le périphérique LUKS et effacer de façon sécurisée la clé (toutes les entrées/sorties sont suspendues)." -#: src/cryptsetup.c:1377 +#: src/cryptsetup.c:1260 msgid "Resume suspended LUKS device." msgstr "Remettre en service le périphérique LUKS suspendu." -#: src/cryptsetup.c:1378 +#: src/cryptsetup.c:1261 msgid "Backup LUKS device header and keyslots" msgstr "Sauvegarder l'en-tête et les emplacements de clés du périphérique LUKS" -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1262 msgid "Restore LUKS device header and keyslots" msgstr "Restaurer l'en-tête et les emplacements de clés du périphérique LUKS" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:1279 src/veritysetup.c:327 msgid "" "\n" " is one of:\n" @@ -1146,7 +1019,7 @@ msgstr "" "\n" " est l'une de :\n" -#: src/cryptsetup.c:1402 +#: src/cryptsetup.c:1285 msgid "" "\n" "You can also use old syntax aliases:\n" @@ -1158,7 +1031,7 @@ msgstr "" "\touvrir : create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" "\tfermer : remove (plainClose), luksClose, loopaesClose, tcryptClose\n" -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:1289 #, c-format msgid "" "\n" @@ -1171,25 +1044,22 @@ msgstr "" " est le périphérique à créer dans %s\n" " est le périphérique chiffré\n" " est le numéro de l'emplacement de clé LUKS à modifier\n" -" est un fichier optionnel contenant la nouvelle clé pour " -"l'action luksAddKey\n" +" est un fichier optionnel contenant la nouvelle clé pour l'action luksAddKey\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:1296 #, c-format msgid "" "\n" "Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" +"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d (characters)\n" "Default PBKDF2 iteration time for LUKS: %d (ms)\n" msgstr "" "\n" "Clé compilée par défaut et paramètres de phrase secrète :\n" -"\tTaille max. fichier de clé : %d ko, longueur max. interactive de phrase " -"secrète %d (caractères)\n" +"\tTaille max. fichier de clé : %d ko, longueur max. interactive de phrase secrète %d (caractères)\n" "Temps d'itération PBKDF2 par défaut pour LUKS : %d (ms)\n" -#: src/cryptsetup.c:1420 +#: src/cryptsetup.c:1303 #, c-format msgid "" "\n" @@ -1204,394 +1074,323 @@ msgstr "" "\tplain: %s, Clé: %d bits, Hachage mot de passe: %s\n" "\tLUKS1: %s, Clé: %d bits, Hachage en-tête LUKS: %s, RNG: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 +#: src/cryptsetup.c:1320 src/veritysetup.c:459 #, c-format msgid "%s: requires %s as arguments" msgstr "%s : exige %s comme arguments." -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:1353 src/veritysetup.c:367 src/cryptsetup_reencrypt.c:1099 msgid "Show this help message" msgstr "Afficher ce message d'aide" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:1354 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1100 msgid "Display brief usage" msgstr "Afficher, en résumé, la syntaxe d'invocation" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:1358 src/veritysetup.c:372 src/cryptsetup_reencrypt.c:1104 msgid "Help options:" msgstr "Options d'aide :" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 +#: src/cryptsetup.c:1359 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1105 msgid "Print package version" msgstr "Afficher la version du paquet" -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:1360 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1106 msgid "Shows more detailed error messages" msgstr "Affiche des messages d'erreur plus détaillés" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:1361 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1107 msgid "Show debug messages" msgstr "Afficher les messages de débogage" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:1362 src/cryptsetup_reencrypt.c:1109 msgid "The cipher used to encrypt the disk (see /proc/crypto)" -msgstr "" -"L'algorithme de chiffrement utilisé pour chiffrer le disque (voir /proc/" -"crypto)" +msgstr "L'algorithme de chiffrement utilisé pour chiffrer le disque (voir /proc/crypto)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:1363 src/cryptsetup_reencrypt.c:1111 msgid "The hash used to create the encryption key from the passphrase" -msgstr "" -"L'algorithme de hachage utilisé pour créer la clé de chiffrement à partir de " -"la phrase secrète" +msgstr "L'algorithme de hachage utilisé pour créer la clé de chiffrement à partir de la phrase secrète" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:1364 msgid "Verifies the passphrase by asking for it twice" msgstr "Vérifie la phrase secrète en la demandant deux fois" -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 +#: src/cryptsetup.c:1365 src/cryptsetup_reencrypt.c:1112 msgid "Read the key from a file." msgstr "Lit la clef depuis un fichier." -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:1366 msgid "Read the volume (master) key from file." msgstr "Lit la clé (maîtresse) du volume depuis un fichier." -#: src/cryptsetup.c:1484 +#: src/cryptsetup.c:1367 msgid "Dump volume (master) key instead of keyslots info." -msgstr "" -"Liste les informations de la clé (maîtresse) de volume au lieu des autres " -"emplacements de clefs." +msgstr "Liste les informations de la clé (maîtresse) de volume au lieu des autres emplacements de clefs." -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "The size of the encryption key" msgstr "La taille de la clé de chiffrement" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "BITS" msgstr "BITS" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 +#: src/cryptsetup.c:1369 src/cryptsetup_reencrypt.c:1123 msgid "Limits the read from keyfile" msgstr "Limite la lecture d'un fichier de clé" -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 src/cryptsetup.c:1371 +#: src/cryptsetup.c:1372 src/veritysetup.c:378 src/veritysetup.c:379 +#: src/veritysetup.c:381 src/cryptsetup_reencrypt.c:1122 +#: src/cryptsetup_reencrypt.c:1123 src/cryptsetup_reencrypt.c:1124 +#: src/cryptsetup_reencrypt.c:1125 msgid "bytes" msgstr "octets" -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 +#: src/cryptsetup.c:1370 src/cryptsetup_reencrypt.c:1122 msgid "Number of bytes to skip in keyfile" msgstr "Nombre d'octets à ignorer dans le fichier de clé" -#: src/cryptsetup.c:1488 +#: src/cryptsetup.c:1371 msgid "Limits the read from newly added keyfile" msgstr "Limite la lecture d'un nouveau fichier de clé ajouté" -#: src/cryptsetup.c:1489 +#: src/cryptsetup.c:1372 msgid "Number of bytes to skip in newly added keyfile" msgstr "Nombre d'octets à ignorer dans le fichier de clé nouvellement ajouté" -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:1373 msgid "Slot number for new key (default is first free)" -msgstr "" -"Numéro de l'emplacement pour la nouvelle clé (par défaut, le premier " -"disponible)" +msgstr "Numéro de l'emplacement pour la nouvelle clé (par défaut, le premier disponible)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:1374 msgid "The size of the device" msgstr "La taille du périphérique" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1374 src/cryptsetup.c:1375 src/cryptsetup.c:1376 +#: src/cryptsetup.c:1382 msgid "SECTORS" msgstr "SECTEURS" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:1375 msgid "The start offset in the backend device" msgstr "Le décalage de départ dans le périphérique sous-jacent" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:1376 msgid "How many sectors of the encrypted data to skip at the beginning" msgstr "Combien de secteurs de données chiffrées à ignorer au début" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:1377 msgid "Create a readonly mapping" msgstr "Crée une association en lecture seule" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "Temps d'itération de PBKDF2 pour LUKS (en ms)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "msecs" msgstr "ms" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:1379 src/cryptsetup_reencrypt.c:1114 msgid "Do not ask for confirmation" msgstr "Ne pas demander confirmation" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "Timeout for interactive passphrase prompt (in seconds)" -msgstr "" -"Délai d'expiration de la demande interactive de phrase secrète (en secondes)" +msgstr "Délai d'expiration de la demande interactive de phrase secrète (en secondes)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "secs" msgstr "s" -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:1381 src/cryptsetup_reencrypt.c:1115 msgid "How often the input of the passphrase can be retried" msgstr "Nombre de tentatives possibles pour entrer la phrase secrète" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1382 msgid "Align payload at sector boundaries - for luksFormat" -msgstr "" -"Utiliser une limite de secteurs pour aligner les données – pour " -"luksFormat" +msgstr "Utiliser une limite de secteurs pour aligner les données – pour luksFormat" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:1383 msgid "File with LUKS header and keyslots backup." -msgstr "" -"Fichier contenant une sauvegarde de l'en-tête LUKS et des emplacements de " -"clés." +msgstr "Fichier contenant une sauvegarde de l'en-tête LUKS et des emplacements de clés." -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 +#: src/cryptsetup.c:1384 src/cryptsetup_reencrypt.c:1116 msgid "Use /dev/random for generating volume key." msgstr "Utiliser /dev/random pour générer la clé de volume." -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 +#: src/cryptsetup.c:1385 src/cryptsetup_reencrypt.c:1117 msgid "Use /dev/urandom for generating volume key." msgstr "Utiliser /dev/urandom pour générer la clé de volume." -#: src/cryptsetup.c:1503 +#: src/cryptsetup.c:1386 msgid "Share device with another non-overlapping crypt segment." -msgstr "" -"Partager le périphérique avec un autre segment chiffré sans recouvrement." +msgstr "Partager le périphérique avec un autre segment chiffré sans recouvrement." -#: src/cryptsetup.c:1504 src/veritysetup.c:385 +#: src/cryptsetup.c:1387 src/veritysetup.c:384 msgid "UUID for device to use." msgstr "UUID du périphérique à utiliser." -#: src/cryptsetup.c:1505 +#: src/cryptsetup.c:1388 msgid "Allow discards (aka TRIM) requests for device." msgstr "Autoriser les demandes d'abandon (TRIM) pour le périphérique." -#: src/cryptsetup.c:1506 +#: src/cryptsetup.c:1389 msgid "Device or file with separated LUKS header." msgstr "Périphérique ou fichier avec un en-tête LUKS séparé." -#: src/cryptsetup.c:1507 +#: src/cryptsetup.c:1390 msgid "Do not activate device, just check passphrase." msgstr "Ne pas activer le périphérique. Vérifie simplement le phrase secrète." -#: src/cryptsetup.c:1508 +#: src/cryptsetup.c:1391 msgid "Use hidden header (hidden TCRYPT device)." msgstr "Utilise l'en-tête caché (périphérique TCRYPT caché)." -#: src/cryptsetup.c:1509 +#: src/cryptsetup.c:1392 msgid "Device is system TCRYPT drive (with bootloader)." -msgstr "" -"Le périphérique est un lecteur TCRYPT système (avec secteur d'amorçage)." +msgstr "Le périphérique est un lecteur TCRYPT système (avec secteur d'amorçage)." -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "Utiliser l'en-tête TCRYPT de secours (secondaire)." - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "Recherche aussi des périphériques compatibles avec VeraCrypt." - -#: src/cryptsetup.c:1512 +#: src/cryptsetup.c:1393 msgid "Type of device metadata: luks, plain, loopaes, tcrypt." msgstr "Type de métadonnées du périphérique : luks, plain, loopaes, tcrypt." -#: src/cryptsetup.c:1513 +#: src/cryptsetup.c:1394 msgid "Disable password quality check (if enabled)." msgstr "Désactive la vérification de la qualité du mot de passe (si activé)." -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "" -"Utilise l'option de compatibilité de performance dm-crypt same_cpu_crypt." - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" -"Utilise l'option de compatibilité de performance dm-crypt " -"submit_from_crypt_cpus." - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 +#: src/cryptsetup.c:1412 src/veritysetup.c:401 msgid "[OPTION...] " msgstr "[OPTION...] " -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "Fonctionne en mode FIPS.\n" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 +#: src/cryptsetup.c:1458 src/veritysetup.c:438 msgid "Argument missing." msgstr "Il manque l'argument ." -#: src/cryptsetup.c:1634 src/veritysetup.c:445 +#: src/cryptsetup.c:1506 src/veritysetup.c:444 msgid "Unknown action." msgstr "Action inconnue." -#: src/cryptsetup.c:1644 +#: src/cryptsetup.c:1516 msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "" -"L'option --shared est permise uniquement pour ouvrir un périphérique " -"ordinaire.\n" +msgstr "L'option --shared est permise uniquement pour ouvrir un périphérique ordinaire.\n" -#: src/cryptsetup.c:1649 +#: src/cryptsetup.c:1521 msgid "Option --allow-discards is allowed only for open operation.\n" -msgstr "" -"L'option --allow-discards est permise uniquement pour une opération " -"d'ouverture.\n" +msgstr "L'option --allow-discards est permise uniquement pour une opération d'ouverture.\n" -#: src/cryptsetup.c:1657 +#: src/cryptsetup.c:1529 msgid "" "Option --key-size is allowed only for luksFormat, open and benchmark.\n" "To limit read from keyfile use --keyfile-size=(bytes)." msgstr "" -"L'option --key-size est permise seulement avec luksFormat, open et " -"benchmark.\n" -"Pour limiter la lecture depuis un fichier de clé, utilisez --keyfile-" -"size=(octets)." +"L'option --key-size est permise seulement avec luksFormat, open et benchmark.\n" +"Pour limiter la lecture depuis un fichier de clé, utilisez --keyfile-size=(octets)." -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" -"L'option --test-passphrase est autorisée uniquement pour ouvrir des " -"périphériques LUKS et TCRYPT.\n" +#: src/cryptsetup.c:1536 +msgid "Option --test-passphrase is allowed only for open of LUKS and TCRYPT devices.\n" +msgstr "L'option --test-passphrase est autorisée uniquement pour ouvrir des périphériques LUKS et TCRYPT.\n" -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 +#: src/cryptsetup.c:1541 src/cryptsetup_reencrypt.c:1185 msgid "Key size must be a multiple of 8 bits" msgstr "La taille de la clé doit être un multiple de 8 bits" -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 +#: src/cryptsetup.c:1548 src/cryptsetup_reencrypt.c:1190 msgid "Key slot is invalid." msgstr "Emplacement de clé non valide." -#: src/cryptsetup.c:1683 +#: src/cryptsetup.c:1555 msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" -"L'option --key-file est prioritaire par rapport à un fichier de clé spécifié " -"en argument.\n" +msgstr "L'option --key-file est prioritaire par rapport à un fichier de clé spécifié en argument.\n" -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 +#: src/cryptsetup.c:1563 src/veritysetup.c:466 src/cryptsetup_reencrypt.c:1174 msgid "Negative number for option not permitted." msgstr "Nombre négatif non autorisé pour l'option." -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 +#: src/cryptsetup.c:1567 src/cryptsetup_reencrypt.c:1168 +#: src/cryptsetup_reencrypt.c:1194 msgid "Only one of --use-[u]random options is allowed." msgstr "Seule une des deux possibilités --use-[u]random est autorisée." -#: src/cryptsetup.c:1699 +#: src/cryptsetup.c:1571 msgid "Option --use-[u]random is allowed only for luksFormat." msgstr "L'option --use-[u]random est autorisée seulement avec luksFormat." -#: src/cryptsetup.c:1703 +#: src/cryptsetup.c:1575 msgid "Option --uuid is allowed only for luksFormat and luksUUID." msgstr "L'option --uuid est autorisée seulement avec luksFormat et luksUUID." -#: src/cryptsetup.c:1707 +#: src/cryptsetup.c:1579 msgid "Option --align-payload is allowed only for luksFormat." msgstr "L'option --align-payload est autorisée uniquement avec luksFormat." -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" -"L'option --skip est supportée uniquement pour ouvrir des périphériques " -"ordinaires et loopaes.\n" +#: src/cryptsetup.c:1585 +msgid "Option --skip is supported only for open of plain and loopaes devices.\n" +msgstr "L'option --skip est supportée uniquement pour ouvrir des périphériques ordinaires et loopaes.\n" -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" -"L'option --offset est supportée uniquement pour ouvrir des périphériques " -"ordinaires et loopaes.\n" - -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" -"Les options --tcrypt-hidden, --tcrypt-system ou --tcrypt-backup sont " -"supportées seulement pour un périphérique TCRYPT.\n" +#: src/cryptsetup.c:1591 +msgid "Option --offset is supported only for open of plain and loopaes devices.\n" +msgstr "L'option --offset est supportée uniquement pour ouvrir des périphériques ordinaires et loopaes.\n" -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "" -"L'option --tcrypt-hidden ne peut pas être combinée avec --allow-discards.\n" - -#: src/cryptsetup.c:1735 -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "" -"L'option --veracrypt est uniquement supportée pour un périphérique de type " -"TCRYPT.\n" +#: src/cryptsetup.c:1597 +msgid "Option --tcrypt-hidden or --tcrypt-system is supported only for TCRYPT device.\n" +msgstr "Les options --tcrypt-hidden ou --tcrypt-system sont supportées seulement pour un périphérique TCRYPT.\n" -#: src/veritysetup.c:58 +#: src/veritysetup.c:57 msgid "Invalid salt string specified.\n" msgstr "Chaîne d'aléa spécifiée invalide.\n" -#: src/veritysetup.c:88 +#: src/veritysetup.c:87 #, c-format msgid "Cannot create hash image %s for writing.\n" msgstr "Impossible de créer l'image de hachage %s en écriture.\n" -#: src/veritysetup.c:148 +#: src/veritysetup.c:147 msgid "Invalid root hash string specified.\n" msgstr "Chaîne de hachage racine invalide.\n" -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid " " msgstr " " -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid "format device" msgstr "formater le périphérique" -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid " " msgstr " " -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid "verify device" msgstr "vérifier le périphérique" -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid " " msgstr " " -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid "create active device" msgstr "créer le périphérique actif" -#: src/veritysetup.c:311 +#: src/veritysetup.c:310 msgid "remove (deactivate) device" msgstr "supprime (désactive) le périphérique" -#: src/veritysetup.c:312 +#: src/veritysetup.c:311 msgid "show active device status" msgstr "afficher le statut du périphérique actif" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "" msgstr "" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "show on-disk information" msgstr "afficher les informations sur le disque" -#: src/veritysetup.c:332 +#: src/veritysetup.c:331 #, c-format msgid "" "\n" @@ -1606,325 +1405,282 @@ msgstr "" " est le périphérique contenant les données de vérification\n" " hachage du nœud racine sur \n" -#: src/veritysetup.c:339 +#: src/veritysetup.c:338 #, c-format msgid "" "\n" "Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" +"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, Hash format: %u\n" msgstr "" "\n" "Paramètres compilés par défaut dans dm-verity :\n" -"\tHachage: %s, Bloc données (octets): %u, Bloc hachage (octets): %u, Taille " -"aléa: %u, Format hachage: %u\n" +"\tHachage: %s, Bloc données (octets): %u, Bloc hachage (octets): %u, Taille aléa: %u, Format hachage: %u\n" -#: src/veritysetup.c:377 +#: src/veritysetup.c:376 msgid "Do not use verity superblock" msgstr "Ne pas utiliser le superbloc de verity" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "Format type (1 - normal, 0 - original Chrome OS)" msgstr "Type de format (1: normal ; 0: Chrome OS)" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "number" msgstr "nombre" -#: src/veritysetup.c:379 +#: src/veritysetup.c:378 msgid "Block size on the data device" msgstr "Taille de bloc sur le périphérique de données" -#: src/veritysetup.c:380 +#: src/veritysetup.c:379 msgid "Block size on the hash device" msgstr "Taille de bloc sur le périphérique de hachage" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "The number of blocks in the data file" msgstr "Le nombre de blocs dans le fichier de données" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "blocks" msgstr "blocs" -#: src/veritysetup.c:382 +#: src/veritysetup.c:381 msgid "Starting offset on the hash device" msgstr "Décalage de départ dans le périphérique de hachage" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "Hash algorithm" msgstr "Algorithme de hachage" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "string" msgstr "chaîne" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "Salt" msgstr "Aléa" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "hex string" msgstr "chaîne hexa" -#: src/cryptsetup_reencrypt.c:147 +#: src/cryptsetup_reencrypt.c:136 #, c-format msgid "Cannot exclusively open %s, device in use.\n" msgstr "Impossible d'ouvrir exclusivement %s : périphérique utilisé.\n" -#: src/cryptsetup_reencrypt.c:151 +#: src/cryptsetup_reencrypt.c:140 #, c-format msgid "Cannot open device %s\n" msgstr "Impossible d'ouvrir le périphérique %s\n" -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 +#: src/cryptsetup_reencrypt.c:150 src/cryptsetup_reencrypt.c:367 +#: src/cryptsetup_reencrypt.c:786 msgid "Allocation of aligned memory failed.\n" msgstr "La réservation de la mémoire alignée a échoué.\n" -#: src/cryptsetup_reencrypt.c:168 +#: src/cryptsetup_reencrypt.c:157 #, c-format msgid "Cannot read device %s.\n" msgstr "Impossible de lire le périphérique %s.\n" -#: src/cryptsetup_reencrypt.c:179 +#: src/cryptsetup_reencrypt.c:168 #, c-format msgid "Marking LUKS device %s unusable.\n" msgstr "Marque le périphérique LUKS %s comme inutilisable.\n" -#: src/cryptsetup_reencrypt.c:184 +#: src/cryptsetup_reencrypt.c:173 #, c-format msgid "Marking LUKS device %s usable.\n" msgstr "Marque le périphérique LUKS %s comme utilisable.\n" -#: src/cryptsetup_reencrypt.c:200 +#: src/cryptsetup_reencrypt.c:189 #, c-format msgid "Cannot write device %s.\n" msgstr "Impossible d'écrire le périphérique %s.\n" -#: src/cryptsetup_reencrypt.c:281 +#: src/cryptsetup_reencrypt.c:270 msgid "Cannot write reencryption log file.\n" msgstr "Impossible d'écrire le journal de re-chiffrement.\n" -#: src/cryptsetup_reencrypt.c:337 +#: src/cryptsetup_reencrypt.c:319 msgid "Cannot read reencryption log file.\n" msgstr "Impossible de lire le journal de re-chiffrement.\n" -#: src/cryptsetup_reencrypt.c:374 +#: src/cryptsetup_reencrypt.c:358 #, c-format msgid "Log file %s exists, resuming reencryption.\n" msgstr "Fichier journal %s existe. Reprise du re-chiffrement.\n" -#: src/cryptsetup_reencrypt.c:403 +#: src/cryptsetup_reencrypt.c:393 msgid "Activating temporary device using old LUKS header.\n" -msgstr "" -"Activation du périphérique temporaire en utilisant l'ancien en-tête LUKS.\n" +msgstr "Activation du périphérique temporaire en utilisant l'ancien en-tête LUKS.\n" -#: src/cryptsetup_reencrypt.c:414 +#: src/cryptsetup_reencrypt.c:404 msgid "Activating temporary device using new LUKS header.\n" -msgstr "" -"Activation du périphérique temporaire un utilisant le nouvel en-tête LUKS.\n" +msgstr "Activation du périphérique temporaire un utilisant le nouvel en-tête LUKS.\n" -#: src/cryptsetup_reencrypt.c:424 +#: src/cryptsetup_reencrypt.c:414 msgid "Activation of temporary devices failed.\n" msgstr "Échec de l'activation des périphériques temporaires.\n" -#: src/cryptsetup_reencrypt.c:450 +#: src/cryptsetup_reencrypt.c:439 #, c-format msgid "New LUKS header for device %s created.\n" msgstr "Nouvel en-tête LUKS créé pour le périphérique %s.\n" -#: src/cryptsetup_reencrypt.c:458 +#: src/cryptsetup_reencrypt.c:447 #, c-format msgid "Activated keyslot %i.\n" msgstr "Emplacement de clé activé %i.\n" -#: src/cryptsetup_reencrypt.c:484 +#: src/cryptsetup_reencrypt.c:471 #, c-format msgid "LUKS header backup of device %s created.\n" msgstr "Sauvegarde de l'en-tête LUKS du périphérique %s créée.\n" -#: src/cryptsetup_reencrypt.c:532 +#: src/cryptsetup_reencrypt.c:499 msgid "Creation of LUKS backup headers failed.\n" msgstr "La création de la sauvegarde des en-têtes LUKS a échoué.\n" -#: src/cryptsetup_reencrypt.c:634 +#: src/cryptsetup_reencrypt.c:594 #, c-format msgid "Cannot restore LUKS header on device %s.\n" msgstr "Impossible de rétablir l'en-tête LUKS sur le périphérique %s.\n" -#: src/cryptsetup_reencrypt.c:636 +#: src/cryptsetup_reencrypt.c:596 #, c-format msgid "LUKS header on device %s restored.\n" msgstr "En-tête LUKS rétabli sur le périphérique %s.\n" -#: src/cryptsetup_reencrypt.c:669 +#: src/cryptsetup_reencrypt.c:629 #, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" -"Progression: %5.1f%%, ETA %02llu:%02llu, %4llu MiB écrits, vitesse %5.1f MIB/" -"s%s" +msgid "Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" +msgstr "Progression: %5.1f%%, ETA %02llu:%02llu, %4llu MiB écrits, vitesse %5.1f MIB/s%s" -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 +#: src/cryptsetup_reencrypt.c:645 src/cryptsetup_reencrypt.c:721 msgid "Cannot seek to device offset.\n" msgstr "Impossible de se déplacer au décalage du périphérique.\n" -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 +#: src/cryptsetup_reencrypt.c:767 src/cryptsetup_reencrypt.c:773 msgid "Cannot open temporary LUKS header file.\n" msgstr "Impossible d'ouvrir le fichier temporaire de l'en-tête LUKS.\n" -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 +#: src/cryptsetup_reencrypt.c:779 msgid "Cannot get device size.\n" msgstr "Impossible d'obtenir la taille du périphérique.\n" -#: src/cryptsetup_reencrypt.c:919 +#: src/cryptsetup_reencrypt.c:803 msgid "Interrupted by a signal.\n" msgstr "Interrompu par un signal.\n" -#: src/cryptsetup_reencrypt.c:921 +#: src/cryptsetup_reencrypt.c:805 msgid "IO error during reencryption.\n" msgstr "Erreur E/S pendant le re-chiffrement.\n" -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" -"Le fichier de clé peut uniquement être utilisé avec --key-slot ou avec " -"exactement un seul emplacement de clé actif.\n" +#: src/cryptsetup_reencrypt.c:906 +msgid "Key file can be used only with --key-slot or with exactly one key slot active.\n" +msgstr "Le fichier de clé peut uniquement être utilisé avec --key-slot ou avec exactement un seul emplacement de clé actif.\n" -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 +#: src/cryptsetup_reencrypt.c:955 #, c-format msgid "Enter passphrase for key slot %u: " msgstr "Entrez la phrase secrète pour l'emplacement de clé %u : " -#: src/cryptsetup_reencrypt.c:1136 +#: src/cryptsetup_reencrypt.c:1004 msgid "Cannot open reencryption log file.\n" msgstr "Impossible d'ouvrir le journal de re-chiffrement.\n" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "Reencryption block size" msgstr "Taille de bloc de re-chiffrement" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "MiB" msgstr "MiB" -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "Ne change pas la clé, pas de re-chiffrement de la zone de donnée." - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." +#: src/cryptsetup_reencrypt.c:1118 +msgid "Use direct-io when accesing devices." msgstr "Utilise direct-io pour accéder aux périphériques." -#: src/cryptsetup_reencrypt.c:1274 +#: src/cryptsetup_reencrypt.c:1119 msgid "Use fsync after each block." msgstr "Utiliser fsync après chaque bloc." -#: src/cryptsetup_reencrypt.c:1275 +#: src/cryptsetup_reencrypt.c:1120 msgid "Update log file after every block." msgstr "Met le journal à jour après chaque bloc." -#: src/cryptsetup_reencrypt.c:1276 +#: src/cryptsetup_reencrypt.c:1121 msgid "Use only this slot (others will be disabled)." msgstr "Utiliser uniquement cet emplacement (les autres seront désactivés)." -#: src/cryptsetup_reencrypt.c:1279 +#: src/cryptsetup_reencrypt.c:1124 msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" -"Réduire la taille des données du périphérique (déplace le décalage des " -"données). DANGEREUX !" +msgstr "Réduire la taille des données du périphérique (déplace le décalage des données). DANGEREUX !" -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup_reencrypt.c:1125 msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" -"Utilise uniquement la taille demandée du périphérique (ignore le reste du " -"périphérique). DANGEREUX !" +msgstr "Utilise uniquement la taille demandée du périphérique (ignore le reste du périphérique). DANGEREUX !" -#: src/cryptsetup_reencrypt.c:1281 +#: src/cryptsetup_reencrypt.c:1126 msgid "Create new header on not encrypted device." msgstr "Créer un nouvel en-tête sur le périphérique non chiffré." -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "" -"Déchiffre le périphérique de manière permanente (supprime le chiffrement)" - -#: src/cryptsetup_reencrypt.c:1298 +#: src/cryptsetup_reencrypt.c:1142 msgid "[OPTION...] " msgstr "[OPTION...] " -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" -"ATTENTION : ce code est expérimental. Il peut complètement détruire vos " -"données.\n" +#: src/cryptsetup_reencrypt.c:1156 +msgid "WARNING: this is experimental code, it can completely break your data.\n" +msgstr "ATTENTION : ce code est expérimental. Il peut complètement détruire vos données.\n" -#: src/cryptsetup_reencrypt.c:1313 +#: src/cryptsetup_reencrypt.c:1157 #, c-format msgid "Reencryption will change: volume key%s%s%s%s.\n" msgstr "Le re-chiffrement va changer : clé de volume%s%s%s%s.\n" -#: src/cryptsetup_reencrypt.c:1314 +#: src/cryptsetup_reencrypt.c:1158 msgid ", set hash to " msgstr ", change hachage en " -#: src/cryptsetup_reencrypt.c:1315 +#: src/cryptsetup_reencrypt.c:1159 msgid ", set cipher to " msgstr ", change chiffrement en " -#: src/cryptsetup_reencrypt.c:1320 +#: src/cryptsetup_reencrypt.c:1164 msgid "Argument required." msgstr "Argument requis." -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" -"Seules les valeurs entre 1 MiB et 64 MiB sont permises pour la taille des " -"blocs de re-chiffrement." +#: src/cryptsetup_reencrypt.c:1180 +msgid "Only values between 1 MiB and 64 MiB allowed for reencryption block size." +msgstr "Seules les valeurs entre 1 MiB et 64 MiB sont permises pour la taille des blocs de re-chiffrement." -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 +#: src/cryptsetup_reencrypt.c:1199 src/cryptsetup_reencrypt.c:1204 msgid "Invalid device size specification." msgstr "La taille de périphérique spécifiée est invalide." -#: src/cryptsetup_reencrypt.c:1363 +#: src/cryptsetup_reencrypt.c:1207 msgid "Maximum device reduce size is 64 MiB." msgstr "La taille maximum réduite pour le périphérique est 64 MiB." -#: src/cryptsetup_reencrypt.c:1366 +#: src/cryptsetup_reencrypt.c:1210 msgid "Reduce size must be multiple of 512 bytes sector." msgstr "La taille réduite doit être un multiple d'un secteur de 512 octets." -#: src/cryptsetup_reencrypt.c:1370 +#: src/cryptsetup_reencrypt.c:1214 msgid "Option --new must be used together with --reduce-device-size." msgstr "L'option --new doit être utilisée avec --reduce-device-size." -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "" -"L'option --keep-key ne peut être utilisée que avec --hash ou --iter-time." - -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "L'option --new ne peut pas être utilisée avec --decrypt." - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "L'option --decrypt est incompatible avec les paramètres spécifiés." - -#: src/utils_tools.c:151 +#: src/utils_tools.c:150 msgid "Error reading response from terminal.\n" msgstr "Erreur de lecture de la réponse depuis le terminal.\n" -#: src/utils_tools.c:173 +#: src/utils_tools.c:172 msgid "Command successful.\n" msgstr "Opération réussie.\n" -#: src/utils_tools.c:191 +#: src/utils_tools.c:186 #, c-format msgid "Command failed with code %i" msgstr "L'opération a échoué avec le code %i" @@ -1943,20 +1699,6 @@ msgstr "" "Échec de la vérification de la qualité du mot de passe :\n" " %s\n" -#~ msgid "FIPS checksum verification failed.\n" -#~ msgstr "La vérification de la somme de contrôle FIPS a échoué.\n" - -#~ msgid "" -#~ "WARNING: device %s is a partition, for TCRYPT system encryption you " -#~ "usually need to use whole block device path.\n" -#~ msgstr "" -#~ "ATTENTION : le périphérique %s est une partition. Pour le chiffrement de " -#~ "système TCRYPT, vous avez généralement besoin du chemin d'un périphérique " -#~ "bloc entier.\n" - -#~ msgid "Kernel doesn't support plain64 IV.\n" -#~ msgstr "Le noyau ne supporte pas plain64 IV.\n" - #~ msgid "Enter LUKS passphrase: " #~ msgstr "Saisissez la phrase secrète LUKS : " @@ -1967,8 +1709,7 @@ msgstr "" #~ msgstr "Entrez n'importe quelle phrase secrète LUKS : " #~ msgid "Failed to obtain device mapper directory." -#~ msgstr "" -#~ "Impossible d'obtenir le répertoire du gestionnaire « device mapper »." +#~ msgstr "Impossible d'obtenir le répertoire du gestionnaire « device mapper »." #~ msgid "Backup file %s doesn't exist.\n" #~ msgstr "Le fichier de sauvegarde %s n'existe pas.\n" @@ -1994,12 +1735,8 @@ msgstr "" #~ msgid "remove loop-AES mapping" #~ msgstr "enlève une association loop-AES" -#~ msgid "" -#~ "Option --allow-discards is allowed only for luksOpen, loopaesOpen and " -#~ "create operation.\n" -#~ msgstr "" -#~ "L'option --allow-discards est utilisable uniquement avec les commandes " -#~ "luksOpen, loopaesOpen et create.\n" +#~ msgid "Option --allow-discards is allowed only for luksOpen, loopaesOpen and create operation.\n" +#~ msgstr "L'option --allow-discards est utilisable uniquement avec les commandes luksOpen, loopaesOpen et create.\n" #~ msgid "Key slot %d verified.\n" #~ msgstr "L'emplacement de clé %d a été vérifié.\n" @@ -2020,9 +1757,7 @@ msgstr "" #~ msgstr "en lecture seule" #~ msgid "WARNING!!! Possibly insecure memory. Are you root?\n" -#~ msgstr "" -#~ "ATTENTION !!! La mémoire n'est peut-être pas sécurisée. Êtes-vous super-" -#~ "utilisateur ?\n" +#~ msgstr "ATTENTION !!! La mémoire n'est peut-être pas sécurisée. Êtes-vous super-utilisateur ?\n" #~ msgid "Negative keyfile size not permitted.\n" #~ msgstr "Taille négative de fichier de clé non autorisée.\n" @@ -2034,9 +1769,7 @@ msgstr "" #~ msgstr "Le mode \"bloc\" XTS est disponible depuis le noyau 2.6.24.\n" #~ msgid "Key size in LRW mode must be 256 or 512 bits.\n" -#~ msgstr "" -#~ "La taille de la clé en mode LRW doit être un multiple de 256 ou 512 " -#~ "bits.\n" +#~ msgstr "La taille de la clé en mode LRW doit être un multiple de 256 ou 512 bits.\n" #~ msgid "Block mode LRW is available since kernel 2.6.20.\n" #~ msgstr "Le mode \"bloc\" LRW est disponible depuis le noyau 2.6.20.\n" @@ -2045,19 +1778,13 @@ msgstr "" #~ msgstr "Échec lors de l'écriture à l'emplacement de stockage de la clé.\n" #~ msgid "Failed to read from key storage.\n" -#~ msgstr "" -#~ "Échec lors de la lecture depuis l'emplacement de stockage de la clé.\n" +#~ msgstr "Échec lors de la lecture depuis l'emplacement de stockage de la clé.\n" -#~ msgid "" -#~ "Warning: exhausting read requested, but key file is not a regular file, " -#~ "function might never return.\n" -#~ msgstr "" -#~ "Attention : requête de lecture, mais le fichier de clef n'est pas " -#~ "régulier, la procédure peut rester bloquée.\n" +#~ msgid "Warning: exhausting read requested, but key file is not a regular file, function might never return.\n" +#~ msgstr "Attention : requête de lecture, mais le fichier de clef n'est pas régulier, la procédure peut rester bloquée.\n" #~ msgid "Cannot find compatible device-mapper kernel modules.\n" -#~ msgstr "" -#~ "Impossible de trouver des modules noyau compatibles avec device-mapper.\n" +#~ msgstr "Impossible de trouver des modules noyau compatibles avec device-mapper.\n" #~ msgid "Cannot open device: %s\n" #~ msgstr "Impossible d'ouvrir le périphérique : %s\n" @@ -2075,15 +1802,11 @@ msgstr "" #~ msgstr "modifier le périphérique actif - OBSOLÈTE - voir la page de man" #~ msgid "" -#~ "The reload action is deprecated. Please use \"dmsetup reload\" in case " -#~ "you really need this functionality.\n" -#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, " -#~ "hit Ctrl-C now.\n" +#~ "The reload action is deprecated. Please use \"dmsetup reload\" in case you really need this functionality.\n" +#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, hit Ctrl-C now.\n" #~ msgstr "" -#~ "L'action « reload » est obsolète. Merci d'utiliser « dmsetup reload » si " -#~ "vous avez vraiment besoin de cette fonctionnalité.\n" -#~ "ATTENTION : n'utilisez pas « reload » sur des périphériques LUKS. Si " -#~ "c'est le cas, tapez Ctrl-C.\n" +#~ "L'action « reload » est obsolète. Merci d'utiliser « dmsetup reload » si vous avez vraiment besoin de cette fonctionnalité.\n" +#~ "ATTENTION : n'utilisez pas « reload » sur des périphériques LUKS. Si c'est le cas, tapez Ctrl-C.\n" #~ msgid "Obsolete option --non-exclusive is ignored.\n" #~ msgstr "L'option obsolète --non-exclusive est ignorée.\n" diff --git a/po/id.gmo b/po/id.gmo deleted file mode 100644 index b06d339..0000000 Binary files a/po/id.gmo and /dev/null differ diff --git a/po/id.po b/po/id.po index 54ed975..4a92330 100644 --- a/po/id.po +++ b/po/id.po @@ -7,539 +7,394 @@ msgid "" msgstr "" "Project-Id-Version: cryptsetup 1.1.0-rc4\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" +"POT-Creation-Date: 2009-12-30 20:09+0100\n" "PO-Revision-Date: 2010-01-27 07:30+0700\n" "Last-Translator: Arif E. Nugroho \n" "Language-Team: Indonesian \n" -"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" -#: lib/libdevmapper.c:252 -#, fuzzy -msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "" -"Tidak dapat menginisialisasi pemeta-perangkat. Apakah kernel modul dm_mod " -"telah dimuat?\n" - -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:48 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" -msgstr "" -"Tidak dapat menginisialisasi pemeta-perangkat. Apakah kernel modul dm_mod " -"telah dimuat?\n" +msgstr "Tidak dapat menginisialisasi pemeta-perangkat. Apakah kernel modul dm_mod telah dimuat?\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:304 #, c-format msgid "DM-UUID for device %s was truncated.\n" msgstr "DM-UUID untuk perangkat %s telah terpotong.\n" -#: lib/libdevmapper.c:698 -#, fuzzy -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Hash %s LUKS yang diminta tidak didukung.\n" +#: lib/setup.c:103 +#, c-format +msgid "Cannot not read %d bytes from key file %s.\n" +msgstr "Tidak dapat membaca %d bytes dari berkas kunci %s.\n" -#: lib/random.c:76 -msgid "" -"System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" -msgstr "" +#: lib/setup.c:115 +msgid "Key processing error.\n" +msgstr "Terjadi kesalahan dalam pengolahan kunci.\n" + +#: lib/setup.c:169 +msgid "All key slots full.\n" +msgstr "Semua slot kunci telah penuh.\n" -#: lib/random.c:80 +#: lib/setup.c:176 lib/setup.c:304 lib/setup.c:778 #, c-format -msgid "Generating key (%d%% done).\n" -msgstr "" +msgid "Key slot %d is invalid, please select between 0 and %d.\n" +msgstr "Slot kunci %d tidak valid, mohon pilih diantara 0 dan %d.\n" -#: lib/random.c:169 -msgid "Fatal error during RNG initialisation.\n" -msgstr "" +#: lib/setup.c:182 +#, c-format +msgid "Key slot %d is full, please select another one.\n" +msgstr "Slot kunci %d penuh, mohon pilih yang lain.\n" -#: lib/random.c:206 -#, fuzzy -msgid "Unknown RNG quality requested.\n" -msgstr "Tipe perangkat sandi %s yang diminta tidak diketahui.\n" +#: lib/setup.c:201 +msgid "Enter any remaining LUKS passphrase: " +msgstr "Masukan kata sandi LUKS yang tersisa: " -#: lib/random.c:211 -#, fuzzy, c-format -msgid "Error %d reading from RNG: %s\n" -msgstr "Kesalahan dalam pembacaan kata sandi.\n" +#: lib/setup.c:222 +#, c-format +msgid "Key slot %d verified.\n" +msgstr "Slot kunci %d telah terverifikasi.\n" -#: lib/setup.c:200 -#, fuzzy -msgid "Cannot initialize crypto RNG backend.\n" -msgstr "Tidak dapat menginisialisasi backend crypto.\n" +#: lib/setup.c:257 +#, c-format +msgid "Cannot get info about device %s.\n" +msgstr "Tidak dapat mendapatkan informasi mengenai perangkat %s.\n" -#: lib/setup.c:206 -msgid "Cannot initialize crypto backend.\n" -msgstr "Tidak dapat menginisialisasi backend crypto.\n" +#: lib/setup.c:264 +#, c-format +msgid "Device %s has zero size.\n" +msgstr "Perangkat %s memiliki ukuran nol.\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 -#, fuzzy, c-format -msgid "Hash algorithm %s not supported.\n" -msgstr "Hash %s LUKS yang diminta tidak didukung.\n" +#: lib/setup.c:268 +#, c-format +msgid "Device %s is too small.\n" +msgstr "Perangkat %s terlalu kecil.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 -#, fuzzy, c-format -msgid "Key processing error (using hash %s).\n" -msgstr "Terjadi kesalahan dalam pengolahan kunci.\n" +#: lib/setup.c:293 +msgid "Enter LUKS passphrase to be deleted: " +msgstr "Masukan kata sandi LUKS yang akan dihapus: " -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" +#: lib/setup.c:299 +#, c-format +msgid "key slot %d selected for deletion.\n" +msgstr "slot kunci %d terpilih untuk penghapusan.\n" -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Operasi ini hanya didukunga untuk perangkat LUKS.\n" +#: lib/setup.c:310 +#, c-format +msgid "Key %d not active. Can't wipe.\n" +msgstr "Kunci %d tidak aktif. Tidak dapat menghapus.\n" -#: lib/setup.c:320 -msgid "All key slots full.\n" -msgstr "Semua slot kunci telah penuh.\n" +#: lib/setup.c:316 +msgid "This is the last keyslot. Device will become unusable after purging this key." +msgstr "Ini adalah slot kunci terakhir. Perangkat mungkin akan menjadi tidak stabil setelah menghapus kunci ini." -#: lib/setup.c:327 +#: lib/setup.c:364 lib/setup.c:1651 lib/setup.c:1704 lib/setup.c:1761 #, c-format -msgid "Key slot %d is invalid, please select between 0 and %d.\n" -msgstr "Slot kunci %d tidak valid, mohon pilih diantara 0 dan %d.\n" +msgid "Device %s already exists.\n" +msgstr "Perangkat %s telah ada.\n" -#: lib/setup.c:333 +#: lib/setup.c:369 #, c-format -msgid "Key slot %d is full, please select another one.\n" -msgstr "Slot kunci %d penuh, mohon pilih yang lain.\n" +msgid "Invalid key size %d.\n" +msgstr "Besar kunci %d tidak valid.\n" -#: lib/setup.c:472 +#: lib/setup.c:471 lib/setup.c:1656 #, c-format msgid "Enter passphrase for %s: " msgstr "Masukan kata sandi untuk %s: " -#: lib/setup.c:653 -#, fuzzy, c-format -msgid "Header detected but device %s is too small.\n" -msgstr "Header LUKS terdeteksi tetapi perangkat %s terlalu kecil.\n" - -#: lib/setup.c:669 lib/setup.c:1420 -#, fuzzy -msgid "This operation is not supported for this device type.\n" -msgstr "Operasi ini tidak didukung untuk perangkat crypt %s.\n" +#: lib/setup.c:600 lib/setup.c:628 lib/setup.c:1365 lib/setup.c:1712 +msgid "Enter passphrase: " +msgstr "Masukan kata sandi: " -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:661 lib/setup.c:1040 lib/setup.c:1803 #, c-format msgid "Device %s is not active.\n" msgstr "Perangkat %s tidak aktif.\n" -#: lib/setup.c:925 -#, c-format -msgid "Underlying device for crypt device %s disappeared.\n" -msgstr "" +#: lib/setup.c:770 +msgid "No known cipher specification pattern detected.\n" +msgstr "Tidak ada pola spesifikasi cipher yang dikenal terdeteksi.\n" + +#: lib/setup.c:784 +msgid "Enter LUKS passphrase: " +msgstr "Masukan kata sandi LUKS: " -#: lib/setup.c:994 +#: lib/setup.c:1060 msgid "Invalid plain crypt parameters.\n" msgstr "Parameter crypt tidak valid.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:1065 msgid "Invalid key size.\n" msgstr "Ukuran kunci tidak valid.\n" -#: lib/setup.c:1004 lib/setup.c:1124 -#, fuzzy -msgid "UUID is not supported for this crypt type.\n" -msgstr "Operasi ini tidak didukung untuk perangkat crypt %s.\n" - -#: lib/setup.c:1046 +#: lib/setup.c:1097 msgid "Can't format LUKS without device.\n" msgstr "Tidak dapat memformat LUKS tanpat perangkat.\n" -#: lib/setup.c:1089 -#, fuzzy, c-format -msgid "Cannot format device %s which is still in use.\n" -msgstr "Tidak dapat membuka perangkat %s untuk akses %s%s.\n" - -#: lib/setup.c:1092 -#, fuzzy, c-format -msgid "Cannot format device %s, permission denied.\n" -msgstr "Tidak dapat membaca perangkat %s.\n" - -#: lib/setup.c:1096 -#, fuzzy, c-format -msgid "Cannot wipe header on device %s.\n" +#: lib/setup.c:1112 +#, c-format +msgid "Can't wipe header on device %s.\n" msgstr "Tidak dapat menghapus kepala di perangkat %s.\n" -#: lib/setup.c:1114 -#, fuzzy -msgid "Can't format LOOPAES without device.\n" -msgstr "Tidak dapat memformat LUKS tanpat perangkat.\n" - -#: lib/setup.c:1152 -#, fuzzy -msgid "Can't format VERITY without device.\n" -msgstr "Tidak dapat memformat LUKS tanpat perangkat.\n" - -#: lib/setup.c:1160 lib/verity/verity.c:106 -#, fuzzy, c-format -msgid "Unsupported VERITY hash type %d.\n" -msgstr "versi LUKS %d tidak didukung.\n" - -#: lib/setup.c:1166 lib/verity/verity.c:114 -msgid "Unsupported VERITY block size.\n" -msgstr "" - -#: lib/setup.c:1171 lib/verity/verity.c:76 -msgid "Unsupported VERITY hash offset.\n" -msgstr "" - -#: lib/setup.c:1285 +#: lib/setup.c:1154 #, c-format msgid "Unknown crypt device type %s requested.\n" msgstr "Tipe perangkat sandi %s yang diminta tidak diketahui.\n" -#: lib/setup.c:1435 -msgid "Do you really want to change UUID of device?" -msgstr "" +#: lib/setup.c:1187 +msgid "Cannot initialize crypto backend.\n" +msgstr "Tidak dapat menginisialisasi backend crypto.\n" -#: lib/setup.c:1545 +#: lib/setup.c:1261 #, c-format msgid "Volume %s is not active.\n" msgstr "Volume %s tidak aktif.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1274 #, c-format msgid "Volume %s is already suspended.\n" msgstr "Volume %s telah disuspend.\n" -#: lib/setup.c:1563 -#, fuzzy, c-format -msgid "Suspend is not supported for device %s.\n" -msgstr "Operasi ini tidak didukung untuk perangkat crypt %s.\n" - -#: lib/setup.c:1565 -#, fuzzy, c-format -msgid "Error during suspending device %s.\n" -msgstr "Error selama memperbarui header LUKS di perangkat %s.\n" +#: lib/setup.c:1300 lib/setup.c:1347 lib/setup.c:1406 lib/setup.c:1484 +#: lib/setup.c:1556 lib/setup.c:1601 lib/setup.c:1695 lib/setup.c:1752 +#: lib/setup.c:1873 lib/setup.c:1956 lib/setup.c:2056 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Operasi ini hanya didukunga untuk perangkat LUKS.\n" -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1311 lib/setup.c:1358 #, c-format msgid "Volume %s is not suspended.\n" msgstr "Volume %s tidak disuspend.\n" -#: lib/setup.c:1605 -#, fuzzy, c-format -msgid "Resume is not supported for device %s.\n" -msgstr "Operasi ini tidak didukung untuk perangkat crypt %s.\n" - -#: lib/setup.c:1607 lib/setup.c:1659 -#, fuzzy, c-format -msgid "Error during resuming device %s.\n" -msgstr "Error selama memperbarui header LUKS di perangkat %s.\n" - -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 -msgid "Enter passphrase: " -msgstr "Masukan kata sandi: " - -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1420 lib/setup.c:1498 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"Tidak dapat menambahkan slot kunci, seluruh slot tidak aktif dan tidak ada " -"volume kunci yang disediakan.\n" +msgstr "Tidak dapat menambahkan slot kunci, seluruh slot tidak aktif dan tidak ada volume kunci yang disediakan.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1429 lib/setup.c:1504 lib/setup.c:1507 msgid "Enter any passphrase: " msgstr "Masukan kata sandi: " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1448 lib/setup.c:1522 lib/setup.c:1526 lib/setup.c:1579 msgid "Enter new passphrase for key slot: " msgstr "Masukan kasa sandi baru untuk slot kunci: " -#: lib/setup.c:1798 -#, fuzzy, c-format -msgid "Key slot %d changed.\n" -msgstr "Slot kunci %d tidak terkunci.\n" - -#: lib/setup.c:1801 -#, c-format -msgid "Replaced with key slot %d.\n" -msgstr "" - -#: lib/setup.c:1806 -#, fuzzy -msgid "Failed to swap new key slot.\n" -msgstr "Gagal memperoleh data statistik berkas kunci %s.\n" - -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1570 lib/setup.c:1772 lib/setup.c:1884 msgid "Volume key does not match the volume.\n" msgstr "Kunci volume tidak cocok dengan volume.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1607 #, c-format msgid "Key slot %d is invalid.\n" msgstr "Slot kunci %d tidak valid.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1612 #, c-format msgid "Key slot %d is not used.\n" msgstr "Slot kunci %d tidak digunakan.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1799 #, c-format -msgid "Device %s already exists.\n" -msgstr "Perangkat %s telah ada.\n" - -#: lib/setup.c:2171 -#, fuzzy -msgid "Incorrect volume key specified for plain device.\n" -msgstr "Tidak dapat mendapatkan kunci volume untuk perangkat.\n" - -#: lib/setup.c:2204 -msgid "Incorrect root hash specified for verity device.\n" -msgstr "" - -#: lib/setup.c:2227 -#, fuzzy -msgid "Device type is not properly initialised.\n" -msgstr "Perangkat %s tidak aktif.\n" - -#: lib/setup.c:2259 -#, fuzzy, c-format -msgid "Device %s is still in use.\n" +msgid "Device %s is busy.\n" msgstr "Perangkat %s sibuk.\n" -#: lib/setup.c:2268 +#: lib/setup.c:1807 #, c-format msgid "Invalid device %s.\n" msgstr "Perangkat %s tidak valid.\n" -#: lib/setup.c:2289 -msgid "Function not available in FIPS mode.\n" -msgstr "" - -#: lib/setup.c:2295 +#: lib/setup.c:1831 msgid "Volume key buffer too small.\n" msgstr "Penyangga kunci volume terlalu kecil.\n" -#: lib/setup.c:2303 +#: lib/setup.c:1839 msgid "Cannot retrieve volume key for plain device.\n" msgstr "Tidak dapat mendapatkan kunci volume untuk perangkat.\n" -#: lib/setup.c:2310 +#: lib/setup.c:1861 #, c-format msgid "This operation is not supported for %s crypt device.\n" msgstr "Operasi ini tidak didukung untuk perangkat crypt %s.\n" -#: lib/setup.c:2506 -#, fuzzy -msgid "Dump operation is not supported for this device type.\n" -msgstr "Operasi ini tidak didukung untuk perangkat crypt %s.\n" - -#: lib/utils.c:244 -msgid "Cannot get process priority.\n" -msgstr "Tidak dapat mendapatkan prioritas proses.\n" - -#: lib/utils.c:258 -#, fuzzy -msgid "Cannot unlock memory.\n" -msgstr "Tidak dapat membuka kunci memori." - -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 -msgid "Out of memory while reading passphrase.\n" -msgstr "Kehabisan memori ketika membaca kata sandi.\n" +#: lib/utils.c:416 +#, c-format +msgid "Failed to open key file %s.\n" +msgstr "Gagal membuka berkas kunci %s.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils.c:436 msgid "Error reading passphrase from terminal.\n" msgstr "Kesalahan dalam pembacaan kata sandi dari terminal.\n" -#: lib/utils_crypt.c:259 +#: lib/utils.c:441 msgid "Verify passphrase: " msgstr "Memverifikasi kata sandi: " -#: lib/utils_crypt.c:266 +#: lib/utils.c:443 msgid "Passphrases do not match.\n" msgstr "Kata sandi tidak cocok.\n" -#: lib/utils_crypt.c:350 -msgid "Cannot use offset with terminal input.\n" -msgstr "" - -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 -#, fuzzy -msgid "Failed to open key file.\n" -msgstr "Gagal membuka berkas kunci %s.\n" +#: lib/utils.c:458 +msgid "Can't do passphrase verification on non-tty inputs.\n" +msgstr "Tidak dapat melakukan verifikasi kata sandi di masukan bukan tty.\n" -#: lib/utils_crypt.c:378 -#, fuzzy -msgid "Failed to stat key file.\n" +#: lib/utils.c:471 +#, c-format +msgid "Failed to stat key file %s.\n" msgstr "Gagal memperoleh data statistik berkas kunci %s.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 -msgid "Cannot seek to requested keyfile offset.\n" -msgstr "" +#: lib/utils.c:475 +#, c-format +msgid "Warning: exhausting read requested, but key file %s is not a regular file, function might never return.\n" +msgstr "Peringatan: pembacaan yang melelahkan diminta, tetapi berkas kunci %s bukan sebuah berkas biasa, fungsi mungkin tidak pernah kembali.\n" + +#: lib/utils.c:487 +msgid "Out of memory while reading passphrase.\n" +msgstr "Kehabisan memori ketika membaca kata sandi.\n" -#: lib/utils_crypt.c:424 +#: lib/utils.c:494 msgid "Error reading passphrase.\n" msgstr "Kesalahan dalam pembacaan kata sandi.\n" -#: lib/utils_crypt.c:442 -msgid "Maximum keyfile size exceeded.\n" -msgstr "" - -#: lib/utils_crypt.c:447 -#, fuzzy -msgid "Cannot read requested amount of data.\n" -msgstr "Tidak dapat membaca berkas cadangan header %s.\n" - -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/utils.c:531 #, c-format msgid "Device %s doesn't exist or access denied.\n" msgstr "Perangkat %s tidak ada atau akses ditolak.\n" -#: lib/utils_device.c:430 -msgid "Cannot use a loopback device, running as non-root user.\n" -msgstr "" +#: lib/utils.c:538 +#, c-format +msgid "Cannot open device %s for %s%s access.\n" +msgstr "Tidak dapat membuka perangkat %s untuk akses %s%s.\n" -#: lib/utils_device.c:433 -#, fuzzy -msgid "Cannot find a free loopback device.\n" -msgstr "Tidak dapat membaca perangkat %s.\n" +#: lib/utils.c:539 +msgid "exclusive " +msgstr "ekslusif " -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" +#: lib/utils.c:540 +msgid "writable" +msgstr "dapat-ditulis" + +#: lib/utils.c:540 +msgid "read-only" +msgstr "baca-saja" -#: lib/utils_device.c:484 +#: lib/utils.c:547 #, c-format -msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" +msgid "Cannot read device %s.\n" +msgstr "Tidak dapat membaca perangkat %s.\n" -#: lib/utils_device.c:488 +#: lib/utils.c:577 #, c-format -msgid "Cannot get info about device %s.\n" -msgstr "Tidak dapat mendapatkan informasi mengenai perangkat %s.\n" +msgid "Cannot open device: %s\n" +msgstr "Tidak dapat membuka perangkat: %s\n" -#: lib/utils_device.c:494 +#: lib/utils.c:587 #, c-format -msgid "Requested offset is beyond real size of device %s.\n" -msgstr "" +msgid "BLKROGET failed on device %s.\n" +msgstr "BLKROGET gagal di perangkat %s.\n" -#: lib/utils_device.c:502 +#: lib/utils.c:612 #, c-format -msgid "Device %s has zero size.\n" -msgstr "Perangkat %s memiliki ukuran nol.\n" +msgid "BLKGETSIZE failed on device %s.\n" +msgstr "BLKGETSIZE gagal di perangkat %s.\n" + +#: lib/utils.c:660 +msgid "WARNING!!! Possibly insecure memory. Are you root?\n" +msgstr "PERINGATAN!!! Kemungkinan menggunakan memori tidak aman. Apakah anda root?\n" + +#: lib/utils.c:666 +msgid "Cannot get process priority.\n" +msgstr "Tidak dapat mendapatkan prioritas proses.\n" -#: lib/utils_device.c:513 +#: lib/utils.c:669 lib/utils.c:682 #, c-format -msgid "Device %s is too small.\n" -msgstr "Perangkat %s terlalu kecil.\n" +msgid "setpriority %u failed: %s" +msgstr "setpriority %u gagal: %s" + +#: lib/utils.c:680 +msgid "Cannot unlock memory." +msgstr "Tidak dapat membuka kunci memori." + +#: luks/keyencryption.c:68 +#, c-format +msgid "Unable to obtain sector size for %s" +msgstr "Tidak dapat mendapatkan ukuran sektor untuk %s" + +#: luks/keyencryption.c:137 +msgid "Failed to obtain device mapper directory." +msgstr "Gagal untuk memperoleh direktori pemeta-perangkat." -#: lib/luks1/keyencryption.c:37 -#, fuzzy, c-format +#: luks/keyencryption.c:153 +#, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n" +"%s" msgstr "" "Gagal untuk mengkonfigurasi pemetaan kunci dm-crypt untuk perangkat %s.\n" -"Periksa apakah kernel mendukung cipher %s (periksa syslog untuk informasi " -"lebih lanjut).\n" +"Periksa apakah kernel mendukung cipher %s (periksa syslog untuk informasi lebih lanjut).\n" "%s" -#: lib/luks1/keyencryption.c:42 -#, fuzzy -msgid "Key size in XTS mode must be 256 or 512 bits.\n" -msgstr "Kunci harus kelipatan dari 8 bit" - -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 -#, fuzzy, c-format -msgid "Cannot write to device %s, permission denied.\n" -msgstr "Tidak dapat menghapus perangkat %s.\n" - -#: lib/luks1/keyencryption.c:111 +#: luks/keyencryption.c:163 msgid "Failed to open temporary keystore device.\n" msgstr "Gagal untuk membuka perangkat penyimpan kunci sementara.\n" -#: lib/luks1/keyencryption.c:118 +#: luks/keyencryption.c:170 msgid "Failed to access temporary keystore device.\n" msgstr "Gagal untuk mengakses perangkat penyimpan kunci sementara.\n" -#: lib/luks1/keyencryption.c:191 -#, fuzzy -msgid "IO error while encrypting keyslot.\n" -msgstr "Besar dari kunci enkripsi" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "" - -#: lib/luks1/keymanage.c:90 +#: luks/keymanage.c:91 #, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "" - -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 -#, fuzzy, c-format -msgid "Device %s is not a valid LUKS device.\n" -msgstr "Perangkat %s bukan perangkat LUKS.\n" - -#: lib/luks1/keymanage.c:198 -#, fuzzy, c-format -msgid "Requested header backup file %s already exists.\n" +msgid "Requested file %s already exist.\n" msgstr "Berkas %s yang diminta telah ada.\n" -#: lib/luks1/keymanage.c:200 -#, fuzzy, c-format -msgid "Cannot create header backup file %s.\n" -msgstr "Tidak dapat membaca berkas cadangan header %s.\n" +#: luks/keymanage.c:111 +#, c-format +msgid "Device %s is not LUKS device.\n" +msgstr "Perangkat %s bukan perangkat LUKS.\n" -#: lib/luks1/keymanage.c:205 +#: luks/keymanage.c:131 #, c-format msgid "Cannot write header backup file %s.\n" msgstr "Tidak dapat menulis berkas cadangan header %s.\n" -#: lib/luks1/keymanage.c:239 -#, fuzzy -msgid "Backup file doesn't contain valid LUKS header.\n" +#: luks/keymanage.c:158 +#, c-format +msgid "Backup file %s doesn't exist.\n" +msgstr "Berkas cadangan %s tidak ada.\n" + +#: luks/keymanage.c:166 +msgid "Backup file do not contain valid LUKS header.\n" msgstr "Berkas cadangan tidak berisi header LUKS yang valid.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: luks/keymanage.c:179 #, c-format msgid "Cannot open header backup file %s.\n" msgstr "Tidak dapat membuka berkas cadangan header %s.\n" -#: lib/luks1/keymanage.c:258 +#: luks/keymanage.c:185 #, c-format msgid "Cannot read header backup file %s.\n" msgstr "Tidak dapat membaca berkas cadangan header %s.\n" -#: lib/luks1/keymanage.c:269 +#: luks/keymanage.c:196 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"Data offset atau ukuran kunci berbeda di perangkat dan cadangan, " -"pengembalian gagal.\n" +msgstr "Data offset atau ukuran kunci berbeda di perangkat dan cadangan, pengembalian gagal.\n" -#: lib/luks1/keymanage.c:277 +#: luks/keymanage.c:204 #, c-format msgid "Device %s %s%s" msgstr "Perangkat %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"tidak berisi header LUKS. Mengganti header dapat menghancurkan data di " -"perangkat itu." +#: luks/keymanage.c:205 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "tidak berisi header LUKS. Mengganti header dapat menghancurkan data di perangkat itu." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"telah berisi header LUKS. Mengganti header dapat mengganti slot kunci yang " -"telah ada." +#: luks/keymanage.c:206 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "telah berisi header LUKS. Mengganti header dapat mengganti slot kunci yang telah ada." -#: lib/luks1/keymanage.c:280 +#: luks/keymanage.c:207 msgid "" "\n" "WARNING: real device header has different UUID than backup!" @@ -547,579 +402,256 @@ msgstr "" "\n" "PERINGATAN: header perangkat ril memiliki UUID berbeda dengan cadangan!" -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 -#: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 -#: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 +#: luks/keymanage.c:222 luks/keymanage.c:319 luks/keymanage.c:354 #, c-format msgid "Cannot open device %s.\n" msgstr "Tidak dapat membuka perangkat %s.\n" -#: lib/luks1/keymanage.c:329 -msgid "Non standard key size, manual repair required.\n" -msgstr "" - -#: lib/luks1/keymanage.c:334 -msgid "Non standard keyslots alignment, manual repair required.\n" -msgstr "" - -#: lib/luks1/keymanage.c:340 -msgid "Repairing keyslots.\n" -msgstr "" - -#: lib/luks1/keymanage.c:351 -msgid "Repair failed." -msgstr "" - -#: lib/luks1/keymanage.c:363 +#: luks/keymanage.c:254 #, c-format -msgid "Keyslot %i: offset repaired (%u -> %u).\n" -msgstr "" - -#: lib/luks1/keymanage.c:371 -#, c-format -msgid "Keyslot %i: stripes repaired (%u -> %u).\n" -msgstr "" +msgid "%s is not LUKS device.\n" +msgstr "%s bukan perangkat LUKS.\n" -#: lib/luks1/keymanage.c:380 +#: luks/keymanage.c:256 #, c-format -msgid "Keyslot %i: bogus partition signature.\n" -msgstr "" - -#: lib/luks1/keymanage.c:385 -#, fuzzy, c-format -msgid "Keyslot %i: salt wiped.\n" -msgstr "Slot kunci %d tidak valid.\n" - -#: lib/luks1/keymanage.c:396 -#, fuzzy -msgid "Writing LUKS header to disk.\n" -msgstr "Error selama memperbarui header LUKS di perangkat %s.\n" +msgid "%s is not LUKS device." +msgstr "%s bukan perangkat LUKS." -#: lib/luks1/keymanage.c:421 +#: luks/keymanage.c:259 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "versi LUKS %d tidak didukung.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: luks/keymanage.c:262 #, c-format msgid "Requested LUKS hash %s is not supported.\n" msgstr "Hash %s LUKS yang diminta tidak didukung.\n" -#: lib/luks1/keymanage.c:442 -#, fuzzy, c-format -msgid "LUKS keyslot %u is invalid.\n" -msgstr "Slot kunci %d tidak valid.\n" +#: luks/keymanage.c:293 +#, c-format +msgid "Cannot open file %s.\n" +msgstr "Tidak dapat membuka berkas %s.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 -msgid "No known problems detected for LUKS header.\n" -msgstr "" +#: luks/keymanage.c:331 +#, c-format +msgid "LUKS header detected but device %s is too small.\n" +msgstr "Header LUKS terdeteksi tetapi perangkat %s terlalu kecil.\n" -#: lib/luks1/keymanage.c:596 +#: luks/keymanage.c:375 #, c-format msgid "Error during update of LUKS header on device %s.\n" msgstr "Error selama memperbarui header LUKS di perangkat %s.\n" -#: lib/luks1/keymanage.c:603 +#: luks/keymanage.c:382 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" -"Error membaca-kembali header LUKS setelah memperbarui di perangkat %s.\n" +msgstr "Error membaca-kembali header LUKS setelah memperbarui di perangkat %s.\n" -#: lib/luks1/keymanage.c:654 +#: luks/keymanage.c:394 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" - -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 -#, fuzzy -msgid "Wrong LUKS UUID format provided.\n" -msgstr "Format UUID yang disediakan berbeda, membuat yang baru.\n" +msgid "Not compatible PBKDF2 options (using hash algorithm %s)." +msgstr "Pilihan PBKDF2 tidak kompatibel (menggunakan algoritma hash %s)." -#: lib/luks1/keymanage.c:695 +#: luks/keymanage.c:439 msgid "Cannot create LUKS header: reading random salt failed.\n" msgstr "Tidak dapat membuat header LUKS: pembacaan garam acak gagal.\n" -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 -#, fuzzy, c-format -msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" -msgstr "Pilihan PBKDF2 tidak kompatibel (menggunakan algoritma hash %s)." - -#: lib/luks1/keymanage.c:717 +#: luks/keymanage.c:456 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"Tidak dapat membuat header LUKS: digest header gagal (menggunakan hash %s).\n" +msgstr "Tidak dapat membuat header LUKS: digest header gagal (menggunakan hash %s).\n" + +#: luks/keymanage.c:473 +msgid "Wrong UUID format provided, generating new one.\n" +msgstr "Format UUID yang disediakan berbeda, membuat yang baru.\n" -#: lib/luks1/keymanage.c:782 +#: luks/keymanage.c:500 #, c-format msgid "Key slot %d active, purge first.\n" msgstr "Slot kunci %d aktif, hapus terlebih dahulu.\n" -#: lib/luks1/keymanage.c:788 +#: luks/keymanage.c:505 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" -"Slot kunci %d material terdapat terlalu sedikit stripes. Manipulasi header?\n" +msgstr "Slot kunci %d material terdapat terlalu sedikit stripes. Manipulasi header?\n" + +#: luks/keymanage.c:564 +msgid "Failed to write to key storage.\n" +msgstr "Gagal untuk menulis di penyimpanan kunci.\n" + +#: luks/keymanage.c:641 +msgid "Failed to read from key storage.\n" +msgstr "Gagal untuk membaca dari penyimpanan kunci.\n" -#: lib/luks1/keymanage.c:950 +#: luks/keymanage.c:650 #, c-format msgid "Key slot %d unlocked.\n" msgstr "Slot kunci %d tidak terkunci.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: luks/keymanage.c:683 msgid "No key available with this passphrase.\n" msgstr "Tidak ada kunci tersedia dengan kata sandi ini.\n" -#: lib/luks1/keymanage.c:1003 +#: luks/keymanage.c:760 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" msgstr "Slot kunci %d tidak valid, mohon pilih slot kunci diantara 0 dan %d.\n" -#: lib/luks1/keymanage.c:1021 +#: luks/keymanage.c:772 #, c-format msgid "Cannot wipe device %s.\n" msgstr "Tidak dapat menghapus perangkat %s.\n" -#: lib/loopaes/loopaes.c:146 -msgid "Detected not yet supported GPG encrypted keyfile.\n" -msgstr "" +#: src/cryptsetup.c:71 src/cryptsetup.c:89 +msgid " " +msgstr " " -#: lib/loopaes/loopaes.c:147 -msgid "Please use gpg --decrypt | cryptsetup --keyfile=- ...\n" -msgstr "" +#: src/cryptsetup.c:71 +msgid "create device" +msgstr "buat perangkat" -#: lib/loopaes/loopaes.c:168 lib/loopaes/loopaes.c:188 -msgid "Incompatible loop-AES keyfile detected.\n" -msgstr "" +#: src/cryptsetup.c:72 src/cryptsetup.c:73 src/cryptsetup.c:74 +#: src/cryptsetup.c:82 +msgid "" +msgstr "" -#: lib/loopaes/loopaes.c:244 -msgid "Kernel doesn't support loop-AES compatible mapping.\n" -msgstr "" +#: src/cryptsetup.c:72 +msgid "remove device" +msgstr "hapus perangkat" -#: lib/tcrypt/tcrypt.c:475 -#, fuzzy, c-format -msgid "Error reading keyfile %s.\n" -msgstr "Kesalahan dalam pembacaan kata sandi.\n" +#: src/cryptsetup.c:73 +msgid "resize active device" +msgstr "ubah ukuran perangkat aktif" -#: lib/tcrypt/tcrypt.c:513 -#, c-format -msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" -msgstr "" +#: src/cryptsetup.c:74 +msgid "show device status" +msgstr "tampilkan status perangkat" -#: lib/tcrypt/tcrypt.c:543 -#, c-format -msgid "PBKDF2 hash algorithm %s not available, skipping.\n" -msgstr "" +#: src/cryptsetup.c:75 src/cryptsetup.c:77 +msgid " []" +msgstr " []" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 -msgid "Required kernel crypto interface not available.\n" -msgstr "" +#: src/cryptsetup.c:75 +msgid "formats a LUKS device" +msgstr "format sebuah perangkat LUKS" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 -msgid "Ensure you have algif_skcipher kernel module loaded.\n" -msgstr "" +#: src/cryptsetup.c:76 +msgid " " +msgstr " " -#: lib/tcrypt/tcrypt.c:707 -#, fuzzy, c-format -msgid "Activation is not supported for %d sector size.\n" -msgstr "Operasi ini tidak didukung untuk perangkat crypt %s.\n" +#: src/cryptsetup.c:76 +msgid "open LUKS device as mapping " +msgstr "buka perangkat LUKS sebagai pemetaan " -#: lib/tcrypt/tcrypt.c:713 -msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:744 -#, c-format -msgid "Activating TCRYPT system encryption for partition %s.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:1020 -#, fuzzy -msgid "This function is not supported without TCRYPT header load." -msgstr "Operasi ini tidak didukung untuk perangkat crypt %s.\n" - -#: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "" - -#: lib/verity/verity.c:94 -#, fuzzy, c-format -msgid "Device %s is not a valid VERITY device.\n" -msgstr "Perangkat %s bukan perangkat LUKS.\n" - -#: lib/verity/verity.c:101 -#, fuzzy, c-format -msgid "Unsupported VERITY version %d.\n" -msgstr "versi LUKS %d tidak didukung.\n" - -#: lib/verity/verity.c:131 -msgid "VERITY header corrupted.\n" -msgstr "" - -#: lib/verity/verity.c:166 -#, fuzzy, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "Format UUID yang disediakan berbeda, membuat yang baru.\n" - -#: lib/verity/verity.c:196 -#, fuzzy, c-format -msgid "Error during update of verity header on device %s.\n" -msgstr "Error selama memperbarui header LUKS di perangkat %s.\n" - -#: lib/verity/verity.c:276 -msgid "Kernel doesn't support dm-verity mapping.\n" -msgstr "" - -#: lib/verity/verity.c:287 -msgid "Verity device detected corruption after activation.\n" -msgstr "" - -#: lib/verity/verity_hash.c:59 -#, c-format -msgid "Spare area is not zeroed at position %.\n" -msgstr "" - -#: lib/verity/verity_hash.c:121 lib/verity/verity_hash.c:249 -#: lib/verity/verity_hash.c:277 lib/verity/verity_hash.c:284 -msgid "Device offset overflow.\n" -msgstr "" - -#: lib/verity/verity_hash.c:161 -#, c-format -msgid "Verification failed at position %.\n" -msgstr "" - -#: lib/verity/verity_hash.c:235 -msgid "Invalid size parameters for verity device.\n" -msgstr "" - -#: lib/verity/verity_hash.c:266 -msgid "Too many tree levels for verity volume.\n" -msgstr "" - -#: lib/verity/verity_hash.c:354 -msgid "Verification of data area failed.\n" -msgstr "" - -#: lib/verity/verity_hash.c:359 -msgid "Verification of root hash failed.\n" -msgstr "" - -#: lib/verity/verity_hash.c:365 -#, fuzzy -msgid "Input/output error while creating hash area.\n" -msgstr "Kehabisan memori ketika membaca kata sandi.\n" - -#: lib/verity/verity_hash.c:367 -msgid "Creation of hash area failed.\n" -msgstr "" - -#: lib/verity/verity_hash.c:414 -#, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" - -#: src/cryptsetup.c:91 -msgid "Can't do passphrase verification on non-tty inputs.\n" -msgstr "Tidak dapat melakukan verifikasi kata sandi di masukan bukan tty.\n" - -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 -msgid "No known cipher specification pattern detected.\n" -msgstr "Tidak ada pola spesifikasi cipher yang dikenal terdeteksi.\n" - -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" - -#: src/cryptsetup.c:218 -#, fuzzy -msgid "Option --key-file is required.\n" -msgstr "Pilihan --header-backup-file dibutuhkan.\n" - -#: src/cryptsetup.c:267 -#, fuzzy -msgid "No device header detected with this passphrase.\n" -msgstr "Tidak ada kunci tersedia dengan kata sandi ini.\n" - -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 -msgid "" -"Header dump with volume key is sensitive information\n" -"which allows access to encrypted partition without passphrase.\n" -"This dump should be always stored encrypted on safe place." -msgstr "" - -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "" - -#: src/cryptsetup.c:558 -msgid "# Tests are approximate using memory only (no storage IO).\n" -msgstr "" - -#: src/cryptsetup.c:583 src/cryptsetup.c:605 -msgid "# Algorithm | Key | Encryption | Decryption\n" -msgstr "" - -#: src/cryptsetup.c:587 -#, fuzzy, c-format -msgid "Cipher %s is not available.\n" -msgstr "Perangkat %s tidak aktif.\n" - -#: src/cryptsetup.c:614 -msgid "N/A" -msgstr "" - -#: src/cryptsetup.c:639 -#, fuzzy, c-format -msgid "Cannot read keyfile %s.\n" -msgstr "Tidak dapat membaca perangkat %s.\n" - -#: src/cryptsetup.c:643 -#, fuzzy, c-format -msgid "Cannot read %d bytes from keyfile %s.\n" -msgstr "Tidak dapat membaca %d bytes dari berkas kunci %s.\n" - -#: src/cryptsetup.c:672 -#, fuzzy -msgid "Really try to repair LUKS device header?" -msgstr "Kembalikan header perangkat LUKS dan slot kunci" - -#: src/cryptsetup.c:697 -#, c-format -msgid "This will overwrite data on %s irrevocably." -msgstr "Ini akan memaksa menulis data di %s secara permanen." - -#: src/cryptsetup.c:699 -msgid "memory allocation error in action_luksFormat" -msgstr "alokasi memori error dalam action_luksFormat" - -#: src/cryptsetup.c:717 -#, c-format -msgid "Cannot use %s as on-disk header.\n" -msgstr "" - -#: src/cryptsetup.c:784 -msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" - -#: src/cryptsetup.c:881 src/cryptsetup.c:937 -#, fuzzy, c-format -msgid "Key slot %d selected for deletion.\n" -msgstr "slot kunci %d terpilih untuk penghapusan.\n" - -#: src/cryptsetup.c:884 -#, c-format -msgid "Key %d not active. Can't wipe.\n" -msgstr "Kunci %d tidak aktif. Tidak dapat menghapus.\n" - -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"Ini adalah slot kunci terakhir. Perangkat mungkin akan menjadi tidak stabil " -"setelah menghapus kunci ini." - -#: src/cryptsetup.c:893 -#, fuzzy -msgid "Enter any remaining passphrase: " -msgstr "Masukan kata sandi LUKS yang tersisa: " - -#: src/cryptsetup.c:921 -#, fuzzy -msgid "Enter passphrase to be deleted: " -msgstr "Masukan kata sandi LUKS yang akan dihapus: " - -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, fuzzy, c-format -msgid "Enter any existing passphrase: " -msgstr "Masukan kata sandi: " - -#: src/cryptsetup.c:1052 -#, fuzzy -msgid "Enter passphrase to be changed: " -msgstr "Masukan kata sandi LUKS yang akan dihapus: " - -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 -#, fuzzy -msgid "Enter new passphrase: " -msgstr "Masukan kata sandi: " - -#: src/cryptsetup.c:1090 -msgid "Only one device argument for isLuks operation is supported.\n" -msgstr "" - -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 -msgid "Option --header-backup-file is required.\n" -msgstr "Pilihan --header-backup-file dibutuhkan.\n" - -#: src/cryptsetup.c:1304 -#, c-format -msgid "Unrecognized metadata device type %s.\n" -msgstr "" - -#: src/cryptsetup.c:1307 -msgid "Command requires device and mapped name as arguments.\n" -msgstr "" - -#: src/cryptsetup.c:1326 -#, fuzzy, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Ini adalah slot kunci terakhir. Perangkat mungkin akan menjadi tidak stabil " -"setelah menghapus kunci ini." - -#: src/cryptsetup.c:1360 -#, fuzzy -msgid " [--type ] []" -msgstr " " - -#: src/cryptsetup.c:1360 -#, fuzzy -msgid "open device as mapping " -msgstr "buka perangkat LUKS sebagai pemetaan " - -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 -msgid "" -msgstr "" - -#: src/cryptsetup.c:1361 -msgid "close device (remove mapping)" -msgstr "" - -#: src/cryptsetup.c:1362 -msgid "resize active device" -msgstr "ubah ukuran perangkat aktif" - -#: src/cryptsetup.c:1363 -msgid "show device status" -msgstr "tampilkan status perangkat" - -#: src/cryptsetup.c:1364 -msgid "benchmark cipher" -msgstr "" - -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 -msgid "" -msgstr "" - -#: src/cryptsetup.c:1365 -msgid "try to repair on-disk metadata" -msgstr "" - -#: src/cryptsetup.c:1366 -#, fuzzy -msgid "erase all keyslots (remove encryption key)" -msgstr "Besar dari kunci enkripsi" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 -msgid " []" -msgstr " []" - -#: src/cryptsetup.c:1367 -msgid "formats a LUKS device" -msgstr "format sebuah perangkat LUKS" - -#: src/cryptsetup.c:1368 +#: src/cryptsetup.c:77 msgid "add key to LUKS device" msgstr "tambahkan kunci ke perangkat LUKS" -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 +#: src/cryptsetup.c:78 msgid " []" msgstr " []" -#: src/cryptsetup.c:1369 +#: src/cryptsetup.c:78 msgid "removes supplied key or key file from LUKS device" msgstr "hapus kunci yang diberikan atau berkas kunci dari perangkat LUKS" -#: src/cryptsetup.c:1370 -#, fuzzy -msgid "changes supplied key or key file of LUKS device" -msgstr "hapus kunci yang diberikan atau berkas kunci dari perangkat LUKS" - -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:79 src/cryptsetup.c:88 msgid " " msgstr " " -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:79 msgid "wipes key with number from LUKS device" msgstr "hapus kunci dengan nomor dari perangkat LUKS" -#: src/cryptsetup.c:1372 +#: src/cryptsetup.c:80 src/cryptsetup.c:81 src/cryptsetup.c:83 +#: src/cryptsetup.c:84 src/cryptsetup.c:85 src/cryptsetup.c:86 +#: src/cryptsetup.c:87 +msgid "" +msgstr "" + +#: src/cryptsetup.c:80 msgid "print UUID of LUKS device" msgstr "tampilkan UUID dari perangkat LUKS" -#: src/cryptsetup.c:1373 +#: src/cryptsetup.c:81 msgid "tests for LUKS partition header" msgstr "periksa untuk header partisi LUKS" -#: src/cryptsetup.c:1374 -msgid "dump LUKS partition information" -msgstr "dump informasi partisi LUKS" +#: src/cryptsetup.c:82 +msgid "remove LUKS mapping" +msgstr "hapus pemetaan LUKS" -#: src/cryptsetup.c:1375 -#, fuzzy -msgid "dump TCRYPT device information" +#: src/cryptsetup.c:83 +msgid "dump LUKS partition information" msgstr "dump informasi partisi LUKS" -#: src/cryptsetup.c:1376 +#: src/cryptsetup.c:84 msgid "Suspend LUKS device and wipe key (all IOs are frozen)." msgstr "Hentikan perangkat LUKS dan hapus kunci (semua IO dihentikan)." -#: src/cryptsetup.c:1377 +#: src/cryptsetup.c:85 msgid "Resume suspended LUKS device." msgstr "Lanjutkan perangkat LUKS yang dihentikan." -#: src/cryptsetup.c:1378 +#: src/cryptsetup.c:86 msgid "Backup LUKS device header and keyslots" msgstr "Buat cadangan header perangkat LUKS dan slot kunci" -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:87 msgid "Restore LUKS device header and keyslots" msgstr "Kembalikan header perangkat LUKS dan slot kunci" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:88 +msgid "identical to luksKillSlot - DEPRECATED - see man page" +msgstr "identik ke luksKillSlot - DITINGGALKAN - lihat halaman petunjuk penggunaan" + +#: src/cryptsetup.c:89 +msgid "modify active device - DEPRECATED - see man page" +msgstr "modifikasi perangkat aktif - DITINGGALKAN - lihat halaman petunjuk penggunaan" + +#: src/cryptsetup.c:180 +msgid "Command successful.\n" +msgstr "Perintah berhasil.\n" + +#: src/cryptsetup.c:194 +#, c-format +msgid "Command failed with code %i" +msgstr "Perintah gagal dengan kode %i" + +#: src/cryptsetup.c:222 msgid "" -"\n" -" is one of:\n" +"The reload action is deprecated. Please use \"dmsetup reload\" in case you really need this functionality.\n" +"WARNING: do not use reload to touch LUKS devices. If that is the case, hit Ctrl-C now.\n" msgstr "" -"\n" -" adalah salah satu dari:\n" +"Aksi muat kembali telah ditinggalkan. Mohon gunakan \"dmsetup reload\" dalam kasus anda benar benar membutuhkan fungsi ini.\n" +"PERINGATAN: jangan gunakan muat-kembali untuk menyentuk perangkat LUKS. Jika itu masalahnya, tekan Ctrl-C sekarang.\n" + +#: src/cryptsetup.c:390 +#, c-format +msgid "This will overwrite data on %s irrevocably." +msgstr "Ini akan memaksa menulis data di %s secara permanen." + +#: src/cryptsetup.c:391 +msgid "memory allocation error in action_luksFormat" +msgstr "alokasi memori error dalam action_luksFormat" + +#: src/cryptsetup.c:421 +msgid "Obsolete option --non-exclusive is ignored.\n" +msgstr "Pilihan sudah ditinggalkan --no-exclusive diabaikan.\n" + +#: src/cryptsetup.c:581 src/cryptsetup.c:603 +msgid "Option --header-backup-file is required.\n" +msgstr "Pilihan --header-backup-file dibutuhkan.\n" -#: src/cryptsetup.c:1402 +#: src/cryptsetup.c:637 msgid "" "\n" -"You can also use old syntax aliases:\n" -"\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" -"\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" +" is one of:\n" msgstr "" +"\n" +" adalah salah satu dari:\n" -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:643 #, c-format msgid "" "\n" @@ -1132,824 +664,151 @@ msgstr "" " adalah perangkat untuk dibuat dibawah %s\n" " adalah perangkat terenkripsi\n" " adalah nomor slot kunci LUKS untuk dimodifikasi\n" -" adalah berkas kunci opsional untuk kunci baru untuk aksi " -"luksAddKey\n" +" adalah berkas kunci opsional untuk kunci baru untuk aksi luksAddKey\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:650 #, c-format msgid "" "\n" -"Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" -"Default PBKDF2 iteration time for LUKS: %d (ms)\n" -msgstr "" - -#: src/cryptsetup.c:1420 -#, fuzzy, c-format -msgid "" -"\n" "Default compiled-in device cipher parameters:\n" -"\tloop-AES: %s, Key %d bits\n" "\tplain: %s, Key: %d bits, Password hashing: %s\n" -"\tLUKS1: %s, Key: %d bits, LUKS header hashing: %s, RNG: %s\n" +"\tLUKS1: %s, Key: %d bits, LUKS header hashing: %s\n" msgstr "" "\n" "Parameter baku yang terkompilasi dalam perangkat penyandi:\n" "\tterbuka: %s, Kunci: %d bits, Hash kata sandi : %s\n" "\tLUKS1 : %s, Kunci: %d bits, Hash kepala LUKS: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 -#, c-format -msgid "%s: requires %s as arguments" -msgstr "%s: membutuhkan %s sebagai argumen" - -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:697 msgid "Show this help message" msgstr "Tampilkan pesan bantuan ini" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:698 msgid "Display brief usage" msgstr "Tampilkan penggunaan singkat" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:702 msgid "Help options:" msgstr "Pilihan bantuan:" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 -msgid "Print package version" -msgstr "Tampilkan versi paket" - -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:703 msgid "Shows more detailed error messages" msgstr "Tampilkan pesan kesalahan secara lebih detail" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:704 msgid "Show debug messages" msgstr "Tampilkan pesan penelusuran" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:705 msgid "The cipher used to encrypt the disk (see /proc/crypto)" msgstr "Cipher yang digunakan untuk mengenkripsi ke disk (lihat /proc/crypto)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:706 msgid "The hash used to create the encryption key from the passphrase" msgstr "Hash yang digunakan untuk membuat kunci enkripsi dari kata sandi" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:707 msgid "Verifies the passphrase by asking for it twice" msgstr "Verifikasi kata sandi dengan menanyakan itu dua kali" -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 -#, fuzzy -msgid "Read the key from a file." -msgstr "Baca volume (master) kunci dari berkas." +#: src/cryptsetup.c:708 +msgid "Read the key from a file (can be /dev/random)" +msgstr "Baca kunci dari sebuah berkas (dapat berupa /dev/random)" -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:709 msgid "Read the volume (master) key from file." msgstr "Baca volume (master) kunci dari berkas." -#: src/cryptsetup.c:1484 -msgid "Dump volume (master) key instead of keyslots info." -msgstr "" - -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:710 msgid "The size of the encryption key" msgstr "Besar dari kunci enkripsi" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:710 msgid "BITS" msgstr "BITS" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 -msgid "Limits the read from keyfile" -msgstr "" - -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 -msgid "bytes" -msgstr "" - -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 -msgid "Number of bytes to skip in keyfile" -msgstr "" - -#: src/cryptsetup.c:1488 -msgid "Limits the read from newly added keyfile" -msgstr "" - -#: src/cryptsetup.c:1489 -msgid "Number of bytes to skip in newly added keyfile" -msgstr "" - -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:711 msgid "Slot number for new key (default is first free)" msgstr "Nomor slot untuk kunci baru (baku adalah yang kosong pertama)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:712 msgid "The size of the device" msgstr "Besar dari perangkat" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:712 src/cryptsetup.c:713 src/cryptsetup.c:714 +#: src/cryptsetup.c:722 msgid "SECTORS" msgstr "SEKTOR" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:713 msgid "The start offset in the backend device" msgstr "Awal ofset dalam perangkat backend" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:714 msgid "How many sectors of the encrypted data to skip at the beginning" msgstr "Berapa banyak sektor dari data terenkripsi yang dilewatkan di awal" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:715 msgid "Create a readonly mapping" msgstr "Buat pemetaan baca-saja" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:716 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "waktu iterasi PBKDF2 untuk LUKS (dalam mdet)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:717 msgid "msecs" msgstr "mdetik" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:718 msgid "Do not ask for confirmation" msgstr "Jangan tanya untuk konfirmasi" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:719 +msgid "Print package version" +msgstr "Tampilkan versi paket" + +#: src/cryptsetup.c:720 msgid "Timeout for interactive passphrase prompt (in seconds)" msgstr "Waktu habis untuk pertanyaan interaktif kata sandi (dalam detik)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:720 msgid "secs" msgstr "detik" -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:721 msgid "How often the input of the passphrase can be retried" msgstr "Seberapa sering masukan dari kata sandi dapat dicoba" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:722 msgid "Align payload at sector boundaries - for luksFormat" msgstr "Sesuaikan muatan di batas sektor - untuk luksFormat" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:723 +msgid "(Obsoleted, see man page.)" +msgstr "(Ditinggalkan, lihat halaman petunjuk penggunaan.)" + +#: src/cryptsetup.c:724 msgid "File with LUKS header and keyslots backup." msgstr "Berkas dengan header LUKS dan cadangan slot kunci." -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 -msgid "Use /dev/random for generating volume key." -msgstr "" - -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 -msgid "Use /dev/urandom for generating volume key." -msgstr "" - -#: src/cryptsetup.c:1503 -msgid "Share device with another non-overlapping crypt segment." -msgstr "" - -#: src/cryptsetup.c:1504 src/veritysetup.c:385 -#, fuzzy -msgid "UUID for device to use." -msgstr "DM-UUID untuk perangkat %s telah terpotong.\n" - -#: src/cryptsetup.c:1505 -msgid "Allow discards (aka TRIM) requests for device." -msgstr "" - -#: src/cryptsetup.c:1506 -msgid "Device or file with separated LUKS header." -msgstr "" - -#: src/cryptsetup.c:1507 -msgid "Do not activate device, just check passphrase." -msgstr "" - -#: src/cryptsetup.c:1508 -msgid "Use hidden header (hidden TCRYPT device)." -msgstr "" - -#: src/cryptsetup.c:1509 -msgid "Device is system TCRYPT drive (with bootloader)." -msgstr "" - -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "" +#: src/cryptsetup.c:742 +msgid "[OPTION...] ]" +msgstr "[PILIHAN...] ]" -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "" +#: src/cryptsetup.c:778 +msgid "Key size must be a multiple of 8 bits" +msgstr "Kunci harus kelipatan dari 8 bit" -#: src/cryptsetup.c:1512 -msgid "Type of device metadata: luks, plain, loopaes, tcrypt." -msgstr "" +#: src/cryptsetup.c:782 +msgid "Argument missing." +msgstr "Argumen hilang." -#: src/cryptsetup.c:1513 -msgid "Disable password quality check (if enabled)." -msgstr "" +#: src/cryptsetup.c:788 +msgid "Unknown action." +msgstr "Aksi tidak diketahui." -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "" - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 -#, fuzzy -msgid "[OPTION...] " -msgstr "[PILIHAN...] ]" - -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 -msgid "Argument missing." -msgstr "Argumen hilang." - -#: src/cryptsetup.c:1634 src/veritysetup.c:445 -msgid "Unknown action." -msgstr "Aksi tidak diketahui." - -#: src/cryptsetup.c:1644 -msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "" - -#: src/cryptsetup.c:1649 -msgid "Option --allow-discards is allowed only for open operation.\n" -msgstr "" - -#: src/cryptsetup.c:1657 -msgid "" -"Option --key-size is allowed only for luksFormat, open and benchmark.\n" -"To limit read from keyfile use --keyfile-size=(bytes)." -msgstr "" - -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" - -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 -msgid "Key size must be a multiple of 8 bits" -msgstr "Kunci harus kelipatan dari 8 bit" - -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 -#, fuzzy -msgid "Key slot is invalid." -msgstr "Slot kunci %d tidak valid.\n" - -#: src/cryptsetup.c:1683 -msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" - -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 -msgid "Negative number for option not permitted." -msgstr "" - -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 -msgid "Only one of --use-[u]random options is allowed." -msgstr "" - -#: src/cryptsetup.c:1699 -msgid "Option --use-[u]random is allowed only for luksFormat." -msgstr "" - -#: src/cryptsetup.c:1703 -msgid "Option --uuid is allowed only for luksFormat and luksUUID." -msgstr "" - -#: src/cryptsetup.c:1707 -msgid "Option --align-payload is allowed only for luksFormat." -msgstr "" - -#: src/cryptsetup.c:1713 -#, fuzzy -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "Operasi ini hanya didukunga untuk perangkat LUKS.\n" - -#: src/cryptsetup.c:1719 -#, fuzzy -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "Operasi ini hanya didukunga untuk perangkat LUKS.\n" - -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" - -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "" - -#: src/cryptsetup.c:1735 -#, fuzzy -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "Operasi ini hanya didukunga untuk perangkat LUKS.\n" - -#: src/veritysetup.c:58 -msgid "Invalid salt string specified.\n" -msgstr "" - -#: src/veritysetup.c:88 -#, c-format -msgid "Cannot create hash image %s for writing.\n" -msgstr "" - -#: src/veritysetup.c:148 -msgid "Invalid root hash string specified.\n" -msgstr "" - -#: src/veritysetup.c:308 -#, fuzzy -msgid " " -msgstr " " - -#: src/veritysetup.c:308 -#, fuzzy -msgid "format device" -msgstr "buat perangkat" - -#: src/veritysetup.c:309 -msgid " " -msgstr "" - -#: src/veritysetup.c:309 -#, fuzzy -msgid "verify device" -msgstr "hapus perangkat" - -#: src/veritysetup.c:310 -msgid " " -msgstr "" - -#: src/veritysetup.c:310 -#, fuzzy -msgid "create active device" -msgstr "ubah ukuran perangkat aktif" - -#: src/veritysetup.c:311 -#, fuzzy -msgid "remove (deactivate) device" -msgstr "ubah ukuran perangkat aktif" - -#: src/veritysetup.c:312 -#, fuzzy -msgid "show active device status" -msgstr "tampilkan status perangkat" - -#: src/veritysetup.c:313 -#, fuzzy -msgid "" -msgstr "" - -#: src/veritysetup.c:313 -msgid "show on-disk information" -msgstr "" - -#: src/veritysetup.c:332 -#, c-format -msgid "" -"\n" -" is the device to create under %s\n" -" is the data device\n" -" is the device containing verification data\n" -" hash of the root node on \n" -msgstr "" - -#: src/veritysetup.c:339 -#, c-format -msgid "" -"\n" -"Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" -msgstr "" - -#: src/veritysetup.c:377 -msgid "Do not use verity superblock" -msgstr "" - -#: src/veritysetup.c:378 -msgid "Format type (1 - normal, 0 - original Chrome OS)" -msgstr "" - -#: src/veritysetup.c:378 -msgid "number" -msgstr "" - -#: src/veritysetup.c:379 -#, fuzzy -msgid "Block size on the data device" -msgstr "Besar dari perangkat" - -#: src/veritysetup.c:380 -#, fuzzy -msgid "Block size on the hash device" -msgstr "Besar dari perangkat" - -#: src/veritysetup.c:381 -msgid "The number of blocks in the data file" -msgstr "" - -#: src/veritysetup.c:381 -msgid "blocks" -msgstr "" - -#: src/veritysetup.c:382 -#, fuzzy -msgid "Starting offset on the hash device" -msgstr "Awal ofset dalam perangkat backend" - -#: src/veritysetup.c:383 -msgid "Hash algorithm" -msgstr "" - -#: src/veritysetup.c:383 -msgid "string" -msgstr "" - -#: src/veritysetup.c:384 -msgid "Salt" -msgstr "" - -#: src/veritysetup.c:384 -msgid "hex string" -msgstr "" - -#: src/cryptsetup_reencrypt.c:147 -#, fuzzy, c-format -msgid "Cannot exclusively open %s, device in use.\n" -msgstr "Tidak dapat membuka perangkat %s.\n" - -#: src/cryptsetup_reencrypt.c:151 -#, fuzzy, c-format -msgid "Cannot open device %s\n" -msgstr "Tidak dapat membuka perangkat %s.\n" - -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 -msgid "Allocation of aligned memory failed.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:168 -#, c-format -msgid "Cannot read device %s.\n" -msgstr "Tidak dapat membaca perangkat %s.\n" - -#: src/cryptsetup_reencrypt.c:179 -#, c-format -msgid "Marking LUKS device %s unusable.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:184 -#, c-format -msgid "Marking LUKS device %s usable.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:200 -#, fuzzy, c-format -msgid "Cannot write device %s.\n" -msgstr "Tidak dapat menghapus perangkat %s.\n" - -#: src/cryptsetup_reencrypt.c:281 -#, fuzzy -msgid "Cannot write reencryption log file.\n" -msgstr "Tidak dapat menulis berkas cadangan header %s.\n" - -#: src/cryptsetup_reencrypt.c:337 -#, fuzzy -msgid "Cannot read reencryption log file.\n" -msgstr "Tidak dapat membaca berkas cadangan header %s.\n" - -#: src/cryptsetup_reencrypt.c:374 +#: src/cryptsetup.c:803 #, c-format -msgid "Log file %s exists, resuming reencryption.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:403 -msgid "Activating temporary device using old LUKS header.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:414 -msgid "Activating temporary device using new LUKS header.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:424 -msgid "Activation of temporary devices failed.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:450 -#, fuzzy, c-format -msgid "New LUKS header for device %s created.\n" -msgstr "Tidak dapat menghapus kepala di perangkat %s.\n" - -#: src/cryptsetup_reencrypt.c:458 -#, c-format -msgid "Activated keyslot %i.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:484 -#, fuzzy, c-format -msgid "LUKS header backup of device %s created.\n" -msgstr "Header LUKS terdeteksi tetapi perangkat %s terlalu kecil.\n" - -#: src/cryptsetup_reencrypt.c:532 -msgid "Creation of LUKS backup headers failed.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:634 -#, fuzzy, c-format -msgid "Cannot restore LUKS header on device %s.\n" -msgstr "Tidak dapat menghapus kepala di perangkat %s.\n" - -#: src/cryptsetup_reencrypt.c:636 -#, fuzzy, c-format -msgid "LUKS header on device %s restored.\n" -msgstr "Header LUKS terdeteksi tetapi perangkat %s terlalu kecil.\n" - -#: src/cryptsetup_reencrypt.c:669 -#, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" - -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 -#, fuzzy -msgid "Cannot seek to device offset.\n" -msgstr "Tidak dapat membaca perangkat %s.\n" - -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 -#, fuzzy -msgid "Cannot open temporary LUKS header file.\n" -msgstr "Tidak dapat membuka berkas cadangan header %s.\n" - -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 -#, fuzzy -msgid "Cannot get device size.\n" -msgstr "Tidak dapat membaca perangkat %s.\n" - -#: src/cryptsetup_reencrypt.c:919 -msgid "Interrupted by a signal.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:921 -msgid "IO error during reencryption.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 -#, fuzzy, c-format -msgid "Enter passphrase for key slot %u: " -msgstr "Masukan kasa sandi baru untuk slot kunci: " - -#: src/cryptsetup_reencrypt.c:1136 -#, fuzzy -msgid "Cannot open reencryption log file.\n" -msgstr "Tidak dapat membuka berkas cadangan header %s.\n" - -#: src/cryptsetup_reencrypt.c:1262 -msgid "Reencryption block size" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1262 -msgid "MiB" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1274 -msgid "Use fsync after each block." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1275 -msgid "Update log file after every block." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1276 -msgid "Use only this slot (others will be disabled)." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1279 -msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1280 -msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1281 -#, fuzzy -msgid "Create new header on not encrypted device." -msgstr "Tidak dapat menghapus kepala di perangkat %s.\n" - -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1298 -msgid "[OPTION...] " -msgstr "" - -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1313 -#, c-format -msgid "Reencryption will change: volume key%s%s%s%s.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1314 -msgid ", set hash to " -msgstr "" - -#: src/cryptsetup_reencrypt.c:1315 -msgid ", set cipher to " -msgstr "" - -#: src/cryptsetup_reencrypt.c:1320 -msgid "Argument required." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 -#, fuzzy -msgid "Invalid device size specification." -msgstr "Perangkat %s tidak valid.\n" - -#: src/cryptsetup_reencrypt.c:1363 -msgid "Maximum device reduce size is 64 MiB." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1366 -#, fuzzy -msgid "Reduce size must be multiple of 512 bytes sector." -msgstr "Kunci harus kelipatan dari 8 bit" - -#: src/cryptsetup_reencrypt.c:1370 -msgid "Option --new must be used together with --reduce-device-size." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "" - -#: src/utils_tools.c:151 -#, fuzzy -msgid "Error reading response from terminal.\n" -msgstr "Kesalahan dalam pembacaan kata sandi dari terminal.\n" - -#: src/utils_tools.c:173 -msgid "Command successful.\n" -msgstr "Perintah berhasil.\n" - -#: src/utils_tools.c:191 -#, c-format -msgid "Command failed with code %i" -msgstr "Perintah gagal dengan kode %i" - -#: src/utils_password.c:42 -#, c-format -msgid "Cannot check password quality: %s\n" -msgstr "" - -#: src/utils_password.c:50 -#, fuzzy, c-format -msgid "" -"Password quality check failed:\n" -" %s\n" -msgstr "setpriority %u gagal: %s" - -#~ msgid "Key slot %d verified.\n" -#~ msgstr "Slot kunci %d telah terverifikasi.\n" - -#~ msgid "Invalid key size %d.\n" -#~ msgstr "Besar kunci %d tidak valid.\n" - -#~ msgid "Enter LUKS passphrase: " -#~ msgstr "Masukan kata sandi LUKS: " - -#~ msgid "" -#~ "Warning: exhausting read requested, but key file %s is not a regular " -#~ "file, function might never return.\n" -#~ msgstr "" -#~ "Peringatan: pembacaan yang melelahkan diminta, tetapi berkas kunci %s " -#~ "bukan sebuah berkas biasa, fungsi mungkin tidak pernah kembali.\n" - -#~ msgid "exclusive " -#~ msgstr "ekslusif " - -#~ msgid "writable" -#~ msgstr "dapat-ditulis" - -#~ msgid "read-only" -#~ msgstr "baca-saja" - -#~ msgid "Cannot open device: %s\n" -#~ msgstr "Tidak dapat membuka perangkat: %s\n" - -#~ msgid "BLKROGET failed on device %s.\n" -#~ msgstr "BLKROGET gagal di perangkat %s.\n" - -#~ msgid "BLKGETSIZE failed on device %s.\n" -#~ msgstr "BLKGETSIZE gagal di perangkat %s.\n" - -#~ msgid "WARNING!!! Possibly insecure memory. Are you root?\n" -#~ msgstr "" -#~ "PERINGATAN!!! Kemungkinan menggunakan memori tidak aman. Apakah anda " -#~ "root?\n" - -#~ msgid "Unable to obtain sector size for %s" -#~ msgstr "Tidak dapat mendapatkan ukuran sektor untuk %s" - -#~ msgid "Failed to obtain device mapper directory." -#~ msgstr "Gagal untuk memperoleh direktori pemeta-perangkat." - -#~ msgid "Backup file %s doesn't exist.\n" -#~ msgstr "Berkas cadangan %s tidak ada.\n" - -#~ msgid "%s is not LUKS device.\n" -#~ msgstr "%s bukan perangkat LUKS.\n" - -#~ msgid "%s is not LUKS device." -#~ msgstr "%s bukan perangkat LUKS." - -#~ msgid "Cannot open file %s.\n" -#~ msgstr "Tidak dapat membuka berkas %s.\n" - -#~ msgid "Failed to write to key storage.\n" -#~ msgstr "Gagal untuk menulis di penyimpanan kunci.\n" - -#~ msgid "Failed to read from key storage.\n" -#~ msgstr "Gagal untuk membaca dari penyimpanan kunci.\n" - -#~ msgid "remove LUKS mapping" -#~ msgstr "hapus pemetaan LUKS" - -#~ msgid "identical to luksKillSlot - DEPRECATED - see man page" -#~ msgstr "" -#~ "identik ke luksKillSlot - DITINGGALKAN - lihat halaman petunjuk penggunaan" - -#~ msgid "modify active device - DEPRECATED - see man page" -#~ msgstr "" -#~ "modifikasi perangkat aktif - DITINGGALKAN - lihat halaman petunjuk " -#~ "penggunaan" - -#~ msgid "" -#~ "The reload action is deprecated. Please use \"dmsetup reload\" in case " -#~ "you really need this functionality.\n" -#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, " -#~ "hit Ctrl-C now.\n" -#~ msgstr "" -#~ "Aksi muat kembali telah ditinggalkan. Mohon gunakan \"dmsetup reload\" " -#~ "dalam kasus anda benar benar membutuhkan fungsi ini.\n" -#~ "PERINGATAN: jangan gunakan muat-kembali untuk menyentuk perangkat LUKS. " -#~ "Jika itu masalahnya, tekan Ctrl-C sekarang.\n" - -#~ msgid "Obsolete option --non-exclusive is ignored.\n" -#~ msgstr "Pilihan sudah ditinggalkan --no-exclusive diabaikan.\n" - -#~ msgid "Read the key from a file (can be /dev/random)" -#~ msgstr "Baca kunci dari sebuah berkas (dapat berupa /dev/random)" - -#~ msgid "(Obsoleted, see man page.)" -#~ msgstr "(Ditinggalkan, lihat halaman petunjuk penggunaan.)" +msgid "%s: requires %s as arguments" +msgstr "%s: membutuhkan %s sebagai argumen" diff --git a/po/insert-header.sin b/po/insert-header.sin deleted file mode 100644 index b26de01..0000000 --- a/po/insert-header.sin +++ /dev/null @@ -1,23 +0,0 @@ -# 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 -} diff --git a/po/it.gmo b/po/it.gmo deleted file mode 100644 index 637a4d0..0000000 Binary files a/po/it.gmo and /dev/null differ diff --git a/po/it.po b/po/it.po index 9b362a7..4280ef2 100644 --- a/po/it.po +++ b/po/it.po @@ -1,541 +1,446 @@ # Italian translation for cryptsetup. -# Copyright (C) 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. +# Copyright (C) 2010, 2011, 2012 Free Software Foundation, Inc. # This file is put in the public domain. # Sergio Zanchetta , 2010, 2011, 2012. -# Milo Casagrande , 2013, 2014. # msgid "" msgstr "" -"Project-Id-Version: cryptsetup-1.6.7\n" +"Project-Id-Version: cryptsetup-1.4.2\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: 2015-03-19 14:15+0100\n" -"Last-Translator: Milo Casagrande \n" +"POT-Creation-Date: 2012-04-03 00:12+0200\n" +"PO-Revision-Date: 2012-04-05 23:25+0200\n" +"Last-Translator: Sergio Zanchetta \n" "Language-Team: Italian \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n!=1);\n" -"X-Generator: Poedit 1.7.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: lib/libdevmapper.c:252 -msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "" -"Impossibile inizializzare device-mapper: in esecuzione come utente non-" -"root.\n" - -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:184 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" -msgstr "" -"Impossibile inizializzare device-mapper. Forse il modulo kernel dm_mod non è " -"caricato.\n" +msgstr "Impossibile inizializzare device-mapper. Forse il modulo kernel dm_mod non è caricato.\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:412 #, c-format msgid "DM-UUID for device %s was truncated.\n" msgstr "Il DM-UUID per il device %s è stato troncato.\n" -#: lib/libdevmapper.c:698 -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Le opzioni di prestazioni richieste per dmcrypt non sono supportate.\n" - -#: lib/random.c:76 +#: lib/random.c:74 msgid "" "System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" +"Please move mouse or type some text in another window to gather some random events.\n" msgstr "" -"Il sistema non ha un'entropia sufficiente mentre viene generata la chiave di " -"volume.\n" -"Muovere il mouse o digitare del testo in un'altra finestra per accumulare " -"più eventi casuali.\n" +"Il sistema non ha un'entropia sufficiente mentre viene generata la chiave di volume.\n" +"Muovere il mouse o digitare del testo in un'altra finestra per accumulare più eventi casuali.\n" -#: lib/random.c:80 +#: lib/random.c:78 #, c-format msgid "Generating key (%d%% done).\n" msgstr "Generazione chiave (%d%% completato).\n" -#: lib/random.c:169 +#: lib/random.c:167 msgid "Fatal error during RNG initialisation.\n" msgstr "Errore fatale durante l'inizializzazione dell'RNG.\n" -#: lib/random.c:206 +#: lib/random.c:194 msgid "Unknown RNG quality requested.\n" msgstr "Qualità richiesta per l'RNG sconosciuta.\n" -#: lib/random.c:211 +#: lib/random.c:199 #, c-format msgid "Error %d reading from RNG: %s\n" msgstr "Errore %d nel leggere dall'RNG: %s\n" -#: lib/setup.c:200 +#: lib/setup.c:162 msgid "Cannot initialize crypto RNG backend.\n" msgstr "Impossibile inizializzare il backend crypto RNG.\n" -#: lib/setup.c:206 +#: lib/setup.c:168 msgid "Cannot initialize crypto backend.\n" msgstr "Impossibile inizializzare il backend crypto.\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 +#: lib/setup.c:190 #, c-format msgid "Hash algorithm %s not supported.\n" msgstr "L'algoritmo di hash %s non è supportato.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 +#: lib/setup.c:193 lib/loopaes/loopaes.c:87 #, c-format msgid "Key processing error (using hash %s).\n" msgstr "Errore nell'elaborazione della chiave (usando l'hash %s).\n" -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" -"Impossibile determinare il tipo di device. Attivazione incompatibile del " -"device?\n" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Questa operazione è supportata solo per i device LUKS.\n" - -#: lib/setup.c:320 +#: lib/setup.c:229 msgid "All key slots full.\n" msgstr "Tutti gli slot di chiave sono pieni.\n" -#: lib/setup.c:327 +#: lib/setup.c:236 #, c-format msgid "Key slot %d is invalid, please select between 0 and %d.\n" msgstr "Lo slot di chiave %d non è valido, selezionarne uno tra 0 e %d.\n" -#: lib/setup.c:333 +#: lib/setup.c:242 #, c-format msgid "Key slot %d is full, please select another one.\n" msgstr "Lo slot di chiave %d è pieno, selezionarne un altro.\n" -#: lib/setup.c:472 +#: lib/setup.c:340 #, c-format msgid "Enter passphrase for %s: " msgstr "Inserire la passphrase per %s: " -#: lib/setup.c:653 +#: lib/setup.c:500 +msgid "Cannot find a free loopback device.\n" +msgstr "Impossibile trovare un device di loopback libero.\n" + +#: lib/setup.c:508 +msgid "Attaching loopback device failed (loop device with autoclear flag is required).\n" +msgstr "Collegamento del device di loopback non riuscito (è richiesto un device di loop con flag autoclear).\n" + +#: lib/setup.c:564 #, c-format -msgid "Header detected but device %s is too small.\n" -msgstr "Rilevato un header, ma il device %s è troppo piccolo.\n" +msgid "LUKS header detected but device %s is too small.\n" +msgstr "Rilevato un header LUKS ma il device %s è troppo piccolo.\n" -#: lib/setup.c:669 lib/setup.c:1420 +#: lib/setup.c:580 lib/setup.c:1068 msgid "This operation is not supported for this device type.\n" msgstr "Questa operazione non è supportata per questo tipo di device.\n" -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:643 lib/setup.c:1035 lib/setup.c:1808 #, c-format msgid "Device %s is not active.\n" msgstr "Il device %s non è attivo.\n" -#: lib/setup.c:925 +#: lib/setup.c:661 #, c-format msgid "Underlying device for crypt device %s disappeared.\n" msgstr "Device sottostante a quello cifrato %s scomparso.\n" -#: lib/setup.c:994 +#: lib/setup.c:775 msgid "Invalid plain crypt parameters.\n" msgstr "Parametri di cifratura in chiaro non validi.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:780 lib/setup.c:885 msgid "Invalid key size.\n" msgstr "Dimensione della chiave non valida.\n" -#: lib/setup.c:1004 lib/setup.c:1124 -msgid "UUID is not supported for this crypt type.\n" -msgstr "UUID non è supportato per questo tipo di cifratura.\n" - -#: lib/setup.c:1046 +#: lib/setup.c:821 msgid "Can't format LUKS without device.\n" msgstr "Impossibile formattare LUKS senza device.\n" -#: lib/setup.c:1089 +#: lib/setup.c:859 #, c-format msgid "Cannot format device %s which is still in use.\n" msgstr "Impossibile formattare il device %s che risulta ancora in uso.\n" -#: lib/setup.c:1092 -#, c-format -msgid "Cannot format device %s, permission denied.\n" -msgstr "Impossibile formattare il device %s, permessi non concessi.\n" - -#: lib/setup.c:1096 +#: lib/setup.c:862 #, c-format msgid "Cannot wipe header on device %s.\n" msgstr "Impossibile ripulire l'header sul device %s.\n" -#: lib/setup.c:1114 +#: lib/setup.c:880 msgid "Can't format LOOPAES without device.\n" msgstr "Impossibile formattare LOOPAES senza device.\n" -#: lib/setup.c:1152 -msgid "Can't format VERITY without device.\n" -msgstr "Impossibile formattare VERITY senza device.\n" - -#: lib/setup.c:1160 lib/verity/verity.c:106 -#, c-format -msgid "Unsupported VERITY hash type %d.\n" -msgstr "Tipo di hash %d VERITY non supportato.\n" - -#: lib/setup.c:1166 lib/verity/verity.c:114 -msgid "Unsupported VERITY block size.\n" -msgstr "Dimensione blocco VERITY non supportata.\n" - -#: lib/setup.c:1171 lib/verity/verity.c:76 -msgid "Unsupported VERITY hash offset.\n" -msgstr "Offset hash VERITY non supportato.\n" - -#: lib/setup.c:1285 +#: lib/setup.c:940 #, c-format msgid "Unknown crypt device type %s requested.\n" msgstr "Richiesto device cifrato di tipo %s sconosciuto.\n" -#: lib/setup.c:1435 +#: lib/setup.c:1083 msgid "Do you really want to change UUID of device?" msgstr "Cambiare veramente l'UUID del device?" -#: lib/setup.c:1545 +#: lib/setup.c:1168 lib/setup.c:1215 lib/setup.c:1264 lib/setup.c:1330 +#: lib/setup.c:1406 lib/setup.c:1487 lib/setup.c:1533 lib/setup.c:1868 +#: lib/setup.c:1973 lib/setup.c:2112 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Questa operazione è supportata solo per i device LUKS.\n" + +#: lib/setup.c:1175 #, c-format msgid "Volume %s is not active.\n" msgstr "Il volume %s non è attivo.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1187 #, c-format msgid "Volume %s is already suspended.\n" msgstr "Il volume %s è già sospeso.\n" -#: lib/setup.c:1563 -#, c-format -msgid "Suspend is not supported for device %s.\n" -msgstr "La sospensione non è supportata per il device %s.\n" - -#: lib/setup.c:1565 -#, c-format -msgid "Error during suspending device %s.\n" -msgstr "Errore durante la sospensione del device %s.\n" - -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1225 lib/setup.c:1274 #, c-format msgid "Volume %s is not suspended.\n" msgstr "Il volume %s non è sospeso.\n" -#: lib/setup.c:1605 -#, c-format -msgid "Resume is not supported for device %s.\n" -msgstr "Il ripristino non è supportato per il device %s.\n" - -#: lib/setup.c:1607 lib/setup.c:1659 -#, c-format -msgid "Error during resuming device %s.\n" -msgstr "Errore durante il ripristino del device %s.\n" - -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 +#: lib/setup.c:1281 lib/setup.c:1658 lib/setup.c:1672 src/cryptsetup.c:343 msgid "Enter passphrase: " msgstr "Inserire la passphrase: " -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1344 lib/setup.c:1420 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"Impossibile aggiungere uno slot di chiave, tutti gli slot sono disabilitati " -"e nessuna chiave di volume è stata fornita.\n" +msgstr "Impossibile aggiungere uno slot di chiave, tutti gli slot sono disabilitati e nessuna chiave di volume è stata fornita.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1353 lib/setup.c:1426 lib/setup.c:1430 msgid "Enter any passphrase: " msgstr "Inserire una delle passphrase esistenti: " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1370 lib/setup.c:1443 lib/setup.c:1447 lib/setup.c:1510 msgid "Enter new passphrase for key slot: " msgstr "Inserire la nuova passphrase per lo slot di chiave: " -#: lib/setup.c:1798 -#, c-format -msgid "Key slot %d changed.\n" -msgstr "Slot di chiave %d cambiato.\n" - -#: lib/setup.c:1801 -#, c-format -msgid "Replaced with key slot %d.\n" -msgstr "Sostituito con lo slot di chiave %d.\n" - -#: lib/setup.c:1806 -msgid "Failed to swap new key slot.\n" -msgstr "Sostituzione del nuovo slot di chiave non riuscita.\n" - -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1501 lib/setup.c:1762 lib/setup.c:1775 lib/setup.c:1879 msgid "Volume key does not match the volume.\n" msgstr "La chiave di volume non corrisponde al volume.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1539 #, c-format msgid "Key slot %d is invalid.\n" msgstr "Lo slot di chiave %d non è valido.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1544 #, c-format msgid "Key slot %d is not used.\n" msgstr "Lo slot di chiave %d non è utilizzato.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1574 lib/setup.c:1646 lib/setup.c:1738 #, c-format msgid "Device %s already exists.\n" msgstr "Esiste già un device %s.\n" -#: lib/setup.c:2171 +#: lib/setup.c:1749 msgid "Incorrect volume key specified for plain device.\n" -msgstr "" -"Specificata una chiave di volume non corretta per il device in chiaro.\n" - -#: lib/setup.c:2204 -msgid "Incorrect root hash specified for verity device.\n" -msgstr "Specificato un hash root non corretto per il device verity.\n" +msgstr "Specificata una chiave di volume non corretta per il device in chiaro.\n" -#: lib/setup.c:2227 +#: lib/setup.c:1780 msgid "Device type is not properly initialised.\n" msgstr "Il tipo di device non è inizializzato correttamente.\n" -#: lib/setup.c:2259 +#: lib/setup.c:1804 #, c-format -msgid "Device %s is still in use.\n" -msgstr "Il device %s è ancora in uso.\n" +msgid "Device %s is busy.\n" +msgstr "Il device %s è occupato.\n" -#: lib/setup.c:2268 +#: lib/setup.c:1812 #, c-format msgid "Invalid device %s.\n" msgstr "Device %s non valido.\n" -#: lib/setup.c:2289 -msgid "Function not available in FIPS mode.\n" -msgstr "Funzione non disponibile in modalità FIPS.\n" - -#: lib/setup.c:2295 +#: lib/setup.c:1835 msgid "Volume key buffer too small.\n" msgstr "Buffer di chiave del volume troppo piccolo.\n" -#: lib/setup.c:2303 +#: lib/setup.c:1843 msgid "Cannot retrieve volume key for plain device.\n" msgstr "Impossibile recuperare la chiave di volume per il device in chiaro.\n" -#: lib/setup.c:2310 +#: lib/setup.c:1849 #, c-format msgid "This operation is not supported for %s crypt device.\n" msgstr "Questa operazione non è supportata per il device cifrato %s.\n" -#: lib/setup.c:2506 -msgid "Dump operation is not supported for this device type.\n" -msgstr "L'operazione di dump non è supportata per questo tipo di device.\n" +#: lib/utils.c:270 +#, c-format +msgid "Device %s doesn't exist or access denied.\n" +msgstr "Il device %s non esiste oppure è negato l'accesso.\n" + +#: lib/utils.c:280 +#, c-format +msgid "Cannot open device %s for %s%s access.\n" +msgstr "Impossibile aprire il device %s per l'accesso %s%s.\n" + +#: lib/utils.c:281 +msgid "exclusive " +msgstr "esclusivo " + +#: lib/utils.c:282 +msgid "writable" +msgstr "in scrittura" + +#: lib/utils.c:282 +msgid "read-only" +msgstr "in sola lettura" + +#: lib/utils.c:289 +#, c-format +msgid "Cannot read device %s.\n" +msgstr "Impossibile leggere il device %s.\n" + +#: lib/utils.c:386 +#, c-format +msgid "Cannot use device %s which is in use (already mapped or mounted).\n" +msgstr "Impossibile disporre del device %s il quale è in uso (già mappato o montato).\n" + +#: lib/utils.c:390 +#, c-format +msgid "Cannot get info about device %s.\n" +msgstr "Impossibile ottenere informazioni sul device %s.\n" + +#: lib/utils.c:396 +#, c-format +msgid "Requested offset is beyond real size of device %s.\n" +msgstr "L'offset richiesto è oltre la dimensione reale del device %s.\n" + +#: lib/utils.c:404 +#, c-format +msgid "Device %s has zero size.\n" +msgstr "Il device %s ha dimensione zero.\n" -#: lib/utils.c:244 +#: lib/utils.c:415 lib/luks1/keymanage.c:524 +#, c-format +msgid "Device %s is too small.\n" +msgstr "Il device %s è troppo piccolo.\n" + +#: lib/utils.c:423 +#, c-format +msgid "Cannot use device %s (crypt segments overlaps or in use by another device).\n" +msgstr "Impossibile usare il device %s (segmenti cifrati sovrapposti o in uso da un altro device).\n" + +#: lib/utils.c:450 +msgid "WARNING!!! Possibly insecure memory. Are you root?\n" +msgstr "ATTENZIONE!!! È possibile che la memoria non sia sicura. Si è root?\n" + +#: lib/utils.c:456 msgid "Cannot get process priority.\n" msgstr "Impossibile ottenere la priorità del processo.\n" -#: lib/utils.c:258 +#: lib/utils.c:459 lib/utils.c:472 +#, c-format +msgid "setpriority %d failed: %s\n" +msgstr "setpriority %d non riuscito: %s\n" + +#: lib/utils.c:470 msgid "Cannot unlock memory.\n" msgstr "Impossibile sbloccare la memoria.\n" -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 +#: lib/utils_crypt.c:212 lib/utils_crypt.c:225 lib/utils_crypt.c:329 +#: lib/utils_crypt.c:345 msgid "Out of memory while reading passphrase.\n" msgstr "Memoria esaurita durante la lettura della passphrase.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils_crypt.c:217 lib/utils_crypt.c:232 msgid "Error reading passphrase from terminal.\n" msgstr "Errore nel leggere la passphrase dal terminale.\n" -#: lib/utils_crypt.c:259 +#: lib/utils_crypt.c:230 msgid "Verify passphrase: " msgstr "Verifica passphrase: " -#: lib/utils_crypt.c:266 +#: lib/utils_crypt.c:237 msgid "Passphrases do not match.\n" msgstr "Le passphrase non corrispondono.\n" -#: lib/utils_crypt.c:350 +#: lib/utils_crypt.c:278 msgid "Cannot use offset with terminal input.\n" msgstr "Impossibile usare l'offset con l'input da terminale.\n" -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 +#: lib/utils_crypt.c:297 msgid "Failed to open key file.\n" msgstr "Apertura del file chiave non riuscita.\n" -#: lib/utils_crypt.c:378 +#: lib/utils_crypt.c:306 msgid "Failed to stat key file.\n" msgstr "Stat del file chiave non riuscito.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 +#: lib/utils_crypt.c:314 lib/utils_crypt.c:336 msgid "Cannot seek to requested keyfile offset.\n" msgstr "Impossibile posizionarsi all'offset del file di chiave richiesto.\n" -#: lib/utils_crypt.c:424 +#: lib/utils_crypt.c:353 msgid "Error reading passphrase.\n" msgstr "Errore nel leggere la passphrase.\n" -#: lib/utils_crypt.c:442 -msgid "Maximum keyfile size exceeded.\n" +#: lib/utils_crypt.c:371 +msgid "Maximum keyfile size exceeeded.\n" msgstr "Dimensione massima del file chiave superata.\n" -#: lib/utils_crypt.c:447 +#: lib/utils_crypt.c:376 msgid "Cannot read requested amount of data.\n" msgstr "Impossibile leggere la quantità richiesta di dati.\n" -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/luks1/keyencryption.c:76 #, c-format -msgid "Device %s doesn't exist or access denied.\n" -msgstr "Il device %s non esiste oppure è negato l'accesso.\n" +msgid "Unable to obtain sector size for %s" +msgstr "Impossibile ottenere la dimensione del settore per %s" -#: lib/utils_device.c:430 -msgid "Cannot use a loopback device, running as non-root user.\n" -msgstr "" -"Impossibile usare un device di loopback, in esecuzione come utente non " -"root.\n" - -#: lib/utils_device.c:433 -msgid "Cannot find a free loopback device.\n" -msgstr "Impossibile trovare un device di loopback libero.\n" - -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" -"Collegamento del device di loopback non riuscito (è richiesto un device di " -"loop con flag autoclear).\n" - -#: lib/utils_device.c:484 -#, c-format -msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" -"Impossibile disporre del device %s il quale è in uso (già mappato o " -"montato).\n" - -#: lib/utils_device.c:488 -#, c-format -msgid "Cannot get info about device %s.\n" -msgstr "Impossibile ottenere informazioni sul device %s.\n" - -#: lib/utils_device.c:494 -#, c-format -msgid "Requested offset is beyond real size of device %s.\n" -msgstr "L'offset richiesto è oltre la dimensione reale del device %s.\n" - -#: lib/utils_device.c:502 -#, c-format -msgid "Device %s has zero size.\n" -msgstr "Il device %s ha dimensione zero.\n" +#: lib/luks1/keyencryption.c:103 +msgid "Key size in XTS mode must be 256 or 512 bits.\n" +msgstr "La dimensione della chiave in modalità XTS deve essere 256 o 512 bit.\n" -#: lib/utils_device.c:513 -#, c-format -msgid "Device %s is too small.\n" -msgstr "Il device %s è troppo piccolo.\n" +#: lib/luks1/keyencryption.c:126 +msgid "Failed to obtain device mapper directory." +msgstr "Recupero della directory device mapper non riuscito." -#: lib/luks1/keyencryption.c:37 +#: lib/luks1/keyencryption.c:142 #, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n" +"%s" msgstr "" "Impostazione mappatura di chiave dm-crypt non riuscita per il device %s.\n" -"Controllare che il kernel supporti il cifrario %s (controllare il syslog per " -"maggiori informazioni).\n" - -#: lib/luks1/keyencryption.c:42 -msgid "Key size in XTS mode must be 256 or 512 bits.\n" -msgstr "" -"La dimensione della chiave in modalità XTS deve essere 256 o 512 bit.\n" +"Controllare che il kernel supporti il cifrario %s (controllare il syslog per maggiori informazioni).\n" +"%s" -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 -#, c-format -msgid "Cannot write to device %s, permission denied.\n" -msgstr "Impossibile scrivere sul device %s, permessi non concessi.\n" - -#: lib/luks1/keyencryption.c:111 +#: lib/luks1/keyencryption.c:152 msgid "Failed to open temporary keystore device.\n" msgstr "Apertura del device temporaneo di deposito chiavi non riuscita.\n" -#: lib/luks1/keyencryption.c:118 +#: lib/luks1/keyencryption.c:159 msgid "Failed to access temporary keystore device.\n" msgstr "Accesso al device temporaneo di deposito chiavi non riuscito.\n" -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "Errore di IO durante la cifratura dello slot di chiave.\n" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "Errore di IO durante la decifratura dello slot di chiave.\n" - -#: lib/luks1/keymanage.c:90 +#: lib/luks1/keymanage.c:149 #, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "Il device %s è troppo piccolo (LUKS richiede almeno % byte).\n" +msgid "Requested file %s already exist.\n" +msgstr "Il file %s richiesto esiste già.\n" -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 +#: lib/luks1/keymanage.c:169 lib/luks1/keymanage.c:391 #, c-format msgid "Device %s is not a valid LUKS device.\n" msgstr "Il device %s non è un device LUKS valido.\n" -#: lib/luks1/keymanage.c:198 -#, c-format -msgid "Requested header backup file %s already exists.\n" -msgstr "Il file di backup dell'header %s richiesto esiste già.\n" - -#: lib/luks1/keymanage.c:200 -#, c-format -msgid "Cannot create header backup file %s.\n" -msgstr "Impossibile creare il file di backup dell'header %s.\n" - -#: lib/luks1/keymanage.c:205 +#: lib/luks1/keymanage.c:189 #, c-format msgid "Cannot write header backup file %s.\n" msgstr "Impossibile scrivere il file di backup dell'header %s.\n" -#: lib/luks1/keymanage.c:239 +#: lib/luks1/keymanage.c:216 +#, c-format +msgid "Backup file %s doesn't exist.\n" +msgstr "Il file di backup %s non esiste.\n" + +#: lib/luks1/keymanage.c:224 msgid "Backup file doesn't contain valid LUKS header.\n" msgstr "Il file di backup non contiene un header LUKS valido.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: lib/luks1/keymanage.c:237 #, c-format msgid "Cannot open header backup file %s.\n" msgstr "Impossibile aprire il file di backup dell'header %s.\n" -#: lib/luks1/keymanage.c:258 +#: lib/luks1/keymanage.c:243 #, c-format msgid "Cannot read header backup file %s.\n" msgstr "Impossibile leggere il file di backup dell'header %s.\n" -#: lib/luks1/keymanage.c:269 +#: lib/luks1/keymanage.c:254 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"L'offset di dati oppure la dimensione della chiave sono diversi tra il " -"device e il backup, ripristino non riuscito.\n" +msgstr "L'offset di dati oppure la dimensione della chiave sono diversi tra il device e il backup, ripristino non riuscito.\n" -#: lib/luks1/keymanage.c:277 +#: lib/luks1/keymanage.c:262 #, c-format msgid "Device %s %s%s" msgstr "Il device %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"non contiene un header LUKS. La sostituzione dell'header può distruggere i " -"dati in quel device." +#: lib/luks1/keymanage.c:263 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "non contiene un header LUKS. La sostituzione dell'header può distruggere i dati in quel device." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"contiene già un header LUKS. La sostituzione dell'header distruggerà gli " -"slot di chiave esistenti." +#: lib/luks1/keymanage.c:264 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "contiene già un header LUKS. La sostituzione dell'header distruggerà gli slot di chiave esistenti." -#: lib/luks1/keymanage.c:280 +#: lib/luks1/keymanage.c:265 msgid "" "\n" "WARNING: real device header has different UUID than backup!" @@ -543,568 +448,374 @@ msgstr "" "\n" "ATTENZIONE: l'header reale del device ha un UUID diverso da quello di backup." -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 -#: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 -#: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 +#: lib/luks1/keymanage.c:280 lib/luks1/keymanage.c:496 +#: lib/luks1/keymanage.c:530 #, c-format msgid "Cannot open device %s.\n" msgstr "Impossibile aprire il device %s.\n" -#: lib/luks1/keymanage.c:329 +#: lib/luks1/keymanage.c:310 msgid "Non standard key size, manual repair required.\n" -msgstr "" -"Dimensione non standard della chiave, è richiesta una riparazione manuale.\n" - -#: lib/luks1/keymanage.c:334 -msgid "Non standard keyslots alignment, manual repair required.\n" -msgstr "" -"Allineamento slot di chiave non standard, richiesta riparazione manuale.\n" +msgstr "Dimensione non standard della chiave, è richiesta una riparazione manuale.\n" -#: lib/luks1/keymanage.c:340 +#: lib/luks1/keymanage.c:315 msgid "Repairing keyslots.\n" msgstr "Riparazione degli slot di chiave.\n" -#: lib/luks1/keymanage.c:351 +#: lib/luks1/keymanage.c:326 msgid "Repair failed." msgstr "Riparazione non riuscita." -#: lib/luks1/keymanage.c:363 +#: lib/luks1/keymanage.c:333 #, c-format msgid "Keyslot %i: offset repaired (%u -> %u).\n" msgstr "Slot di chiave %i: offset riparato (%u -> %u).\n" -#: lib/luks1/keymanage.c:371 +#: lib/luks1/keymanage.c:341 #, c-format msgid "Keyslot %i: stripes repaired (%u -> %u).\n" msgstr "Slot di chiave %i: strisce riparate (%u -> %u).\n" -#: lib/luks1/keymanage.c:380 +#: lib/luks1/keymanage.c:352 #, c-format msgid "Keyslot %i: bogus partition signature.\n" msgstr "Slot di chiave %i: firma della partizione inesistente.\n" -#: lib/luks1/keymanage.c:385 +#: lib/luks1/keymanage.c:357 #, c-format msgid "Keyslot %i: salt wiped.\n" msgstr "Slot di chiave %i: salt ripulita.\n" -#: lib/luks1/keymanage.c:396 +#: lib/luks1/keymanage.c:369 msgid "Writing LUKS header to disk.\n" msgstr "Scrittura dell'header LUKS sul disco.\n" -#: lib/luks1/keymanage.c:421 +#: lib/luks1/keymanage.c:394 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "Versione %d di LUKS non supportata.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: lib/luks1/keymanage.c:400 lib/luks1/keymanage.c:602 #, c-format msgid "Requested LUKS hash %s is not supported.\n" msgstr "L'hash %s di LUKS richiesto non è supportato.\n" -#: lib/luks1/keymanage.c:442 +#: lib/luks1/keymanage.c:415 #, c-format msgid "LUKS keyslot %u is invalid.\n" msgstr "Lo slot di chiave LUKS %u non è valido.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 +#: lib/luks1/keymanage.c:429 src/cryptsetup.c:535 msgid "No known problems detected for LUKS header.\n" msgstr "Nessun problema conosciuto rilevato per l'header LUKS.\n" -#: lib/luks1/keymanage.c:596 +#: lib/luks1/keymanage.c:463 +#, c-format +msgid "Cannot open file %s.\n" +msgstr "Impossibile aprire il file %s.\n" + +#: lib/luks1/keymanage.c:551 #, c-format msgid "Error during update of LUKS header on device %s.\n" msgstr "Errore durante l'aggiornamento dell'header LUKS sul device %s.\n" -#: lib/luks1/keymanage.c:603 +#: lib/luks1/keymanage.c:558 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" -"Errore nel rileggere l'header LUKS dopo l'aggiornamento sul device %s.\n" +msgstr "Errore nel ri-leggere l'header LUKS dopo l'aggiornamento sul dispositivo %s.\n" -#: lib/luks1/keymanage.c:654 +#: lib/luks1/keymanage.c:570 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" -"L'offset dei dati per l'header LUKS scollegato deve essere 0 o maggiore " -"della dimensione dell'header (%d settori).\n" +msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" +msgstr "Opzioni PBKDF2 non compatibili (usando l'algoritmo di hash %s).\n" -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 +#: lib/luks1/keymanage.c:607 lib/luks1/keymanage.c:689 msgid "Wrong LUKS UUID format provided.\n" msgstr "Fornito un formato UUID per LUKS errato.\n" -#: lib/luks1/keymanage.c:695 +#: lib/luks1/keymanage.c:632 msgid "Cannot create LUKS header: reading random salt failed.\n" msgstr "Impossibile creare l'header LUKS: lettura salt casuale non riuscita.\n" -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 -#, c-format -msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" -msgstr "Opzioni PBKDF2 non compatibili (usando l'algoritmo di hash %s).\n" - -#: lib/luks1/keymanage.c:717 +#: lib/luks1/keymanage.c:649 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"Impossibile creare l'header LUKS: digest dell'header non riuscito (usando " -"l'hash %s).\n" +msgstr "Impossibile creare l'header LUKS: digest dell'header non riuscito (usando l'hash %s).\n" -#: lib/luks1/keymanage.c:782 +#: lib/luks1/keymanage.c:714 #, c-format msgid "Key slot %d active, purge first.\n" msgstr "Slot di chiave %d attivo, eliminarlo prima.\n" -#: lib/luks1/keymanage.c:788 +#: lib/luks1/keymanage.c:719 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" -"Il materiale dello slot di chiave %d contiene troppe poche strisce. " -"Manipolazione dell'header?\n" +msgstr "Il materiale dello slot di chiave %d contiene troppe poche strisce. Manipolazione dell'header?\n" -#: lib/luks1/keymanage.c:950 +#: lib/luks1/keymanage.c:786 +msgid "Failed to write to key storage.\n" +msgstr "Scrittura nel deposito chiavi non riuscita.\n" + +#: lib/luks1/keymanage.c:871 +msgid "Failed to read from key storage.\n" +msgstr "Lettura dal deposito chiavi non riuscita.\n" + +#: lib/luks1/keymanage.c:881 #, c-format msgid "Key slot %d unlocked.\n" msgstr "Slot di chiave %d sbloccato.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: lib/luks1/keymanage.c:917 src/cryptsetup.c:732 src/cryptsetup.c:916 msgid "No key available with this passphrase.\n" msgstr "Nessuna chiave disponibile con questa passphrase.\n" -#: lib/luks1/keymanage.c:1003 +#: lib/luks1/keymanage.c:935 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" msgstr "Lo slot di chiave %d non è valido, selezionarne uno tra 0 e %d.\n" -#: lib/luks1/keymanage.c:1021 +#: lib/luks1/keymanage.c:949 #, c-format msgid "Cannot wipe device %s.\n" msgstr "Impossibile ripulire il device %s.\n" -#: lib/loopaes/loopaes.c:146 +#: lib/loopaes/loopaes.c:142 msgid "Detected not yet supported GPG encrypted keyfile.\n" msgstr "Rilevato un file chiave cifrato con GPG non ancora supportato.\n" -#: lib/loopaes/loopaes.c:147 +#: lib/loopaes/loopaes.c:143 msgid "Please use gpg --decrypt | cryptsetup --keyfile=- ...\n" msgstr "Usare gpg --decrypt | cryptsetup --keyfile=- ...\n" -#: lib/loopaes/loopaes.c:168 lib/loopaes/loopaes.c:188 +#: lib/loopaes/loopaes.c:175 msgid "Incompatible loop-AES keyfile detected.\n" msgstr "Rilevato file chiave loop-AES non compatibile.\n" -#: lib/loopaes/loopaes.c:244 +#: lib/loopaes/loopaes.c:225 msgid "Kernel doesn't support loop-AES compatible mapping.\n" msgstr "Il kernel non supporta la mappatura compatibile loop-AES.\n" -#: lib/tcrypt/tcrypt.c:475 -#, c-format -msgid "Error reading keyfile %s.\n" -msgstr "Errore nel leggere il file chiave %s.\n" +#: src/cryptsetup.c:105 +msgid " " +msgstr " " -#: lib/tcrypt/tcrypt.c:513 -#, c-format -msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" -msgstr "Lunghezza massima (%d) della passphrase TCRYPT superata.\n" +#: src/cryptsetup.c:105 +msgid "create device" +msgstr "Crea il device" -#: lib/tcrypt/tcrypt.c:543 -#, c-format -msgid "PBKDF2 hash algorithm %s not available, skipping.\n" -msgstr "L'algoritmo di hash PBKDF2 %s non è disponibile, viene saltato.\n" +#: src/cryptsetup.c:106 src/cryptsetup.c:107 src/cryptsetup.c:108 +#: src/cryptsetup.c:118 src/cryptsetup.c:125 +msgid "" +msgstr "" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 -msgid "Required kernel crypto interface not available.\n" -msgstr "Interfaccia kernel richiesta del cifrario non è disponibile.\n" +#: src/cryptsetup.c:106 +msgid "remove device" +msgstr "Rimuove il device" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 -msgid "Ensure you have algif_skcipher kernel module loaded.\n" -msgstr "Assicurarsi di avere il modulo del kernel algif_skcipher caricato.\n" +#: src/cryptsetup.c:107 +msgid "resize active device" +msgstr "Ridimensiona il device attivo" -#: lib/tcrypt/tcrypt.c:707 -#, c-format -msgid "Activation is not supported for %d sector size.\n" -msgstr "L'attivazione non è supportata per la dimensione del settore di %d.\n" +#: src/cryptsetup.c:108 +msgid "show device status" +msgstr "Mostra lo stato del device" -#: lib/tcrypt/tcrypt.c:713 -msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" -msgstr "" -"Il kernel non supporta l'attivazione per questa modalità legacy TCRYPT.\n" +#: src/cryptsetup.c:109 src/cryptsetup.c:116 src/cryptsetup.c:117 +#: src/cryptsetup.c:119 src/cryptsetup.c:120 src/cryptsetup.c:121 +#: src/cryptsetup.c:122 src/cryptsetup.c:123 +msgid "" +msgstr "" -#: lib/tcrypt/tcrypt.c:744 -#, c-format -msgid "Activating TCRYPT system encryption for partition %s.\n" -msgstr "Attivazione sistema di cifratura TCRYPT per la partizione %s.\n" +#: src/cryptsetup.c:109 +msgid "try to repair on-disk metadata" +msgstr "Prova a riparare i metadati on-disk" -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "Il kernel non supporta la mappatura compatibile TCYPRT.\n" +#: src/cryptsetup.c:110 src/cryptsetup.c:112 +msgid " []" +msgstr " []" -#: lib/tcrypt/tcrypt.c:1020 -msgid "This function is not supported without TCRYPT header load." -msgstr "Questa funzione non è supportata senza l'header TCRYPT caricato." +#: src/cryptsetup.c:110 +msgid "formats a LUKS device" +msgstr "Formatta un device LUKS" -#: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "Il device verity %s non usa header on-disk.\n" +#: src/cryptsetup.c:111 src/cryptsetup.c:124 +msgid " " +msgstr " " -#: lib/verity/verity.c:94 -#, c-format -msgid "Device %s is not a valid VERITY device.\n" -msgstr "Il device %s non è un device VERITY valido.\n" +#: src/cryptsetup.c:111 +msgid "open LUKS device as mapping " +msgstr "Apre il device LUKS come mappatura in " -#: lib/verity/verity.c:101 -#, c-format -msgid "Unsupported VERITY version %d.\n" -msgstr "Versione %d di VERITY non supportata.\n" +#: src/cryptsetup.c:112 +msgid "add key to LUKS device" +msgstr "Aggiunge la chiave al device LUKS" -#: lib/verity/verity.c:131 -msgid "VERITY header corrupted.\n" -msgstr "Header VERITY danneggiato.\n" +#: src/cryptsetup.c:113 src/cryptsetup.c:114 +msgid " []" +msgstr " []" -#: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "Fornito un formato UUID per VERITY errato sul device %s.\n" +#: src/cryptsetup.c:113 +msgid "removes supplied key or key file from LUKS device" +msgstr "Rimuove la chiave fornita o il file chiave dal device LUKS" -#: lib/verity/verity.c:196 -#, c-format -msgid "Error during update of verity header on device %s.\n" -msgstr "Errore durante l'aggiornamento dell'header verity sul device %s.\n" +#: src/cryptsetup.c:114 +msgid "changes supplied key or key file of LUKS device" +msgstr "Cambia la chiave fornita o il file chiave del device LUKS" -#: lib/verity/verity.c:276 -msgid "Kernel doesn't support dm-verity mapping.\n" -msgstr "Il kernel non supporta la mappatura dm-verity.\n" +#: src/cryptsetup.c:115 +msgid " " +msgstr " " -#: lib/verity/verity.c:287 -msgid "Verity device detected corruption after activation.\n" -msgstr "Il device verity ha rilevato un'anomalia dopo l'attivazione.\n" +#: src/cryptsetup.c:115 +msgid "wipes key with number from LUKS device" +msgstr "Ripulisce la chiave con numero dal device LUKS" -#: lib/verity/verity_hash.c:59 -#, c-format -msgid "Spare area is not zeroed at position %.\n" -msgstr "L'area spare non risulta essere a zero alla posizione %.\n" +#: src/cryptsetup.c:116 +msgid "print UUID of LUKS device" +msgstr "Stampa l'UUID del device LUKS" -#: lib/verity/verity_hash.c:121 lib/verity/verity_hash.c:249 -#: lib/verity/verity_hash.c:277 lib/verity/verity_hash.c:284 -msgid "Device offset overflow.\n" -msgstr "Overflow offset del device.\n" +#: src/cryptsetup.c:117 +msgid "tests for LUKS partition header" +msgstr "Verifica l'header della partizione LUKS di " -#: lib/verity/verity_hash.c:161 -#, c-format -msgid "Verification failed at position %.\n" -msgstr "Verifica alla posizione % non riuscita.\n" +#: src/cryptsetup.c:118 +msgid "remove LUKS mapping" +msgstr "Rimuove la mappatura LUKS" -#: lib/verity/verity_hash.c:235 -msgid "Invalid size parameters for verity device.\n" -msgstr "Parametri della dimensione non validi per il device verity.\n" +#: src/cryptsetup.c:119 +msgid "dump LUKS partition information" +msgstr "Esegue il dump delle informazioni sulla partizione LUKS" -#: lib/verity/verity_hash.c:266 -msgid "Too many tree levels for verity volume.\n" -msgstr "Troppi livelli d'albero per il volume verity.\n" +#: src/cryptsetup.c:120 +msgid "Suspend LUKS device and wipe key (all IOs are frozen)." +msgstr "Sospende il device LUKS e ripulisce la chiave (tutti gli I/O sono congelati)." -#: lib/verity/verity_hash.c:354 -msgid "Verification of data area failed.\n" -msgstr "Verifica dell'area dati non riuscita.\n" +#: src/cryptsetup.c:121 +msgid "Resume suspended LUKS device." +msgstr "Ripristina il device LUKS sospeso." -#: lib/verity/verity_hash.c:359 -msgid "Verification of root hash failed.\n" -msgstr "Verifica dall'hash principale non riuscita.\n" +#: src/cryptsetup.c:122 +msgid "Backup LUKS device header and keyslots" +msgstr "Fa il backup dell'header del device e degli slot di chiave" -#: lib/verity/verity_hash.c:365 -msgid "Input/output error while creating hash area.\n" -msgstr "Errore di input/output nel creare l'area hash.\n" +#: src/cryptsetup.c:123 +msgid "Restore LUKS device header and keyslots" +msgstr "Ripristina l'header del device LUKS e gli slot di chiave" -#: lib/verity/verity_hash.c:367 -msgid "Creation of hash area failed.\n" -msgstr "Creazione dell'area hash non riuscita.\n" +#: src/cryptsetup.c:124 +msgid "open loop-AES device as mapping " +msgstr "Apre il device loop-AES come mappatura in " -#: lib/verity/verity_hash.c:414 -#, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" -"Attenzione: il kernel non può attivare il device se la dimensione del blocco " -"dati supera la dimensione di pagina (%u).\n" +#: src/cryptsetup.c:125 +msgid "remove loop-AES mapping" +msgstr "Rimuove la mappatura loop-AES" -#: src/cryptsetup.c:91 +#: src/cryptsetup.c:218 msgid "Can't do passphrase verification on non-tty inputs.\n" -msgstr "Impossibile verificare la passphrase su input non tty.\n" - -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 -msgid "No known cipher specification pattern detected.\n" -msgstr "Non è stato rilevato alcun modello noto di specifica di cifrario.\n" +msgstr "Impossibile verificare la passphrase da un input non tty.\n" -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" -"Attenzione: il parametro --hash viene ignorato in modalità normale con file " -"di chiave specificato.\n" +#: src/cryptsetup.c:233 +msgid "Command successful.\n" +msgstr "Comando eseguito con successo.\n" -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" -"Attenzione: l'opzione --keyfile-size viene ignorata, la dimensione di " -"lettura è la stessa della dimensione della chiave di cifratura.\n" +#: src/cryptsetup.c:247 +#, c-format +msgid "Command failed with code %i" +msgstr "Comando non riuscito con codice %i" -#: src/cryptsetup.c:218 +#: src/cryptsetup.c:375 msgid "Option --key-file is required.\n" msgstr "È richiesta l'opzione --key-file.\n" -#: src/cryptsetup.c:267 -msgid "No device header detected with this passphrase.\n" -msgstr "Nessun header di device rilevato con questa passphrase.\n" - -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 -msgid "" -"Header dump with volume key is sensitive information\n" -"which allows access to encrypted partition without passphrase.\n" -"This dump should be always stored encrypted on safe place." -msgstr "" -"Il dump dell'header LUKS con la chiave di volume contiene informazioni\n" -"confidenziali che permettono di accedere alla partizione cifrata senza " -"passphrase.\n" -"Questo dump dovrebbe sempre essere salvato in modo cifrato in un luogo " -"sicuro." - -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "Il risultato del benchmark non è attendibile.\n" - -#: src/cryptsetup.c:558 -msgid "# Tests are approximate using memory only (no storage IO).\n" -msgstr "" -"# I test sono aprossimati usando solo la memoria (nessun IO dall'archivio).\n" - -#: src/cryptsetup.c:583 src/cryptsetup.c:605 -msgid "# Algorithm | Key | Encryption | Decryption\n" -msgstr "# Algoritmo | Chiave | Cifratura | Decifratura\n" - -#: src/cryptsetup.c:587 -#, c-format -msgid "Cipher %s is not available.\n" -msgstr "Il cifrario %s non è disponibile.\n" - -#: src/cryptsetup.c:614 -msgid "N/A" -msgstr "N/D" - -#: src/cryptsetup.c:639 -#, c-format -msgid "Cannot read keyfile %s.\n" -msgstr "Impossibile leggere il file chiave %s.\n" - -#: src/cryptsetup.c:643 -#, c-format -msgid "Cannot read %d bytes from keyfile %s.\n" -msgstr "Impossibile leggere %d byte dal file chiave %s.\n" - -#: src/cryptsetup.c:672 +#: src/cryptsetup.c:539 msgid "Really try to repair LUKS device header?" msgstr "Provare a riparare l'header del device LUKS?" -#: src/cryptsetup.c:697 +#: src/cryptsetup.c:564 #, c-format msgid "This will overwrite data on %s irrevocably." msgstr "Ciò sovrascriverà i dati in %s in modo irreversibile." -#: src/cryptsetup.c:699 +#: src/cryptsetup.c:566 msgid "memory allocation error in action_luksFormat" msgstr "errore di allocazione di memoria in action_luksFormat" -#: src/cryptsetup.c:717 +#: src/cryptsetup.c:578 +msgid "No known cipher specification pattern detected.\n" +msgstr "Non è stato rilevato alcun modello noto di specifica di cifrario.\n" + +#: src/cryptsetup.c:584 #, c-format msgid "Cannot use %s as on-disk header.\n" msgstr "Impossibile usare %s come header on-disk.\n" -#: src/cryptsetup.c:784 +#: src/cryptsetup.c:599 src/cryptsetup.c:1030 +msgid "Enter LUKS passphrase: " +msgstr "Inserire la passphrase LUKS: " + +#: src/cryptsetup.c:654 msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" -"L'offset di dati ridotti è ammesso solo per l'header LUKS scollegato.\n" +msgstr "L'offset di dati ridotti è ammesso solo per header LUKS scollegati.\n" -#: src/cryptsetup.c:881 src/cryptsetup.c:937 +#: src/cryptsetup.c:755 src/cryptsetup.c:810 #, c-format msgid "Key slot %d selected for deletion.\n" msgstr "Slot di chiave %d selezionato per l'eliminazione.\n" -#: src/cryptsetup.c:884 +#: src/cryptsetup.c:758 #, c-format msgid "Key %d not active. Can't wipe.\n" msgstr "Chiave %d non attiva. Impossibile ripulirla.\n" -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"Questo è l'ultimo slot di chiave. Il device sarà inutilizzabile dopo aver " -"eliminato questa chiave." +#: src/cryptsetup.c:766 src/cryptsetup.c:813 +msgid "This is the last keyslot. Device will become unusable after purging this key." +msgstr "Questo è l'ultimo slot di chiave. Il device sarà inutilizzabile dopo aver eliminato questa chiave." -#: src/cryptsetup.c:893 -msgid "Enter any remaining passphrase: " -msgstr "Inserire una delle passphrase rimanenti: " +#: src/cryptsetup.c:767 +msgid "Enter any remaining LUKS passphrase: " +msgstr "Inserire una delle passphrase LUKS rimanenti: " -#: src/cryptsetup.c:921 -msgid "Enter passphrase to be deleted: " -msgstr "Inserire la passphrase da eliminare: " +#: src/cryptsetup.c:795 +msgid "Enter LUKS passphrase to be deleted: " +msgstr "Inserire la passphrase LUKS da eliminare: " -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format -msgid "Enter any existing passphrase: " -msgstr "Inserire una delle passphrase esistenti: " +#: src/cryptsetup.c:898 +msgid "Enter LUKS passphrase to be changed: " +msgstr "Inserire la passphrase LUKS da cambiare: " -#: src/cryptsetup.c:1052 -msgid "Enter passphrase to be changed: " -msgstr "Inserire la passphrase da cambiare: " +#: src/cryptsetup.c:935 +msgid "Enter new LUKS passphrase: " +msgstr "Inserire la nuova passphrase LUKS: " -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 -msgid "Enter new passphrase: " -msgstr "Inserire la nuova passphrase: " - -#: src/cryptsetup.c:1090 -msgid "Only one device argument for isLuks operation is supported.\n" -msgstr "È supportato un solo argomento device per ogni operazione isLuks.\n" - -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 -msgid "Option --header-backup-file is required.\n" -msgstr "È richiesta l'opzione --header-backup-file.\n" - -#: src/cryptsetup.c:1304 +#: src/cryptsetup.c:949 #, c-format -msgid "Unrecognized metadata device type %s.\n" -msgstr "Tipo di dispositivo meta-data %s non riconosciuto.\n" - -#: src/cryptsetup.c:1307 -msgid "Command requires device and mapped name as arguments.\n" -msgstr "Il comando richiede un device e un nome di mappatura come argomenti.\n" +msgid "Key slot %d changed.\n" +msgstr "Slot di chiave %d cambiato.\n" -#: src/cryptsetup.c:1326 +#: src/cryptsetup.c:955 #, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Questa operazione eliminerà tutti gli slot di chiave sul device %s.\n" -"Il device sarà inutilizzabile dopo questa operazione." - -#: src/cryptsetup.c:1360 -msgid " [--type ] []" -msgstr " [--type ] []" - -#: src/cryptsetup.c:1360 -msgid "open device as mapping " -msgstr "Apre il device come mappatura in " - -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 -msgid "" -msgstr "" - -#: src/cryptsetup.c:1361 -msgid "close device (remove mapping)" -msgstr "Chiude il device (rimuove la mappatura)" - -#: src/cryptsetup.c:1362 -msgid "resize active device" -msgstr "Ridimensiona il device attivo" - -#: src/cryptsetup.c:1363 -msgid "show device status" -msgstr "Mostra lo stato del device" - -#: src/cryptsetup.c:1364 -msgid "benchmark cipher" -msgstr "Esegue benchmark del cifrario" - -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 -msgid "" -msgstr "" - -#: src/cryptsetup.c:1365 -msgid "try to repair on-disk metadata" -msgstr "Prova a riparare i meta-dati on-disk" - -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "Elimina tutti gli slot di chiavi (rimuove chiave di cifratura)" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 -msgid " []" -msgstr " []" - -#: src/cryptsetup.c:1367 -msgid "formats a LUKS device" -msgstr "Formatta un device LUKS" - -#: src/cryptsetup.c:1368 -msgid "add key to LUKS device" -msgstr "Aggiunge la chiave al device LUKS" - -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 -msgid " []" -msgstr " []" - -#: src/cryptsetup.c:1369 -msgid "removes supplied key or key file from LUKS device" -msgstr "Rimuove la chiave fornita o il file chiave dal device LUKS" - -#: src/cryptsetup.c:1370 -msgid "changes supplied key or key file of LUKS device" -msgstr "Cambia la chiave fornita o il file chiave del device LUKS" - -#: src/cryptsetup.c:1371 -msgid " " -msgstr " " - -#: src/cryptsetup.c:1371 -msgid "wipes key with number from LUKS device" -msgstr "Ripulisce la chiave con numero dal device LUKS" - -#: src/cryptsetup.c:1372 -msgid "print UUID of LUKS device" -msgstr "Stampa l'UUID del device LUKS" - -#: src/cryptsetup.c:1373 -msgid "tests for LUKS partition header" -msgstr "Verifica l'header della partizione LUKS di " - -#: src/cryptsetup.c:1374 -msgid "dump LUKS partition information" -msgstr "Esegue il dump delle informazioni sulla partizione LUKS" +msgid "Replaced with key slot %d.\n" +msgstr "Sostituito con lo slot di chiave %d.\n" -#: src/cryptsetup.c:1375 -msgid "dump TCRYPT device information" -msgstr "Esegue il dump delle informazioni TCRYPT del device" +#: src/cryptsetup.c:960 +msgid "Failed to swap new key slot.\n" +msgstr "Sostituzione del nuovo slot di chiave non riuscita.\n" -#: src/cryptsetup.c:1376 -msgid "Suspend LUKS device and wipe key (all IOs are frozen)." +#: src/cryptsetup.c:1019 +msgid "" +"LUKS header dump with volume key is sensitive information\n" +"which allows access to encrypted partition without passphrase.\n" +"This dump should be always stored encrypted on safe place." msgstr "" -"Sospende il device LUKS e ripulisce la chiave (tutti gli I/O sono congelati)." - -#: src/cryptsetup.c:1377 -msgid "Resume suspended LUKS device." -msgstr "Ripristina il device LUKS sospeso." - -#: src/cryptsetup.c:1378 -msgid "Backup LUKS device header and keyslots" -msgstr "Fa il backup dell'header del device e degli slot di chiave" +"Il dump dell'header LUKS con la chiave di volume contiene informazioni\n" +"sensibili che permettono di accedere alla partizione cifrata senza passphrase.\n" +"Questo dump dovrebbe sempre essere salvato in modo cifrato in un luogo sicuro." -#: src/cryptsetup.c:1379 -msgid "Restore LUKS device header and keyslots" -msgstr "Ripristina l'header del device LUKS e gli slot di chiave" +#: src/cryptsetup.c:1124 src/cryptsetup.c:1145 +msgid "Option --header-backup-file is required.\n" +msgstr "È richiesta l'opzione --header-backup-file.\n" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:1183 msgid "" "\n" " is one of:\n" @@ -1112,19 +823,7 @@ msgstr "" "\n" " è una tra:\n" -#: src/cryptsetup.c:1402 -msgid "" -"\n" -"You can also use old syntax aliases:\n" -"\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" -"\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" -msgstr "" -"\n" -"È possibile usare anche la vecchia sintassi :\n" -"\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" -"\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" - -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:1189 #, c-format msgid "" "\n" @@ -1137,25 +836,20 @@ msgstr "" " è il device da creare in %s\n" " è il device cifrato\n" " è il numero dello slot di chiave LUKS da modificare\n" -" è il file chiave opzionale per la nuova chiave per l'azione " -"luksAddKey\n" +" è il file chiave opzionale per la nuova chiave per l'azione luksAddKey\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:1196 #, c-format msgid "" "\n" -"Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" -"Default PBKDF2 iteration time for LUKS: %d (ms)\n" +"Default compiled-in keyfile parameters:\n" +"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d (characters)\n" msgstr "" "\n" -"Parametri predefiniti compilati di chiave e passphrase:\n" -"\tdimensione massima del file chiave: %dkB, lunghezza massima della " -"passphrase interattiva %d (caratteri)\n" -"Tempo d'iterazione PBKDF2 predefinito per LUKS: %d (ms)\n" +"Parametri predefiniti del file chiave:\n" +"\tdimensione massima del file chiave: %dkB, lunghezza massima della passphrase interattiva %d (caratteri)\n" -#: src/cryptsetup.c:1420 +#: src/cryptsetup.c:1201 #, c-format msgid "" "\n" @@ -1170,717 +864,301 @@ msgstr "" "\tin chiaro: %s, chiave: %d bit, hash della password: %s\n" "\tLUKS1: %s, chiave: %d bit, hash dell'header LUKS: %s, RNG: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 -#, c-format -msgid "%s: requires %s as arguments" -msgstr "%s: richiede %s come argomenti" - -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:1269 msgid "Show this help message" msgstr "Mostra questo messaggio d'aiuto" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:1270 msgid "Display brief usage" msgstr "Mostra il modo d'uso sintetico" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:1274 msgid "Help options:" msgstr "Opzioni di aiuto:" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 +#: src/cryptsetup.c:1275 msgid "Print package version" msgstr "Stampa la versione del pacchetto" -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:1276 msgid "Shows more detailed error messages" msgstr "Mostra i messaggi di errore con maggior dettaglio" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:1277 msgid "Show debug messages" msgstr "Mostra i messaggi di debug" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:1278 msgid "The cipher used to encrypt the disk (see /proc/crypto)" msgstr "Il cifrario usato per cifrare il disco (vedere /proc/crypto)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:1279 msgid "The hash used to create the encryption key from the passphrase" msgstr "L'hash usato per creare la chiave di cifratura dalla passphrase" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:1280 msgid "Verifies the passphrase by asking for it twice" msgstr "Verifica la passphrase chiedendola due volte" -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 +#: src/cryptsetup.c:1281 msgid "Read the key from a file." msgstr "Legge la chiave da un file." -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:1282 msgid "Read the volume (master) key from file." msgstr "Legge la chiave (master) del volume dal file." -#: src/cryptsetup.c:1484 +#: src/cryptsetup.c:1283 msgid "Dump volume (master) key instead of keyslots info." -msgstr "" -"Esegue il dump della chiave (master) del volume invece delle informazioni " -"sugli slot di chiave." +msgstr "Esegue il dump della chiave (master) del volume invece delle informazioni sugli slot di chiave." -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1284 msgid "The size of the encryption key" msgstr "La dimensione della chiave di cifratura" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1284 msgid "BITS" msgstr "BIT" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 +#: src/cryptsetup.c:1285 msgid "Limits the read from keyfile" msgstr "Limita la lettura dal file di chiave" -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup.c:1285 src/cryptsetup.c:1286 src/cryptsetup.c:1287 +#: src/cryptsetup.c:1288 msgid "bytes" msgstr "byte" -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 +#: src/cryptsetup.c:1286 msgid "Number of bytes to skip in keyfile" msgstr "Numero di byte da saltare nel file di chiave" -#: src/cryptsetup.c:1488 +#: src/cryptsetup.c:1287 msgid "Limits the read from newly added keyfile" msgstr "Limita la lettura dal file di chiave appena aggiunto" -#: src/cryptsetup.c:1489 +#: src/cryptsetup.c:1288 msgid "Number of bytes to skip in newly added keyfile" msgstr "Numero di byte da saltare nel file di chiave appena aggiunto" -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:1289 msgid "Slot number for new key (default is first free)" -msgstr "" -"Numero dello slot per la nuova chiave (il primo libero è quello predefinito)" +msgstr "Numero dello slot per la nuova chiave (il primo libero è quello predefinito)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:1290 msgid "The size of the device" msgstr "La dimensione del device" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1290 src/cryptsetup.c:1291 src/cryptsetup.c:1292 +#: src/cryptsetup.c:1298 msgid "SECTORS" msgstr "SETTORI" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:1291 msgid "The start offset in the backend device" msgstr "L'offset iniziale del device di backend" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:1292 msgid "How many sectors of the encrypted data to skip at the beginning" msgstr "Quanti settori dei dati cifrati saltare dall'inizio" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:1293 msgid "Create a readonly mapping" msgstr "Crea una mappatura in sola lettura" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1294 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "Tempo di iterazione di PBKDF2 per LUKS (in ms)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1294 msgid "msecs" msgstr "msec" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:1295 msgid "Do not ask for confirmation" msgstr "Non chiede conferma" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1296 msgid "Timeout for interactive passphrase prompt (in seconds)" msgstr "Timeout per il prompt interattivo della passphrase (in secondi)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1296 msgid "secs" msgstr "sec" # (NDT) Descrizione dell'opzione # --tries, indica il numero di tentativi per richiesta -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:1297 msgid "How often the input of the passphrase can be retried" msgstr "Quante volte può essere ritentato l'inserimento della passphrase" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1298 msgid "Align payload at sector boundaries - for luksFormat" msgstr "Allinea il payload agli estremi del settore - per luksFormat" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:1299 msgid "File with LUKS header and keyslots backup." msgstr "File con header LUKS e backup degli slot di chiave." -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 +#: src/cryptsetup.c:1300 msgid "Use /dev/random for generating volume key." msgstr "Usa /dev/random per generare la chiave di volume." -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 +#: src/cryptsetup.c:1301 msgid "Use /dev/urandom for generating volume key." msgstr "Usa /dev/urandom per generare la chiave di volume." -#: src/cryptsetup.c:1503 +#: src/cryptsetup.c:1302 msgid "Share device with another non-overlapping crypt segment." msgstr "Condivide il device con un altro segmento cifrato non sovrapposto." -#: src/cryptsetup.c:1504 src/veritysetup.c:385 +#: src/cryptsetup.c:1303 msgid "UUID for device to use." msgstr "UUID da usare per il device." -#: src/cryptsetup.c:1505 +#: src/cryptsetup.c:1304 msgid "Allow discards (aka TRIM) requests for device." msgstr "Ammette le richieste di scarto (funzione TRIM) per il device." -#: src/cryptsetup.c:1506 +#: src/cryptsetup.c:1305 msgid "Device or file with separated LUKS header." msgstr "Device o file con header LUKS separato." -#: src/cryptsetup.c:1507 -msgid "Do not activate device, just check passphrase." -msgstr "Non attiva il device, verifica solamente la passphrase" - -#: src/cryptsetup.c:1508 -msgid "Use hidden header (hidden TCRYPT device)." -msgstr "Usa header nascosto (device TCRYPT nascosto)" - -#: src/cryptsetup.c:1509 -msgid "Device is system TCRYPT drive (with bootloader)." -msgstr "Il device è l'unità TCRYPT di sistema (con bootloader)" - -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "Usa header TCRYPT di backup (secondario)" - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "Ricerca anche device compatibili VeraCrypt" - -#: src/cryptsetup.c:1512 -msgid "Type of device metadata: luks, plain, loopaes, tcrypt." -msgstr "Meta-dati del tipo di device: luks, plain, loopaes, tcrypt" - -#: src/cryptsetup.c:1513 -msgid "Disable password quality check (if enabled)." -msgstr "Disabilita la verifica della qualità della password (se abilitata)" - -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "Usa l'opzione compatibile per prestazioni same_cpu_crypt di dm-crypt" - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" -"Usa l'opzione compatibile per prestazioni submit_from_crypt_cpus di dm-crypt" - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 -msgid "[OPTION...] " +#: src/cryptsetup.c:1322 +msgid "[OPTION...] ]" msgstr "[OPZIONE...] ]" -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "Esecuzione in modalità FIPS.\n" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 +#: src/cryptsetup.c:1362 msgid "Argument missing." msgstr "Argomento mancante." -#: src/cryptsetup.c:1634 src/veritysetup.c:445 +#: src/cryptsetup.c:1368 msgid "Unknown action." msgstr "Azione sconosciuta." -#: src/cryptsetup.c:1644 -msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "" -"L'opzione --shared è consentita solo per l'azione open di device plain.\n" +#: src/cryptsetup.c:1383 +#, c-format +msgid "%s: requires %s as arguments" +msgstr "%s: richiede %s come argomenti" + +#: src/cryptsetup.c:1392 +msgid "Option --shared is allowed only for create operation.\n" +msgstr "L'opzione --shared è ammessa solo per l'operazione create.\n" -#: src/cryptsetup.c:1649 -msgid "Option --allow-discards is allowed only for open operation.\n" -msgstr "L'opzione --allow-discards è consentita solo per l'azione open.\n" +#: src/cryptsetup.c:1401 +msgid "Option --allow-discards is allowed only for luksOpen, loopaesOpen and create operation.\n" +msgstr "L'opzione --allow-discards è ammessa solo per le operazioni luksOpen, loopaesOpen e create.\n" -#: src/cryptsetup.c:1657 +#: src/cryptsetup.c:1410 msgid "" -"Option --key-size is allowed only for luksFormat, open and benchmark.\n" +"Option --key-size is allowed only for luksFormat, create and loopaesOpen.\n" "To limit read from keyfile use --keyfile-size=(bytes)." msgstr "" -"L'opzione --key-size è consentita solo per luksFormat, open e benchmark.\n" +"L'opzione --key-size è ammessa solo per luksFormat, create e loopaesOpen.\n" "Per limitare la lettura dal file chiave usare --keyfile-size=(byte)." -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" -"L'opzione --test-passphrase è consentita solo per l'operazione open di " -"device LUKS e TCRYPT.\n" - -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 +#: src/cryptsetup.c:1417 msgid "Key size must be a multiple of 8 bits" msgstr "La dimensione della chiave deve essere un multiplo di 8 bit" -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 +#: src/cryptsetup.c:1424 msgid "Key slot is invalid." msgstr "Lo slot di chiave non è valido." -#: src/cryptsetup.c:1683 +#: src/cryptsetup.c:1431 msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" -"L'opzione --key-file ha la precedenza sull'argomento specificato per il file " -"chiave.\n" +msgstr "L'opzione --key-file ha la precedenza sull'argomento specificato per il file chiave.\n" -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 +#: src/cryptsetup.c:1439 msgid "Negative number for option not permitted." msgstr "Non è ammesso un numero negativo per l'opzione." -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 +#: src/cryptsetup.c:1444 msgid "Only one of --use-[u]random options is allowed." -msgstr "È consentita solo una tra le opzioni --use-[u]random." +msgstr "È ammessa solo una tra le opzioni --use-[u]random." -#: src/cryptsetup.c:1699 +#: src/cryptsetup.c:1448 msgid "Option --use-[u]random is allowed only for luksFormat." -msgstr "L'opzione --use-[u]random è consentita solo per luksFormat." +msgstr "L'opzione --use-[u]random è ammessa solo per luksFormat." -#: src/cryptsetup.c:1703 +#: src/cryptsetup.c:1452 msgid "Option --uuid is allowed only for luksFormat and luksUUID." -msgstr "L'opzione --uuid è consentita solo per luksFormat e luksUUID." +msgstr "L'opzione --uuid è ammessa solo per luksFormat e luksUUID." -#: src/cryptsetup.c:1707 +#: src/cryptsetup.c:1456 msgid "Option --align-payload is allowed only for luksFormat." -msgstr "L'opzione --align-payload è consentita solo per luksFormat." - -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" -"L'opzione --skip è supportata solo per l'azione open di device plain a " -"loopaes.\n" +msgstr "L'opzione --align-payload è ammessa solo per luksFormat." -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" -"L'opzione --offset è supportata solo per l'azione open di device plain e " -"loopaes.\n" +#: src/cryptsetup.c:1461 +msgid "Option --skip is supported only for create and loopaesOpen commands.\n" +msgstr "L'opzione --skip è supportata solo per i comandi create e loopaesOpen.\n" -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" -"L'opzione --tcrypt-hidden, --tcrypt-system o --tcrypt-backup è supportata " -"solo per device TCRYPT.\n" +#: src/cryptsetup.c:1466 +msgid "Option --offset is supported only for create and loopaesOpen commands.\n" +msgstr "L'opzione --offset è supportata solo per i comandi create e loopaesOpen.\n" -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "" -"L'opzione --tcrypt-hidden non può essere utilizzata con --allow-discards.\n" +#~ msgid "Cannot read %d byte from key file %s.\n" +#~ msgid_plural "Cannot read %d bytes from key file %s.\n" +#~ msgstr[0] "Impossibile leggere %d byte dal file chiave %s.\n" +#~ msgstr[1] "Impossibile leggere %d byte dal file chiave %s.\n" -#: src/cryptsetup.c:1735 -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "L'opzione --veracrypt è supportata solo per device TCRYPT.\n" +#~ msgid "Key slot %d verified.\n" +#~ msgstr "Slot di chiave %d verificato.\n" -#: src/veritysetup.c:58 -msgid "Invalid salt string specified.\n" -msgstr "String salt specificata non valida.\n" +#~ msgid "Invalid key size %d.\n" +#~ msgstr "Dimensione della chiave (%d) non valida.\n" -#: src/veritysetup.c:88 -#, c-format -msgid "Cannot create hash image %s for writing.\n" -msgstr "Impossibile creare l'immagine hash %s per la scrittura.\n" +#~ msgid "Block mode XTS is available since kernel 2.6.24.\n" +#~ msgstr "La modalità XTS a blocchi è disponibile dal kernel 2.6.24.\n" -#: src/veritysetup.c:148 -msgid "Invalid root hash string specified.\n" -msgstr "Stringa hash principale specificata non valida.\n" +#~ msgid "Key size in LRW mode must be 256 or 512 bits.\n" +#~ msgstr "La dimensione della chiave in modalità LRW deve essere 256 o 512 bit.\n" -#: src/veritysetup.c:308 -msgid " " -msgstr " " +#~ msgid "Block mode LRW is available since kernel 2.6.20.\n" +#~ msgstr "La modalità LRW a blocchi è disponibile dal kernel 2.6.20.\n" -#: src/veritysetup.c:308 -msgid "format device" -msgstr "Formatta il device" +#~ msgid "Negative keyfile size not permitted.\n" +#~ msgstr "Non è ammessa una dimensione negativa del file chiave.\n" -#: src/veritysetup.c:309 -msgid " " -msgstr " " +#~ msgid "Warning: exhausting read requested, but key file is not a regular file, function might never return.\n" +#~ msgstr "Attenzione: è richiesta una lettura esaustiva, ma non essendo un file chiave regolare la funzione potrebbe non ritornare mai.\n" -#: src/veritysetup.c:309 -msgid "verify device" -msgstr "Verifica il device" +#~ msgid "Cannot find compatible device-mapper kernel modules.\n" +#~ msgstr "Impossibile trovare moduli kernel compatibili con device-mapper.\n" -#: src/veritysetup.c:310 -msgid " " -msgstr " " +#~ msgid "Cannot open device: %s\n" +#~ msgstr "Impossibile aprire il device: %s\n" -#: src/veritysetup.c:310 -msgid "create active device" -msgstr "Crea device attivo" +#~ msgid "BLKROGET failed on device %s.\n" +#~ msgstr "BLKROGET non riuscito sul device %s.\n" -#: src/veritysetup.c:311 -msgid "remove (deactivate) device" -msgstr "Rimuove (disattiva) device" +#~ msgid "BLKGETSIZE failed on device %s.\n" +#~ msgstr "BLKGETSIZE non riuscito sul device %s.\n" -#: src/veritysetup.c:312 -msgid "show active device status" -msgstr "Mostra lo stato del device attivo" +#~ msgid "identical to luksKillSlot - DEPRECATED - see man page" +#~ msgstr "identico a luksKillSlot - DEPRECATO - consultare la pagina man" -#: src/veritysetup.c:313 -msgid "" -msgstr "" +#~ msgid "modify active device - DEPRECATED - see man page" +#~ msgstr "modifica il device attivo - DEPRECATO - consultare la pagina man" -#: src/veritysetup.c:313 -msgid "show on-disk information" -msgstr "Mostra informazioni on-disk" +#~ msgid "" +#~ "The reload action is deprecated. Please use \"dmsetup reload\" in case you really need this functionality.\n" +#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, hit Ctrl-C now.\n" +#~ msgstr "" +#~ "L'azione reload è deprecata. Usare \"dmsetup reload\" nel caso sia necessaria questa funzionalità.\n" +#~ "ATTENZIONE: non usare ricarica per fare il touch del device LUKS. In questo caso, premere Ctrl-C adesso.\n" -#: src/veritysetup.c:332 -#, c-format -msgid "" -"\n" -" is the device to create under %s\n" -" is the data device\n" -" is the device containing verification data\n" -" hash of the root node on \n" -msgstr "" -"\n" -" è il device da creare in %s\n" -" è il device dei dati\n" -" è il device che contiene i dati di verifica\n" -" è l'hash del nodo radice nel \n" +#~ msgid "Obsolete option --non-exclusive is ignored.\n" +#~ msgstr "Opzione obsoleta, --non-exclusive ignorato.\n" -#: src/veritysetup.c:339 -#, c-format -msgid "" -"\n" -"Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" -msgstr "" -"\n" -"Parametri predefiniti compilati in dm-verity:\n" -"\tHash: %s, Blocco dati (byte): %u, Blocco hash (byte): %u, Dimensione salt: " -"%u, Formato hash: %u\n" - -#: src/veritysetup.c:377 -msgid "Do not use verity superblock" -msgstr "Non usa il super-blocco verity" - -#: src/veritysetup.c:378 -msgid "Format type (1 - normal, 0 - original Chrome OS)" -msgstr "Tipo di formato (1 - normale, 0 - ChromeOS originale)" - -#: src/veritysetup.c:378 -msgid "number" -msgstr "numero" - -#: src/veritysetup.c:379 -msgid "Block size on the data device" -msgstr "La dimensione del blocco sul device dati" - -#: src/veritysetup.c:380 -msgid "Block size on the hash device" -msgstr "La dimensione del blocco sul device hash" - -#: src/veritysetup.c:381 -msgid "The number of blocks in the data file" -msgstr "Il numero di blocchi nel file dati" +#~ msgid "Read the key from a file (can be /dev/random)" +#~ msgstr "Legge la chiave da un file (può essere /dev/random)" -#: src/veritysetup.c:381 -msgid "blocks" -msgstr "blocchi" - -#: src/veritysetup.c:382 -msgid "Starting offset on the hash device" -msgstr "L'offset iniziale del device di hash" - -#: src/veritysetup.c:383 -msgid "Hash algorithm" -msgstr "Algoritmo di hash" - -#: src/veritysetup.c:383 -msgid "string" -msgstr "stringa" - -#: src/veritysetup.c:384 -msgid "Salt" -msgstr "Salt" - -#: src/veritysetup.c:384 -msgid "hex string" -msgstr "stringa esadecimale" - -#: src/cryptsetup_reencrypt.c:147 -#, c-format -msgid "Cannot exclusively open %s, device in use.\n" -msgstr "Impossibile aprire esclusivamente il device %s, già in uso.\n" +#~ msgid "(Obsoleted, see man page.)" +#~ msgstr "(Obsoleto, consultare la pagina man.)" -#: src/cryptsetup_reencrypt.c:151 -#, c-format -msgid "Cannot open device %s\n" -msgstr "Impossibile aprire il device %s\n" - -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 -msgid "Allocation of aligned memory failed.\n" -msgstr "Allocazione di memoria allineata non riuscita.\n" - -#: src/cryptsetup_reencrypt.c:168 -#, c-format -msgid "Cannot read device %s.\n" -msgstr "Impossibile leggere il device %s.\n" - -#: src/cryptsetup_reencrypt.c:179 -#, c-format -msgid "Marking LUKS device %s unusable.\n" -msgstr "Impostazione device LUCKS %s come inutilizzabile.\n" - -#: src/cryptsetup_reencrypt.c:184 -#, c-format -msgid "Marking LUKS device %s usable.\n" -msgstr "Impostazione device LUCKS %s come utilizzabile.\n" - -#: src/cryptsetup_reencrypt.c:200 -#, c-format -msgid "Cannot write device %s.\n" -msgstr "Impossibile scrivere il device %s.\n" - -#: src/cryptsetup_reencrypt.c:281 -msgid "Cannot write reencryption log file.\n" -msgstr "Impossibile scrivere il file di registro di re-cifratura.\n" - -#: src/cryptsetup_reencrypt.c:337 -msgid "Cannot read reencryption log file.\n" -msgstr "Impossibile leggere il file di registro di re-cifratura.\n" - -#: src/cryptsetup_reencrypt.c:374 -#, c-format -msgid "Log file %s exists, resuming reencryption.\n" -msgstr "Il file di registro %s esiste, viene ripristinata la re-cifratura.\n" - -#: src/cryptsetup_reencrypt.c:403 -msgid "Activating temporary device using old LUKS header.\n" -msgstr "Attivazione device temporaneo usando il vecchio header LUKS.\n" - -#: src/cryptsetup_reencrypt.c:414 -msgid "Activating temporary device using new LUKS header.\n" -msgstr "Attivazione device temporaneo usando il nuovo header LUKS.\n" - -#: src/cryptsetup_reencrypt.c:424 -msgid "Activation of temporary devices failed.\n" -msgstr "Attivazione del device temporaneo non riuscita.\n" - -#: src/cryptsetup_reencrypt.c:450 -#, c-format -msgid "New LUKS header for device %s created.\n" -msgstr "Non è stato creato alcun header LUKS per il device %s.\n" - -#: src/cryptsetup_reencrypt.c:458 -#, c-format -msgid "Activated keyslot %i.\n" -msgstr "Slot di chiave %i attivato.\n" - -#: src/cryptsetup_reencrypt.c:484 -#, c-format -msgid "LUKS header backup of device %s created.\n" -msgstr "Header LUKS di backup del device %s creato.\n" - -#: src/cryptsetup_reencrypt.c:532 -msgid "Creation of LUKS backup headers failed.\n" -msgstr "Creazione degli header di backup LUKS non riuscita.\n" - -#: src/cryptsetup_reencrypt.c:634 -#, c-format -msgid "Cannot restore LUKS header on device %s.\n" -msgstr "Impossibile ripristinare l'header LUKS sul device %s.\n" - -#: src/cryptsetup_reencrypt.c:636 -#, c-format -msgid "LUKS header on device %s restored.\n" -msgstr "Ripristinato l'header LUKS sul device %s.\n" +#~ msgid "%s is not LUKS device.\n" +#~ msgstr "%s non è un device LUKS.\n" -#: src/cryptsetup_reencrypt.c:669 -#, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" -"Avanzamento: %5.1f%%, ETA %02llu:%02llu, %4llu MiB scritti, velocità %5.1f " -"MiB/s%s" - -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 -msgid "Cannot seek to device offset.\n" -msgstr "Impossibile posizionarsi all'offset del device.\n" - -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 -msgid "Cannot open temporary LUKS header file.\n" -msgstr "Impossibile aprire il file temporaneo dell'header LUKS.\n" - -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 -msgid "Cannot get device size.\n" -msgstr "Impossibile ottenere la dimensione del device.\n" - -#: src/cryptsetup_reencrypt.c:919 -msgid "Interrupted by a signal.\n" -msgstr "Interrotto dal segnale.\n" - -#: src/cryptsetup_reencrypt.c:921 -msgid "IO error during reencryption.\n" -msgstr "Errore di IO durante la re-cifratura.\n" - -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" -"Il file chiave può essere usato solamente con --key-slot o con esattamente " -"uno slot di chiave attivo.\n" - -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 -#, c-format -msgid "Enter passphrase for key slot %u: " -msgstr "Inserire la passphrase per lo slot di chiave %u: " - -#: src/cryptsetup_reencrypt.c:1136 -msgid "Cannot open reencryption log file.\n" -msgstr "Impossibile aprire il file di registro di re-cifratura.\n" - -#: src/cryptsetup_reencrypt.c:1262 -msgid "Reencryption block size" -msgstr "Dimensione blocco re-cifratura" - -#: src/cryptsetup_reencrypt.c:1262 -msgid "MiB" -msgstr "MiB" - -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "Non cambia chiave, nessun re-cifratura dei dati." - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." -msgstr "Usa IO diretto negli accessi ai device" - -#: src/cryptsetup_reencrypt.c:1274 -msgid "Use fsync after each block." -msgstr "Usa fsync dopo ogni blocco" - -#: src/cryptsetup_reencrypt.c:1275 -msgid "Update log file after every block." -msgstr "Aggiora il registro a ogni blocco" - -#: src/cryptsetup_reencrypt.c:1276 -msgid "Use only this slot (others will be disabled)." -msgstr "Usa solo questo slot (gli altri vengono disabilitati)" - -#: src/cryptsetup_reencrypt.c:1279 -msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" -"Riduce la dimensione dei dati del device (muove l'offset dei dati) PERICOLOSO" - -#: src/cryptsetup_reencrypt.c:1280 -msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" -"Usa solo la dimensione specificata del device (ignora il resto del device) " -"PERICOLOSO" - -#: src/cryptsetup_reencrypt.c:1281 -msgid "Create new header on not encrypted device." -msgstr "Crea un nuovo header su un device non cifrato" - -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "Decifra definitivamente il device (rimuove la cifratura)" - -#: src/cryptsetup_reencrypt.c:1298 -msgid "[OPTION...] " -msgstr "[OPZIONI...] " - -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" -"Attenzione: questo è codice sperimentale, potrebbe danneggiare i propri " -"dati.\n" - -#: src/cryptsetup_reencrypt.c:1313 -#, c-format -msgid "Reencryption will change: volume key%s%s%s%s.\n" -msgstr "La re-cifratura modificherà: chiave del volume%s%s%s%s.\n" - -#: src/cryptsetup_reencrypt.c:1314 -msgid ", set hash to " -msgstr ", imposta l'hash a " - -#: src/cryptsetup_reencrypt.c:1315 -msgid ", set cipher to " -msgstr ", imposta il cifrario a " - -#: src/cryptsetup_reencrypt.c:1320 -msgid "Argument required." -msgstr "Argomento richiesto." - -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" -"Solo valori tra 1 MiB e 64 MiB sono consentiti per la dimensione del blocco " -"di re-cifratura." - -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 -msgid "Invalid device size specification." -msgstr "Specifica di dimensione del device non valida." - -#: src/cryptsetup_reencrypt.c:1363 -msgid "Maximum device reduce size is 64 MiB." -msgstr "La dimensione massima di riduzione del device è 64 MiB." - -#: src/cryptsetup_reencrypt.c:1366 -msgid "Reduce size must be multiple of 512 bytes sector." -msgstr "La dimensione di riduzione deve essere un multiplo di 512 byte." - -#: src/cryptsetup_reencrypt.c:1370 -msgid "Option --new must be used together with --reduce-device-size." -msgstr "L'opzione --new deve essere usata con --reduce-device-size." - -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "L'opzione --keep-key può essere usata solo con --hash o --iter-time." - -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "L'opzione --new non può essere usata con --decrypt." - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "L'opzione --decrypt non è compatibile con i parametri specificati." - -#: src/utils_tools.c:151 -msgid "Error reading response from terminal.\n" -msgstr "Errore nel leggere la risposta dal terminale.\n" - -#: src/utils_tools.c:173 -msgid "Command successful.\n" -msgstr "Comando eseguito con successo.\n" - -#: src/utils_tools.c:191 -#, c-format -msgid "Command failed with code %i" -msgstr "Comando non riuscito con codice %i" - -#: src/utils_password.c:42 -#, c-format -msgid "Cannot check password quality: %s\n" -msgstr "Impossibile controllare la qualità della password: %s\n" - -#: src/utils_password.c:50 -#, c-format -msgid "" -"Password quality check failed:\n" -" %s\n" -msgstr "" -"Controllo qualità della password non riuscito:\n" -" %s\n" +#~ msgid "%s is not LUKS device." +#~ msgstr "%s non è un device LUKS." diff --git a/po/nl.gmo b/po/nl.gmo deleted file mode 100644 index 0c405b5..0000000 Binary files a/po/nl.gmo and /dev/null differ diff --git a/po/nl.po b/po/nl.po index 6d108a0..c9af75a 100644 --- a/po/nl.po +++ b/po/nl.po @@ -1,15 +1,15 @@ # Dutch translation of cryptsetup. # This file is distributed under the same license as the cryptsetup package. -# Copyright (C) 2014 Free Software Foundation, Inc. -# Koen Torfs , 2014. +# Copyright (C) 2013 Free Software Foundation, Inc. +# Koen Torfs , 2013. # msgid "" msgstr "" -"Project-Id-Version: cryptsetup-1.6.6\n" +"Project-Id-Version: cryptsetup-1.6.2\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: 2014-08-13 02:34+0100\n" -"Last-Translator: Koen Torfs \n" +"POT-Creation-Date: 2013-07-27 19:53+0200\n" +"PO-Revision-Date: 2013-08-11 02:58+0100\n" +"Last-Translator: Koen Torfs \n" "Language-Team: Dutch \n" "Language: nl\n" "MIME-Version: 1.0\n" @@ -17,37 +17,26 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -#: lib/libdevmapper.c:252 +#: lib/libdevmapper.c:245 msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "" -"Kan apparaatstoewijzer niet initialiseren, uitvoering als non-root " -"gebruiker.\n" +msgstr "Kan apparaatstoewijzer niet initialiseren, uitvoering als non-root gebruiker.\n" -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:248 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" -msgstr "" -"Kan apparaatstoewijzer niet initialiseren. Is kernelmodule dm_mod geladen?\n" +msgstr "Kan apparaatstoewijzer niet initialiseren. Is kernelmodule dm_mod geladen?\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:536 #, c-format msgid "DM-UUID for device %s was truncated.\n" msgstr "DM-UUID voor apparaat %s werd afgekapt.\n" -#: lib/libdevmapper.c:698 -#, fuzzy -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Aangevraagde LUKS-hash %s wordt niet ondersteund.\n" - #: lib/random.c:76 msgid "" "System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" +"Please move mouse or type some text in another window to gather some random events.\n" msgstr "" -"Systeem heeft niet genoeg willekeurige gegevens om de sleutel tot het " -"opslagmedium verder te genereren.\n" -"Beweeg de muis of typ wat tekst in een nieuw venster om enkele willekeurige " -"evenementen te verzamelen.\n" +"Systeem heeft niet genoeg willekeurige gegevens om de sleutel tot het opslagmedium verder te genereren.\n" +"Beweeg de muis of typ wat tekst in een nieuw venster om enkele willekeurige evenementen te verzamelen.\n" #: lib/random.c:80 #, c-format @@ -67,261 +56,256 @@ msgstr "Onbekende RNG-kwaliteit aangevraagd.\n" msgid "Error %d reading from RNG: %s\n" msgstr "Fout %d bij lezen uit RNG: %s\n" -#: lib/setup.c:200 +#: lib/setup.c:190 msgid "Cannot initialize crypto RNG backend.\n" msgstr "Kan RNG versleutelings-backend niet initialiseren.\n" -#: lib/setup.c:206 +#: lib/setup.c:196 msgid "Cannot initialize crypto backend.\n" msgstr "Kan versleutelings-backend niet initialiseren.\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 +#: lib/setup.c:219 lib/setup.c:1110 lib/verity/verity.c:123 #, c-format msgid "Hash algorithm %s not supported.\n" msgstr "Aangevraagd hash-algoritme %s wordt niet ondersteund.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 +#: lib/setup.c:222 lib/loopaes/loopaes.c:90 #, c-format msgid "Key processing error (using hash %s).\n" msgstr "Sleutelbehandelingsfout (met hash %s in gebruik).\n" -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" -"Apparaatstype kan niet bepaald worden. Incompatibele apparaatsactivering?\n" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Deze operatie wordt enkel ondersteund voor LUKS-apparaten.\n" - -#: lib/setup.c:320 +#: lib/setup.c:268 msgid "All key slots full.\n" msgstr "Alle sleutelplaatsen zijn vol.\n" -#: lib/setup.c:327 +#: lib/setup.c:275 #, c-format msgid "Key slot %d is invalid, please select between 0 and %d.\n" msgstr "Sleutelplaats %d is ongeldig, selecteer een plaats tussen 0 en %d.\n" -#: lib/setup.c:333 +#: lib/setup.c:281 #, c-format msgid "Key slot %d is full, please select another one.\n" msgstr "Sleutelplaats %d is vol, selecteer een andere.\n" -#: lib/setup.c:472 +#: lib/setup.c:390 #, c-format msgid "Enter passphrase for %s: " msgstr "Voer wachtwoord in voor %s: " -#: lib/setup.c:653 +#: lib/setup.c:571 #, c-format msgid "Header detected but device %s is too small.\n" msgstr "Koptekst gevonden maar apparaat %s is te klein.\n" -#: lib/setup.c:669 lib/setup.c:1420 +#: lib/setup.c:587 lib/setup.c:1337 msgid "This operation is not supported for this device type.\n" msgstr "Deze operatie wordt niet ondersteund voor dit apparaatstype.\n" -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:825 lib/setup.c:1298 lib/setup.c:2173 #, c-format msgid "Device %s is not active.\n" msgstr "Apparaat %s is niet actief.\n" -#: lib/setup.c:925 +#: lib/setup.c:842 #, c-format msgid "Underlying device for crypt device %s disappeared.\n" msgstr "Onderliggend apparaat van versleutelingsapparaat %s is verdwenen.\n" -#: lib/setup.c:994 +#: lib/setup.c:907 msgid "Invalid plain crypt parameters.\n" msgstr "Ongeldige normale versleutelingsparameters.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:912 lib/setup.c:1037 msgid "Invalid key size.\n" msgstr "Ongeldige sleutelgrootte.\n" -#: lib/setup.c:1004 lib/setup.c:1124 +#: lib/setup.c:917 lib/setup.c:1042 msgid "UUID is not supported for this crypt type.\n" msgstr "UUID wordt niet ondersteund voor dit encryptietype.\n" -#: lib/setup.c:1046 +#: lib/setup.c:959 msgid "Can't format LUKS without device.\n" msgstr "Kan LUKS niet formatteren zonder apparaat.\n" -#: lib/setup.c:1089 +#: lib/setup.c:1007 #, c-format msgid "Cannot format device %s which is still in use.\n" msgstr "Kan apparaat %s niet formatteren; het is nog steeds actief.\n" -#: lib/setup.c:1092 +#: lib/setup.c:1010 #, c-format msgid "Cannot format device %s, permission denied.\n" msgstr "Kan apparaat %s niet formatteren: toestemming geweigerd.\n" -#: lib/setup.c:1096 +#: lib/setup.c:1014 #, c-format msgid "Cannot wipe header on device %s.\n" msgstr "Kan koptekst op apparaat %s niet wissen.\n" -#: lib/setup.c:1114 +#: lib/setup.c:1032 msgid "Can't format LOOPAES without device.\n" msgstr "Kan LOOPAES niet formatteren zonder apparaat.\n" -#: lib/setup.c:1152 +#: lib/setup.c:1070 msgid "Can't format VERITY without device.\n" msgstr "Kan VERITY niet formatteren zonder apparaat.\n" -#: lib/setup.c:1160 lib/verity/verity.c:106 +#: lib/setup.c:1078 lib/verity/verity.c:106 #, c-format msgid "Unsupported VERITY hash type %d.\n" msgstr "Niet-ondersteund VERITY-hashtype %d.\n" -#: lib/setup.c:1166 lib/verity/verity.c:114 +#: lib/setup.c:1084 lib/verity/verity.c:114 msgid "Unsupported VERITY block size.\n" msgstr "Niet-ondersteunde VERITY-blokgrootte.\n" -#: lib/setup.c:1171 lib/verity/verity.c:76 +#: lib/setup.c:1089 lib/verity/verity.c:76 msgid "Unsupported VERITY hash offset.\n" msgstr "Niet-ondersteunde VERITY-hashgegevenspositie.\n" -#: lib/setup.c:1285 +#: lib/setup.c:1201 #, c-format msgid "Unknown crypt device type %s requested.\n" msgstr "Onbekend versleutelingsapparaattype %s aangevraagd.\n" -#: lib/setup.c:1435 +#: lib/setup.c:1352 msgid "Do you really want to change UUID of device?" msgstr "Bent u zeker dat u het UUID van het apparaat wilt wijzigen?" -#: lib/setup.c:1545 +#: lib/setup.c:1440 lib/setup.c:1485 lib/setup.c:1534 lib/setup.c:1600 +#: lib/setup.c:1673 lib/setup.c:1737 lib/setup.c:1818 lib/setup.c:1864 +#: lib/setup.c:2238 lib/setup.c:2532 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Deze operatie wordt enkel ondersteund voor LUKS-apparaten.\n" + +#: lib/setup.c:1447 #, c-format msgid "Volume %s is not active.\n" msgstr "Opslagmedium %s is niet actief.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1458 #, c-format msgid "Volume %s is already suspended.\n" msgstr "Opslagmedium %s is reeds geschorst.\n" -#: lib/setup.c:1563 +#: lib/setup.c:1465 #, c-format msgid "Suspend is not supported for device %s.\n" msgstr "Opschorten wordt niet ondersteund voor apparaat %s.\n" -#: lib/setup.c:1565 +#: lib/setup.c:1467 #, c-format msgid "Error during suspending device %s.\n" msgstr "Fout bij het opschorten van apparaat %s.\n" -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1495 lib/setup.c:1544 #, c-format msgid "Volume %s is not suspended.\n" msgstr "Opslagmedium %s is niet geschorst.\n" -#: lib/setup.c:1605 +#: lib/setup.c:1509 #, c-format msgid "Resume is not supported for device %s.\n" msgstr "Hervatting wordt niet ondersteund voor apparaat %s.\n" -#: lib/setup.c:1607 lib/setup.c:1659 +#: lib/setup.c:1511 lib/setup.c:1565 #, c-format msgid "Error during resuming device %s.\n" msgstr "Fout bij het hervatten van apparaat %s.\n" -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 +#: lib/setup.c:1551 lib/setup.c:1989 lib/setup.c:2003 src/cryptsetup.c:151 +#: src/cryptsetup.c:229 src/cryptsetup.c:316 src/cryptsetup.c:660 +#: src/cryptsetup.c:1076 msgid "Enter passphrase: " msgstr "Voer wachtwoord in: " -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1614 lib/setup.c:1751 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"Kan geen sleutelplaats toevoegen, alle plaatsen zijn uitgeschakeld en geen " -"sleutel tot het opslagmedium voorzien.\n" +msgstr "Kan geen sleutelplaats toevoegen, alle plaatsen zijn uitgeschakeld en geen sleutel tot het opslagmedium voorzien.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1623 lib/setup.c:1757 lib/setup.c:1761 msgid "Enter any passphrase: " msgstr "Voer enig wachtwoord in: " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1640 lib/setup.c:1774 lib/setup.c:1778 lib/setup.c:1841 +#: src/cryptsetup.c:942 msgid "Enter new passphrase for key slot: " msgstr "Voer een nieuw wachtwoord in voor de sleutelplaats: " -#: lib/setup.c:1798 +#: lib/setup.c:1705 #, c-format msgid "Key slot %d changed.\n" msgstr "Sleutelplaats %d werd gewijzigd.\n" -#: lib/setup.c:1801 +#: lib/setup.c:1708 #, c-format msgid "Replaced with key slot %d.\n" msgstr "Vervangen door sleutelplaats %d.\n" -#: lib/setup.c:1806 +#: lib/setup.c:1713 msgid "Failed to swap new key slot.\n" msgstr "Kan nieuwe sleutelplaats niet verwisselen.\n" -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1832 lib/setup.c:2093 lib/setup.c:2106 lib/setup.c:2249 msgid "Volume key does not match the volume.\n" msgstr "Sleutel tot opslagmedium komt niet overeen met het opslagmedium.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1870 #, c-format msgid "Key slot %d is invalid.\n" msgstr "Sleutelplaats %d is ongeldig.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1875 #, c-format msgid "Key slot %d is not used.\n" msgstr "Sleutelplaats %d is niet in gebruik.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1905 lib/setup.c:1977 lib/setup.c:2069 #, c-format msgid "Device %s already exists.\n" msgstr "Apparaat %s bestaat reeds.\n" -#: lib/setup.c:2171 +#: lib/setup.c:2080 msgid "Incorrect volume key specified for plain device.\n" -msgstr "" -"Incorrecte sleutel tot het opslagmedium voor normaal apparaat verschaft.\n" +msgstr "Incorrecte sleutel tot het opslagmedium voor normaal apparaat verschaft.\n" -#: lib/setup.c:2204 +#: lib/setup.c:2113 msgid "Incorrect root hash specified for verity device.\n" msgstr "Incorrecte root-hash voor het VERITY-apparaat opgegeven.\n" -#: lib/setup.c:2227 +#: lib/setup.c:2136 msgid "Device type is not properly initialised.\n" msgstr "Apparaatstype is niet behoorlijk geïnitialiseerd.\n" -#: lib/setup.c:2259 +#: lib/setup.c:2168 #, c-format msgid "Device %s is still in use.\n" msgstr "Apparaat %s is nog in gebruik.\n" -#: lib/setup.c:2268 +#: lib/setup.c:2177 #, c-format msgid "Invalid device %s.\n" msgstr "Ongeldig apparaat %s.\n" -#: lib/setup.c:2289 +#: lib/setup.c:2198 msgid "Function not available in FIPS mode.\n" msgstr "Functie niet beschikbaar in FIPS-modus.\n" -#: lib/setup.c:2295 +#: lib/setup.c:2204 msgid "Volume key buffer too small.\n" msgstr "Sleutelbuffer van het opslagmedium is te klein.\n" -#: lib/setup.c:2303 +#: lib/setup.c:2212 msgid "Cannot retrieve volume key for plain device.\n" msgstr "Kan sleutel tot het opslagmedium voor normaal apparaat niet ophalen.\n" -#: lib/setup.c:2310 +#: lib/setup.c:2219 #, c-format msgid "This operation is not supported for %s crypt device.\n" msgstr "Deze operatie wordt niet ondersteund voor versleutelapparaat %s.\n" -#: lib/setup.c:2506 +#: lib/setup.c:2416 msgid "Dump operation is not supported for this device type.\n" msgstr "Dump-operatie niet ondersteund voor dit apparaatstype.\n" @@ -333,350 +317,314 @@ msgstr "Kan geen procesprioriteit verkrijgen.\n" msgid "Cannot unlock memory.\n" msgstr "Kan geheugen niet ontgrendelen.\n" -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 +#: lib/utils_crypt.c:227 lib/utils_crypt.c:240 lib/utils_crypt.c:387 +#: lib/utils_crypt.c:402 msgid "Out of memory while reading passphrase.\n" msgstr "Geen geheugen meer beschikbaar bij lezen van wachtwoord.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils_crypt.c:232 lib/utils_crypt.c:247 msgid "Error reading passphrase from terminal.\n" msgstr "Fout bij het lezen van het wachtwoord uit de terminal.\n" -#: lib/utils_crypt.c:259 +#: lib/utils_crypt.c:245 msgid "Verify passphrase: " msgstr "Voer wachtwoord nogmaals in: " -#: lib/utils_crypt.c:266 +#: lib/utils_crypt.c:252 msgid "Passphrases do not match.\n" msgstr "Wachtwoorden komen niet overeen.\n" -#: lib/utils_crypt.c:350 +#: lib/utils_crypt.c:336 msgid "Cannot use offset with terminal input.\n" msgstr "Kan de gegevenspositie niet via terminalinvoer gebruiken.\n" -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 +#: lib/utils_crypt.c:355 lib/tcrypt/tcrypt.c:443 msgid "Failed to open key file.\n" msgstr "Openen van sleutelbestand is mislukt.\n" -#: lib/utils_crypt.c:378 +#: lib/utils_crypt.c:364 msgid "Failed to stat key file.\n" msgstr "Kan status van sleutelbestand niet opvragen.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 +#: lib/utils_crypt.c:372 lib/utils_crypt.c:393 msgid "Cannot seek to requested keyfile offset.\n" msgstr "Kan niet zoeken tot aan het aangevraagde sleutelbestand.\n" -#: lib/utils_crypt.c:424 +#: lib/utils_crypt.c:410 msgid "Error reading passphrase.\n" msgstr "Fout bij lezen van wachtwoord.\n" -#: lib/utils_crypt.c:442 +#: lib/utils_crypt.c:428 msgid "Maximum keyfile size exceeded.\n" msgstr "Maximum sleutelbestandsgrootte overschreden.\n" -#: lib/utils_crypt.c:447 +#: lib/utils_crypt.c:433 msgid "Cannot read requested amount of data.\n" msgstr "Kan aangevraagde hoeveelheid data niet lezen.\n" -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/utils_fips.c:46 +msgid "FIPS checksum verification failed.\n" +msgstr "Verificatie van FIPS-controlesom gefaald.\n" + +#: lib/utils_fips.c:50 +msgid "Running in FIPS mode.\n" +msgstr "Uitvoering in FIPS-modus.\n" + +#: lib/utils_device.c:52 lib/luks1/keyencryption.c:82 #, c-format msgid "Device %s doesn't exist or access denied.\n" msgstr "Apparaat %s bestaat niet of toegang is geweigerd.\n" -#: lib/utils_device.c:430 +#: lib/utils_device.c:346 msgid "Cannot use a loopback device, running as non-root user.\n" -msgstr "" -"Kan geen loopback-apparaat gebruiken, uitvoering als non-root gebruiker.\n" +msgstr "Kan geen loopback-apparaat gebruiken, uitvoering als non-root gebruiker.\n" -#: lib/utils_device.c:433 +#: lib/utils_device.c:349 msgid "Cannot find a free loopback device.\n" msgstr "Kan geen vrij loopback-apparaat vinden.\n" -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" -"Vastmaken loopback-apparaat gefaald (loop-apparaat met autoclear-vlag is " -"vereist).\n" +#: lib/utils_device.c:356 +msgid "Attaching loopback device failed (loop device with autoclear flag is required).\n" +msgstr "Vastmaken loopback-apparaat gefaald (loop-apparaat met autoclear-vlag is vereist).\n" -#: lib/utils_device.c:484 +#: lib/utils_device.c:396 #, c-format msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" -"Kan apparaat %s niet gebruiken; het is nog actief (reeds toegewezen of " -"aangekoppeld).\n" +msgstr "Kan apparaat %s niet gebruiken; het is nog actief (reeds toegewezen of aangekoppeld).\n" -#: lib/utils_device.c:488 +#: lib/utils_device.c:400 #, c-format msgid "Cannot get info about device %s.\n" msgstr "Kan geen informatie verkrijgen over apparaat %s.\n" -#: lib/utils_device.c:494 +#: lib/utils_device.c:406 #, c-format msgid "Requested offset is beyond real size of device %s.\n" -msgstr "" -"De aangevraagde gegevenspositie valt buiten de werkelijke grootte van " -"apparaat %s.\n" +msgstr "De aangevraagde gegevenspositie valt buiten de werkelijke grootte van apparaat %s.\n" -#: lib/utils_device.c:502 +#: lib/utils_device.c:414 #, c-format msgid "Device %s has zero size.\n" msgstr "Apparaat %s heeft grootte nul.\n" -#: lib/utils_device.c:513 +#: lib/utils_device.c:425 lib/luks1/keymanage.c:89 #, c-format msgid "Device %s is too small.\n" msgstr "Apparaat %s is te klein.\n" -#: lib/luks1/keyencryption.c:37 +#: lib/luks1/keyencryption.c:31 #, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n" msgstr "" "Kan dm-crypt sleuteltoewijzing niet instellen voor apparaat %s.\n" -"Kijk na of de kernel versleutelalgoritme %s ondersteunt (bekijk syslog voor " -"meer informatie).\n" +"Kijk na of de kernel versleutelalgoritme %s ondersteunt (bekijk syslog voor meer informatie).\n" -#: lib/luks1/keyencryption.c:42 +#: lib/luks1/keyencryption.c:36 msgid "Key size in XTS mode must be 256 or 512 bits.\n" msgstr "In XTS-modus moet de sleutelgrootte 256 of 512 bits zijn.\n" -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 +#: lib/luks1/keyencryption.c:88 lib/luks1/keymanage.c:290 +#: lib/luks1/keymanage.c:559 lib/luks1/keymanage.c:978 #, c-format msgid "Cannot write to device %s, permission denied.\n" msgstr "Kan apparaat %s niet beschrijven: toestemming geweigerd.\n" -#: lib/luks1/keyencryption.c:111 +#: lib/luks1/keyencryption.c:103 msgid "Failed to open temporary keystore device.\n" msgstr "Openen van het tijdelijke sleutelopslagapparaat is mislukt.\n" -#: lib/luks1/keyencryption.c:118 +#: lib/luks1/keyencryption.c:110 msgid "Failed to access temporary keystore device.\n" msgstr "Kan geen toegang verkrijgen tot tijdelijk sleutelopslagapparaat.\n" -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "Invoer/uitvoerfout tijdens het versleutelen van de sleutelplaats.\n" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "Invoer/uitvoerfout tijdens het ontsleutelen van de sleutelplaats.\n" - -#: lib/luks1/keymanage.c:90 -#, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "Apparaat %s is te klein. (LUKS vereist minstens % bytes.)\n" - -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 +#: lib/luks1/keymanage.c:175 lib/luks1/keymanage.c:412 +#: src/cryptsetup_reencrypt.c:978 #, c-format msgid "Device %s is not a valid LUKS device.\n" msgstr "Apparaat %s is geen geldig LUKS-apparaat.\n" -#: lib/luks1/keymanage.c:198 +#: lib/luks1/keymanage.c:193 #, c-format msgid "Requested header backup file %s already exists.\n" msgstr "Aangevraagd reservekopiebestand %s van koptekst bestaat reeds.\n" -#: lib/luks1/keymanage.c:200 +#: lib/luks1/keymanage.c:195 #, c-format msgid "Cannot create header backup file %s.\n" msgstr "Kan reservekopiebestand %s van koptekst niet aanmaken.\n" -#: lib/luks1/keymanage.c:205 +#: lib/luks1/keymanage.c:200 #, c-format msgid "Cannot write header backup file %s.\n" msgstr "Kan reservekopiebestand %s van koptekst niet schrijven.\n" -#: lib/luks1/keymanage.c:239 +#: lib/luks1/keymanage.c:233 msgid "Backup file doesn't contain valid LUKS header.\n" msgstr "Reservekopiebestand bevat geen geldige LUKS-koptekst.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: lib/luks1/keymanage.c:246 lib/luks1/keymanage.c:483 #, c-format msgid "Cannot open header backup file %s.\n" msgstr "Kan reservekopiebestand %s van koptekst niet openen.\n" -#: lib/luks1/keymanage.c:258 +#: lib/luks1/keymanage.c:252 #, c-format msgid "Cannot read header backup file %s.\n" msgstr "Kan reservekopiebestand %s van koptekst niet lezen.\n" -#: lib/luks1/keymanage.c:269 +#: lib/luks1/keymanage.c:263 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"Verschillende gegevenspositie of sleutelgrootte in apparaat en reservekopie; " -"herstelling is mislukt.\n" +msgstr "Verschillende gegevenspositie of sleutelgrootte in apparaat en reservekopie; herstelling is mislukt.\n" -#: lib/luks1/keymanage.c:277 +#: lib/luks1/keymanage.c:271 #, c-format msgid "Device %s %s%s" msgstr "Apparaat %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"bevat geen LUKS-koptekst. Het vervangen van de koptekst kan gegevens op het " -"apparaat vernietigen." +#: lib/luks1/keymanage.c:272 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "bevat geen LUKS-koptekst. Het vervangen van de koptekst kan gegevens op het apparaat vernietigen." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"bevat reeds een LUKS-koptekst. Het vervangen van de koptekst zal bestaande " -"sleutelplaatsen vernietigen." +#: lib/luks1/keymanage.c:273 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "bevat reeds een LUKS-koptekst. Het vervangen van de koptekst zal bestaande sleutelplaatsen vernietigen." -#: lib/luks1/keymanage.c:280 +#: lib/luks1/keymanage.c:274 msgid "" "\n" "WARNING: real device header has different UUID than backup!" msgstr "" "\n" -"WAARSCHUWING: originele apparaatkoptekst heeft een ander UUID dan de " -"reservekopie!" +"WAARSCHUWING: originele apparaatkoptekst heeft een ander UUID dan de reservekopie!" -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 +#: lib/luks1/keymanage.c:293 lib/luks1/keymanage.c:522 +#: lib/luks1/keymanage.c:562 lib/tcrypt/tcrypt.c:581 lib/verity/verity.c:82 #: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 #: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 #, c-format msgid "Cannot open device %s.\n" msgstr "Kan apparaat %s niet openen.\n" -#: lib/luks1/keymanage.c:329 +#: lib/luks1/keymanage.c:323 msgid "Non standard key size, manual repair required.\n" msgstr "Niet-standaard sleutelgrootte, handmatige herstelling is vereist.\n" -#: lib/luks1/keymanage.c:334 +#: lib/luks1/keymanage.c:328 msgid "Non standard keyslots alignment, manual repair required.\n" -msgstr "" -"Niet-standaard sleutelplaatsuitlijning, handmatige herstelling is vereist.\n" +msgstr "Niet-standaard sleutelplaatsuitlijning, handmatige herstelling is vereist.\n" -#: lib/luks1/keymanage.c:340 +#: lib/luks1/keymanage.c:334 msgid "Repairing keyslots.\n" msgstr "Sleutelplaatsen worden hersteld.\n" -#: lib/luks1/keymanage.c:351 +#: lib/luks1/keymanage.c:345 msgid "Repair failed." msgstr "Herstelling is mislukt." -#: lib/luks1/keymanage.c:363 +#: lib/luks1/keymanage.c:357 #, c-format msgid "Keyslot %i: offset repaired (%u -> %u).\n" msgstr "Sleutelplaats %i: gegevenspositie hersteld (%u -> %u).\n" -#: lib/luks1/keymanage.c:371 +#: lib/luks1/keymanage.c:365 #, c-format msgid "Keyslot %i: stripes repaired (%u -> %u).\n" msgstr "Sleutelplaats %i: fragmenten hersteld (%u -> %u).\n" -#: lib/luks1/keymanage.c:380 +#: lib/luks1/keymanage.c:374 #, c-format msgid "Keyslot %i: bogus partition signature.\n" msgstr "Sleutelplaats %i: valse partitiehandtekening.\n" -#: lib/luks1/keymanage.c:385 +#: lib/luks1/keymanage.c:379 #, c-format msgid "Keyslot %i: salt wiped.\n" msgstr "Sleutelplaats %i: salt uitgewist.\n" -#: lib/luks1/keymanage.c:396 +#: lib/luks1/keymanage.c:390 msgid "Writing LUKS header to disk.\n" msgstr "LUKS-koptekst wordt naar schijf geschreven.\n" -#: lib/luks1/keymanage.c:421 +#: lib/luks1/keymanage.c:415 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "Niet-ondersteunde LUKS-versie %d.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: lib/luks1/keymanage.c:421 lib/luks1/keymanage.c:626 #, c-format msgid "Requested LUKS hash %s is not supported.\n" msgstr "Aangevraagde LUKS-hash %s wordt niet ondersteund.\n" -#: lib/luks1/keymanage.c:442 +#: lib/luks1/keymanage.c:436 #, c-format msgid "LUKS keyslot %u is invalid.\n" msgstr "LUKS-sleutelplaats %u is ongeldig.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 +#: lib/luks1/keymanage.c:450 src/cryptsetup.c:596 msgid "No known problems detected for LUKS header.\n" msgstr "Geen gekende problemen gevonden bij LUKS-koptekst.\n" -#: lib/luks1/keymanage.c:596 +#: lib/luks1/keymanage.c:583 #, c-format msgid "Error during update of LUKS header on device %s.\n" msgstr "Fout bij het bijwerken van LUKS-koptekst op apparaat %s.\n" -#: lib/luks1/keymanage.c:603 +#: lib/luks1/keymanage.c:590 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" -"Fout bij het herlezen van LUKS-koptekst na bijwerken van apparaat %s.\n" +msgstr "Fout bij het herlezen van LUKS-koptekst na bijwerken van apparaat %s.\n" -#: lib/luks1/keymanage.c:654 +#: lib/luks1/keymanage.c:619 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" -"De datagegevenspositie voor een aparte LUKS-koptekst moet of 0 zijn, of " -"hoger liggen dan de koptekstgrootte (%d sectoren).\n" +msgid "Data offset for detached LUKS header must be either 0 or higher than header size (%d sectors).\n" +msgstr "De datagegevenspositie voor een aparte LUKS-koptekst moet of 0 zijn, of hoger liggen dan de koptekstgrootte (%d sectoren).\n" -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 +#: lib/luks1/keymanage.c:631 lib/luks1/keymanage.c:718 msgid "Wrong LUKS UUID format provided.\n" msgstr "Verkeerd LUKS UUID-formaat verschaft.\n" -#: lib/luks1/keymanage.c:695 +#: lib/luks1/keymanage.c:656 msgid "Cannot create LUKS header: reading random salt failed.\n" msgstr "Kan LUKS-koptekst niet aanmaken: lezen van random salt is mislukt.\n" -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 +#: lib/luks1/keymanage.c:663 lib/luks1/keymanage.c:759 #, c-format msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" msgstr "Niet-compatibele PBKDF2-opties (met hash-algoritme %s in gebruik).\n" -#: lib/luks1/keymanage.c:717 +#: lib/luks1/keymanage.c:678 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"Kan LUKS-koptekst niet aanmaken: koptekst-extract is mislukt (met %s-hash).\n" +msgstr "Kan LUKS-koptekst niet aanmaken: koptekst-extract is mislukt (met %s-hash).\n" -#: lib/luks1/keymanage.c:782 +#: lib/luks1/keymanage.c:743 #, c-format msgid "Key slot %d active, purge first.\n" msgstr "Sleutelplaats %d is actief; ruim eerst op.\n" -#: lib/luks1/keymanage.c:788 +#: lib/luks1/keymanage.c:749 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" -"Inhoud van sleutelplaats %d bevat te weinig fragmenten. " -"Koptekstmanipulatie?\n" +msgstr "Inhoud van sleutelplaats %d bevat te weinig fragmenten. Koptekstmanipulatie?\n" -#: lib/luks1/keymanage.c:950 +#: lib/luks1/keymanage.c:911 #, c-format msgid "Key slot %d unlocked.\n" msgstr "Sleutelplaats %d is ontgrendeld.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: lib/luks1/keymanage.c:946 src/cryptsetup.c:796 +#: src/cryptsetup_reencrypt.c:882 src/cryptsetup_reencrypt.c:916 msgid "No key available with this passphrase.\n" msgstr "Geen sleutel beschikbaar met dit wachtwoord.\n" -#: lib/luks1/keymanage.c:1003 +#: lib/luks1/keymanage.c:964 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" -msgstr "" -"Sleutelplaats %d is ongeldig, selecteer een sleutelplaats tussen 0 en %d.\n" +msgstr "Sleutelplaats %d is ongeldig, selecteer een sleutelplaats tussen 0 en %d.\n" -#: lib/luks1/keymanage.c:1021 +#: lib/luks1/keymanage.c:982 #, c-format msgid "Cannot wipe device %s.\n" msgstr "Kan apparaat %s niet wissen.\n" @@ -695,62 +643,61 @@ msgstr "Onverenigbaar loop-AES-sleutelbestand gevonden.\n" #: lib/loopaes/loopaes.c:244 msgid "Kernel doesn't support loop-AES compatible mapping.\n" -msgstr "" -"Toewijzingen compatibel met loop-AES worden niet ondersteund door de " -"kernel.\n" +msgstr "Toewijzingen compatibel met loop-AES worden niet ondersteund door de kernel.\n" -#: lib/tcrypt/tcrypt.c:475 +#: lib/tcrypt/tcrypt.c:451 #, c-format msgid "Error reading keyfile %s.\n" msgstr "Fout bij het lezen van sleutelbestand %s.\n" -#: lib/tcrypt/tcrypt.c:513 +#: lib/tcrypt/tcrypt.c:489 #, c-format msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" msgstr "Maximum TCRYPT-wachtwoorlengte (%d) overschreden.\n" -#: lib/tcrypt/tcrypt.c:543 +#: lib/tcrypt/tcrypt.c:518 #, c-format msgid "PBKDF2 hash algorithm %s not available, skipping.\n" msgstr "PBKDF2 hash-algoritme %s is niet beschikbaar, wordt overgeslaan.\n" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 +#: lib/tcrypt/tcrypt.c:536 src/cryptsetup.c:549 msgid "Required kernel crypto interface not available.\n" msgstr "Benodigde kernel cryptografie-interface is niet beschikbaar.\n" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 +#: lib/tcrypt/tcrypt.c:538 src/cryptsetup.c:551 msgid "Ensure you have algif_skcipher kernel module loaded.\n" msgstr "Kijk na of kernelmodule algif_skcipher geladen is.\n" -#: lib/tcrypt/tcrypt.c:707 +#: lib/tcrypt/tcrypt.c:591 +#, c-format +msgid "WARNING: device %s is a partition, for TCRYPT system encryption you usually need to use whole block device path.\n" +msgstr "WAARSCHUWING: apparaat %s is een partitie; bij TCRYPT-systeemversleuteling moet u doorgaans het volledige pad naar het blok-apparaat gebruiken.\n" + +#: lib/tcrypt/tcrypt.c:667 #, c-format msgid "Activation is not supported for %d sector size.\n" msgstr "Activatie wordt niet ondersteund voor %d sectorgrootte.\n" -#: lib/tcrypt/tcrypt.c:713 +#: lib/tcrypt/tcrypt.c:673 msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" -msgstr "" -"Activatie voor deze TCRYPT-legacymodus wordt niet ondersteund door de " -"kernel.\n" +msgstr "Activatie voor deze TCRYPT-legacymodus wordt niet ondersteund door de kernel.\n" -#: lib/tcrypt/tcrypt.c:744 +#: lib/tcrypt/tcrypt.c:701 #, c-format msgid "Activating TCRYPT system encryption for partition %s.\n" msgstr "TCRYPT-systeemversleuteling voor partitie %s wordt geactiveerd.\n" -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "" -"Toewijzingen compatibel met TCRYPT worden niet ondersteund door de kernel.\n" +#: lib/tcrypt/tcrypt.c:756 +msgid "Kernel doesn't support plain64 IV.\n" +msgstr "Kernel ondersteunt plain64 IV niet.\n" -#: lib/tcrypt/tcrypt.c:1020 +#: lib/tcrypt/tcrypt.c:961 msgid "This function is not supported without TCRYPT header load." msgstr "Deze functie wordt niet ondersteund zonder TCRYPT-koptekst." #: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "VERITY-apparaat %s gebruikt geen on-disk koptekst.\n" +msgid "Verity device doesn't use on-disk header.\n" +msgstr "VERITY-apparaat gebruikt geen on-disk koptekst.\n" #: lib/verity/verity.c:94 #, c-format @@ -767,9 +714,8 @@ msgid "VERITY header corrupted.\n" msgstr "VERITY-koptekst beschadigd.\n" #: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "Verkeerd VERITY UUID-formaat verschaft op apparaat %s.\n" +msgid "Wrong VERITY UUID format provided.\n" +msgstr "Verkeerd VERITY UUID-formaat verschaft.\n" #: lib/verity/verity.c:196 #, c-format @@ -825,289 +771,244 @@ msgstr "Creatie hash-gebied gefaald.\n" #: lib/verity/verity_hash.c:414 #, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" -"Waarschuwing: kernel kan apparaat niet activeren als de gegevensblokgrootte " -"groter is dan de paginagrootte (%u).\n" +msgid "WARNING: Kernel cannot activate device if data block size exceeds page size (%u).\n" +msgstr "Waarschuwing: kernel kan apparaat niet activeren als de gegevensblokgrootte groter is dan de paginagrootte (%u).\n" -#: src/cryptsetup.c:91 +#: src/cryptsetup.c:79 msgid "Can't do passphrase verification on non-tty inputs.\n" -msgstr "" -"Kan geen wachtwoordverificatie uitvoeren op invoer van buiten de terminal.\n" +msgstr "Kan geen wachtwoordverificatie uitvoeren op invoer van buiten de terminal.\n" + +#: src/cryptsetup.c:110 +msgid "Ignoring keyfile offset and size options, keyfile read size is always the same as encryption key size.\n" +msgstr "Gegevenspositie- en grootte-opties van sleutelbestand worden genegeerd, sleutelbestandsleesgrootte is steeds dezelfde als encryptiesleutelgrootte.\n" -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 +#: src/cryptsetup.c:116 src/cryptsetup.c:495 src/cryptsetup.c:639 +#: src/cryptsetup_reencrypt.c:485 src/cryptsetup_reencrypt.c:520 msgid "No known cipher specification pattern detected.\n" msgstr "Geen bekend specificatiepatroon voor het sleutelalgoritme gevonden.\n" -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" - -#: src/cryptsetup.c:152 -#, fuzzy -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" -"Gegevenspositie- en grootte-opties van sleutelbestand worden genegeerd, " -"sleutelbestandsleesgrootte is steeds dezelfde als encryptiesleutelgrootte.\n" - -#: src/cryptsetup.c:218 +#: src/cryptsetup.c:183 msgid "Option --key-file is required.\n" msgstr "Optie --key-file is vereist.\n" -#: src/cryptsetup.c:267 +#: src/cryptsetup.c:254 src/cryptsetup.c:340 msgid "No device header detected with this passphrase.\n" msgstr "Geen apparaatkoptekst beschikbaar met dit wachtwoord.\n" -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 +#: src/cryptsetup.c:269 src/cryptsetup.c:1065 msgid "" "Header dump with volume key is sensitive information\n" "which allows access to encrypted partition without passphrase.\n" "This dump should be always stored encrypted on safe place." msgstr "" -"Dump van koptekst met sleutel tot het opslagmedium bevat gevoelige " -"informatie\n" +"Dump van koptekst met sleutel tot het opslagmedium bevat gevoelige informatie\n" "die zonder wachtwoord toegang verschaft tot versleutelde partities.\n" -"De dump zou steeds versleuteld en op een veilige plaats bewaard moeten " -"worden." +"De dump zou steeds versleuteld en op een veilige plaats bewaard moeten worden." -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "Benchmarkresultaat is niet betrouwbaar.\n" - -#: src/cryptsetup.c:558 +#: src/cryptsetup.c:489 msgid "# Tests are approximate using memory only (no storage IO).\n" -msgstr "" -"# Tests zijn bij benadering met enkel geheugen in gebruik (geen opslag-IO).\n" +msgstr "# Tests zijn bij benadering met enkel geheugen in gebruik (geen opslag-IO).\n" -#: src/cryptsetup.c:583 src/cryptsetup.c:605 +#: src/cryptsetup.c:511 src/cryptsetup.c:533 msgid "# Algorithm | Key | Encryption | Decryption\n" msgstr "# Algoritme | Sleutel | Versleuteling | Ontsleuteling\n" -#: src/cryptsetup.c:587 +#: src/cryptsetup.c:515 #, c-format msgid "Cipher %s is not available.\n" msgstr "Versleutelalgoritme %s is niet beschikbaar.\n" -#: src/cryptsetup.c:614 +#: src/cryptsetup.c:542 msgid "N/A" msgstr "N/A" -#: src/cryptsetup.c:639 +#: src/cryptsetup.c:567 #, c-format msgid "Cannot read keyfile %s.\n" msgstr "Kan sleutelbestand %s niet lezen.\n" -#: src/cryptsetup.c:643 +#: src/cryptsetup.c:571 #, c-format msgid "Cannot read %d bytes from keyfile %s.\n" msgstr "Kan %d bytes uit sleutelbestand %s niet lezen.\n" -#: src/cryptsetup.c:672 +#: src/cryptsetup.c:600 msgid "Really try to repair LUKS device header?" msgstr "Bent u zeker de LUKS-apparaatkoptekst te willen herstellen?" -#: src/cryptsetup.c:697 +#: src/cryptsetup.c:625 #, c-format msgid "This will overwrite data on %s irrevocably." msgstr "Dit zal data op %s onherroepelijk overschrijven." -#: src/cryptsetup.c:699 +#: src/cryptsetup.c:627 msgid "memory allocation error in action_luksFormat" msgstr "geheugentoewijzingsfout in action_luksFormat" -#: src/cryptsetup.c:717 +#: src/cryptsetup.c:645 #, c-format msgid "Cannot use %s as on-disk header.\n" msgstr "Kan %s niet als on-diskkoptekst gebruiken.\n" -#: src/cryptsetup.c:784 +#: src/cryptsetup.c:718 msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" -"Een verlaagde datagegevenspositie wordt enkel toegestaan voor een " -"vrijstaande LUKS-koptekst.\n" +msgstr "Een verlaagde datagegevenspositie wordt enkel toegestaan voor een vrijstaande LUKS-koptekst.\n" -#: src/cryptsetup.c:881 src/cryptsetup.c:937 +#: src/cryptsetup.c:819 src/cryptsetup.c:875 #, c-format msgid "Key slot %d selected for deletion.\n" msgstr "Sleutelplaats %d geselecteerd voor verwijdering.\n" -#: src/cryptsetup.c:884 +#: src/cryptsetup.c:822 #, c-format msgid "Key %d not active. Can't wipe.\n" msgstr "Sleutel %d is niet actief. Kan niet wissen.\n" -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"Dit is de laatste sleutelplaats. Apparaat zal onbruikbaar worden na het " -"verwijderen van deze sleutel." +#: src/cryptsetup.c:830 src/cryptsetup.c:878 +msgid "This is the last keyslot. Device will become unusable after purging this key." +msgstr "Dit is de laatste sleutelplaats. Apparaat zal onbruikbaar worden na het verwijderen van deze sleutel." -#: src/cryptsetup.c:893 +#: src/cryptsetup.c:831 msgid "Enter any remaining passphrase: " msgstr "Voer enig overblijvend wachtwoord in: " -#: src/cryptsetup.c:921 +#: src/cryptsetup.c:859 msgid "Enter passphrase to be deleted: " msgstr "Voer het te verwijderen wachtwoord in: " -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format +#: src/cryptsetup.c:928 src/cryptsetup_reencrypt.c:948 msgid "Enter any existing passphrase: " msgstr "Voer een bestaand wachtwoord in: " -#: src/cryptsetup.c:1052 +#: src/cryptsetup.c:977 msgid "Enter passphrase to be changed: " msgstr "Voer het te wijzigen wachtwoord in: " -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 +#: src/cryptsetup.c:991 src/cryptsetup_reencrypt.c:934 msgid "Enter new passphrase: " msgstr "Voer nieuw wachtwoord in: " -#: src/cryptsetup.c:1090 +#: src/cryptsetup.c:1015 msgid "Only one device argument for isLuks operation is supported.\n" -msgstr "" -"Voor de isLuks-operatie wordt slechts één apparaatsargument ondersteund.\n" +msgstr "Voor de isLuks-operatie wordt slechts één apparaatsargument ondersteund.\n" -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 +#: src/cryptsetup.c:1171 src/cryptsetup.c:1192 msgid "Option --header-backup-file is required.\n" msgstr "Optie --header-backup-file is vereist.\n" -#: src/cryptsetup.c:1304 +#: src/cryptsetup.c:1229 #, c-format msgid "Unrecognized metadata device type %s.\n" msgstr "Niet-herkende metadata bij apparaatstype %s.\n" -#: src/cryptsetup.c:1307 +#: src/cryptsetup.c:1232 msgid "Command requires device and mapped name as arguments.\n" msgstr "Opdracht vereist apparaat en toewijzingsnaam als argumenten.\n" -#: src/cryptsetup.c:1326 -#, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Deze operatie zal alle sleutelplaatsen op apparaat %s wissen.\n" -"Na deze operatie wordt het apparaat onbruikbaar." - -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid " [--type ] []" msgstr " [--type ] []" -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid "open device as mapping " msgstr "apparaat als toewijzing openen" -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 +#: src/cryptsetup.c:1245 src/cryptsetup.c:1246 src/cryptsetup.c:1247 +#: src/cryptsetup.c:1248 src/veritysetup.c:310 src/veritysetup.c:311 msgid "" msgstr "" -#: src/cryptsetup.c:1361 +#: src/cryptsetup.c:1245 msgid "close device (remove mapping)" msgstr "apparaat sluiten (toewijzingen verwijderen)" -#: src/cryptsetup.c:1362 +#: src/cryptsetup.c:1246 msgid "resize active device" msgstr "actief apparaat vergroten of verkleinen" -#: src/cryptsetup.c:1363 +#: src/cryptsetup.c:1247 msgid "show device status" msgstr "apparaatstatus tonen" -#: src/cryptsetup.c:1364 +#: src/cryptsetup.c:1248 msgid "benchmark cipher" msgstr "versleutelalgoritme benchmarken" -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1249 src/cryptsetup.c:1255 src/cryptsetup.c:1256 +#: src/cryptsetup.c:1257 src/cryptsetup.c:1258 src/cryptsetup.c:1259 +#: src/cryptsetup.c:1260 src/cryptsetup.c:1261 src/cryptsetup.c:1262 msgid "" msgstr "" -#: src/cryptsetup.c:1365 +#: src/cryptsetup.c:1249 msgid "try to repair on-disk metadata" msgstr "on-disk metadata proberen te herstellen" -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "alle sleutelplaatsen wissen (encryptiesleutel verwijderen)" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 +#: src/cryptsetup.c:1250 src/cryptsetup.c:1251 msgid " []" msgstr " []" -#: src/cryptsetup.c:1367 +#: src/cryptsetup.c:1250 msgid "formats a LUKS device" msgstr "een LUKS-apparaat formatteren" -#: src/cryptsetup.c:1368 +#: src/cryptsetup.c:1251 msgid "add key to LUKS device" msgstr "sleutel aan LUKS-apparaat toevoegen" -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 +#: src/cryptsetup.c:1252 src/cryptsetup.c:1253 msgid " []" msgstr " []" -#: src/cryptsetup.c:1369 +#: src/cryptsetup.c:1252 msgid "removes supplied key or key file from LUKS device" msgstr "verschafte sleutel of sleutelbestand van LUKS-apparaat verwijderen" -#: src/cryptsetup.c:1370 +#: src/cryptsetup.c:1253 msgid "changes supplied key or key file of LUKS device" msgstr "wijzigt verschafte sleutel of sleutelbestand van LUKS-apparaat" -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid " " msgstr " " -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid "wipes key with number from LUKS device" msgstr "sleutel met nummer van LUKS-apparaat verwijderen" -#: src/cryptsetup.c:1372 +#: src/cryptsetup.c:1255 msgid "print UUID of LUKS device" msgstr "UUID van LUKS-apparaat tonen" -#: src/cryptsetup.c:1373 +#: src/cryptsetup.c:1256 msgid "tests for LUKS partition header" msgstr " op een LUKS-partitiekoptekst testen" -#: src/cryptsetup.c:1374 +#: src/cryptsetup.c:1257 msgid "dump LUKS partition information" msgstr "LUKS-partitie-informatie dumpen" -#: src/cryptsetup.c:1375 +#: src/cryptsetup.c:1258 msgid "dump TCRYPT device information" msgstr "TCRYPT-apparaatsinformatie dumpen" -#: src/cryptsetup.c:1376 +#: src/cryptsetup.c:1259 msgid "Suspend LUKS device and wipe key (all IOs are frozen)." -msgstr "" -"LUKS-apparaat schorsen en sleutel wissen (alle in-/uitvoer wordt bevroren)." +msgstr "LUKS-apparaat schorsen en sleutel wissen (alle in-/uitvoer wordt bevroren)." -#: src/cryptsetup.c:1377 +#: src/cryptsetup.c:1260 msgid "Resume suspended LUKS device." msgstr "Geschorst LUKS-apparaat hervatten." -#: src/cryptsetup.c:1378 +#: src/cryptsetup.c:1261 msgid "Backup LUKS device header and keyslots" msgstr "Reservekopie van LUKS-apparaatkoptekst en -sleutelplaatsen maken" -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1262 msgid "Restore LUKS device header and keyslots" msgstr "LUKS-apparaatkoptekst en -sleutelplaatsen herstellen" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:1279 src/veritysetup.c:327 msgid "" "\n" " is one of:\n" @@ -1115,7 +1016,7 @@ msgstr "" "\n" " is één van:\n" -#: src/cryptsetup.c:1402 +#: src/cryptsetup.c:1285 msgid "" "\n" "You can also use old syntax aliases:\n" @@ -1127,7 +1028,7 @@ msgstr "" "\topen: (plainOpen), luksOpen, loopaesOpen, tcryptOpen aanmaken\n" "\tclose: (plainClose), luksClose, loopaesClose, tryptClose verwijderen\n" -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:1289 #, c-format msgid "" "\n" @@ -1140,25 +1041,22 @@ msgstr "" " is het onder %s aan te maken apparaat\n" " is het versleutelde apparaat\n" " is het nummer van de te wijzigen LUKS-sleutelplaats\n" -" optioneel sleutelbestand voor de nieuwe sleutel voor de " -"luksAddKey-actie\n" +" optioneel sleutelbestand voor de nieuwe sleutel voor de luksAddKey-actie\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:1296 #, c-format msgid "" "\n" "Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" +"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d (characters)\n" "Default PBKDF2 iteration time for LUKS: %d (ms)\n" msgstr "" "\n" "Standaard meegecompileerde sleutel- en wachtwoordparameters:\n" -"\tMaximum sleutelplaatsgrootte: %dkB, maximum lengte interactief wachtwoord " -"%d (karakters)\n" +"\tMaximum sleutelplaatsgrootte: %dkB, maximum lengte interactief wachtwoord %d (karakters)\n" "Standaard PBKDF2-herhalingstijd voor LUKS: %d (ms)\n" -#: src/cryptsetup.c:1420 +#: src/cryptsetup.c:1303 #, c-format msgid "" "\n" @@ -1168,385 +1066,328 @@ msgid "" "\tLUKS1: %s, Key: %d bits, LUKS header hashing: %s, RNG: %s\n" msgstr "" "\n" -"Standaard meegecompileerde parameters van het " -"apparaatsversleutelingsalgoritme:\n" +"Standaard meegecompileerde parameters van het apparaatsversleutelingsalgoritme:\n" "\tloop-AES: %s, Sleutel: %d bits\n" "\tplain: %s, Sleutel: %d bits, Wachtwoordhashing: %s\n" "\tLUKS1: %s, Sleutel: %d bits, LUKS-kopteksthashing: %s, RNG: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 +#: src/cryptsetup.c:1320 src/veritysetup.c:459 #, c-format msgid "%s: requires %s as arguments" msgstr "%s: vereist %s als argumenten" -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:1353 src/veritysetup.c:367 src/cryptsetup_reencrypt.c:1099 msgid "Show this help message" msgstr "Deze hulptekst tonen" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:1354 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1100 msgid "Display brief usage" msgstr "Korte gebruikssamenvatting tonen" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:1358 src/veritysetup.c:372 src/cryptsetup_reencrypt.c:1104 msgid "Help options:" msgstr "Hulpopties:" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 +#: src/cryptsetup.c:1359 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1105 msgid "Print package version" msgstr "Pakketversie tonen" -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:1360 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1106 msgid "Shows more detailed error messages" msgstr "Gedetailleerdere foutboodschappen tonen" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:1361 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1107 msgid "Show debug messages" msgstr "Debug-boodschappen tonen" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:1362 src/cryptsetup_reencrypt.c:1109 msgid "The cipher used to encrypt the disk (see /proc/crypto)" -msgstr "" -"Het gebruikte versleutelalgoritme om de schijf te versleutelen (zie /proc/" -"crypto)" +msgstr "Het gebruikte versleutelalgoritme om de schijf te versleutelen (zie /proc/crypto)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:1363 src/cryptsetup_reencrypt.c:1111 msgid "The hash used to create the encryption key from the passphrase" -msgstr "" -"De gebruikte hash om de encryptiesleutel uit het wachtwoord aan te maken" +msgstr "De gebruikte hash om de encryptiesleutel uit het wachtwoord aan te maken" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:1364 msgid "Verifies the passphrase by asking for it twice" msgstr "Het wachtwoord controleren door het twee keer te vragen" -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 +#: src/cryptsetup.c:1365 src/cryptsetup_reencrypt.c:1112 msgid "Read the key from a file." msgstr "De sleutel uit een bestand lezen." -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:1366 msgid "Read the volume (master) key from file." msgstr "De (hoofd)sleutel tot het opslagmedium uit een bestand lezen." -#: src/cryptsetup.c:1484 +#: src/cryptsetup.c:1367 msgid "Dump volume (master) key instead of keyslots info." -msgstr "" -"Dump (hoofd)sleutel tot het opslagmedium in plaats van de " -"sleutelplaatsinformatie." +msgstr "Dump (hoofd)sleutel tot het opslagmedium in plaats van de sleutelplaatsinformatie." -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "The size of the encryption key" msgstr "De grootte van de encryptiesleutel" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "BITS" msgstr "BITS" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 +#: src/cryptsetup.c:1369 src/cryptsetup_reencrypt.c:1123 msgid "Limits the read from keyfile" msgstr "Beperkt de lezing uit sleutelbestand" -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 src/cryptsetup.c:1371 +#: src/cryptsetup.c:1372 src/veritysetup.c:378 src/veritysetup.c:379 +#: src/veritysetup.c:381 src/cryptsetup_reencrypt.c:1122 +#: src/cryptsetup_reencrypt.c:1123 src/cryptsetup_reencrypt.c:1124 +#: src/cryptsetup_reencrypt.c:1125 msgid "bytes" msgstr "bytes" -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 +#: src/cryptsetup.c:1370 src/cryptsetup_reencrypt.c:1122 msgid "Number of bytes to skip in keyfile" msgstr "Aantal bytes over te slaan in sleutelbestand" -#: src/cryptsetup.c:1488 +#: src/cryptsetup.c:1371 msgid "Limits the read from newly added keyfile" msgstr "Beperkt de lezing uit een nieuw toegevoegd sleutelbestand" -#: src/cryptsetup.c:1489 +#: src/cryptsetup.c:1372 msgid "Number of bytes to skip in newly added keyfile" msgstr "Aantal bytes over te slaan in nieuwste toegevoegde sleutelbestand" -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:1373 msgid "Slot number for new key (default is first free)" msgstr "Plaatsnummer voor nieuwe sleutel (standaard is de eerste open plaats)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:1374 msgid "The size of the device" msgstr "De grootte van het apparaat" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1374 src/cryptsetup.c:1375 src/cryptsetup.c:1376 +#: src/cryptsetup.c:1382 msgid "SECTORS" msgstr "SECTOREN" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:1375 msgid "The start offset in the backend device" msgstr "De startplaats in het backend-apparaat" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:1376 msgid "How many sectors of the encrypted data to skip at the beginning" -msgstr "" -"Hoeveel sectoren van de versleutelde gegevens aan het begin over te slaan" +msgstr "Hoeveel sectoren van de versleutelde gegevens aan het begin over te slaan" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:1377 msgid "Create a readonly mapping" msgstr "Een alleen-lezen toewijzing aanmaken" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "PBKDF2 herhalingstijd voor LUKS (in ms)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "msecs" msgstr "milliseconden" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:1379 src/cryptsetup_reencrypt.c:1114 msgid "Do not ask for confirmation" msgstr "Niet om bevestiging vragen" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "Timeout for interactive passphrase prompt (in seconds)" msgstr "Timeout voor interactieve wachtwoordprompt (in seconden)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "secs" msgstr "seconden" -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:1381 src/cryptsetup_reencrypt.c:1115 msgid "How often the input of the passphrase can be retried" msgstr "Hoe vaak de invoering van het wachtwoord opnieuw geprobeerd kan worden" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1382 msgid "Align payload at sector boundaries - for luksFormat" msgstr "Payload uitlijnen op meervouden van sectoren – voor luksFormat" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:1383 msgid "File with LUKS header and keyslots backup." msgstr "Bestand met reservekopie van LUKS-koptekst en -sleutelplaatsen." -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 +#: src/cryptsetup.c:1384 src/cryptsetup_reencrypt.c:1116 msgid "Use /dev/random for generating volume key." msgstr "Gebruik /dev/random om de sleutel tot het opslagmedium te genereren." -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 +#: src/cryptsetup.c:1385 src/cryptsetup_reencrypt.c:1117 msgid "Use /dev/urandom for generating volume key." msgstr "Gebruik /dev/urandom om de sleutel tot het opslagmedium te genereren." -#: src/cryptsetup.c:1503 +#: src/cryptsetup.c:1386 msgid "Share device with another non-overlapping crypt segment." msgstr "Apparaat met een ander, niet-overlappend cryptsegment delen." -#: src/cryptsetup.c:1504 src/veritysetup.c:385 +#: src/cryptsetup.c:1387 src/veritysetup.c:384 msgid "UUID for device to use." msgstr "UUID van het te gebruiken apparaat." -#: src/cryptsetup.c:1505 +#: src/cryptsetup.c:1388 msgid "Allow discards (aka TRIM) requests for device." msgstr "Discardaanvragen (alias TRIM) op dit apparaat toelaten." -#: src/cryptsetup.c:1506 +#: src/cryptsetup.c:1389 msgid "Device or file with separated LUKS header." msgstr "Apparaat of bestand met verschillende LUKS-koptekst." -#: src/cryptsetup.c:1507 +#: src/cryptsetup.c:1390 msgid "Do not activate device, just check passphrase." msgstr "Apparaat niet activeren, enkel wachtwoord controleren." -#: src/cryptsetup.c:1508 +#: src/cryptsetup.c:1391 msgid "Use hidden header (hidden TCRYPT device)." msgstr "Verborgen koptekst gebruiken (verborgen TCRYPT-apparaat)." -#: src/cryptsetup.c:1509 +#: src/cryptsetup.c:1392 msgid "Device is system TCRYPT drive (with bootloader)." msgstr "Apparaat is TCRYPT-systeemschijf (met bootloader)." -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "Reserve (secundaire) TCRYPT-koptekst gebruiken." - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "" - -#: src/cryptsetup.c:1512 +#: src/cryptsetup.c:1393 msgid "Type of device metadata: luks, plain, loopaes, tcrypt." msgstr "Soorten apparaat-metadata: luks, plain, loopaes, tcrypt." -#: src/cryptsetup.c:1513 +#: src/cryptsetup.c:1394 msgid "Disable password quality check (if enabled)." msgstr "Wachtwoordkwaliteitscontrole uitschakelen (indien ingeschakeld)." -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "" - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 +#: src/cryptsetup.c:1412 src/veritysetup.c:401 msgid "[OPTION...] " msgstr "[OPTIE…] " -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "Uitvoering in FIPS-modus.\n" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 +#: src/cryptsetup.c:1458 src/veritysetup.c:438 msgid "Argument missing." msgstr "Argument ontbreekt." -#: src/cryptsetup.c:1634 src/veritysetup.c:445 +#: src/cryptsetup.c:1506 src/veritysetup.c:444 msgid "Unknown action." msgstr "Onbekende actie." -#: src/cryptsetup.c:1644 +#: src/cryptsetup.c:1516 msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "" -"Optie --shared wordt enkel toegestaan voor open-opdracht op plain-apparaat.\n" +msgstr "Optie --shared wordt enkel toegestaan voor open-opdracht op plain-apparaat.\n" -#: src/cryptsetup.c:1649 +#: src/cryptsetup.c:1521 msgid "Option --allow-discards is allowed only for open operation.\n" msgstr "Optie --allow-discards wordt enkel toegestaan voor de open-operatie.\n" -#: src/cryptsetup.c:1657 +#: src/cryptsetup.c:1529 msgid "" "Option --key-size is allowed only for luksFormat, open and benchmark.\n" "To limit read from keyfile use --keyfile-size=(bytes)." msgstr "" "Optie --key-size is enkel toegestaan bij luksFormat, open en benchmark.\n" -"Om de lezing uit een sleutelbestand te beperken, gebruik --keyfile-" -"size=(bytes)." +"Om de lezing uit een sleutelbestand te beperken, gebruik --keyfile-size=(bytes)." -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" -"Optie --test-passphrase is enkel toegestaan bij open van LUKS- en TCRYPT-" -"apparaten.\n" +#: src/cryptsetup.c:1536 +msgid "Option --test-passphrase is allowed only for open of LUKS and TCRYPT devices.\n" +msgstr "Optie --test-passphrase is enkel toegestaan bij open van LUKS- en TCRYPT-apparaten.\n" -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 +#: src/cryptsetup.c:1541 src/cryptsetup_reencrypt.c:1185 msgid "Key size must be a multiple of 8 bits" msgstr "Sleutelgrootte moet een meervoud zijn van 8 bits" -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 +#: src/cryptsetup.c:1548 src/cryptsetup_reencrypt.c:1190 msgid "Key slot is invalid." msgstr "Sleutelplaats is ongeldig." -#: src/cryptsetup.c:1683 +#: src/cryptsetup.c:1555 msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" -"Optie --key-file krijgt voorrang over het gespecificeerde " -"sleutelbestandsargument.\n" +msgstr "Optie --key-file krijgt voorrang over het gespecificeerde sleutelbestandsargument.\n" -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 +#: src/cryptsetup.c:1563 src/veritysetup.c:466 src/cryptsetup_reencrypt.c:1174 msgid "Negative number for option not permitted." msgstr "Een negatief getal wordt niet toegestaan voor deze optie." -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 +#: src/cryptsetup.c:1567 src/cryptsetup_reencrypt.c:1168 +#: src/cryptsetup_reencrypt.c:1194 msgid "Only one of --use-[u]random options is allowed." msgstr "Slechts een enkel gebruik van de opties --use-[u]random is toegestaan." -#: src/cryptsetup.c:1699 +#: src/cryptsetup.c:1571 msgid "Option --use-[u]random is allowed only for luksFormat." msgstr "OPtie --use-[u]random is enkel toegestaan bij luksFormat." -#: src/cryptsetup.c:1703 +#: src/cryptsetup.c:1575 msgid "Option --uuid is allowed only for luksFormat and luksUUID." msgstr "Optie --uuid is enkel toegestaan bij luksFormat en luksUUID." -#: src/cryptsetup.c:1707 +#: src/cryptsetup.c:1579 msgid "Option --align-payload is allowed only for luksFormat." msgstr "Optie --align-payload is enkel toegestaan voor luksFormat." -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Optie --skip wordt enkel ondersteund voor open-opdracht op plain- en loopaes-" -"apparaten.\n" - -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Optie --offset wordt enkel ondersteund voor open-opdracht op plain- en " -"loopaes-apparaten.\n" +#: src/cryptsetup.c:1585 +msgid "Option --skip is supported only for open of plain and loopaes devices.\n" +msgstr "Optie --skip wordt enkel ondersteund voor open-opdracht op plain- en loopaes-apparaten.\n" -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" -"Optie --tcrypt-hidden, --tcrypt-system of --tcrypt-backup wordt enkel " -"ondersteund voor TCRYPT-apparaten.\n" +#: src/cryptsetup.c:1591 +msgid "Option --offset is supported only for open of plain and loopaes devices.\n" +msgstr "Optie --offset wordt enkel ondersteund voor open-opdracht op plain- en loopaes-apparaten.\n" -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "" -"Optie --tcrypt-hidden kan niet met --allow-discards gecombineerd worden.\n" +#: src/cryptsetup.c:1597 +msgid "Option --tcrypt-hidden or --tcrypt-system is supported only for TCRYPT device.\n" +msgstr "Optie --tcrypt-hidden of --tcrypt-system wordt enkel ondersteund voor TCRYPT-apparaten.\n" -#: src/cryptsetup.c:1735 -#, fuzzy -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "" -"Optie --tcrypt-hidden, --tcrypt-system of --tcrypt-backup wordt enkel " -"ondersteund voor TCRYPT-apparaten.\n" - -#: src/veritysetup.c:58 +#: src/veritysetup.c:57 msgid "Invalid salt string specified.\n" msgstr "Ongeldige salt-tekenreeks opgegeven.\n" -#: src/veritysetup.c:88 +#: src/veritysetup.c:87 #, c-format msgid "Cannot create hash image %s for writing.\n" msgstr "Kan hashafbeeling %s niet aanmaken voor beschrijving.\n" -#: src/veritysetup.c:148 +#: src/veritysetup.c:147 msgid "Invalid root hash string specified.\n" msgstr "Ongeldige root-hash tekenreeks opgegeven.\n" -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid " " msgstr " " -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid "format device" msgstr "apparaat formateren" -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid " " msgstr " " -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid "verify device" msgstr "apparaat controleren" -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid " " msgstr " " -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid "create active device" msgstr "actief apparaat aanmaken" -#: src/veritysetup.c:311 +#: src/veritysetup.c:310 msgid "remove (deactivate) device" msgstr "apparaat verwijderen (deactiveren)" -#: src/veritysetup.c:312 +#: src/veritysetup.c:311 msgid "show active device status" msgstr "status van actief apparaat tonen" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "" msgstr "" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "show on-disk information" msgstr "on-disk informatie tonen" -#: src/veritysetup.c:332 +#: src/veritysetup.c:331 #, c-format msgid "" "\n" @@ -1556,329 +1397,284 @@ msgid "" " hash of the root node on \n" msgstr "" "\n" -" is de naam van het onder %s te creëren apparaat is " -"het de naam van het gegevensapparaat is de naam van het " -"apparaat dat de verificatiegegevens bevat is de hash van de " -"rootnode op \n" +" is de naam van het onder %s te creëren apparaat is het de naam van het gegevensapparaat is de naam van het apparaat dat de verificatiegegevens bevat is de hash van de rootnode op \n" -#: src/veritysetup.c:339 +#: src/veritysetup.c:338 #, c-format msgid "" "\n" "Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" +"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, Hash format: %u\n" msgstr "" "\n" "Standaard meegecompileerde dm-verity parameters:\n" -"\tHash: %s, Datablok (bytes): %u, Hashblock (bytes): %u, Saltgrootte: %u, " -"Hashformaat: %u\n" +"\tHash: %s, Datablok (bytes): %u, Hashblock (bytes): %u, Saltgrootte: %u, Hashformaat: %u\n" -#: src/veritysetup.c:377 +#: src/veritysetup.c:376 msgid "Do not use verity superblock" msgstr "VERITY-superblok niet gebruiken" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "Format type (1 - normal, 0 - original Chrome OS)" msgstr "Formaatstype (1 - normaal, 0 - origineel Chrome OS)" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "number" msgstr "nummer" -#: src/veritysetup.c:379 +#: src/veritysetup.c:378 msgid "Block size on the data device" msgstr "Blokgrootte op het gegevensapparaat" -#: src/veritysetup.c:380 +#: src/veritysetup.c:379 msgid "Block size on the hash device" msgstr "Blokgrootte op het hash-apparaat" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "The number of blocks in the data file" msgstr "Aantal blokken in het gegevensbestand" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "blocks" msgstr "blokken" -#: src/veritysetup.c:382 +#: src/veritysetup.c:381 msgid "Starting offset on the hash device" msgstr "De startplaats op het hash-apparaat" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "Hash algorithm" msgstr "Hash-algoritme" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "string" msgstr "tekenreeks" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "Salt" msgstr "Salt" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "hex string" msgstr "hex-tekenreeks" -#: src/cryptsetup_reencrypt.c:147 +#: src/cryptsetup_reencrypt.c:136 #, c-format msgid "Cannot exclusively open %s, device in use.\n" msgstr "Kan %s niet exclusief openen, apparaat wordt gebruikt.\n" -#: src/cryptsetup_reencrypt.c:151 +#: src/cryptsetup_reencrypt.c:140 #, c-format msgid "Cannot open device %s\n" msgstr "Kan apparaat %s niet openen.\n" -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 +#: src/cryptsetup_reencrypt.c:150 src/cryptsetup_reencrypt.c:367 +#: src/cryptsetup_reencrypt.c:786 msgid "Allocation of aligned memory failed.\n" msgstr "Reservering van uitgelijnd geheugen gefaald.\n" -#: src/cryptsetup_reencrypt.c:168 +#: src/cryptsetup_reencrypt.c:157 #, c-format msgid "Cannot read device %s.\n" msgstr "Kan apparaat niet lezen: %s.\n" -#: src/cryptsetup_reencrypt.c:179 +#: src/cryptsetup_reencrypt.c:168 #, c-format msgid "Marking LUKS device %s unusable.\n" msgstr "LUKS-apparaat %s wordt als onbruikbaar gemarkeerd.\n" -#: src/cryptsetup_reencrypt.c:184 +#: src/cryptsetup_reencrypt.c:173 #, c-format msgid "Marking LUKS device %s usable.\n" msgstr "LUKS-apparaat %s wordt als bruikbaar gemarkeerd.\n" -#: src/cryptsetup_reencrypt.c:200 +#: src/cryptsetup_reencrypt.c:189 #, c-format msgid "Cannot write device %s.\n" msgstr "Kan apparaat %s niet beschrijven.\n" -#: src/cryptsetup_reencrypt.c:281 +#: src/cryptsetup_reencrypt.c:270 msgid "Cannot write reencryption log file.\n" msgstr "Kan herencryptie-logbestand niet schrijven.\n" -#: src/cryptsetup_reencrypt.c:337 +#: src/cryptsetup_reencrypt.c:319 msgid "Cannot read reencryption log file.\n" msgstr "Kan herencryptie-logbestand niet lezen.\n" -#: src/cryptsetup_reencrypt.c:374 +#: src/cryptsetup_reencrypt.c:358 #, c-format msgid "Log file %s exists, resuming reencryption.\n" msgstr "Logbestand %s bestaat reeds, herencryptie wordt herstart.\n" -#: src/cryptsetup_reencrypt.c:403 +#: src/cryptsetup_reencrypt.c:393 msgid "Activating temporary device using old LUKS header.\n" msgstr "Activatie van tijdelijke apparaat met oude LUKS-koptekst.\n" -#: src/cryptsetup_reencrypt.c:414 +#: src/cryptsetup_reencrypt.c:404 msgid "Activating temporary device using new LUKS header.\n" msgstr "Activatie van tijdelijke apparaat met nieuwe LUKS-koptekst.\n" -#: src/cryptsetup_reencrypt.c:424 +#: src/cryptsetup_reencrypt.c:414 msgid "Activation of temporary devices failed.\n" msgstr "Activatie van tijdelijke apparaten gefaald.\n" -#: src/cryptsetup_reencrypt.c:450 +#: src/cryptsetup_reencrypt.c:439 #, c-format msgid "New LUKS header for device %s created.\n" msgstr "Nieuwe LUKS-koptekst voor apparaat %s aangemaakt.\n" -#: src/cryptsetup_reencrypt.c:458 +#: src/cryptsetup_reencrypt.c:447 #, c-format msgid "Activated keyslot %i.\n" msgstr "Sleutelplaats %d geactiveerd.\n" -#: src/cryptsetup_reencrypt.c:484 +#: src/cryptsetup_reencrypt.c:471 #, c-format msgid "LUKS header backup of device %s created.\n" msgstr "Reservekopie van LUKS-koptekst op apparaat %s aangemaakt .\n" -#: src/cryptsetup_reencrypt.c:532 +#: src/cryptsetup_reencrypt.c:499 msgid "Creation of LUKS backup headers failed.\n" msgstr "Creatie van LUKS-reservekopteksten gefaald.\n" -#: src/cryptsetup_reencrypt.c:634 +#: src/cryptsetup_reencrypt.c:594 #, c-format msgid "Cannot restore LUKS header on device %s.\n" msgstr "Kan koptekst op apparaat %s niet herstellen.\n" -#: src/cryptsetup_reencrypt.c:636 +#: src/cryptsetup_reencrypt.c:596 #, c-format msgid "LUKS header on device %s restored.\n" msgstr "LUKS-koptekst op apparaat %s hersteld.\n" -#: src/cryptsetup_reencrypt.c:669 +#: src/cryptsetup_reencrypt.c:629 #, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" -"Vooruitgang: %5.1f%%, geschatte voltooiïngstijd %02llu:%02llu, %4llu MB " -"geschreven, snelheid %5.1f MiB/s%s" +msgid "Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" +msgstr "Vooruitgang: %5.1f%%, geschatte voltooiïngstijd %02llu:%02llu, %4llu MB geschreven, snelheid %5.1f MiB/s%s" -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 +#: src/cryptsetup_reencrypt.c:645 src/cryptsetup_reencrypt.c:721 msgid "Cannot seek to device offset.\n" msgstr "Onmogelijk te zoeken tot startplaats van apparaat.\n" -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 +#: src/cryptsetup_reencrypt.c:767 src/cryptsetup_reencrypt.c:773 msgid "Cannot open temporary LUKS header file.\n" msgstr "Kan tijdelijk LUKS-koptekstbestand niet openen.\n" -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 +#: src/cryptsetup_reencrypt.c:779 msgid "Cannot get device size.\n" msgstr "Kan apparaatgrootte niet lezen.\n" -#: src/cryptsetup_reencrypt.c:919 +#: src/cryptsetup_reencrypt.c:803 msgid "Interrupted by a signal.\n" msgstr "Onderbroken door een signaal.\n" -#: src/cryptsetup_reencrypt.c:921 +#: src/cryptsetup_reencrypt.c:805 msgid "IO error during reencryption.\n" msgstr "Invoer/uitvoerfout tijdens herencryptie.\n" -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" -"Sleutelbestand kan enkel gebruikt worden met optie --key-slot of met enkel " -"één actieve sleutelplaats.\n" +#: src/cryptsetup_reencrypt.c:906 +msgid "Key file can be used only with --key-slot or with exactly one key slot active.\n" +msgstr "Sleutelbestand kan enkel gebruikt worden met optie --key-slot of met enkel één actieve sleutelplaats.\n" -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 +#: src/cryptsetup_reencrypt.c:955 #, c-format msgid "Enter passphrase for key slot %u: " msgstr "Voer wachtwoord voor sleutelplaats %u in: " -#: src/cryptsetup_reencrypt.c:1136 +#: src/cryptsetup_reencrypt.c:1004 msgid "Cannot open reencryption log file.\n" msgstr "Kan herencryptie-logbestand niet openen.\n" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "Reencryption block size" msgstr "Blokgrootte herencryptie" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "MiB" msgstr "MB" -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "Sleutel niet wijzigen; gegevensgebied wordt niet opnieuw versleuteld." - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." +#: src/cryptsetup_reencrypt.c:1118 +msgid "Use direct-io when accesing devices." msgstr "direct-io gebruiken bij het lezen van apparaten." -#: src/cryptsetup_reencrypt.c:1274 +#: src/cryptsetup_reencrypt.c:1119 msgid "Use fsync after each block." msgstr "fsync na elk blok gebruiken." -#: src/cryptsetup_reencrypt.c:1275 +#: src/cryptsetup_reencrypt.c:1120 msgid "Update log file after every block." msgstr "Na elk blok het logbestand bijwerken." -#: src/cryptsetup_reencrypt.c:1276 +#: src/cryptsetup_reencrypt.c:1121 msgid "Use only this slot (others will be disabled)." msgstr "Enkel deze plaats gebruiken (anderen worden uitgeschakeld)." -#: src/cryptsetup_reencrypt.c:1279 +#: src/cryptsetup_reencrypt.c:1124 msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" -"Grootte van gegevensapparaat wijzigen (gegevenspositie wijzigen). GEVAARLIJK!" +msgstr "Grootte van gegevensapparaat wijzigen (gegevenspositie wijzigen). GEVAARLIJK!" -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup_reencrypt.c:1125 msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" -"Enkel ingegeven apparaatsgrootte gebruiken (rest van apparaat wordt " -"genegeerd). GEVAARLIJK!" +msgstr "Enkel ingegeven apparaatsgrootte gebruiken (rest van apparaat wordt genegeerd). GEVAARLIJK!" -#: src/cryptsetup_reencrypt.c:1281 +#: src/cryptsetup_reencrypt.c:1126 msgid "Create new header on not encrypted device." msgstr "Nieuwe koptekst op niet-versleuteld apparaat invoeren." -#: src/cryptsetup_reencrypt.c:1282 -#, fuzzy -msgid "Permanently decrypt device (remove encryption)." -msgstr "alle sleutelplaatsen wissen (encryptiesleutel verwijderen)" - -#: src/cryptsetup_reencrypt.c:1298 +#: src/cryptsetup_reencrypt.c:1142 msgid "[OPTION...] " msgstr "[OPTIE...] " -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" -"Waarschuwing: deze code is nog experimenteel, het kan al uw data volledig " -"vernielen.\n" +#: src/cryptsetup_reencrypt.c:1156 +msgid "WARNING: this is experimental code, it can completely break your data.\n" +msgstr "Waarschuwing: deze code is nog experimenteel, het kan al uw data volledig vernielen.\n" -#: src/cryptsetup_reencrypt.c:1313 +#: src/cryptsetup_reencrypt.c:1157 #, c-format msgid "Reencryption will change: volume key%s%s%s%s.\n" msgstr "Herencryptie zal sleutel tot het opslagmedium %s%s%s%s wijzigen.\n" -#: src/cryptsetup_reencrypt.c:1314 +#: src/cryptsetup_reencrypt.c:1158 msgid ", set hash to " msgstr ", stel hash in op " -#: src/cryptsetup_reencrypt.c:1315 +#: src/cryptsetup_reencrypt.c:1159 msgid ", set cipher to " msgstr ", stel sleutelalgoritme in op " -#: src/cryptsetup_reencrypt.c:1320 +#: src/cryptsetup_reencrypt.c:1164 msgid "Argument required." msgstr "Argument is vereist." -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" -"Enkel waarden tussen 1 MB en 64 MB zijn toegestaan als " -"herencryptieblokgrootte." +#: src/cryptsetup_reencrypt.c:1180 +msgid "Only values between 1 MiB and 64 MiB allowed for reencryption block size." +msgstr "Enkel waarden tussen 1 MB en 64 MB zijn toegestaan als herencryptieblokgrootte." -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 +#: src/cryptsetup_reencrypt.c:1199 src/cryptsetup_reencrypt.c:1204 msgid "Invalid device size specification." msgstr "Ongeldig apparaatsgrootte ingegeven." -#: src/cryptsetup_reencrypt.c:1363 +#: src/cryptsetup_reencrypt.c:1207 msgid "Maximum device reduce size is 64 MiB." msgstr "Maximum apparaatsverkleiningsgrootte is 64 MB." -#: src/cryptsetup_reencrypt.c:1366 +#: src/cryptsetup_reencrypt.c:1210 msgid "Reduce size must be multiple of 512 bytes sector." -msgstr "" -"Verkleiningsgrootte moet een meervoud zijn van de 512 bytes-grote sector." +msgstr "Verkleiningsgrootte moet een meervoud zijn van de 512 bytes-grote sector." -#: src/cryptsetup_reencrypt.c:1370 +#: src/cryptsetup_reencrypt.c:1214 msgid "Option --new must be used together with --reduce-device-size." msgstr "Optie --new moet samen met --reduce-device-size gebruikt worden." -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "" -"Optie -- keep-key kan enkel samen met --hash of --iter-time gebruikt worden." - -#: src/cryptsetup_reencrypt.c:1378 -#, fuzzy -msgid "Option --new cannot be used together with --decrypt." -msgstr "Optie --new moet samen met --reduce-device-size gebruikt worden." - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "" - -#: src/utils_tools.c:151 +#: src/utils_tools.c:150 msgid "Error reading response from terminal.\n" msgstr "Fout bij het lezen van antwoord uit de terminal.\n" -#: src/utils_tools.c:173 +#: src/utils_tools.c:172 msgid "Command successful.\n" msgstr "Opdracht succesvol.\n" -#: src/utils_tools.c:191 +#: src/utils_tools.c:186 #, c-format msgid "Command failed with code %i" msgstr "Opdracht is mislukt met code %i" @@ -1897,20 +1693,6 @@ msgstr "" "Wachtwoordkwaliteitscontrole gefaald:\n" "%s\n" -#~ msgid "FIPS checksum verification failed.\n" -#~ msgstr "Verificatie van FIPS-controlesom gefaald.\n" - -#~ msgid "" -#~ "WARNING: device %s is a partition, for TCRYPT system encryption you " -#~ "usually need to use whole block device path.\n" -#~ msgstr "" -#~ "WAARSCHUWING: apparaat %s is een partitie; bij TCRYPT-" -#~ "systeemversleuteling moet u doorgaans het volledige pad naar het blok-" -#~ "apparaat gebruiken.\n" - -#~ msgid "Kernel doesn't support plain64 IV.\n" -#~ msgstr "Kernel ondersteunt plain64 IV niet.\n" - #~ msgid "Enter LUKS passphrase: " #~ msgstr "Voer LUKS-wachtwoord in: " @@ -1971,19 +1753,11 @@ msgstr "" #~ msgid "remove loop-AES mapping" #~ msgstr "loop-AES-toewijzing verwijderen" -#~ msgid "" -#~ "Option --allow-discards is allowed only for luksOpen, loopaesOpen and " -#~ "create operation.\n" -#~ msgstr "" -#~ "Optie --allow-discards wordt enkel ondersteund voor de luksOpen-, " -#~ "loopaesOpen- en create-opdrachten.\n" +#~ msgid "Option --allow-discards is allowed only for luksOpen, loopaesOpen and create operation.\n" +#~ msgstr "Optie --allow-discards wordt enkel ondersteund voor de luksOpen-, loopaesOpen- en create-opdrachten.\n" -#~ msgid "" -#~ "Cannot use device %s (crypt segments overlaps or in use by another " -#~ "device).\n" -#~ msgstr "" -#~ "Kan apparaat %s niet gebruiken (cryptsegmenten overlappen of worden door " -#~ "een ander apparaat gebruikt).\n" +#~ msgid "Cannot use device %s (crypt segments overlaps or in use by another device).\n" +#~ msgstr "Kan apparaat %s niet gebruiken (cryptsegmenten overlappen of worden door een ander apparaat gebruikt).\n" #~ msgid "Key slot %d verified.\n" #~ msgstr "Sleutelplaats %d is geverifieerd.\n" @@ -2003,16 +1777,11 @@ msgstr "" #~ msgid "Negative keyfile size not permitted.\n" #~ msgstr "Een negatieve sleutelbestandsgrootte is niet toegestaan.\n" -#~ msgid "" -#~ "Warning: exhausting read requested, but key file is not a regular file, " -#~ "function might never return.\n" -#~ msgstr "" -#~ "Waarschuwing: volledige lezing aangevraagd, maar sleutelbestand is geen " -#~ "regulier bestand, functie zal misschien nooit terugkeren.\n" +#~ msgid "Warning: exhausting read requested, but key file is not a regular file, function might never return.\n" +#~ msgstr "Waarschuwing: volledige lezing aangevraagd, maar sleutelbestand is geen regulier bestand, functie zal misschien nooit terugkeren.\n" #~ msgid "Cannot find compatible device-mapper kernel modules.\n" -#~ msgstr "" -#~ "Kan geen compatibele kernelmodules voor apparaatstoewijzer vinden.\n" +#~ msgstr "Kan geen compatibele kernelmodules voor apparaatstoewijzer vinden.\n" #~ msgid "Cannot open device: %s\n" #~ msgstr "Kan apparaat niet openen: %s\n" @@ -2030,15 +1799,11 @@ msgstr "" #~ msgstr "actief apparaat wijzigen - VEROUDERD - zie man-pagina" #~ msgid "" -#~ "The reload action is deprecated. Please use \"dmsetup reload\" in case " -#~ "you really need this functionality.\n" -#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, " -#~ "hit Ctrl-C now.\n" +#~ "The reload action is deprecated. Please use \"dmsetup reload\" in case you really need this functionality.\n" +#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, hit Ctrl-C now.\n" #~ msgstr "" -#~ "De herlaadactie is verouderd. Gebruik “dmsetup reload” indien u deze " -#~ "functionaliteit echt nodig hebt.\n" -#~ "WAARSCHUWING: gebruik de herlaadactie niet om LUKS-apparaten te " -#~ "“touchen”. Indien u dat wilt doen, typ nu Ctrl-C.\n" +#~ "De herlaadactie is verouderd. Gebruik “dmsetup reload” indien u deze functionaliteit echt nodig hebt.\n" +#~ "WAARSCHUWING: gebruik de herlaadactie niet om LUKS-apparaten te “touchen”. Indien u dat wilt doen, typ nu Ctrl-C.\n" #~ msgid "Obsolete option --non-exclusive is ignored.\n" #~ msgstr "Verouderde optie --non-exclusive wordt genegeerd.\n" diff --git a/po/pl.gmo b/po/pl.gmo deleted file mode 100644 index 4ed282e..0000000 Binary files a/po/pl.gmo and /dev/null differ diff --git a/po/pl.po b/po/pl.po index ba2b504..79b0aa3 100644 --- a/po/pl.po +++ b/po/pl.po @@ -1,51 +1,42 @@ # Polish translation for cryptsetup. # Copyright (C) 2010 Free Software Foundation, Inc. # This file is put in the public domain. -# Jakub Bogusz , 2010-2015. +# Jakub Bogusz , 2010-2013. # msgid "" msgstr "" -"Project-Id-Version: cryptsetup 1.6.7\n" +"Project-Id-Version: cryptsetup 1.6.2\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: 2015-03-19 20:10+0100\n" +"POT-Creation-Date: 2013-07-27 19:53+0200\n" +"PO-Revision-Date: 2013-08-04 20:30+0200\n" "Last-Translator: Jakub Bogusz \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " -"|| n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -#: lib/libdevmapper.c:252 +#: lib/libdevmapper.c:245 msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "" -"Nie można zainicjować device-mappera w czasie działania jako nie-root.\n" +msgstr "Nie można zainicjować device-mappera w czasie działania jako nie-root.\n" -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:248 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" -msgstr "" -"Nie można zainicjować device-mappera. Czy moduł jądra dm_mod jest wczytany?\n" +msgstr "Nie można zainicjować device-mappera. Czy moduł jądra dm_mod jest wczytany?\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:536 #, c-format msgid "DM-UUID for device %s was truncated.\n" msgstr "DM-UUID dla urządzenia %s został skrócony.\n" -#: lib/libdevmapper.c:698 -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Żądane opcje wydajności dmcrypta nie są obsługiwane.\n" - #: lib/random.c:76 msgid "" "System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" +"Please move mouse or type some text in another window to gather some random events.\n" msgstr "" "Entropia w systemie wyczerpała się w trakcie generowania klucza wolumenu.\n" -"Proszę poruszać myszą albo wpisać trochę tekstu w innym oknie w celu " -"zebrania zdarzeń losowych.\n" +"Proszę poruszać myszą albo wpisać trochę tekstu w innym oknie w celu zebrania zdarzeń losowych.\n" #: lib/random.c:80 #, c-format @@ -65,261 +56,256 @@ msgstr "Nieznane żądanie jakości RNG.\n" msgid "Error %d reading from RNG: %s\n" msgstr "Błąd %d podczas odczytu z RNG: %s\n" -#: lib/setup.c:200 +#: lib/setup.c:190 msgid "Cannot initialize crypto RNG backend.\n" msgstr "Nie można zainicjować backendu kryptograficznego RNG.\n" -#: lib/setup.c:206 +#: lib/setup.c:196 msgid "Cannot initialize crypto backend.\n" msgstr "Nie można zainicjować backendu kryptograficznego.\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 +#: lib/setup.c:219 lib/setup.c:1110 lib/verity/verity.c:123 #, c-format msgid "Hash algorithm %s not supported.\n" msgstr "Algorytm skrótu %s nie jest obsługiwany.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 +#: lib/setup.c:222 lib/loopaes/loopaes.c:90 #, c-format msgid "Key processing error (using hash %s).\n" msgstr "Błąd przetwarzania klucza (użyto algorytmu skrótu %s).\n" -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" -"Nie można określić rodzaju urządzenia. Niezgodny sposób aktywacji " -"urządzenia?\n" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Ta operacja jest obsługiwana tylko na urządzeniach LUKS.\n" - -#: lib/setup.c:320 +#: lib/setup.c:268 msgid "All key slots full.\n" msgstr "Wszyskie miejsca na klucze są pełne.\n" -#: lib/setup.c:327 +#: lib/setup.c:275 #, c-format msgid "Key slot %d is invalid, please select between 0 and %d.\n" msgstr "Numer klucza %d jest błędny, proszę wybrać wartość między 0 a %d.\n" -#: lib/setup.c:333 +#: lib/setup.c:281 #, c-format msgid "Key slot %d is full, please select another one.\n" msgstr "Miejsce na klucz %d jest pełne, proszę wybrać inne.\n" -#: lib/setup.c:472 +#: lib/setup.c:390 #, c-format msgid "Enter passphrase for %s: " msgstr "Hasło dla %s: " -#: lib/setup.c:653 +#: lib/setup.c:571 #, c-format msgid "Header detected but device %s is too small.\n" msgstr "Wykryto nagłówek, ale urządzenie %s jest zbyt małe.\n" -#: lib/setup.c:669 lib/setup.c:1420 +#: lib/setup.c:587 lib/setup.c:1337 msgid "This operation is not supported for this device type.\n" msgstr "Ta operacja nie jest obsługiwana dla tego rodzaju urządzenia.\n" -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:825 lib/setup.c:1298 lib/setup.c:2173 #, c-format msgid "Device %s is not active.\n" msgstr "Urządzenie %s nie jest aktywne.\n" -#: lib/setup.c:925 +#: lib/setup.c:842 #, c-format msgid "Underlying device for crypt device %s disappeared.\n" msgstr "Urzędzenie stojące za urządzeniem szyfrowanym %s znikło.\n" -#: lib/setup.c:994 +#: lib/setup.c:907 msgid "Invalid plain crypt parameters.\n" msgstr "Błędne parametry szyfru plain.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:912 lib/setup.c:1037 msgid "Invalid key size.\n" msgstr "Błędny rozmiar klucza.\n" -#: lib/setup.c:1004 lib/setup.c:1124 +#: lib/setup.c:917 lib/setup.c:1042 msgid "UUID is not supported for this crypt type.\n" msgstr "UUID nie jest obsługiwany dla tego rodzaju szyfrowania.\n" -#: lib/setup.c:1046 +#: lib/setup.c:959 msgid "Can't format LUKS without device.\n" msgstr "Nie można sformatować LUKS-a bez urządzenia.\n" -#: lib/setup.c:1089 +#: lib/setup.c:1007 #, c-format msgid "Cannot format device %s which is still in use.\n" msgstr "Nie można sformatować urządzenia %s, które jest nadal w użyciu.\n" -#: lib/setup.c:1092 +#: lib/setup.c:1010 #, c-format msgid "Cannot format device %s, permission denied.\n" msgstr "Nie można sformatować urządzenia %s, brak uprawnień.\n" -#: lib/setup.c:1096 +#: lib/setup.c:1014 #, c-format msgid "Cannot wipe header on device %s.\n" msgstr "Nie można wyczyścić nagłówka na urządzeniu %s.\n" -#: lib/setup.c:1114 +#: lib/setup.c:1032 msgid "Can't format LOOPAES without device.\n" msgstr "Nie można sformatować urządzenia LUKSAES bez urządzenia.\n" -#: lib/setup.c:1152 +#: lib/setup.c:1070 msgid "Can't format VERITY without device.\n" msgstr "Nie można sformatować VERITY bez urządzenia.\n" -#: lib/setup.c:1160 lib/verity/verity.c:106 +#: lib/setup.c:1078 lib/verity/verity.c:106 #, c-format msgid "Unsupported VERITY hash type %d.\n" msgstr "Nieobsługiwany typ hasza VERITY %d.\n" -#: lib/setup.c:1166 lib/verity/verity.c:114 +#: lib/setup.c:1084 lib/verity/verity.c:114 msgid "Unsupported VERITY block size.\n" msgstr "Nieobsługiwany rozmiar bloku VERITY.\n" -#: lib/setup.c:1171 lib/verity/verity.c:76 +#: lib/setup.c:1089 lib/verity/verity.c:76 msgid "Unsupported VERITY hash offset.\n" msgstr "Nieobsługiwany offset hasza VERITY.\n" -#: lib/setup.c:1285 +#: lib/setup.c:1201 #, c-format msgid "Unknown crypt device type %s requested.\n" msgstr "Nieznany typ żądanego urządzenia szyfrującego %s.\n" -#: lib/setup.c:1435 +#: lib/setup.c:1352 msgid "Do you really want to change UUID of device?" msgstr "Czy na pewno zmienić UUID urządzenia?" -#: lib/setup.c:1545 +#: lib/setup.c:1440 lib/setup.c:1485 lib/setup.c:1534 lib/setup.c:1600 +#: lib/setup.c:1673 lib/setup.c:1737 lib/setup.c:1818 lib/setup.c:1864 +#: lib/setup.c:2238 lib/setup.c:2532 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Ta operacja jest obsługiwana tylko na urządzeniach LUKS.\n" + +#: lib/setup.c:1447 #, c-format msgid "Volume %s is not active.\n" msgstr "Wolumen %s nie jest aktywny.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1458 #, c-format msgid "Volume %s is already suspended.\n" msgstr "Wolumen %s już został wstrzymany.\n" -#: lib/setup.c:1563 +#: lib/setup.c:1465 #, c-format msgid "Suspend is not supported for device %s.\n" msgstr "Wstrzymywanie nie jest obsługiwane dla urządzenia %s.\n" -#: lib/setup.c:1565 +#: lib/setup.c:1467 #, c-format msgid "Error during suspending device %s.\n" msgstr "Błąd podczas wstrzymywania urządzenia %s.\n" -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1495 lib/setup.c:1544 #, c-format msgid "Volume %s is not suspended.\n" msgstr "Wolumen %s nie jest wstrzymany.\n" -#: lib/setup.c:1605 +#: lib/setup.c:1509 #, c-format msgid "Resume is not supported for device %s.\n" msgstr "Wznawianie nie jest obsługiwane dla urządzenia %s.\n" -#: lib/setup.c:1607 lib/setup.c:1659 +#: lib/setup.c:1511 lib/setup.c:1565 #, c-format msgid "Error during resuming device %s.\n" msgstr "Błąd podczas wznawiania urządzenia %s.\n" -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 +#: lib/setup.c:1551 lib/setup.c:1989 lib/setup.c:2003 src/cryptsetup.c:151 +#: src/cryptsetup.c:229 src/cryptsetup.c:316 src/cryptsetup.c:660 +#: src/cryptsetup.c:1076 msgid "Enter passphrase: " msgstr "Hasło: " -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1614 lib/setup.c:1751 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"Nie można dodać klucza, wszystkie miejsca na klucze wyłączone i nie podano " -"klucza wolumenu.\n" +msgstr "Nie można dodać klucza, wszystkie miejsca na klucze wyłączone i nie podano klucza wolumenu.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1623 lib/setup.c:1757 lib/setup.c:1761 msgid "Enter any passphrase: " msgstr "Dowolne hasło: " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1640 lib/setup.c:1774 lib/setup.c:1778 lib/setup.c:1841 +#: src/cryptsetup.c:942 msgid "Enter new passphrase for key slot: " msgstr "Nowe hasło dla klucza: " -#: lib/setup.c:1798 +#: lib/setup.c:1705 #, c-format msgid "Key slot %d changed.\n" msgstr "Klucz numer %d zmieniony.\n" -#: lib/setup.c:1801 +#: lib/setup.c:1708 #, c-format msgid "Replaced with key slot %d.\n" msgstr "Zastąpiono kluczem numer %d.\n" -#: lib/setup.c:1806 +#: lib/setup.c:1713 msgid "Failed to swap new key slot.\n" msgstr "Nie udało się podstawić nowego klucza.\n" -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1832 lib/setup.c:2093 lib/setup.c:2106 lib/setup.c:2249 msgid "Volume key does not match the volume.\n" msgstr "Klucz wolumenu nie pasuje do wolumenu.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1870 #, c-format msgid "Key slot %d is invalid.\n" msgstr "Numer klucza %d jest nieprawidłowy.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1875 #, c-format msgid "Key slot %d is not used.\n" msgstr "Klucz %d nie jest używany.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1905 lib/setup.c:1977 lib/setup.c:2069 #, c-format msgid "Device %s already exists.\n" msgstr "Urządzenie %s już istnieje.\n" -#: lib/setup.c:2171 +#: lib/setup.c:2080 msgid "Incorrect volume key specified for plain device.\n" msgstr "Podano niewłaściwy klucz wolumenu dla zwykłego urządzenia.\n" -#: lib/setup.c:2204 +#: lib/setup.c:2113 msgid "Incorrect root hash specified for verity device.\n" msgstr "Podano niewłaściwy hasz główny dla urządzenia VERITY.\n" -#: lib/setup.c:2227 +#: lib/setup.c:2136 msgid "Device type is not properly initialised.\n" msgstr "Typ urządzenia nie został właściwie zainicjalizowany.\n" -#: lib/setup.c:2259 +#: lib/setup.c:2168 #, c-format msgid "Device %s is still in use.\n" msgstr "Urządzenie %s jest nadal w użyciu.\n" -#: lib/setup.c:2268 +#: lib/setup.c:2177 #, c-format msgid "Invalid device %s.\n" msgstr "Błędne urządzenie %s.\n" -#: lib/setup.c:2289 +#: lib/setup.c:2198 msgid "Function not available in FIPS mode.\n" msgstr "Funkcja nie jest dostępna w trybie FIPS.\n" -#: lib/setup.c:2295 +#: lib/setup.c:2204 msgid "Volume key buffer too small.\n" msgstr "Bufor klucza wolumenu zbyt mały.\n" -#: lib/setup.c:2303 +#: lib/setup.c:2212 msgid "Cannot retrieve volume key for plain device.\n" msgstr "Nie można odtworzyć klucza wolumenu dla zwykłego urządzenia.\n" -#: lib/setup.c:2310 +#: lib/setup.c:2219 #, c-format msgid "This operation is not supported for %s crypt device.\n" msgstr "Ta operacja nie jest obsługiwana dla urządzenia szyfrującego %s.\n" -#: lib/setup.c:2506 +#: lib/setup.c:2416 msgid "Dump operation is not supported for this device type.\n" msgstr "Operacja zrzutu nie jest obsługiwana dla tego rodzaju urządzenia.\n" @@ -331,206 +317,181 @@ msgstr "Nie można odczytać priorytetu procesu.\n" msgid "Cannot unlock memory.\n" msgstr "Nie można odblokować pamięci.\n" -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 +#: lib/utils_crypt.c:227 lib/utils_crypt.c:240 lib/utils_crypt.c:387 +#: lib/utils_crypt.c:402 msgid "Out of memory while reading passphrase.\n" msgstr "Brak pamięci podczas odczytu hasła.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils_crypt.c:232 lib/utils_crypt.c:247 msgid "Error reading passphrase from terminal.\n" msgstr "Błąd podczas odczytu hasła z terminala.\n" -#: lib/utils_crypt.c:259 +#: lib/utils_crypt.c:245 msgid "Verify passphrase: " msgstr "Weryfikacja hasła: " -#: lib/utils_crypt.c:266 +#: lib/utils_crypt.c:252 msgid "Passphrases do not match.\n" msgstr "Hasła nie zgadzają się.\n" -#: lib/utils_crypt.c:350 +#: lib/utils_crypt.c:336 msgid "Cannot use offset with terminal input.\n" msgstr "Nie można użyć offsetu, jeśli wejściem jest terminal.\n" -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 +#: lib/utils_crypt.c:355 lib/tcrypt/tcrypt.c:443 msgid "Failed to open key file.\n" msgstr "Nie udało się otworzyć pliku klucza.\n" -#: lib/utils_crypt.c:378 +#: lib/utils_crypt.c:364 msgid "Failed to stat key file.\n" msgstr "Nie udało się wykonać stat na pliku klucza.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 +#: lib/utils_crypt.c:372 lib/utils_crypt.c:393 msgid "Cannot seek to requested keyfile offset.\n" msgstr "Nie można przemieścić się do żądanego położenia pliku klucza.\n" -#: lib/utils_crypt.c:424 +#: lib/utils_crypt.c:410 msgid "Error reading passphrase.\n" msgstr "Błąd podczas odczytu hasła.\n" -#: lib/utils_crypt.c:442 +#: lib/utils_crypt.c:428 msgid "Maximum keyfile size exceeded.\n" msgstr "Przekroczono maksymalny rozmiar pliku klucza.\n" -#: lib/utils_crypt.c:447 +#: lib/utils_crypt.c:433 msgid "Cannot read requested amount of data.\n" msgstr "Nie można odczytać żądanej ilości danych.\n" -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/utils_fips.c:46 +msgid "FIPS checksum verification failed.\n" +msgstr "Weryfikacja sumy kontrolnej FIPS nie powiodła się.\n" + +#: lib/utils_fips.c:50 +msgid "Running in FIPS mode.\n" +msgstr "Działanie w trybie FIPS.\n" + +#: lib/utils_device.c:52 lib/luks1/keyencryption.c:82 #, c-format msgid "Device %s doesn't exist or access denied.\n" msgstr "Urządzenie %s nie istnieje lub dostęp jest zabroniony.\n" -#: lib/utils_device.c:430 +#: lib/utils_device.c:346 msgid "Cannot use a loopback device, running as non-root user.\n" msgstr "Nie można użyć urządzenia loopback w czasie działania jako nie-root.\n" -#: lib/utils_device.c:433 +#: lib/utils_device.c:349 msgid "Cannot find a free loopback device.\n" msgstr "Nie znaleziono wolnego urządzenia loopback.\n" -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" -"Nie udało się podłączyć urządzenia loopback (wymagane urządzenie loop z " -"flagą autoclear).\n" +#: lib/utils_device.c:356 +msgid "Attaching loopback device failed (loop device with autoclear flag is required).\n" +msgstr "Nie udało się podłączyć urządzenia loopback (wymagane urządzenie loop z flagą autoclear).\n" -#: lib/utils_device.c:484 +#: lib/utils_device.c:396 #, c-format msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" -"Nie można użyć urządzenia %s, które jest w użyciu (już podmapowane lub " -"zamontowane).\n" +msgstr "Nie można użyć urządzenia %s, które jest w użyciu (już podmapowane lub zamontowane).\n" -#: lib/utils_device.c:488 +#: lib/utils_device.c:400 #, c-format msgid "Cannot get info about device %s.\n" msgstr "Nie można uzyskać informacji o urządzeniu %s.\n" -#: lib/utils_device.c:494 +#: lib/utils_device.c:406 #, c-format msgid "Requested offset is beyond real size of device %s.\n" msgstr "Żądany offset jest poza rzeczywistym rozmiarem urządzenia %s.\n" -#: lib/utils_device.c:502 +#: lib/utils_device.c:414 #, c-format msgid "Device %s has zero size.\n" msgstr "Urządzenie %s ma zerowy rozmiar.\n" -#: lib/utils_device.c:513 +#: lib/utils_device.c:425 lib/luks1/keymanage.c:89 #, c-format msgid "Device %s is too small.\n" msgstr "Urządzenie %s jest zbyt małe.\n" -#: lib/luks1/keyencryption.c:37 +#: lib/luks1/keyencryption.c:31 #, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n" msgstr "" "Nie udało się ustawić odwzorowania klucza dm-crypt dla urządzenia %s.\n" -"Proszę sprawdzić, czy jądro obsługuje szyfr %s (więcej informacji w " -"syslogu).\n" +"Proszę sprawdzić, czy jądro obsługuje szyfr %s (więcej informacji w syslogu).\n" -#: lib/luks1/keyencryption.c:42 +#: lib/luks1/keyencryption.c:36 msgid "Key size in XTS mode must be 256 or 512 bits.\n" msgstr "Rozmiar klucza w trybie XTS musi wynosić 256 lub 512 bitów.\n" -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 +#: lib/luks1/keyencryption.c:88 lib/luks1/keymanage.c:290 +#: lib/luks1/keymanage.c:559 lib/luks1/keymanage.c:978 #, c-format msgid "Cannot write to device %s, permission denied.\n" msgstr "Nie można zapisać na urządzenie %s, brak uprawnień.\n" -#: lib/luks1/keyencryption.c:111 +#: lib/luks1/keyencryption.c:103 msgid "Failed to open temporary keystore device.\n" -msgstr "" -"Nie udało się otworzyć urządzenia do tymczasowego przechowywania kluczy.\n" +msgstr "Nie udało się otworzyć urządzenia do tymczasowego przechowywania kluczy.\n" -#: lib/luks1/keyencryption.c:118 +#: lib/luks1/keyencryption.c:110 msgid "Failed to access temporary keystore device.\n" -msgstr "" -"Nie udało się uzyskać dostępu do urządzenia do tymczasowego przechowywania " -"kluczy.\n" - -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "Błąd we/wy podczas szyfrowania klucza.\n" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "Błąd we/wy podczas odszyfrowywania klucza.\n" - -#: lib/luks1/keymanage.c:90 -#, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "" -"Urządzenie %s jest zbyt małe (LUKS wymaga przynajmniej % bajtów).\n" +msgstr "Nie udało się uzyskać dostępu do urządzenia do tymczasowego przechowywania kluczy.\n" -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 +#: lib/luks1/keymanage.c:175 lib/luks1/keymanage.c:412 +#: src/cryptsetup_reencrypt.c:978 #, c-format msgid "Device %s is not a valid LUKS device.\n" msgstr "Urządzenie %s nie jest prawidłowym urządzeniem LUKS.\n" -#: lib/luks1/keymanage.c:198 +#: lib/luks1/keymanage.c:193 #, c-format msgid "Requested header backup file %s already exists.\n" msgstr "Żądany plik kopii zapasowej nagłówka %s już istnieje.\n" -#: lib/luks1/keymanage.c:200 +#: lib/luks1/keymanage.c:195 #, c-format msgid "Cannot create header backup file %s.\n" msgstr "Nie można utworzyć pliku kopii zapasowej nagłówka %s.\n" -#: lib/luks1/keymanage.c:205 +#: lib/luks1/keymanage.c:200 #, c-format msgid "Cannot write header backup file %s.\n" msgstr "Nie można zapisać pliku kopii zapasowej nagłówka %s.\n" -#: lib/luks1/keymanage.c:239 +#: lib/luks1/keymanage.c:233 msgid "Backup file doesn't contain valid LUKS header.\n" msgstr "Plik kopii zapasowej nie zawiera prawidłowego nagłówka LUKS.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: lib/luks1/keymanage.c:246 lib/luks1/keymanage.c:483 #, c-format msgid "Cannot open header backup file %s.\n" msgstr "Nie można otworzyć pliku kopii zapasowej nagłówka %s.\n" -#: lib/luks1/keymanage.c:258 +#: lib/luks1/keymanage.c:252 #, c-format msgid "Cannot read header backup file %s.\n" msgstr "Nie można odczytać pliku kopii zapasowej nagłówka %s.\n" -#: lib/luks1/keymanage.c:269 +#: lib/luks1/keymanage.c:263 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"Offset danych lub rozmiar klucza różnią się między urządzeniem a kopią " -"zapasową; przywrócenie nie powiodło się.\n" +msgstr "Offset danych lub rozmiar klucza różnią się między urządzeniem a kopią zapasową; przywrócenie nie powiodło się.\n" -#: lib/luks1/keymanage.c:277 +#: lib/luks1/keymanage.c:271 #, c-format msgid "Device %s %s%s" msgstr "Urządzenie %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"nie zawiera nagłówka LUKS. Nadpisanie nagłówka może zniszczyć dane na tym " -"urządzeniu." +#: lib/luks1/keymanage.c:272 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "nie zawiera nagłówka LUKS. Nadpisanie nagłówka może zniszczyć dane na tym urządzeniu." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"już zawiera nagłówek LUKS. Nadpisanie nagłówka zniszczy istniejące klucze." +#: lib/luks1/keymanage.c:273 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "już zawiera nagłówek LUKS. Nadpisanie nagłówka zniszczy istniejące klucze." -#: lib/luks1/keymanage.c:280 +#: lib/luks1/keymanage.c:274 msgid "" "\n" "WARNING: real device header has different UUID than backup!" @@ -538,141 +499,132 @@ msgstr "" "\n" "UWAGA: nagłówek prawdziwego urządzenia ma inny UUID niż kopia zapasowa!" -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 +#: lib/luks1/keymanage.c:293 lib/luks1/keymanage.c:522 +#: lib/luks1/keymanage.c:562 lib/tcrypt/tcrypt.c:581 lib/verity/verity.c:82 #: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 #: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 #, c-format msgid "Cannot open device %s.\n" msgstr "Nie można otworzyć urządzenia %s.\n" -#: lib/luks1/keymanage.c:329 +#: lib/luks1/keymanage.c:323 msgid "Non standard key size, manual repair required.\n" msgstr "Niestandardowy rozmiar klucza, wymagana ręczna naprawa.\n" -#: lib/luks1/keymanage.c:334 +#: lib/luks1/keymanage.c:328 msgid "Non standard keyslots alignment, manual repair required.\n" msgstr "Niestandardowe wyrównanie kluczy, wymagana ręczna naprawa.\n" -#: lib/luks1/keymanage.c:340 +#: lib/luks1/keymanage.c:334 msgid "Repairing keyslots.\n" msgstr "Naprawianie kluczy.\n" -#: lib/luks1/keymanage.c:351 +#: lib/luks1/keymanage.c:345 msgid "Repair failed." msgstr "Naprawa nie powiodła się." -#: lib/luks1/keymanage.c:363 +#: lib/luks1/keymanage.c:357 #, c-format msgid "Keyslot %i: offset repaired (%u -> %u).\n" msgstr "Klucz %i: naprawiono offset (%u -> %u).\n" -#: lib/luks1/keymanage.c:371 +#: lib/luks1/keymanage.c:365 #, c-format msgid "Keyslot %i: stripes repaired (%u -> %u).\n" msgstr "Klucz %i: naprawiono pasy (%u -> %u).\n" -#: lib/luks1/keymanage.c:380 +#: lib/luks1/keymanage.c:374 #, c-format msgid "Keyslot %i: bogus partition signature.\n" msgstr "Klucz %i: błędna sygnatura partycji.\n" -#: lib/luks1/keymanage.c:385 +#: lib/luks1/keymanage.c:379 #, c-format msgid "Keyslot %i: salt wiped.\n" msgstr "Klucz %i: zarodek wyczyszczony.\n" -#: lib/luks1/keymanage.c:396 +#: lib/luks1/keymanage.c:390 msgid "Writing LUKS header to disk.\n" msgstr "Zapis nagłówka LUKS na dysk.\n" -#: lib/luks1/keymanage.c:421 +#: lib/luks1/keymanage.c:415 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "Nieobsługiwana wersja LUKS %d.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: lib/luks1/keymanage.c:421 lib/luks1/keymanage.c:626 #, c-format msgid "Requested LUKS hash %s is not supported.\n" msgstr "Żądany skrót LUKS %s nie jest obsługiwany.\n" -#: lib/luks1/keymanage.c:442 +#: lib/luks1/keymanage.c:436 #, c-format msgid "LUKS keyslot %u is invalid.\n" msgstr "Numer klucza LUKS %u jest nieprawidłowy.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 +#: lib/luks1/keymanage.c:450 src/cryptsetup.c:596 msgid "No known problems detected for LUKS header.\n" msgstr "W nagłówku LUKS nie wykryto żadnych znanych problemów.\n" -#: lib/luks1/keymanage.c:596 +#: lib/luks1/keymanage.c:583 #, c-format msgid "Error during update of LUKS header on device %s.\n" msgstr "Błąd podczas uaktualniania nagłówka LUKS na urządzeniu %s.\n" -#: lib/luks1/keymanage.c:603 +#: lib/luks1/keymanage.c:590 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" -"Błęd podczas ponownego odczytu nagłówka LUKS po uaktualnieniu na urządzeniu " -"%s.\n" +msgstr "Błęd podczas ponownego odczytu nagłówka LUKS po uaktualnieniu na urządzeniu %s.\n" -#: lib/luks1/keymanage.c:654 +#: lib/luks1/keymanage.c:619 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" -"Offset danych dla osobnego nagłówka LUKS musi wynosić 0 lub więcej niż " -"rozmiar nagłówka (sektorów: %d).\n" +msgid "Data offset for detached LUKS header must be either 0 or higher than header size (%d sectors).\n" +msgstr "Offset danych dla osobnego nagłówka LUKS musi wynosić 0 lub więcej niż rozmiar nagłówka (sektorów: %d).\n" -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 +#: lib/luks1/keymanage.c:631 lib/luks1/keymanage.c:718 msgid "Wrong LUKS UUID format provided.\n" msgstr "Podano zły format LUKS UUID.\n" -#: lib/luks1/keymanage.c:695 +#: lib/luks1/keymanage.c:656 msgid "Cannot create LUKS header: reading random salt failed.\n" -msgstr "" -"Nie można utworzyć nagłówka LUKS: odczyt losowego zarodka nie powiódł się.\n" +msgstr "Nie można utworzyć nagłówka LUKS: odczyt losowego zarodka nie powiódł się.\n" -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 +#: lib/luks1/keymanage.c:663 lib/luks1/keymanage.c:759 #, c-format msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" msgstr "Niekompatybilne opcje PBKDF2 (przy użyciu algorytmu skrótu %s).\n" -#: lib/luks1/keymanage.c:717 +#: lib/luks1/keymanage.c:678 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"Nie można utworzyć nagłówka LUKS: uzyskanie skrótu nagłówka nie powiodło się " -"(przy użyciu algorytmu %s).\n" +msgstr "Nie można utworzyć nagłówka LUKS: uzyskanie skrótu nagłówka nie powiodło się (przy użyciu algorytmu %s).\n" -#: lib/luks1/keymanage.c:782 +#: lib/luks1/keymanage.c:743 #, c-format msgid "Key slot %d active, purge first.\n" msgstr "Klucz numer %d jest aktywny, należy go najpierw wyczyścić.\n" -#: lib/luks1/keymanage.c:788 +#: lib/luks1/keymanage.c:749 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" msgstr "Klucz %d zawiera zbyt mało pasów. Zmieniony nagłówek?\n" -#: lib/luks1/keymanage.c:950 +#: lib/luks1/keymanage.c:911 #, c-format msgid "Key slot %d unlocked.\n" msgstr "Klucz numer %d odblokowany.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: lib/luks1/keymanage.c:946 src/cryptsetup.c:796 +#: src/cryptsetup_reencrypt.c:882 src/cryptsetup_reencrypt.c:916 msgid "No key available with this passphrase.\n" msgstr "Dla tego hasła nie ma dostępnego klucza.\n" -#: lib/luks1/keymanage.c:1003 +#: lib/luks1/keymanage.c:964 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" msgstr "Numer klucza %d jest błędny, proszę wybrać numer od 0 do %d.\n" -#: lib/luks1/keymanage.c:1021 +#: lib/luks1/keymanage.c:982 #, c-format msgid "Cannot wipe device %s.\n" msgstr "Nie można wyczyścić urządzenia %s.\n" @@ -693,55 +645,59 @@ msgstr "Wykryto niekompatybilny plik klucza loop-AES.\n" msgid "Kernel doesn't support loop-AES compatible mapping.\n" msgstr "Jądro nie obsługuje odwzorowań zgodnych z loop-AES.\n" -#: lib/tcrypt/tcrypt.c:475 +#: lib/tcrypt/tcrypt.c:451 #, c-format msgid "Error reading keyfile %s.\n" msgstr "Błąd odczytu pliku klucza %s.\n" -#: lib/tcrypt/tcrypt.c:513 +#: lib/tcrypt/tcrypt.c:489 #, c-format msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" msgstr "Przekroczono maksymalną długość hasła TCRYPT (%d).\n" -#: lib/tcrypt/tcrypt.c:543 +#: lib/tcrypt/tcrypt.c:518 #, c-format msgid "PBKDF2 hash algorithm %s not available, skipping.\n" msgstr "Algorytm skrótu PBKDF2 %s nie jest dostępny, pominięto.\n" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 +#: lib/tcrypt/tcrypt.c:536 src/cryptsetup.c:549 msgid "Required kernel crypto interface not available.\n" msgstr "Wymagany interfejs kryptograficzny jądra nie jest dostępny.\n" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 +#: lib/tcrypt/tcrypt.c:538 src/cryptsetup.c:551 msgid "Ensure you have algif_skcipher kernel module loaded.\n" msgstr "Proszę upewnić się, że moduł jądra algif_skcipher został załadowany.\n" -#: lib/tcrypt/tcrypt.c:707 +#: lib/tcrypt/tcrypt.c:591 +#, c-format +msgid "WARNING: device %s is a partition, for TCRYPT system encryption you usually need to use whole block device path.\n" +msgstr "UWAGA: urządzenie %s jest partycją, dla szyfrowania systemu TCRYPT zwykle wymagane jest użycie ścieżki do całego urządzenia blokowego.\n" + +#: lib/tcrypt/tcrypt.c:667 #, c-format msgid "Activation is not supported for %d sector size.\n" msgstr "Aktywacja nie jest obsługiwana dla rozmiaru sektora %d.\n" -#: lib/tcrypt/tcrypt.c:713 +#: lib/tcrypt/tcrypt.c:673 msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" msgstr "Jądro nie obsługuje aktywacji dla tego starego trybu TCRYPT.\n" -#: lib/tcrypt/tcrypt.c:744 +#: lib/tcrypt/tcrypt.c:701 #, c-format msgid "Activating TCRYPT system encryption for partition %s.\n" msgstr "Włączanie szyfrowania systemu TCRYPT dla partycji %s.\n" -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "Jądro nie obsługuje odwzorowań zgodnych z TCRYPT.\n" +#: lib/tcrypt/tcrypt.c:756 +msgid "Kernel doesn't support plain64 IV.\n" +msgstr "Jądro nie obsługuje IV plain64.\n" -#: lib/tcrypt/tcrypt.c:1020 +#: lib/tcrypt/tcrypt.c:961 msgid "This function is not supported without TCRYPT header load." msgstr "Ta funkcja nie jest obsługiwana bez załadowanego nagłówka TCRYPT." #: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "Urządzenie Verity %s nie używa nagłówka na dysku.\n" +msgid "Verity device doesn't use on-disk header.\n" +msgstr "Urządzenie VERITY nie używa nagłówka na dysku.\n" #: lib/verity/verity.c:94 #, c-format @@ -758,9 +714,8 @@ msgid "VERITY header corrupted.\n" msgstr "Uszkodzony nagłówek VERITY.\n" #: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "Podano zły format UUID-a VERITY na urządzeniu %s.\n" +msgid "Wrong VERITY UUID format provided.\n" +msgstr "Podano zły format UUID-a VERITY.\n" #: lib/verity/verity.c:196 #, c-format @@ -816,48 +771,31 @@ msgstr "Tworzenie obszaru haszy nie powiodło się.\n" #: lib/verity/verity_hash.c:414 #, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" -"UWAGA: Jądro nie może uaktywnić urządzenia, jeśli rozmiar bloku danych " -"przekracza rozmiar strony (%u).\n" +msgid "WARNING: Kernel cannot activate device if data block size exceeds page size (%u).\n" +msgstr "UWAGA: Jądro nie może uaktywnić urządzenia, jeśli rozmiar bloku danych przekracza rozmiar strony (%u).\n" -#: src/cryptsetup.c:91 +#: src/cryptsetup.c:79 msgid "Can't do passphrase verification on non-tty inputs.\n" -msgstr "" -"Nie można wykonać weryfikacji hasła, jeśli wejściem nie jest terminal.\n" +msgstr "Nie można wykonać weryfikacji hasła, jeśli wejściem nie jest terminal.\n" + +#: src/cryptsetup.c:110 +msgid "Ignoring keyfile offset and size options, keyfile read size is always the same as encryption key size.\n" +msgstr "Zignorowano opcje offsetu i rozmiaru pliku klucza, czytany rozmiar jest zawsze taki sam, jak rozmiar klucza szyfrowania.\n" -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 +#: src/cryptsetup.c:116 src/cryptsetup.c:495 src/cryptsetup.c:639 +#: src/cryptsetup_reencrypt.c:485 src/cryptsetup_reencrypt.c:520 msgid "No known cipher specification pattern detected.\n" msgstr "Nie wykryto znanego wzorca określającego szyfr.\n" -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" -"UWAGA: Parametr --hash jest ignorowany w trybie zwykłym z podanym plikiem " -"klucza.\n" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" -"UWAGA: Opcja --keyfile-size jest ignorowana, rozmiar odczytu jest taki sam, " -"jak rozmiar klucza szyfrującego.\n" - -#: src/cryptsetup.c:218 +#: src/cryptsetup.c:183 msgid "Option --key-file is required.\n" msgstr "Wymagana jest opcja --key-file.\n" -#: src/cryptsetup.c:267 +#: src/cryptsetup.c:254 src/cryptsetup.c:340 msgid "No device header detected with this passphrase.\n" msgstr "Nie wykryto nagłówka urządzenia z tym hasłem.\n" -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 +#: src/cryptsetup.c:269 src/cryptsetup.c:1065 msgid "" "Header dump with volume key is sensitive information\n" "which allows access to encrypted partition without passphrase.\n" @@ -868,238 +806,210 @@ msgstr "" "Zrzut ten powinien być zawsze zapisywany w postaci zaszyfrowanej\n" "w bezpiecznym miejscu." -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "Wynik testu wydajności nie jest wiarygodny.\n" - -#: src/cryptsetup.c:558 +#: src/cryptsetup.c:489 msgid "# Tests are approximate using memory only (no storage IO).\n" msgstr "# Testy są przybliżone tylko z użyciem pamięci (bez we/wy na dysk).\n" -#: src/cryptsetup.c:583 src/cryptsetup.c:605 +#: src/cryptsetup.c:511 src/cryptsetup.c:533 msgid "# Algorithm | Key | Encryption | Decryption\n" msgstr "# Algorytm | Klucz | Szyfrowanie | Odszyfrowywanie\n" -#: src/cryptsetup.c:587 +#: src/cryptsetup.c:515 #, c-format msgid "Cipher %s is not available.\n" msgstr "Szyfr %s nie jest dostępny.\n" -#: src/cryptsetup.c:614 +#: src/cryptsetup.c:542 msgid "N/A" msgstr "N/D" -#: src/cryptsetup.c:639 +#: src/cryptsetup.c:567 #, c-format msgid "Cannot read keyfile %s.\n" msgstr "Nie można odczytać pliku klucza %s.\n" -#: src/cryptsetup.c:643 +#: src/cryptsetup.c:571 #, c-format msgid "Cannot read %d bytes from keyfile %s.\n" msgstr "Nie można odczytać %d bajtów z pliku klucza %s.\n" -#: src/cryptsetup.c:672 +#: src/cryptsetup.c:600 msgid "Really try to repair LUKS device header?" msgstr "Naprawdę próbować naprawić nagłówek urządzenia LUKS?" -#: src/cryptsetup.c:697 +#: src/cryptsetup.c:625 #, c-format msgid "This will overwrite data on %s irrevocably." msgstr "To nieodwołalnie nadpisze dane na %s." -#: src/cryptsetup.c:699 +#: src/cryptsetup.c:627 msgid "memory allocation error in action_luksFormat" msgstr "błąd przydzielania pamięci w action_luksFormat" -#: src/cryptsetup.c:717 +#: src/cryptsetup.c:645 #, c-format msgid "Cannot use %s as on-disk header.\n" msgstr "Nie można użyć %s jako nagłówka na dysku.\n" -#: src/cryptsetup.c:784 +#: src/cryptsetup.c:718 msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" -"Offset zmniejszonych danych jest dozwolony tylko dla osobnego nagłówka " -"LUKS.\n" +msgstr "Offset zmniejszonych danych jest dozwolony tylko dla osobnego nagłówka LUKS.\n" -#: src/cryptsetup.c:881 src/cryptsetup.c:937 +#: src/cryptsetup.c:819 src/cryptsetup.c:875 #, c-format msgid "Key slot %d selected for deletion.\n" msgstr "klucz %d wybrany do usunięcia.\n" -#: src/cryptsetup.c:884 +#: src/cryptsetup.c:822 #, c-format msgid "Key %d not active. Can't wipe.\n" msgstr "Klucz %d nie jest aktywny. Nie można wyczyścić.\n" -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"To jest ostatni klucz. Urządzenie stanie się bezużyteczne po usunięciu tego " -"klucza." +#: src/cryptsetup.c:830 src/cryptsetup.c:878 +msgid "This is the last keyslot. Device will become unusable after purging this key." +msgstr "To jest ostatni klucz. Urządzenie stanie się bezużyteczne po usunięciu tego klucza." -#: src/cryptsetup.c:893 +#: src/cryptsetup.c:831 msgid "Enter any remaining passphrase: " msgstr "Dowolne pozostałe hasło: " -#: src/cryptsetup.c:921 +#: src/cryptsetup.c:859 msgid "Enter passphrase to be deleted: " msgstr "Hasło do usunięcia: " -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format +#: src/cryptsetup.c:928 src/cryptsetup_reencrypt.c:948 msgid "Enter any existing passphrase: " msgstr "Dowolne istniejące hasło: " -#: src/cryptsetup.c:1052 +#: src/cryptsetup.c:977 msgid "Enter passphrase to be changed: " msgstr "Hasło, które ma być zmienione: " -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 +#: src/cryptsetup.c:991 src/cryptsetup_reencrypt.c:934 msgid "Enter new passphrase: " msgstr "Nowe hasło: " -#: src/cryptsetup.c:1090 +#: src/cryptsetup.c:1015 msgid "Only one device argument for isLuks operation is supported.\n" -msgstr "" -"Dla operacji isLuks obsługiwany jest tylko jeden argument będący " -"urządzeniem.\n" +msgstr "Dla operacji isLuks obsługiwany jest tylko jeden argument będący urządzeniem.\n" -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 +#: src/cryptsetup.c:1171 src/cryptsetup.c:1192 msgid "Option --header-backup-file is required.\n" msgstr "Wymagana jest opcja --header-backup-file.\n" -#: src/cryptsetup.c:1304 +#: src/cryptsetup.c:1229 #, c-format msgid "Unrecognized metadata device type %s.\n" msgstr "Nie rozpoznany typ urządzenia metadanych %s.\n" -#: src/cryptsetup.c:1307 +#: src/cryptsetup.c:1232 msgid "Command requires device and mapped name as arguments.\n" msgstr "Polecenie wymaga urządzenia i nazwy odwzorowywanej jako argumentów.\n" -#: src/cryptsetup.c:1326 -#, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Ta operacja usunię wszystkie klucze na urządzeniu %s.\n" -"Urządzenie po tej operacji stanie się bezużyteczne." - -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid " [--type ] []" msgstr " [--type ] []" -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid "open device as mapping " msgstr "otwarcie urządzenia jako odwzorowania " -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 +#: src/cryptsetup.c:1245 src/cryptsetup.c:1246 src/cryptsetup.c:1247 +#: src/cryptsetup.c:1248 src/veritysetup.c:310 src/veritysetup.c:311 msgid "" msgstr "" -#: src/cryptsetup.c:1361 +#: src/cryptsetup.c:1245 msgid "close device (remove mapping)" msgstr "zamknięcie urządzenia (usunięcie odwzorowania)" -#: src/cryptsetup.c:1362 +#: src/cryptsetup.c:1246 msgid "resize active device" msgstr "zmiana rozmiaru aktywnego urządzenia" -#: src/cryptsetup.c:1363 +#: src/cryptsetup.c:1247 msgid "show device status" msgstr "pokazanie stanu urządzenia" -#: src/cryptsetup.c:1364 +#: src/cryptsetup.c:1248 msgid "benchmark cipher" msgstr "test szybkości szyfru" -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1249 src/cryptsetup.c:1255 src/cryptsetup.c:1256 +#: src/cryptsetup.c:1257 src/cryptsetup.c:1258 src/cryptsetup.c:1259 +#: src/cryptsetup.c:1260 src/cryptsetup.c:1261 src/cryptsetup.c:1262 msgid "" msgstr "" -#: src/cryptsetup.c:1365 +#: src/cryptsetup.c:1249 msgid "try to repair on-disk metadata" msgstr "próba naprawy metadanych na dysku" -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "usunięcie wszystkich kluczy (usunięcie klucza szyfrującego)" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 +#: src/cryptsetup.c:1250 src/cryptsetup.c:1251 msgid " []" msgstr " []" -#: src/cryptsetup.c:1367 +#: src/cryptsetup.c:1250 msgid "formats a LUKS device" msgstr "sformatowanie urządzenia LUKS" -#: src/cryptsetup.c:1368 +#: src/cryptsetup.c:1251 msgid "add key to LUKS device" msgstr "dodanie klucza do urządzenia LUKS" -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 +#: src/cryptsetup.c:1252 src/cryptsetup.c:1253 msgid " []" msgstr " []" -#: src/cryptsetup.c:1369 +#: src/cryptsetup.c:1252 msgid "removes supplied key or key file from LUKS device" msgstr "usunięcie podanego klucza lub pliku klucza z urządzenia LUKS" -#: src/cryptsetup.c:1370 +#: src/cryptsetup.c:1253 msgid "changes supplied key or key file of LUKS device" msgstr "zmiana podanego klucza lub pliku klucza urządzenia LUKS" -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid " " msgstr " " -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid "wipes key with number from LUKS device" msgstr "wyczyszczenie klucza o numerze z urządzenia LUKS" -#: src/cryptsetup.c:1372 +#: src/cryptsetup.c:1255 msgid "print UUID of LUKS device" msgstr "wypisanie UUID-a urządzenia LUKS" -#: src/cryptsetup.c:1373 +#: src/cryptsetup.c:1256 msgid "tests for LUKS partition header" msgstr "sprawdzenie pod kątem nagłówka partycji LUKS" -#: src/cryptsetup.c:1374 +#: src/cryptsetup.c:1257 msgid "dump LUKS partition information" msgstr "zrzut informacji o partycji LUKS" -#: src/cryptsetup.c:1375 +#: src/cryptsetup.c:1258 msgid "dump TCRYPT device information" msgstr "zrzut informacji o urządzeniu TCRYPT" -#: src/cryptsetup.c:1376 +#: src/cryptsetup.c:1259 msgid "Suspend LUKS device and wipe key (all IOs are frozen)." -msgstr "" -"Wstrzymanie urządzenia LUKS i wyczyszczenie klucza (zamraża wszystkie " -"operacje we/wy)." +msgstr "Wstrzymanie urządzenia LUKS i wyczyszczenie klucza (zamraża wszystkie operacje we/wy)." -#: src/cryptsetup.c:1377 +#: src/cryptsetup.c:1260 msgid "Resume suspended LUKS device." msgstr "Wznowienie zatrzymanego urządzenia LUKS." -#: src/cryptsetup.c:1378 +#: src/cryptsetup.c:1261 msgid "Backup LUKS device header and keyslots" msgstr "Kopia zapasowa nagłówka i kluczy urządzenia LUKS" -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1262 msgid "Restore LUKS device header and keyslots" msgstr "Odtworzenie nagłówka i kluczy urządzenia LUKS z kopii zapasowej" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:1279 src/veritysetup.c:327 msgid "" "\n" " is one of:\n" @@ -1107,7 +1017,7 @@ msgstr "" "\n" " to jedno z:\n" -#: src/cryptsetup.c:1402 +#: src/cryptsetup.c:1285 msgid "" "\n" "You can also use old syntax aliases:\n" @@ -1119,7 +1029,7 @@ msgstr "" "\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" "\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:1289 #, c-format msgid "" "\n" @@ -1134,22 +1044,20 @@ msgstr "" " to numer klucza LUKS do zmiany\n" " to opcjonalny plik nowego klucza dla akcji luksAddKey\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:1296 #, c-format msgid "" "\n" "Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" +"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d (characters)\n" "Default PBKDF2 iteration time for LUKS: %d (ms)\n" msgstr "" "\n" "Domyślne wkompilowane parametry kluczy i haseł:\n" -"\tMaksymalny rozmiar pliku klucza: %dkB, maksymalna długość hasła " -"interaktywnego %d (znaków)\n" +"\tMaksymalny rozmiar pliku klucza: %dkB, maksymalna długość hasła interaktywnego %d (znaków)\n" "Domyślny czas iteracji PBKDF2 dla LUKS: %d (ms)\n" -#: src/cryptsetup.c:1420 +#: src/cryptsetup.c:1303 #, c-format msgid "" "\n" @@ -1164,236 +1072,213 @@ msgstr "" "\tplain: %s, bitów klucza: %d, skrót hasła: %s\n" "\tLUKS1: %s, bitów klucza: %d, skrót nagłówka LUKS: %s, RNG: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 +#: src/cryptsetup.c:1320 src/veritysetup.c:459 #, c-format msgid "%s: requires %s as arguments" msgstr "%s: wymaga %s jako argumentów" -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:1353 src/veritysetup.c:367 src/cryptsetup_reencrypt.c:1099 msgid "Show this help message" msgstr "Wyświetlenie tego opisu" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:1354 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1100 msgid "Display brief usage" msgstr "Wyświetlenie krótkiej informacji o składni" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:1358 src/veritysetup.c:372 src/cryptsetup_reencrypt.c:1104 msgid "Help options:" msgstr "Opcje pomocnicze:" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 +#: src/cryptsetup.c:1359 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1105 msgid "Print package version" msgstr "Wypisanie wersji pakietu" -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:1360 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1106 msgid "Shows more detailed error messages" msgstr "Wyświetlanie bardziej szczegółowych komunikatów błędów" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:1361 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1107 msgid "Show debug messages" msgstr "Wyświetlanie informacji diagnostycznych" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:1362 src/cryptsetup_reencrypt.c:1109 msgid "The cipher used to encrypt the disk (see /proc/crypto)" msgstr "Szyfr używany do zaszyfrowania dysku (p. /proc/crypto)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:1363 src/cryptsetup_reencrypt.c:1111 msgid "The hash used to create the encryption key from the passphrase" msgstr "Skrót używany do utworzenia klucza szyfrującego z hasła" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:1364 msgid "Verifies the passphrase by asking for it twice" msgstr "Sprawdzenie poprawności hasła poprzez dwukrotne pytanie" -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 +#: src/cryptsetup.c:1365 src/cryptsetup_reencrypt.c:1112 msgid "Read the key from a file." msgstr "Odczyt klucza z pliku." -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:1366 msgid "Read the volume (master) key from file." msgstr "Odczyt klucza wolumenu (klucza głównego) z pliku." -#: src/cryptsetup.c:1484 +#: src/cryptsetup.c:1367 msgid "Dump volume (master) key instead of keyslots info." msgstr "Zrzut (głównego) klucza wolumenu zamiast informacji o kluczach." -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "The size of the encryption key" msgstr "Rozmiar klucza szyfrującego" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "BITS" msgstr "BITÓW" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 +#: src/cryptsetup.c:1369 src/cryptsetup_reencrypt.c:1123 msgid "Limits the read from keyfile" msgstr "Ograniczenie odczytu z pliku klucza" -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 src/cryptsetup.c:1371 +#: src/cryptsetup.c:1372 src/veritysetup.c:378 src/veritysetup.c:379 +#: src/veritysetup.c:381 src/cryptsetup_reencrypt.c:1122 +#: src/cryptsetup_reencrypt.c:1123 src/cryptsetup_reencrypt.c:1124 +#: src/cryptsetup_reencrypt.c:1125 msgid "bytes" msgstr "bajty" -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 +#: src/cryptsetup.c:1370 src/cryptsetup_reencrypt.c:1122 msgid "Number of bytes to skip in keyfile" msgstr "Liczba bajtów do pominięcia w pliku klucza" -#: src/cryptsetup.c:1488 +#: src/cryptsetup.c:1371 msgid "Limits the read from newly added keyfile" msgstr "Ograniczenie odczytu z nowo dodanego pliku klucza" -#: src/cryptsetup.c:1489 +#: src/cryptsetup.c:1372 msgid "Number of bytes to skip in newly added keyfile" msgstr "Liczba bajtów do pominięcia w nowo dodanym kluczu" -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:1373 msgid "Slot number for new key (default is first free)" msgstr "Numer dla nowego klucza (domyślny: pierwszy wolny)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:1374 msgid "The size of the device" msgstr "Rozmiar urządzenia" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1374 src/cryptsetup.c:1375 src/cryptsetup.c:1376 +#: src/cryptsetup.c:1382 msgid "SECTORS" msgstr "SEKTORÓW" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:1375 msgid "The start offset in the backend device" msgstr "Offset początku na urządzeniu przechowującym" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:1376 msgid "How many sectors of the encrypted data to skip at the beginning" msgstr "Liczba sektorów zaszyfrowanych danych do pominięcia" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:1377 msgid "Create a readonly mapping" msgstr "Utworzenie odwzorowania tylko do odczytu" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "Czas iteracji PBKDF2 dla LUKS (w milisekundach)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "msecs" msgstr "ms" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:1379 src/cryptsetup_reencrypt.c:1114 msgid "Do not ask for confirmation" msgstr "Bez pytań o potwierdzenie" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "Timeout for interactive passphrase prompt (in seconds)" msgstr "Limit czasu przy interaktywnym pytaniu o hasło (w sekundach)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "secs" msgstr "s" -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:1381 src/cryptsetup_reencrypt.c:1115 msgid "How often the input of the passphrase can be retried" msgstr "Jak często można powtarzać próby wprowadzenia hasła" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1382 msgid "Align payload at sector boundaries - for luksFormat" msgstr "Wyrównanie danych do granicy sektorów - dla luksFormat" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:1383 msgid "File with LUKS header and keyslots backup." msgstr "Plik z kopią zapasową nagłówka LUKS i kluczy." -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 +#: src/cryptsetup.c:1384 src/cryptsetup_reencrypt.c:1116 msgid "Use /dev/random for generating volume key." msgstr "Użycie /dev/random do wygenerowania klucza wolumenu." -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 +#: src/cryptsetup.c:1385 src/cryptsetup_reencrypt.c:1117 msgid "Use /dev/urandom for generating volume key." msgstr "Użycie /dev/urandom do wygenerowania klucza wolumenu." -#: src/cryptsetup.c:1503 +#: src/cryptsetup.c:1386 msgid "Share device with another non-overlapping crypt segment." -msgstr "" -"Współdzielenie urządzenia z innym, nie zachodzącym segmentem szyfrowanym." +msgstr "Współdzielenie urządzenia z innym, nie zachodzącym segmentem szyfrowanym." -#: src/cryptsetup.c:1504 src/veritysetup.c:385 +#: src/cryptsetup.c:1387 src/veritysetup.c:384 msgid "UUID for device to use." msgstr "UUID dla urządzenia, które ma być użyte." -#: src/cryptsetup.c:1505 +#: src/cryptsetup.c:1388 msgid "Allow discards (aka TRIM) requests for device." msgstr "Zezwolenie na żądania porzucenia (TRIM) dla urządzenia." -#: src/cryptsetup.c:1506 +#: src/cryptsetup.c:1389 msgid "Device or file with separated LUKS header." msgstr "Urządzenie lub plik z osobnym nagłówkiem LUKS." -#: src/cryptsetup.c:1507 +#: src/cryptsetup.c:1390 msgid "Do not activate device, just check passphrase." msgstr "Sprawdzenie hasła bez uaktywniania urządzenia." -#: src/cryptsetup.c:1508 +#: src/cryptsetup.c:1391 msgid "Use hidden header (hidden TCRYPT device)." msgstr "Użycie nagłówka ukrytego (ukrytego urządzenia TCRYPT)." -#: src/cryptsetup.c:1509 +#: src/cryptsetup.c:1392 msgid "Device is system TCRYPT drive (with bootloader)." msgstr "Urządzenie jest napędem systemowym TCRYPT (z bootloaderem)." -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "Użycie zapasowego (drugiego) nagłówka TCRYPT." - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "Wyszukiwanie także urządzeń zgodnych z VeraCryptem." - -#: src/cryptsetup.c:1512 +#: src/cryptsetup.c:1393 msgid "Type of device metadata: luks, plain, loopaes, tcrypt." msgstr "Typ metadanych urządzenia: luks, plain, loopaes, tcrypt." -#: src/cryptsetup.c:1513 +#: src/cryptsetup.c:1394 msgid "Disable password quality check (if enabled)." msgstr "Wyłączenie sprawdzania jakości hasła (jeśli włączone)." -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "Użycie opcji zgodności wydajności dm-crypta same_cpu_crypt." - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "Użycie opcji zgodności wydajności dm-crypta submit_from_crypt_cpus." - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 +#: src/cryptsetup.c:1412 src/veritysetup.c:401 msgid "[OPTION...] " msgstr "[OPCJA...] " -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "Działanie w trybie FIPS.\n" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 +#: src/cryptsetup.c:1458 src/veritysetup.c:438 msgid "Argument missing." msgstr "Brak argumentu ." -#: src/cryptsetup.c:1634 src/veritysetup.c:445 +#: src/cryptsetup.c:1506 src/veritysetup.c:444 msgid "Unknown action." msgstr "Nieznana akcja." -#: src/cryptsetup.c:1644 +#: src/cryptsetup.c:1516 msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "" -"Opcja --shared jest dozwolona tylko dla operacji otwarcia zwykłego " -"urządzenia.\n" +msgstr "Opcja --shared jest dozwolona tylko dla operacji otwarcia zwykłego urządzenia.\n" -#: src/cryptsetup.c:1649 +#: src/cryptsetup.c:1521 msgid "Option --allow-discards is allowed only for open operation.\n" msgstr "Opcja --allow-discards jest dozwolona tylko dla operacji otwarcia.\n" -#: src/cryptsetup.c:1657 +#: src/cryptsetup.c:1529 msgid "" "Option --key-size is allowed only for luksFormat, open and benchmark.\n" "To limit read from keyfile use --keyfile-size=(bytes)." @@ -1402,131 +1287,109 @@ msgstr "" "i benchmark.\n" "Aby ograniczyć odczyt z pliku klucza, należy użyć --keyfile-size=(bajty)." -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" -"Opcja --test-passphrase jest dozwolona tylko przy otwieraniu urządzeń LUKS i " -"TRCYPT.\n" +#: src/cryptsetup.c:1536 +msgid "Option --test-passphrase is allowed only for open of LUKS and TCRYPT devices.\n" +msgstr "Opcja --test-passphrase jest dozwolona tylko przy otwieraniu urządzeń LUKS i TRCYPT.\n" -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 +#: src/cryptsetup.c:1541 src/cryptsetup_reencrypt.c:1185 msgid "Key size must be a multiple of 8 bits" msgstr "Rozmiar klucza musi być wielokrotnością 8 bitów" -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 +#: src/cryptsetup.c:1548 src/cryptsetup_reencrypt.c:1190 msgid "Key slot is invalid." msgstr "Numer klucza jest nieprawidłowy." -#: src/cryptsetup.c:1683 +#: src/cryptsetup.c:1555 msgid "Option --key-file takes precedence over specified key file argument.\n" msgstr "Opcja --key-file ma priorytet nad podanym argumentem pliku klucza.\n" -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 +#: src/cryptsetup.c:1563 src/veritysetup.c:466 src/cryptsetup_reencrypt.c:1174 msgid "Negative number for option not permitted." msgstr "Liczba ujemna nie jest dozwolona dla tej opcji." -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 +#: src/cryptsetup.c:1567 src/cryptsetup_reencrypt.c:1168 +#: src/cryptsetup_reencrypt.c:1194 msgid "Only one of --use-[u]random options is allowed." msgstr "Dozwolona jest tylko jedna z opcji --use-[u]random." -#: src/cryptsetup.c:1699 +#: src/cryptsetup.c:1571 msgid "Option --use-[u]random is allowed only for luksFormat." msgstr "Opcja --use-[u]random jest dozwolona tylko dla operacji luksFormat." -#: src/cryptsetup.c:1703 +#: src/cryptsetup.c:1575 msgid "Option --uuid is allowed only for luksFormat and luksUUID." msgstr "Opcja --uuid jest dozwolona tylko dla operacji luksFormat i luksUUID." -#: src/cryptsetup.c:1707 +#: src/cryptsetup.c:1579 msgid "Option --align-payload is allowed only for luksFormat." msgstr "Opcja --align-payload jest dozwolona tylko dla operacji luksFormat." -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Opcja --skip jest obsługiwana tylko przy otwieraniu urządzeń plain i " -"loopaes.\n" +#: src/cryptsetup.c:1585 +msgid "Option --skip is supported only for open of plain and loopaes devices.\n" +msgstr "Opcja --skip jest obsługiwana tylko przy otwieraniu urządzeń plain i loopaes.\n" -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Opcja --offset jest obsługiwana tylko przy otwieraniu urządzeń plain i " -"loopaes.\n" - -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" -"Opcje --tcrypt-hidden, --tcrypt-system i --tcrypt-backup są obsługiwane " -"tylko dla urządzeń TCRYPT.\n" - -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "Opcji --tcrypt-hidden nie można łączyć z --allow-discards.\n" +#: src/cryptsetup.c:1591 +msgid "Option --offset is supported only for open of plain and loopaes devices.\n" +msgstr "Opcja --offset jest obsługiwana tylko przy otwieraniu urządzeń plain i loopaes.\n" -#: src/cryptsetup.c:1735 -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "Opcja --veracrypt jest obsługiwana tylko dla typu urządzeń TCRYPT.\n" +#: src/cryptsetup.c:1597 +msgid "Option --tcrypt-hidden or --tcrypt-system is supported only for TCRYPT device.\n" +msgstr "Opcje --tcrypt-hidden i --tcrypt-system są obsługiwane tylko dla urządzeń TCRYPT.\n" -#: src/veritysetup.c:58 +#: src/veritysetup.c:57 msgid "Invalid salt string specified.\n" msgstr "Podano błędny łańcuch zarodka.\n" -#: src/veritysetup.c:88 +#: src/veritysetup.c:87 #, c-format msgid "Cannot create hash image %s for writing.\n" msgstr "Nie można utworzyć obrazu hasza %s do zapisu.\n" -#: src/veritysetup.c:148 +#: src/veritysetup.c:147 msgid "Invalid root hash string specified.\n" msgstr "Podano błędny łańcuch głównego hasza.\n" -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid " " msgstr " " -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid "format device" msgstr "sformatowanie urządzenia" -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid " " msgstr " " -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid "verify device" msgstr "weryfikacja urządzenia" -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid " " msgstr " " -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid "create active device" msgstr "utworzenie aktywnego urządzenia" -#: src/veritysetup.c:311 +#: src/veritysetup.c:310 msgid "remove (deactivate) device" msgstr "usunięcie (deaktywacja) urządzenia" -#: src/veritysetup.c:312 +#: src/veritysetup.c:311 msgid "show active device status" msgstr "pokazanie stanu aktywnego urządzenia" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "" msgstr "" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "show on-disk information" msgstr "wyświetlenie informacji z dysku" -#: src/veritysetup.c:332 +#: src/veritysetup.c:331 #, c-format msgid "" "\n" @@ -1541,319 +1404,282 @@ msgstr "" " to urządzenie zawierające dane weryfikacyjne\n" " to hasz głównego węzła na \n" -#: src/veritysetup.c:339 +#: src/veritysetup.c:338 #, c-format msgid "" "\n" "Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" +"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, Hash format: %u\n" msgstr "" "\n" "Domyślnie wkompilowane parametry dm-verity:\n" -"\tHasz: %s, blok danych (bajtów): %u, blok haszy (bajtów): %u, rozmiar " -"zarodka: %u, format haszy: %u\n" +"\tHasz: %s, blok danych (bajtów): %u, blok haszy (bajtów): %u, rozmiar zarodka: %u, format haszy: %u\n" -#: src/veritysetup.c:377 +#: src/veritysetup.c:376 msgid "Do not use verity superblock" msgstr "Nieużywanie superbloku VERITY" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "Format type (1 - normal, 0 - original Chrome OS)" msgstr "Typ formatu (1 - normalny, 0 - oryginalny Chrome OS)" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "number" msgstr "liczba" -#: src/veritysetup.c:379 +#: src/veritysetup.c:378 msgid "Block size on the data device" msgstr "Rozmiar bloku na urządzeniu z danymi" -#: src/veritysetup.c:380 +#: src/veritysetup.c:379 msgid "Block size on the hash device" msgstr "Rozmiar bloku na urządzeniu z haszami" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "The number of blocks in the data file" msgstr "Liczba bloków w pliku danych" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "blocks" msgstr "bloki" -#: src/veritysetup.c:382 +#: src/veritysetup.c:381 msgid "Starting offset on the hash device" msgstr "Offset początku na urządzeniu z haszami" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "Hash algorithm" msgstr "Algorytm skrótu" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "string" msgstr "łańcuch" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "Salt" msgstr "Zarodek" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "hex string" msgstr "Łańcuch szesnastkowy" -#: src/cryptsetup_reencrypt.c:147 +#: src/cryptsetup_reencrypt.c:136 #, c-format msgid "Cannot exclusively open %s, device in use.\n" msgstr "Nie można otworzyć %s w trybie wyłącznym, urządzenie jest w użyciu.\n" -#: src/cryptsetup_reencrypt.c:151 +#: src/cryptsetup_reencrypt.c:140 #, c-format msgid "Cannot open device %s\n" msgstr "Nie można otworzyć urządzenia %s\n" -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 +#: src/cryptsetup_reencrypt.c:150 src/cryptsetup_reencrypt.c:367 +#: src/cryptsetup_reencrypt.c:786 msgid "Allocation of aligned memory failed.\n" msgstr "Przydzielenie wyrównanego obszaru pamięci nie powiodło się.\n" -#: src/cryptsetup_reencrypt.c:168 +#: src/cryptsetup_reencrypt.c:157 #, c-format msgid "Cannot read device %s.\n" msgstr "Nie można odczytać urządzenia %s.\n" -#: src/cryptsetup_reencrypt.c:179 +#: src/cryptsetup_reencrypt.c:168 #, c-format msgid "Marking LUKS device %s unusable.\n" msgstr "Oznaczanie urządzenia LUKS %s jako bezużytecznego.\n" -#: src/cryptsetup_reencrypt.c:184 +#: src/cryptsetup_reencrypt.c:173 #, c-format msgid "Marking LUKS device %s usable.\n" msgstr "Oznaczenie urządzenia LUKS %s jako użytecznego.\n" -#: src/cryptsetup_reencrypt.c:200 +#: src/cryptsetup_reencrypt.c:189 #, c-format msgid "Cannot write device %s.\n" msgstr "Nie można zapisać na urządzenie %s.\n" -#: src/cryptsetup_reencrypt.c:281 +#: src/cryptsetup_reencrypt.c:270 msgid "Cannot write reencryption log file.\n" msgstr "Nie można zapisać pliku logu ponownego szyfrowania.\n" -#: src/cryptsetup_reencrypt.c:337 +#: src/cryptsetup_reencrypt.c:319 msgid "Cannot read reencryption log file.\n" msgstr "Nie można odczytać pliku logu ponownego szyfrowania.\n" -#: src/cryptsetup_reencrypt.c:374 +#: src/cryptsetup_reencrypt.c:358 #, c-format msgid "Log file %s exists, resuming reencryption.\n" msgstr "Plik logu %s istnieje, wznowienie ponownego szyfrowania.\n" -#: src/cryptsetup_reencrypt.c:403 +#: src/cryptsetup_reencrypt.c:393 msgid "Activating temporary device using old LUKS header.\n" msgstr "Aktywacja urządzenia tymczasowego przy użyciu starego nagłówka LUKS.\n" -#: src/cryptsetup_reencrypt.c:414 +#: src/cryptsetup_reencrypt.c:404 msgid "Activating temporary device using new LUKS header.\n" msgstr "Aktywacja urządzenia tymczasowego przy użyciu nowego nagłówka LUKS.\n" -#: src/cryptsetup_reencrypt.c:424 +#: src/cryptsetup_reencrypt.c:414 msgid "Activation of temporary devices failed.\n" msgstr "Aktywacja urządzeń tymczasowych nie powiodła się.\n" -#: src/cryptsetup_reencrypt.c:450 +#: src/cryptsetup_reencrypt.c:439 #, c-format msgid "New LUKS header for device %s created.\n" msgstr "Utworzono nowy nagłówek LUKS dla urządzenia %s.\n" -#: src/cryptsetup_reencrypt.c:458 +#: src/cryptsetup_reencrypt.c:447 #, c-format msgid "Activated keyslot %i.\n" msgstr "Uaktywniono klucz %i.\n" -#: src/cryptsetup_reencrypt.c:484 +#: src/cryptsetup_reencrypt.c:471 #, c-format msgid "LUKS header backup of device %s created.\n" msgstr "Utworzono kopię zapasową nagłówka LUKS urządzenia %s.\n" -#: src/cryptsetup_reencrypt.c:532 +#: src/cryptsetup_reencrypt.c:499 msgid "Creation of LUKS backup headers failed.\n" msgstr "Tworzenie kopii zapasowych nagłówków LUKS nie powiodło się.\n" -#: src/cryptsetup_reencrypt.c:634 +#: src/cryptsetup_reencrypt.c:594 #, c-format msgid "Cannot restore LUKS header on device %s.\n" msgstr "Nie można odtworzyć nagłówka LUKS na urządzeniu %s.\n" -#: src/cryptsetup_reencrypt.c:636 +#: src/cryptsetup_reencrypt.c:596 #, c-format msgid "LUKS header on device %s restored.\n" msgstr "Odtworzono nagłówek LUKS na urządzeniu %s.\n" -#: src/cryptsetup_reencrypt.c:669 +#: src/cryptsetup_reencrypt.c:629 #, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" -"Postęp: %5.1f%%, ETA %02llu:%02llu, zapisano %4llu MiB, szybkość %5.1f MiB/s" -"%s" +msgid "Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" +msgstr "Postęp: %5.1f%%, ETA %02llu:%02llu, zapisano %4llu MiB, szybkość %5.1f MiB/s%s" -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 +#: src/cryptsetup_reencrypt.c:645 src/cryptsetup_reencrypt.c:721 msgid "Cannot seek to device offset.\n" msgstr "Nie można przemieścić się we właściwe położenie urządzenia.\n" -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 +#: src/cryptsetup_reencrypt.c:767 src/cryptsetup_reencrypt.c:773 msgid "Cannot open temporary LUKS header file.\n" msgstr "Nie można otworzyć pliku tymczasowego nagłówka LUKS.\n" -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 +#: src/cryptsetup_reencrypt.c:779 msgid "Cannot get device size.\n" msgstr "Nie można pobrać rozmiaru urządzenia.\n" -#: src/cryptsetup_reencrypt.c:919 +#: src/cryptsetup_reencrypt.c:803 msgid "Interrupted by a signal.\n" msgstr "Przerwano sygnałem.\n" -#: src/cryptsetup_reencrypt.c:921 +#: src/cryptsetup_reencrypt.c:805 msgid "IO error during reencryption.\n" msgstr "Błąd we/wy podczas ponownego szyfrowania.\n" -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" -"Rozmiaru klucza można użyć tylko z --key-slot albo przy dokładnie jednym " -"aktywnym kluczu.\n" +#: src/cryptsetup_reencrypt.c:906 +msgid "Key file can be used only with --key-slot or with exactly one key slot active.\n" +msgstr "Rozmiaru klucza można użyć tylko z --key-slot albo przy dokładnie jednym aktywnym kluczu.\n" -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 +#: src/cryptsetup_reencrypt.c:955 #, c-format msgid "Enter passphrase for key slot %u: " msgstr "Hasło dla klucza %u: " -#: src/cryptsetup_reencrypt.c:1136 +#: src/cryptsetup_reencrypt.c:1004 msgid "Cannot open reencryption log file.\n" msgstr "Nie można otworzyć pliku logu ponownego szyfrowania.\n" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "Reencryption block size" msgstr "Rozmiar bloku ponownego szyfrowania" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "MiB" msgstr "MiB" -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "Bez zmiany klucza i ponownego szyfrowania obszaru danych." - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." +#: src/cryptsetup_reencrypt.c:1118 +msgid "Use direct-io when accesing devices." msgstr "Użycie bezpośredniego we/wy przy dostępie do urządzeń." -#: src/cryptsetup_reencrypt.c:1274 +#: src/cryptsetup_reencrypt.c:1119 msgid "Use fsync after each block." msgstr "Użycie fsync po każdym bloku." -#: src/cryptsetup_reencrypt.c:1275 +#: src/cryptsetup_reencrypt.c:1120 msgid "Update log file after every block." msgstr "Uaktualnianie pliku logu po każdym bloku." -#: src/cryptsetup_reencrypt.c:1276 +#: src/cryptsetup_reencrypt.c:1121 msgid "Use only this slot (others will be disabled)." msgstr "Użycie tylko tego slotu (wyłączenie pozostałych)." -#: src/cryptsetup_reencrypt.c:1279 +#: src/cryptsetup_reencrypt.c:1124 msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" -"Ograniczenie rozmiaru urządzenia danych (przesunięcie położenia danych). " -"NIEBEZPIECZNE!" +msgstr "Ograniczenie rozmiaru urządzenia danych (przesunięcie położenia danych). NIEBEZPIECZNE!" -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup_reencrypt.c:1125 msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" -"Użycie tylko określonego rozmiaru urządzenia (zignorowanie pozostałej " -"części). NIEBEZPIECZNE!" +msgstr "Użycie tylko określonego rozmiaru urządzenia (zignorowanie pozostałej części). NIEBEZPIECZNE!" -#: src/cryptsetup_reencrypt.c:1281 +#: src/cryptsetup_reencrypt.c:1126 msgid "Create new header on not encrypted device." msgstr "Utworzenie nowego nagłówka na nieszyfrowanym urządzeniu." -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "Trwałe odszyfrowanie urządzenia (usunięcie szyfrowania)." - -#: src/cryptsetup_reencrypt.c:1298 +#: src/cryptsetup_reencrypt.c:1142 msgid "[OPTION...] " msgstr "[OPCJA...] " -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" +#: src/cryptsetup_reencrypt.c:1156 +msgid "WARNING: this is experimental code, it can completely break your data.\n" msgstr "UWAGA: ten kod jest eksperymentalny, może całkowicie uszkodzić dane.\n" -#: src/cryptsetup_reencrypt.c:1313 +#: src/cryptsetup_reencrypt.c:1157 #, c-format msgid "Reencryption will change: volume key%s%s%s%s.\n" msgstr "Ponowne szyfrowanie zmieni: klucz wolumenu%s%s%s%s.\n" -#: src/cryptsetup_reencrypt.c:1314 +#: src/cryptsetup_reencrypt.c:1158 msgid ", set hash to " msgstr ", hasz na " -#: src/cryptsetup_reencrypt.c:1315 +#: src/cryptsetup_reencrypt.c:1159 msgid ", set cipher to " msgstr ", szyfr na" -#: src/cryptsetup_reencrypt.c:1320 +#: src/cryptsetup_reencrypt.c:1164 msgid "Argument required." msgstr "Wymagany argument." -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" -"Jako rozmiar bloku ponownego szyfrowania dozwolone są jedynie wartości od 1 " -"MiB do 64 MiB." +#: src/cryptsetup_reencrypt.c:1180 +msgid "Only values between 1 MiB and 64 MiB allowed for reencryption block size." +msgstr "Jako rozmiar bloku ponownego szyfrowania dozwolone są jedynie wartości od 1 MiB do 64 MiB." -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 +#: src/cryptsetup_reencrypt.c:1199 src/cryptsetup_reencrypt.c:1204 msgid "Invalid device size specification." msgstr "Błędne określenie rozmiaru urządzenia." -#: src/cryptsetup_reencrypt.c:1363 +#: src/cryptsetup_reencrypt.c:1207 msgid "Maximum device reduce size is 64 MiB." msgstr "Maksymalna wartość ograniczenia rozmiaru urządzenia to 64MiB." -#: src/cryptsetup_reencrypt.c:1366 +#: src/cryptsetup_reencrypt.c:1210 msgid "Reduce size must be multiple of 512 bytes sector." msgstr "Rozmiar ograniczenia musi być wielokrotnością 512-bajtowego sektora." -#: src/cryptsetup_reencrypt.c:1370 +#: src/cryptsetup_reencrypt.c:1214 msgid "Option --new must be used together with --reduce-device-size." msgstr "Opcja --new musi być użyta wraz z --reduce_device_size." -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "Opcja --keep-key może być użyta tylko z --hash lub --iter-time." - -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "Opcja --new nie może być użyta wraz z --decrypt." - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "Opcja --decrypt jest niezgodna z podanymi parametrami." - -#: src/utils_tools.c:151 +#: src/utils_tools.c:150 msgid "Error reading response from terminal.\n" msgstr "Błąd podczas odczytu odpowiedzi z terminala.\n" -#: src/utils_tools.c:173 +#: src/utils_tools.c:172 msgid "Command successful.\n" msgstr "Polecenie się powiodło.\n" -#: src/utils_tools.c:191 +#: src/utils_tools.c:186 #, c-format msgid "Command failed with code %i" msgstr "Polecenie nie powiodło się z kodem %i" diff --git a/po/quot.sed b/po/quot.sed deleted file mode 100644 index 0122c46..0000000 --- a/po/quot.sed +++ /dev/null @@ -1,6 +0,0 @@ -s/"\([^"]*\)"/“\1”/g -s/`\([^`']*\)'/‘\1’/g -s/ '\([^`']*\)' / ‘\1’ /g -s/ '\([^`']*\)'$/ ‘\1’/g -s/^'\([^`']*\)' /‘\1’ /g -s/“”/""/g diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin deleted file mode 100644 index 2436c49..0000000 --- a/po/remove-potcdate.sin +++ /dev/null @@ -1,19 +0,0 @@ -# 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 -} diff --git a/po/stamp-po b/po/stamp-po deleted file mode 100644 index 9788f70..0000000 --- a/po/stamp-po +++ /dev/null @@ -1 +0,0 @@ -timestamp diff --git a/po/sv.gmo b/po/sv.gmo deleted file mode 100644 index 5a0383b..0000000 Binary files a/po/sv.gmo and /dev/null differ diff --git a/po/sv.po b/po/sv.po index 47d01cd..268b5d4 100644 --- a/po/sv.po +++ b/po/sv.po @@ -7,535 +7,395 @@ msgid "" msgstr "" "Project-Id-Version: cryptsetup 1.1.0-rc4\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" +"POT-Creation-Date: 2009-12-30 20:09+0100\n" "PO-Revision-Date: 2010-01-08 11:37+0100\n" "Last-Translator: Daniel Nylander \n" "Language-Team: Swedish \n" -"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -#: lib/libdevmapper.c:252 -#, fuzzy -msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "Kan inte initiera device-mapper. Är kärnmodulen dm_mod inläst?\n" - -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:48 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" msgstr "Kan inte initiera device-mapper. Är kärnmodulen dm_mod inläst?\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:304 #, c-format msgid "DM-UUID for device %s was truncated.\n" msgstr "DM-UUID för enheten %s förkortades.\n" -#: lib/libdevmapper.c:698 -#, fuzzy -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Begärd LUKS-hash %s stöds inte.\n" +#: lib/setup.c:103 +#, c-format +msgid "Cannot not read %d bytes from key file %s.\n" +msgstr "Kan inte läsa %d byte från nyckelfilen %s.\n" -#: lib/random.c:76 -msgid "" -"System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" -msgstr "" +#: lib/setup.c:115 +msgid "Key processing error.\n" +msgstr "Fel vid nyckelbehandling.\n" -#: lib/random.c:80 +#: lib/setup.c:169 +msgid "All key slots full.\n" +msgstr "Alla nyckelplatser är upptagna.\n" + +#: lib/setup.c:176 lib/setup.c:304 lib/setup.c:778 #, c-format -msgid "Generating key (%d%% done).\n" -msgstr "" +msgid "Key slot %d is invalid, please select between 0 and %d.\n" +msgstr "Nyckelplats %d är ogiltig. Välj mellan 0 och %d.\n" -#: lib/random.c:169 -msgid "Fatal error during RNG initialisation.\n" -msgstr "" +#: lib/setup.c:182 +#, c-format +msgid "Key slot %d is full, please select another one.\n" +msgstr "Nyckelplats %d är full. Välj en annan.\n" -#: lib/random.c:206 -#, fuzzy -msgid "Unknown RNG quality requested.\n" -msgstr "Okänd typ av krypteringsenhet %s begärd.\n" +#: lib/setup.c:201 +msgid "Enter any remaining LUKS passphrase: " +msgstr "Ange eventuell återstående LUKS-lösenfras: " -#: lib/random.c:211 -#, fuzzy, c-format -msgid "Error %d reading from RNG: %s\n" -msgstr "Fel vid läsning av lösenfras.\n" +#: lib/setup.c:222 +#, c-format +msgid "Key slot %d verified.\n" +msgstr "Nyckelplats %d har verifierats.\n" -#: lib/setup.c:200 -#, fuzzy -msgid "Cannot initialize crypto RNG backend.\n" -msgstr "Kan inte initiera krypteringsbakände.\n" +#: lib/setup.c:257 +#, c-format +msgid "Cannot get info about device %s.\n" +msgstr "Kan inte hämta information om enheten %s.\n" -#: lib/setup.c:206 -msgid "Cannot initialize crypto backend.\n" -msgstr "Kan inte initiera krypteringsbakände.\n" +#: lib/setup.c:264 +#, c-format +msgid "Device %s has zero size.\n" +msgstr "Enheten %s har noll storlek.\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 -#, fuzzy, c-format -msgid "Hash algorithm %s not supported.\n" -msgstr "Begärd LUKS-hash %s stöds inte.\n" +#: lib/setup.c:268 +#, c-format +msgid "Device %s is too small.\n" +msgstr "Enheten %s är för liten.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 -#, fuzzy, c-format -msgid "Key processing error (using hash %s).\n" -msgstr "Fel vid nyckelbehandling.\n" +#: lib/setup.c:293 +msgid "Enter LUKS passphrase to be deleted: " +msgstr "Ange LUKS-lösenfras att ta bort: " -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" +#: lib/setup.c:299 +#, c-format +msgid "key slot %d selected for deletion.\n" +msgstr "nyckeplats %d markerad för borttagning.\n" -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Denna åtgärd stöds endast för LUKS-enheter.\n" +#: lib/setup.c:310 +#, c-format +msgid "Key %d not active. Can't wipe.\n" +msgstr "Nyckel %d är inte aktiv. Kan inte rensa.\n" -#: lib/setup.c:320 -msgid "All key slots full.\n" -msgstr "Alla nyckelplatser är upptagna.\n" +#: lib/setup.c:316 +msgid "This is the last keyslot. Device will become unusable after purging this key." +msgstr "Detta är sista nyckelplatsen. Enheten kommer att bli oanvändbar efter att denna nyckel tagits bort." -#: lib/setup.c:327 +#: lib/setup.c:364 lib/setup.c:1651 lib/setup.c:1704 lib/setup.c:1761 #, c-format -msgid "Key slot %d is invalid, please select between 0 and %d.\n" -msgstr "Nyckelplats %d är ogiltig. Välj mellan 0 och %d.\n" +msgid "Device %s already exists.\n" +msgstr "Enheten %s finns redan.\n" -#: lib/setup.c:333 +#: lib/setup.c:369 #, c-format -msgid "Key slot %d is full, please select another one.\n" -msgstr "Nyckelplats %d är full. Välj en annan.\n" +msgid "Invalid key size %d.\n" +msgstr "Ogiltig nyckelstorlek %d.\n" -#: lib/setup.c:472 +#: lib/setup.c:471 lib/setup.c:1656 #, c-format msgid "Enter passphrase for %s: " msgstr "Ange lösenfras för %s: " -#: lib/setup.c:653 -#, fuzzy, c-format -msgid "Header detected but device %s is too small.\n" -msgstr "LUKS-huvud identifierat men enheten %s är för liten.\n" - -#: lib/setup.c:669 lib/setup.c:1420 -#, fuzzy -msgid "This operation is not supported for this device type.\n" -msgstr "Denna åtgärd stöds inte för krypteringsenheter av typen %s.\n" +#: lib/setup.c:600 lib/setup.c:628 lib/setup.c:1365 lib/setup.c:1712 +msgid "Enter passphrase: " +msgstr "Ange lösenfras: " -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:661 lib/setup.c:1040 lib/setup.c:1803 #, c-format msgid "Device %s is not active.\n" msgstr "Enheten %s är inte aktiv.\n" -#: lib/setup.c:925 -#, c-format -msgid "Underlying device for crypt device %s disappeared.\n" -msgstr "" +#: lib/setup.c:770 +msgid "No known cipher specification pattern detected.\n" +msgstr "Inget känt chifferspecifikationsmönster kunde identifieras.\n" -#: lib/setup.c:994 +#: lib/setup.c:784 +msgid "Enter LUKS passphrase: " +msgstr "Ange LUKS-lösenfras: " + +#: lib/setup.c:1060 msgid "Invalid plain crypt parameters.\n" msgstr "Ogiltiga parametrar för vanlig kryptering.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:1065 msgid "Invalid key size.\n" msgstr "Ogiltig nyckelstorlek.\n" -#: lib/setup.c:1004 lib/setup.c:1124 -#, fuzzy -msgid "UUID is not supported for this crypt type.\n" -msgstr "Denna åtgärd stöds inte för krypteringsenheter av typen %s.\n" - -#: lib/setup.c:1046 +#: lib/setup.c:1097 msgid "Can't format LUKS without device.\n" msgstr "Kan inte formatera LUKS utan enhet.\n" -#: lib/setup.c:1089 -#, fuzzy, c-format -msgid "Cannot format device %s which is still in use.\n" -msgstr "Kan inte öppna enheten %s för %s%s åtkomst.\n" - -#: lib/setup.c:1092 -#, fuzzy, c-format -msgid "Cannot format device %s, permission denied.\n" -msgstr "Kan inte läsa enheten %s.\n" - -#: lib/setup.c:1096 -#, fuzzy, c-format -msgid "Cannot wipe header on device %s.\n" +#: lib/setup.c:1112 +#, c-format +msgid "Can't wipe header on device %s.\n" msgstr "Kan inte rensa huvudet på enheten %s.\n" -#: lib/setup.c:1114 -#, fuzzy -msgid "Can't format LOOPAES without device.\n" -msgstr "Kan inte formatera LUKS utan enhet.\n" - -#: lib/setup.c:1152 -#, fuzzy -msgid "Can't format VERITY without device.\n" -msgstr "Kan inte formatera LUKS utan enhet.\n" - -#: lib/setup.c:1160 lib/verity/verity.c:106 -#, fuzzy, c-format -msgid "Unsupported VERITY hash type %d.\n" -msgstr "LUKS-versionen %d stöds inte.\n" - -#: lib/setup.c:1166 lib/verity/verity.c:114 -msgid "Unsupported VERITY block size.\n" -msgstr "" - -#: lib/setup.c:1171 lib/verity/verity.c:76 -msgid "Unsupported VERITY hash offset.\n" -msgstr "" - -#: lib/setup.c:1285 +#: lib/setup.c:1154 #, c-format msgid "Unknown crypt device type %s requested.\n" msgstr "Okänd typ av krypteringsenhet %s begärd.\n" -#: lib/setup.c:1435 -msgid "Do you really want to change UUID of device?" -msgstr "" +#: lib/setup.c:1187 +msgid "Cannot initialize crypto backend.\n" +msgstr "Kan inte initiera krypteringsbakände.\n" -#: lib/setup.c:1545 +#: lib/setup.c:1261 #, c-format msgid "Volume %s is not active.\n" msgstr "Volymen %s är inte aktiv.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1274 #, c-format msgid "Volume %s is already suspended.\n" msgstr "Volymen %s är redan i vänteläge.\n" -#: lib/setup.c:1563 -#, fuzzy, c-format -msgid "Suspend is not supported for device %s.\n" -msgstr "Denna åtgärd stöds inte för krypteringsenheter av typen %s.\n" - -#: lib/setup.c:1565 -#, fuzzy, c-format -msgid "Error during suspending device %s.\n" -msgstr "Fel vid uppdatering av LUKS-huvud på enheten %s.\n" +#: lib/setup.c:1300 lib/setup.c:1347 lib/setup.c:1406 lib/setup.c:1484 +#: lib/setup.c:1556 lib/setup.c:1601 lib/setup.c:1695 lib/setup.c:1752 +#: lib/setup.c:1873 lib/setup.c:1956 lib/setup.c:2056 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Denna åtgärd stöds endast för LUKS-enheter.\n" -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1311 lib/setup.c:1358 #, c-format msgid "Volume %s is not suspended.\n" msgstr "Volymen %s är inte i vänteläge.\n" -#: lib/setup.c:1605 -#, fuzzy, c-format -msgid "Resume is not supported for device %s.\n" -msgstr "Denna åtgärd stöds inte för krypteringsenheter av typen %s.\n" - -#: lib/setup.c:1607 lib/setup.c:1659 -#, fuzzy, c-format -msgid "Error during resuming device %s.\n" -msgstr "Fel vid uppdatering av LUKS-huvud på enheten %s.\n" - -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 -msgid "Enter passphrase: " -msgstr "Ange lösenfras: " - -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1420 lib/setup.c:1498 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"Kan inte lägga till nyckelplats. Alla platser är inaktiverade och ingen " -"volymnyckel har angivits.\n" +msgstr "Kan inte lägga till nyckelplats. Alla platser är inaktiverade och ingen volymnyckel har angivits.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1429 lib/setup.c:1504 lib/setup.c:1507 msgid "Enter any passphrase: " msgstr "Ange valfri lösenfras: " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1448 lib/setup.c:1522 lib/setup.c:1526 lib/setup.c:1579 msgid "Enter new passphrase for key slot: " msgstr "Ange ny lösenfras för nyckelplats: " -#: lib/setup.c:1798 -#, fuzzy, c-format -msgid "Key slot %d changed.\n" -msgstr "Nyckelplats %d är upplåst.\n" - -#: lib/setup.c:1801 -#, c-format -msgid "Replaced with key slot %d.\n" -msgstr "" - -#: lib/setup.c:1806 -#, fuzzy -msgid "Failed to swap new key slot.\n" -msgstr "Misslyckades med att ta status på nyckelfilen %s.\n" - -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1570 lib/setup.c:1772 lib/setup.c:1884 msgid "Volume key does not match the volume.\n" msgstr "Volymnyckeln stämmer inte överens med volymen.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1607 #, c-format msgid "Key slot %d is invalid.\n" msgstr "Nyckelplats %d är ogiltig.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1612 #, c-format msgid "Key slot %d is not used.\n" msgstr "Nyckelplats %d används inte.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1799 #, c-format -msgid "Device %s already exists.\n" -msgstr "Enheten %s finns redan.\n" - -#: lib/setup.c:2171 -#, fuzzy -msgid "Incorrect volume key specified for plain device.\n" -msgstr "Kan inte hämta volymnyckel för vanlig enhet.\n" - -#: lib/setup.c:2204 -msgid "Incorrect root hash specified for verity device.\n" -msgstr "" - -#: lib/setup.c:2227 -#, fuzzy -msgid "Device type is not properly initialised.\n" -msgstr "Enheten %s är inte aktiv.\n" - -#: lib/setup.c:2259 -#, fuzzy, c-format -msgid "Device %s is still in use.\n" +msgid "Device %s is busy.\n" msgstr "Enheten %s är upptagen.\n" -#: lib/setup.c:2268 +#: lib/setup.c:1807 #, c-format msgid "Invalid device %s.\n" msgstr "Ogiltig enhet %s.\n" -#: lib/setup.c:2289 -msgid "Function not available in FIPS mode.\n" -msgstr "" - -#: lib/setup.c:2295 +#: lib/setup.c:1831 msgid "Volume key buffer too small.\n" msgstr "Buffert för volymnyckel är för liten.\n" -#: lib/setup.c:2303 +#: lib/setup.c:1839 msgid "Cannot retrieve volume key for plain device.\n" msgstr "Kan inte hämta volymnyckel för vanlig enhet.\n" -#: lib/setup.c:2310 +#: lib/setup.c:1861 #, c-format msgid "This operation is not supported for %s crypt device.\n" msgstr "Denna åtgärd stöds inte för krypteringsenheter av typen %s.\n" -#: lib/setup.c:2506 -#, fuzzy -msgid "Dump operation is not supported for this device type.\n" -msgstr "Denna åtgärd stöds inte för krypteringsenheter av typen %s.\n" - -#: lib/utils.c:244 -msgid "Cannot get process priority.\n" -msgstr "Kan inte få processprioritet.\n" - -#: lib/utils.c:258 -#, fuzzy -msgid "Cannot unlock memory.\n" -msgstr "Kan inte låsa upp minne." - -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 -msgid "Out of memory while reading passphrase.\n" -msgstr "Slut på minne vid läsning av lösenfras.\n" +#: lib/utils.c:416 +#, c-format +msgid "Failed to open key file %s.\n" +msgstr "Misslyckades med att öppna nyckelfilen %s.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils.c:436 msgid "Error reading passphrase from terminal.\n" msgstr "Fel vid läsning av lösenfras från terminal.\n" -#: lib/utils_crypt.c:259 +#: lib/utils.c:441 msgid "Verify passphrase: " msgstr "Verifiera lösenfras: " -#: lib/utils_crypt.c:266 +#: lib/utils.c:443 msgid "Passphrases do not match.\n" msgstr "Lösenfraserna stämmer inte överens.\n" -#: lib/utils_crypt.c:350 -msgid "Cannot use offset with terminal input.\n" -msgstr "" - -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 -#, fuzzy -msgid "Failed to open key file.\n" -msgstr "Misslyckades med att öppna nyckelfilen %s.\n" +#: lib/utils.c:458 +msgid "Can't do passphrase verification on non-tty inputs.\n" +msgstr "Kan inte verifiera lösenfras på icke-tty-ingångar.\n" -#: lib/utils_crypt.c:378 -#, fuzzy -msgid "Failed to stat key file.\n" +#: lib/utils.c:471 +#, c-format +msgid "Failed to stat key file %s.\n" msgstr "Misslyckades med att ta status på nyckelfilen %s.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 -msgid "Cannot seek to requested keyfile offset.\n" -msgstr "" +#: lib/utils.c:475 +#, c-format +msgid "Warning: exhausting read requested, but key file %s is not a regular file, function might never return.\n" +msgstr "Varning: utförlig läsning begärd men nyckelfilen %s är inte en vanlig fil, funktionen kanske aldrig avslutas.\n" + +#: lib/utils.c:487 +msgid "Out of memory while reading passphrase.\n" +msgstr "Slut på minne vid läsning av lösenfras.\n" -#: lib/utils_crypt.c:424 +#: lib/utils.c:494 msgid "Error reading passphrase.\n" msgstr "Fel vid läsning av lösenfras.\n" -#: lib/utils_crypt.c:442 -msgid "Maximum keyfile size exceeded.\n" -msgstr "" - -#: lib/utils_crypt.c:447 -#, fuzzy -msgid "Cannot read requested amount of data.\n" -msgstr "Kan inte läsa säkerhetskopia för huvud %s.\n" - -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/utils.c:531 #, c-format msgid "Device %s doesn't exist or access denied.\n" msgstr "Enheten %s finns inte eller åtkomst nekas.\n" -#: lib/utils_device.c:430 -msgid "Cannot use a loopback device, running as non-root user.\n" -msgstr "" +#: lib/utils.c:538 +#, c-format +msgid "Cannot open device %s for %s%s access.\n" +msgstr "Kan inte öppna enheten %s för %s%s åtkomst.\n" -#: lib/utils_device.c:433 -#, fuzzy -msgid "Cannot find a free loopback device.\n" -msgstr "Kan inte läsa enheten %s.\n" +#: lib/utils.c:539 +msgid "exclusive " +msgstr "exklusiv" -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" +#: lib/utils.c:540 +msgid "writable" +msgstr "skrivbar" -#: lib/utils_device.c:484 +#: lib/utils.c:540 +msgid "read-only" +msgstr "skrivskyddad" + +#: lib/utils.c:547 #, c-format -msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" +msgid "Cannot read device %s.\n" +msgstr "Kan inte läsa enheten %s.\n" -#: lib/utils_device.c:488 +#: lib/utils.c:577 #, c-format -msgid "Cannot get info about device %s.\n" -msgstr "Kan inte hämta information om enheten %s.\n" +msgid "Cannot open device: %s\n" +msgstr "Kan inte öppna enheten: %s\n" -#: lib/utils_device.c:494 +#: lib/utils.c:587 #, c-format -msgid "Requested offset is beyond real size of device %s.\n" -msgstr "" +msgid "BLKROGET failed on device %s.\n" +msgstr "BLKROGET misslyckades på enheten %s.\n" -#: lib/utils_device.c:502 +#: lib/utils.c:612 #, c-format -msgid "Device %s has zero size.\n" -msgstr "Enheten %s har noll storlek.\n" +msgid "BLKGETSIZE failed on device %s.\n" +msgstr "BLKGETSIZE misslyckades på enheten %s.\n" + +#: lib/utils.c:660 +msgid "WARNING!!! Possibly insecure memory. Are you root?\n" +msgstr "VARNING!!! Potentiellt osäkert minne. Är du root?\n" -#: lib/utils_device.c:513 +#: lib/utils.c:666 +msgid "Cannot get process priority.\n" +msgstr "Kan inte få processprioritet.\n" + +#: lib/utils.c:669 lib/utils.c:682 #, c-format -msgid "Device %s is too small.\n" -msgstr "Enheten %s är för liten.\n" +msgid "setpriority %u failed: %s" +msgstr "setpriority %u misslyckades: %s" + +#: lib/utils.c:680 +msgid "Cannot unlock memory." +msgstr "Kan inte låsa upp minne." -#: lib/luks1/keyencryption.c:37 -#, fuzzy, c-format +#: luks/keyencryption.c:68 +#, c-format +msgid "Unable to obtain sector size for %s" +msgstr "Kunde inte läsa av sektorstorlek för %s" + +#: luks/keyencryption.c:137 +msgid "Failed to obtain device mapper directory." +msgstr "Misslyckades med att läsa av katalog för enhetsmappning." + +#: luks/keyencryption.c:153 +#, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n" +"%s" msgstr "" "Misslyckades med att konfigurera nyckelmappning för dm-crypt för\n" "enheten %s. Kontrollera att kärnan har stöd för chiffret %s\n" "(kontrollera syslog för mer information).\n" "%s" -#: lib/luks1/keyencryption.c:42 -#, fuzzy -msgid "Key size in XTS mode must be 256 or 512 bits.\n" -msgstr "Nyckelstorlek måste vara en multipel av 8 bitar" - -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 -#, fuzzy, c-format -msgid "Cannot write to device %s, permission denied.\n" -msgstr "Kan inte rensa enheten %s.\n" - -#: lib/luks1/keyencryption.c:111 +#: luks/keyencryption.c:163 msgid "Failed to open temporary keystore device.\n" msgstr "Misslyckades med att öppna temporär nyckellagringsenhet.\n" -#: lib/luks1/keyencryption.c:118 +#: luks/keyencryption.c:170 msgid "Failed to access temporary keystore device.\n" msgstr "Misslyckades med att komma åt temporär nyckellagringsenhet.\n" -#: lib/luks1/keyencryption.c:191 -#, fuzzy -msgid "IO error while encrypting keyslot.\n" -msgstr "Storleken för krypteringsnyckeln" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "" - -#: lib/luks1/keymanage.c:90 +#: luks/keymanage.c:91 #, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "" - -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 -#, fuzzy, c-format -msgid "Device %s is not a valid LUKS device.\n" -msgstr "Enheten %s är inte en LUKS-enhet.\n" - -#: lib/luks1/keymanage.c:198 -#, fuzzy, c-format -msgid "Requested header backup file %s already exists.\n" +msgid "Requested file %s already exist.\n" msgstr "Begärda filen %s finns redan.\n" -#: lib/luks1/keymanage.c:200 -#, fuzzy, c-format -msgid "Cannot create header backup file %s.\n" -msgstr "Kan inte läsa säkerhetskopia för huvud %s.\n" +#: luks/keymanage.c:111 +#, c-format +msgid "Device %s is not LUKS device.\n" +msgstr "Enheten %s är inte en LUKS-enhet.\n" -#: lib/luks1/keymanage.c:205 +#: luks/keymanage.c:131 #, c-format msgid "Cannot write header backup file %s.\n" msgstr "Kan inte skriva säkerhetskopia för huvud %s.\n" -#: lib/luks1/keymanage.c:239 -#, fuzzy -msgid "Backup file doesn't contain valid LUKS header.\n" +#: luks/keymanage.c:158 +#, c-format +msgid "Backup file %s doesn't exist.\n" +msgstr "Säkerhetskopian %s finns inte.\n" + +#: luks/keymanage.c:166 +msgid "Backup file do not contain valid LUKS header.\n" msgstr "Säkerhetskopian innehåller inte något giltigt LUKS-huvud.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: luks/keymanage.c:179 #, c-format msgid "Cannot open header backup file %s.\n" msgstr "Kan inte öppna säkerhetskopia för huvud %s.\n" -#: lib/luks1/keymanage.c:258 +#: luks/keymanage.c:185 #, c-format msgid "Cannot read header backup file %s.\n" msgstr "Kan inte läsa säkerhetskopia för huvud %s.\n" -#: lib/luks1/keymanage.c:269 +#: luks/keymanage.c:196 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"Dataoffset eller nyckelstorlek skiljer sig på enhet och säkerhetskopia. " -"Återställningen misslyckades.\n" +msgstr "Dataoffset eller nyckelstorlek skiljer sig på enhet och säkerhetskopia. Återställningen misslyckades.\n" -#: lib/luks1/keymanage.c:277 +#: luks/keymanage.c:204 #, c-format msgid "Device %s %s%s" msgstr "Enhet %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"innehåller inget LUKS-huvud. Ersättning av huvud kan förstöra data på " -"enheten." +#: luks/keymanage.c:205 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "innehåller inget LUKS-huvud. Ersättning av huvud kan förstöra data på enheten." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"innehåller redan LUKS-huvud. Ersättningen av huvud kommer att förstöra " -"befintliga nyckelplatser." +#: luks/keymanage.c:206 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "innehåller redan LUKS-huvud. Ersättningen av huvud kommer att förstöra befintliga nyckelplatser." -#: lib/luks1/keymanage.c:280 +#: luks/keymanage.c:207 msgid "" "\n" "WARNING: real device header has different UUID than backup!" @@ -543,583 +403,256 @@ msgstr "" "\n" "VARNING: verkligt enhetshuvud har annat UUID än säkerhetskopian!" -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 -#: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 -#: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 +#: luks/keymanage.c:222 luks/keymanage.c:319 luks/keymanage.c:354 #, c-format msgid "Cannot open device %s.\n" msgstr "Kan inte öppna enheten %s.\n" -#: lib/luks1/keymanage.c:329 -msgid "Non standard key size, manual repair required.\n" -msgstr "" - -#: lib/luks1/keymanage.c:334 -msgid "Non standard keyslots alignment, manual repair required.\n" -msgstr "" - -#: lib/luks1/keymanage.c:340 -msgid "Repairing keyslots.\n" -msgstr "" - -#: lib/luks1/keymanage.c:351 -msgid "Repair failed." -msgstr "" - -#: lib/luks1/keymanage.c:363 -#, c-format -msgid "Keyslot %i: offset repaired (%u -> %u).\n" -msgstr "" - -#: lib/luks1/keymanage.c:371 +#: luks/keymanage.c:254 #, c-format -msgid "Keyslot %i: stripes repaired (%u -> %u).\n" -msgstr "" +msgid "%s is not LUKS device.\n" +msgstr "%s är inte en LUKS-enhet.\n" -#: lib/luks1/keymanage.c:380 +#: luks/keymanage.c:256 #, c-format -msgid "Keyslot %i: bogus partition signature.\n" -msgstr "" - -#: lib/luks1/keymanage.c:385 -#, fuzzy, c-format -msgid "Keyslot %i: salt wiped.\n" -msgstr "Nyckelplats %d är ogiltig.\n" - -#: lib/luks1/keymanage.c:396 -#, fuzzy -msgid "Writing LUKS header to disk.\n" -msgstr "Fel vid uppdatering av LUKS-huvud på enheten %s.\n" +msgid "%s is not LUKS device." +msgstr "%s är inte en LUKS-enhet." -#: lib/luks1/keymanage.c:421 +#: luks/keymanage.c:259 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "LUKS-versionen %d stöds inte.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: luks/keymanage.c:262 #, c-format msgid "Requested LUKS hash %s is not supported.\n" msgstr "Begärd LUKS-hash %s stöds inte.\n" -#: lib/luks1/keymanage.c:442 -#, fuzzy, c-format -msgid "LUKS keyslot %u is invalid.\n" -msgstr "Nyckelplats %d är ogiltig.\n" +#: luks/keymanage.c:293 +#, c-format +msgid "Cannot open file %s.\n" +msgstr "Kan inte öppna filen %s.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 -msgid "No known problems detected for LUKS header.\n" -msgstr "" +#: luks/keymanage.c:331 +#, c-format +msgid "LUKS header detected but device %s is too small.\n" +msgstr "LUKS-huvud identifierat men enheten %s är för liten.\n" -#: lib/luks1/keymanage.c:596 +#: luks/keymanage.c:375 #, c-format msgid "Error during update of LUKS header on device %s.\n" msgstr "Fel vid uppdatering av LUKS-huvud på enheten %s.\n" -#: lib/luks1/keymanage.c:603 +#: luks/keymanage.c:382 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" msgstr "Fel vid omläsning av LUKS-huvud efter uppdatering på enheten %s.\n" -#: lib/luks1/keymanage.c:654 +#: luks/keymanage.c:394 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" - -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 -#, fuzzy -msgid "Wrong LUKS UUID format provided.\n" -msgstr "Felaktigt UUID-format angavs, genererar ny.\n" +msgid "Not compatible PBKDF2 options (using hash algorithm %s)." +msgstr "Ej kompatibla PBKDF2-flaggor (använder hash-algoritmen %s)." -#: lib/luks1/keymanage.c:695 +#: luks/keymanage.c:439 msgid "Cannot create LUKS header: reading random salt failed.\n" -msgstr "" -"Kan inte skapa LUKS-huvud: läsning av slumpmässigt salt misslyckades.\n" - -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 -#, fuzzy, c-format -msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" -msgstr "Ej kompatibla PBKDF2-flaggor (använder hash-algoritmen %s)." +msgstr "Kan inte skapa LUKS-huvud: läsning av slumpmässigt salt misslyckades.\n" -#: lib/luks1/keymanage.c:717 +#: luks/keymanage.c:456 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"Kan inte skapa LUKS-huvud: huvudsammanfattning misslyckades (använder hashen " -"%s).\n" +msgstr "Kan inte skapa LUKS-huvud: huvudsammanfattning misslyckades (använder hashen %s).\n" + +#: luks/keymanage.c:473 +msgid "Wrong UUID format provided, generating new one.\n" +msgstr "Felaktigt UUID-format angavs, genererar ny.\n" -#: lib/luks1/keymanage.c:782 +#: luks/keymanage.c:500 #, c-format msgid "Key slot %d active, purge first.\n" msgstr "Nyckelplats %d är aktiv, rensa först.\n" -#: lib/luks1/keymanage.c:788 +#: luks/keymanage.c:505 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" -"Nyckelplats %d material inkluderar för få stripes. Har huvudet " -"manipulerats?\n" +msgstr "Nyckelplats %d material inkluderar för få stripes. Har huvudet manipulerats?\n" + +#: luks/keymanage.c:564 +msgid "Failed to write to key storage.\n" +msgstr "Misslyckades med att skriva till nyckellagring.\n" -#: lib/luks1/keymanage.c:950 +#: luks/keymanage.c:641 +msgid "Failed to read from key storage.\n" +msgstr "Misslyckades med att läsa från nyckellagring.\n" + +#: luks/keymanage.c:650 #, c-format msgid "Key slot %d unlocked.\n" msgstr "Nyckelplats %d är upplåst.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: luks/keymanage.c:683 msgid "No key available with this passphrase.\n" msgstr "Ingen nyckel finns tillgänglig med denna lösenfras.\n" -#: lib/luks1/keymanage.c:1003 +#: luks/keymanage.c:760 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" msgstr "Nyckelplats %d är ogiltig. Välj en nyckelplats mellan 0 och %d.\n" -#: lib/luks1/keymanage.c:1021 +#: luks/keymanage.c:772 #, c-format msgid "Cannot wipe device %s.\n" msgstr "Kan inte rensa enheten %s.\n" -#: lib/loopaes/loopaes.c:146 -msgid "Detected not yet supported GPG encrypted keyfile.\n" -msgstr "" - -#: lib/loopaes/loopaes.c:147 -msgid "Please use gpg --decrypt | cryptsetup --keyfile=- ...\n" -msgstr "" +#: src/cryptsetup.c:71 src/cryptsetup.c:89 +msgid " " +msgstr " " -#: lib/loopaes/loopaes.c:168 lib/loopaes/loopaes.c:188 -msgid "Incompatible loop-AES keyfile detected.\n" -msgstr "" +#: src/cryptsetup.c:71 +msgid "create device" +msgstr "skapa enhet" -#: lib/loopaes/loopaes.c:244 -msgid "Kernel doesn't support loop-AES compatible mapping.\n" -msgstr "" +#: src/cryptsetup.c:72 src/cryptsetup.c:73 src/cryptsetup.c:74 +#: src/cryptsetup.c:82 +msgid "" +msgstr "" -#: lib/tcrypt/tcrypt.c:475 -#, fuzzy, c-format -msgid "Error reading keyfile %s.\n" -msgstr "Fel vid läsning av lösenfras.\n" +#: src/cryptsetup.c:72 +msgid "remove device" +msgstr "ta bort enhet" -#: lib/tcrypt/tcrypt.c:513 -#, c-format -msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" -msgstr "" +#: src/cryptsetup.c:73 +msgid "resize active device" +msgstr "ändra storlek på aktiv enhet" -#: lib/tcrypt/tcrypt.c:543 -#, c-format -msgid "PBKDF2 hash algorithm %s not available, skipping.\n" -msgstr "" +#: src/cryptsetup.c:74 +msgid "show device status" +msgstr "visa enhetsstatus" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 -msgid "Required kernel crypto interface not available.\n" -msgstr "" +#: src/cryptsetup.c:75 src/cryptsetup.c:77 +msgid " []" +msgstr " []" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 -msgid "Ensure you have algif_skcipher kernel module loaded.\n" -msgstr "" +#: src/cryptsetup.c:75 +msgid "formats a LUKS device" +msgstr "formaterar en LUKS-enhet" -#: lib/tcrypt/tcrypt.c:707 -#, fuzzy, c-format -msgid "Activation is not supported for %d sector size.\n" -msgstr "Denna åtgärd stöds inte för krypteringsenheter av typen %s.\n" +#: src/cryptsetup.c:76 +msgid " " +msgstr " " -#: lib/tcrypt/tcrypt.c:713 -msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" -msgstr "" +#: src/cryptsetup.c:76 +msgid "open LUKS device as mapping " +msgstr "öppna LUKS-enhet som mappning " -#: lib/tcrypt/tcrypt.c:744 -#, c-format -msgid "Activating TCRYPT system encryption for partition %s.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "" - -#: lib/tcrypt/tcrypt.c:1020 -#, fuzzy -msgid "This function is not supported without TCRYPT header load." -msgstr "Denna åtgärd stöds inte för krypteringsenheter av typen %s.\n" - -#: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "" - -#: lib/verity/verity.c:94 -#, fuzzy, c-format -msgid "Device %s is not a valid VERITY device.\n" -msgstr "Enheten %s är inte en LUKS-enhet.\n" - -#: lib/verity/verity.c:101 -#, fuzzy, c-format -msgid "Unsupported VERITY version %d.\n" -msgstr "LUKS-versionen %d stöds inte.\n" - -#: lib/verity/verity.c:131 -msgid "VERITY header corrupted.\n" -msgstr "" - -#: lib/verity/verity.c:166 -#, fuzzy, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "Felaktigt UUID-format angavs, genererar ny.\n" - -#: lib/verity/verity.c:196 -#, fuzzy, c-format -msgid "Error during update of verity header on device %s.\n" -msgstr "Fel vid uppdatering av LUKS-huvud på enheten %s.\n" - -#: lib/verity/verity.c:276 -msgid "Kernel doesn't support dm-verity mapping.\n" -msgstr "" - -#: lib/verity/verity.c:287 -msgid "Verity device detected corruption after activation.\n" -msgstr "" - -#: lib/verity/verity_hash.c:59 -#, c-format -msgid "Spare area is not zeroed at position %.\n" -msgstr "" - -#: lib/verity/verity_hash.c:121 lib/verity/verity_hash.c:249 -#: lib/verity/verity_hash.c:277 lib/verity/verity_hash.c:284 -msgid "Device offset overflow.\n" -msgstr "" - -#: lib/verity/verity_hash.c:161 -#, c-format -msgid "Verification failed at position %.\n" -msgstr "" - -#: lib/verity/verity_hash.c:235 -msgid "Invalid size parameters for verity device.\n" -msgstr "" - -#: lib/verity/verity_hash.c:266 -msgid "Too many tree levels for verity volume.\n" -msgstr "" - -#: lib/verity/verity_hash.c:354 -msgid "Verification of data area failed.\n" -msgstr "" - -#: lib/verity/verity_hash.c:359 -msgid "Verification of root hash failed.\n" -msgstr "" - -#: lib/verity/verity_hash.c:365 -#, fuzzy -msgid "Input/output error while creating hash area.\n" -msgstr "Slut på minne vid läsning av lösenfras.\n" - -#: lib/verity/verity_hash.c:367 -msgid "Creation of hash area failed.\n" -msgstr "" - -#: lib/verity/verity_hash.c:414 -#, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" - -#: src/cryptsetup.c:91 -msgid "Can't do passphrase verification on non-tty inputs.\n" -msgstr "Kan inte verifiera lösenfras på icke-tty-ingångar.\n" - -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 -msgid "No known cipher specification pattern detected.\n" -msgstr "Inget känt chifferspecifikationsmönster kunde identifieras.\n" - -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" - -#: src/cryptsetup.c:218 -#, fuzzy -msgid "Option --key-file is required.\n" -msgstr "Flaggan --header-backup-file krävs.\n" - -#: src/cryptsetup.c:267 -#, fuzzy -msgid "No device header detected with this passphrase.\n" -msgstr "Ingen nyckel finns tillgänglig med denna lösenfras.\n" - -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 -msgid "" -"Header dump with volume key is sensitive information\n" -"which allows access to encrypted partition without passphrase.\n" -"This dump should be always stored encrypted on safe place." -msgstr "" - -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "" - -#: src/cryptsetup.c:558 -msgid "# Tests are approximate using memory only (no storage IO).\n" -msgstr "" - -#: src/cryptsetup.c:583 src/cryptsetup.c:605 -msgid "# Algorithm | Key | Encryption | Decryption\n" -msgstr "" - -#: src/cryptsetup.c:587 -#, fuzzy, c-format -msgid "Cipher %s is not available.\n" -msgstr "Enheten %s är inte aktiv.\n" - -#: src/cryptsetup.c:614 -msgid "N/A" -msgstr "" - -#: src/cryptsetup.c:639 -#, fuzzy, c-format -msgid "Cannot read keyfile %s.\n" -msgstr "Kan inte läsa enheten %s.\n" - -#: src/cryptsetup.c:643 -#, fuzzy, c-format -msgid "Cannot read %d bytes from keyfile %s.\n" -msgstr "Kan inte läsa %d byte från nyckelfilen %s.\n" - -#: src/cryptsetup.c:672 -#, fuzzy -msgid "Really try to repair LUKS device header?" -msgstr "Återställ huvud och nyckelplatser för LUKS-enhet" - -#: src/cryptsetup.c:697 -#, c-format -msgid "This will overwrite data on %s irrevocably." -msgstr "Detta kommer att skriva över data på %s och går inte att ångra." - -#: src/cryptsetup.c:699 -msgid "memory allocation error in action_luksFormat" -msgstr "minnesallokeringsfel i action_luksFormat" - -#: src/cryptsetup.c:717 -#, c-format -msgid "Cannot use %s as on-disk header.\n" -msgstr "" - -#: src/cryptsetup.c:784 -msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" - -#: src/cryptsetup.c:881 src/cryptsetup.c:937 -#, fuzzy, c-format -msgid "Key slot %d selected for deletion.\n" -msgstr "nyckeplats %d markerad för borttagning.\n" - -#: src/cryptsetup.c:884 -#, c-format -msgid "Key %d not active. Can't wipe.\n" -msgstr "Nyckel %d är inte aktiv. Kan inte rensa.\n" - -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"Detta är sista nyckelplatsen. Enheten kommer att bli oanvändbar efter att " -"denna nyckel tagits bort." - -#: src/cryptsetup.c:893 -#, fuzzy -msgid "Enter any remaining passphrase: " -msgstr "Ange eventuell återstående LUKS-lösenfras: " - -#: src/cryptsetup.c:921 -#, fuzzy -msgid "Enter passphrase to be deleted: " -msgstr "Ange LUKS-lösenfras att ta bort: " - -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, fuzzy, c-format -msgid "Enter any existing passphrase: " -msgstr "Ange valfri lösenfras: " - -#: src/cryptsetup.c:1052 -#, fuzzy -msgid "Enter passphrase to be changed: " -msgstr "Ange LUKS-lösenfras att ta bort: " - -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 -#, fuzzy -msgid "Enter new passphrase: " -msgstr "Ange valfri lösenfras: " - -#: src/cryptsetup.c:1090 -msgid "Only one device argument for isLuks operation is supported.\n" -msgstr "" - -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 -msgid "Option --header-backup-file is required.\n" -msgstr "Flaggan --header-backup-file krävs.\n" - -#: src/cryptsetup.c:1304 -#, c-format -msgid "Unrecognized metadata device type %s.\n" -msgstr "" - -#: src/cryptsetup.c:1307 -msgid "Command requires device and mapped name as arguments.\n" -msgstr "" - -#: src/cryptsetup.c:1326 -#, fuzzy, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Detta är sista nyckelplatsen. Enheten kommer att bli oanvändbar efter att " -"denna nyckel tagits bort." - -#: src/cryptsetup.c:1360 -#, fuzzy -msgid " [--type ] []" -msgstr " " - -#: src/cryptsetup.c:1360 -#, fuzzy -msgid "open device as mapping " -msgstr "öppna LUKS-enhet som mappning " - -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 -msgid "" -msgstr "" - -#: src/cryptsetup.c:1361 -msgid "close device (remove mapping)" -msgstr "" - -#: src/cryptsetup.c:1362 -msgid "resize active device" -msgstr "ändra storlek på aktiv enhet" - -#: src/cryptsetup.c:1363 -msgid "show device status" -msgstr "visa enhetsstatus" - -#: src/cryptsetup.c:1364 -msgid "benchmark cipher" -msgstr "" - -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 -msgid "" -msgstr "" - -#: src/cryptsetup.c:1365 -msgid "try to repair on-disk metadata" -msgstr "" - -#: src/cryptsetup.c:1366 -#, fuzzy -msgid "erase all keyslots (remove encryption key)" -msgstr "Storleken för krypteringsnyckeln" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 -msgid " []" -msgstr " []" - -#: src/cryptsetup.c:1367 -msgid "formats a LUKS device" -msgstr "formaterar en LUKS-enhet" - -#: src/cryptsetup.c:1368 +#: src/cryptsetup.c:77 msgid "add key to LUKS device" msgstr "lägg till nyckel till LUKS-enhet" -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 +#: src/cryptsetup.c:78 msgid " []" msgstr " []" -#: src/cryptsetup.c:1369 +#: src/cryptsetup.c:78 msgid "removes supplied key or key file from LUKS device" msgstr "tar bort angiven nyckel eller nyckelfil från LUKS-enhet" -#: src/cryptsetup.c:1370 -#, fuzzy -msgid "changes supplied key or key file of LUKS device" -msgstr "tar bort angiven nyckel eller nyckelfil från LUKS-enhet" - -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:79 src/cryptsetup.c:88 msgid " " msgstr " " -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:79 msgid "wipes key with number from LUKS device" msgstr "rensar nyckeln med nummer från LUKS-enhet" -#: src/cryptsetup.c:1372 +#: src/cryptsetup.c:80 src/cryptsetup.c:81 src/cryptsetup.c:83 +#: src/cryptsetup.c:84 src/cryptsetup.c:85 src/cryptsetup.c:86 +#: src/cryptsetup.c:87 +msgid "" +msgstr "" + +#: src/cryptsetup.c:80 msgid "print UUID of LUKS device" msgstr "skriv ut UUID för LUKS-enhet" -#: src/cryptsetup.c:1373 +#: src/cryptsetup.c:81 msgid "tests for LUKS partition header" msgstr "testar för LUKS-partitionshuvud" -#: src/cryptsetup.c:1374 -msgid "dump LUKS partition information" -msgstr "skriver ut information om LUKS-partition" +#: src/cryptsetup.c:82 +msgid "remove LUKS mapping" +msgstr "ta bort LUKS-mappning" -#: src/cryptsetup.c:1375 -#, fuzzy -msgid "dump TCRYPT device information" +#: src/cryptsetup.c:83 +msgid "dump LUKS partition information" msgstr "skriver ut information om LUKS-partition" -#: src/cryptsetup.c:1376 +#: src/cryptsetup.c:84 msgid "Suspend LUKS device and wipe key (all IOs are frozen)." -msgstr "" -"Försätt LUKS-enhet i vänteläge och rensa nyckel (alla in-/ut-åtgärder är " -"frusna)." +msgstr "Försätt LUKS-enhet i vänteläge och rensa nyckel (alla in-/ut-åtgärder är frusna)." -#: src/cryptsetup.c:1377 +#: src/cryptsetup.c:85 msgid "Resume suspended LUKS device." msgstr "Återuppta LUKS-enhet i vänteläge." -#: src/cryptsetup.c:1378 +#: src/cryptsetup.c:86 msgid "Backup LUKS device header and keyslots" msgstr "Säkerhetskopiera huvud och nyckelplatser från LUKS-enhet" -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:87 msgid "Restore LUKS device header and keyslots" msgstr "Återställ huvud och nyckelplatser för LUKS-enhet" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:88 +msgid "identical to luksKillSlot - DEPRECATED - see man page" +msgstr "identisk med luksKillSlot - FÖRÅLDRAD - se manualsida" + +#: src/cryptsetup.c:89 +msgid "modify active device - DEPRECATED - see man page" +msgstr "ändra aktiv enhet - FÖRÅLDRAD - se manualsida" + +#: src/cryptsetup.c:180 +msgid "Command successful.\n" +msgstr "Kommandot lyckades.\n" + +#: src/cryptsetup.c:194 +#, c-format +msgid "Command failed with code %i" +msgstr "Kommandot misslyckades med kod %i" + +#: src/cryptsetup.c:222 msgid "" -"\n" -" is one of:\n" +"The reload action is deprecated. Please use \"dmsetup reload\" in case you really need this functionality.\n" +"WARNING: do not use reload to touch LUKS devices. If that is the case, hit Ctrl-C now.\n" msgstr "" -"\n" -"<åtgärd> är en av:\n" +"Omläsningsåtgärden är föråldrad. Använd \"dmsetup reload\" om du verkligen behöver denna funktion.\n" +"VARNING: använd inte omläsning för \"touch\" på LUKS-enheter. Om så är fallet, tryck Ctrl-C nu.\n" + +#: src/cryptsetup.c:390 +#, c-format +msgid "This will overwrite data on %s irrevocably." +msgstr "Detta kommer att skriva över data på %s och går inte att ångra." + +#: src/cryptsetup.c:391 +msgid "memory allocation error in action_luksFormat" +msgstr "minnesallokeringsfel i action_luksFormat" + +#: src/cryptsetup.c:421 +msgid "Obsolete option --non-exclusive is ignored.\n" +msgstr "Föråldrad flagga --non-exclusive ignoreras.\n" + +#: src/cryptsetup.c:581 src/cryptsetup.c:603 +msgid "Option --header-backup-file is required.\n" +msgstr "Flaggan --header-backup-file krävs.\n" -#: src/cryptsetup.c:1402 +#: src/cryptsetup.c:637 msgid "" "\n" -"You can also use old syntax aliases:\n" -"\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" -"\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" +" is one of:\n" msgstr "" +"\n" +"<åtgärd> är en av:\n" -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:643 #, c-format msgid "" "\n" @@ -1134,816 +667,149 @@ msgstr "" " är numret för LUKS-nyckelplatsen att ändra\n" " valfri nyckelfil för den nya nyckeln för luksAddKey-åtgärden\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:650 #, c-format msgid "" "\n" -"Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" -"Default PBKDF2 iteration time for LUKS: %d (ms)\n" -msgstr "" - -#: src/cryptsetup.c:1420 -#, fuzzy, c-format -msgid "" -"\n" "Default compiled-in device cipher parameters:\n" -"\tloop-AES: %s, Key %d bits\n" "\tplain: %s, Key: %d bits, Password hashing: %s\n" -"\tLUKS1: %s, Key: %d bits, LUKS header hashing: %s, RNG: %s\n" +"\tLUKS1: %s, Key: %d bits, LUKS header hashing: %s\n" msgstr "" "\n" "Inkompilerade standardchifferparametrar för enheter:\n" "\tplain: %s, Nyckel: %d bitar, Lösenordshashning: %s\n" "\tLUKS1: %s, Nyckel: %d bitar, LUKS header-hashning: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 -#, c-format -msgid "%s: requires %s as arguments" -msgstr "%s: kräver %s som argument" - -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:697 msgid "Show this help message" msgstr "Visa detta hjälpmeddelande" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:698 msgid "Display brief usage" msgstr "Visa kort information om användning" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:702 msgid "Help options:" msgstr "Hjälpflaggor:" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 -msgid "Print package version" -msgstr "Skriv ut paketversion" - -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:703 msgid "Shows more detailed error messages" msgstr "Visar mer detaljerade felmeddelanden" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:704 msgid "Show debug messages" msgstr "Visa felsökningsmeddelanden" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:705 msgid "The cipher used to encrypt the disk (see /proc/crypto)" msgstr "Chiffret som används för att kryptera disken (se /proc/crypto)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:706 msgid "The hash used to create the encryption key from the passphrase" msgstr "Hashen som används för att skapa krypteringsnyckel från lösenfras" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:707 msgid "Verifies the passphrase by asking for it twice" msgstr "Verifierar lösenfrasen genom att fråga efter den två gånger" -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 -#, fuzzy -msgid "Read the key from a file." -msgstr "Läs volymnyckeln (master) från fil." +#: src/cryptsetup.c:708 +msgid "Read the key from a file (can be /dev/random)" +msgstr "Läs nyckeln från en fil (kan vara /dev/random)" -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:709 msgid "Read the volume (master) key from file." msgstr "Läs volymnyckeln (master) från fil." -#: src/cryptsetup.c:1484 -msgid "Dump volume (master) key instead of keyslots info." -msgstr "" - -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:710 msgid "The size of the encryption key" msgstr "Storleken för krypteringsnyckeln" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:710 msgid "BITS" msgstr "BITAR" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 -msgid "Limits the read from keyfile" -msgstr "" - -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 -msgid "bytes" -msgstr "" - -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 -msgid "Number of bytes to skip in keyfile" -msgstr "" - -#: src/cryptsetup.c:1488 -msgid "Limits the read from newly added keyfile" -msgstr "" - -#: src/cryptsetup.c:1489 -msgid "Number of bytes to skip in newly added keyfile" -msgstr "" - -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:711 msgid "Slot number for new key (default is first free)" msgstr "Platsnummer för ny nyckel (standard är första lediga)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:712 msgid "The size of the device" msgstr "Storleken för enheten" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:712 src/cryptsetup.c:713 src/cryptsetup.c:714 +#: src/cryptsetup.c:722 msgid "SECTORS" msgstr "SEKTORER" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:713 msgid "The start offset in the backend device" msgstr "Startoffset i bakändesenheten" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:714 msgid "How many sectors of the encrypted data to skip at the beginning" msgstr "Hur många sektorer av krypterat data som ska hoppas över i början" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:715 msgid "Create a readonly mapping" msgstr "Skapa en skrivskyddad mappning" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:716 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "PBKDF2-iterationstid för LUKS (i ms)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:717 msgid "msecs" msgstr "ms" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:718 msgid "Do not ask for confirmation" msgstr "Fråga inte efter bekräftelse" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:719 +msgid "Print package version" +msgstr "Skriv ut paketversion" + +#: src/cryptsetup.c:720 msgid "Timeout for interactive passphrase prompt (in seconds)" msgstr "Tidsgräns för interaktiv lösenfrasprompt (i sekunder)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:720 msgid "secs" msgstr "s" -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:721 msgid "How often the input of the passphrase can be retried" msgstr "Hur många inmatningsförsök av lösenfrasen som kan göras" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:722 msgid "Align payload at sector boundaries - for luksFormat" msgstr "Justera nyttolast i sektorgränser - för luksFormat" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:723 +msgid "(Obsoleted, see man page.)" +msgstr "(Föråldrad, se manualsida)" + +#: src/cryptsetup.c:724 msgid "File with LUKS header and keyslots backup." msgstr "Fil med säkerhetskopior av LUKS-huvud och nyckelplatser." -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 -msgid "Use /dev/random for generating volume key." -msgstr "" - -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 -msgid "Use /dev/urandom for generating volume key." -msgstr "" - -#: src/cryptsetup.c:1503 -msgid "Share device with another non-overlapping crypt segment." -msgstr "" - -#: src/cryptsetup.c:1504 src/veritysetup.c:385 -#, fuzzy -msgid "UUID for device to use." -msgstr "DM-UUID för enheten %s förkortades.\n" - -#: src/cryptsetup.c:1505 -msgid "Allow discards (aka TRIM) requests for device." -msgstr "" - -#: src/cryptsetup.c:1506 -msgid "Device or file with separated LUKS header." -msgstr "" - -#: src/cryptsetup.c:1507 -msgid "Do not activate device, just check passphrase." -msgstr "" - -#: src/cryptsetup.c:1508 -msgid "Use hidden header (hidden TCRYPT device)." -msgstr "" - -#: src/cryptsetup.c:1509 -msgid "Device is system TCRYPT drive (with bootloader)." -msgstr "" - -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "" +#: src/cryptsetup.c:742 +msgid "[OPTION...] ]" +msgstr "[FLAGGA...] <åtgärd> <åtgärdsspecifik>]" -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "" +#: src/cryptsetup.c:778 +msgid "Key size must be a multiple of 8 bits" +msgstr "Nyckelstorlek måste vara en multipel av 8 bitar" -#: src/cryptsetup.c:1512 -msgid "Type of device metadata: luks, plain, loopaes, tcrypt." -msgstr "" +#: src/cryptsetup.c:782 +msgid "Argument missing." +msgstr "Argumentet <åtgärd> saknas." -#: src/cryptsetup.c:1513 -msgid "Disable password quality check (if enabled)." -msgstr "" +#: src/cryptsetup.c:788 +msgid "Unknown action." +msgstr "Okänd åtgärd." -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "" - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 -#, fuzzy -msgid "[OPTION...] " -msgstr "[FLAGGA...] <åtgärd> <åtgärdsspecifik>]" - -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 -msgid "Argument missing." -msgstr "Argumentet <åtgärd> saknas." - -#: src/cryptsetup.c:1634 src/veritysetup.c:445 -msgid "Unknown action." -msgstr "Okänd åtgärd." - -#: src/cryptsetup.c:1644 -msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "" - -#: src/cryptsetup.c:1649 -msgid "Option --allow-discards is allowed only for open operation.\n" -msgstr "" - -#: src/cryptsetup.c:1657 -msgid "" -"Option --key-size is allowed only for luksFormat, open and benchmark.\n" -"To limit read from keyfile use --keyfile-size=(bytes)." -msgstr "" - -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" - -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 -msgid "Key size must be a multiple of 8 bits" -msgstr "Nyckelstorlek måste vara en multipel av 8 bitar" - -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 -#, fuzzy -msgid "Key slot is invalid." -msgstr "Nyckelplats %d är ogiltig.\n" - -#: src/cryptsetup.c:1683 -msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" - -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 -msgid "Negative number for option not permitted." -msgstr "" - -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 -msgid "Only one of --use-[u]random options is allowed." -msgstr "" - -#: src/cryptsetup.c:1699 -msgid "Option --use-[u]random is allowed only for luksFormat." -msgstr "" - -#: src/cryptsetup.c:1703 -msgid "Option --uuid is allowed only for luksFormat and luksUUID." -msgstr "" - -#: src/cryptsetup.c:1707 -msgid "Option --align-payload is allowed only for luksFormat." -msgstr "" - -#: src/cryptsetup.c:1713 -#, fuzzy -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "Denna åtgärd stöds endast för LUKS-enheter.\n" - -#: src/cryptsetup.c:1719 -#, fuzzy -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "Denna åtgärd stöds endast för LUKS-enheter.\n" - -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" - -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "" - -#: src/cryptsetup.c:1735 -#, fuzzy -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "Denna åtgärd stöds endast för LUKS-enheter.\n" - -#: src/veritysetup.c:58 -msgid "Invalid salt string specified.\n" -msgstr "" - -#: src/veritysetup.c:88 -#, c-format -msgid "Cannot create hash image %s for writing.\n" -msgstr "" - -#: src/veritysetup.c:148 -msgid "Invalid root hash string specified.\n" -msgstr "" - -#: src/veritysetup.c:308 -#, fuzzy -msgid " " -msgstr " " - -#: src/veritysetup.c:308 -#, fuzzy -msgid "format device" -msgstr "skapa enhet" - -#: src/veritysetup.c:309 -msgid " " -msgstr "" - -#: src/veritysetup.c:309 -#, fuzzy -msgid "verify device" -msgstr "ta bort enhet" - -#: src/veritysetup.c:310 -msgid " " -msgstr "" - -#: src/veritysetup.c:310 -#, fuzzy -msgid "create active device" -msgstr "ändra storlek på aktiv enhet" - -#: src/veritysetup.c:311 -#, fuzzy -msgid "remove (deactivate) device" -msgstr "ändra storlek på aktiv enhet" - -#: src/veritysetup.c:312 -#, fuzzy -msgid "show active device status" -msgstr "visa enhetsstatus" - -#: src/veritysetup.c:313 -#, fuzzy -msgid "" -msgstr "" - -#: src/veritysetup.c:313 -msgid "show on-disk information" -msgstr "" - -#: src/veritysetup.c:332 -#, c-format -msgid "" -"\n" -" is the device to create under %s\n" -" is the data device\n" -" is the device containing verification data\n" -" hash of the root node on \n" -msgstr "" - -#: src/veritysetup.c:339 -#, c-format -msgid "" -"\n" -"Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" -msgstr "" - -#: src/veritysetup.c:377 -msgid "Do not use verity superblock" -msgstr "" - -#: src/veritysetup.c:378 -msgid "Format type (1 - normal, 0 - original Chrome OS)" -msgstr "" - -#: src/veritysetup.c:378 -msgid "number" -msgstr "" - -#: src/veritysetup.c:379 -#, fuzzy -msgid "Block size on the data device" -msgstr "Storleken för enheten" - -#: src/veritysetup.c:380 -#, fuzzy -msgid "Block size on the hash device" -msgstr "Storleken för enheten" - -#: src/veritysetup.c:381 -msgid "The number of blocks in the data file" -msgstr "" - -#: src/veritysetup.c:381 -msgid "blocks" -msgstr "" - -#: src/veritysetup.c:382 -#, fuzzy -msgid "Starting offset on the hash device" -msgstr "Startoffset i bakändesenheten" - -#: src/veritysetup.c:383 -msgid "Hash algorithm" -msgstr "" - -#: src/veritysetup.c:383 -msgid "string" -msgstr "" - -#: src/veritysetup.c:384 -msgid "Salt" -msgstr "" - -#: src/veritysetup.c:384 -msgid "hex string" -msgstr "" - -#: src/cryptsetup_reencrypt.c:147 -#, fuzzy, c-format -msgid "Cannot exclusively open %s, device in use.\n" -msgstr "Kan inte öppna enheten %s.\n" - -#: src/cryptsetup_reencrypt.c:151 -#, fuzzy, c-format -msgid "Cannot open device %s\n" -msgstr "Kan inte öppna enheten %s.\n" - -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 -msgid "Allocation of aligned memory failed.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:168 -#, c-format -msgid "Cannot read device %s.\n" -msgstr "Kan inte läsa enheten %s.\n" - -#: src/cryptsetup_reencrypt.c:179 -#, c-format -msgid "Marking LUKS device %s unusable.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:184 -#, c-format -msgid "Marking LUKS device %s usable.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:200 -#, fuzzy, c-format -msgid "Cannot write device %s.\n" -msgstr "Kan inte rensa enheten %s.\n" - -#: src/cryptsetup_reencrypt.c:281 -#, fuzzy -msgid "Cannot write reencryption log file.\n" -msgstr "Kan inte skriva säkerhetskopia för huvud %s.\n" - -#: src/cryptsetup_reencrypt.c:337 -#, fuzzy -msgid "Cannot read reencryption log file.\n" -msgstr "Kan inte läsa säkerhetskopia för huvud %s.\n" - -#: src/cryptsetup_reencrypt.c:374 +#: src/cryptsetup.c:803 #, c-format -msgid "Log file %s exists, resuming reencryption.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:403 -msgid "Activating temporary device using old LUKS header.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:414 -msgid "Activating temporary device using new LUKS header.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:424 -msgid "Activation of temporary devices failed.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:450 -#, fuzzy, c-format -msgid "New LUKS header for device %s created.\n" -msgstr "Kan inte rensa huvudet på enheten %s.\n" - -#: src/cryptsetup_reencrypt.c:458 -#, c-format -msgid "Activated keyslot %i.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:484 -#, fuzzy, c-format -msgid "LUKS header backup of device %s created.\n" -msgstr "LUKS-huvud identifierat men enheten %s är för liten.\n" - -#: src/cryptsetup_reencrypt.c:532 -msgid "Creation of LUKS backup headers failed.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:634 -#, fuzzy, c-format -msgid "Cannot restore LUKS header on device %s.\n" -msgstr "Kan inte rensa huvudet på enheten %s.\n" - -#: src/cryptsetup_reencrypt.c:636 -#, fuzzy, c-format -msgid "LUKS header on device %s restored.\n" -msgstr "LUKS-huvud identifierat men enheten %s är för liten.\n" - -#: src/cryptsetup_reencrypt.c:669 -#, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" - -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 -#, fuzzy -msgid "Cannot seek to device offset.\n" -msgstr "Kan inte läsa enheten %s.\n" - -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 -#, fuzzy -msgid "Cannot open temporary LUKS header file.\n" -msgstr "Kan inte öppna säkerhetskopia för huvud %s.\n" - -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 -#, fuzzy -msgid "Cannot get device size.\n" -msgstr "Kan inte läsa enheten %s.\n" - -#: src/cryptsetup_reencrypt.c:919 -msgid "Interrupted by a signal.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:921 -msgid "IO error during reencryption.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 -#, fuzzy, c-format -msgid "Enter passphrase for key slot %u: " -msgstr "Ange ny lösenfras för nyckelplats: " - -#: src/cryptsetup_reencrypt.c:1136 -#, fuzzy -msgid "Cannot open reencryption log file.\n" -msgstr "Kan inte öppna säkerhetskopia för huvud %s.\n" - -#: src/cryptsetup_reencrypt.c:1262 -msgid "Reencryption block size" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1262 -msgid "MiB" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1274 -msgid "Use fsync after each block." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1275 -msgid "Update log file after every block." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1276 -msgid "Use only this slot (others will be disabled)." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1279 -msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1280 -msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1281 -#, fuzzy -msgid "Create new header on not encrypted device." -msgstr "Kan inte rensa huvudet på enheten %s.\n" - -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1298 -msgid "[OPTION...] " -msgstr "" - -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1313 -#, c-format -msgid "Reencryption will change: volume key%s%s%s%s.\n" -msgstr "" - -#: src/cryptsetup_reencrypt.c:1314 -msgid ", set hash to " -msgstr "" - -#: src/cryptsetup_reencrypt.c:1315 -msgid ", set cipher to " -msgstr "" - -#: src/cryptsetup_reencrypt.c:1320 -msgid "Argument required." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 -#, fuzzy -msgid "Invalid device size specification." -msgstr "Ogiltig enhet %s.\n" - -#: src/cryptsetup_reencrypt.c:1363 -msgid "Maximum device reduce size is 64 MiB." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1366 -#, fuzzy -msgid "Reduce size must be multiple of 512 bytes sector." -msgstr "Nyckelstorlek måste vara en multipel av 8 bitar" - -#: src/cryptsetup_reencrypt.c:1370 -msgid "Option --new must be used together with --reduce-device-size." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "" - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "" - -#: src/utils_tools.c:151 -#, fuzzy -msgid "Error reading response from terminal.\n" -msgstr "Fel vid läsning av lösenfras från terminal.\n" - -#: src/utils_tools.c:173 -msgid "Command successful.\n" -msgstr "Kommandot lyckades.\n" - -#: src/utils_tools.c:191 -#, c-format -msgid "Command failed with code %i" -msgstr "Kommandot misslyckades med kod %i" - -#: src/utils_password.c:42 -#, c-format -msgid "Cannot check password quality: %s\n" -msgstr "" - -#: src/utils_password.c:50 -#, fuzzy, c-format -msgid "" -"Password quality check failed:\n" -" %s\n" -msgstr "setpriority %u misslyckades: %s" - -#~ msgid "Key slot %d verified.\n" -#~ msgstr "Nyckelplats %d har verifierats.\n" - -#~ msgid "Invalid key size %d.\n" -#~ msgstr "Ogiltig nyckelstorlek %d.\n" - -#~ msgid "Enter LUKS passphrase: " -#~ msgstr "Ange LUKS-lösenfras: " - -#~ msgid "" -#~ "Warning: exhausting read requested, but key file %s is not a regular " -#~ "file, function might never return.\n" -#~ msgstr "" -#~ "Varning: utförlig läsning begärd men nyckelfilen %s är inte en vanlig " -#~ "fil, funktionen kanske aldrig avslutas.\n" - -#~ msgid "exclusive " -#~ msgstr "exklusiv" - -#~ msgid "writable" -#~ msgstr "skrivbar" - -#~ msgid "read-only" -#~ msgstr "skrivskyddad" - -#~ msgid "Cannot open device: %s\n" -#~ msgstr "Kan inte öppna enheten: %s\n" - -#~ msgid "BLKROGET failed on device %s.\n" -#~ msgstr "BLKROGET misslyckades på enheten %s.\n" - -#~ msgid "BLKGETSIZE failed on device %s.\n" -#~ msgstr "BLKGETSIZE misslyckades på enheten %s.\n" - -#~ msgid "WARNING!!! Possibly insecure memory. Are you root?\n" -#~ msgstr "VARNING!!! Potentiellt osäkert minne. Är du root?\n" - -#~ msgid "Unable to obtain sector size for %s" -#~ msgstr "Kunde inte läsa av sektorstorlek för %s" - -#~ msgid "Failed to obtain device mapper directory." -#~ msgstr "Misslyckades med att läsa av katalog för enhetsmappning." - -#~ msgid "Backup file %s doesn't exist.\n" -#~ msgstr "Säkerhetskopian %s finns inte.\n" - -#~ msgid "%s is not LUKS device.\n" -#~ msgstr "%s är inte en LUKS-enhet.\n" - -#~ msgid "%s is not LUKS device." -#~ msgstr "%s är inte en LUKS-enhet." - -#~ msgid "Cannot open file %s.\n" -#~ msgstr "Kan inte öppna filen %s.\n" - -#~ msgid "Failed to write to key storage.\n" -#~ msgstr "Misslyckades med att skriva till nyckellagring.\n" - -#~ msgid "Failed to read from key storage.\n" -#~ msgstr "Misslyckades med att läsa från nyckellagring.\n" - -#~ msgid "remove LUKS mapping" -#~ msgstr "ta bort LUKS-mappning" - -#~ msgid "identical to luksKillSlot - DEPRECATED - see man page" -#~ msgstr "identisk med luksKillSlot - FÖRÅLDRAD - se manualsida" - -#~ msgid "modify active device - DEPRECATED - see man page" -#~ msgstr "ändra aktiv enhet - FÖRÅLDRAD - se manualsida" - -#~ msgid "" -#~ "The reload action is deprecated. Please use \"dmsetup reload\" in case " -#~ "you really need this functionality.\n" -#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, " -#~ "hit Ctrl-C now.\n" -#~ msgstr "" -#~ "Omläsningsåtgärden är föråldrad. Använd \"dmsetup reload\" om du " -#~ "verkligen behöver denna funktion.\n" -#~ "VARNING: använd inte omläsning för \"touch\" på LUKS-enheter. Om så är " -#~ "fallet, tryck Ctrl-C nu.\n" - -#~ msgid "Obsolete option --non-exclusive is ignored.\n" -#~ msgstr "Föråldrad flagga --non-exclusive ignoreras.\n" - -#~ msgid "Read the key from a file (can be /dev/random)" -#~ msgstr "Läs nyckeln från en fil (kan vara /dev/random)" - -#~ msgid "(Obsoleted, see man page.)" -#~ msgstr "(Föråldrad, se manualsida)" +msgid "%s: requires %s as arguments" +msgstr "%s: kräver %s som argument" diff --git a/po/uk.gmo b/po/uk.gmo deleted file mode 100644 index ea0d465..0000000 Binary files a/po/uk.gmo and /dev/null differ diff --git a/po/uk.po b/po/uk.po index bd0c8e2..d6744fe 100644 --- a/po/uk.po +++ b/po/uk.po @@ -2,13 +2,13 @@ # Copyright (C) 2012 Free Software Foundation, Inc. # This file is put in the public domain. # -# Yuri Chornoivan , 2012, 2013, 2014, 2015. +# Yuri Chornoivan , 2012, 2013. msgid "" msgstr "" -"Project-Id-Version: cryptsetup 1.6.7\n" +"Project-Id-Version: cryptsetup 1.6.2\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: 2015-03-19 12:33+0200\n" +"POT-Creation-Date: 2013-07-27 19:53+0200\n" +"PO-Revision-Date: 2013-07-28 22:37+0300\n" "Last-Translator: Yuri Chornoivan \n" "Language-Team: Ukrainian \n" "Language: uk\n" @@ -18,35 +18,26 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Lokalize 1.5\n" -#: lib/libdevmapper.c:252 +#: lib/libdevmapper.c:245 msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "" -"Не можна ініціалізувати device-mapper, якщо програму запущено не від імені " -"адміністратора (root).\n" +msgstr "Не можна ініціалізувати device-mapper, якщо програму запущено не від імені адміністратора (root).\n" -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:248 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" -msgstr "" -"Не вдалося ініціалізувати device-mapper. Чи завантажено модуль ядра dm_mod?\n" +msgstr "Не вдалося ініціалізувати device-mapper. Чи завантажено модуль ядра dm_mod?\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:536 #, c-format msgid "DM-UUID for device %s was truncated.\n" msgstr "DM-UUID для пристрою %s було обрізано.\n" -#: lib/libdevmapper.c:698 -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Підтримки вказаних параметрів швидкодії dmcrypt не передбачено.\n" - #: lib/random.c:76 msgid "" "System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" +"Please move mouse or type some text in another window to gather some random events.\n" msgstr "" "Під час створення ключа тому було вичерпано буфер ентропії системи.\n" -"Будь ласка, пересуньте вказівник миші або наберіть якийсь текст у іншому " -"вікні, щоб зібрати додаткові дані на основі випадкових подій.\n" +"Будь ласка, пересуньте вказівник миші або наберіть якийсь текст у іншому вікні, щоб зібрати додаткові дані на основі випадкових подій.\n" #: lib/random.c:80 #, c-format @@ -66,262 +57,258 @@ msgstr "Надійшов запит щодо невідомого RNG якост msgid "Error %d reading from RNG: %s\n" msgstr "Помилка %d під час читання з RNG: %s\n" -#: lib/setup.c:200 +#: lib/setup.c:190 msgid "Cannot initialize crypto RNG backend.\n" msgstr "Не вдалося ініціалізувати допоміжну програму шифрування RNG.\n" -#: lib/setup.c:206 +#: lib/setup.c:196 msgid "Cannot initialize crypto backend.\n" msgstr "Не вдалося ініціалізувати допоміжну програму шифрування.\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 +#: lib/setup.c:219 lib/setup.c:1110 lib/verity/verity.c:123 #, c-format msgid "Hash algorithm %s not supported.\n" msgstr "Підтримки алгоритму хешування %s не передбачено.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 +#: lib/setup.c:222 lib/loopaes/loopaes.c:90 #, c-format msgid "Key processing error (using hash %s).\n" msgstr "Помилка під час обробки ключа (на основі хешу %s).\n" -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" -"Не вдалося визначити тип пристрою. Несумісна дія з активації пристрою?\n" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Підтримку цієї дії передбачено лише для пристроїв LUKS.\n" - -#: lib/setup.c:320 +#: lib/setup.c:268 msgid "All key slots full.\n" msgstr "Заповнено всі слоти ключів.\n" -#: lib/setup.c:327 +#: lib/setup.c:275 #, c-format msgid "Key slot %d is invalid, please select between 0 and %d.\n" msgstr "Слот ключа %d є некоректним, будь ласка, виберіть число від 0 до %d.\n" -#: lib/setup.c:333 +#: lib/setup.c:281 #, c-format msgid "Key slot %d is full, please select another one.\n" msgstr "Слот ключа %d заповнено, будь ласка, виберіть інший.\n" -#: lib/setup.c:472 +#: lib/setup.c:390 #, c-format msgid "Enter passphrase for %s: " msgstr "Введіть пароль до %s: " -#: lib/setup.c:653 +#: lib/setup.c:571 #, c-format msgid "Header detected but device %s is too small.\n" msgstr "Виявлено заголовок, але об’єм пристрою %s є надто малим.\n" -#: lib/setup.c:669 lib/setup.c:1420 +#: lib/setup.c:587 lib/setup.c:1337 msgid "This operation is not supported for this device type.\n" msgstr "Підтримки цієї дії для цього типу пристроїв не передбачено.\n" -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:825 lib/setup.c:1298 lib/setup.c:2173 #, c-format msgid "Device %s is not active.\n" msgstr "Пристрій %s є неактивним.\n" -#: lib/setup.c:925 +#: lib/setup.c:842 #, c-format msgid "Underlying device for crypt device %s disappeared.\n" msgstr "Зник основний пристрій для пристрою для шифрування %s.\n" -#: lib/setup.c:994 +#: lib/setup.c:907 msgid "Invalid plain crypt parameters.\n" msgstr "Некоректні параметри звичайного шифрування.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:912 lib/setup.c:1037 msgid "Invalid key size.\n" msgstr "Некоректний розмір ключа.\n" -#: lib/setup.c:1004 lib/setup.c:1124 +#: lib/setup.c:917 lib/setup.c:1042 msgid "UUID is not supported for this crypt type.\n" msgstr "Підтримки UUID для цього типу шифрування не передбачено.\n" -#: lib/setup.c:1046 +#: lib/setup.c:959 msgid "Can't format LUKS without device.\n" msgstr "Форматування LUKS без пристрою неможливе.\n" -#: lib/setup.c:1089 +#: lib/setup.c:1007 #, c-format msgid "Cannot format device %s which is still in use.\n" msgstr "Не можна форматувати пристрій %s, який перебуває у користуванні.\n" -#: lib/setup.c:1092 +#: lib/setup.c:1010 #, c-format msgid "Cannot format device %s, permission denied.\n" msgstr "Не можна форматувати пристрій %s, недостатні права доступу.\n" -#: lib/setup.c:1096 +#: lib/setup.c:1014 #, c-format msgid "Cannot wipe header on device %s.\n" msgstr "Не можна витирати заголовок на пристрої %s.\n" -#: lib/setup.c:1114 +#: lib/setup.c:1032 msgid "Can't format LOOPAES without device.\n" msgstr "Не можна форматувати LOOPAES без пристрою.\n" -#: lib/setup.c:1152 +#: lib/setup.c:1070 msgid "Can't format VERITY without device.\n" msgstr "Форматування VERITY без пристрою неможливе.\n" -#: lib/setup.c:1160 lib/verity/verity.c:106 +#: lib/setup.c:1078 lib/verity/verity.c:106 #, c-format msgid "Unsupported VERITY hash type %d.\n" msgstr "Непідтримуваний тип хешування VERITY, %d.\n" -#: lib/setup.c:1166 lib/verity/verity.c:114 +#: lib/setup.c:1084 lib/verity/verity.c:114 msgid "Unsupported VERITY block size.\n" msgstr "Непідтримуваний розмір блоку VERITY.\n" -#: lib/setup.c:1171 lib/verity/verity.c:76 +#: lib/setup.c:1089 lib/verity/verity.c:76 msgid "Unsupported VERITY hash offset.\n" msgstr "Непідтримуваний відступ хешу VERITY.\n" -#: lib/setup.c:1285 +#: lib/setup.c:1201 #, c-format msgid "Unknown crypt device type %s requested.\n" msgstr "Надіслано запит щодо невідомого типу пристрою шифрування, %s.\n" -#: lib/setup.c:1435 +#: lib/setup.c:1352 msgid "Do you really want to change UUID of device?" msgstr "Ви справді хочете змінити UUID пристрою?" -#: lib/setup.c:1545 +#: lib/setup.c:1440 lib/setup.c:1485 lib/setup.c:1534 lib/setup.c:1600 +#: lib/setup.c:1673 lib/setup.c:1737 lib/setup.c:1818 lib/setup.c:1864 +#: lib/setup.c:2238 lib/setup.c:2532 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Підтримку цієї дії передбачено лише для пристроїв LUKS.\n" + +#: lib/setup.c:1447 #, c-format msgid "Volume %s is not active.\n" msgstr "Том %s не є активним.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1458 #, c-format msgid "Volume %s is already suspended.\n" msgstr "Том %s вже приспано.\n" -#: lib/setup.c:1563 +#: lib/setup.c:1465 #, c-format msgid "Suspend is not supported for device %s.\n" msgstr "Підтримки присипляння для пристрою %s не передбачено.\n" -#: lib/setup.c:1565 +#: lib/setup.c:1467 #, c-format msgid "Error during suspending device %s.\n" msgstr "Помилка під час спроби приспати пристрій %s.\n" -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1495 lib/setup.c:1544 #, c-format msgid "Volume %s is not suspended.\n" msgstr "Том %s не приспано.\n" -#: lib/setup.c:1605 +#: lib/setup.c:1509 #, c-format msgid "Resume is not supported for device %s.\n" msgstr "Підтримки дії з пробудження для пристрою %s не передбачено.\n" -#: lib/setup.c:1607 lib/setup.c:1659 +#: lib/setup.c:1511 lib/setup.c:1565 #, c-format msgid "Error during resuming device %s.\n" msgstr "Помилка під час спроби пробудити пристрій %s.\n" -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 +#: lib/setup.c:1551 lib/setup.c:1989 lib/setup.c:2003 src/cryptsetup.c:151 +#: src/cryptsetup.c:229 src/cryptsetup.c:316 src/cryptsetup.c:660 +#: src/cryptsetup.c:1076 msgid "Enter passphrase: " msgstr "Введіть пароль: " -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1614 lib/setup.c:1751 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"Не вдалося додати слот ключа, всі слоти вимкнено і не вказано ключа тому.\n" +msgstr "Не вдалося додати слот ключа, всі слоти вимкнено і не вказано ключа тому.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1623 lib/setup.c:1757 lib/setup.c:1761 msgid "Enter any passphrase: " msgstr "Введіть будь-який пароль: " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1640 lib/setup.c:1774 lib/setup.c:1778 lib/setup.c:1841 +#: src/cryptsetup.c:942 msgid "Enter new passphrase for key slot: " msgstr "Введіть новий пароль для слота ключа: " -#: lib/setup.c:1798 +#: lib/setup.c:1705 #, c-format msgid "Key slot %d changed.\n" msgstr "Слот ключа %d змінено.\n" -#: lib/setup.c:1801 +#: lib/setup.c:1708 #, c-format msgid "Replaced with key slot %d.\n" msgstr "Замінено слотом ключа %d.\n" -#: lib/setup.c:1806 +#: lib/setup.c:1713 msgid "Failed to swap new key slot.\n" msgstr "Не вдалося зарезервувати новий слот ключа.\n" -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1832 lib/setup.c:2093 lib/setup.c:2106 lib/setup.c:2249 msgid "Volume key does not match the volume.\n" msgstr "Ключ тому не відповідає тому.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1870 #, c-format msgid "Key slot %d is invalid.\n" msgstr "Слот ключа %d є некоректним.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1875 #, c-format msgid "Key slot %d is not used.\n" msgstr "Слот ключа %d не використовується.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1905 lib/setup.c:1977 lib/setup.c:2069 #, c-format msgid "Device %s already exists.\n" msgstr "Пристрій %s вже існує.\n" -#: lib/setup.c:2171 +#: lib/setup.c:2080 msgid "Incorrect volume key specified for plain device.\n" msgstr "Для пристрою зі звичайним шифруванням вказано помилковий ключ тому.\n" -#: lib/setup.c:2204 +#: lib/setup.c:2113 msgid "Incorrect root hash specified for verity device.\n" msgstr "Для пристрою перевірки вказано помилковий кореневий хеш.\n" -#: lib/setup.c:2227 +#: lib/setup.c:2136 msgid "Device type is not properly initialised.\n" msgstr "Тип пристрою не ініціалізовано належним чином.\n" -#: lib/setup.c:2259 +#: lib/setup.c:2168 #, c-format msgid "Device %s is still in use.\n" msgstr "Пристрій %s все ще використовується.\n" -#: lib/setup.c:2268 +#: lib/setup.c:2177 #, c-format msgid "Invalid device %s.\n" msgstr "Некоректний пристрій %s.\n" -#: lib/setup.c:2289 +#: lib/setup.c:2198 msgid "Function not available in FIPS mode.\n" msgstr "Ця функція недоступна у режимі FIPS.\n" -#: lib/setup.c:2295 +#: lib/setup.c:2204 msgid "Volume key buffer too small.\n" msgstr "Буфер ключів тому є занадто малим.\n" -#: lib/setup.c:2303 +#: lib/setup.c:2212 msgid "Cannot retrieve volume key for plain device.\n" msgstr "Неможливо отримати ключ тому для пристрою зі звичайним шифруванням.\n" -#: lib/setup.c:2310 +#: lib/setup.c:2219 #, c-format msgid "This operation is not supported for %s crypt device.\n" msgstr "Підтримки цієї дії для шифрованого пристрою %s не передбачено.\n" -#: lib/setup.c:2506 +#: lib/setup.c:2416 msgid "Dump operation is not supported for this device type.\n" -msgstr "" -"Підтримки дії зі створення дампу для цього типу пристроїв не передбачено.\n" +msgstr "Підтримки дії зі створення дампу для цього типу пристроїв не передбачено.\n" #: lib/utils.c:244 msgid "Cannot get process priority.\n" @@ -331,368 +318,325 @@ msgstr "Не вдалося отримати значення пріоритет msgid "Cannot unlock memory.\n" msgstr "Не вдалося розблокувати пам’ять.\n" -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 +#: lib/utils_crypt.c:227 lib/utils_crypt.c:240 lib/utils_crypt.c:387 +#: lib/utils_crypt.c:402 msgid "Out of memory while reading passphrase.\n" msgstr "Під час читання пароля вичерпано пам’ять.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils_crypt.c:232 lib/utils_crypt.c:247 msgid "Error reading passphrase from terminal.\n" msgstr "Помилка під час читання пароля з термінала.\n" -#: lib/utils_crypt.c:259 +#: lib/utils_crypt.c:245 msgid "Verify passphrase: " msgstr "Перевірка пароля: " -#: lib/utils_crypt.c:266 +#: lib/utils_crypt.c:252 msgid "Passphrases do not match.\n" msgstr "Паролі не збігаються.\n" -#: lib/utils_crypt.c:350 +#: lib/utils_crypt.c:336 msgid "Cannot use offset with terminal input.\n" msgstr "Не можна використовувати відступ у даних, що надходять з термінала.\n" -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 +#: lib/utils_crypt.c:355 lib/tcrypt/tcrypt.c:443 msgid "Failed to open key file.\n" msgstr "Не вдалося відкрити файл ключа.\n" -#: lib/utils_crypt.c:378 +#: lib/utils_crypt.c:364 msgid "Failed to stat key file.\n" msgstr "Не вдалося отримати статистичні дані щодо файла ключа.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 +#: lib/utils_crypt.c:372 lib/utils_crypt.c:393 msgid "Cannot seek to requested keyfile offset.\n" msgstr "Не вдалося встановити потрібну позицію у файлі ключа.\n" -#: lib/utils_crypt.c:424 +#: lib/utils_crypt.c:410 msgid "Error reading passphrase.\n" msgstr "Помилка під час читання пароля.\n" -#: lib/utils_crypt.c:442 +#: lib/utils_crypt.c:428 msgid "Maximum keyfile size exceeded.\n" msgstr "Перевищено максимальний розмір файла ключа.\n" -#: lib/utils_crypt.c:447 +#: lib/utils_crypt.c:433 msgid "Cannot read requested amount of data.\n" msgstr "Не вдалося прочитати бажаний об’єм даних.\n" -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/utils_fips.c:46 +msgid "FIPS checksum verification failed.\n" +msgstr "Контрольні суми FIPS не збігаються.\n" + +#: lib/utils_fips.c:50 +msgid "Running in FIPS mode.\n" +msgstr "Працюємо у режимі FIPS.\n" + +#: lib/utils_device.c:52 lib/luks1/keyencryption.c:82 #, c-format msgid "Device %s doesn't exist or access denied.\n" msgstr "Пристрою %s не існує або доступ до цього пристрою заборонено.\n" -#: lib/utils_device.c:430 +#: lib/utils_device.c:346 msgid "Cannot use a loopback device, running as non-root user.\n" -msgstr "" -"Не можна використовувати петльовий пристрій, програму запущено не від імені " -"адміністративного користувача (root).\n" +msgstr "Не можна використовувати петльовий пристрій, програму запущено не від імені адміністративного користувача (root).\n" -#: lib/utils_device.c:433 +#: lib/utils_device.c:349 msgid "Cannot find a free loopback device.\n" msgstr "Не вдалося знайти вільний петльовий пристрій.\n" -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" -"Спроба долучення петльового пристрою зазнала невдачі (потрібен петльовий " -"пристрій з встановленим прапорцем автоматичного спорожнення).\n" +#: lib/utils_device.c:356 +msgid "Attaching loopback device failed (loop device with autoclear flag is required).\n" +msgstr "Спроба долучення петльового пристрою зазнала невдачі (потрібен петльовий пристрій з встановленим прапорцем автоматичного спорожнення).\n" -#: lib/utils_device.c:484 +#: lib/utils_device.c:396 #, c-format msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" -"Не можна використовувати пристрій %s, оскільки його вже використано " -"(призначено або змонтовано).\n" +msgstr "Не можна використовувати пристрій %s, оскільки його вже використано (призначено або змонтовано).\n" -#: lib/utils_device.c:488 +#: lib/utils_device.c:400 #, c-format msgid "Cannot get info about device %s.\n" msgstr "Не вдалося отримати дані щодо пристрою %s.\n" -#: lib/utils_device.c:494 +#: lib/utils_device.c:406 #, c-format msgid "Requested offset is beyond real size of device %s.\n" msgstr "Бажана точка відступу перебуває за межами об’єму пристрою %s.\n" -#: lib/utils_device.c:502 +#: lib/utils_device.c:414 #, c-format msgid "Device %s has zero size.\n" msgstr "Об’єм пристрою %s є нульовим.\n" -#: lib/utils_device.c:513 +#: lib/utils_device.c:425 lib/luks1/keymanage.c:89 #, c-format msgid "Device %s is too small.\n" msgstr "Об’єм пристрою %s є надто малим.\n" -#: lib/luks1/keyencryption.c:37 +#: lib/luks1/keyencryption.c:31 #, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n" msgstr "" "Не вдалося визначити призначення ключа dm-crypt для пристрою %s.\n" -"Перевірте, чи передбачено у ядрі підтримку шифрування %s (докладніші дані " -"можна знайти у журналі системи (syslog)).\n" +"Перевірте, чи передбачено у ядрі підтримку шифрування %s (докладніші дані можна знайти у журналі системи (syslog)).\n" -#: lib/luks1/keyencryption.c:42 +#: lib/luks1/keyencryption.c:36 msgid "Key size in XTS mode must be 256 or 512 bits.\n" msgstr "Розмір ключа у режимі XTS має бути рівним 256 або 512 бітів.\n" -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 +#: lib/luks1/keyencryption.c:88 lib/luks1/keymanage.c:290 +#: lib/luks1/keymanage.c:559 lib/luks1/keymanage.c:978 #, c-format msgid "Cannot write to device %s, permission denied.\n" msgstr "Не вдалося виконати запис на пристрій %s, недостатні права доступу.\n" -#: lib/luks1/keyencryption.c:111 +#: lib/luks1/keyencryption.c:103 msgid "Failed to open temporary keystore device.\n" msgstr "Не вдалося відкрити пристрій тимчасового сховища ключів.\n" -#: lib/luks1/keyencryption.c:118 +#: lib/luks1/keyencryption.c:110 msgid "Failed to access temporary keystore device.\n" msgstr "Не вдалося отримати доступ до пристрою тимчасового сховища ключів.\n" -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "Помилка введення-виведення під час шифрування слоту ключів.\n" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "Помилка введення-виведення під час розшифрування слоту ключів.\n" - -#: lib/luks1/keymanage.c:90 -#, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "" -"Обсяг пристрою %s є надто малим. (LUKS потрібно принаймні % " -"байтів.)\n" - -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 +#: lib/luks1/keymanage.c:175 lib/luks1/keymanage.c:412 +#: src/cryptsetup_reencrypt.c:978 #, c-format msgid "Device %s is not a valid LUKS device.\n" msgstr "Пристрій %s не є коректним пристроєм LUKS.\n" -#: lib/luks1/keymanage.c:198 +#: lib/luks1/keymanage.c:193 #, c-format msgid "Requested header backup file %s already exists.\n" msgstr "Потрібний вам файл резервної копії заголовка, %s, вже існує.\n" -#: lib/luks1/keymanage.c:200 +#: lib/luks1/keymanage.c:195 #, c-format msgid "Cannot create header backup file %s.\n" msgstr "Не вдалося створити файл резервної копії заголовка, %s.\n" -#: lib/luks1/keymanage.c:205 +#: lib/luks1/keymanage.c:200 #, c-format msgid "Cannot write header backup file %s.\n" msgstr "Не вдалося записати файл резервної копії заголовка, %s.\n" -#: lib/luks1/keymanage.c:239 +#: lib/luks1/keymanage.c:233 msgid "Backup file doesn't contain valid LUKS header.\n" msgstr "Файл резервної копії не містить коректного заголовка LUKS.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: lib/luks1/keymanage.c:246 lib/luks1/keymanage.c:483 #, c-format msgid "Cannot open header backup file %s.\n" msgstr "Не вдалося відкрити файл резервної копії заголовка, %s.\n" -#: lib/luks1/keymanage.c:258 +#: lib/luks1/keymanage.c:252 #, c-format msgid "Cannot read header backup file %s.\n" msgstr "Не вдалося прочитати дані з файла резервної копії заголовка, %s.\n" -#: lib/luks1/keymanage.c:269 +#: lib/luks1/keymanage.c:263 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"Відступ у даних або розмір ключа на пристрої і у резервній копії є різними. " -"Відновлення неможливе.\n" +msgstr "Відступ у даних або розмір ключа на пристрої і у резервній копії є різними. Відновлення неможливе.\n" -#: lib/luks1/keymanage.c:277 +#: lib/luks1/keymanage.c:271 #, c-format msgid "Device %s %s%s" msgstr "Пристрій %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"не містить заголовка LUKS. Заміна заголовка може зруйнувати дані, що " -"зберігаються на пристрої." +#: lib/luks1/keymanage.c:272 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "не містить заголовка LUKS. Заміна заголовка може зруйнувати дані, що зберігаються на пристрої." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"вже містить заголовок LUKS. Заміна заголовка призведе до руйнування вже " -"створених слотів ключів." +#: lib/luks1/keymanage.c:273 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "вже містить заголовок LUKS. Заміна заголовка призведе до руйнування вже створених слотів ключів." -#: lib/luks1/keymanage.c:280 +#: lib/luks1/keymanage.c:274 msgid "" "\n" "WARNING: real device header has different UUID than backup!" msgstr "" "\n" -"ПОПЕРЕДЖЕННЯ: заголовок, що зберігається на пристрої, має інший UUID, ніж " -"заголовок у резервній копії!" +"ПОПЕРЕДЖЕННЯ: заголовок, що зберігається на пристрої, має інший UUID, ніж заголовок у резервній копії!" -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 +#: lib/luks1/keymanage.c:293 lib/luks1/keymanage.c:522 +#: lib/luks1/keymanage.c:562 lib/tcrypt/tcrypt.c:581 lib/verity/verity.c:82 #: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 #: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 #, c-format msgid "Cannot open device %s.\n" msgstr "Не вдалося відкрити пристрій %s.\n" -#: lib/luks1/keymanage.c:329 +#: lib/luks1/keymanage.c:323 msgid "Non standard key size, manual repair required.\n" msgstr "Нестандартний розмір ключа, слід виправити дані вручну.\n" -#: lib/luks1/keymanage.c:334 +#: lib/luks1/keymanage.c:328 msgid "Non standard keyslots alignment, manual repair required.\n" msgstr "Нестандартне вирівнювання слотів ключів, слід виправити дані вручну.\n" -#: lib/luks1/keymanage.c:340 +#: lib/luks1/keymanage.c:334 msgid "Repairing keyslots.\n" msgstr "Виправлення слотів ключів.\n" -#: lib/luks1/keymanage.c:351 +#: lib/luks1/keymanage.c:345 msgid "Repair failed." msgstr "Спроба виправлення зазнала невдачі." -#: lib/luks1/keymanage.c:363 +#: lib/luks1/keymanage.c:357 #, c-format msgid "Keyslot %i: offset repaired (%u -> %u).\n" msgstr "Слот ключа %i: виправлено відступ (%u -> %u).\n" -#: lib/luks1/keymanage.c:371 +#: lib/luks1/keymanage.c:365 #, c-format msgid "Keyslot %i: stripes repaired (%u -> %u).\n" msgstr "Слот ключа %i: виправлено смужки (%u -> %u).\n" -#: lib/luks1/keymanage.c:380 +#: lib/luks1/keymanage.c:374 #, c-format msgid "Keyslot %i: bogus partition signature.\n" msgstr "Слот ключа %i: зайвий підпис розділу.\n" -#: lib/luks1/keymanage.c:385 +#: lib/luks1/keymanage.c:379 #, c-format msgid "Keyslot %i: salt wiped.\n" msgstr "Слот ключа %i: дані ініціалізації (сіль) витерто.\n" -#: lib/luks1/keymanage.c:396 +#: lib/luks1/keymanage.c:390 msgid "Writing LUKS header to disk.\n" msgstr "Запис заголовка LUKS на диск.\n" -#: lib/luks1/keymanage.c:421 +#: lib/luks1/keymanage.c:415 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "Непідтримувана версія LUKS, %d.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: lib/luks1/keymanage.c:421 lib/luks1/keymanage.c:626 #, c-format msgid "Requested LUKS hash %s is not supported.\n" msgstr "Підтримки бажаного хешування LUKS, %s, не передбачено.\n" -#: lib/luks1/keymanage.c:442 +#: lib/luks1/keymanage.c:436 #, c-format msgid "LUKS keyslot %u is invalid.\n" msgstr "Слот ключа LUKS %u є некоректним.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 +#: lib/luks1/keymanage.c:450 src/cryptsetup.c:596 msgid "No known problems detected for LUKS header.\n" msgstr "У заголовку LUKS не виявлено жодних проблем.\n" -#: lib/luks1/keymanage.c:596 +#: lib/luks1/keymanage.c:583 #, c-format msgid "Error during update of LUKS header on device %s.\n" msgstr "Помилка під час оновлення заголовка LUKS на пристрої %s.\n" -#: lib/luks1/keymanage.c:603 +#: lib/luks1/keymanage.c:590 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" -"Помилка під час спроби повторного читання заголовка LUKS після оновлення на " -"пристрої %s.\n" +msgstr "Помилка під час спроби повторного читання заголовка LUKS після оновлення на пристрої %s.\n" -#: lib/luks1/keymanage.c:654 +#: lib/luks1/keymanage.c:619 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" -"Відступ даних для від’єднаного заголовка LUKS має бути або рівним нулеві, " -"або перевищувати розмір заголовка (%d секторів).\n" +msgid "Data offset for detached LUKS header must be either 0 or higher than header size (%d sectors).\n" +msgstr "Відступ даних для від’єднаного заголовка LUKS має бути або рівним нулеві, або перевищувати розмір заголовка (%d секторів).\n" -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 +#: lib/luks1/keymanage.c:631 lib/luks1/keymanage.c:718 msgid "Wrong LUKS UUID format provided.\n" msgstr "Вказано UUID LUKS у помилковому форматі.\n" -#: lib/luks1/keymanage.c:695 +#: lib/luks1/keymanage.c:656 msgid "Cannot create LUKS header: reading random salt failed.\n" -msgstr "" -"Не вдалося створити заголовок LUKS: помилка читання випадкових даних для " -"ініціалізації.\n" +msgstr "Не вдалося створити заголовок LUKS: помилка читання випадкових даних для ініціалізації.\n" -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 +#: lib/luks1/keymanage.c:663 lib/luks1/keymanage.c:759 #, c-format msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" msgstr "Несумісні параметри PBKDF2 (з використанням алгоритму хешування %s).\n" -#: lib/luks1/keymanage.c:717 +#: lib/luks1/keymanage.c:678 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"Не вдалося створити заголовок LUKS: помилка під час обчислення контрольної " -"суми заголовка (з використанням хешу %s).\n" +msgstr "Не вдалося створити заголовок LUKS: помилка під час обчислення контрольної суми заголовка (з використанням хешу %s).\n" -#: lib/luks1/keymanage.c:782 +#: lib/luks1/keymanage.c:743 #, c-format msgid "Key slot %d active, purge first.\n" msgstr "Слот ключа %d є активним. Його слід спочатку спорожнити.\n" -#: lib/luks1/keymanage.c:788 +#: lib/luks1/keymanage.c:749 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" -"Ентропія даних слота ключа %d є надто низькою. Маніпуляції з заголовком?\n" +msgstr "Ентропія даних слота ключа %d є надто низькою. Маніпуляції з заголовком?\n" -#: lib/luks1/keymanage.c:950 +#: lib/luks1/keymanage.c:911 #, c-format msgid "Key slot %d unlocked.\n" msgstr "Слот ключа %d розблоковано.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: lib/luks1/keymanage.c:946 src/cryptsetup.c:796 +#: src/cryptsetup_reencrypt.c:882 src/cryptsetup_reencrypt.c:916 msgid "No key available with this passphrase.\n" msgstr "Для цього пароля немає відповідного ключа.\n" -#: lib/luks1/keymanage.c:1003 +#: lib/luks1/keymanage.c:964 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" -msgstr "" -"Слот ключа %d є некоректним, будь ласка, виберіть слот ключа з номером від 0 " -"до %d.\n" +msgstr "Слот ключа %d є некоректним, будь ласка, виберіть слот ключа з номером від 0 до %d.\n" -#: lib/luks1/keymanage.c:1021 +#: lib/luks1/keymanage.c:982 #, c-format msgid "Cannot wipe device %s.\n" msgstr "Не вдалося витерти пристрій %s.\n" #: lib/loopaes/loopaes.c:146 msgid "Detected not yet supported GPG encrypted keyfile.\n" -msgstr "" -"Виявлено файл ключа, підтримки шифрування GPG у якому ще не передбачено.\n" +msgstr "Виявлено файл ключа, підтримки шифрування GPG у якому ще не передбачено.\n" #: lib/loopaes/loopaes.c:147 msgid "Please use gpg --decrypt | cryptsetup --keyfile=- ...\n" -msgstr "" -"Будь ласка, скористайтеся командою gpg --decrypt <ФАЙЛ_КЛЮЧА> | cryptsetup --" -"keyfile=- ...\n" +msgstr "Будь ласка, скористайтеся командою gpg --decrypt <ФАЙЛ_КЛЮЧА> | cryptsetup --keyfile=- ...\n" #: lib/loopaes/loopaes.c:168 lib/loopaes/loopaes.c:188 msgid "Incompatible loop-AES keyfile detected.\n" @@ -702,57 +646,59 @@ msgstr "Виявлено несумісний з loop-AES файл ключа.\n msgid "Kernel doesn't support loop-AES compatible mapping.\n" msgstr "У ядрі не передбачено підтримки призначення, сумісного з loop-AES.\n" -#: lib/tcrypt/tcrypt.c:475 +#: lib/tcrypt/tcrypt.c:451 #, c-format msgid "Error reading keyfile %s.\n" msgstr "Помилка під час спроби читання файла ключа %s.\n" -#: lib/tcrypt/tcrypt.c:513 +#: lib/tcrypt/tcrypt.c:489 #, c-format msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" msgstr "Перевищено максимальну можливу довжину пароля TCRYPT (%d).\n" -#: lib/tcrypt/tcrypt.c:543 +#: lib/tcrypt/tcrypt.c:518 #, c-format msgid "PBKDF2 hash algorithm %s not available, skipping.\n" -msgstr "" -"Засіб створення хешів PBKDF2 за алгоритмом %s недоступний, пропускаємо.\n" +msgstr "Засіб створення хешів PBKDF2 за алгоритмом %s недоступний, пропускаємо.\n" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 +#: lib/tcrypt/tcrypt.c:536 src/cryptsetup.c:549 msgid "Required kernel crypto interface not available.\n" msgstr "Потрібний для роботи інтерфейс ядра для шифрування недоступний.\n" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 +#: lib/tcrypt/tcrypt.c:538 src/cryptsetup.c:551 msgid "Ensure you have algif_skcipher kernel module loaded.\n" msgstr "Переконайтеся, що завантажено модуль ядра algif_skcipher.\n" -#: lib/tcrypt/tcrypt.c:707 +#: lib/tcrypt/tcrypt.c:591 +#, c-format +msgid "WARNING: device %s is a partition, for TCRYPT system encryption you usually need to use whole block device path.\n" +msgstr "Попередження: пристрій %s є розділом; для шифрування системи за допомогою TCRYPT, зазвичай, вам слід використовувати шлях до цілого блокового пристрою.\n" + +#: lib/tcrypt/tcrypt.c:667 #, c-format msgid "Activation is not supported for %d sector size.\n" msgstr "Підтримки активації для розміру сектора %d не передбачено.\n" -#: lib/tcrypt/tcrypt.c:713 +#: lib/tcrypt/tcrypt.c:673 msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" -msgstr "" -"У ядрі не передбачено підтримки вмикання цього застарілого режиму TCRYPT.\n" +msgstr "У ядрі не передбачено підтримки вмикання цього застарілого режиму TCRYPT.\n" -#: lib/tcrypt/tcrypt.c:744 +#: lib/tcrypt/tcrypt.c:701 #, c-format msgid "Activating TCRYPT system encryption for partition %s.\n" msgstr "Активуємо шифрування системи за допомогою TCRYPT для розділу %s.\n" -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "У ядрі не передбачено підтримки призначення, сумісного з TCRYPT.\n" +#: lib/tcrypt/tcrypt.c:756 +msgid "Kernel doesn't support plain64 IV.\n" +msgstr "У ядрі не передбачено підтримки plain64 IV.\n" -#: lib/tcrypt/tcrypt.c:1020 +#: lib/tcrypt/tcrypt.c:961 msgid "This function is not supported without TCRYPT header load." msgstr "Підтримки цієї дії без завантаження заголовка TCRYPT." #: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "На пристрої VERITY %s не використовується вбудований заголовок.\n" +msgid "Verity device doesn't use on-disk header.\n" +msgstr "На пристрої перевірки не використовується вбудований заголовок.\n" #: lib/verity/verity.c:94 #, c-format @@ -769,9 +715,8 @@ msgid "VERITY header corrupted.\n" msgstr "Пошкоджено заголовок VERITY.\n" #: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "На пристрої %s вказано UUID VERITY у помилковому форматі.\n" +msgid "Wrong VERITY UUID format provided.\n" +msgstr "Вказано UUID VERITY у помилковому форматі.\n" #: lib/verity/verity.c:196 #, c-format @@ -819,9 +764,7 @@ msgstr "Не вдалося перевірити кореневий хеш.\n" #: lib/verity/verity_hash.c:365 msgid "Input/output error while creating hash area.\n" -msgstr "" -"Під час створення області хешу сталася помилка введення або виведення " -"даних.\n" +msgstr "Під час створення області хешу сталася помилка введення або виведення даних.\n" #: lib/verity/verity_hash.c:367 msgid "Creation of hash area failed.\n" @@ -829,49 +772,31 @@ msgstr "Не вдалося створити область хешу.\n" #: lib/verity/verity_hash.c:414 #, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" -"Попередження: ядро не зможе задіяти пристрій, якщо розмір блоку " -"перевищуватиме розмір сторінки (%u).\n" +msgid "WARNING: Kernel cannot activate device if data block size exceeds page size (%u).\n" +msgstr "Попередження: ядро не зможе задіяти пристрій, якщо розмір блоку перевищуватиме розмір сторінки (%u).\n" -#: src/cryptsetup.c:91 +#: src/cryptsetup.c:79 msgid "Can't do passphrase verification on non-tty inputs.\n" -msgstr "" -"Перевірку паролів не можна виконувати на основі вхідних даних, які надходять " -"не з tty.\n" +msgstr "Перевірку паролів не можна виконувати на основі вхідних даних, які надходять не з tty.\n" + +#: src/cryptsetup.c:110 +msgid "Ignoring keyfile offset and size options, keyfile read size is always the same as encryption key size.\n" +msgstr "Ігноруємо параметри відступу та розміру файла ключа. Об’єм читання з файла ключа завжди дорівнює розміру ключа шифрування.\n" -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 +#: src/cryptsetup.c:116 src/cryptsetup.c:495 src/cryptsetup.c:639 +#: src/cryptsetup_reencrypt.c:485 src/cryptsetup_reencrypt.c:520 msgid "No known cipher specification pattern detected.\n" msgstr "Не виявлено жодного відомого зразка специфікації шифрування.\n" -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" -"Попередження: параметр --hash у простому режимі із вказаним файлом ключа " -"ігнорується.\n" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" -"Попередження: параметр --keyfile-size проігноровано, розмір прочитаних даних " -"збігається із розміром ключа шифрування.\n" - -#: src/cryptsetup.c:218 +#: src/cryptsetup.c:183 msgid "Option --key-file is required.\n" msgstr "Слід вказати параметр --key-file.\n" -#: src/cryptsetup.c:267 +#: src/cryptsetup.c:254 src/cryptsetup.c:340 msgid "No device header detected with this passphrase.\n" msgstr "Для цього пароля не виявлено заголовка пристрою.\n" -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 +#: src/cryptsetup.c:269 src/cryptsetup.c:1065 msgid "" "Header dump with volume key is sensitive information\n" "which allows access to encrypted partition without passphrase.\n" @@ -882,242 +807,210 @@ msgstr "" "без пароля. Цей дамп слід зберігати у зашифрованому форматі\n" "у безпечному місці." -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "Результат тестування є ненадійним.\n" - -#: src/cryptsetup.c:558 +#: src/cryptsetup.c:489 msgid "# Tests are approximate using memory only (no storage IO).\n" -msgstr "" -"# Наближені значення під час перевірки визначаються лише за допомогою " -"оперативної пам’яті (без запису на диск).\n" +msgstr "# Наближені значення під час перевірки визначаються лише за допомогою оперативної пам’яті (без запису на диск).\n" -#: src/cryptsetup.c:583 src/cryptsetup.c:605 +#: src/cryptsetup.c:511 src/cryptsetup.c:533 msgid "# Algorithm | Key | Encryption | Decryption\n" msgstr "№ Алгоритм | Ключ | Шифрування | Розшифрування\n" -#: src/cryptsetup.c:587 +#: src/cryptsetup.c:515 #, c-format msgid "Cipher %s is not available.\n" msgstr "Шифрування %s є недоступним.\n" -#: src/cryptsetup.c:614 +#: src/cryptsetup.c:542 msgid "N/A" msgstr "н/д" -#: src/cryptsetup.c:639 +#: src/cryptsetup.c:567 #, c-format msgid "Cannot read keyfile %s.\n" msgstr "Не вдалося прочитати файл ключа %s.\n" -#: src/cryptsetup.c:643 +#: src/cryptsetup.c:571 #, c-format msgid "Cannot read %d bytes from keyfile %s.\n" msgstr "Не вдалося прочитати %d байтів з файла ключа %s.\n" -#: src/cryptsetup.c:672 +#: src/cryptsetup.c:600 msgid "Really try to repair LUKS device header?" msgstr "Спробувати відновити заголовок пристрою LUKS?" -#: src/cryptsetup.c:697 +#: src/cryptsetup.c:625 #, c-format msgid "This will overwrite data on %s irrevocably." msgstr "Дані на %s буде перезаписано без можливості відновлення." -#: src/cryptsetup.c:699 +#: src/cryptsetup.c:627 msgid "memory allocation error in action_luksFormat" msgstr "помилка під час отримання області пам’яті у action_luksFormat" -#: src/cryptsetup.c:717 +#: src/cryptsetup.c:645 #, c-format msgid "Cannot use %s as on-disk header.\n" msgstr "Не можна використовувати %s як заголовок на диску.\n" -#: src/cryptsetup.c:784 +#: src/cryptsetup.c:718 msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" -"Зменшений відступ даних можна використовувати лише для від’єднаних " -"заголовків LUKS.\n" +msgstr "Зменшений відступ даних можна використовувати лише для від’єднаних заголовків LUKS.\n" -#: src/cryptsetup.c:881 src/cryptsetup.c:937 +#: src/cryptsetup.c:819 src/cryptsetup.c:875 #, c-format msgid "Key slot %d selected for deletion.\n" msgstr "Слот ключа %d позначено для вилучення.\n" -#: src/cryptsetup.c:884 +#: src/cryptsetup.c:822 #, c-format msgid "Key %d not active. Can't wipe.\n" msgstr "Ключ %d не є активним. Його не можна витерти.\n" -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"Це останній слот ключа. Пристрій стане непридатним для використання після " -"спорожнення цього ключа." +#: src/cryptsetup.c:830 src/cryptsetup.c:878 +msgid "This is the last keyslot. Device will become unusable after purging this key." +msgstr "Це останній слот ключа. Пристрій стане непридатним для використання після спорожнення цього ключа." -#: src/cryptsetup.c:893 +#: src/cryptsetup.c:831 msgid "Enter any remaining passphrase: " msgstr "Введіть будь-який інший пароль: " -#: src/cryptsetup.c:921 +#: src/cryptsetup.c:859 msgid "Enter passphrase to be deleted: " msgstr "Введіть пароль, який слід вилучити: " -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format +#: src/cryptsetup.c:928 src/cryptsetup_reencrypt.c:948 msgid "Enter any existing passphrase: " msgstr "Введіть будь-який пароль: " -#: src/cryptsetup.c:1052 +#: src/cryptsetup.c:977 msgid "Enter passphrase to be changed: " msgstr "Введіть пароль, який слід змінити: " -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 +#: src/cryptsetup.c:991 src/cryptsetup_reencrypt.c:934 msgid "Enter new passphrase: " msgstr "Введіть новий пароль: " -#: src/cryptsetup.c:1090 +#: src/cryptsetup.c:1015 msgid "Only one device argument for isLuks operation is supported.\n" -msgstr "" -"У команді isLuks можна використовувати лише один аргумент назви пристрою.\n" +msgstr "У команді isLuks можна використовувати лише один аргумент назви пристрою.\n" -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 +#: src/cryptsetup.c:1171 src/cryptsetup.c:1192 msgid "Option --header-backup-file is required.\n" msgstr "Слід вказати параметр --header-backup-file.\n" -#: src/cryptsetup.c:1304 +#: src/cryptsetup.c:1229 #, c-format msgid "Unrecognized metadata device type %s.\n" msgstr "Нерозпізнаний тип пристрою метаданих, %s.\n" -#: src/cryptsetup.c:1307 +#: src/cryptsetup.c:1232 msgid "Command requires device and mapped name as arguments.\n" -msgstr "" -"Аргументами команди мають бути назва пристрою та призначена до нього назва.\n" +msgstr "Аргументами команди мають бути назва пристрою та призначена до нього назва.\n" -#: src/cryptsetup.c:1326 -#, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"У результаті виконання цієї операції буде витерто усі слоти ключів на " -"пристрої %s.\n" -"Після виконання цієї дії пристроєм не можна буде скористатися." - -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid " [--type ] []" msgstr "<пристрій> [--type <тип>] [<назва>]" -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid "open device as mapping " msgstr "відкрити пристрій як призначення <назва>" -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 +#: src/cryptsetup.c:1245 src/cryptsetup.c:1246 src/cryptsetup.c:1247 +#: src/cryptsetup.c:1248 src/veritysetup.c:310 src/veritysetup.c:311 msgid "" msgstr "<назва>" -#: src/cryptsetup.c:1361 +#: src/cryptsetup.c:1245 msgid "close device (remove mapping)" msgstr "закрити пристрій (вилучити призначення)" -#: src/cryptsetup.c:1362 +#: src/cryptsetup.c:1246 msgid "resize active device" msgstr "змінити розмір активного пристрою" -#: src/cryptsetup.c:1363 +#: src/cryptsetup.c:1247 msgid "show device status" msgstr "показати стан пристрою" -#: src/cryptsetup.c:1364 +#: src/cryptsetup.c:1248 msgid "benchmark cipher" msgstr "перевірити швидкодію шифрування" -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1249 src/cryptsetup.c:1255 src/cryptsetup.c:1256 +#: src/cryptsetup.c:1257 src/cryptsetup.c:1258 src/cryptsetup.c:1259 +#: src/cryptsetup.c:1260 src/cryptsetup.c:1261 src/cryptsetup.c:1262 msgid "" msgstr "<пристрій>" -#: src/cryptsetup.c:1365 +#: src/cryptsetup.c:1249 msgid "try to repair on-disk metadata" msgstr "спробувати виправити метадані на диску" -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "витерти усі слоти ключів (вилучити ключ шифрування)" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 +#: src/cryptsetup.c:1250 src/cryptsetup.c:1251 msgid " []" msgstr "<пристрій> [<новий файл ключа>]" -#: src/cryptsetup.c:1367 +#: src/cryptsetup.c:1250 msgid "formats a LUKS device" msgstr "форматує пристрій LUKS" -#: src/cryptsetup.c:1368 +#: src/cryptsetup.c:1251 msgid "add key to LUKS device" msgstr "додати ключ до пристрою LUKS" -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 +#: src/cryptsetup.c:1252 src/cryptsetup.c:1253 msgid " []" msgstr "<пристрій> [<файл ключа>]" -#: src/cryptsetup.c:1369 +#: src/cryptsetup.c:1252 msgid "removes supplied key or key file from LUKS device" msgstr "вилучає наданий ключ або файл ключа з пристрою LUKS" -#: src/cryptsetup.c:1370 +#: src/cryptsetup.c:1253 msgid "changes supplied key or key file of LUKS device" msgstr "змінює наданий ключ або файл ключа пристрою LUKS" -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid " " msgstr "<пристрій> <слот ключа>" -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid "wipes key with number from LUKS device" msgstr "вилучає ключ з номером <слот ключа> з пристрою LUKS" -#: src/cryptsetup.c:1372 +#: src/cryptsetup.c:1255 msgid "print UUID of LUKS device" msgstr "вивести UUID пристрою LUKS" -#: src/cryptsetup.c:1373 +#: src/cryptsetup.c:1256 msgid "tests for LUKS partition header" -msgstr "" -"виконати спробу виявлення заголовка розділу LUKS на пристрої <пристрій>" +msgstr "виконати спробу виявлення заголовка розділу LUKS на пристрої <пристрій>" -#: src/cryptsetup.c:1374 +#: src/cryptsetup.c:1257 msgid "dump LUKS partition information" msgstr "створити дамп даних щодо розділу LUKS" -#: src/cryptsetup.c:1375 +#: src/cryptsetup.c:1258 msgid "dump TCRYPT device information" msgstr "створити дамп даних пристрою TCRYPT" -#: src/cryptsetup.c:1376 +#: src/cryptsetup.c:1259 msgid "Suspend LUKS device and wipe key (all IOs are frozen)." -msgstr "" -"Приспати пристрій LUKS і витерти ключ (роботу всіх каналів введення-" -"виведення буде заморожено)." +msgstr "Приспати пристрій LUKS і витерти ключ (роботу всіх каналів введення-виведення буде заморожено)." -#: src/cryptsetup.c:1377 +#: src/cryptsetup.c:1260 msgid "Resume suspended LUKS device." msgstr "Відновити роботу приспаного пристрою LUKS." -#: src/cryptsetup.c:1378 +#: src/cryptsetup.c:1261 msgid "Backup LUKS device header and keyslots" msgstr "Створити резервну копію заголовка пристрою LUKS і слотів ключів" -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1262 msgid "Restore LUKS device header and keyslots" msgstr "Відновити заголовок пристрою LUKS і слоти ключів" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:1279 src/veritysetup.c:327 msgid "" "\n" " is one of:\n" @@ -1125,7 +1018,7 @@ msgstr "" "\n" "<дія> є однією з таких:\n" -#: src/cryptsetup.c:1402 +#: src/cryptsetup.c:1285 msgid "" "\n" "You can also use old syntax aliases:\n" @@ -1138,7 +1031,7 @@ msgstr "" "\tвідкрити: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" "\tзакрити: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:1289 #, c-format msgid "" "\n" @@ -1151,25 +1044,22 @@ msgstr "" "<назва> — пристрій для створення у %s\n" "<пристрій> — зашифрований пристрій\n" "<слот ключа> — номер слота ключа LUKS, який слід змінити\n" -"<файл ключа> — необов’язковий файл ключа для нового ключа для дії " -"luksAddKey\n" +"<файл ключа> — необов’язковий файл ключа для нового ключа для дії luksAddKey\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:1296 #, c-format msgid "" "\n" "Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" +"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d (characters)\n" "Default PBKDF2 iteration time for LUKS: %d (ms)\n" msgstr "" "\n" "Типові вбудовані параметри ключа і пароля:\n" -"\tМаксимальний розмір файла ключа: %d кБ, максимальна довжина інтерактивного " -"пароля: %d (символів)\n" +"\tМаксимальний розмір файла ключа: %d кБ, максимальна довжина інтерактивного пароля: %d (символів)\n" "Типовий час ітерації PBKDF2 для LUKS: %d мс\n" -#: src/cryptsetup.c:1420 +#: src/cryptsetup.c:1303 #, c-format msgid "" "\n" @@ -1184,379 +1074,323 @@ msgstr "" "\tзвичайне: %s, ключ: %d-бітовий, хешування пароля: %s\n" "\tLUKS1: %s, ключ: %d-бітовий, хешування заголовка LUKS: %s, RNG: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 +#: src/cryptsetup.c:1320 src/veritysetup.c:459 #, c-format msgid "%s: requires %s as arguments" msgstr "%s: слід вказати у параметрах %s" -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:1353 src/veritysetup.c:367 src/cryptsetup_reencrypt.c:1099 msgid "Show this help message" msgstr "Показати цю довідку" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:1354 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1100 msgid "Display brief usage" msgstr "Показати короткі настанови щодо користування" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:1358 src/veritysetup.c:372 src/cryptsetup_reencrypt.c:1104 msgid "Help options:" msgstr "Пункти довідки:" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 +#: src/cryptsetup.c:1359 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1105 msgid "Print package version" msgstr "Вивести дані щодо версії пакунка" -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:1360 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1106 msgid "Shows more detailed error messages" msgstr "Показувати докладні повідомлення про помилки" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:1361 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1107 msgid "Show debug messages" msgstr "Показувати повідомлення зневадження" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:1362 src/cryptsetup_reencrypt.c:1109 msgid "The cipher used to encrypt the disk (see /proc/crypto)" msgstr "Шифр, який використано для шифрування даних диска (див. /proc/crypto)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:1363 src/cryptsetup_reencrypt.c:1111 msgid "The hash used to create the encryption key from the passphrase" msgstr "Хеш, використаний для створення ключа шифрування на основі пароля" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:1364 msgid "Verifies the passphrase by asking for it twice" msgstr "Перевіряє пароль повторним запитом щодо нього" -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 +#: src/cryptsetup.c:1365 src/cryptsetup_reencrypt.c:1112 msgid "Read the key from a file." msgstr "Прочитати ключ з файла." -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:1366 msgid "Read the volume (master) key from file." msgstr "Прочитати ключ тому (основний ключ) з файла." -#: src/cryptsetup.c:1484 +#: src/cryptsetup.c:1367 msgid "Dump volume (master) key instead of keyslots info." -msgstr "" -"Створити дамп ключа тому (основного ключа) замість показу даних щодо слотів " -"ключів." +msgstr "Створити дамп ключа тому (основного ключа) замість показу даних щодо слотів ключів." -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "The size of the encryption key" msgstr "Розмір ключа шифрування" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "BITS" msgstr "БІТИ" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 +#: src/cryptsetup.c:1369 src/cryptsetup_reencrypt.c:1123 msgid "Limits the read from keyfile" msgstr "Обмежує читання з файла ключа" -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 src/cryptsetup.c:1371 +#: src/cryptsetup.c:1372 src/veritysetup.c:378 src/veritysetup.c:379 +#: src/veritysetup.c:381 src/cryptsetup_reencrypt.c:1122 +#: src/cryptsetup_reencrypt.c:1123 src/cryptsetup_reencrypt.c:1124 +#: src/cryptsetup_reencrypt.c:1125 msgid "bytes" msgstr "байти" -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 +#: src/cryptsetup.c:1370 src/cryptsetup_reencrypt.c:1122 msgid "Number of bytes to skip in keyfile" msgstr "Кількість байтів, які слід пропустити у файлі ключа" -#: src/cryptsetup.c:1488 +#: src/cryptsetup.c:1371 msgid "Limits the read from newly added keyfile" msgstr "Обмежує читання з щойно доданого файла ключа" -#: src/cryptsetup.c:1489 +#: src/cryptsetup.c:1372 msgid "Number of bytes to skip in newly added keyfile" msgstr "Кількість байтів, які слід пропустити у щойно доданому файлі ключа" -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:1373 msgid "Slot number for new key (default is first free)" msgstr "Номер слоту для нового ключа (типовим слотом є перший вільний слот)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:1374 msgid "The size of the device" msgstr "Розмір пристрою" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1374 src/cryptsetup.c:1375 src/cryptsetup.c:1376 +#: src/cryptsetup.c:1382 msgid "SECTORS" msgstr "СЕКТОРИ" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:1375 msgid "The start offset in the backend device" msgstr "Початковий відступ на допоміжному пристрої" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:1376 msgid "How many sectors of the encrypted data to skip at the beginning" msgstr "Кількість секторів зашифрованих даних, які слід пропустити на початку" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:1377 msgid "Create a readonly mapping" msgstr "Створити призначення у режимі лише читання" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "Тривалість ітерації PBKDF2 для LUKS (у мс)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "msecs" msgstr "мс" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:1379 src/cryptsetup_reencrypt.c:1114 msgid "Do not ask for confirmation" msgstr "Не питати про підтвердження" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "Timeout for interactive passphrase prompt (in seconds)" msgstr "Час очікування у інтерактивному запиті щодо пароля (у секундах)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "secs" msgstr "секунди" -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:1381 src/cryptsetup_reencrypt.c:1115 msgid "How often the input of the passphrase can be retried" msgstr "Частота повторень спроб отримання вхідних даних пароля" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1382 msgid "Align payload at sector boundaries - for luksFormat" msgstr "Вирівняти дані за областями у секторів, для luksFormat" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:1383 msgid "File with LUKS header and keyslots backup." msgstr "Файл з заголовком LUKS та резервною копію слотів ключів." -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 +#: src/cryptsetup.c:1384 src/cryptsetup_reencrypt.c:1116 msgid "Use /dev/random for generating volume key." msgstr "Використовувати для створення ключа тому /dev/random." -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 +#: src/cryptsetup.c:1385 src/cryptsetup_reencrypt.c:1117 msgid "Use /dev/urandom for generating volume key." msgstr "Використовувати для створення ключа тому /dev/urandom." -#: src/cryptsetup.c:1503 +#: src/cryptsetup.c:1386 msgid "Share device with another non-overlapping crypt segment." -msgstr "" -"Використовувати пристрій спільно з іншим сегментом шифрування, без " -"перекриття." +msgstr "Використовувати пристрій спільно з іншим сегментом шифрування, без перекриття." -#: src/cryptsetup.c:1504 src/veritysetup.c:385 +#: src/cryptsetup.c:1387 src/veritysetup.c:384 msgid "UUID for device to use." msgstr "UUID пристрою, який слід використати." -#: src/cryptsetup.c:1505 +#: src/cryptsetup.c:1388 msgid "Allow discards (aka TRIM) requests for device." msgstr "Дозволити запити відкидання (або TRIM) до пристрою." -#: src/cryptsetup.c:1506 +#: src/cryptsetup.c:1389 msgid "Device or file with separated LUKS header." msgstr "Пристрій або файл з окремим заголовком LUKS." -#: src/cryptsetup.c:1507 +#: src/cryptsetup.c:1390 msgid "Do not activate device, just check passphrase." msgstr "Не задіювати пристрій, просто перевірити пароль." -#: src/cryptsetup.c:1508 +#: src/cryptsetup.c:1391 msgid "Use hidden header (hidden TCRYPT device)." msgstr "Використовувати прихований заголовок (прихований пристрій TCRYPT)." -#: src/cryptsetup.c:1509 +#: src/cryptsetup.c:1392 msgid "Device is system TCRYPT drive (with bootloader)." msgstr "Пристрій є системним диском TCRYPT (диском з завантажувачем)." -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "Використовувати резервний (вторинний) заголовок TCRYPT." - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "Виконати також пошук сумісних із VeraCrypt пристроїв." - -#: src/cryptsetup.c:1512 +#: src/cryptsetup.c:1393 msgid "Type of device metadata: luks, plain, loopaes, tcrypt." msgstr "Типи метаданих пристрою: luks, plain, loopaes, tcrypt." -#: src/cryptsetup.c:1513 +#: src/cryptsetup.c:1394 msgid "Disable password quality check (if enabled)." msgstr "Вимкнути перевірку якості пароля (якщо її увімкнено)." -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "Скористатися параметром сумісності швидкодії dm-crypt same_cpu_crypt." - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "" -"Скористатися параметром сумісності швидкодії dm-crypt submit_from_crypt_cpus." - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 +#: src/cryptsetup.c:1412 src/veritysetup.c:401 msgid "[OPTION...] " msgstr "[ПАРАМЕТР...] <дія> <параметри_дії>" -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "Працюємо у режимі FIPS.\n" - -#: src/cryptsetup.c:1581 src/veritysetup.c:439 +#: src/cryptsetup.c:1458 src/veritysetup.c:438 msgid "Argument missing." msgstr "Не вказано аргумент <дія>." -#: src/cryptsetup.c:1634 src/veritysetup.c:445 +#: src/cryptsetup.c:1506 src/veritysetup.c:444 msgid "Unknown action." msgstr "Невідома дія." -#: src/cryptsetup.c:1644 +#: src/cryptsetup.c:1516 msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "" -"Параметр --shared можна використовувати лише для відкриття незашифрованого " -"пристрою.\n" +msgstr "Параметр --shared можна використовувати лише для відкриття незашифрованого пристрою.\n" -#: src/cryptsetup.c:1649 +#: src/cryptsetup.c:1521 msgid "Option --allow-discards is allowed only for open operation.\n" msgstr "Параметр --shared можна використовувати лише для дії з відкриття.\n" -#: src/cryptsetup.c:1657 +#: src/cryptsetup.c:1529 msgid "" "Option --key-size is allowed only for luksFormat, open and benchmark.\n" "To limit read from keyfile use --keyfile-size=(bytes)." msgstr "" -"Параметр --key-size можна використовувати лише для дій luksFormat, open і " -"benchmark.\n" -"Щоб обмежити читання з файла ключа, скористайтеся параметром --keyfile-" -"size=(об’єм у байтах)." +"Параметр --key-size можна використовувати лише для дій luksFormat, open і benchmark.\n" +"Щоб обмежити читання з файла ключа, скористайтеся параметром --keyfile-size=(об’єм у байтах)." -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" -"Параметр --test-passphrase можна використовувати лише для відкриття " -"пристроїв LUKS та TCRYPT.\n" +#: src/cryptsetup.c:1536 +msgid "Option --test-passphrase is allowed only for open of LUKS and TCRYPT devices.\n" +msgstr "Параметр --test-passphrase можна використовувати лише для відкриття пристроїв LUKS та TCRYPT.\n" -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 +#: src/cryptsetup.c:1541 src/cryptsetup_reencrypt.c:1185 msgid "Key size must be a multiple of 8 bits" msgstr "Розмір ключа має бути кратним 8 бітам" -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 +#: src/cryptsetup.c:1548 src/cryptsetup_reencrypt.c:1190 msgid "Key slot is invalid." msgstr "Некоректний слот ключа." -#: src/cryptsetup.c:1683 +#: src/cryptsetup.c:1555 msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" -"Параметр --key-file має пріоритет над вказаним параметром файла ключа.\n" +msgstr "Параметр --key-file має пріоритет над вказаним параметром файла ключа.\n" -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 +#: src/cryptsetup.c:1563 src/veritysetup.c:466 src/cryptsetup_reencrypt.c:1174 msgid "Negative number for option not permitted." msgstr "Не можна використовувати від’ємні значення для параметра." -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 +#: src/cryptsetup.c:1567 src/cryptsetup_reencrypt.c:1168 +#: src/cryptsetup_reencrypt.c:1194 msgid "Only one of --use-[u]random options is allowed." msgstr "Можна використовувати лише один з параметрів --use-[u]random." -#: src/cryptsetup.c:1699 +#: src/cryptsetup.c:1571 msgid "Option --use-[u]random is allowed only for luksFormat." -msgstr "" -"Параметр --use-[u]random можна використовувати лише для дії luksFormat." +msgstr "Параметр --use-[u]random можна використовувати лише для дії luksFormat." -#: src/cryptsetup.c:1703 +#: src/cryptsetup.c:1575 msgid "Option --uuid is allowed only for luksFormat and luksUUID." -msgstr "" -"Параметр --uuid можна використовувати лише для дій luksFormat і luksUUID." +msgstr "Параметр --uuid можна використовувати лише для дій luksFormat і luksUUID." -#: src/cryptsetup.c:1707 +#: src/cryptsetup.c:1579 msgid "Option --align-payload is allowed only for luksFormat." -msgstr "" -"Параметр --align-payload можна використовувати лише для дії luksFormat." - -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Підтримку параметра --skip передбачено лише для відкриття незашифрованих " -"пристроїв та пристроїв loopaes.\n" +msgstr "Параметр --align-payload можна використовувати лише для дії luksFormat." -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Підтримку параметра --offset передбачено лише для відкриття незашифрованих " -"пристроїв та пристроїв loopaes.\n" - -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" -"Підтримку параметрів --tcrypt-hidden, --tcrypt-system і --tcrypt-backup " -"передбачено лише для пристроїв TCRYPT.\n" +#: src/cryptsetup.c:1585 +msgid "Option --skip is supported only for open of plain and loopaes devices.\n" +msgstr "Підтримку параметра --skip передбачено лише для відкриття незашифрованих пристроїв та пристроїв loopaes.\n" -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "Параметр --tcrypt-hidden не можна поєднувати з --allow-discards.\n" +#: src/cryptsetup.c:1591 +msgid "Option --offset is supported only for open of plain and loopaes devices.\n" +msgstr "Підтримку параметра --offset передбачено лише для відкриття незашифрованих пристроїв та пристроїв loopaes.\n" -#: src/cryptsetup.c:1735 -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "" -"Підтримку параметра --veracrypt передбачено лише для пристроїв TCRYPT.\n" +#: src/cryptsetup.c:1597 +msgid "Option --tcrypt-hidden or --tcrypt-system is supported only for TCRYPT device.\n" +msgstr "Підтримку параметрів --tcrypt-hidden і --tcrypt-system передбачено лише для пристроїв TCRYPT.\n" -#: src/veritysetup.c:58 +#: src/veritysetup.c:57 msgid "Invalid salt string specified.\n" msgstr "Вказано некоректний рядок солі.\n" -#: src/veritysetup.c:88 +#: src/veritysetup.c:87 #, c-format msgid "Cannot create hash image %s for writing.\n" msgstr "Не вдалося створити образ хешу %s для запису.\n" -#: src/veritysetup.c:148 +#: src/veritysetup.c:147 msgid "Invalid root hash string specified.\n" msgstr "Вказано некоректний рядок кореневого хешу.\n" -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid " " msgstr "<пристрій_даних> <пристрій_хешу>" -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid "format device" msgstr "форматувати пристрій" -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid " " msgstr "<пристрій_даних> <пристрій_хешу> <кореневий_хеш>" -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid "verify device" msgstr "перевірити пристрій" -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid " " msgstr "<назва> <пристрій_даних> <пристрій_хешу> <кореневий_хеш>" -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid "create active device" msgstr "створити активний пристрій" -#: src/veritysetup.c:311 +#: src/veritysetup.c:310 msgid "remove (deactivate) device" msgstr "вилучити пристрій (скасувати активацію)" -#: src/veritysetup.c:312 +#: src/veritysetup.c:311 msgid "show active device status" msgstr "показати стан активного пристрою" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "" msgstr "<пристрій_хешу>" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "show on-disk information" msgstr "показати вбудовані дані" -#: src/veritysetup.c:332 +#: src/veritysetup.c:331 #, c-format msgid "" "\n" @@ -1571,331 +1405,285 @@ msgstr "" "<пристрій_хешу> — пристрій, на якому зберігаються дані для перевірки\n" "<кореневий_хеш> — хеш кореневого вузла на пристрої <пристрій_хешу>\n" -#: src/veritysetup.c:339 +#: src/veritysetup.c:338 #, c-format msgid "" "\n" "Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" +"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, Hash format: %u\n" msgstr "" "\n" "Типові вбудовані параметри dm-verity:\n" -"\tхеш: %s, блок даних (у байтах): %u, блок хешу (у байтах): %u, розмір солі: " -"%u, формат хешування: %u\n" +"\tхеш: %s, блок даних (у байтах): %u, блок хешу (у байтах): %u, розмір солі: %u, формат хешування: %u\n" -#: src/veritysetup.c:377 +#: src/veritysetup.c:376 msgid "Do not use verity superblock" msgstr "Не використовувати суперблок verity" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "Format type (1 - normal, 0 - original Chrome OS)" msgstr "Тип форматування (1 — звичайне, 0 — початкове Chrome OS)" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "number" msgstr "номер" -#: src/veritysetup.c:379 +#: src/veritysetup.c:378 msgid "Block size on the data device" msgstr "Розмір блоку на пристрої даних" -#: src/veritysetup.c:380 +#: src/veritysetup.c:379 msgid "Block size on the hash device" msgstr "Розмір блоку на пристрої хешу" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "The number of blocks in the data file" msgstr "Кількість блоків у файлі даних" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "blocks" msgstr "блоки" -#: src/veritysetup.c:382 +#: src/veritysetup.c:381 msgid "Starting offset on the hash device" msgstr "Початковий відступ на пристрої хешу" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "Hash algorithm" msgstr "Алгоритм хешування" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "string" msgstr "рядок" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "Salt" msgstr "Сіль" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "hex string" msgstr "шістнадцятковий рядок" -#: src/cryptsetup_reencrypt.c:147 +#: src/cryptsetup_reencrypt.c:136 #, c-format msgid "Cannot exclusively open %s, device in use.\n" -msgstr "" -"Не можна відкрити %s у виключному режимі, пристрій вже використовується.\n" +msgstr "Не можна відкрити %s у виключному режимі, пристрій вже використовується.\n" -#: src/cryptsetup_reencrypt.c:151 +#: src/cryptsetup_reencrypt.c:140 #, c-format msgid "Cannot open device %s\n" msgstr "Не вдалося відкрити пристрій %s\n" -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 +#: src/cryptsetup_reencrypt.c:150 src/cryptsetup_reencrypt.c:367 +#: src/cryptsetup_reencrypt.c:786 msgid "Allocation of aligned memory failed.\n" msgstr "Спроба розподілу вирівняних ділянок пам’яті зазнала невдачі.\n" -#: src/cryptsetup_reencrypt.c:168 +#: src/cryptsetup_reencrypt.c:157 #, c-format msgid "Cannot read device %s.\n" msgstr "Не вдалося виконати читання з пристрою %s.\n" -#: src/cryptsetup_reencrypt.c:179 +#: src/cryptsetup_reencrypt.c:168 #, c-format msgid "Marking LUKS device %s unusable.\n" msgstr "Позначаємо пристрій LUKS %s як непридатний.\n" -#: src/cryptsetup_reencrypt.c:184 +#: src/cryptsetup_reencrypt.c:173 #, c-format msgid "Marking LUKS device %s usable.\n" msgstr "Позначаємо пристрій LUKS %s як придатний\n" -#: src/cryptsetup_reencrypt.c:200 +#: src/cryptsetup_reencrypt.c:189 #, c-format msgid "Cannot write device %s.\n" msgstr "Не вдалося виконати запис на пристрій %s.\n" -#: src/cryptsetup_reencrypt.c:281 +#: src/cryptsetup_reencrypt.c:270 msgid "Cannot write reencryption log file.\n" msgstr "Не вдалося записати файл журналу повторного шифрування.\n" -#: src/cryptsetup_reencrypt.c:337 +#: src/cryptsetup_reencrypt.c:319 msgid "Cannot read reencryption log file.\n" msgstr "Не вдалося прочитати файл журналу повторного шифрування.\n" -#: src/cryptsetup_reencrypt.c:374 +#: src/cryptsetup_reencrypt.c:358 #, c-format msgid "Log file %s exists, resuming reencryption.\n" msgstr "Файл журналу %s вже існує, поновлюємо повторне шифрування.\n" -#: src/cryptsetup_reencrypt.c:403 +#: src/cryptsetup_reencrypt.c:393 msgid "Activating temporary device using old LUKS header.\n" -msgstr "" -"Спроба задіяти тимчасовий пристрій за допомогою старого заголовка LUKS.\n" +msgstr "Спроба задіяти тимчасовий пристрій за допомогою старого заголовка LUKS.\n" -#: src/cryptsetup_reencrypt.c:414 +#: src/cryptsetup_reencrypt.c:404 msgid "Activating temporary device using new LUKS header.\n" -msgstr "" -"Спроба задіяти тимчасовий пристрій за допомогою нового заголовка LUKS.\n" +msgstr "Спроба задіяти тимчасовий пристрій за допомогою нового заголовка LUKS.\n" -#: src/cryptsetup_reencrypt.c:424 +#: src/cryptsetup_reencrypt.c:414 msgid "Activation of temporary devices failed.\n" msgstr "Спроба задіяти тимчасові пристрої зазнала невдачі.\n" -#: src/cryptsetup_reencrypt.c:450 +#: src/cryptsetup_reencrypt.c:439 #, c-format msgid "New LUKS header for device %s created.\n" msgstr "Створено новий заголовок LUKS для пристрою %s.\n" -#: src/cryptsetup_reencrypt.c:458 +#: src/cryptsetup_reencrypt.c:447 #, c-format msgid "Activated keyslot %i.\n" msgstr "Задіяний слот ключа %i.\n" -#: src/cryptsetup_reencrypt.c:484 +#: src/cryptsetup_reencrypt.c:471 #, c-format msgid "LUKS header backup of device %s created.\n" msgstr "Створено резервну копію заголовка LUKS пристрою %s.\n" -#: src/cryptsetup_reencrypt.c:532 +#: src/cryptsetup_reencrypt.c:499 msgid "Creation of LUKS backup headers failed.\n" msgstr "Спроба створення заголовків резервних копій LUKS зазнала невдачі.\n" -#: src/cryptsetup_reencrypt.c:634 +#: src/cryptsetup_reencrypt.c:594 #, c-format msgid "Cannot restore LUKS header on device %s.\n" msgstr "Не вдалося відновити заголовок LUKS на пристрої %s.\n" -#: src/cryptsetup_reencrypt.c:636 +#: src/cryptsetup_reencrypt.c:596 #, c-format msgid "LUKS header on device %s restored.\n" msgstr "Відновлено заголовок LUKS на пристрої %s.\n" -#: src/cryptsetup_reencrypt.c:669 +#: src/cryptsetup_reencrypt.c:629 #, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" -"Поступ: %5.1f%%, час до завершення: %02llu:%02llu, записано %4llu МіБ, " -"швидкість %5.1f МіБ/с%s" +msgid "Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" +msgstr "Поступ: %5.1f%%, час до завершення: %02llu:%02llu, записано %4llu МіБ, швидкість %5.1f МіБ/с%s" -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 +#: src/cryptsetup_reencrypt.c:645 src/cryptsetup_reencrypt.c:721 msgid "Cannot seek to device offset.\n" msgstr "Не вдалося встановити вказану позицію на пристрої.\n" -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 +#: src/cryptsetup_reencrypt.c:767 src/cryptsetup_reencrypt.c:773 msgid "Cannot open temporary LUKS header file.\n" msgstr "Не вдалося відкрити файл тимчасового заголовка LUKS.\n" -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 +#: src/cryptsetup_reencrypt.c:779 msgid "Cannot get device size.\n" msgstr "Не вдалося отримати дані щодо розміру пристрою.\n" -#: src/cryptsetup_reencrypt.c:919 +#: src/cryptsetup_reencrypt.c:803 msgid "Interrupted by a signal.\n" msgstr "Перервано за сигналом.\n" -#: src/cryptsetup_reencrypt.c:921 +#: src/cryptsetup_reencrypt.c:805 msgid "IO error during reencryption.\n" msgstr "Помилка введення-виведення під час повторного шифрування.\n" -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" -"Файлом ключа можна користуватися лише з --key-slot, або якщо активним є лише " -"один слот ключа.\n" +#: src/cryptsetup_reencrypt.c:906 +msgid "Key file can be used only with --key-slot or with exactly one key slot active.\n" +msgstr "Файлом ключа можна користуватися лише з --key-slot, або якщо активним є лише один слот ключа.\n" -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 +#: src/cryptsetup_reencrypt.c:955 #, c-format msgid "Enter passphrase for key slot %u: " msgstr "Вкажіть пароль для слоту ключа %u: " -#: src/cryptsetup_reencrypt.c:1136 +#: src/cryptsetup_reencrypt.c:1004 msgid "Cannot open reencryption log file.\n" msgstr "Не вдалося відкрити файл журналу повторного шифрування.\n" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "Reencryption block size" msgstr "Розмір блоку повторного шифрування" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "MiB" msgstr "МіБ" -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "Не змінювати ключ, не виконувати повторного шифрування області даних." +#: src/cryptsetup_reencrypt.c:1118 +msgid "Use direct-io when accesing devices." +msgstr "Використовувати безпосереднє введення-виведення під час доступу до пристроїв." -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." -msgstr "" -"Використовувати безпосереднє введення-виведення під час доступу до пристроїв." - -#: src/cryptsetup_reencrypt.c:1274 +#: src/cryptsetup_reencrypt.c:1119 msgid "Use fsync after each block." msgstr "Використовувати fsync після кожного блоку." -#: src/cryptsetup_reencrypt.c:1275 +#: src/cryptsetup_reencrypt.c:1120 msgid "Update log file after every block." msgstr "Оновлювати файл журналу після кожного блоку." -#: src/cryptsetup_reencrypt.c:1276 +#: src/cryptsetup_reencrypt.c:1121 msgid "Use only this slot (others will be disabled)." msgstr "Використовувати лише цей слот (інші буде вимкнено)." -#: src/cryptsetup_reencrypt.c:1279 +#: src/cryptsetup_reencrypt.c:1124 msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" -"Зменшити розмір пристрою зберігання даних (змістити відступ даних). " -"НЕБЕЗПЕЧНО!" +msgstr "Зменшити розмір пристрою зберігання даних (змістити відступ даних). НЕБЕЗПЕЧНО!" -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup_reencrypt.c:1125 msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" -"Використовувати лише вказаний розмір пристрою (ігнорувати решту об’єму). " -"НЕБЕЗПЕЧНО!" +msgstr "Використовувати лише вказаний розмір пристрою (ігнорувати решту об’єму). НЕБЕЗПЕЧНО!" -#: src/cryptsetup_reencrypt.c:1281 +#: src/cryptsetup_reencrypt.c:1126 msgid "Create new header on not encrypted device." msgstr "Створити новий заголовок на незашифрованому пристрої." -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "Остаточно розшифрувати пристрій (скасувати шифрування)" - -#: src/cryptsetup_reencrypt.c:1298 +#: src/cryptsetup_reencrypt.c:1142 msgid "[OPTION...] " msgstr "[ПАРАМЕТР...] <пристрій>" -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" -"ПОПЕРЕДЖЕННЯ: цей код не перевірено достатнім чином, його використання може " -"призвести до незворотного пошкодження даних.\n" +#: src/cryptsetup_reencrypt.c:1156 +msgid "WARNING: this is experimental code, it can completely break your data.\n" +msgstr "ПОПЕРЕДЖЕННЯ: цей код не перевірено достатнім чином, його використання може призвести до незворотного пошкодження даних.\n" -#: src/cryptsetup_reencrypt.c:1313 +#: src/cryptsetup_reencrypt.c:1157 #, c-format msgid "Reencryption will change: volume key%s%s%s%s.\n" msgstr "Повторне шифрування призведе до зміни: ключа тому%s%s%s%s.\n" -#: src/cryptsetup_reencrypt.c:1314 +#: src/cryptsetup_reencrypt.c:1158 msgid ", set hash to " msgstr ", встановити хеш у значення " -#: src/cryptsetup_reencrypt.c:1315 +#: src/cryptsetup_reencrypt.c:1159 msgid ", set cipher to " msgstr ", встановити шифрування " -#: src/cryptsetup_reencrypt.c:1320 +#: src/cryptsetup_reencrypt.c:1164 msgid "Argument required." msgstr "Слід вказати аргумент." -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" -"Розмір блоку повторного шифрування повинен належати діапазону від 1 МіБ до " -"64 МІБ." +#: src/cryptsetup_reencrypt.c:1180 +msgid "Only values between 1 MiB and 64 MiB allowed for reencryption block size." +msgstr "Розмір блоку повторного шифрування повинен належати діапазону від 1 МіБ до 64 МІБ." -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 +#: src/cryptsetup_reencrypt.c:1199 src/cryptsetup_reencrypt.c:1204 msgid "Invalid device size specification." msgstr "Некоректна специфікація розміру пристрою." -#: src/cryptsetup_reencrypt.c:1363 +#: src/cryptsetup_reencrypt.c:1207 msgid "Maximum device reduce size is 64 MiB." msgstr "Максимальний розмір зменшення розміру пристрою дорівнює 64 МіБ." -#: src/cryptsetup_reencrypt.c:1366 +#: src/cryptsetup_reencrypt.c:1210 msgid "Reduce size must be multiple of 512 bytes sector." msgstr "Розмір зменшення має бути кратним до 512-байтового сектора." -#: src/cryptsetup_reencrypt.c:1370 +#: src/cryptsetup_reencrypt.c:1214 msgid "Option --new must be used together with --reduce-device-size." msgstr "Параметр --new слід використовувати разом з --reduce-device-size." -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "" -"Параметр --keep-key можна використовувати лише разом з параметром --hash або " -"--iter-time." - -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "Параметр --new не можна використовувати разом з --decrypt." - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "Параметр --decrypt є несумісним із вказаними параметрами." - -#: src/utils_tools.c:151 +#: src/utils_tools.c:150 msgid "Error reading response from terminal.\n" msgstr "Помилка під час спроби читання відповіді з термінала.\n" -#: src/utils_tools.c:173 +#: src/utils_tools.c:172 msgid "Command successful.\n" msgstr "Команду виконано успішно.\n" -#: src/utils_tools.c:191 +#: src/utils_tools.c:186 #, c-format msgid "Command failed with code %i" -msgstr "" -"Спроба виконання команди завершилася повідомленням про помилку з кодом %i" +msgstr "Спроба виконання команди завершилася повідомленням про помилку з кодом %i" #: src/utils_password.c:42 #, c-format @@ -1911,20 +1699,6 @@ msgstr "" "Помилка під час спроби оцінити якість пароля:\n" " %s\n" -#~ msgid "FIPS checksum verification failed.\n" -#~ msgstr "Контрольні суми FIPS не збігаються.\n" - -#~ msgid "" -#~ "WARNING: device %s is a partition, for TCRYPT system encryption you " -#~ "usually need to use whole block device path.\n" -#~ msgstr "" -#~ "Попередження: пристрій %s є розділом; для шифрування системи за допомогою " -#~ "TCRYPT, зазвичай, вам слід використовувати шлях до цілого блокового " -#~ "пристрою.\n" - -#~ msgid "Kernel doesn't support plain64 IV.\n" -#~ msgstr "У ядрі не передбачено підтримки plain64 IV.\n" - #~ msgid "Enter LUKS passphrase: " #~ msgstr "Введіть пароль LUKS: " @@ -1961,12 +1735,8 @@ msgstr "" #~ msgid "remove loop-AES mapping" #~ msgstr "вилучити призначення loop-AES" -#~ msgid "" -#~ "Option --allow-discards is allowed only for luksOpen, loopaesOpen and " -#~ "create operation.\n" -#~ msgstr "" -#~ "Параметр --allow-discards можна використовувати лише для дій luksOpen, " -#~ "loopaesOpen і create.\n" +#~ msgid "Option --allow-discards is allowed only for luksOpen, loopaesOpen and create operation.\n" +#~ msgstr "Параметр --allow-discards можна використовувати лише для дій luksOpen, loopaesOpen і create.\n" #~ msgid "Cannot open device %s for %s%s access.\n" #~ msgstr "Не вдалося відкрити пристрій %s для доступу %s%s.\n" @@ -1981,9 +1751,7 @@ msgstr "" #~ msgstr "тільки читання" #~ msgid "WARNING!!! Possibly insecure memory. Are you root?\n" -#~ msgstr "" -#~ "УВАГА!!! Небезпека доступу до даних у пам’яті. Працюєте від імені " -#~ "адміністратора?\n" +#~ msgstr "УВАГА!!! Небезпека доступу до даних у пам’яті. Працюєте від імені адміністратора?\n" #~ msgid "Unable to obtain sector size for %s" #~ msgstr "Не вдалося отримати розмір сектора %s" @@ -1994,9 +1762,5 @@ msgstr "" #~ msgid "Failed to read from key storage.\n" #~ msgstr "Не вдалося виконати читання даних зі сховища ключів.\n" -#~ msgid "" -#~ "Cannot use device %s (crypt segments overlaps or in use by another " -#~ "device).\n" -#~ msgstr "" -#~ "Використання пристрою %s неможливе (сегменти шифрування перекриваються " -#~ "або використовуються іншим пристроєм).\n" +#~ msgid "Cannot use device %s (crypt segments overlaps or in use by another device).\n" +#~ msgstr "Використання пристрою %s неможливе (сегменти шифрування перекриваються або використовуються іншим пристроєм).\n" diff --git a/po/vi.gmo b/po/vi.gmo deleted file mode 100644 index 73a2a9c..0000000 Binary files a/po/vi.gmo and /dev/null differ diff --git a/po/vi.po b/po/vi.po index 42b446d..ca6b3bc 100644 --- a/po/vi.po +++ b/po/vi.po @@ -1,59 +1,53 @@ # Vietnamese translation for CryptSetup. -# Bản dịch tiếng Việt dành cho cryptsetup. -# Copyright © 2015 Free Software Foundation, Inc. +# Copyright © 2013 Free Software Foundation, Inc. # This file is distributed under the same license as the cryptsetup package. # Clytie Siddall , 2010. -# Trần Ngọc Quân , 2012-2014, 2015. +# Trần Ngọc Quân , 2012-2013. # msgid "" msgstr "" -"Project-Id-Version: cryptsetup 1.6.7\n" +"Project-Id-Version: cryptsetup-1.6.2\n" "Report-Msgid-Bugs-To: dm-crypt@saout.de\n" -"POT-Creation-Date: 2015-03-19 09:55+0100\n" -"PO-Revision-Date: 2015-03-20 07:43+0700\n" +"POT-Creation-Date: 2013-07-27 19:53+0200\n" +"PO-Revision-Date: 2013-07-29 08:05+0700\n" "Last-Translator: Trần Ngọc Quân \n" "Language-Team: Vietnamese \n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Team-Website: \n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 1.5.5\n" +"X-Poedit-SourceCharset: UTF-8\n" -#: lib/libdevmapper.c:252 +#: lib/libdevmapper.c:245 msgid "Cannot initialize device-mapper, running as non-root user.\n" -msgstr "" -"Không thể khởi tạo ánh-xạ-thiết-bị (device-mapper), do không chạy dưới quyền " -"siêu người dùng.\n" +msgstr "Không thể khởi tạo ánh-xạ-thiết-bị (device-mapper), do không chạy dưới quyền siêu người dùng.\n" -#: lib/libdevmapper.c:255 +#: lib/libdevmapper.c:248 msgid "Cannot initialize device-mapper. Is dm_mod kernel module loaded?\n" msgstr "" "Không thể khởi tạo tiến trình ánh xạ thiết bị.\n" "Mô-đun hạt nhân “dm_mod” được nạp chưa?\n" -#: lib/libdevmapper.c:550 +#: lib/libdevmapper.c:536 #, c-format msgid "DM-UUID for device %s was truncated.\n" msgstr "Mã số DM-UUID cho thiết bị %s bị cắt ngắn.\n" -#: lib/libdevmapper.c:698 -msgid "Requested dmcrypt performance options are not supported.\n" -msgstr "Không hỗ trợ tùy chọn hiệu năng dmcrypt đã yêu cầu.\n" - #: lib/random.c:76 msgid "" "System is out of entropy while generating volume key.\n" -"Please move mouse or type some text in another window to gather some random " -"events.\n" +"Please move mouse or type some text in another window to gather some random events.\n" msgstr "" "Hệ thống bị nằm ngoài en-trô-pi trong khi tạo khóa vùng chứa.\n" -"Xin hãy di chuyển con chuột hay gõ vài chữ trong cửa sổ khác để thu thập sự " -"kiện ngẫu nhiên.\n" +"Xin hãy di chuyển con chuột hay gõ vài chữ trong cửa sổ khác để thu thập sự kiện ngẫu nhiên.\n" #: lib/random.c:80 #, c-format msgid "Generating key (%d%% done).\n" -msgstr "Đang tạo khóa (xong %d%%).\n" +msgstr "Đang tạo khoá (%d%% hoàn tất).\n" #: lib/random.c:169 msgid "Fatal error during RNG initialisation.\n" @@ -68,262 +62,256 @@ msgstr "Không hiểu chất lượng RNG đã yêu cầu.\n" msgid "Error %d reading from RNG: %s\n" msgstr "Lỗi %d khi đọc từ RNG: %s\n" -#: lib/setup.c:200 +#: lib/setup.c:190 msgid "Cannot initialize crypto RNG backend.\n" msgstr "Không thể khởi tạo ứng dụng chạy ở phía sau (backend) mã hóa RNG.\n" -#: lib/setup.c:206 +#: lib/setup.c:196 msgid "Cannot initialize crypto backend.\n" msgstr "Không thể khởi ứng dụng mã hóa chạy ở phía sau (backend).\n" -#: lib/setup.c:236 lib/setup.c:1192 lib/verity/verity.c:123 +#: lib/setup.c:219 lib/setup.c:1110 lib/verity/verity.c:123 #, c-format msgid "Hash algorithm %s not supported.\n" msgstr "Thuật toán băm %s không được hỗ trợ.\n" -#: lib/setup.c:239 lib/loopaes/loopaes.c:90 +#: lib/setup.c:222 lib/loopaes/loopaes.c:90 #, c-format msgid "Key processing error (using hash %s).\n" -msgstr "Lỗi xử lý khóa (dùng mã băm %s).\n" - -#: lib/setup.c:284 -msgid "Cannot determine device type. Incompatible activation of device?\n" -msgstr "" -"Không thể dò tìm kiểu thiết bị. Phần hoạt hóa của thiết bị không tương thích " -"à?\n" - -#: lib/setup.c:288 lib/setup.c:1537 -msgid "This operation is supported only for LUKS device.\n" -msgstr "Thao tác này được hỗ trợ chỉ cho thiết bị LUKS.\n" +msgstr "Lỗi xử lý khoá (dùng mã băm %s).\n" -#: lib/setup.c:320 +#: lib/setup.c:268 msgid "All key slots full.\n" -msgstr "Mọi khe khóa đều đã đầy.\n" +msgstr "Mọi khe khoá đều bị đầy.\n" -#: lib/setup.c:327 +#: lib/setup.c:275 #, c-format msgid "Key slot %d is invalid, please select between 0 and %d.\n" -msgstr "" -"Khe khóa %d không đúng, hãy chọn một giá trị trong phạm vi từ 0 đến %d.\n" +msgstr "Khe khoá %d không đúng, hãy chọn một giá trị trong phạm vi 0 đến %d.\n" -#: lib/setup.c:333 +#: lib/setup.c:281 #, c-format msgid "Key slot %d is full, please select another one.\n" -msgstr "Khe khóa %d bị đầy, hãy chọn một khe khác.\n" +msgstr "Khe khoá %d bị đầy, hãy chọn một khe khác.\n" -#: lib/setup.c:472 +#: lib/setup.c:390 #, c-format msgid "Enter passphrase for %s: " msgstr "Nhập cụm từ mật khẩu cho %s: " -#: lib/setup.c:653 +#: lib/setup.c:571 #, c-format msgid "Header detected but device %s is too small.\n" msgstr "Phát hiện được phần đầu nhưng mà thiết bị %s quá nhỏ.\n" -#: lib/setup.c:669 lib/setup.c:1420 +#: lib/setup.c:587 lib/setup.c:1337 msgid "This operation is not supported for this device type.\n" msgstr "Thao tác này không được hỗ trợ cho kiểu thiết bị này.\n" -#: lib/setup.c:908 lib/setup.c:1381 lib/setup.c:2264 +#: lib/setup.c:825 lib/setup.c:1298 lib/setup.c:2173 #, c-format msgid "Device %s is not active.\n" msgstr "Thiết bị %s không hoạt động.\n" -#: lib/setup.c:925 +#: lib/setup.c:842 #, c-format msgid "Underlying device for crypt device %s disappeared.\n" msgstr "Thiết bị nằm dưới cho thiết bị crypt %s đã bị biến mất.\n" -#: lib/setup.c:994 +#: lib/setup.c:907 msgid "Invalid plain crypt parameters.\n" msgstr "Đặt sai tham số mã hóa bình thường.\n" -#: lib/setup.c:999 lib/setup.c:1119 +#: lib/setup.c:912 lib/setup.c:1037 msgid "Invalid key size.\n" -msgstr "Kích cỡ khóa không đúng.\n" +msgstr "Kích cỡ khoá không đúng.\n" -#: lib/setup.c:1004 lib/setup.c:1124 +#: lib/setup.c:917 lib/setup.c:1042 msgid "UUID is not supported for this crypt type.\n" msgstr "UUID không hỗ trợ kiểu mã hóa này.\n" -#: lib/setup.c:1046 +#: lib/setup.c:959 msgid "Can't format LUKS without device.\n" -msgstr "Không thể định dạng “LUKS” mà không có thiết bị.\n" +msgstr "Không thể định dạng LUKS mà không có thiết bị.\n" -#: lib/setup.c:1089 +#: lib/setup.c:1007 #, c-format msgid "Cannot format device %s which is still in use.\n" msgstr "Không thể định dạng thiết bị %s mà nó lại vẫn đang được sử dụng.\n" -#: lib/setup.c:1092 +#: lib/setup.c:1010 #, c-format msgid "Cannot format device %s, permission denied.\n" msgstr "Không thể định dạng thiết bị %s, không đủ thẩm quyền.\n" -#: lib/setup.c:1096 +#: lib/setup.c:1014 #, c-format msgid "Cannot wipe header on device %s.\n" -msgstr "Không thể tẩy xóa phần đầu trên thiết bị %s.\n" +msgstr "Không thể tẩy xoá phần đầu trên thiết bị %s.\n" -#: lib/setup.c:1114 +#: lib/setup.c:1032 msgid "Can't format LOOPAES without device.\n" -msgstr "Không thể định dạng “LOOPAES” bên ngoài thiết bị.\n" +msgstr "Không thể định dạng LOOPAES bên ngoài thiết bị.\n" -#: lib/setup.c:1152 +#: lib/setup.c:1070 msgid "Can't format VERITY without device.\n" -msgstr "Không thể định dạng “VERITY” mà không có thiết bị.\n" +msgstr "Không thể định dạng VERITY mà không có thiết bị.\n" -#: lib/setup.c:1160 lib/verity/verity.c:106 +#: lib/setup.c:1078 lib/verity/verity.c:106 #, c-format msgid "Unsupported VERITY hash type %d.\n" -msgstr "Kiểu băm “VERITY” %d không được hỗ trợ.\n" +msgstr "Kiểu băm VERITY %d không được hỗ trợ.\n" -#: lib/setup.c:1166 lib/verity/verity.c:114 +#: lib/setup.c:1084 lib/verity/verity.c:114 msgid "Unsupported VERITY block size.\n" -msgstr "Kích thước khối “VERITY” không được hỗ trợ.\n" +msgstr "Kích thước khối VERITY không được hỗ trợ.\n" -#: lib/setup.c:1171 lib/verity/verity.c:76 +#: lib/setup.c:1089 lib/verity/verity.c:76 msgid "Unsupported VERITY hash offset.\n" -msgstr "Khoảng bù (offset) mã băm “VERITY” không được hỗ trợ.\n" +msgstr "Khoảng bù (offset) mã băm VERITY không được hỗ trợ.\n" -#: lib/setup.c:1285 +#: lib/setup.c:1201 #, c-format msgid "Unknown crypt device type %s requested.\n" msgstr "Không rõ kiểu thiết bị mã hóa %s được yêu cầu.\n" -#: lib/setup.c:1435 +#: lib/setup.c:1352 msgid "Do you really want to change UUID of device?" msgstr "Bạn có thực sự muốn thay đổi UUID cho thiết bị?" -#: lib/setup.c:1545 +#: lib/setup.c:1440 lib/setup.c:1485 lib/setup.c:1534 lib/setup.c:1600 +#: lib/setup.c:1673 lib/setup.c:1737 lib/setup.c:1818 lib/setup.c:1864 +#: lib/setup.c:2238 lib/setup.c:2532 +msgid "This operation is supported only for LUKS device.\n" +msgstr "Thao tác này được hỗ trợ chỉ cho thiết bị LUKS.\n" + +#: lib/setup.c:1447 #, c-format msgid "Volume %s is not active.\n" msgstr "Khối tin %s không hoạt động.\n" -#: lib/setup.c:1556 +#: lib/setup.c:1458 #, c-format msgid "Volume %s is already suspended.\n" msgstr "Khối %s đã bị ngưng.\n" -#: lib/setup.c:1563 +#: lib/setup.c:1465 #, c-format msgid "Suspend is not supported for device %s.\n" msgstr "Tạm dừng không được hỗ trợ cho kiểu thiết bị %s.\n" -#: lib/setup.c:1565 +#: lib/setup.c:1467 #, c-format msgid "Error during suspending device %s.\n" msgstr "Gặp lỗi khi tạm dừng thiết bị %s.\n" -#: lib/setup.c:1591 lib/setup.c:1638 +#: lib/setup.c:1495 lib/setup.c:1544 #, c-format msgid "Volume %s is not suspended.\n" -msgstr "Vùng %s không bị treo.\n" +msgstr "Khối %s không bị ngưng.\n" -#: lib/setup.c:1605 +#: lib/setup.c:1509 #, c-format msgid "Resume is not supported for device %s.\n" msgstr "Thao tác phục hồi không được hỗ trợ cho kiểu thiết bị %s.\n" -#: lib/setup.c:1607 lib/setup.c:1659 +#: lib/setup.c:1511 lib/setup.c:1565 #, c-format msgid "Error during resuming device %s.\n" msgstr "Gặp lỗi khi cho hoạt động trở lại thiết bị %s.\n" -#: lib/setup.c:1645 lib/setup.c:2080 lib/setup.c:2094 src/cryptsetup.c:186 -#: src/cryptsetup.c:248 src/cryptsetup.c:732 src/cryptsetup.c:1151 +#: lib/setup.c:1551 lib/setup.c:1989 lib/setup.c:2003 src/cryptsetup.c:151 +#: src/cryptsetup.c:229 src/cryptsetup.c:316 src/cryptsetup.c:660 +#: src/cryptsetup.c:1076 msgid "Enter passphrase: " msgstr "Gõ cụm từ mật khẩu: " -#: lib/setup.c:1707 lib/setup.c:1843 +#: lib/setup.c:1614 lib/setup.c:1751 msgid "Cannot add key slot, all slots disabled and no volume key provided.\n" -msgstr "" -"Không thể thêm khe khóa vì mọi khe đều bị tắt và không cung cấp khóa khối " -"tin.\n" +msgstr "Không thể thêm khe khoá vì mọi khe đều bị tắt và không cung cấp khoá khối tin.\n" -#: lib/setup.c:1716 lib/setup.c:1849 lib/setup.c:1853 +#: lib/setup.c:1623 lib/setup.c:1757 lib/setup.c:1761 msgid "Enter any passphrase: " msgstr "Nhập bất cứ cụm từ mật khẩu nào: " -#: lib/setup.c:1733 lib/setup.c:1866 lib/setup.c:1870 lib/setup.c:1932 -#: src/cryptsetup.c:988 src/cryptsetup.c:1017 +#: lib/setup.c:1640 lib/setup.c:1774 lib/setup.c:1778 lib/setup.c:1841 +#: src/cryptsetup.c:942 msgid "Enter new passphrase for key slot: " -msgstr "Gõ cụm từ mật khẩu mới cho khe khóa: " +msgstr "Gõ cụm từ mật khẩu mới cho khe khoá: " -#: lib/setup.c:1798 +#: lib/setup.c:1705 #, c-format msgid "Key slot %d changed.\n" -msgstr "Khe khóa %d đã thay đổi.\n" +msgstr "Khe khoá %d đã thay đổi.\n" -#: lib/setup.c:1801 +#: lib/setup.c:1708 #, c-format msgid "Replaced with key slot %d.\n" -msgstr "Đã thay thế với khe khóa %d.\n" +msgstr "Đã thay thế với khe khoá %d.\n" -#: lib/setup.c:1806 +#: lib/setup.c:1713 msgid "Failed to swap new key slot.\n" -msgstr "Gặp lỗi khi hoán đổi khe khóa mới.\n" +msgstr "Gặp lỗi khi hoán đổi khe khoá mới.\n" -#: lib/setup.c:1923 lib/setup.c:2184 lib/setup.c:2197 lib/setup.c:2339 +#: lib/setup.c:1832 lib/setup.c:2093 lib/setup.c:2106 lib/setup.c:2249 msgid "Volume key does not match the volume.\n" -msgstr "Khóa khối tin không tương ứng với khối tin đó.\n" +msgstr "Khoá khối tin không tương ứng với khối tin đó.\n" -#: lib/setup.c:1961 +#: lib/setup.c:1870 #, c-format msgid "Key slot %d is invalid.\n" -msgstr "Khe khóa %d không đúng.\n" +msgstr "Khe khoá %d không đúng.\n" -#: lib/setup.c:1966 +#: lib/setup.c:1875 #, c-format msgid "Key slot %d is not used.\n" -msgstr "Khe khóa %d không được dùng.\n" +msgstr "Khe khoá %d không được dùng.\n" -#: lib/setup.c:1996 lib/setup.c:2068 lib/setup.c:2160 +#: lib/setup.c:1905 lib/setup.c:1977 lib/setup.c:2069 #, c-format msgid "Device %s already exists.\n" msgstr "Thiết bị %s đã sẵn có.\n" -#: lib/setup.c:2171 +#: lib/setup.c:2080 msgid "Incorrect volume key specified for plain device.\n" msgstr "Khóa vùng chứa đã chỉ định không đúng cho thiết bị thường.\n" -#: lib/setup.c:2204 +#: lib/setup.c:2113 msgid "Incorrect root hash specified for verity device.\n" msgstr "Mã băm gốc đã chỉ định không đúng cho thiết bị chứng thực (verity).\n" -#: lib/setup.c:2227 +#: lib/setup.c:2136 msgid "Device type is not properly initialised.\n" msgstr "Kiểu thiết bị gần như chắc chắn là chưa được thiết lập.\n" -#: lib/setup.c:2259 +#: lib/setup.c:2168 #, c-format msgid "Device %s is still in use.\n" msgstr "Thiết bị %s vẫn đang được sử dụng.\n" -#: lib/setup.c:2268 +#: lib/setup.c:2177 #, c-format msgid "Invalid device %s.\n" msgstr "Thiết bị không đúng %s.\n" -#: lib/setup.c:2289 +#: lib/setup.c:2198 msgid "Function not available in FIPS mode.\n" -msgstr "Chức năng không khả dụng trong chế độ “FIPS”.\n" +msgstr "Chức năng không khả dụng trong chế độ FIPS.\n" -#: lib/setup.c:2295 +#: lib/setup.c:2204 msgid "Volume key buffer too small.\n" -msgstr "Vùng đệm khóa khối tin quá nhỏ.\n" +msgstr "Vùng đệm khoá khối tin quá nhỏ.\n" -#: lib/setup.c:2303 +#: lib/setup.c:2212 msgid "Cannot retrieve volume key for plain device.\n" -msgstr "Không thể lấy khóa khối tin cho thiết bị bình thường.\n" +msgstr "Không thể lấy khoá khối tin cho thiết bị bình thường.\n" -#: lib/setup.c:2310 +#: lib/setup.c:2219 #, c-format msgid "This operation is not supported for %s crypt device.\n" msgstr "Thao tác này không được hỗ trợ cho thiết bị mã hóa %s.\n" -#: lib/setup.c:2506 +#: lib/setup.c:2416 msgid "Dump operation is not supported for this device type.\n" msgstr "Thao tác đổ đống (dump) không được hỗ trợ cho kiểu thiết bị này.\n" @@ -333,356 +321,319 @@ msgstr "Không thể lấy mức ưu tiên của tiến trình.\n" #: lib/utils.c:258 msgid "Cannot unlock memory.\n" -msgstr "Không thể mở khóa bộ nhớ.\n" +msgstr "Không thể mở khoá bộ nhớ.\n" -#: lib/utils_crypt.c:241 lib/utils_crypt.c:254 lib/utils_crypt.c:401 -#: lib/utils_crypt.c:416 +#: lib/utils_crypt.c:227 lib/utils_crypt.c:240 lib/utils_crypt.c:387 +#: lib/utils_crypt.c:402 msgid "Out of memory while reading passphrase.\n" msgstr "Tràn bộ nhớ trong khi đọc cụm từ mật khẩu.\n" -#: lib/utils_crypt.c:246 lib/utils_crypt.c:261 +#: lib/utils_crypt.c:232 lib/utils_crypt.c:247 msgid "Error reading passphrase from terminal.\n" msgstr "Gặp lỗi khi đọc cụm từ mật khẩu từ thiết bị cuối.\n" -#: lib/utils_crypt.c:259 +#: lib/utils_crypt.c:245 msgid "Verify passphrase: " -msgstr "Nhập lại mật khẩu: " +msgstr "Thẩm tra cụm từ mật khẩu: " -#: lib/utils_crypt.c:266 +#: lib/utils_crypt.c:252 msgid "Passphrases do not match.\n" msgstr "Hai cụm từ mật khẩu không trùng nhau.\n" -#: lib/utils_crypt.c:350 +#: lib/utils_crypt.c:336 msgid "Cannot use offset with terminal input.\n" -msgstr "Không thể sử dụng khoảng bù (offset) với đầu vào là thiết bị cuối.\n" +msgstr "Không thể sử dụng khoảng bù (offset) với đầu vào thiết bị cuối.\n" -#: lib/utils_crypt.c:369 lib/tcrypt/tcrypt.c:467 +#: lib/utils_crypt.c:355 lib/tcrypt/tcrypt.c:443 msgid "Failed to open key file.\n" -msgstr "Gặp lỗi khi mở tập tin khóa.\n" +msgstr "Gặp lỗi khi mở tập tin khoá.\n" -#: lib/utils_crypt.c:378 +#: lib/utils_crypt.c:364 msgid "Failed to stat key file.\n" -msgstr "Gặp lỗi khi lấy thông tin tập tin khóa.\n" +msgstr "Gặp lỗi khi lấy thông tin tập tin khoá.\n" -#: lib/utils_crypt.c:386 lib/utils_crypt.c:407 +#: lib/utils_crypt.c:372 lib/utils_crypt.c:393 msgid "Cannot seek to requested keyfile offset.\n" -msgstr "" -"Không thể di chuyển vị trí đầu đọc tới vị trí tương đối (offset) tập tin " -"khóa đã yêu cầu.\n" +msgstr "Không thể tìm (seek) tới vị trí bù (offset) tập tin khóa đã yêu cầu.\n" -#: lib/utils_crypt.c:424 +#: lib/utils_crypt.c:410 msgid "Error reading passphrase.\n" msgstr "Lỗi đọc cụm từ mật khẩu.\n" -#: lib/utils_crypt.c:442 +#: lib/utils_crypt.c:428 msgid "Maximum keyfile size exceeded.\n" msgstr "Đã vượt quá kích thước tập tin khóa tối đa.\n" -#: lib/utils_crypt.c:447 +#: lib/utils_crypt.c:433 msgid "Cannot read requested amount of data.\n" msgstr "Không thể đọc đống dữ liệu đã yêu cầu.\n" -#: lib/utils_device.c:136 lib/luks1/keyencryption.c:90 +#: lib/utils_fips.c:46 +msgid "FIPS checksum verification failed.\n" +msgstr "Thẩm tra mã băm FIPS không đạt.\n" + +#: lib/utils_fips.c:50 +msgid "Running in FIPS mode.\n" +msgstr "Đang chạy trong chế độ FIPS.\n" + +#: lib/utils_device.c:52 lib/luks1/keyencryption.c:82 #, c-format msgid "Device %s doesn't exist or access denied.\n" msgstr "Thiết bị %s không tồn tại hoặc không đủ quyền truy cập.\n" -#: lib/utils_device.c:430 +#: lib/utils_device.c:346 msgid "Cannot use a loopback device, running as non-root user.\n" -msgstr "" -"Không thể sử dụng thiết-bị vòng ngược (loopback), do không chạy dưới quyền " -"siêu người dùng.\n" +msgstr "Không thể sử dụng thiết-bị vòng lặp (loopback), do không chạy dưới quyền siêu người dùng.\n" -#: lib/utils_device.c:433 +#: lib/utils_device.c:349 msgid "Cannot find a free loopback device.\n" msgstr "Không tìm thấy thiết bị vòng ngược (loopback ) nào còn rảnh.\n" -#: lib/utils_device.c:440 -msgid "" -"Attaching loopback device failed (loop device with autoclear flag is " -"required).\n" -msgstr "" -"Gặp lỗi khi gắn thiết bị vòng ngược (loopback) (thiết bị lặp với cờ " -"autoclear là bắt buộc).\n" +#: lib/utils_device.c:356 +msgid "Attaching loopback device failed (loop device with autoclear flag is required).\n" +msgstr "Gặp lỗi khi gắn thiết bị vòng lặp (loopback) (thiết bị lặp với cờ autoclear là bắt buộc).\n" -#: lib/utils_device.c:484 +#: lib/utils_device.c:396 #, c-format msgid "Cannot use device %s which is in use (already mapped or mounted).\n" -msgstr "" -"Không thể sử dụng thiết bị %s mà nó lại đang được sử dụng (đang được ánh xạ " -"hoặc gắn).\n" +msgstr "Không thể sử dụng thiết bị %s mà nó lại đang được sử dụng (đang được ánh xạ hoặc gắn).\n" -#: lib/utils_device.c:488 +#: lib/utils_device.c:400 #, c-format msgid "Cannot get info about device %s.\n" msgstr "Không thể lấy thông tin về thiết bị %s.\n" -#: lib/utils_device.c:494 +#: lib/utils_device.c:406 #, c-format msgid "Requested offset is beyond real size of device %s.\n" -msgstr "" -"Khoảng bù (offset) đã yêu cầu nằm ngoài kích thước thật của thiết bị %s.\n" +msgstr "Khoảng bù (offset) đã yêu cầu nằm ngoài kích thước thật của thiết bị %s.\n" -#: lib/utils_device.c:502 +#: lib/utils_device.c:414 #, c-format msgid "Device %s has zero size.\n" msgstr "Thiết bị %s có kích cỡ là không.\n" -#: lib/utils_device.c:513 +#: lib/utils_device.c:425 lib/luks1/keymanage.c:89 #, c-format msgid "Device %s is too small.\n" msgstr "Thiết bị %s có kích cỡ quá nhỏ.\n" -#: lib/luks1/keyencryption.c:37 +#: lib/luks1/keyencryption.c:31 #, c-format msgid "" "Failed to setup dm-crypt key mapping for device %s.\n" "Check that kernel supports %s cipher (check syslog for more info).\n" msgstr "" -"Gặp lỗi khi cài đặt ánh xạ khóa dm-crypt cho thiết bị %s.\n" -"Kiểm tra lại hạt nhân hỗ trợ mật mã %s (kiểu tra sổ theo dõi hệ thống để tìm " -"thêm thông tin.)\n" +"Gặp lỗi khi cài đặt ánh xạ khoá dm-crypt cho thiết bị %s.\n" +"Kiểm tra lại hạt nhân hỗ trợ mật mã %s (kiểu tra sổ theo dõi hệ thống để tìm thêm thông tin.)\n" -#: lib/luks1/keyencryption.c:42 +#: lib/luks1/keyencryption.c:36 msgid "Key size in XTS mode must be 256 or 512 bits.\n" -msgstr "Kích thước khóa trong chế độ “XTS” phải là 256 hay 512 bit.\n" +msgstr "Kích thước khóa trong chế độ XTS phải là 256 hay 512 bit.\n" -#: lib/luks1/keyencryption.c:96 lib/luks1/keymanage.c:296 -#: lib/luks1/keymanage.c:572 lib/luks1/keymanage.c:1017 +#: lib/luks1/keyencryption.c:88 lib/luks1/keymanage.c:290 +#: lib/luks1/keymanage.c:559 lib/luks1/keymanage.c:978 #, c-format msgid "Cannot write to device %s, permission denied.\n" msgstr "Không thể ghi thiết bị %s, không đủ thẩm quyền.\n" -#: lib/luks1/keyencryption.c:111 +#: lib/luks1/keyencryption.c:103 msgid "Failed to open temporary keystore device.\n" -msgstr "Gặp lỗi khi mở thiết bị lưu trữ khóa tạm thời.\n" +msgstr "Lỗi mở thiết bị lưu trữ khoá tạm thời.\n" -#: lib/luks1/keyencryption.c:118 +#: lib/luks1/keyencryption.c:110 msgid "Failed to access temporary keystore device.\n" -msgstr "Gl khi truy cập đến thiết bị lưu trữ khóa tạm thời.\n" - -#: lib/luks1/keyencryption.c:191 -msgid "IO error while encrypting keyslot.\n" -msgstr "Lỗi IO (vào/ra) trong quá trình mã hóa khe khóa.\n" - -#: lib/luks1/keyencryption.c:256 -msgid "IO error while decrypting keyslot.\n" -msgstr "Lỗi IO (vào/ra) trong quá trình giải mã khe khóa.\n" +msgstr "Lỗi truy cập đến thiết bị lưu trữ khoá tạm thời.\n" -#: lib/luks1/keymanage.c:90 -#, c-format -msgid "Device %s is too small. (LUKS requires at least % bytes.)\n" -msgstr "Thiết bị %s quá nhỏ. (LUKS cần ít nhất % byte.)\n" - -#: lib/luks1/keymanage.c:180 lib/luks1/keymanage.c:418 -#: src/cryptsetup_reencrypt.c:1110 +#: lib/luks1/keymanage.c:175 lib/luks1/keymanage.c:412 +#: src/cryptsetup_reencrypt.c:978 #, c-format msgid "Device %s is not a valid LUKS device.\n" msgstr "Thiết bị %s không phải là một thiết bị kiểu LUKS đúng.\n" -#: lib/luks1/keymanage.c:198 +#: lib/luks1/keymanage.c:193 #, c-format msgid "Requested header backup file %s already exists.\n" msgstr "Phần đầu tập tin sao lưu dự phòng đã yêu cầu %s đã sẵn có.\n" -#: lib/luks1/keymanage.c:200 +#: lib/luks1/keymanage.c:195 #, c-format msgid "Cannot create header backup file %s.\n" msgstr "Không thể tạo phần đầu của tập tin sao lưu dự phòng %s.\n" -#: lib/luks1/keymanage.c:205 +#: lib/luks1/keymanage.c:200 #, c-format msgid "Cannot write header backup file %s.\n" -msgstr "Không thể ghi tập tin sao lưu phần đầu %s.\n" +msgstr "Không thể ghi nhớ tập tin sao lưu phần đầu %s.\n" -#: lib/luks1/keymanage.c:239 +#: lib/luks1/keymanage.c:233 msgid "Backup file doesn't contain valid LUKS header.\n" msgstr "Tập tin sao lưu không chứa phần đầu LUKS hợp lệ.\n" -#: lib/luks1/keymanage.c:252 lib/luks1/keymanage.c:496 +#: lib/luks1/keymanage.c:246 lib/luks1/keymanage.c:483 #, c-format msgid "Cannot open header backup file %s.\n" msgstr "Không mở được tập tin sao lưu phần đầu %s.\n" -#: lib/luks1/keymanage.c:258 +#: lib/luks1/keymanage.c:252 #, c-format msgid "Cannot read header backup file %s.\n" msgstr "Không đọc được tập tin sao lưu phần đầu %s.\n" -#: lib/luks1/keymanage.c:269 +#: lib/luks1/keymanage.c:263 msgid "Data offset or key size differs on device and backup, restore failed.\n" -msgstr "" -"Khoảng bù dữ liệu hoặc kích cỡ khóa vẫn khác nhau trên thiết bị và bản sao " -"lưu thì chức năng phục hồi bị lỗi.\n" +msgstr "Khoảng bù dữ liệu hoặc kích cỡ khoá vẫn khác nhau trên thiết bị và bản sao lưu thì chức năng phục hồi bị lỗi.\n" -#: lib/luks1/keymanage.c:277 +#: lib/luks1/keymanage.c:271 #, c-format msgid "Device %s %s%s" msgstr "Thiết bị %s %s%s" -#: lib/luks1/keymanage.c:278 -msgid "" -"does not contain LUKS header. Replacing header can destroy data on that " -"device." -msgstr "" -"không chứa phần đầu LUKS. Thay thế phần đầu thì cũng có thể hủy dữ liệu trên " -"thiết bị đó." +#: lib/luks1/keymanage.c:272 +msgid "does not contain LUKS header. Replacing header can destroy data on that device." +msgstr "không chứa phần đầu LUKS. Thay thế phần đầu thì cũng có thể hủy dữ liệu trên thiết bị đó." -#: lib/luks1/keymanage.c:279 -msgid "" -"already contains LUKS header. Replacing header will destroy existing " -"keyslots." -msgstr "" -"đã chứa phần đầu LUKS. Thay thế phần đầu thì cũng hủy các khe khóa đã có." +#: lib/luks1/keymanage.c:273 +msgid "already contains LUKS header. Replacing header will destroy existing keyslots." +msgstr "đã chứa phần đầu LUKS. Thay thế phần đầu thì cũng hủy các khe khoá đã có." -#: lib/luks1/keymanage.c:280 +#: lib/luks1/keymanage.c:274 msgid "" "\n" "WARNING: real device header has different UUID than backup!" msgstr "" "\n" -"CẢNH BÁO: phần đầu thiết bị thật có mã số “UUID” khác với bản sao lưu!" +"CẢNH BÁO: phần đầu thiết bị thật có mã số UUID khác với bản sao lưu!" -#: lib/luks1/keymanage.c:299 lib/luks1/keymanage.c:535 -#: lib/luks1/keymanage.c:575 lib/tcrypt/tcrypt.c:624 lib/verity/verity.c:82 +#: lib/luks1/keymanage.c:293 lib/luks1/keymanage.c:522 +#: lib/luks1/keymanage.c:562 lib/tcrypt/tcrypt.c:581 lib/verity/verity.c:82 #: lib/verity/verity.c:179 lib/verity/verity_hash.c:292 #: lib/verity/verity_hash.c:303 lib/verity/verity_hash.c:323 #, c-format msgid "Cannot open device %s.\n" msgstr "Không thể mở thiết bị %s.\n" -#: lib/luks1/keymanage.c:329 +#: lib/luks1/keymanage.c:323 msgid "Non standard key size, manual repair required.\n" msgstr "Kích thước khóa không tiêu chuẩn, yêu cầu sửa chữa bằng tay.\n" -#: lib/luks1/keymanage.c:334 +#: lib/luks1/keymanage.c:328 msgid "Non standard keyslots alignment, manual repair required.\n" -msgstr "" -"Không thể đồng chỉnh các khe khóa (keyslot) tiêu chuẩn, yêu cầu sửa chữa " -"bằng tay.\n" +msgstr "Không thể đồng chỉnh các khe khóa (keyslot) tiêu chuẩn, yêu cầu sửa chữa bằng tay.\n" -#: lib/luks1/keymanage.c:340 +#: lib/luks1/keymanage.c:334 msgid "Repairing keyslots.\n" -msgstr "Đang chuẩn bị các khe khóa (keyslots).\n" +msgstr "Đang chuẩn bị keyslots.\n" -#: lib/luks1/keymanage.c:351 +#: lib/luks1/keymanage.c:345 msgid "Repair failed." -msgstr "Gặp lỗi khi sửa chữa." +msgstr "Sửa chữa gặp lỗi." -#: lib/luks1/keymanage.c:363 +#: lib/luks1/keymanage.c:357 #, c-format msgid "Keyslot %i: offset repaired (%u -> %u).\n" -msgstr "Khe-khóa (keyslot) %i: khoảng bù (offset) được sửa chữa (%u -> %u).\n" +msgstr "Khe-khoá (keyslot) %i: khoảng bù (offset) được sửa chữa (%u -> %u).\n" -#: lib/luks1/keymanage.c:371 +#: lib/luks1/keymanage.c:365 #, c-format msgid "Keyslot %i: stripes repaired (%u -> %u).\n" -msgstr "Khe-khóa (keyslot) %i: stripes được sửa chữa (%u -> %u).\n" +msgstr "Khe-khoá (keyslot) %i: stripes được sửa chữa (%u -> %u).\n" -#: lib/luks1/keymanage.c:380 +#: lib/luks1/keymanage.c:374 #, c-format msgid "Keyslot %i: bogus partition signature.\n" -msgstr "Khe-khóa (keyslot) %i: chữ ký phân vùng không có thật.\n" +msgstr "Khe-khoá (keyslot) %i: chữ ký phân vùng không có thật.\n" -#: lib/luks1/keymanage.c:385 +#: lib/luks1/keymanage.c:379 #, c-format msgid "Keyslot %i: salt wiped.\n" -msgstr "Khe-khóa (keyslot) %i: muối bị tẩy xóa.\n" +msgstr "Khe-khoá (keyslot) %i: salt bị tẩy xóa.\n" -#: lib/luks1/keymanage.c:396 +#: lib/luks1/keymanage.c:390 msgid "Writing LUKS header to disk.\n" msgstr "Đang ghi phần đầu của LUKS lên đĩa.\n" -#: lib/luks1/keymanage.c:421 +#: lib/luks1/keymanage.c:415 #, c-format msgid "Unsupported LUKS version %d.\n" msgstr "Phiên bản LUKS không được hỗ trợ %d.\n" -#: lib/luks1/keymanage.c:427 lib/luks1/keymanage.c:661 +#: lib/luks1/keymanage.c:421 lib/luks1/keymanage.c:626 #, c-format msgid "Requested LUKS hash %s is not supported.\n" msgstr "Không hỗ trợ chuỗi duy nhất LUKS %s được yêu cầu.\n" -#: lib/luks1/keymanage.c:442 +#: lib/luks1/keymanage.c:436 #, c-format msgid "LUKS keyslot %u is invalid.\n" -msgstr "khe-khóa LUKS %u là không hợp lệ.\n" +msgstr "khe-khoá LUKS %u là không hợp lệ.\n" -#: lib/luks1/keymanage.c:456 src/cryptsetup.c:668 +#: lib/luks1/keymanage.c:450 src/cryptsetup.c:596 msgid "No known problems detected for LUKS header.\n" msgstr "Không phát hiện thấy vấn đề với phần đầu LUKS.\n" -#: lib/luks1/keymanage.c:596 +#: lib/luks1/keymanage.c:583 #, c-format msgid "Error during update of LUKS header on device %s.\n" msgstr "Gặp lỗi trong khi cập nhật phần đầu LUKS trên thiết bị %s.\n" -#: lib/luks1/keymanage.c:603 +#: lib/luks1/keymanage.c:590 #, c-format msgid "Error re-reading LUKS header after update on device %s.\n" -msgstr "" -"Gặp lỗi trong khi đọc lại phần đầu LUKS sau khi cập nhật trên thiết bị %s.\n" +msgstr "Gặp lỗi trong khi đọc lại phần đầu LUKS sau khi cập nhật trên thiết bị %s.\n" -#: lib/luks1/keymanage.c:654 +#: lib/luks1/keymanage.c:619 #, c-format -msgid "" -"Data offset for detached LUKS header must be either 0 or higher than header " -"size (%d sectors).\n" -msgstr "" -"Khoảng bù dữ liệu cho phần đầu LUKS tách rời phải hoặc là 0 hoặc là lớn hơn " -"kích thước phần đầu (%d cung từ).\n" +msgid "Data offset for detached LUKS header must be either 0 or higher than header size (%d sectors).\n" +msgstr "Khoảng bù dữ liệu cho phần đầu LUKS tách rời phải hoặc là 0 hoặc là lớn hơn kích thước phần đầu (%d cung từ).\n" -#: lib/luks1/keymanage.c:666 lib/luks1/keymanage.c:757 +#: lib/luks1/keymanage.c:631 lib/luks1/keymanage.c:718 msgid "Wrong LUKS UUID format provided.\n" msgstr "Đưa ra định dạng mã số UUID LUKS không đúng.\n" -#: lib/luks1/keymanage.c:695 +#: lib/luks1/keymanage.c:656 msgid "Cannot create LUKS header: reading random salt failed.\n" msgstr "Không thể tạo phần đầu LUKS: lỗi đọc salt ngẫu nhiên.\n" -#: lib/luks1/keymanage.c:702 lib/luks1/keymanage.c:798 +#: lib/luks1/keymanage.c:663 lib/luks1/keymanage.c:759 #, c-format msgid "Not compatible PBKDF2 options (using hash algorithm %s).\n" -msgstr "" -"Gặp các tùy chọn PBKDF2 không tương thích (dùng thuật toán chuỗi duy nhất " -"%s).\n" +msgstr "Gặp các tùy chọn PBKDF2 không tương thích (dùng thuật toán chuỗi duy nhất %s).\n" -#: lib/luks1/keymanage.c:717 +#: lib/luks1/keymanage.c:678 #, c-format msgid "Cannot create LUKS header: header digest failed (using hash %s).\n" -msgstr "" -"Không thể tạo phần đầu LUKS: lỗi tạo bản tóm tắt (dùng chuỗi duy nhất %s).\n" +msgstr "Không thể tạo phần đầu LUKS: lỗi tạo bản tóm tắt (dùng chuỗi duy nhất %s).\n" -#: lib/luks1/keymanage.c:782 +#: lib/luks1/keymanage.c:743 #, c-format msgid "Key slot %d active, purge first.\n" -msgstr "Khe khóa %d vẫn hoạt động: cần tẩy trước.\n" +msgstr "Khe khoá %d vẫn hoạt động: cần tẩy trước.\n" -#: lib/luks1/keymanage.c:788 +#: lib/luks1/keymanage.c:749 #, c-format msgid "Key slot %d material includes too few stripes. Header manipulation?\n" -msgstr "" -"Nguyên liệu khe khóa %d gồm có quá ít sọc. Có nên thao tác phần đầu không?\n" +msgstr "Nguyên liệu khe khoá %d gồm có quá ít sọc. Có nên thao tác phần đầu không?\n" -#: lib/luks1/keymanage.c:950 +#: lib/luks1/keymanage.c:911 #, c-format msgid "Key slot %d unlocked.\n" -msgstr "Khe khóa %d được mở khóa.\n" +msgstr "Khe khoá %d được mở khoá.\n" -#: lib/luks1/keymanage.c:985 src/cryptsetup.c:858 -#: src/cryptsetup_reencrypt.c:999 src/cryptsetup_reencrypt.c:1036 +#: lib/luks1/keymanage.c:946 src/cryptsetup.c:796 +#: src/cryptsetup_reencrypt.c:882 src/cryptsetup_reencrypt.c:916 msgid "No key available with this passphrase.\n" -msgstr "Không có khóa sẵn sàng dùng với cụm từ mật khẩu này.\n" +msgstr "Không có khoá sẵn sàng dùng với cụm từ mật khẩu này.\n" -#: lib/luks1/keymanage.c:1003 +#: lib/luks1/keymanage.c:964 #, c-format msgid "Key slot %d is invalid, please select keyslot between 0 and %d.\n" -msgstr "Khe khóa %d không đúng: hãy chọn khe khóa trong phạm vi 0 đến %d.\n" +msgstr "Khe khoá %d không đúng: hãy chọn khe khoá trong phạm vi 0 đến %d.\n" -#: lib/luks1/keymanage.c:1021 +#: lib/luks1/keymanage.c:982 #, c-format msgid "Cannot wipe device %s.\n" -msgstr "Không thể tẩy thiết bị %s.\n" +msgstr "Không thể xoá thiết bị %s.\n" #: lib/loopaes/loopaes.c:146 msgid "Detected not yet supported GPG encrypted keyfile.\n" @@ -690,65 +641,69 @@ msgstr "Tìm thấy tập tin khóa mã hóa GPG vẫn chưa được hỗ trợ #: lib/loopaes/loopaes.c:147 msgid "Please use gpg --decrypt | cryptsetup --keyfile=- ...\n" -msgstr "Hãy dùng gpg --decrypt | cryptsetup --keyfile=- …\n" +msgstr "Hãy dùng gpg --decrypt | cryptsetup --keyfile=- ...\n" #: lib/loopaes/loopaes.c:168 lib/loopaes/loopaes.c:188 msgid "Incompatible loop-AES keyfile detected.\n" -msgstr "Tập tin khóa (keyfile) loop-AES không tương thích được tìm thấy.\n" +msgstr "Tập tin khoá (keyfile) loop-AES không tương thích được tìm thấy.\n" #: lib/loopaes/loopaes.c:244 msgid "Kernel doesn't support loop-AES compatible mapping.\n" msgstr "Nhân không hỗ trợ ánh xạ tương thích loop-AES.\n" -#: lib/tcrypt/tcrypt.c:475 +#: lib/tcrypt/tcrypt.c:451 #, c-format msgid "Error reading keyfile %s.\n" msgstr "Gặp lỗi khi đọc tập-tin khóa %s.\n" -#: lib/tcrypt/tcrypt.c:513 +#: lib/tcrypt/tcrypt.c:489 #, c-format msgid "Maximum TCRYPT passphrase length (%d) exceeded.\n" msgstr "Độ dài cụm từ mật khẩu TCRYPT tối đa (%d) đã bị vượt quá.\n" -#: lib/tcrypt/tcrypt.c:543 +#: lib/tcrypt/tcrypt.c:518 #, c-format msgid "PBKDF2 hash algorithm %s not available, skipping.\n" msgstr "Thuật toán băm PBKDF2 không khả dụng %s, bỏ qua.\n" -#: lib/tcrypt/tcrypt.c:561 src/cryptsetup.c:621 +#: lib/tcrypt/tcrypt.c:536 src/cryptsetup.c:549 msgid "Required kernel crypto interface not available.\n" msgstr "Giao diện mã hóa từ nhân đã yêu cầu không khả dụng.\n" -#: lib/tcrypt/tcrypt.c:563 src/cryptsetup.c:623 +#: lib/tcrypt/tcrypt.c:538 src/cryptsetup.c:551 msgid "Ensure you have algif_skcipher kernel module loaded.\n" msgstr "Bạn cần chắc chắn là mô-đun nhân algif_skcipher đã được tải.\n" -#: lib/tcrypt/tcrypt.c:707 +#: lib/tcrypt/tcrypt.c:591 +#, c-format +msgid "WARNING: device %s is a partition, for TCRYPT system encryption you usually need to use whole block device path.\n" +msgstr "CẢNH BÁO: thiết-bị %s là một phân vùng, với mã hóa hệ thống TCRYPT bạn thường cần phải sử dụng toàn bộ đường dẫn thiết-bị khối.\n" + +#: lib/tcrypt/tcrypt.c:667 #, c-format msgid "Activation is not supported for %d sector size.\n" msgstr "Hoạt hóa không được hỗ trợ cho kích thước cung %d.\n" -#: lib/tcrypt/tcrypt.c:713 +#: lib/tcrypt/tcrypt.c:673 msgid "Kernel doesn't support activation for this TCRYPT legacy mode.\n" msgstr "Nhân không hỗ trợ hoạt hóa cho chế độ cũ của TCRYPT.\n" -#: lib/tcrypt/tcrypt.c:744 +#: lib/tcrypt/tcrypt.c:701 #, c-format msgid "Activating TCRYPT system encryption for partition %s.\n" msgstr "Đang kích hoạt mã hóa hệ thống TCRYPT cho phân vùng %s.\n" -#: lib/tcrypt/tcrypt.c:806 -msgid "Kernel doesn't support TCRYPT compatible mapping.\n" -msgstr "Nhân không hỗ trợ ánh xạ tương thích TCRYPT.\n" +#: lib/tcrypt/tcrypt.c:756 +msgid "Kernel doesn't support plain64 IV.\n" +msgstr "Nhân không hỗ trợ plain64 IV.\n" -#: lib/tcrypt/tcrypt.c:1020 +#: lib/tcrypt/tcrypt.c:961 msgid "This function is not supported without TCRYPT header load." msgstr "Chức năng này không được hỗ trợ mà không có phần tải đầu TCRYPT." #: lib/verity/verity.c:70 lib/verity/verity.c:172 -#, c-format -msgid "Verity device %s doesn't use on-disk header.\n" -msgstr "Thiết bị xác thực %s không sử dụng phần đầu on-disk.\n" +msgid "Verity device doesn't use on-disk header.\n" +msgstr "Thiết bị xác thực không sử dụng phần đầu on-disk.\n" #: lib/verity/verity.c:94 #, c-format @@ -765,9 +720,8 @@ msgid "VERITY header corrupted.\n" msgstr "phần đầu VERITY sai hỏng.\n" #: lib/verity/verity.c:166 -#, c-format -msgid "Wrong VERITY UUID format provided on device %s.\n" -msgstr "Đưa ra định dạng mã số VERITY không đúng trên thiết bị %s.\n" +msgid "Wrong VERITY UUID format provided.\n" +msgstr "Đưa ra định dạng mã số UUID VERITY không đúng.\n" #: lib/verity/verity.c:196 #, c-format @@ -823,47 +777,31 @@ msgstr "Việc tạo vùng dữ liệu băm gặp lỗi.\n" #: lib/verity/verity_hash.c:414 #, c-format -msgid "" -"WARNING: Kernel cannot activate device if data block size exceeds page size " -"(%u).\n" -msgstr "" -"CẢNH BÁO: Nhân (kernel) không thể kích hoạt thiết bị nếu kích thước khối dữ " -"liệu vượt quá kích cỡ trang (%u).\n" +msgid "WARNING: Kernel cannot activate device if data block size exceeds page size (%u).\n" +msgstr "CẢNH BÁO: Nhân (kernel) không thể kích hoạt thiết bị nếu kích thước khối dữ liệu vượt quá kích cỡ trang (%u).\n" -#: src/cryptsetup.c:91 +#: src/cryptsetup.c:79 msgid "Can't do passphrase verification on non-tty inputs.\n" msgstr "Không thể thẩm tra cụm từ mật khẩu trên đầu vào khác TTY.\n" -#: src/cryptsetup.c:133 src/cryptsetup.c:564 src/cryptsetup.c:711 -#: src/cryptsetup_reencrypt.c:502 src/cryptsetup_reencrypt.c:556 +#: src/cryptsetup.c:110 +msgid "Ignoring keyfile offset and size options, keyfile read size is always the same as encryption key size.\n" +msgstr "Đang bỏ qua các tùy-chọn khảng bù và kích thước tập-tin-khóa, kích thước đọc tập-tin-khóa thì luôn giống với kích thước khóa mã hóa.\n" + +#: src/cryptsetup.c:116 src/cryptsetup.c:495 src/cryptsetup.c:639 +#: src/cryptsetup_reencrypt.c:485 src/cryptsetup_reencrypt.c:520 msgid "No known cipher specification pattern detected.\n" msgstr "Không phát hiện mẫu đặc tả mã hóa đã biết.\n" -#: src/cryptsetup.c:144 -msgid "" -"WARNING: The --hash parameter is being ignored in plain mode with keyfile " -"specified.\n" -msgstr "" -"CẢNH BÁO: Tham số --hash bị bỏ qua trong chế độ thường với tập tin khóa đã " -"cho.\n" - -#: src/cryptsetup.c:152 -msgid "" -"WARNING: The --keyfile-size option is being ignored, the read size is the " -"same as the encryption key size.\n" -msgstr "" -"CẢNH BÁO: Đang bỏ qua các tùy chọn kích thước tập-tin-khóa --keyfile-size " -"--, kích thước đọc giống với kích thước khóa mã hóa.\n" - -#: src/cryptsetup.c:218 +#: src/cryptsetup.c:183 msgid "Option --key-file is required.\n" msgstr "Cần tùy chọn “--key-file”.\n" -#: src/cryptsetup.c:267 +#: src/cryptsetup.c:254 src/cryptsetup.c:340 msgid "No device header detected with this passphrase.\n" msgstr "Không có phần đầu thiết bị cho cụm từ mật khẩu này.\n" -#: src/cryptsetup.c:327 src/cryptsetup.c:1140 +#: src/cryptsetup.c:269 src/cryptsetup.c:1065 msgid "" "Header dump with volume key is sensitive information\n" "which allows access to encrypted partition without passphrase.\n" @@ -873,244 +811,218 @@ msgstr "" "cái mà cho phép truy cập phân vùng được mã hóa mà không cần mật khẩu.\n" "Việc đổ đống này nên luôn được lưu trữ mã hóa tại một nơi an toàn." -#: src/cryptsetup.c:517 -msgid "Result of benchmark is not reliable.\n" -msgstr "Kết quả đo kiểm không đáng tin cậy.\n" - -#: src/cryptsetup.c:558 +#: src/cryptsetup.c:489 msgid "# Tests are approximate using memory only (no storage IO).\n" -msgstr "" -"# Các kiểm tra là chỉ ước lượng việc sử dụng bộ nhớ (không tính IO ổ đĩa).\n" +msgstr "# Các kiểm tra là chỉ ước lượng việc sử dụng bộ nhớ (không tính IO ổ đĩa).\n" -#: src/cryptsetup.c:583 src/cryptsetup.c:605 +#: src/cryptsetup.c:511 src/cryptsetup.c:533 msgid "# Algorithm | Key | Encryption | Decryption\n" msgstr "# Thuật toán| Khóa| Mã hóa | Giải mã\n" -#: src/cryptsetup.c:587 +#: src/cryptsetup.c:515 #, c-format msgid "Cipher %s is not available.\n" msgstr "Mã hóa kiểu %s không sẵn có.\n" -#: src/cryptsetup.c:614 +#: src/cryptsetup.c:542 msgid "N/A" msgstr "N/A" -#: src/cryptsetup.c:639 +#: src/cryptsetup.c:567 #, c-format msgid "Cannot read keyfile %s.\n" msgstr "Không thể đọc tập-tin khóa %s.\n" -#: src/cryptsetup.c:643 +#: src/cryptsetup.c:571 #, c-format msgid "Cannot read %d bytes from keyfile %s.\n" msgstr "Không thể đọc %d byte từ tập tin khóa %s.\n" -#: src/cryptsetup.c:672 +#: src/cryptsetup.c:600 msgid "Really try to repair LUKS device header?" msgstr "Bạn có thực sự muốn thử sửa chữa phần đầu thiết bị LUKS không?" -#: src/cryptsetup.c:697 +#: src/cryptsetup.c:625 #, c-format msgid "This will overwrite data on %s irrevocably." -msgstr "" -"Thao tác này sẽ ghi đè lên dữ liệu trên thiết bị %s một cách không phục hồi " -"được." +msgstr "Hành động này sẽ ghi đè lên dữ liệu trên thiết bị %s một cách không phục hồi được." -#: src/cryptsetup.c:699 +#: src/cryptsetup.c:627 msgid "memory allocation error in action_luksFormat" msgstr "gặp lỗi phân cấp vùng nhớ trong“action_luksFormat”" -#: src/cryptsetup.c:717 +#: src/cryptsetup.c:645 #, c-format msgid "Cannot use %s as on-disk header.\n" msgstr "Không thể sử dụng %s như là phần đầu on-disk.\n" -#: src/cryptsetup.c:784 +#: src/cryptsetup.c:718 msgid "Reduced data offset is allowed only for detached LUKS header.\n" -msgstr "" -"Giảm khoảng bù (offset) dữ liệu chỉ cho phép khi phần đầu LUKS được tách " -"rời.\n" +msgstr "Giảm khoảng bù (offset) dữ liệu chỉ cho phép khi phần đầu LUKS được tách rời.\n" -#: src/cryptsetup.c:881 src/cryptsetup.c:937 +#: src/cryptsetup.c:819 src/cryptsetup.c:875 #, c-format msgid "Key slot %d selected for deletion.\n" -msgstr "Khe khóa %d đã được chọn để xóa.\n" +msgstr "Khe khoá %d đã được chọn để xoá.\n" -#: src/cryptsetup.c:884 +#: src/cryptsetup.c:822 #, c-format msgid "Key %d not active. Can't wipe.\n" -msgstr "Khóa %d không hoạt động thì không xóa được.\n" +msgstr "Khoá %d không hoạt động thì không xoá được.\n" -#: src/cryptsetup.c:892 src/cryptsetup.c:940 -msgid "" -"This is the last keyslot. Device will become unusable after purging this key." -msgstr "" -"Đây là khe khóa cuối cùng. Sau khi tẩy khóa này thì thiết bị không dùng được." +#: src/cryptsetup.c:830 src/cryptsetup.c:878 +msgid "This is the last keyslot. Device will become unusable after purging this key." +msgstr "Đây là khe khoá cuối cùng. Sau khi tẩy khoá này thì thiết bị không dùng được." -#: src/cryptsetup.c:893 +#: src/cryptsetup.c:831 msgid "Enter any remaining passphrase: " -msgstr "Gõ cụm từ mật khẩu bất kỳ còn lại: " +msgstr "Gõ cụm từ mật khẩu bất kỳ còn lại:" -#: src/cryptsetup.c:921 +#: src/cryptsetup.c:859 msgid "Enter passphrase to be deleted: " -msgstr "Gõ cụm từ mật khẩu cần xóa: " +msgstr "Gõ cụm từ mật khẩu cần xoá:" -#: src/cryptsetup.c:1003 src/cryptsetup_reencrypt.c:1074 -#, c-format +#: src/cryptsetup.c:928 src/cryptsetup_reencrypt.c:948 msgid "Enter any existing passphrase: " -msgstr "Hãy nhập mật khẩu bất kỳ sẵn có: " +msgstr "Hãy nhập mật khẩu bất kỳ sẵn có:" -#: src/cryptsetup.c:1052 +#: src/cryptsetup.c:977 msgid "Enter passphrase to be changed: " -msgstr "Gõ cụm từ mật khẩu cần được thay đổi: " +msgstr "Gõ cụm từ mật khẩu cần được thay đổi:" -#: src/cryptsetup.c:1066 src/cryptsetup_reencrypt.c:1059 +#: src/cryptsetup.c:991 src/cryptsetup_reencrypt.c:934 msgid "Enter new passphrase: " -msgstr "Gõ cụm từ mật khẩu mới: " +msgstr "Gõ cụm từ mật khẩu mới:" -#: src/cryptsetup.c:1090 +#: src/cryptsetup.c:1015 msgid "Only one device argument for isLuks operation is supported.\n" msgstr "Chỉ hỗ trợ một đối số thiết-bị dành cho thao tác isLuks.\n" -#: src/cryptsetup.c:1246 src/cryptsetup.c:1267 +#: src/cryptsetup.c:1171 src/cryptsetup.c:1192 msgid "Option --header-backup-file is required.\n" msgstr "Cần tùy chọn“--header-backup-file”.\n" -#: src/cryptsetup.c:1304 +#: src/cryptsetup.c:1229 #, c-format msgid "Unrecognized metadata device type %s.\n" msgstr "Không nhận ra siêu dữ liệu của kiểu thiết bị %s.\n" -#: src/cryptsetup.c:1307 +#: src/cryptsetup.c:1232 msgid "Command requires device and mapped name as arguments.\n" msgstr "Lệnh cần thiết bị và tên ánh xạ như là các tham số.\n" -#: src/cryptsetup.c:1326 -#, c-format -msgid "" -"This operation will erase all keyslots on device %s.\n" -"Device will become unusable after this operation." -msgstr "" -"Thao tác này sẽ tẩy mọi khe khóa trên thiết bị %s.\n" -"Thiết bị sẽ không dùng được sau thao tác này." - -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid " [--type ] []" msgstr " [--type ] []" -#: src/cryptsetup.c:1360 +#: src/cryptsetup.c:1244 msgid "open device as mapping " msgstr "mở thiết bị như là ánh xạ " -#: src/cryptsetup.c:1361 src/cryptsetup.c:1362 src/cryptsetup.c:1363 -#: src/cryptsetup.c:1364 src/veritysetup.c:311 src/veritysetup.c:312 +#: src/cryptsetup.c:1245 src/cryptsetup.c:1246 src/cryptsetup.c:1247 +#: src/cryptsetup.c:1248 src/veritysetup.c:310 src/veritysetup.c:311 msgid "" msgstr "" -#: src/cryptsetup.c:1361 +#: src/cryptsetup.c:1245 msgid "close device (remove mapping)" msgstr "đóng thiết bị (gỡ bỏ ánh xạ)" -#: src/cryptsetup.c:1362 +#: src/cryptsetup.c:1246 msgid "resize active device" msgstr "thay đổi kích cỡ của thiết bị hoạt động" -#: src/cryptsetup.c:1363 +#: src/cryptsetup.c:1247 msgid "show device status" msgstr "hiển thị trạng thái về thiết bị" -#: src/cryptsetup.c:1364 +#: src/cryptsetup.c:1248 msgid "benchmark cipher" -msgstr "đo kiểm tốc độ mã hóa" +msgstr "đo kiểm mật mã" -#: src/cryptsetup.c:1365 src/cryptsetup.c:1366 src/cryptsetup.c:1372 -#: src/cryptsetup.c:1373 src/cryptsetup.c:1374 src/cryptsetup.c:1375 -#: src/cryptsetup.c:1376 src/cryptsetup.c:1377 src/cryptsetup.c:1378 -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1249 src/cryptsetup.c:1255 src/cryptsetup.c:1256 +#: src/cryptsetup.c:1257 src/cryptsetup.c:1258 src/cryptsetup.c:1259 +#: src/cryptsetup.c:1260 src/cryptsetup.c:1261 src/cryptsetup.c:1262 msgid "" msgstr "" -#: src/cryptsetup.c:1365 +#: src/cryptsetup.c:1249 msgid "try to repair on-disk metadata" msgstr "thử sửa chữa siêu dữ liệu (metadata) on-disk" -#: src/cryptsetup.c:1366 -msgid "erase all keyslots (remove encryption key)" -msgstr "tẩy mọi khe khóa (gỡ bỏ khóa mã hóa)" - -#: src/cryptsetup.c:1367 src/cryptsetup.c:1368 +#: src/cryptsetup.c:1250 src/cryptsetup.c:1251 msgid " []" -msgstr " []" +msgstr " []" -#: src/cryptsetup.c:1367 +#: src/cryptsetup.c:1250 msgid "formats a LUKS device" msgstr "định dạng một thiết bị kiểu LUKS" -#: src/cryptsetup.c:1368 +#: src/cryptsetup.c:1251 msgid "add key to LUKS device" -msgstr "thêm khóa vào thiết bị LUKS" +msgstr "thêm khoá vào thiết bị LUKS" -#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 +#: src/cryptsetup.c:1252 src/cryptsetup.c:1253 msgid " []" -msgstr " []" +msgstr " []" -#: src/cryptsetup.c:1369 +#: src/cryptsetup.c:1252 msgid "removes supplied key or key file from LUKS device" -msgstr "gỡ bỏ khỏi thiết bị LUKS khóa hoặc tập tin khóa đưa ra" +msgstr "gỡ bỏ khỏi thiết bị LUKS khoá hoặc tập tin khoá đưa ra" -#: src/cryptsetup.c:1370 +#: src/cryptsetup.c:1253 msgid "changes supplied key or key file of LUKS device" msgstr "thay đổi khóa hay tập tin khóa đã áp dụng của thiết bị LUKS" -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid " " -msgstr " " +msgstr " " -#: src/cryptsetup.c:1371 +#: src/cryptsetup.c:1254 msgid "wipes key with number from LUKS device" -msgstr "xóa khỏi thiết bị LUKS khóa có số " +msgstr "xoá khỏi thiết bị LUKS khoá có số " -#: src/cryptsetup.c:1372 +#: src/cryptsetup.c:1255 msgid "print UUID of LUKS device" msgstr "in ra mã số UUID của thiết bị LUKS" -#: src/cryptsetup.c:1373 +#: src/cryptsetup.c:1256 msgid "tests for LUKS partition header" msgstr "thử có phần đầu phân vùng LUKS không" -#: src/cryptsetup.c:1374 +#: src/cryptsetup.c:1257 msgid "dump LUKS partition information" msgstr "đổ thông tin về phân vùng LUKS" -#: src/cryptsetup.c:1375 +#: src/cryptsetup.c:1258 msgid "dump TCRYPT device information" msgstr "dump thông tin thiết bị TCRYPT" -#: src/cryptsetup.c:1376 +#: src/cryptsetup.c:1259 msgid "Suspend LUKS device and wipe key (all IOs are frozen)." -msgstr "Ngưng thiết bị LUKS và tẩy khóa (thì mọi việc V/R đều đông cứng)." +msgstr "Ngưng thiết bị LUKS và xoá khoá (thì mọi việc V/R đều đông cứng)." -#: src/cryptsetup.c:1377 +#: src/cryptsetup.c:1260 msgid "Resume suspended LUKS device." msgstr "Tiếp tục lại sử dụng thiết bị LUKS bị ngưng." -#: src/cryptsetup.c:1378 +#: src/cryptsetup.c:1261 msgid "Backup LUKS device header and keyslots" -msgstr "Sao lưu phần đầu và các khe khóa của thiết bị LUKS" +msgstr "Sao lưu phần đầu và các khe khoá của thiết bị LUKS" -#: src/cryptsetup.c:1379 +#: src/cryptsetup.c:1262 msgid "Restore LUKS device header and keyslots" -msgstr "Phục hồi phần đầu và các khe khóa của thiết bị LUKS" +msgstr "Phục hồi phần đầu và các khe khoá của thiết bị LUKS" -#: src/cryptsetup.c:1396 src/veritysetup.c:328 +#: src/cryptsetup.c:1279 src/veritysetup.c:327 msgid "" "\n" " is one of:\n" msgstr "" "\n" -" là một trong:\n" +" là một trong:\n" -#: src/cryptsetup.c:1402 +#: src/cryptsetup.c:1285 msgid "" "\n" "You can also use old syntax aliases:\n" @@ -1118,11 +1030,11 @@ msgid "" "\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" msgstr "" "\n" -"Bạn còn có thể sử dụng cú pháp bí danh kiểu cũ:\n" +"Bạn còn có thể sử dụng cú pháp bí danh kiểu cũ:\n" "\topen: create (plainOpen), luksOpen, loopaesOpen, tcryptOpen\n" "\tclose: remove (plainClose), luksClose, loopaesClose, tcryptClose\n" -#: src/cryptsetup.c:1406 +#: src/cryptsetup.c:1289 #, c-format msgid "" "\n" @@ -1134,26 +1046,23 @@ msgstr "" "\n" " là thiết bị cần tạo dưới %s\n" " là thiết bị đã mã hóa\n" -" là số thứ tự khe khóa LUKS cần sửa đổi\n" -" là tập tin khóa tùy chọn cho khóa mới trong thao tác " -"luksAddKey\n" +" là số thứ tự khe khoá LUKS cần sửa đổi\n" +" là tập tin khoá tùy chọn cho khoá mới trong hành động luksAddKey\n" -#: src/cryptsetup.c:1413 +#: src/cryptsetup.c:1296 #, c-format msgid "" "\n" "Default compiled-in key and passphrase parameters:\n" -"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d " -"(characters)\n" +"\tMaximum keyfile size: %dkB, Maximum interactive passphrase length %d (characters)\n" "Default PBKDF2 iteration time for LUKS: %d (ms)\n" msgstr "" "\n" -"Các tham số mặc định liên quan đến khóa và mật khẩu được biên dịch sẵn:\n" -"\tĐộ dài tập tin khóa tối đa: %dkB, Độ dài mật khẩu tương tác tối đa %d (ký " -"tự)\n" +"Các tham số khóa tập tin mặc định đã được dịch sẵn:\n" +"\tKích thước tập tin khóa tối đa: %dkB, Độ dài mật khẩu trao đổi tối đa %d (ký tự)\n" "Thời gian tương tác PBKDF2 mặc định cho LUKS: %d (ms)\n" -#: src/cryptsetup.c:1420 +#: src/cryptsetup.c:1303 #, c-format msgid "" "\n" @@ -1163,377 +1072,328 @@ msgid "" "\tLUKS1: %s, Key: %d bits, LUKS header hashing: %s, RNG: %s\n" msgstr "" "\n" -"Các tham số mặc định liên quan đến việc mã hóa được đặt sẵn:\n" +"Các tham số mặc định về mã hóa thiết bị biên dịch sẵn:\n" "\tloop-AES: %s, Khóa %d bit\n" -"\tdữ liệu thô: %s, Khóa: %d bit, Kiểu băm mật khẩu: %s\n" -"\tLUKS1: %s, Khóa: %d bit, Kiểu băm cho phần đầu LUKS: %s, RNG: %s\n" +"\tbình thường: %s, Khoá: %d bit, Mã băm mật khẩu: %s\n" +"\tLUKS1: %s, Khoá: %d bit, Mã băm phần đầu LUKS: %s, RNG: %s\n" -#: src/cryptsetup.c:1437 src/veritysetup.c:460 +#: src/cryptsetup.c:1320 src/veritysetup.c:459 #, c-format msgid "%s: requires %s as arguments" msgstr "%s: cần thiết %s làm đối số" -#: src/cryptsetup.c:1470 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1253 +#: src/cryptsetup.c:1353 src/veritysetup.c:367 src/cryptsetup_reencrypt.c:1099 msgid "Show this help message" msgstr "Hiển thị trợ giúp này" -#: src/cryptsetup.c:1471 src/veritysetup.c:369 src/cryptsetup_reencrypt.c:1254 +#: src/cryptsetup.c:1354 src/veritysetup.c:368 src/cryptsetup_reencrypt.c:1100 msgid "Display brief usage" msgstr "Hiển thị thông tin ngắn về cách sử dụng" -#: src/cryptsetup.c:1475 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1258 +#: src/cryptsetup.c:1358 src/veritysetup.c:372 src/cryptsetup_reencrypt.c:1104 msgid "Help options:" msgstr "Tùy chọn trợ giúp:" -#: src/cryptsetup.c:1476 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1259 +#: src/cryptsetup.c:1359 src/veritysetup.c:373 src/cryptsetup_reencrypt.c:1105 msgid "Print package version" msgstr "Hiển thị phiên bản của gói" -#: src/cryptsetup.c:1477 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1260 +#: src/cryptsetup.c:1360 src/veritysetup.c:374 src/cryptsetup_reencrypt.c:1106 msgid "Shows more detailed error messages" msgstr "Hiển thị các thông điệp lỗi chi tiết hơn" -#: src/cryptsetup.c:1478 src/veritysetup.c:376 src/cryptsetup_reencrypt.c:1261 +#: src/cryptsetup.c:1361 src/veritysetup.c:375 src/cryptsetup_reencrypt.c:1107 msgid "Show debug messages" msgstr "Hiển thị thông điệp gỡ lỗi" -#: src/cryptsetup.c:1479 src/cryptsetup_reencrypt.c:1263 +#: src/cryptsetup.c:1362 src/cryptsetup_reencrypt.c:1109 msgid "The cipher used to encrypt the disk (see /proc/crypto)" msgstr "Mật mã dùng để bảo vệ đĩa (xem “/proc/crypto”)" -#: src/cryptsetup.c:1480 src/cryptsetup_reencrypt.c:1265 +#: src/cryptsetup.c:1363 src/cryptsetup_reencrypt.c:1111 msgid "The hash used to create the encryption key from the passphrase" -msgstr "Chuỗi duy nhất dùng để tạo khóa mã hóa từ cụm từ mật khẩu" +msgstr "Chuỗi duy nhất dùng để tạo khoá mã hóa từ cụm từ mật khẩu" -#: src/cryptsetup.c:1481 +#: src/cryptsetup.c:1364 msgid "Verifies the passphrase by asking for it twice" msgstr "Thẩm tra cụm từ mật khẩu bằng cách yêu cầu nó hai lần" -#: src/cryptsetup.c:1482 src/cryptsetup_reencrypt.c:1267 +#: src/cryptsetup.c:1365 src/cryptsetup_reencrypt.c:1112 msgid "Read the key from a file." -msgstr "Đọc khóa từ một tập tin." +msgstr "Đọc khoá từ một tập tin." -#: src/cryptsetup.c:1483 +#: src/cryptsetup.c:1366 msgid "Read the volume (master) key from file." -msgstr "Đọc khóa khối tin (chủ) từ tập tin." +msgstr "Đọc khoá khối tin (chủ) từ tập tin." -#: src/cryptsetup.c:1484 +#: src/cryptsetup.c:1367 msgid "Dump volume (master) key instead of keyslots info." -msgstr "" -"Dump (đổ thành đống) khóa vùng chứa (master) thay vì thông tin khe-khóa." +msgstr "Dump (đổ thành đống) khóa vùng chứa (master) thay vì thông tin khe-khóa." -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "The size of the encryption key" -msgstr "Kích cỡ của khóa mã hóa" +msgstr "Kích cỡ của khoá mã hóa" -#: src/cryptsetup.c:1485 src/cryptsetup_reencrypt.c:1264 +#: src/cryptsetup.c:1368 src/cryptsetup_reencrypt.c:1110 msgid "BITS" msgstr "BIT" -#: src/cryptsetup.c:1486 src/cryptsetup_reencrypt.c:1278 +#: src/cryptsetup.c:1369 src/cryptsetup_reencrypt.c:1123 msgid "Limits the read from keyfile" -msgstr "Giới hạn việc đọc từ tập-tin-khóa" +msgstr "Giới hạn việc đọc từ tệp-tin-khoá" -#: src/cryptsetup.c:1486 src/cryptsetup.c:1487 src/cryptsetup.c:1488 -#: src/cryptsetup.c:1489 src/veritysetup.c:379 src/veritysetup.c:380 -#: src/veritysetup.c:382 src/cryptsetup_reencrypt.c:1277 -#: src/cryptsetup_reencrypt.c:1278 src/cryptsetup_reencrypt.c:1279 -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup.c:1369 src/cryptsetup.c:1370 src/cryptsetup.c:1371 +#: src/cryptsetup.c:1372 src/veritysetup.c:378 src/veritysetup.c:379 +#: src/veritysetup.c:381 src/cryptsetup_reencrypt.c:1122 +#: src/cryptsetup_reencrypt.c:1123 src/cryptsetup_reencrypt.c:1124 +#: src/cryptsetup_reencrypt.c:1125 msgid "bytes" msgstr "byte" -#: src/cryptsetup.c:1487 src/cryptsetup_reencrypt.c:1277 +#: src/cryptsetup.c:1370 src/cryptsetup_reencrypt.c:1122 msgid "Number of bytes to skip in keyfile" -msgstr "Số lượng byte nhảy qua trong tập tin khóa" +msgstr "Số lượng byte nhảy qua trong tập tin khoá" -#: src/cryptsetup.c:1488 +#: src/cryptsetup.c:1371 msgid "Limits the read from newly added keyfile" msgstr "Giới hạn đọc từ tập tin khóa mới thêm vào" -#: src/cryptsetup.c:1489 +#: src/cryptsetup.c:1372 msgid "Number of bytes to skip in newly added keyfile" msgstr "Số lượng byte để nhảy qua trong tập tin khóa mới thêm" -#: src/cryptsetup.c:1490 +#: src/cryptsetup.c:1373 msgid "Slot number for new key (default is first free)" -msgstr "Số thứ tự khe cho khóa mới (mặc định là khe trống thứ nhất)" +msgstr "Số thứ tự khe cho khoá mới (mặc định là khe trống thứ nhất)" -#: src/cryptsetup.c:1491 +#: src/cryptsetup.c:1374 msgid "The size of the device" msgstr "Kích cỡ của thiết bị" -#: src/cryptsetup.c:1491 src/cryptsetup.c:1492 src/cryptsetup.c:1493 -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1374 src/cryptsetup.c:1375 src/cryptsetup.c:1376 +#: src/cryptsetup.c:1382 msgid "SECTORS" msgstr "CUNG-TỪ" -#: src/cryptsetup.c:1492 +#: src/cryptsetup.c:1375 msgid "The start offset in the backend device" -msgstr "Khoảng bù đầu tiên trong thiết bị thật chạy ở phía sau" +msgstr "Khoảng bù đầu tiên trong thiết bị hậu phương" -#: src/cryptsetup.c:1493 +#: src/cryptsetup.c:1376 msgid "How many sectors of the encrypted data to skip at the beginning" msgstr "Bao nhiêu cung từ dữ liệu mã hóa cần bỏ qua ở đầu" -#: src/cryptsetup.c:1494 +#: src/cryptsetup.c:1377 msgid "Create a readonly mapping" -msgstr "Tạo một sự ánh xạ chỉ cho đọc" +msgstr "Tạo một sự ánh xạ chỉ đọc" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "PBKDF2 iteration time for LUKS (in ms)" msgstr "Thời gian lặp lại PBKDF2 cho LUKS (theo mili-giây)" -#: src/cryptsetup.c:1495 src/cryptsetup_reencrypt.c:1268 +#: src/cryptsetup.c:1378 src/cryptsetup_reencrypt.c:1113 msgid "msecs" msgstr "mili-giây" -#: src/cryptsetup.c:1496 src/cryptsetup_reencrypt.c:1269 +#: src/cryptsetup.c:1379 src/cryptsetup_reencrypt.c:1114 msgid "Do not ask for confirmation" -msgstr "Không cần xác nhận" +msgstr "Đừng yêu cầu xác nhận" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "Timeout for interactive passphrase prompt (in seconds)" -msgstr "Thời gian chờ gõ cụm từ mật khẩu tối đa (theo giây)" +msgstr "Thời hạn khi nhắc gõ cụm từ mật khẩu (theo giây)" -#: src/cryptsetup.c:1497 +#: src/cryptsetup.c:1380 msgid "secs" msgstr "giây" -#: src/cryptsetup.c:1498 src/cryptsetup_reencrypt.c:1270 +#: src/cryptsetup.c:1381 src/cryptsetup_reencrypt.c:1115 msgid "How often the input of the passphrase can be retried" -msgstr "Số các lần có cho phép thử gõ lại cụm từ mật khẩu" +msgstr "Số các lần có thể thử lại gõ cụm từ mật khẩu" -#: src/cryptsetup.c:1499 +#: src/cryptsetup.c:1382 msgid "Align payload at sector boundaries - for luksFormat" -msgstr "" -"Căn chỉnh trọng tải ở biên giới cung từ — cho định dạng “luksFormat”" +msgstr "Sắp hàng trọng tải ở biên giới cung từ — cho định dạng “luksFormat”" -#: src/cryptsetup.c:1500 +#: src/cryptsetup.c:1383 msgid "File with LUKS header and keyslots backup." -msgstr "Tập tin chứa bản sao lưu phần đầu và các khe khóa của thiết bị LUKS." +msgstr "Tập tin chứa bản sao lưu phần đầu và các khe khoá của thiết bị LUKS." -#: src/cryptsetup.c:1501 src/cryptsetup_reencrypt.c:1271 +#: src/cryptsetup.c:1384 src/cryptsetup_reencrypt.c:1116 msgid "Use /dev/random for generating volume key." -msgstr "Dùng /dev/random để tạo khóa volume." +msgstr "Sử dụng /dev/random để tạo khoá volume." -#: src/cryptsetup.c:1502 src/cryptsetup_reencrypt.c:1272 +#: src/cryptsetup.c:1385 src/cryptsetup_reencrypt.c:1117 msgid "Use /dev/urandom for generating volume key." -msgstr "Dùng /dev/urandom để tạo khóa vùng." +msgstr "Sử dụng /dev/urandom để tạo khoá volume." -#: src/cryptsetup.c:1503 +#: src/cryptsetup.c:1386 msgid "Share device with another non-overlapping crypt segment." msgstr "Thiết bị chia sẻ với đoạn crypt không-chồng-lên-nhau khác." -#: src/cryptsetup.c:1504 src/veritysetup.c:385 +#: src/cryptsetup.c:1387 src/veritysetup.c:384 msgid "UUID for device to use." msgstr "UUID dành cho tập tin sử dụng." -#: src/cryptsetup.c:1505 +#: src/cryptsetup.c:1388 msgid "Allow discards (aka TRIM) requests for device." -msgstr "Cho phép hủy bỏ (được biết đến như là TRIM) các yêu cầu cho thiết bị." +msgstr "Cho phép huỷ bỏ (được biết đến như là TRIM) các yêu cầu cho thiết bị." -#: src/cryptsetup.c:1506 +#: src/cryptsetup.c:1389 msgid "Device or file with separated LUKS header." msgstr "Thiết bị hay tập tin với phần đầu LUKS tách nhau." -#: src/cryptsetup.c:1507 +#: src/cryptsetup.c:1390 msgid "Do not activate device, just check passphrase." msgstr "Không kích hoạt thiết bị, chỉ cần kiểm tra mật khẩu." -#: src/cryptsetup.c:1508 +#: src/cryptsetup.c:1391 msgid "Use hidden header (hidden TCRYPT device)." msgstr "Dùng phần đầu ẩn (thiết bị TCRYPT ẩn)." -#: src/cryptsetup.c:1509 +#: src/cryptsetup.c:1392 msgid "Device is system TCRYPT drive (with bootloader)." msgstr "Thiết bị là ổ đĩa TCRYPT hệ thống (có bootloader)." -#: src/cryptsetup.c:1510 -msgid "Use backup (secondary) TCRYPT header." -msgstr "Dùng phần đầu (thứ cấp) TCRYPT." - -#: src/cryptsetup.c:1511 -msgid "Scan also for VeraCrypt compatible device." -msgstr "Cũng quét cho thiết bị tương thích VeraCrypt." - -#: src/cryptsetup.c:1512 +#: src/cryptsetup.c:1393 msgid "Type of device metadata: luks, plain, loopaes, tcrypt." msgstr "Kiểu của siêu dữ liệu thiết bị: luks, plain, loopaes, tcrypt." -#: src/cryptsetup.c:1513 +#: src/cryptsetup.c:1394 msgid "Disable password quality check (if enabled)." msgstr "Tắt chức năng kiểm tra chất lượng mật khẩu (nếu nó đang bật)." -#: src/cryptsetup.c:1514 -msgid "Use dm-crypt same_cpu_crypt performance compatibility option." -msgstr "Dùng tùy chọn tương thích hiệu năng same_cpu_crypt dm-crypt." - -#: src/cryptsetup.c:1515 -msgid "Use dm-crypt submit_from_crypt_cpus performance compatibility option." -msgstr "Dùng tùy chọn tương thích hiệu năng submit_from_crypt_cpus dm-crypt." - -#: src/cryptsetup.c:1531 src/veritysetup.c:402 +#: src/cryptsetup.c:1412 src/veritysetup.c:401 msgid "[OPTION...] " -msgstr "[TÙY CHỌN…] <đặc-tả-thao-tác>" - -#: src/cryptsetup.c:1572 -msgid "Running in FIPS mode.\n" -msgstr "Đang chạy trong chế độ FIPS.\n" +msgstr "[TÙY_CHỌN...] <đặc_tả_hành_động>" -#: src/cryptsetup.c:1581 src/veritysetup.c:439 +#: src/cryptsetup.c:1458 src/veritysetup.c:438 msgid "Argument missing." -msgstr "Còn thiếu đối số ." +msgstr "Đối số còn thiếu." -#: src/cryptsetup.c:1634 src/veritysetup.c:445 +#: src/cryptsetup.c:1506 src/veritysetup.c:444 msgid "Unknown action." -msgstr "Không hiểu thao-tác." +msgstr "Hành động không rõ." -#: src/cryptsetup.c:1644 +#: src/cryptsetup.c:1516 msgid "Option --shared is allowed only for open of plain device.\n" -msgstr "" -"Tùy chọn “--shared” chỉ cho phép với thao tác tạo mở của thiết bị thường.\n" +msgstr "Tùy chọn “--shared” chỉ cho phép với thao tác tạo mở của thiết bị thường.\n" -#: src/cryptsetup.c:1649 +#: src/cryptsetup.c:1521 msgid "Option --allow-discards is allowed only for open operation.\n" -msgstr "Tùy chọn “--allow-discards” chỉ cho phép với thao tác mở.\n" +msgstr "Tùy chọn “--allow-discards” chỉ cho phép với thao tác tạo mở.\n" -#: src/cryptsetup.c:1657 +#: src/cryptsetup.c:1529 msgid "" "Option --key-size is allowed only for luksFormat, open and benchmark.\n" "To limit read from keyfile use --keyfile-size=(bytes)." msgstr "" -"Tùy chọn --key-size thì chỉ cho phép với các thao tác luksFormat, mở và đo " -"kiểm.\n" -"Để giới hạn đọc từ tập-tin-khóa, hãy sử dụng tùy chọn --keyfile-size=(bytes)." +"Tuỳ chọn --key-size thì chỉ cho phép với các thao tác luksFormat, mở và đo kiểm.\n" +"Để giới hạn đọc từ tệp-tin-khoá, hãy sử dụng tuỳ chọn --keyfile-size=(bytes)." -#: src/cryptsetup.c:1664 -msgid "" -"Option --test-passphrase is allowed only for open of LUKS and TCRYPT " -"devices.\n" -msgstr "" -"Tùy chọn “--test-passphrase” chỉ được phép cho lệnh mở thiết bị LUKS và " -"TCRYPT.\n" +#: src/cryptsetup.c:1536 +msgid "Option --test-passphrase is allowed only for open of LUKS and TCRYPT devices.\n" +msgstr "Tùy chọn “--test-passphrase” chỉ được phép cho lệnh mở thiết bị LUKS và TCRYPT.\n" -#: src/cryptsetup.c:1669 src/cryptsetup_reencrypt.c:1341 +#: src/cryptsetup.c:1541 src/cryptsetup_reencrypt.c:1185 msgid "Key size must be a multiple of 8 bits" -msgstr "Kích cỡ khóa phải là bội số của 8 bít" +msgstr "Kích cỡ khoá phải là bội số cho 8 bit" -#: src/cryptsetup.c:1676 src/cryptsetup_reencrypt.c:1346 +#: src/cryptsetup.c:1548 src/cryptsetup_reencrypt.c:1190 msgid "Key slot is invalid." -msgstr "Khe khóa không đúng." +msgstr "Khe khoá không đúng." -#: src/cryptsetup.c:1683 +#: src/cryptsetup.c:1555 msgid "Option --key-file takes precedence over specified key file argument.\n" -msgstr "" -"Tùy chọn --key-file giữ quyền ưu tiên cao hơn tham số tập tin khóa đã chỉ " -"định.\n" +msgstr "Tùy chọn --key-file giữ quyền ưu tiên cao hơn tham số tập tin khoá đã chỉ định.\n" -#: src/cryptsetup.c:1691 src/veritysetup.c:467 src/cryptsetup_reencrypt.c:1330 +#: src/cryptsetup.c:1563 src/veritysetup.c:466 src/cryptsetup_reencrypt.c:1174 msgid "Negative number for option not permitted." msgstr "Tùy chọn không chấp nhận giá trị là số âm." -#: src/cryptsetup.c:1695 src/cryptsetup_reencrypt.c:1324 -#: src/cryptsetup_reencrypt.c:1350 +#: src/cryptsetup.c:1567 src/cryptsetup_reencrypt.c:1168 +#: src/cryptsetup_reencrypt.c:1194 msgid "Only one of --use-[u]random options is allowed." msgstr "Chỉ cho phép một tùy chọn “--use-[u]random”." -#: src/cryptsetup.c:1699 +#: src/cryptsetup.c:1571 msgid "Option --use-[u]random is allowed only for luksFormat." msgstr "Tùy chọn “--use-[u]random” chỉ được phép cho “luksFormat”." -#: src/cryptsetup.c:1703 +#: src/cryptsetup.c:1575 msgid "Option --uuid is allowed only for luksFormat and luksUUID." msgstr "Tùy chọn “--uuid” thì chỉ cho phép với “luksFormat” và “luksUUID”." -#: src/cryptsetup.c:1707 +#: src/cryptsetup.c:1579 msgid "Option --align-payload is allowed only for luksFormat." msgstr "Tùy chọn “--align-payload” chỉ được phép cho “luksFormat”." -#: src/cryptsetup.c:1713 -msgid "" -"Option --skip is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Tùy chọn “--skip” chỉ hỗ trợ cho lệnh mở (open) của thiết bị thường và " -"“loopaes”.\n" +#: src/cryptsetup.c:1585 +msgid "Option --skip is supported only for open of plain and loopaes devices.\n" +msgstr "Tùy chọn “--skip” chỉ hỗ trợ cho lệnh mở (open) của thiết bị thường và “loopaes”.\n" -#: src/cryptsetup.c:1719 -msgid "" -"Option --offset is supported only for open of plain and loopaes devices.\n" -msgstr "" -"Tùy chọn “--offset” chỉ hỗ trợ cho lệnh mở (open) của thiết bị thường và " -"“loopaes”.\n" +#: src/cryptsetup.c:1591 +msgid "Option --offset is supported only for open of plain and loopaes devices.\n" +msgstr "Tùy chọn “--offset” chỉ hỗ trợ cho lệnh mở (open) của thiết bị thường và “loopaes”.\n" -#: src/cryptsetup.c:1725 -msgid "" -"Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only " -"for TCRYPT device.\n" -msgstr "" -"Tùy chọn --tcrypt-hidden, --tcrypt-system hay --tcrypt-backup chỉ được hỗ " -"trợ trên thiết bị TCRYPT.\n" +#: src/cryptsetup.c:1597 +msgid "Option --tcrypt-hidden or --tcrypt-system is supported only for TCRYPT device.\n" +msgstr "Tùy chọn --tcrypt-hidden hay --tcrypt-system chỉ được hỗ trợ trên thiết bị TCRYPT.\n" -#: src/cryptsetup.c:1730 -msgid "Option --tcrypt-hidden cannot be combined with --allow-discards.\n" -msgstr "" -"Tùy chọn --tcrypt-hidden không thể được tổ hợp cùng với --allow-discards.\n" - -#: src/cryptsetup.c:1735 -msgid "Option --veracrypt is supported only for TCRYPT device type.\n" -msgstr "Tùy chọn --veracrypt chỉ được hỗ trợ trên thiết bị TCRYPT.\n" - -#: src/veritysetup.c:58 +#: src/veritysetup.c:57 msgid "Invalid salt string specified.\n" -msgstr "Chuỗi salt (muối) đã cho không hợp lệ.\n" +msgstr "Chuỗi salt (muối) đã chỉ ra không hợp lệ.\n" -#: src/veritysetup.c:88 +#: src/veritysetup.c:87 #, c-format msgid "Cannot create hash image %s for writing.\n" msgstr "Không thể tạo ảnh băm %s để ghi.\n" -#: src/veritysetup.c:148 +#: src/veritysetup.c:147 msgid "Invalid root hash string specified.\n" msgstr "Chuỗi mã băm gốc (thư mục root) đã chỉ ra không hợp lệ.\n" -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid " " msgstr " " -#: src/veritysetup.c:308 +#: src/veritysetup.c:307 msgid "format device" msgstr "định dạng thiết bị" -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid " " msgstr " " -#: src/veritysetup.c:309 +#: src/veritysetup.c:308 msgid "verify device" msgstr "thẩm tra thiết bị" -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid " " msgstr " " -#: src/veritysetup.c:310 +#: src/veritysetup.c:309 msgid "create active device" msgstr "tạo thiết bị hoạt động" -#: src/veritysetup.c:311 +#: src/veritysetup.c:310 msgid "remove (deactivate) device" -msgstr "gỡ bỏ (dừng hoạt động) thiết bị" +msgstr "gỡ bỏ (bất hoạt) thiết bị" -#: src/veritysetup.c:312 +#: src/veritysetup.c:311 msgid "show active device status" msgstr "hiển thị trạng thái các thiết bị đang hoạt động" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "" msgstr "" -#: src/veritysetup.c:313 +#: src/veritysetup.c:312 msgid "show on-disk information" msgstr "hiển thị thông tin trên-đĩa" -#: src/veritysetup.c:332 +#: src/veritysetup.c:331 #, c-format msgid "" "\n" @@ -1548,320 +1408,282 @@ msgstr "" " là thiết bị chứa dữ liệu xác thực\n" " mã băm của nút root (gốc) trên \n" -#: src/veritysetup.c:339 +#: src/veritysetup.c:338 #, c-format msgid "" "\n" "Default compiled-in dm-verity parameters:\n" -"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, " -"Hash format: %u\n" +"\tHash: %s, Data block (bytes): %u, Hash block (bytes): %u, Salt size: %u, Hash format: %u\n" msgstr "" "\n" "Các tham số dm-verity dựng sẵn mặc định:\n" -"\tBăm: %s, Khối dữ liệu (bytes): %u, Khối băm (bytes): %u, Kích thước muối: " -"%u, Định dạng băm: %u\n" +"\tBăm: %s, Khối dữ liệu (bytes): %u, Khối băm (bytes): %u, Kích thước muối: %u, Định dạng băm: %u\n" -#: src/veritysetup.c:377 +#: src/veritysetup.c:376 msgid "Do not use verity superblock" msgstr "Không sử dụng siêu khối thẩm định" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "Format type (1 - normal, 0 - original Chrome OS)" msgstr "Kiểu định dạng (1 - thông thường, 0 - Chrome OS)" -#: src/veritysetup.c:378 +#: src/veritysetup.c:377 msgid "number" msgstr "số" -#: src/veritysetup.c:379 +#: src/veritysetup.c:378 msgid "Block size on the data device" msgstr "Kích cỡ khối trên thiết bị dữ liệu" -#: src/veritysetup.c:380 +#: src/veritysetup.c:379 msgid "Block size on the hash device" msgstr "Kích cỡ của khối trên thiết bị băm" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "The number of blocks in the data file" msgstr "Số lượng khối trong tập tin dữ liệu" -#: src/veritysetup.c:381 +#: src/veritysetup.c:380 msgid "blocks" msgstr "khối" -#: src/veritysetup.c:382 +#: src/veritysetup.c:381 msgid "Starting offset on the hash device" msgstr "Khoảng bù (offset) khởi đầu của thiết bị băm" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "Hash algorithm" -msgstr "Thuật toán băm" +msgstr "Thuật toán băm dữ liệu" -#: src/veritysetup.c:383 +#: src/veritysetup.c:382 msgid "string" msgstr "chuỗi" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "Salt" msgstr "Muối" -#: src/veritysetup.c:384 +#: src/veritysetup.c:383 msgid "hex string" msgstr "chuỗi hex (thập lục phân)" -#: src/cryptsetup_reencrypt.c:147 +#: src/cryptsetup_reencrypt.c:136 #, c-format msgid "Cannot exclusively open %s, device in use.\n" msgstr "Không thể mở %s một cách đệ qui, thiết bị vẫn đang được sử dụng.\n" -#: src/cryptsetup_reencrypt.c:151 +#: src/cryptsetup_reencrypt.c:140 #, c-format msgid "Cannot open device %s\n" msgstr "Không thể mở thiết bị %s\n" -#: src/cryptsetup_reencrypt.c:161 src/cryptsetup_reencrypt.c:893 +#: src/cryptsetup_reencrypt.c:150 src/cryptsetup_reencrypt.c:367 +#: src/cryptsetup_reencrypt.c:786 msgid "Allocation of aligned memory failed.\n" msgstr "Phân bổ bộ nhớ điều chỉnh gặp lỗi.\n" -#: src/cryptsetup_reencrypt.c:168 +#: src/cryptsetup_reencrypt.c:157 #, c-format msgid "Cannot read device %s.\n" msgstr "Không thể đọc thiết bị %s.\n" -#: src/cryptsetup_reencrypt.c:179 +#: src/cryptsetup_reencrypt.c:168 #, c-format msgid "Marking LUKS device %s unusable.\n" msgstr "Đánh dấu thiết bị LUKS %s là không thể dùng.\n" -#: src/cryptsetup_reencrypt.c:184 +#: src/cryptsetup_reencrypt.c:173 #, c-format msgid "Marking LUKS device %s usable.\n" msgstr "Đánh dấu thiết bị LUKS %s là có thể dùng.\n" -#: src/cryptsetup_reencrypt.c:200 +#: src/cryptsetup_reencrypt.c:189 #, c-format msgid "Cannot write device %s.\n" msgstr "Không thể ghi thiết bị %s.\n" -#: src/cryptsetup_reencrypt.c:281 +#: src/cryptsetup_reencrypt.c:270 msgid "Cannot write reencryption log file.\n" msgstr "Không thể ghi tập tin nhật ký reencryption (mã hóa lại).\n" -#: src/cryptsetup_reencrypt.c:337 +#: src/cryptsetup_reencrypt.c:319 msgid "Cannot read reencryption log file.\n" msgstr "Không đọc được tập tin nhật ký reencryption.\n" -#: src/cryptsetup_reencrypt.c:374 +#: src/cryptsetup_reencrypt.c:358 #, c-format msgid "Log file %s exists, resuming reencryption.\n" -msgstr "" -"Tập tin nhật ký %s đã có sẵn rồi, giả định là reencryption (mã hóa lại).\n" +msgstr "Tập tin nhật ký %s đã có sẵn rồi, giả định là reencryption (mã hóa thêm lần nữa).\n" -#: src/cryptsetup_reencrypt.c:403 +#: src/cryptsetup_reencrypt.c:393 msgid "Activating temporary device using old LUKS header.\n" msgstr "Hoạt hóa thiết bị tạm thời sử dụng phần đầu LUKS kiểu cũ.\n" -#: src/cryptsetup_reencrypt.c:414 +#: src/cryptsetup_reencrypt.c:404 msgid "Activating temporary device using new LUKS header.\n" msgstr "Hoạt hóa thiết bị tạm thời sử dụng phần đầu LUKS kiểu mới.\n" -#: src/cryptsetup_reencrypt.c:424 +#: src/cryptsetup_reencrypt.c:414 msgid "Activation of temporary devices failed.\n" msgstr "Việc hoạt hóa các thiết bị tạm thời gặp lỗi.\n" -#: src/cryptsetup_reencrypt.c:450 +#: src/cryptsetup_reencrypt.c:439 #, c-format msgid "New LUKS header for device %s created.\n" msgstr "Phần đầu LUKS mới cho thiết bị %s được tạo.\n" -#: src/cryptsetup_reencrypt.c:458 +#: src/cryptsetup_reencrypt.c:447 #, c-format msgid "Activated keyslot %i.\n" -msgstr "Khe-khóa (keyslot) đã được kích hoạt %i.\n" +msgstr "Khe-khoá (keyslot) đã được kích hoạt %i.\n" -#: src/cryptsetup_reencrypt.c:484 +#: src/cryptsetup_reencrypt.c:471 #, c-format msgid "LUKS header backup of device %s created.\n" msgstr "Phần đầu sao lưu LUKS của thiết bị %s được tạo.\n" -#: src/cryptsetup_reencrypt.c:532 +#: src/cryptsetup_reencrypt.c:499 msgid "Creation of LUKS backup headers failed.\n" msgstr "Việc tạo phần đầu LUKS sao lưu dự phòng gặp lỗi.\n" -#: src/cryptsetup_reencrypt.c:634 +#: src/cryptsetup_reencrypt.c:594 #, c-format msgid "Cannot restore LUKS header on device %s.\n" msgstr "Không thể phục hồi phần đầu LUKS trên thiết bị %s.\n" -#: src/cryptsetup_reencrypt.c:636 +#: src/cryptsetup_reencrypt.c:596 #, c-format msgid "LUKS header on device %s restored.\n" msgstr "Phần đầu LUKS trên thiết bị %s đã được phục hồi.\n" -#: src/cryptsetup_reencrypt.c:669 +#: src/cryptsetup_reencrypt.c:629 #, c-format -msgid "" -"Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" -msgstr "" -"Tiến trình: %5.1f%%, ETA %02llu:%02llu, %4llu MiB đã ghi, tốc độ %5.1f MiB/s" -"%s" +msgid "Progress: %5.1f%%, ETA %02llu:%02llu, %4llu MiB written, speed %5.1f MiB/s%s" +msgstr "Tiến trình: %5.1f%%, ETA %02llu:%02llu, %4llu MiB đã ghi, tốc độ %5.1f MiB/s%s" -#: src/cryptsetup_reencrypt.c:708 src/cryptsetup_reencrypt.c:784 -#: src/cryptsetup_reencrypt.c:826 +#: src/cryptsetup_reencrypt.c:645 src/cryptsetup_reencrypt.c:721 msgid "Cannot seek to device offset.\n" msgstr "Không thể di chuyển vị trí tới vị trí tương đối thiết bị.\n" -#: src/cryptsetup_reencrypt.c:865 src/cryptsetup_reencrypt.c:871 +#: src/cryptsetup_reencrypt.c:767 src/cryptsetup_reencrypt.c:773 msgid "Cannot open temporary LUKS header file.\n" msgstr "Không thể mở tập tin phần đầu LUKS tạm thời.\n" -#: src/cryptsetup_reencrypt.c:876 src/cryptsetup_reencrypt.c:881 +#: src/cryptsetup_reencrypt.c:779 msgid "Cannot get device size.\n" msgstr "Không thể lấy kích cỡ thiết bị.\n" -#: src/cryptsetup_reencrypt.c:919 +#: src/cryptsetup_reencrypt.c:803 msgid "Interrupted by a signal.\n" msgstr "Bị ngắt bởi tín hiệu signal.\n" -#: src/cryptsetup_reencrypt.c:921 +#: src/cryptsetup_reencrypt.c:805 msgid "IO error during reencryption.\n" -msgstr "Lỗi IO (vào/ra) trong quá trình mã hóa lại.\n" +msgstr "Lỗi IO (V/R) trong quá trình reencryption.\n" -#: src/cryptsetup_reencrypt.c:1028 -msgid "" -"Key file can be used only with --key-slot or with exactly one key slot " -"active.\n" -msgstr "" -"Tập tin khóa có thể sử dụng với tùy chọn --key-slot hoặc với chính xác một " -"khe khóa hoạt động.\n" +#: src/cryptsetup_reencrypt.c:906 +msgid "Key file can be used only with --key-slot or with exactly one key slot active.\n" +msgstr "Tập tin khóa có thể sử dụng với tùy chọn --key-slot hoặc với chính xác một khe khóa tích cực.\n" -#: src/cryptsetup_reencrypt.c:1072 src/cryptsetup_reencrypt.c:1087 +#: src/cryptsetup_reencrypt.c:955 #, c-format msgid "Enter passphrase for key slot %u: " -msgstr "Gõ cụm từ mật khẩu cho khe khóa %u: " +msgstr "Gõ cụm từ mật khẩu cho khe khoá %u: " -#: src/cryptsetup_reencrypt.c:1136 +#: src/cryptsetup_reencrypt.c:1004 msgid "Cannot open reencryption log file.\n" -msgstr "Không mở được tập tin nhật ký reencryption.\n" +msgstr "Không mở được tập tin nhật trình reencryption.\n" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "Reencryption block size" -msgstr "Kích thước khối mã hóa lại" +msgstr "Kích thước khối Reencryption" -#: src/cryptsetup_reencrypt.c:1262 +#: src/cryptsetup_reencrypt.c:1108 msgid "MiB" msgstr "MiB" -#: src/cryptsetup_reencrypt.c:1266 -msgid "Do not change key, no data area reencryption." -msgstr "Khôngười thay đổi khóa, không có mã hóa lại vùng dữ liệu." - -#: src/cryptsetup_reencrypt.c:1273 -msgid "Use direct-io when accessing devices." +#: src/cryptsetup_reencrypt.c:1118 +msgid "Use direct-io when accesing devices." msgstr "Sử dụng vào ra trực tiếp khi truy cập các thiết bị." -#: src/cryptsetup_reencrypt.c:1274 +#: src/cryptsetup_reencrypt.c:1119 msgid "Use fsync after each block." msgstr "Sử dụng fsync sau mỗi khối." -#: src/cryptsetup_reencrypt.c:1275 +#: src/cryptsetup_reencrypt.c:1120 msgid "Update log file after every block." msgstr "Cập nhật tập tin nhật ký sau mỗi khối." -#: src/cryptsetup_reencrypt.c:1276 +#: src/cryptsetup_reencrypt.c:1121 msgid "Use only this slot (others will be disabled)." msgstr "Chỉ sử dụng khe này (những cái khác sẽ bị tắt đi)." -#: src/cryptsetup_reencrypt.c:1279 +#: src/cryptsetup_reencrypt.c:1124 msgid "Reduce data device size (move data offset). DANGEROUS!" -msgstr "" -"Giảm kích thước dữ liệu thiết bị (di chuyển offset dữ liệu). NGUY HIỂM!" +msgstr "Giảm kích thước dữ liệu thiết bị (di chuyển offset dữ liệu). NGUY HIỂM!" -#: src/cryptsetup_reencrypt.c:1280 +#: src/cryptsetup_reencrypt.c:1125 msgid "Use only specified device size (ignore rest of device). DANGEROUS!" -msgstr "" -"Chỉ sử dụng kích thước dữ liệu thiết bị (bỏ qua phần còn lại của thiết bị). " -"NGUY HIỂM!" +msgstr "Chỉ sử dụng kích thước dữ liệu thiết bị (bỏ qua phần còn lại của thiết bị). NGUY HIỂM!" -#: src/cryptsetup_reencrypt.c:1281 +#: src/cryptsetup_reencrypt.c:1126 msgid "Create new header on not encrypted device." msgstr "Tạo phần đầu mới không trên thiết bị được mã hóa." -#: src/cryptsetup_reencrypt.c:1282 -msgid "Permanently decrypt device (remove encryption)." -msgstr "Thiết bị mã hóa cố định (gỡ bỏ mã hóa)." - -#: src/cryptsetup_reencrypt.c:1298 +#: src/cryptsetup_reencrypt.c:1142 msgid "[OPTION...] " -msgstr "[TÙY_CHỌN…] " +msgstr "[TÙY_CHỌN...] " -#: src/cryptsetup_reencrypt.c:1312 -msgid "" -"WARNING: this is experimental code, it can completely break your data.\n" -msgstr "" -"CẢNH BÁO: đây chỉ là mã thử nghiệm, nó có thể phá hoại dữ liệu của bạn.\n" +#: src/cryptsetup_reencrypt.c:1156 +msgid "WARNING: this is experimental code, it can completely break your data.\n" +msgstr "CẢNH BÁO: đây chỉ là mã thử nghiệm, nó có thể phá hoại dữ liệu của bạn.\n" -#: src/cryptsetup_reencrypt.c:1313 +#: src/cryptsetup_reencrypt.c:1157 #, c-format msgid "Reencryption will change: volume key%s%s%s%s.\n" msgstr "Reencryption sẽ thay đổi: khóa dung lượng%s%s%s%s.\n" -#: src/cryptsetup_reencrypt.c:1314 +#: src/cryptsetup_reencrypt.c:1158 msgid ", set hash to " msgstr ", đặt kiểu băm thành " -#: src/cryptsetup_reencrypt.c:1315 +#: src/cryptsetup_reencrypt.c:1159 msgid ", set cipher to " -msgstr ", đặt kiểu mã hóa thành " +msgstr ", đặt mã hóa thành " -#: src/cryptsetup_reencrypt.c:1320 +#: src/cryptsetup_reencrypt.c:1164 msgid "Argument required." msgstr "Cần đối số." -#: src/cryptsetup_reencrypt.c:1336 -msgid "" -"Only values between 1 MiB and 64 MiB allowed for reencryption block size." -msgstr "" -"Chỉ những giá trị nằm giữa 1MiB và 64 MiB là cho phép đối với kích thước " -"khối reencryption (mã hóa lại)." +#: src/cryptsetup_reencrypt.c:1180 +msgid "Only values between 1 MiB and 64 MiB allowed for reencryption block size." +msgstr "Chỉ những giá trị nằm giữa 1MiB và 64 MiB là cho phép đối với kích thước khối reencryption (mã hóa lại)." -#: src/cryptsetup_reencrypt.c:1355 src/cryptsetup_reencrypt.c:1360 +#: src/cryptsetup_reencrypt.c:1199 src/cryptsetup_reencrypt.c:1204 msgid "Invalid device size specification." msgstr "Đặc tả kích thước thiết bị không đúng." -#: src/cryptsetup_reencrypt.c:1363 +#: src/cryptsetup_reencrypt.c:1207 msgid "Maximum device reduce size is 64 MiB." msgstr "Kích thước thu nhỏ thiết bị tối đa là 64 MiB." -#: src/cryptsetup_reencrypt.c:1366 +#: src/cryptsetup_reencrypt.c:1210 msgid "Reduce size must be multiple of 512 bytes sector." msgstr "Kích cỡ giảm phải là bội số cung từ (sector) 512 byte" -#: src/cryptsetup_reencrypt.c:1370 +#: src/cryptsetup_reencrypt.c:1214 msgid "Option --new must be used together with --reduce-device-size." msgstr "Tùy chọn “--new” phải được sử dụng cùng với “--reduce-device-size”." -#: src/cryptsetup_reencrypt.c:1374 -msgid "Option --keep-key can be used only with --hash or --iter-time." -msgstr "Tùy chọn “--keep-key” có thể dùng với “--hash” hoặc “--iter-time”." - -#: src/cryptsetup_reencrypt.c:1378 -msgid "Option --new cannot be used together with --decrypt." -msgstr "Tùy chọn “--new” không được sử dụng cùng với “ --decrypt”." - -#: src/cryptsetup_reencrypt.c:1382 -msgid "Option --decrypt is incompatible with specified parameters." -msgstr "Tùy chọn --decrypt không tương thích với các đối số đã cho." - -#: src/utils_tools.c:151 +#: src/utils_tools.c:150 msgid "Error reading response from terminal.\n" msgstr "Gặp lỗi khi đọc phản hồi từ thiết bị cuối.\n" -#: src/utils_tools.c:173 +#: src/utils_tools.c:172 msgid "Command successful.\n" msgstr "Câu lệnh đã chạy thành công.\n" -#: src/utils_tools.c:191 +#: src/utils_tools.c:186 #, c-format msgid "Command failed with code %i" msgstr "Câu lệnh đã thất bại với mã %i" @@ -1880,24 +1702,11 @@ msgstr "" "Chất lượng mật khẩu không đạt:\n" " %s\n" -#~ msgid "FIPS checksum verification failed.\n" -#~ msgstr "Thẩm tra mã băm FIPS không đạt.\n" - -#~ msgid "" -#~ "WARNING: device %s is a partition, for TCRYPT system encryption you " -#~ "usually need to use whole block device path.\n" -#~ msgstr "" -#~ "CẢNH BÁO: thiết-bị %s là một phân vùng, với mã hóa hệ thống TCRYPT bạn " -#~ "thường cần phải sử dụng toàn bộ đường dẫn thiết-bị khối.\n" - -#~ msgid "Kernel doesn't support plain64 IV.\n" -#~ msgstr "Nhân không hỗ trợ plain64 IV.\n" - #~ msgid "Enter LUKS passphrase: " #~ msgstr "Gõ cụm từ mật khẩu LUKS: " #~ msgid "Enter new LUKS passphrase: " -#~ msgstr "Gõ cụm từ mật khẩu LUKS: " +#~ msgstr "Gõ cụm từ mật khẩu LUKS:" #~ msgid "Enter any LUKS passphrase: " #~ msgstr "Nhập mật khẩu LUKS vào: " @@ -1929,18 +1738,14 @@ msgstr "" #~ msgid "remove loop-AES mapping" #~ msgstr "gỡ bỏ ánh xạ loop-AES" -#~ msgid "" -#~ "Option --allow-discards is allowed only for luksOpen, loopaesOpen and " -#~ "create operation.\n" -#~ msgstr "" -#~ "Tùy chọn “--allow-discards” thì chỉ cho phép với thao tác “luksOpen”, " -#~ "“loopaesOpen” và tạo (create).\n" +#~ msgid "Option --allow-discards is allowed only for luksOpen, loopaesOpen and create operation.\n" +#~ msgstr "Tùy chọn “--allow-discards” thì chỉ cho phép với thao tác “luksOpen”, “loopaesOpen” và tạo (create).\n" #~ msgid "Cannot open device %s for %s%s access.\n" #~ msgstr "Không thể mở thiết bị %s cho truy cập %s%s.\n" #~ msgid "exclusive " -#~ msgstr "dành riêng " +#~ msgstr "dành riêng" #~ msgid "writable" #~ msgstr "ghi được" @@ -1949,41 +1754,31 @@ msgstr "" #~ msgstr "chỉ đọc" #~ msgid "WARNING!!! Possibly insecure memory. Are you root?\n" -#~ msgstr "" -#~ "CẢNH BÁO!!! Có thể là vùng nhớ không an toàn. Bạn có đang chạy dưới quyền " -#~ "siêu người dùng (root) không?\n" +#~ msgstr "CẢNH BÁO!!! Có thể là vùng nhớ không an toàn. Bạn có đang chạy dưới quyền siêu người dùng (root) không?\n" #~ msgid "Unable to obtain sector size for %s" #~ msgstr "Không thể lấy kích cỡ cung từ cho %s" #~ msgid "Failed to write to key storage.\n" -#~ msgstr "Lỗi ghi khóa vào kho lưu khóa.\n" +#~ msgstr "Lỗi ghi khoá vào kho lưu khoá.\n" #~ msgid "Failed to read from key storage.\n" -#~ msgstr "Lỗi đọc từ kho lưu khóa.\n" +#~ msgstr "Lỗi đọc từ kho lưu khoá.\n" -#~ msgid "" -#~ "Cannot use device %s (crypt segments overlaps or in use by another " -#~ "device).\n" -#~ msgstr "" -#~ "Không thể sử dụng thiết bị %s (các đoạn crypt chồng lên nhau hay đang sử " -#~ "dụng bởi thiết bị khác).\n" +#~ msgid "Cannot use device %s (crypt segments overlaps or in use by another device).\n" +#~ msgstr "Không thể sử dụng thiết bị %s (các đoạn crypt chồng lên nhau hay đang sử dụng bởi thiết bị khác).\n" #~ msgid "Cannot find compatible device-mapper kernel modules.\n" #~ msgstr "Không tìm thấy mô-đun hạt nhân ánh xạ thiết bị tương thích.\n" #~ msgid "Key slot %d verified.\n" -#~ msgstr "Khe khóa %d được thẩm định.\n" +#~ msgstr "Khe khoá %d được thẩm định.\n" #~ msgid "Invalid key size %d.\n" -#~ msgstr "Kích cỡ khóa không đúng %d.\n" +#~ msgstr "Kích cỡ khoá không đúng %d.\n" -#~ msgid "" -#~ "Warning: exhausting read requested, but key file %s is not a regular " -#~ "file, function might never return.\n" -#~ msgstr "" -#~ "Cảnh báo: yêu cầu một hàm đọc vét kiệt mà tập tin khóa %s không phải là " -#~ "một tập tin thông thường thì có thể là hàm chưa bao giờ trả lại.\n" +#~ msgid "Warning: exhausting read requested, but key file %s is not a regular file, function might never return.\n" +#~ msgstr "Cảnh báo: yêu cầu một hàm đọc vét kiệt mà tập tin khoá %s không phải là một tập tin thông thường thì có thể là hàm chưa bao giờ trả lại.\n" #~ msgid "Cannot open device: %s\n" #~ msgstr "Không thể mở thiết bị: %s\n" @@ -2001,21 +1796,17 @@ msgstr "" #~ msgstr "sửa đổi thiết bị hoạt động - BỊ PHẢN ĐỐI - xem trang hướng dẫn" #~ msgid "" -#~ "The reload action is deprecated. Please use`dmsetup reload' in case you " -#~ "really need this functionality.\n" -#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, " -#~ "hit Ctrl-C now.\n" +#~ "The reload action is deprecated. Please use`dmsetup reload' in case you really need this functionality.\n" +#~ "WARNING: do not use reload to touch LUKS devices. If that is the case, hit Ctrl-C now.\n" #~ msgstr "" -#~ "Thao tác nạp lại bị phản đối. Hãy sử dụng“dmsetup reload” trong trường " -#~ "hợp bạn thực sự yêu cầu chức năng này.\n" -#~ "CẢNH BÁO: đừng sử dụng chức năng nạp lại để thao tác thiết bị kiểu LUKS. " -#~ "Trong trường hợp đó, bấm tổ hợp phím Ctrl-C ngay bây giờ.\n" +#~ "Hành động nạp lại bị phản đối. Hãy sử dụng“dmsetup reload” trong trường hợp bạn thực sự yêu cầu chức năng này.\n" +#~ "CẢNH BÁO: đừng sử dụng chức năng nạp lại để thao tác thiết bị kiểu LUKS. Trong trường hợp đó, bấm tổ hợp phím Ctrl-C ngay bây giờ.\n" #~ msgid "Obsolete option --non-exclusive is ignored.\n" #~ msgstr "Tùy chọn cũ“--non-exclusive” bị bỏ qua.\n" #~ msgid "Read the key from a file (can be /dev/random)" -#~ msgstr "Đọc khóa từ một tập tin nào đó (có thể là“/dev/random”)" +#~ msgstr "Đọc khoá từ một tập tin nào đó (có thể là“/dev/random”)" #~ msgid "(Obsoleted, see man page.)" #~ msgstr "(Bị phản đối, xem trang hướng dẫn.)" diff --git a/python/Makefile.am b/python/Makefile.am index ab61082..a3880a8 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -10,7 +10,7 @@ pyexec_LTLIBRARIES = pycryptsetup.la pycryptsetup_la_SOURCES = pycryptsetup.c pycryptsetup_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_CPPFLAGS) -fno-strict-aliasing pycryptsetup_la_LDFLAGS = -avoid-version -module -shared -export-dynamic -pycryptsetup_la_LIBADD = $(top_builddir)/lib/libcryptsetup.la $(PYTHON_LIBS) +pycryptsetup_la_LIBADD = $(top_builddir)/lib/libcryptsetup.la -lpython$(PYTHON_VERSION) else all: endif diff --git a/python/Makefile.in b/python/Makefile.in deleted file mode 100644 index 05c183a..0000000 --- a/python/Makefile.in +++ /dev/null @@ -1,825 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = python -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(top_srcdir)/depcomp -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(pyexecdir)" -LTLIBRARIES = $(pyexec_LTLIBRARIES) -am__DEPENDENCIES_1 = -@PYTHON_CRYPTSETUP_TRUE@pycryptsetup_la_DEPENDENCIES = \ -@PYTHON_CRYPTSETUP_TRUE@ $(top_builddir)/lib/libcryptsetup.la \ -@PYTHON_CRYPTSETUP_TRUE@ $(am__DEPENDENCIES_1) -am__pycryptsetup_la_SOURCES_DIST = pycryptsetup.c -@PYTHON_CRYPTSETUP_TRUE@am_pycryptsetup_la_OBJECTS = \ -@PYTHON_CRYPTSETUP_TRUE@ pycryptsetup_la-pycryptsetup.lo -pycryptsetup_la_OBJECTS = $(am_pycryptsetup_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -pycryptsetup_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(AM_CFLAGS) $(CFLAGS) $(pycryptsetup_la_LDFLAGS) $(LDFLAGS) \ - -o $@ -@PYTHON_CRYPTSETUP_TRUE@am_pycryptsetup_la_rpath = -rpath $(pyexecdir) -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(pycryptsetup_la_SOURCES) -DIST_SOURCES = $(am__pycryptsetup_la_SOURCES_DIST) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -am__tty_colors_dummy = \ - mgn= red= grn= lgn= blu= brg= std=; \ - am__color_tests=no -am__tty_colors = { \ - $(am__tty_colors_dummy); \ - if test "X$(AM_COLOR_TESTS)" = Xno; then \ - am__color_tests=no; \ - elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ - am__color_tests=yes; \ - elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ - am__color_tests=yes; \ - fi; \ - if test $$am__color_tests = yes; then \ - red=''; \ - grn=''; \ - lgn=''; \ - blu=''; \ - mgn=''; \ - brg=''; \ - std=''; \ - fi; \ -} -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AM_CPPFLAGS = -include $(top_srcdir)/config.h -I$(top_srcdir)/lib $(PYTHON_INCLUDES) -EXTRA_DIST = pycryptsetup-test.py -CLEANFILES = *.img -@PYTHON_CRYPTSETUP_TRUE@TESTS = pycryptsetup-test.py -@PYTHON_CRYPTSETUP_TRUE@pyexec_LTLIBRARIES = pycryptsetup.la -@PYTHON_CRYPTSETUP_TRUE@pycryptsetup_la_SOURCES = pycryptsetup.c -@PYTHON_CRYPTSETUP_TRUE@pycryptsetup_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_CPPFLAGS) -fno-strict-aliasing -@PYTHON_CRYPTSETUP_TRUE@pycryptsetup_la_LDFLAGS = -avoid-version -module -shared -export-dynamic -@PYTHON_CRYPTSETUP_TRUE@pycryptsetup_la_LIBADD = $(top_builddir)/lib/libcryptsetup.la $(PYTHON_LIBS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .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 ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu python/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu python/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pyexecLTLIBRARIES: $(pyexec_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(pyexec_LTLIBRARIES)'; test -n "$(pyexecdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(MKDIR_P) '$(DESTDIR)$(pyexecdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(pyexecdir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pyexecdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pyexecdir)"; \ - } - -uninstall-pyexecLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(pyexec_LTLIBRARIES)'; test -n "$(pyexecdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pyexecdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pyexecdir)/$$f"; \ - done - -clean-pyexecLTLIBRARIES: - -test -z "$(pyexec_LTLIBRARIES)" || rm -f $(pyexec_LTLIBRARIES) - @list='$(pyexec_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -pycryptsetup.la: $(pycryptsetup_la_OBJECTS) $(pycryptsetup_la_DEPENDENCIES) $(EXTRA_pycryptsetup_la_DEPENDENCIES) - $(AM_V_CCLD)$(pycryptsetup_la_LINK) $(am_pycryptsetup_la_rpath) $(pycryptsetup_la_OBJECTS) $(pycryptsetup_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pycryptsetup_la-pycryptsetup.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -pycryptsetup_la-pycryptsetup.lo: pycryptsetup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pycryptsetup_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pycryptsetup_la-pycryptsetup.lo -MD -MP -MF $(DEPDIR)/pycryptsetup_la-pycryptsetup.Tpo -c -o pycryptsetup_la-pycryptsetup.lo `test -f 'pycryptsetup.c' || echo '$(srcdir)/'`pycryptsetup.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pycryptsetup_la-pycryptsetup.Tpo $(DEPDIR)/pycryptsetup_la-pycryptsetup.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pycryptsetup.c' object='pycryptsetup_la-pycryptsetup.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pycryptsetup_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pycryptsetup_la-pycryptsetup.lo `test -f 'pycryptsetup.c' || echo '$(srcdir)/'`pycryptsetup.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; \ - srcdir=$(srcdir); export srcdir; \ - list=' $(TESTS) '; \ - $(am__tty_colors); \ - if test -n "$$list"; then \ - for tst in $$list; do \ - if test -f ./$$tst; then dir=./; \ - elif test -f $$tst; then dir=; \ - else dir="$(srcdir)/"; fi; \ - if $(TESTS_ENVIRONMENT) $${dir}$$tst $(AM_TESTS_FD_REDIRECT); then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *[\ \ ]$$tst[\ \ ]*) \ - xpass=`expr $$xpass + 1`; \ - failed=`expr $$failed + 1`; \ - col=$$red; res=XPASS; \ - ;; \ - *) \ - col=$$grn; res=PASS; \ - ;; \ - esac; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *[\ \ ]$$tst[\ \ ]*) \ - xfail=`expr $$xfail + 1`; \ - col=$$lgn; res=XFAIL; \ - ;; \ - *) \ - failed=`expr $$failed + 1`; \ - col=$$red; res=FAIL; \ - ;; \ - esac; \ - else \ - skip=`expr $$skip + 1`; \ - col=$$blu; res=SKIP; \ - fi; \ - echo "$${col}$$res$${std}: $$tst"; \ - done; \ - if test "$$all" -eq 1; then \ - tests="test"; \ - All=""; \ - else \ - tests="tests"; \ - All="All "; \ - fi; \ - if test "$$failed" -eq 0; then \ - if test "$$xfail" -eq 0; then \ - banner="$$All$$all $$tests passed"; \ - else \ - if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ - banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ - fi; \ - else \ - if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all $$tests failed"; \ - else \ - if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ - banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ - fi; \ - fi; \ - dashes="$$banner"; \ - skipped=""; \ - if test "$$skip" -ne 0; then \ - if test "$$skip" -eq 1; then \ - skipped="($$skip test was not run)"; \ - else \ - skipped="($$skip tests were not run)"; \ - fi; \ - test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$skipped"; \ - fi; \ - report=""; \ - if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ - report="Please report to $(PACKAGE_BUGREPORT)"; \ - test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$report"; \ - fi; \ - dashes=`echo "$$dashes" | sed s/./=/g`; \ - if test "$$failed" -eq 0; then \ - col="$$grn"; \ - else \ - col="$$red"; \ - fi; \ - echo "$${col}$$dashes$${std}"; \ - echo "$${col}$$banner$${std}"; \ - test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \ - test -z "$$report" || echo "$${col}$$report$${std}"; \ - echo "$${col}$$dashes$${std}"; \ - test "$$failed" -eq 0; \ - else :; fi - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am - $(MAKE) $(AM_MAKEFLAGS) check-TESTS -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: - for dir in "$(DESTDIR)$(pyexecdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pyexecLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-pyexecLTLIBRARIES - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pyexecLTLIBRARIES - -.MAKE: check-am install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \ - clean-generic clean-libtool clean-pyexecLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am \ - install-pyexecLTLIBRARIES install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am \ - uninstall-pyexecLTLIBRARIES - -@PYTHON_CRYPTSETUP_FALSE@all: - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/python/pycryptsetup-test.py b/python/pycryptsetup-test.py index c57348b..cac42be 100755 --- a/python/pycryptsetup-test.py +++ b/python/pycryptsetup-test.py @@ -2,7 +2,7 @@ # # Python bindings to libcryptsetup test # -# Copyright (C) 2011-2014, Red Hat, Inc. All rights reserved. +# Copyright (C) 2011, Red Hat, Inc. All rights reserved. # # This file is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -18,8 +18,6 @@ # License along with this file; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -from __future__ import print_function - import sys import os @@ -33,11 +31,11 @@ DEVICE = "pycryptsetup_test_dev" def log(level, txt): if level == pycryptsetup.CRYPT_LOG_ERROR: - print(txt,end="") + print txt, return def askyes(txt): - print("Question:", txt) + print "Question:", txt return 1 def askpassword(txt): @@ -45,17 +43,17 @@ def askpassword(txt): def print_status(c): r = c.status() - print("status :",end="") + print "status :", if r == pycryptsetup.CRYPT_ACTIVE: - print("ACTIVE") + print "ACTIVE" elif r == pycryptsetup.CRYPT_INACTIVE: - print("INACTIVE") + print "INACTIVE" else: - print("ERROR") + print "ERROR" return if os.geteuid() != 0: - print("WARNING: You must be root to run this test, test skipped.") + print "WARNING: You must be root to run this test, test skipped." sys.exit(0) os.system("dd if=/dev/zero of=" + IMG + " bs=1M count=32 >/dev/null 2>&1") @@ -71,36 +69,36 @@ c = pycryptsetup.CryptSetup( c.debugLevel(pycryptsetup.CRYPT_DEBUG_NONE); c.iterationTime(1) r = c.isLuks() -print("isLuks :", r) +print "isLuks :", r c.askyes(message = "Is there anybody out there?") c.log(priority = pycryptsetup.CRYPT_LOG_ERROR, message = "Nobody there...\n") c.luksFormat(cipher = "aes", cipherMode= "xts-plain64", keysize = 512) -print("isLuks :", c.isLuks()) -print("luksUUID:", c.luksUUID()) -print("addKeyVK:", c.addKeyByVolumeKey(newPassphrase = PASSWORD, slot = 2)) -print("addKeyP :", c.addKeyByPassphrase(passphrase = PASSWORD, - newPassphrase = PASSWORD2, slot = 3)) -print("removeP :", c.removePassphrase(passphrase = PASSWORD2)) -print("addKeyP :", c.addKeyByPassphrase(PASSWORD, PASSWORD2)) +print "isLuks :", c.isLuks() +print "luksUUID:", c.luksUUID() +print "addKeyVK:", c.addKeyByVolumeKey(newPassphrase = PASSWORD, slot = 2) +print "addKeyP :", c.addKeyByPassphrase(passphrase = PASSWORD, + newPassphrase = PASSWORD2, slot = 3) +print "removeP :", c.removePassphrase(passphrase = PASSWORD2) +print "addKeyP :", c.addKeyByPassphrase(PASSWORD, PASSWORD2) # original api required wrong passphrase parameter here # print "killSlot:", c.killSlot(passphrase = "xxx", slot = 0) -print("killSlot:", c.killSlot(slot = 0)) -print("activate:", c.activate(name = DEVICE, passphrase = PASSWORD)) -print("suspend :", c.suspend()) +print "killSlot:", c.killSlot(slot = 0) +print "activate:", c.activate(name = DEVICE, passphrase = PASSWORD) +print "suspend :", c.suspend() # os.system("dmsetup info -c " + DEVICE) -print("resume :", c.resume(passphrase = PASSWORD)) +print "resume :", c.resume(passphrase = PASSWORD) print_status(c) info = c.info() -print("cipher :", info["cipher"]) -print("cmode :", info["cipher_mode"]) -print("keysize :", info["keysize"]) -print("dir :", info["dir"]) -print("device :", info["device"]) -print("offset :", info["offset"]) -print("name :", info["name"]) -print("uuid :", info["uuid"]) +print "cipher :", info["cipher"] +print "cmode :", info["cipher_mode"] +print "keysize :", info["keysize"] +print "dir :", info["dir"] +print "device :", info["device"] +print "offset :", info["offset"] +print "name :", info["name"] +print "uuid :", info["uuid"] # os.system("cryptsetup luksDump " + info["device"]) -print("deact. :", c.deactivate()) +print "deact. :", c.deactivate() del c @@ -111,7 +109,7 @@ c = pycryptsetup.CryptSetup( logFunc = log, passwordDialog = askpassword) -print("activate:", c.activate(name = DEVICE, passphrase = PASSWORD)) +print "activate:", c.activate(name = DEVICE, passphrase = PASSWORD) c2 = pycryptsetup.CryptSetup( name = DEVICE, @@ -120,13 +118,13 @@ c2 = pycryptsetup.CryptSetup( passwordDialog = askpassword) info = c2.info() -print("cipher :", info["cipher"]) -print("cmode :", info["cipher_mode"]) -print("keysize :", info["keysize"]) +print "cipher :", info["cipher"] +print "cmode :", info["cipher_mode"] +print "keysize :", info["keysize"] -print("deact. :", c.deactivate()) +print "deact. :", c.deactivate() r = c2.deactivate() -print("deact. :", r) +print "deact. :", r del c del c2 diff --git a/python/pycryptsetup.c b/python/pycryptsetup.c index 6dcda09..7c6253a 100644 --- a/python/pycryptsetup.c +++ b/python/pycryptsetup.c @@ -1,7 +1,7 @@ /* * Python bindings to libcryptsetup * - * Copyright (C) 2009-2014, Red Hat, Inc. All rights reserved. + * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. * Written by Martin Sivak * * This file is free software; you can redistribute it and/or @@ -25,29 +25,6 @@ #include "libcryptsetup.h" -/* Python API use char* where const char* should be used... */ -#define CONST_CAST(x) (x)(uintptr_t) - -#if PY_MAJOR_VERSION < 3 - #define MOD_ERROR_VAL - #define MOD_SUCCESS_VAL(val) - #define MOD_INIT(name) void init##name(void) - #define MOD_DEF(ob, name, doc, methods) \ - ob = Py_InitModule3(name, methods, doc); -#else - #define PyInt_AsLong PyLong_AsLong - #define PyInt_Check PyLong_Check - #define MOD_ERROR_VAL NULL - #define MOD_SUCCESS_VAL(val) val - #define MOD_INIT(name) PyMODINIT_FUNC PyInit_##name(void) - #define MOD_DEF(ob, name, doc, methods) \ - static struct PyModuleDef moduledef = { \ - PyModuleDef_HEAD_INIT, name, doc, -1, methods, }; \ - ob = PyModule_Create(&moduledef); -#endif - -MOD_INIT(pycryptsetup); - typedef struct { PyObject_HEAD @@ -151,7 +128,7 @@ static void CryptSetup_dealloc(CryptSetupObject* self) crypt_free(self->device); /* free self */ - Py_TYPE(self)->tp_free((PyObject*)self); + self->ob_type->tp_free((PyObject*)self); } static PyObject *CryptSetup_new(PyTypeObject *type, PyObject *args, PyObject *kwds) @@ -178,19 +155,17 @@ static PyObject *PyObjectResult(int is) return result; } -static char -CryptSetup_HELP[] = -"CryptSetup object\n\n\ +#define CryptSetup_HELP "CryptSetup object\n\n\ constructor takes one to five arguments:\n\ __init__(device, name, yesDialog, passwordDialog, logFunc)\n\n\ yesDialog - python function with func(text) signature, \n\ which asks the user question text and returns 1\n\ of the answer was positive or 0 if not\n\ - logFunc - python function with func(level, text) signature to log stuff somewhere"; + logFunc - python function with func(level, text) signature to log stuff somewhere" static int CryptSetup_init(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"device", "name", "yesDialog", "passwordDialog", "logFunc", NULL}; + static char *kwlist[] = {"device", "name", "yesDialog", "passwordDialog", "logFunc", NULL}; PyObject *yesDialogCB = NULL, *passwordDialogCB = NULL, *cmdLineLogCB = NULL, @@ -198,7 +173,7 @@ static int CryptSetup_init(CryptSetupObject* self, PyObject *args, PyObject *kwd char *device = NULL, *deviceName = NULL; int r; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "|zzOOO", CONST_CAST(char**)kwlist, &device, &deviceName, + if (!PyArg_ParseTupleAndKeywords(args, kwds, "|zzOOO", kwlist, &device, &deviceName, &yesDialogCB, &passwordDialogCB, &cmdLineLogCB)) return -1; @@ -254,18 +229,16 @@ static int CryptSetup_init(CryptSetupObject* self, PyObject *args, PyObject *kwd return 0; } -static char -CryptSetup_activate_HELP[] = -"Activate LUKS device\n\n\ - activate(name)"; +#define CryptSetup_activate_HELP "Activate LUKS device\n\n\ + activate(name)" static PyObject *CryptSetup_activate(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"name", "passphrase", NULL}; + static char *kwlist[] = {"name", "passphrase", NULL}; char *name = NULL, *passphrase = NULL; int is; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|s", CONST_CAST(char**)kwlist, &name, &passphrase)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|s", kwlist, &name, &passphrase)) return NULL; // FIXME: allow keyfile and \0 in passphrase @@ -280,10 +253,8 @@ static PyObject *CryptSetup_activate(CryptSetupObject* self, PyObject *args, PyO return PyObjectResult(is); } -static char -CryptSetup_deactivate_HELP[] = -"Dectivate LUKS device\n\n\ - deactivate()"; +#define CryptSetup_deactivate_HELP "Dectivate LUKS device\n\n\ + deactivate()" static PyObject *CryptSetup_deactivate(CryptSetupObject* self, PyObject *args, PyObject *kwds) { @@ -297,17 +268,15 @@ static PyObject *CryptSetup_deactivate(CryptSetupObject* self, PyObject *args, P return PyObjectResult(is); } -static char -CryptSetup_askyes_HELP[] = -"Asks a question using the configured dialog CB\n\n\ - int askyes(message)"; +#define CryptSetup_askyes_HELP "Asks a question using the configured dialog CB\n\n\ + int askyes(message)" static PyObject *CryptSetup_askyes(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"message", NULL}; + static char *kwlist[] = {"message", NULL}; PyObject *message = NULL, *result, *arglist; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O", CONST_CAST(char**)kwlist, &message)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "O", kwlist, &message)) return NULL; Py_INCREF(message); @@ -325,17 +294,15 @@ static PyObject *CryptSetup_askyes(CryptSetupObject* self, PyObject *args, PyObj return result; } -static char -CryptSetup_log_HELP[] = -"Logs a string using the configured log CB\n\n\ - log(int level, message)"; +#define CryptSetup_log_HELP "Logs a string using the configured log CB\n\n\ + log(int level, message)" static PyObject *CryptSetup_log(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"priority", "message", NULL}; + static char *kwlist[] = {"priority", "message", NULL}; PyObject *message = NULL, *priority = NULL, *result, *arglist; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO", CONST_CAST(char**)kwlist, &message, &priority)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO", kwlist, &message, &priority)) return NULL; Py_INCREF(message); @@ -355,10 +322,8 @@ static PyObject *CryptSetup_log(CryptSetupObject* self, PyObject *args, PyObject return result; } -static char -CryptSetup_luksUUID_HELP[] = -"Get UUID of the LUKS device\n\n\ - luksUUID()"; +#define CryptSetup_luksUUID_HELP "Get UUID of the LUKS device\n\n\ + luksUUID()" static PyObject *CryptSetup_luksUUID(CryptSetupObject* self, PyObject *args, PyObject *kwds) { @@ -371,21 +336,17 @@ static PyObject *CryptSetup_luksUUID(CryptSetupObject* self, PyObject *args, PyO return result; } -static char -CryptSetup_isLuks_HELP[] = -"Is the device LUKS?\n\n\ - isLuks()"; +#define CryptSetup_isLuks_HELP "Is the device LUKS?\n\n\ + isLuks()" static PyObject *CryptSetup_isLuks(CryptSetupObject* self, PyObject *args, PyObject *kwds) { return PyObjectResult(crypt_load(self->device, CRYPT_LUKS1, NULL)); } -static char -CryptSetup_Info_HELP[] = -"Returns dictionary with info about opened device\nKeys:\n\ +#define CryptSetup_Info_HELP "Returns dictionary with info about opened device\nKeys:\n\ dir\n name\n uuid\n cipher\n cipher_mode\n keysize\n device\n\ - offset\n size\n skip\n mode\n"; + offset\n size\n skip\n mode\n" static PyObject *CryptSetup_Info(CryptSetupObject* self, PyObject *args, PyObject *kwds) { @@ -410,22 +371,20 @@ static PyObject *CryptSetup_Info(CryptSetupObject* self, PyObject *args, PyObjec return result; } -static char -CryptSetup_luksFormat_HELP[] = -"Format device to enable LUKS\n\n\ +#define CryptSetup_luksFormat_HELP "Format device to enable LUKS\n\n\ luksFormat(cipher = 'aes', cipherMode = 'cbc-essiv:sha256', keysize = 256)\n\n\ cipher - cipher specification, e.g. aes, serpent\n\ cipherMode - cipher mode specification, e.g. cbc-essiv:sha256, xts-plain64\n\ - keysize - key size in bits"; + keysize - key size in bits" static PyObject *CryptSetup_luksFormat(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"cipher", "cipherMode", "keysize", NULL}; + static char *kwlist[] = {"cipher", "cipherMode", "keysize", NULL}; char *cipher_mode = NULL, *cipher = NULL; int keysize = 256; PyObject *keysize_object = NULL; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "|zzO", CONST_CAST(char**)kwlist, + if (!PyArg_ParseTupleAndKeywords(args, kwds, "|zzO", kwlist, &cipher, &cipher_mode, &keysize_object)) return NULL; @@ -449,22 +408,20 @@ static PyObject *CryptSetup_luksFormat(CryptSetupObject* self, PyObject *args, P NULL, NULL, keysize / 8, NULL)); } -static char -CryptSetup_addKeyByPassphrase_HELP[] = -"Initialize keyslot using passphrase\n\n\ +#define CryptSetup_addKeyByPassphrase_HELP "Initialize keyslot using passphrase\n\n\ addKeyByPassphrase(passphrase, newPassphrase, slot)\n\n\ passphrase - string or none to ask the user\n\ newPassphrase - passphrase to add\n\ - slot - which slot to use (optional)"; + slot - which slot to use (optional)" static PyObject *CryptSetup_addKeyByPassphrase(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"passphrase", "newPassphrase", "slot", NULL}; + static char *kwlist[] = {"passphrase", "newPassphrase", "slot", NULL}; char *passphrase = NULL, *newpassphrase = NULL; size_t passphrase_len = 0, newpassphrase_len = 0; int slot = CRYPT_ANY_SLOT; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "ss|i", CONST_CAST(char**)kwlist, &passphrase, &newpassphrase, &slot)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "ss|i", kwlist, &passphrase, &newpassphrase, &slot)) return NULL; if(passphrase) @@ -478,21 +435,19 @@ static PyObject *CryptSetup_addKeyByPassphrase(CryptSetupObject* self, PyObject newpassphrase, newpassphrase_len)); } -static char -CryptSetup_addKeyByVolumeKey_HELP[] = -"Initialize keyslot using cached volume key\n\n\ +#define CryptSetup_addKeyByVolumeKey_HELP "Initialize keyslot using cached volume key\n\n\ addKeyByVolumeKey(passphrase, newPassphrase, slot)\n\n\ newPassphrase - passphrase to add\n\ - slot - which slot to use (optional)"; + slot - which slot to use (optional)" static PyObject *CryptSetup_addKeyByVolumeKey(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"newPassphrase", "slot", NULL}; + static char *kwlist[] = {"newPassphrase", "slot", NULL}; char *newpassphrase = NULL; size_t newpassphrase_len = 0; int slot = CRYPT_ANY_SLOT; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|i", CONST_CAST(char**)kwlist, &newpassphrase, &slot)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|i", kwlist, &newpassphrase, &slot)) return NULL; if (newpassphrase) @@ -502,20 +457,18 @@ static PyObject *CryptSetup_addKeyByVolumeKey(CryptSetupObject* self, PyObject * NULL, 0, newpassphrase, newpassphrase_len)); } -static char -CryptSetup_removePassphrase_HELP[] = -"Destroy keyslot using passphrase\n\n\ +#define CryptSetup_removePassphrase_HELP "Destroy keyslot using passphrase\n\n\ removePassphrase(passphrase)\n\n\ - passphrase - string or none to ask the user"; + passphrase - string or none to ask the user" static PyObject *CryptSetup_removePassphrase(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"passphrase", NULL}; + static char *kwlist[] = {"passphrase", NULL}; char *passphrase = NULL; size_t passphrase_len = 0; int is; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "s", CONST_CAST(char**)kwlist, &passphrase)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "s", kwlist, &passphrase)) return NULL; if (passphrase) @@ -529,18 +482,16 @@ static PyObject *CryptSetup_removePassphrase(CryptSetupObject* self, PyObject *a return PyObjectResult(crypt_keyslot_destroy(self->device, is)); } -static char -CryptSetup_killSlot_HELP[] = -"Destroy keyslot\n\n\ +#define CryptSetup_killSlot_HELP "Destroy keyslot\n\n\ killSlot(slot)\n\n\ - slot - the slot to remove"; + slot - the slot to remove" static PyObject *CryptSetup_killSlot(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"slot", NULL}; + static char *kwlist[] = {"slot", NULL}; int slot = CRYPT_ANY_SLOT; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "i", CONST_CAST(char**)kwlist, &slot)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "i", kwlist, &slot)) return NULL; switch (crypt_keyslot_status(self->device, slot)) { @@ -560,10 +511,8 @@ static PyObject *CryptSetup_killSlot(CryptSetupObject* self, PyObject *args, PyO return NULL; } -static char -CryptSetup_Status_HELP[] = -"Status of LUKS device\n\n\ - luksStatus()"; +#define CryptSetup_Status_HELP "Status of LUKS device\n\n\ + luksStatus()" static PyObject *CryptSetup_Status(CryptSetupObject* self, PyObject *args, PyObject *kwds) { @@ -575,15 +524,13 @@ static PyObject *CryptSetup_Status(CryptSetupObject* self, PyObject *args, PyObj return PyObjectResult(crypt_status(self->device, self->activated_as)); } -static char -CryptSetup_Resume_HELP[] = -"Resume LUKS device\n\n\ +#define CryptSetup_Resume_HELP "Resume LUKS device\n\n\ luksOpen(passphrase)\n\n\ - passphrase - string or none to ask the user"; + passphrase - string or none to ask the user" static PyObject *CryptSetup_Resume(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"passphrase", NULL}; + static char *kwlist[] = {"passphrase", NULL}; char* passphrase = NULL; size_t passphrase_len = 0; @@ -592,7 +539,7 @@ static PyObject *CryptSetup_Resume(CryptSetupObject* self, PyObject *args, PyObj return NULL; } - if (! PyArg_ParseTupleAndKeywords(args, kwds, "|s", CONST_CAST(char**)kwlist, &passphrase)) + if (! PyArg_ParseTupleAndKeywords(args, kwds, "|s", kwlist, &passphrase)) return NULL; if (passphrase) @@ -602,10 +549,8 @@ static PyObject *CryptSetup_Resume(CryptSetupObject* self, PyObject *args, PyObj CRYPT_ANY_SLOT, passphrase, passphrase_len)); } -static char -CryptSetup_Suspend_HELP[] = -"Suspend LUKS device\n\n\ - luksSupsend()"; +#define CryptSetup_Suspend_HELP "Suspend LUKS device\n\n\ + luksSupsend()" static PyObject *CryptSetup_Suspend(CryptSetupObject* self, PyObject *args, PyObject *kwds) { @@ -617,18 +562,16 @@ static PyObject *CryptSetup_Suspend(CryptSetupObject* self, PyObject *args, PyOb return PyObjectResult(crypt_suspend(self->device, self->activated_as)); } -static char -CryptSetup_debugLevel_HELP[] = -"Set debug level\n\n\ +#define CryptSetup_debugLevel_HELP "Set debug level\n\n\ debugLevel(level)\n\n\ - level - debug level"; + level - debug level" static PyObject *CryptSetup_debugLevel(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"level", NULL}; + static char *kwlist[] = {"level", NULL}; int level = 0; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "i", CONST_CAST(char**)kwlist, &level)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "i", kwlist, &level)) return NULL; crypt_set_debug_level(level); @@ -636,18 +579,16 @@ static PyObject *CryptSetup_debugLevel(CryptSetupObject* self, PyObject *args, P Py_RETURN_NONE; } -static char -CryptSetup_iterationTime_HELP[] = -"Set iteration time\n\n\ +#define CryptSetup_iterationTime_HELP "Set iteration time\n\n\ iterationTime(time_ms)\n\n\ - time_ms - time in miliseconds"; + time_ms - time in miliseconds" static PyObject *CryptSetup_iterationTime(CryptSetupObject* self, PyObject *args, PyObject *kwds) { - static const char *kwlist[] = {"time_ms", NULL}; + static char *kwlist[] = {"time_ms", NULL}; uint64_t time_ms = 0; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "K", CONST_CAST(char**)kwlist, &time_ms)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "K", kwlist, &time_ms)) return NULL; crypt_set_iteration_time(self->device, time_ms); @@ -656,9 +597,9 @@ static PyObject *CryptSetup_iterationTime(CryptSetupObject* self, PyObject *args } static PyMemberDef CryptSetup_members[] = { - {CONST_CAST(char*)"yesDialogCB", T_OBJECT_EX, offsetof(CryptSetupObject, yesDialogCB), 0, CONST_CAST(char*)"confirmation dialog callback"}, - {CONST_CAST(char*)"cmdLineLogCB", T_OBJECT_EX, offsetof(CryptSetupObject, cmdLineLogCB), 0, CONST_CAST(char*)"logging callback"}, - {CONST_CAST(char*)"passwordDialogCB", T_OBJECT_EX, offsetof(CryptSetupObject, passwordDialogCB), 0, CONST_CAST(char*)"password dialog callback"}, + {"yesDialogCB", T_OBJECT_EX, offsetof(CryptSetupObject, yesDialogCB), 0, "confirmation dialog callback"}, + {"cmdLineLogCB", T_OBJECT_EX, offsetof(CryptSetupObject, cmdLineLogCB), 0, "logging callback"}, + {"passwordDialogCB", T_OBJECT_EX, offsetof(CryptSetupObject, passwordDialogCB), 0, "password dialog callback"}, {NULL} }; @@ -674,7 +615,7 @@ static PyMethodDef CryptSetup_methods[] = { /* cryptsetup info entrypoints */ {"luksUUID", (PyCFunction)CryptSetup_luksUUID, METH_NOARGS, CryptSetup_luksUUID_HELP}, {"isLuks", (PyCFunction)CryptSetup_isLuks, METH_NOARGS, CryptSetup_isLuks_HELP}, - {"info", (PyCFunction)CryptSetup_Info, METH_NOARGS, CryptSetup_Info_HELP}, + {"info", (PyCFunction)CryptSetup_Info, METH_NOARGS, CryptSetup_Info_HELP}, {"status", (PyCFunction)CryptSetup_Status, METH_NOARGS, CryptSetup_Status_HELP}, /* cryptsetup mgmt entrypoints */ @@ -696,7 +637,8 @@ static PyMethodDef CryptSetup_methods[] = { }; static PyTypeObject CryptSetupType = { - PyVarObject_HEAD_INIT(NULL, 0) + PyObject_HEAD_INIT(NULL) + 0, /*ob_size*/ "pycryptsetup.CryptSetup", /*tp_name*/ sizeof(CryptSetupObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ @@ -740,14 +682,15 @@ static PyMethodDef pycryptsetup_methods[] = { {NULL} /* Sentinel */ }; -MOD_INIT(pycryptsetup) +PyMODINIT_FUNC initpycryptsetup(void); +PyMODINIT_FUNC initpycryptsetup(void) { PyObject *m; if (PyType_Ready(&CryptSetupType) < 0) - return MOD_ERROR_VAL; + return; - MOD_DEF(m, "pycryptsetup", "CryptSetup pythonized API.", pycryptsetup_methods); + m = Py_InitModule3("pycryptsetup", pycryptsetup_methods, "CryptSetup pythonized API."); Py_INCREF(&CryptSetupType); PyModule_AddObject(m, "CryptSetup", (PyObject *)&CryptSetupType); @@ -767,6 +710,4 @@ MOD_INIT(pycryptsetup) PyModule_AddIntConstant(m, "CRYPT_INACTIVE", CRYPT_INACTIVE); PyModule_AddIntConstant(m, "CRYPT_ACTIVE", CRYPT_ACTIVE); PyModule_AddIntConstant(m, "CRYPT_BUSY", CRYPT_BUSY); - - return MOD_SUCCESS_VAL(m); } diff --git a/src/Makefile.am b/src/Makefile.am index ee0c814..eeec03f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,6 +21,7 @@ cryptsetup_SOURCES = \ cryptsetup_LDADD = \ $(top_builddir)/lib/libcryptsetup.la \ @POPT_LIBS@ \ + @FIPSCHECK_LIBS@ \ @PWQUALITY_LIBS@ cryptsetup_CFLAGS = $(AM_CFLAGS) -Wall diff --git a/src/Makefile.in b/src/Makefile.in deleted file mode 100644 index 45ed671..0000000 --- a/src/Makefile.in +++ /dev/null @@ -1,1265 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -sbin_PROGRAMS = cryptsetup$(EXEEXT) $(am__EXEEXT_1) $(am__EXEEXT_2) \ - $(am__EXEEXT_3) $(am__EXEEXT_4) $(am__EXEEXT_5) -@STATIC_TOOLS_TRUE@am__append_1 = cryptsetup.static -@VERITYSETUP_TRUE@am__append_2 = veritysetup -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@am__append_3 = veritysetup.static -@REENCRYPT_TRUE@am__append_4 = cryptsetup-reencrypt -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@am__append_5 = cryptsetup-reencrypt.static -subdir = src -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(top_srcdir)/depcomp -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -@STATIC_TOOLS_TRUE@am__EXEEXT_1 = cryptsetup.static$(EXEEXT) -@VERITYSETUP_TRUE@am__EXEEXT_2 = veritysetup$(EXEEXT) -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@am__EXEEXT_3 = veritysetup.static$(EXEEXT) -@REENCRYPT_TRUE@am__EXEEXT_4 = cryptsetup-reencrypt$(EXEEXT) -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@am__EXEEXT_5 = cryptsetup-reencrypt.static$(EXEEXT) -am__installdirs = "$(DESTDIR)$(sbindir)" -PROGRAMS = $(sbin_PROGRAMS) -am_cryptsetup_OBJECTS = cryptsetup-utils_crypt.$(OBJEXT) \ - cryptsetup-utils_loop.$(OBJEXT) \ - cryptsetup-utils_fips.$(OBJEXT) \ - cryptsetup-utils_tools.$(OBJEXT) \ - cryptsetup-utils_password.$(OBJEXT) \ - cryptsetup-cryptsetup.$(OBJEXT) -cryptsetup_OBJECTS = $(am_cryptsetup_OBJECTS) -cryptsetup_DEPENDENCIES = $(top_builddir)/lib/libcryptsetup.la -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -cryptsetup_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(cryptsetup_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -am__cryptsetup_reencrypt_SOURCES_DIST = \ - $(top_builddir)/lib/utils_crypt.c utils_tools.c \ - cryptsetup_reencrypt.c cryptsetup.h -@REENCRYPT_TRUE@am_cryptsetup_reencrypt_OBJECTS = \ -@REENCRYPT_TRUE@ cryptsetup_reencrypt-utils_crypt.$(OBJEXT) \ -@REENCRYPT_TRUE@ cryptsetup_reencrypt-utils_tools.$(OBJEXT) \ -@REENCRYPT_TRUE@ cryptsetup_reencrypt-cryptsetup_reencrypt.$(OBJEXT) -cryptsetup_reencrypt_OBJECTS = $(am_cryptsetup_reencrypt_OBJECTS) -am__DEPENDENCIES_1 = $(top_builddir)/lib/libcryptsetup.la -@REENCRYPT_TRUE@cryptsetup_reencrypt_DEPENDENCIES = \ -@REENCRYPT_TRUE@ $(am__DEPENDENCIES_1) -cryptsetup_reencrypt_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -am__cryptsetup_reencrypt_static_SOURCES_DIST = \ - $(top_builddir)/lib/utils_crypt.c utils_tools.c \ - cryptsetup_reencrypt.c cryptsetup.h -@REENCRYPT_TRUE@am__objects_1 = cryptsetup_reencrypt_static-utils_crypt.$(OBJEXT) \ -@REENCRYPT_TRUE@ cryptsetup_reencrypt_static-utils_tools.$(OBJEXT) \ -@REENCRYPT_TRUE@ cryptsetup_reencrypt_static-cryptsetup_reencrypt.$(OBJEXT) -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@am_cryptsetup_reencrypt_static_OBJECTS = \ -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@ $(am__objects_1) -cryptsetup_reencrypt_static_OBJECTS = \ - $(am_cryptsetup_reencrypt_static_OBJECTS) -@REENCRYPT_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@cryptsetup_reencrypt_static_DEPENDENCIES = \ -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@ $(am__DEPENDENCIES_2) -cryptsetup_reencrypt_static_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) \ - $(cryptsetup_reencrypt_static_LDFLAGS) $(LDFLAGS) -o $@ -am__cryptsetup_static_SOURCES_DIST = \ - $(top_builddir)/lib/utils_crypt.c \ - $(top_builddir)/lib/utils_loop.c \ - $(top_builddir)/lib/utils_fips.c utils_tools.c \ - utils_password.c cryptsetup.c cryptsetup.h -am__objects_2 = cryptsetup_static-utils_crypt.$(OBJEXT) \ - cryptsetup_static-utils_loop.$(OBJEXT) \ - cryptsetup_static-utils_fips.$(OBJEXT) \ - cryptsetup_static-utils_tools.$(OBJEXT) \ - cryptsetup_static-utils_password.$(OBJEXT) \ - cryptsetup_static-cryptsetup.$(OBJEXT) -@STATIC_TOOLS_TRUE@am_cryptsetup_static_OBJECTS = $(am__objects_2) -cryptsetup_static_OBJECTS = $(am_cryptsetup_static_OBJECTS) -@STATIC_TOOLS_TRUE@cryptsetup_static_DEPENDENCIES = \ -@STATIC_TOOLS_TRUE@ $(am__DEPENDENCIES_1) -cryptsetup_static_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(cryptsetup_static_CFLAGS) $(CFLAGS) \ - $(cryptsetup_static_LDFLAGS) $(LDFLAGS) -o $@ -am__veritysetup_SOURCES_DIST = $(top_builddir)/lib/utils_crypt.c \ - $(top_builddir)/lib/utils_loop.c utils_tools.c veritysetup.c \ - cryptsetup.h -@VERITYSETUP_TRUE@am_veritysetup_OBJECTS = \ -@VERITYSETUP_TRUE@ veritysetup-utils_crypt.$(OBJEXT) \ -@VERITYSETUP_TRUE@ veritysetup-utils_loop.$(OBJEXT) \ -@VERITYSETUP_TRUE@ veritysetup-utils_tools.$(OBJEXT) \ -@VERITYSETUP_TRUE@ veritysetup-veritysetup.$(OBJEXT) -veritysetup_OBJECTS = $(am_veritysetup_OBJECTS) -@VERITYSETUP_TRUE@veritysetup_DEPENDENCIES = \ -@VERITYSETUP_TRUE@ $(top_builddir)/lib/libcryptsetup.la -veritysetup_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(veritysetup_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -am__veritysetup_static_SOURCES_DIST = \ - $(top_builddir)/lib/utils_crypt.c \ - $(top_builddir)/lib/utils_loop.c utils_tools.c veritysetup.c \ - cryptsetup.h -@VERITYSETUP_TRUE@am__objects_3 = \ -@VERITYSETUP_TRUE@ veritysetup_static-utils_crypt.$(OBJEXT) \ -@VERITYSETUP_TRUE@ veritysetup_static-utils_loop.$(OBJEXT) \ -@VERITYSETUP_TRUE@ veritysetup_static-utils_tools.$(OBJEXT) \ -@VERITYSETUP_TRUE@ veritysetup_static-veritysetup.$(OBJEXT) -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@am_veritysetup_static_OBJECTS = \ -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@ $(am__objects_3) -veritysetup_static_OBJECTS = $(am_veritysetup_static_OBJECTS) -@VERITYSETUP_TRUE@am__DEPENDENCIES_3 = \ -@VERITYSETUP_TRUE@ $(top_builddir)/lib/libcryptsetup.la -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@veritysetup_static_DEPENDENCIES = \ -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@ $(am__DEPENDENCIES_3) -veritysetup_static_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(veritysetup_static_CFLAGS) $(CFLAGS) \ - $(veritysetup_static_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(cryptsetup_SOURCES) $(cryptsetup_reencrypt_SOURCES) \ - $(cryptsetup_reencrypt_static_SOURCES) \ - $(cryptsetup_static_SOURCES) $(veritysetup_SOURCES) \ - $(veritysetup_static_SOURCES) -DIST_SOURCES = $(cryptsetup_SOURCES) \ - $(am__cryptsetup_reencrypt_SOURCES_DIST) \ - $(am__cryptsetup_reencrypt_static_SOURCES_DIST) \ - $(am__cryptsetup_static_SOURCES_DIST) \ - $(am__veritysetup_SOURCES_DIST) \ - $(am__veritysetup_static_SOURCES_DIST) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AM_CPPFLAGS = -include config.h \ - -I$(top_srcdir) \ - -I$(top_srcdir)/lib \ - -DDATADIR=\""$(datadir)"\" \ - -DLOCALEDIR=\""$(datadir)/locale"\" \ - -DLIBDIR=\""$(libdir)"\" \ - -DPREFIX=\""$(prefix)"\" \ - -DSYSCONFDIR=\""$(sysconfdir)"\" \ - -DVERSION=\""$(VERSION)"\" - - -# cryptsetup -cryptsetup_SOURCES = \ - $(top_builddir)/lib/utils_crypt.c \ - $(top_builddir)/lib/utils_loop.c \ - $(top_builddir)/lib/utils_fips.c \ - utils_tools.c \ - utils_password.c \ - cryptsetup.c \ - cryptsetup.h - -cryptsetup_LDADD = \ - $(top_builddir)/lib/libcryptsetup.la \ - @POPT_LIBS@ \ - @PWQUALITY_LIBS@ - -cryptsetup_CFLAGS = $(AM_CFLAGS) -Wall -@STATIC_TOOLS_TRUE@cryptsetup_static_SOURCES = $(cryptsetup_SOURCES) -@STATIC_TOOLS_TRUE@cryptsetup_static_CFLAGS = $(cryptsetup_CFLAGS) -@STATIC_TOOLS_TRUE@cryptsetup_static_LDFLAGS = $(AM_LDFLAGS) -all-static -@STATIC_TOOLS_TRUE@cryptsetup_static_LDADD = $(cryptsetup_LDADD) \ -@STATIC_TOOLS_TRUE@ @CRYPTO_STATIC_LIBS@ \ -@STATIC_TOOLS_TRUE@ @PWQUALITY_STATIC_LIBS@ \ -@STATIC_TOOLS_TRUE@ @DEVMAPPER_STATIC_LIBS@ \ -@STATIC_TOOLS_TRUE@ @UUID_LIBS@ - - -# veritysetup -@VERITYSETUP_TRUE@veritysetup_SOURCES = \ -@VERITYSETUP_TRUE@ $(top_builddir)/lib/utils_crypt.c \ -@VERITYSETUP_TRUE@ $(top_builddir)/lib/utils_loop.c \ -@VERITYSETUP_TRUE@ utils_tools.c \ -@VERITYSETUP_TRUE@ veritysetup.c \ -@VERITYSETUP_TRUE@ cryptsetup.h - -@VERITYSETUP_TRUE@veritysetup_LDADD = \ -@VERITYSETUP_TRUE@ $(top_builddir)/lib/libcryptsetup.la \ -@VERITYSETUP_TRUE@ @POPT_LIBS@ - -@VERITYSETUP_TRUE@veritysetup_CFLAGS = $(cryptsetup_CFLAGS) -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@veritysetup_static_SOURCES = $(veritysetup_SOURCES) -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@veritysetup_static_CFLAGS = $(veritysetup_CFLAGS) -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@veritysetup_static_LDFLAGS = $(AM_LDFLAGS) -all-static -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@veritysetup_static_LDADD = $(veritysetup_LDADD) \ -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@ @CRYPTO_STATIC_LIBS@ \ -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@ @DEVMAPPER_STATIC_LIBS@ \ -@STATIC_TOOLS_TRUE@@VERITYSETUP_TRUE@ @UUID_LIBS@ - - -# reencrypt -@REENCRYPT_TRUE@cryptsetup_reencrypt_SOURCES = \ -@REENCRYPT_TRUE@ $(top_builddir)/lib/utils_crypt.c \ -@REENCRYPT_TRUE@ utils_tools.c \ -@REENCRYPT_TRUE@ cryptsetup_reencrypt.c \ -@REENCRYPT_TRUE@ cryptsetup.h - -@REENCRYPT_TRUE@cryptsetup_reencrypt_LDADD = $(cryptsetup_LDADD) -@REENCRYPT_TRUE@cryptsetup_reencrypt_CFLAGS = $(cryptsetup_CFLAGS) -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@cryptsetup_reencrypt_static_SOURCES = $(cryptsetup_reencrypt_SOURCES) -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@cryptsetup_reencrypt_static_CFLAGS = $(cryptsetup_reencrypt_CFLAGS) -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@cryptsetup_reencrypt_static_LDFLAGS = $(AM_LDFLAGS) -all-static -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@cryptsetup_reencrypt_static_LDADD = $(cryptsetup_reencrypt_LDADD) \ -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@ @CRYPTO_STATIC_LIBS@ \ -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@ @DEVMAPPER_STATIC_LIBS@ \ -@REENCRYPT_TRUE@@STATIC_TOOLS_TRUE@ @UUID_LIBS@ - -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .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 ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ - $(am__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 -$(am__aclocal_m4_deps): -install-sbinPROGRAMS: $(sbin_PROGRAMS) - @$(NORMAL_INSTALL) - @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ - fi; \ - for p in $$list; do echo "$$p $$p"; done | \ - sed 's/$(EXEEXT)$$//' | \ - while read p p1; do if test -f $$p \ - || test -f $$p1 \ - ; then echo "$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n;h' \ - -e 's|.*|.|' \ - -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ - sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) files[d] = files[d] " " $$1; \ - else { print "f", $$3 "/" $$4, $$1; } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-sbinPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ - -e 's/$$/$(EXEEXT)/' \ - `; \ - test -n "$$list" || exit 0; \ - echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(sbindir)" && rm -f $$files - -clean-sbinPROGRAMS: - @list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list - -cryptsetup$(EXEEXT): $(cryptsetup_OBJECTS) $(cryptsetup_DEPENDENCIES) $(EXTRA_cryptsetup_DEPENDENCIES) - @rm -f cryptsetup$(EXEEXT) - $(AM_V_CCLD)$(cryptsetup_LINK) $(cryptsetup_OBJECTS) $(cryptsetup_LDADD) $(LIBS) - -cryptsetup-reencrypt$(EXEEXT): $(cryptsetup_reencrypt_OBJECTS) $(cryptsetup_reencrypt_DEPENDENCIES) $(EXTRA_cryptsetup_reencrypt_DEPENDENCIES) - @rm -f cryptsetup-reencrypt$(EXEEXT) - $(AM_V_CCLD)$(cryptsetup_reencrypt_LINK) $(cryptsetup_reencrypt_OBJECTS) $(cryptsetup_reencrypt_LDADD) $(LIBS) - -cryptsetup-reencrypt.static$(EXEEXT): $(cryptsetup_reencrypt_static_OBJECTS) $(cryptsetup_reencrypt_static_DEPENDENCIES) $(EXTRA_cryptsetup_reencrypt_static_DEPENDENCIES) - @rm -f cryptsetup-reencrypt.static$(EXEEXT) - $(AM_V_CCLD)$(cryptsetup_reencrypt_static_LINK) $(cryptsetup_reencrypt_static_OBJECTS) $(cryptsetup_reencrypt_static_LDADD) $(LIBS) - -cryptsetup.static$(EXEEXT): $(cryptsetup_static_OBJECTS) $(cryptsetup_static_DEPENDENCIES) $(EXTRA_cryptsetup_static_DEPENDENCIES) - @rm -f cryptsetup.static$(EXEEXT) - $(AM_V_CCLD)$(cryptsetup_static_LINK) $(cryptsetup_static_OBJECTS) $(cryptsetup_static_LDADD) $(LIBS) - -veritysetup$(EXEEXT): $(veritysetup_OBJECTS) $(veritysetup_DEPENDENCIES) $(EXTRA_veritysetup_DEPENDENCIES) - @rm -f veritysetup$(EXEEXT) - $(AM_V_CCLD)$(veritysetup_LINK) $(veritysetup_OBJECTS) $(veritysetup_LDADD) $(LIBS) - -veritysetup.static$(EXEEXT): $(veritysetup_static_OBJECTS) $(veritysetup_static_DEPENDENCIES) $(EXTRA_veritysetup_static_DEPENDENCIES) - @rm -f veritysetup.static$(EXEEXT) - $(AM_V_CCLD)$(veritysetup_static_LINK) $(veritysetup_static_OBJECTS) $(veritysetup_static_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup-cryptsetup.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup-utils_crypt.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup-utils_fips.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup-utils_loop.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup-utils_password.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup-utils_tools.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_reencrypt-cryptsetup_reencrypt.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_reencrypt-utils_crypt.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_reencrypt-utils_tools.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_reencrypt_static-cryptsetup_reencrypt.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_reencrypt_static-utils_crypt.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_reencrypt_static-utils_tools.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_static-cryptsetup.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_static-utils_crypt.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_static-utils_fips.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_static-utils_loop.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_static-utils_password.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cryptsetup_static-utils_tools.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/veritysetup-utils_crypt.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/veritysetup-utils_loop.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/veritysetup-utils_tools.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/veritysetup-veritysetup.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/veritysetup_static-utils_crypt.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/veritysetup_static-utils_loop.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/veritysetup_static-utils_tools.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/veritysetup_static-veritysetup.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -cryptsetup-utils_crypt.o: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-utils_crypt.o -MD -MP -MF $(DEPDIR)/cryptsetup-utils_crypt.Tpo -c -o cryptsetup-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-utils_crypt.Tpo $(DEPDIR)/cryptsetup-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='cryptsetup-utils_crypt.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c - -cryptsetup-utils_crypt.obj: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-utils_crypt.obj -MD -MP -MF $(DEPDIR)/cryptsetup-utils_crypt.Tpo -c -o cryptsetup-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-utils_crypt.Tpo $(DEPDIR)/cryptsetup-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='cryptsetup-utils_crypt.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` - -cryptsetup-utils_loop.o: $(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-utils_loop.o -MD -MP -MF $(DEPDIR)/cryptsetup-utils_loop.Tpo -c -o cryptsetup-utils_loop.o `test -f '$(top_builddir)/lib/utils_loop.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-utils_loop.Tpo $(DEPDIR)/cryptsetup-utils_loop.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_loop.c' object='cryptsetup-utils_loop.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-utils_loop.o `test -f '$(top_builddir)/lib/utils_loop.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_loop.c - -cryptsetup-utils_loop.obj: $(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-utils_loop.obj -MD -MP -MF $(DEPDIR)/cryptsetup-utils_loop.Tpo -c -o cryptsetup-utils_loop.obj `if test -f '$(top_builddir)/lib/utils_loop.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_loop.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_loop.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-utils_loop.Tpo $(DEPDIR)/cryptsetup-utils_loop.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_loop.c' object='cryptsetup-utils_loop.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-utils_loop.obj `if test -f '$(top_builddir)/lib/utils_loop.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_loop.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_loop.c'; fi` - -cryptsetup-utils_fips.o: $(top_builddir)/lib/utils_fips.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-utils_fips.o -MD -MP -MF $(DEPDIR)/cryptsetup-utils_fips.Tpo -c -o cryptsetup-utils_fips.o `test -f '$(top_builddir)/lib/utils_fips.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_fips.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-utils_fips.Tpo $(DEPDIR)/cryptsetup-utils_fips.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_fips.c' object='cryptsetup-utils_fips.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-utils_fips.o `test -f '$(top_builddir)/lib/utils_fips.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_fips.c - -cryptsetup-utils_fips.obj: $(top_builddir)/lib/utils_fips.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-utils_fips.obj -MD -MP -MF $(DEPDIR)/cryptsetup-utils_fips.Tpo -c -o cryptsetup-utils_fips.obj `if test -f '$(top_builddir)/lib/utils_fips.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_fips.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_fips.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-utils_fips.Tpo $(DEPDIR)/cryptsetup-utils_fips.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_fips.c' object='cryptsetup-utils_fips.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-utils_fips.obj `if test -f '$(top_builddir)/lib/utils_fips.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_fips.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_fips.c'; fi` - -cryptsetup-utils_tools.o: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-utils_tools.o -MD -MP -MF $(DEPDIR)/cryptsetup-utils_tools.Tpo -c -o cryptsetup-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-utils_tools.Tpo $(DEPDIR)/cryptsetup-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='cryptsetup-utils_tools.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c - -cryptsetup-utils_tools.obj: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-utils_tools.obj -MD -MP -MF $(DEPDIR)/cryptsetup-utils_tools.Tpo -c -o cryptsetup-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-utils_tools.Tpo $(DEPDIR)/cryptsetup-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='cryptsetup-utils_tools.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` - -cryptsetup-utils_password.o: utils_password.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-utils_password.o -MD -MP -MF $(DEPDIR)/cryptsetup-utils_password.Tpo -c -o cryptsetup-utils_password.o `test -f 'utils_password.c' || echo '$(srcdir)/'`utils_password.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-utils_password.Tpo $(DEPDIR)/cryptsetup-utils_password.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_password.c' object='cryptsetup-utils_password.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-utils_password.o `test -f 'utils_password.c' || echo '$(srcdir)/'`utils_password.c - -cryptsetup-utils_password.obj: utils_password.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-utils_password.obj -MD -MP -MF $(DEPDIR)/cryptsetup-utils_password.Tpo -c -o cryptsetup-utils_password.obj `if test -f 'utils_password.c'; then $(CYGPATH_W) 'utils_password.c'; else $(CYGPATH_W) '$(srcdir)/utils_password.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-utils_password.Tpo $(DEPDIR)/cryptsetup-utils_password.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_password.c' object='cryptsetup-utils_password.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-utils_password.obj `if test -f 'utils_password.c'; then $(CYGPATH_W) 'utils_password.c'; else $(CYGPATH_W) '$(srcdir)/utils_password.c'; fi` - -cryptsetup-cryptsetup.o: cryptsetup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-cryptsetup.o -MD -MP -MF $(DEPDIR)/cryptsetup-cryptsetup.Tpo -c -o cryptsetup-cryptsetup.o `test -f 'cryptsetup.c' || echo '$(srcdir)/'`cryptsetup.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-cryptsetup.Tpo $(DEPDIR)/cryptsetup-cryptsetup.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cryptsetup.c' object='cryptsetup-cryptsetup.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-cryptsetup.o `test -f 'cryptsetup.c' || echo '$(srcdir)/'`cryptsetup.c - -cryptsetup-cryptsetup.obj: cryptsetup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -MT cryptsetup-cryptsetup.obj -MD -MP -MF $(DEPDIR)/cryptsetup-cryptsetup.Tpo -c -o cryptsetup-cryptsetup.obj `if test -f 'cryptsetup.c'; then $(CYGPATH_W) 'cryptsetup.c'; else $(CYGPATH_W) '$(srcdir)/cryptsetup.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup-cryptsetup.Tpo $(DEPDIR)/cryptsetup-cryptsetup.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cryptsetup.c' object='cryptsetup-cryptsetup.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_CFLAGS) $(CFLAGS) -c -o cryptsetup-cryptsetup.obj `if test -f 'cryptsetup.c'; then $(CYGPATH_W) 'cryptsetup.c'; else $(CYGPATH_W) '$(srcdir)/cryptsetup.c'; fi` - -cryptsetup_reencrypt-utils_crypt.o: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt-utils_crypt.o -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt-utils_crypt.Tpo -c -o cryptsetup_reencrypt-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt-utils_crypt.Tpo $(DEPDIR)/cryptsetup_reencrypt-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='cryptsetup_reencrypt-utils_crypt.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c - -cryptsetup_reencrypt-utils_crypt.obj: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt-utils_crypt.obj -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt-utils_crypt.Tpo -c -o cryptsetup_reencrypt-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt-utils_crypt.Tpo $(DEPDIR)/cryptsetup_reencrypt-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='cryptsetup_reencrypt-utils_crypt.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` - -cryptsetup_reencrypt-utils_tools.o: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt-utils_tools.o -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt-utils_tools.Tpo -c -o cryptsetup_reencrypt-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt-utils_tools.Tpo $(DEPDIR)/cryptsetup_reencrypt-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='cryptsetup_reencrypt-utils_tools.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c - -cryptsetup_reencrypt-utils_tools.obj: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt-utils_tools.obj -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt-utils_tools.Tpo -c -o cryptsetup_reencrypt-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt-utils_tools.Tpo $(DEPDIR)/cryptsetup_reencrypt-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='cryptsetup_reencrypt-utils_tools.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` - -cryptsetup_reencrypt-cryptsetup_reencrypt.o: cryptsetup_reencrypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt-cryptsetup_reencrypt.o -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt-cryptsetup_reencrypt.Tpo -c -o cryptsetup_reencrypt-cryptsetup_reencrypt.o `test -f 'cryptsetup_reencrypt.c' || echo '$(srcdir)/'`cryptsetup_reencrypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt-cryptsetup_reencrypt.Tpo $(DEPDIR)/cryptsetup_reencrypt-cryptsetup_reencrypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cryptsetup_reencrypt.c' object='cryptsetup_reencrypt-cryptsetup_reencrypt.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt-cryptsetup_reencrypt.o `test -f 'cryptsetup_reencrypt.c' || echo '$(srcdir)/'`cryptsetup_reencrypt.c - -cryptsetup_reencrypt-cryptsetup_reencrypt.obj: cryptsetup_reencrypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt-cryptsetup_reencrypt.obj -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt-cryptsetup_reencrypt.Tpo -c -o cryptsetup_reencrypt-cryptsetup_reencrypt.obj `if test -f 'cryptsetup_reencrypt.c'; then $(CYGPATH_W) 'cryptsetup_reencrypt.c'; else $(CYGPATH_W) '$(srcdir)/cryptsetup_reencrypt.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt-cryptsetup_reencrypt.Tpo $(DEPDIR)/cryptsetup_reencrypt-cryptsetup_reencrypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cryptsetup_reencrypt.c' object='cryptsetup_reencrypt-cryptsetup_reencrypt.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt-cryptsetup_reencrypt.obj `if test -f 'cryptsetup_reencrypt.c'; then $(CYGPATH_W) 'cryptsetup_reencrypt.c'; else $(CYGPATH_W) '$(srcdir)/cryptsetup_reencrypt.c'; fi` - -cryptsetup_reencrypt_static-utils_crypt.o: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt_static-utils_crypt.o -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt_static-utils_crypt.Tpo -c -o cryptsetup_reencrypt_static-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt_static-utils_crypt.Tpo $(DEPDIR)/cryptsetup_reencrypt_static-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='cryptsetup_reencrypt_static-utils_crypt.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt_static-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c - -cryptsetup_reencrypt_static-utils_crypt.obj: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt_static-utils_crypt.obj -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt_static-utils_crypt.Tpo -c -o cryptsetup_reencrypt_static-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt_static-utils_crypt.Tpo $(DEPDIR)/cryptsetup_reencrypt_static-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='cryptsetup_reencrypt_static-utils_crypt.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt_static-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` - -cryptsetup_reencrypt_static-utils_tools.o: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt_static-utils_tools.o -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt_static-utils_tools.Tpo -c -o cryptsetup_reencrypt_static-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt_static-utils_tools.Tpo $(DEPDIR)/cryptsetup_reencrypt_static-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='cryptsetup_reencrypt_static-utils_tools.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt_static-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c - -cryptsetup_reencrypt_static-utils_tools.obj: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt_static-utils_tools.obj -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt_static-utils_tools.Tpo -c -o cryptsetup_reencrypt_static-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt_static-utils_tools.Tpo $(DEPDIR)/cryptsetup_reencrypt_static-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='cryptsetup_reencrypt_static-utils_tools.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt_static-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` - -cryptsetup_reencrypt_static-cryptsetup_reencrypt.o: cryptsetup_reencrypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt_static-cryptsetup_reencrypt.o -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt_static-cryptsetup_reencrypt.Tpo -c -o cryptsetup_reencrypt_static-cryptsetup_reencrypt.o `test -f 'cryptsetup_reencrypt.c' || echo '$(srcdir)/'`cryptsetup_reencrypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt_static-cryptsetup_reencrypt.Tpo $(DEPDIR)/cryptsetup_reencrypt_static-cryptsetup_reencrypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cryptsetup_reencrypt.c' object='cryptsetup_reencrypt_static-cryptsetup_reencrypt.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt_static-cryptsetup_reencrypt.o `test -f 'cryptsetup_reencrypt.c' || echo '$(srcdir)/'`cryptsetup_reencrypt.c - -cryptsetup_reencrypt_static-cryptsetup_reencrypt.obj: cryptsetup_reencrypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -MT cryptsetup_reencrypt_static-cryptsetup_reencrypt.obj -MD -MP -MF $(DEPDIR)/cryptsetup_reencrypt_static-cryptsetup_reencrypt.Tpo -c -o cryptsetup_reencrypt_static-cryptsetup_reencrypt.obj `if test -f 'cryptsetup_reencrypt.c'; then $(CYGPATH_W) 'cryptsetup_reencrypt.c'; else $(CYGPATH_W) '$(srcdir)/cryptsetup_reencrypt.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_reencrypt_static-cryptsetup_reencrypt.Tpo $(DEPDIR)/cryptsetup_reencrypt_static-cryptsetup_reencrypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cryptsetup_reencrypt.c' object='cryptsetup_reencrypt_static-cryptsetup_reencrypt.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_reencrypt_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_reencrypt_static-cryptsetup_reencrypt.obj `if test -f 'cryptsetup_reencrypt.c'; then $(CYGPATH_W) 'cryptsetup_reencrypt.c'; else $(CYGPATH_W) '$(srcdir)/cryptsetup_reencrypt.c'; fi` - -cryptsetup_static-utils_crypt.o: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-utils_crypt.o -MD -MP -MF $(DEPDIR)/cryptsetup_static-utils_crypt.Tpo -c -o cryptsetup_static-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-utils_crypt.Tpo $(DEPDIR)/cryptsetup_static-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='cryptsetup_static-utils_crypt.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c - -cryptsetup_static-utils_crypt.obj: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-utils_crypt.obj -MD -MP -MF $(DEPDIR)/cryptsetup_static-utils_crypt.Tpo -c -o cryptsetup_static-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-utils_crypt.Tpo $(DEPDIR)/cryptsetup_static-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='cryptsetup_static-utils_crypt.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` - -cryptsetup_static-utils_loop.o: $(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-utils_loop.o -MD -MP -MF $(DEPDIR)/cryptsetup_static-utils_loop.Tpo -c -o cryptsetup_static-utils_loop.o `test -f '$(top_builddir)/lib/utils_loop.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-utils_loop.Tpo $(DEPDIR)/cryptsetup_static-utils_loop.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_loop.c' object='cryptsetup_static-utils_loop.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-utils_loop.o `test -f '$(top_builddir)/lib/utils_loop.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_loop.c - -cryptsetup_static-utils_loop.obj: $(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-utils_loop.obj -MD -MP -MF $(DEPDIR)/cryptsetup_static-utils_loop.Tpo -c -o cryptsetup_static-utils_loop.obj `if test -f '$(top_builddir)/lib/utils_loop.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_loop.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_loop.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-utils_loop.Tpo $(DEPDIR)/cryptsetup_static-utils_loop.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_loop.c' object='cryptsetup_static-utils_loop.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-utils_loop.obj `if test -f '$(top_builddir)/lib/utils_loop.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_loop.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_loop.c'; fi` - -cryptsetup_static-utils_fips.o: $(top_builddir)/lib/utils_fips.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-utils_fips.o -MD -MP -MF $(DEPDIR)/cryptsetup_static-utils_fips.Tpo -c -o cryptsetup_static-utils_fips.o `test -f '$(top_builddir)/lib/utils_fips.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_fips.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-utils_fips.Tpo $(DEPDIR)/cryptsetup_static-utils_fips.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_fips.c' object='cryptsetup_static-utils_fips.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-utils_fips.o `test -f '$(top_builddir)/lib/utils_fips.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_fips.c - -cryptsetup_static-utils_fips.obj: $(top_builddir)/lib/utils_fips.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-utils_fips.obj -MD -MP -MF $(DEPDIR)/cryptsetup_static-utils_fips.Tpo -c -o cryptsetup_static-utils_fips.obj `if test -f '$(top_builddir)/lib/utils_fips.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_fips.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_fips.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-utils_fips.Tpo $(DEPDIR)/cryptsetup_static-utils_fips.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_fips.c' object='cryptsetup_static-utils_fips.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-utils_fips.obj `if test -f '$(top_builddir)/lib/utils_fips.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_fips.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_fips.c'; fi` - -cryptsetup_static-utils_tools.o: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-utils_tools.o -MD -MP -MF $(DEPDIR)/cryptsetup_static-utils_tools.Tpo -c -o cryptsetup_static-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-utils_tools.Tpo $(DEPDIR)/cryptsetup_static-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='cryptsetup_static-utils_tools.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c - -cryptsetup_static-utils_tools.obj: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-utils_tools.obj -MD -MP -MF $(DEPDIR)/cryptsetup_static-utils_tools.Tpo -c -o cryptsetup_static-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-utils_tools.Tpo $(DEPDIR)/cryptsetup_static-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='cryptsetup_static-utils_tools.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` - -cryptsetup_static-utils_password.o: utils_password.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-utils_password.o -MD -MP -MF $(DEPDIR)/cryptsetup_static-utils_password.Tpo -c -o cryptsetup_static-utils_password.o `test -f 'utils_password.c' || echo '$(srcdir)/'`utils_password.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-utils_password.Tpo $(DEPDIR)/cryptsetup_static-utils_password.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_password.c' object='cryptsetup_static-utils_password.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-utils_password.o `test -f 'utils_password.c' || echo '$(srcdir)/'`utils_password.c - -cryptsetup_static-utils_password.obj: utils_password.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-utils_password.obj -MD -MP -MF $(DEPDIR)/cryptsetup_static-utils_password.Tpo -c -o cryptsetup_static-utils_password.obj `if test -f 'utils_password.c'; then $(CYGPATH_W) 'utils_password.c'; else $(CYGPATH_W) '$(srcdir)/utils_password.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-utils_password.Tpo $(DEPDIR)/cryptsetup_static-utils_password.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_password.c' object='cryptsetup_static-utils_password.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-utils_password.obj `if test -f 'utils_password.c'; then $(CYGPATH_W) 'utils_password.c'; else $(CYGPATH_W) '$(srcdir)/utils_password.c'; fi` - -cryptsetup_static-cryptsetup.o: cryptsetup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-cryptsetup.o -MD -MP -MF $(DEPDIR)/cryptsetup_static-cryptsetup.Tpo -c -o cryptsetup_static-cryptsetup.o `test -f 'cryptsetup.c' || echo '$(srcdir)/'`cryptsetup.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-cryptsetup.Tpo $(DEPDIR)/cryptsetup_static-cryptsetup.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cryptsetup.c' object='cryptsetup_static-cryptsetup.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-cryptsetup.o `test -f 'cryptsetup.c' || echo '$(srcdir)/'`cryptsetup.c - -cryptsetup_static-cryptsetup.obj: cryptsetup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -MT cryptsetup_static-cryptsetup.obj -MD -MP -MF $(DEPDIR)/cryptsetup_static-cryptsetup.Tpo -c -o cryptsetup_static-cryptsetup.obj `if test -f 'cryptsetup.c'; then $(CYGPATH_W) 'cryptsetup.c'; else $(CYGPATH_W) '$(srcdir)/cryptsetup.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/cryptsetup_static-cryptsetup.Tpo $(DEPDIR)/cryptsetup_static-cryptsetup.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cryptsetup.c' object='cryptsetup_static-cryptsetup.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cryptsetup_static_CFLAGS) $(CFLAGS) -c -o cryptsetup_static-cryptsetup.obj `if test -f 'cryptsetup.c'; then $(CYGPATH_W) 'cryptsetup.c'; else $(CYGPATH_W) '$(srcdir)/cryptsetup.c'; fi` - -veritysetup-utils_crypt.o: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -MT veritysetup-utils_crypt.o -MD -MP -MF $(DEPDIR)/veritysetup-utils_crypt.Tpo -c -o veritysetup-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup-utils_crypt.Tpo $(DEPDIR)/veritysetup-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='veritysetup-utils_crypt.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -c -o veritysetup-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c - -veritysetup-utils_crypt.obj: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -MT veritysetup-utils_crypt.obj -MD -MP -MF $(DEPDIR)/veritysetup-utils_crypt.Tpo -c -o veritysetup-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup-utils_crypt.Tpo $(DEPDIR)/veritysetup-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='veritysetup-utils_crypt.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -c -o veritysetup-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` - -veritysetup-utils_loop.o: $(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -MT veritysetup-utils_loop.o -MD -MP -MF $(DEPDIR)/veritysetup-utils_loop.Tpo -c -o veritysetup-utils_loop.o `test -f '$(top_builddir)/lib/utils_loop.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup-utils_loop.Tpo $(DEPDIR)/veritysetup-utils_loop.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_loop.c' object='veritysetup-utils_loop.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -c -o veritysetup-utils_loop.o `test -f '$(top_builddir)/lib/utils_loop.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_loop.c - -veritysetup-utils_loop.obj: $(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -MT veritysetup-utils_loop.obj -MD -MP -MF $(DEPDIR)/veritysetup-utils_loop.Tpo -c -o veritysetup-utils_loop.obj `if test -f '$(top_builddir)/lib/utils_loop.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_loop.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_loop.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup-utils_loop.Tpo $(DEPDIR)/veritysetup-utils_loop.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_loop.c' object='veritysetup-utils_loop.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -c -o veritysetup-utils_loop.obj `if test -f '$(top_builddir)/lib/utils_loop.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_loop.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_loop.c'; fi` - -veritysetup-utils_tools.o: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -MT veritysetup-utils_tools.o -MD -MP -MF $(DEPDIR)/veritysetup-utils_tools.Tpo -c -o veritysetup-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup-utils_tools.Tpo $(DEPDIR)/veritysetup-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='veritysetup-utils_tools.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -c -o veritysetup-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c - -veritysetup-utils_tools.obj: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -MT veritysetup-utils_tools.obj -MD -MP -MF $(DEPDIR)/veritysetup-utils_tools.Tpo -c -o veritysetup-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup-utils_tools.Tpo $(DEPDIR)/veritysetup-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='veritysetup-utils_tools.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -c -o veritysetup-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` - -veritysetup-veritysetup.o: veritysetup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -MT veritysetup-veritysetup.o -MD -MP -MF $(DEPDIR)/veritysetup-veritysetup.Tpo -c -o veritysetup-veritysetup.o `test -f 'veritysetup.c' || echo '$(srcdir)/'`veritysetup.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup-veritysetup.Tpo $(DEPDIR)/veritysetup-veritysetup.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='veritysetup.c' object='veritysetup-veritysetup.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -c -o veritysetup-veritysetup.o `test -f 'veritysetup.c' || echo '$(srcdir)/'`veritysetup.c - -veritysetup-veritysetup.obj: veritysetup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -MT veritysetup-veritysetup.obj -MD -MP -MF $(DEPDIR)/veritysetup-veritysetup.Tpo -c -o veritysetup-veritysetup.obj `if test -f 'veritysetup.c'; then $(CYGPATH_W) 'veritysetup.c'; else $(CYGPATH_W) '$(srcdir)/veritysetup.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup-veritysetup.Tpo $(DEPDIR)/veritysetup-veritysetup.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='veritysetup.c' object='veritysetup-veritysetup.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_CFLAGS) $(CFLAGS) -c -o veritysetup-veritysetup.obj `if test -f 'veritysetup.c'; then $(CYGPATH_W) 'veritysetup.c'; else $(CYGPATH_W) '$(srcdir)/veritysetup.c'; fi` - -veritysetup_static-utils_crypt.o: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -MT veritysetup_static-utils_crypt.o -MD -MP -MF $(DEPDIR)/veritysetup_static-utils_crypt.Tpo -c -o veritysetup_static-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup_static-utils_crypt.Tpo $(DEPDIR)/veritysetup_static-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='veritysetup_static-utils_crypt.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -c -o veritysetup_static-utils_crypt.o `test -f '$(top_builddir)/lib/utils_crypt.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_crypt.c - -veritysetup_static-utils_crypt.obj: $(top_builddir)/lib/utils_crypt.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -MT veritysetup_static-utils_crypt.obj -MD -MP -MF $(DEPDIR)/veritysetup_static-utils_crypt.Tpo -c -o veritysetup_static-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup_static-utils_crypt.Tpo $(DEPDIR)/veritysetup_static-utils_crypt.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_crypt.c' object='veritysetup_static-utils_crypt.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -c -o veritysetup_static-utils_crypt.obj `if test -f '$(top_builddir)/lib/utils_crypt.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_crypt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_crypt.c'; fi` - -veritysetup_static-utils_loop.o: $(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -MT veritysetup_static-utils_loop.o -MD -MP -MF $(DEPDIR)/veritysetup_static-utils_loop.Tpo -c -o veritysetup_static-utils_loop.o `test -f '$(top_builddir)/lib/utils_loop.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup_static-utils_loop.Tpo $(DEPDIR)/veritysetup_static-utils_loop.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_loop.c' object='veritysetup_static-utils_loop.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -c -o veritysetup_static-utils_loop.o `test -f '$(top_builddir)/lib/utils_loop.c' || echo '$(srcdir)/'`$(top_builddir)/lib/utils_loop.c - -veritysetup_static-utils_loop.obj: $(top_builddir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -MT veritysetup_static-utils_loop.obj -MD -MP -MF $(DEPDIR)/veritysetup_static-utils_loop.Tpo -c -o veritysetup_static-utils_loop.obj `if test -f '$(top_builddir)/lib/utils_loop.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_loop.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_loop.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup_static-utils_loop.Tpo $(DEPDIR)/veritysetup_static-utils_loop.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_builddir)/lib/utils_loop.c' object='veritysetup_static-utils_loop.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -c -o veritysetup_static-utils_loop.obj `if test -f '$(top_builddir)/lib/utils_loop.c'; then $(CYGPATH_W) '$(top_builddir)/lib/utils_loop.c'; else $(CYGPATH_W) '$(srcdir)/$(top_builddir)/lib/utils_loop.c'; fi` - -veritysetup_static-utils_tools.o: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -MT veritysetup_static-utils_tools.o -MD -MP -MF $(DEPDIR)/veritysetup_static-utils_tools.Tpo -c -o veritysetup_static-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup_static-utils_tools.Tpo $(DEPDIR)/veritysetup_static-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='veritysetup_static-utils_tools.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -c -o veritysetup_static-utils_tools.o `test -f 'utils_tools.c' || echo '$(srcdir)/'`utils_tools.c - -veritysetup_static-utils_tools.obj: utils_tools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -MT veritysetup_static-utils_tools.obj -MD -MP -MF $(DEPDIR)/veritysetup_static-utils_tools.Tpo -c -o veritysetup_static-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup_static-utils_tools.Tpo $(DEPDIR)/veritysetup_static-utils_tools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utils_tools.c' object='veritysetup_static-utils_tools.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -c -o veritysetup_static-utils_tools.obj `if test -f 'utils_tools.c'; then $(CYGPATH_W) 'utils_tools.c'; else $(CYGPATH_W) '$(srcdir)/utils_tools.c'; fi` - -veritysetup_static-veritysetup.o: veritysetup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -MT veritysetup_static-veritysetup.o -MD -MP -MF $(DEPDIR)/veritysetup_static-veritysetup.Tpo -c -o veritysetup_static-veritysetup.o `test -f 'veritysetup.c' || echo '$(srcdir)/'`veritysetup.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup_static-veritysetup.Tpo $(DEPDIR)/veritysetup_static-veritysetup.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='veritysetup.c' object='veritysetup_static-veritysetup.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -c -o veritysetup_static-veritysetup.o `test -f 'veritysetup.c' || echo '$(srcdir)/'`veritysetup.c - -veritysetup_static-veritysetup.obj: veritysetup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -MT veritysetup_static-veritysetup.obj -MD -MP -MF $(DEPDIR)/veritysetup_static-veritysetup.Tpo -c -o veritysetup_static-veritysetup.obj `if test -f 'veritysetup.c'; then $(CYGPATH_W) 'veritysetup.c'; else $(CYGPATH_W) '$(srcdir)/veritysetup.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/veritysetup_static-veritysetup.Tpo $(DEPDIR)/veritysetup_static-veritysetup.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='veritysetup.c' object='veritysetup_static-veritysetup.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(veritysetup_static_CFLAGS) $(CFLAGS) -c -o veritysetup_static-veritysetup.obj `if test -f 'veritysetup.c'; then $(CYGPATH_W) 'veritysetup.c'; else $(CYGPATH_W) '$(srcdir)/veritysetup.c'; fi` - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: - for dir in "$(DESTDIR)$(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: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-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 - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-sbinPROGRAMS - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-sbinPROGRAMS - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-sbinPROGRAMS cscopelist-am ctags ctags-am \ - distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-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 tags-am 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: diff --git a/src/cryptsetup.c b/src/cryptsetup.c index 8fc4d6c..5c2b96a 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -1,10 +1,10 @@ /* * cryptsetup - setup cryptographic volumes for dm-crypt * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth - * Copyright (C) 2009-2015, Red Hat, Inc. All rights reserved. - * Copyright (C) 2009-2015, Milan Broz + * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. + * Copyright (C) 2009-2013, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -57,26 +57,14 @@ static int opt_urandom = 0; static int opt_dump_master_key = 0; static int opt_shared = 0; static int opt_allow_discards = 0; -static int opt_perf_same_cpu_crypt = 0; -static int opt_perf_submit_from_crypt_cpus = 0; static int opt_test_passphrase = 0; static int opt_tcrypt_hidden = 0; static int opt_tcrypt_system = 0; -static int opt_tcrypt_backup = 0; -static int opt_veracrypt = 0; static const char **action_argv; static int action_argc; static const char *null_action_argv[] = {NULL, NULL}; -static const char *uuid_or_device_header(const char **data_device) -{ - if (data_device) - *data_device = opt_header_device ? action_argv[0] : NULL; - - return uuid_or_device(opt_header_device ?: action_argv[0]); -} - static int _verify_passphrase(int def) { /* Batch mode switch off verify - if not overrided by -y */ @@ -95,21 +83,6 @@ static int _verify_passphrase(int def) return def; } -static void _set_activation_flags(uint32_t *flags) -{ - if (opt_readonly) - *flags |= CRYPT_ACTIVATE_READONLY; - - if (opt_allow_discards) - *flags |= CRYPT_ACTIVATE_ALLOW_DISCARDS; - - if (opt_perf_same_cpu_crypt) - *flags |= CRYPT_ACTIVATE_SAME_CPU_CRYPT; - - if (opt_perf_submit_from_crypt_cpus) - *flags |= CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS; -} - static int action_open_plain(void) { struct crypt_device *cd = NULL; @@ -124,9 +97,19 @@ static int action_open_plain(void) size_t passwordLen; size_t key_size = (opt_key_size ?: DEFAULT_PLAIN_KEYBITS) / 8; uint32_t activate_flags = 0; - int keyfile_limited = 0; int r; + if (params.hash && !strcmp(params.hash, "plain")) + params.hash = NULL; + + /* FIXME: temporary hack */ + if (opt_key_file && strcmp(opt_key_file, "-")) + params.hash = NULL; + + if ((opt_keyfile_offset || opt_keyfile_size) && opt_key_file) + log_std(_("Ignoring keyfile offset and size options, keyfile read " + "size is always the same as encryption key size.\n")); + r = crypt_parse_name_and_mode(opt_cipher ?: DEFAULT_CIPHER(PLAIN), cipher, NULL, cipher_mode); if (r < 0) { @@ -134,24 +117,6 @@ static int action_open_plain(void) goto out; } - if (opt_key_file && strcmp(opt_key_file, "-") != 0) - keyfile_limited = 1; - - /* FIXME: temporary hack, no hashing for keyfiles in plain mode */ - if (opt_key_file && keyfile_limited) { - params.hash = NULL; - if (!opt_batch_mode && opt_hash) - log_std(_("WARNING: The --hash parameter is being ignored " - "in plain mode with keyfile specified.\n")); - } - - if (params.hash && !strcmp(params.hash, "plain")) - params.hash = NULL; - - if (!opt_batch_mode && !params.hash && opt_key_file && keyfile_limited && opt_keyfile_size) - log_std(_("WARNING: The --keyfile-size option is being ignored, " - "the read size is the same as the encryption key size.\n")); - if ((r = crypt_init(&cd, action_argv[0]))) goto out; @@ -167,22 +132,22 @@ static int action_open_plain(void) if (r < 0) goto out; + if (opt_readonly) + activate_flags |= CRYPT_ACTIVATE_READONLY; + if (opt_shared) activate_flags |= CRYPT_ACTIVATE_SHARED; - _set_activation_flags(&activate_flags); + if (opt_allow_discards) + activate_flags |= CRYPT_ACTIVATE_ALLOW_DISCARDS; - if (opt_key_file) { - /* If no hash, key is read directly, read size is always key_size - * (possible opt_keyfile_size is ignored. - * If hash is specified, opt_keyfile_size is applied. - * The opt_keyfile_offset is applied always. - */ + if (opt_key_file) + /* With hashing, read the whole keyfile */ r = crypt_activate_by_keyfile_offset(cd, action_argv[1], CRYPT_ANY_SLOT, opt_key_file, - params.hash ? opt_keyfile_size : key_size, opt_keyfile_offset, + params.hash ? 0 : key_size, 0, activate_flags); - } else { + else { r = tools_get_key(_("Enter passphrase: "), &password, &passwordLen, opt_keyfile_offset, opt_keyfile_size, @@ -219,7 +184,11 @@ static int action_open_loopaes(void) return -EINVAL; } - _set_activation_flags(&activate_flags); + if (opt_readonly) + activate_flags |= CRYPT_ACTIVATE_READONLY; + + if (opt_allow_discards) + activate_flags |= CRYPT_ACTIVATE_ALLOW_DISCARDS; if ((r = crypt_init(&cd, action_argv[0]))) goto out; @@ -232,68 +201,23 @@ static int action_open_loopaes(void) r = crypt_activate_by_keyfile_offset(cd, action_argv[1], CRYPT_ANY_SLOT, opt_key_file, opt_keyfile_size, - opt_keyfile_offset, activate_flags); + opt_keyfile_size, activate_flags); out: crypt_free(cd); return r; } -static int tcrypt_load(struct crypt_device *cd, struct crypt_params_tcrypt *params) -{ - int r, tries = opt_tries, eperm = 0; - - do { - /* TCRYPT header is encrypted, get passphrase now */ - r = tools_get_key(_("Enter passphrase: "), - CONST_CAST(char**)¶ms->passphrase, - ¶ms->passphrase_size, 0, 0, NULL, opt_timeout, - _verify_passphrase(0), 0, cd); - if (r < 0) - continue; - - if (opt_tcrypt_hidden) - params->flags |= CRYPT_TCRYPT_HIDDEN_HEADER; - - if (opt_tcrypt_system) - params->flags |= CRYPT_TCRYPT_SYSTEM_HEADER; - - if (opt_tcrypt_backup) - params->flags |= CRYPT_TCRYPT_BACKUP_HEADER; - - r = crypt_load(cd, CRYPT_TCRYPT, params); - - if (r == -EPERM) { - log_err(_("No device header detected with this passphrase.\n")); - eperm = 1; - } - - if (r < 0) { - crypt_safe_free(CONST_CAST(char*)params->passphrase); - params->passphrase = NULL; - params->passphrase_size = 0; - } - check_signal(&r); - } while (r == -EPERM && (--tries > 0)); - - /* Report wrong passphrase if at least one try failed */ - if (eperm && r == -EPIPE) - r = -EPERM; - - return r; -} - static int action_open_tcrypt(void) { struct crypt_device *cd = NULL; struct crypt_params_tcrypt params = { .keyfiles = opt_keyfiles, .keyfiles_count = opt_keyfiles_count, - .flags = CRYPT_TCRYPT_LEGACY_MODES | - (opt_veracrypt ? CRYPT_TCRYPT_VERA_MODES : 0), + .flags = CRYPT_TCRYPT_LEGACY_MODES, }; const char *activated_name; - uint32_t activate_flags = 0; + uint32_t flags = 0; int r; activated_name = opt_test_passphrase ? NULL : action_argv[1]; @@ -301,15 +225,33 @@ static int action_open_tcrypt(void) if ((r = crypt_init(&cd, action_argv[0]))) goto out; - r = tcrypt_load(cd, ¶ms); + /* TCRYPT header is encrypted, get passphrase now */ + r = tools_get_key(_("Enter passphrase: "), + CONST_CAST(char**)¶ms.passphrase, + ¶ms.passphrase_size, 0, 0, NULL, opt_timeout, + _verify_passphrase(0), 0, cd); + if (r < 0) + goto out; + + if (opt_tcrypt_hidden) + params.flags |= CRYPT_TCRYPT_HIDDEN_HEADER; + + if (opt_tcrypt_system) + params.flags |= CRYPT_TCRYPT_SYSTEM_HEADER; + + r = crypt_load(cd, CRYPT_TCRYPT, ¶ms); + check_signal(&r); if (r < 0) goto out; - _set_activation_flags(&activate_flags); + if (opt_readonly) + flags |= CRYPT_ACTIVATE_READONLY; if (activated_name) - r = crypt_activate_by_volume_key(cd, activated_name, NULL, 0, activate_flags); + r = crypt_activate_by_volume_key(cd, activated_name, NULL, 0, flags); out: + if (r == -EPERM) + log_err(_("No device header detected with this passphrase.\n")); crypt_free(cd); crypt_safe_free(CONST_CAST(char*)params.passphrase); return r; @@ -363,15 +305,29 @@ static int action_tcryptDump(void) struct crypt_params_tcrypt params = { .keyfiles = opt_keyfiles, .keyfiles_count = opt_keyfiles_count, - .flags = CRYPT_TCRYPT_LEGACY_MODES | - (opt_veracrypt ? CRYPT_TCRYPT_VERA_MODES : 0), + .flags = CRYPT_TCRYPT_LEGACY_MODES, }; int r; if ((r = crypt_init(&cd, action_argv[0]))) goto out; - r = tcrypt_load(cd, ¶ms); + /* TCRYPT header is encrypted, get passphrase now */ + r = tools_get_key(_("Enter passphrase: "), + CONST_CAST(char**)¶ms.passphrase, + ¶ms.passphrase_size, 0, 0, NULL, opt_timeout, + _verify_passphrase(0), 0, cd); + if (r < 0) + goto out; + + if (opt_tcrypt_hidden) + params.flags |= CRYPT_TCRYPT_HIDDEN_HEADER; + + if (opt_tcrypt_system) + params.flags |= CRYPT_TCRYPT_SYSTEM_HEADER; + + r = crypt_load(cd, CRYPT_TCRYPT, ¶ms); + check_signal(&r); if (r < 0) goto out; @@ -380,6 +336,8 @@ static int action_tcryptDump(void) else r = crypt_dump(cd); out: + if (r == -EPERM) + log_err(_("No device header detected with this passphrase.\n")); crypt_free(cd); crypt_safe_free(CONST_CAST(char*)params.passphrase); return r; @@ -446,10 +404,10 @@ static int action_status(void) ci == CRYPT_BUSY ? " and is in use" : ""); r = crypt_init_by_name_and_header(&cd, action_argv[0], opt_header_device); - if (r < 0) + if (r < 0 || !crypt_get_type(cd)) goto out; - log_std(" type: %s\n", crypt_get_type(cd) ?: "n/a"); + log_std(" type: %s\n", crypt_get_type(cd)); r = crypt_get_active_device(cd, action_argv[0], &cad); if (r < 0) @@ -470,13 +428,8 @@ static int action_status(void) log_std(" skipped: %" PRIu64 " sectors\n", cad.iv_offset); log_std(" mode: %s\n", cad.flags & CRYPT_ACTIVATE_READONLY ? "readonly" : "read/write"); - if (cad.flags & (CRYPT_ACTIVATE_ALLOW_DISCARDS| - CRYPT_ACTIVATE_ALLOW_DISCARDS| - CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS)) - log_std(" flags: %s%s%s\n", - (cad.flags & CRYPT_ACTIVATE_ALLOW_DISCARDS) ? "discards " : "", - (cad.flags & CRYPT_ACTIVATE_SAME_CPU_CRYPT) ? "same_cpu_crypt " : "", - (cad.flags & CRYPT_ACTIVATE_SUBMIT_FROM_CRYPT_CPUS) ? "submit_from_crypt_cpus" : ""); + if (cad.flags & CRYPT_ACTIVATE_ALLOW_DISCARDS) + log_std(" flags: discards\n"); } out: crypt_free(cd); @@ -500,29 +453,6 @@ static int action_benchmark_kdf(const char *hash) return r; } -static int benchmark_cipher_loop(const char *cipher, const char *cipher_mode, - size_t volume_key_size, size_t iv_size, - double *encryption_mbs, double *decryption_mbs) -{ - int r, buffer_size = 1024 * 1024; - - do { - r = crypt_benchmark(NULL, cipher, cipher_mode, - volume_key_size, iv_size, buffer_size, - encryption_mbs, decryption_mbs); - if (r == -ERANGE) { - if (buffer_size < 1024 * 1024 * 65) - buffer_size *= 2; - else { - log_err(_("Result of benchmark is not reliable.\n")); - r = -ENOENT; - } - } - } while (r == -ERANGE); - - return r; -} - static int action_benchmark(void) { static struct { @@ -552,6 +482,7 @@ static int action_benchmark(void) double enc_mbr = 0, dec_mbr = 0; int key_size = (opt_key_size ?: DEFAULT_PLAIN_KEYBITS); int iv_size = 16, skipped = 0; + int buffer_size = 1024 * 1024; char *c; int i, r; @@ -573,12 +504,9 @@ static int action_benchmark(void) strstr(cipher, "cast5")) iv_size = 8; - if (!strcmp(cipher_mode, "ecb")) - iv_size = 0; - - r = benchmark_cipher_loop(cipher, cipher_mode, - key_size / 8, iv_size, - &enc_mbr, &dec_mbr); + r = crypt_benchmark(NULL, cipher, cipher_mode, + key_size / 8, iv_size, buffer_size, + &enc_mbr, &dec_mbr); if (!r) { log_std(N_("# Algorithm | Key | Encryption | Decryption\n")); log_std("%8s-%s %4db %6.1f MiB/s %6.1f MiB/s\n", @@ -593,9 +521,9 @@ static int action_benchmark(void) break; } for (i = 0; bciphers[i].cipher; i++) { - r = benchmark_cipher_loop(bciphers[i].cipher, bciphers[i].mode, + r = crypt_benchmark(NULL, bciphers[i].cipher, bciphers[i].mode, bciphers[i].key_size, bciphers[i].iv_size, - &enc_mbr, &dec_mbr); + buffer_size, &enc_mbr, &dec_mbr); check_signal(&r); if (r == -ENOTSUP || r == -EINTR) break; @@ -607,10 +535,10 @@ static int action_benchmark(void) snprintf(cipher, MAX_CIPHER_LEN, "%s-%s", bciphers[i].cipher, bciphers[i].mode); if (!r) - log_std("%12s %4zub %6.1f MiB/s %6.1f MiB/s\n", + log_std("%12s %4db %6.1f MiB/s %6.1f MiB/s\n", cipher, bciphers[i].key_size*8, enc_mbr, dec_mbr); else - log_std("%12s %4zub %13s %13s\n", cipher, + log_std("%12s %4db %13s %13s\n", cipher, bciphers[i].key_size*8, _("N/A"), _("N/A")); } if (skipped && skipped == i) @@ -763,10 +691,16 @@ static int action_open_luks(void) struct crypt_device *cd = NULL; const char *data_device, *header_device, *activated_name; char *key = NULL; - uint32_t activate_flags = 0; + uint32_t flags = 0; int r, keysize; - header_device = uuid_or_device_header(&data_device); + if (opt_header_device) { + header_device = uuid_or_device(opt_header_device); + data_device = action_argv[0]; + } else { + header_device = uuid_or_device(action_argv[0]); + data_device = NULL; + } activated_name = opt_test_passphrase ? NULL : action_argv[1]; @@ -793,7 +727,11 @@ static int action_open_luks(void) if (opt_iteration_time) crypt_set_iteration_time(cd, opt_iteration_time); - _set_activation_flags(&activate_flags); + if (opt_readonly) + flags |= CRYPT_ACTIVATE_READONLY; + + if (opt_allow_discards) + flags |= CRYPT_ACTIVATE_ALLOW_DISCARDS; if (opt_master_key_file) { keysize = crypt_get_volume_key_size(cd); @@ -801,15 +739,15 @@ static int action_open_luks(void) if (r < 0) goto out; r = crypt_activate_by_volume_key(cd, activated_name, - key, keysize, activate_flags); + key, keysize, flags); } else if (opt_key_file) { crypt_set_password_retry(cd, 1); r = crypt_activate_by_keyfile_offset(cd, activated_name, opt_key_slot, opt_key_file, opt_keyfile_size, - opt_keyfile_offset, activate_flags); + opt_keyfile_offset, flags); } else r = crypt_activate_by_passphrase(cd, activated_name, - opt_key_slot, NULL, 0, activate_flags); + opt_key_slot, NULL, 0, flags); out: crypt_safe_free(key); crypt_free(cd); @@ -866,7 +804,7 @@ static int action_luksKillSlot(void) struct crypt_device *cd = NULL; int r; - if ((r = crypt_init(&cd, uuid_or_device_header(NULL)))) + if ((r = crypt_init(&cd, uuid_or_device(action_argv[0])))) goto out; crypt_set_confirm_callback(cd, yesDialog, NULL); @@ -909,7 +847,7 @@ static int action_luksRemoveKey(void) size_t passwordLen; int r; - if ((r = crypt_init(&cd, uuid_or_device_header(NULL)))) + if ((r = crypt_init(&cd, uuid_or_device(action_argv[0])))) goto out; crypt_set_confirm_callback(cd, yesDialog, NULL); @@ -960,7 +898,7 @@ static int action_luksAddKey(void) size_t password_size = 0, password_new_size = 0; struct crypt_device *cd = NULL; - if ((r = crypt_init(&cd, uuid_or_device_header(NULL)))) + if ((r = crypt_init(&cd, uuid_or_device(action_argv[0])))) goto out; crypt_set_confirm_callback(cd, yesDialog, NULL); @@ -979,22 +917,9 @@ static int action_luksAddKey(void) r = _read_mk(opt_master_key_file, &key, keysize); if (r < 0) goto out; - - r = crypt_volume_key_verify(cd, key, keysize); - check_signal(&r); - if (r < 0) - goto out; - - r = tools_get_key(_("Enter new passphrase for key slot: "), - &password_new, &password_new_size, - opt_new_keyfile_offset, opt_new_keyfile_size, - opt_new_key_file, opt_timeout, - _verify_passphrase(1), 1, cd); - if (r < 0) - goto out; - - r = crypt_keyslot_add_by_volume_key(cd, opt_key_slot, key, keysize, - password_new, password_new_size); + //FIXME: process keyfile arg + r = crypt_keyslot_add_by_volume_key(cd, opt_key_slot, + key, keysize, NULL, 0); } else if (opt_key_file || opt_new_key_file) { r = crypt_keyslot_add_by_keyfile_offset(cd, opt_key_slot, opt_key_file, opt_keyfile_size, opt_keyfile_offset, @@ -1016,7 +941,7 @@ static int action_luksAddKey(void) r = tools_get_key(_("Enter new passphrase for key slot: "), &password_new, &password_new_size, 0, 0, NULL, - opt_timeout, _verify_passphrase(1), 1, cd); + opt_timeout, _verify_passphrase(0), 1, cd); if (r < 0) goto out; @@ -1040,7 +965,7 @@ static int action_luksChangeKey(void) size_t password_size = 0, password_new_size = 0; int r; - if ((r = crypt_init(&cd, uuid_or_device_header(NULL)))) + if ((r = crypt_init(&cd, uuid_or_device(action_argv[0])))) goto out; if ((r = crypt_load(cd, CRYPT_LUKS1, NULL))) @@ -1067,7 +992,7 @@ static int action_luksChangeKey(void) &password_new, &password_new_size, opt_new_keyfile_offset, opt_new_keyfile_size, opt_new_key_file, - opt_timeout, _verify_passphrase(1), 1, cd); + opt_timeout, _verify_passphrase(0), 1, cd); if (r < 0) goto out; @@ -1091,7 +1016,7 @@ static int action_isLuks(void) return -ENODEV; } - if ((r = crypt_init(&cd, uuid_or_device_header(NULL)))) + if ((r = crypt_init(&cd, action_argv[0]))) goto out; crypt_set_log_callback(cd, quiet_log, NULL); @@ -1107,7 +1032,7 @@ static int action_luksUUID(void) const char *existing_uuid = NULL; int r; - if ((r = crypt_init(&cd, uuid_or_device_header(NULL)))) + if ((r = crypt_init(&cd, action_argv[0]))) goto out; crypt_set_confirm_callback(cd, yesDialog, NULL); @@ -1186,7 +1111,7 @@ static int action_luksDump(void) struct crypt_device *cd = NULL; int r; - if ((r = crypt_init(&cd, uuid_or_device_header(NULL)))) + if ((r = crypt_init(&cd, uuid_or_device(action_argv[0])))) goto out; if ((r = crypt_load(cd, CRYPT_LUKS1, NULL))) @@ -1206,7 +1131,7 @@ static int action_luksSuspend(void) struct crypt_device *cd = NULL; int r; - r = crypt_init_by_name_and_header(&cd, action_argv[0], uuid_or_device(opt_header_device)); + r = crypt_init_by_name_and_header(&cd, action_argv[0], opt_header_device); if (!r) r = crypt_suspend(cd, action_argv[0]); @@ -1219,7 +1144,7 @@ static int action_luksResume(void) struct crypt_device *cd = NULL; int r; - if ((r = crypt_init_by_name_and_header(&cd, action_argv[0], uuid_or_device(opt_header_device)))) + if ((r = crypt_init_by_name_and_header(&cd, action_argv[0], opt_header_device))) goto out; crypt_set_timeout(cd, opt_timeout); @@ -1247,7 +1172,7 @@ static int action_luksBackup(void) return -EINVAL; } - if ((r = crypt_init(&cd, uuid_or_device_header(NULL)))) + if ((r = crypt_init(&cd, uuid_or_device(action_argv[0])))) goto out; crypt_set_confirm_callback(cd, yesDialog, NULL); @@ -1268,7 +1193,7 @@ static int action_luksRestore(void) return -EINVAL; } - if ((r = crypt_init(&cd, uuid_or_device_header(NULL)))) + if ((r = crypt_init(&cd, action_argv[0]))) goto out; crypt_set_confirm_callback(cd, yesDialog, NULL); @@ -1308,47 +1233,6 @@ args: return -EINVAL; } -static int action_luksErase(void) -{ - struct crypt_device *cd = NULL; - crypt_keyslot_info ki; - char *msg = NULL; - int i, r; - - if ((r = crypt_init(&cd, uuid_or_device_header(NULL)))) - goto out; - - crypt_set_confirm_callback(cd, yesDialog, NULL); - - if ((r = crypt_load(cd, CRYPT_LUKS1, NULL))) - goto out; - - if(asprintf(&msg, _("This operation will erase all keyslots on device %s.\n" - "Device will become unusable after this operation."), - uuid_or_device_header(NULL)) == -1) { - r = -ENOMEM; - goto out; - } - - if (!yesDialog(msg, NULL)) { - r = -EPERM; - goto out; - } - - for (i = 0; i < crypt_keyslot_max(CRYPT_LUKS1); i++) { - ki = crypt_keyslot_status(cd, i); - if (ki == CRYPT_SLOT_ACTIVE || ki == CRYPT_SLOT_ACTIVE_LAST) { - r = crypt_keyslot_destroy(cd, i); - if (r < 0) - goto out; - } - } -out: - free(msg); - crypt_free(cd); - return r; -} - static struct action_type { const char *type; int (*handler)(void); @@ -1363,7 +1247,6 @@ static struct action_type { { "status", action_status, 1, 0, N_(""), N_("show device status") }, { "benchmark", action_benchmark, 0, 0, N_(""), N_("benchmark cipher") }, { "repair", action_luksRepair, 1, 1, N_(""), N_("try to repair on-disk metadata") }, - { "erase", action_luksErase , 1, 1, N_(""), N_("erase all keyslots (remove encryption key)") }, { "luksFormat", action_luksFormat, 1, 1, N_(" []"), N_("formats a LUKS device") }, { "luksAddKey", action_luksAddKey, 1, 1, N_(" []"), N_("add key to LUKS device") }, { "luksRemoveKey",action_luksRemoveKey,1, 1, N_(" []"), N_("removes supplied key or key file from LUKS device") }, @@ -1507,12 +1390,8 @@ int main(int argc, const char **argv) { "test-passphrase", '\0', POPT_ARG_NONE, &opt_test_passphrase, 0, N_("Do not activate device, just check passphrase."), NULL }, { "tcrypt-hidden", '\0', POPT_ARG_NONE, &opt_tcrypt_hidden, 0, N_("Use hidden header (hidden TCRYPT device)."), NULL }, { "tcrypt-system", '\0', POPT_ARG_NONE, &opt_tcrypt_system, 0, N_("Device is system TCRYPT drive (with bootloader)."), NULL }, - { "tcrypt-backup", '\0', POPT_ARG_NONE, &opt_tcrypt_backup, 0, N_("Use backup (secondary) TCRYPT header."), NULL }, - { "veracrypt", '\0', POPT_ARG_NONE, &opt_veracrypt, 0, N_("Scan also for VeraCrypt compatible device."), NULL }, { "type", 'M', POPT_ARG_STRING, &opt_type, 0, N_("Type of device metadata: luks, plain, loopaes, tcrypt."), NULL }, { "force-password", '\0', POPT_ARG_NONE, &opt_force_password, 0, N_("Disable password quality check (if enabled)."), NULL }, - { "perf-same_cpu_crypt",'\0', POPT_ARG_NONE, &opt_perf_same_cpu_crypt, 0, N_("Use dm-crypt same_cpu_crypt performance compatibility option."), NULL }, - { "perf-submit_from_crypt_cpus",'\0', POPT_ARG_NONE, &opt_perf_submit_from_crypt_cpus,0,N_("Use dm-crypt submit_from_crypt_cpus performance compatibility option."), NULL }, POPT_TABLEEND }; poptContext popt_context; @@ -1526,6 +1405,8 @@ int main(int argc, const char **argv) bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + crypt_fips_self_check(NULL); + popt_context = poptGetContext(PACKAGE, argc, argv, popt_options, 0); poptSetOtherOptionHelp(popt_context, _("[OPTION...] ")); @@ -1567,10 +1448,6 @@ int main(int argc, const char **argv) if (r < -1) usage(popt_context, EXIT_FAILURE, poptStrerror(r), poptBadOption(popt_context, POPT_BADOPTION_NOALIAS)); - - if (crypt_fips_mode()) - crypt_log(NULL, CRYPT_LOG_VERBOSE, _("Running in FIPS mode.\n")); - if (opt_version_mode) { log_std("%s %s\n", PACKAGE_NAME, PACKAGE_VERSION); poptFreeContext(popt_context); @@ -1613,17 +1490,12 @@ int main(int argc, const char **argv) } else if (!strcmp(aname, "tcryptOpen")) { aname = "open"; opt_type = "tcrypt"; - } else if (!strcmp(aname, "tcryptDump")) { - opt_type = "tcrypt"; } else if (!strcmp(aname, "remove") || !strcmp(aname, "plainClose") || !strcmp(aname, "luksClose") || !strcmp(aname, "loopaesClose") || !strcmp(aname, "tcryptClose")) { aname = "close"; - } else if (!strcmp(aname, "luksErase")) { - aname = "erase"; - opt_type = "luks"; } for(action = action_types; action->type; action++) @@ -1719,20 +1591,10 @@ int main(int argc, const char **argv) _("Option --offset is supported only for open of plain and loopaes devices.\n"), poptGetInvocationName(popt_context)); - if ((opt_tcrypt_hidden || opt_tcrypt_system || opt_tcrypt_backup) && strcmp(aname, "tcryptDump") && + if ((opt_tcrypt_hidden || opt_tcrypt_system) && strcmp(aname, "tcryptDump") && (strcmp(aname, "open") || strcmp(opt_type, "tcrypt"))) usage(popt_context, EXIT_FAILURE, - _("Option --tcrypt-hidden, --tcrypt-system or --tcrypt-backup is supported only for TCRYPT device.\n"), - poptGetInvocationName(popt_context)); - - if (opt_tcrypt_hidden && opt_allow_discards) - usage(popt_context, EXIT_FAILURE, - _("Option --tcrypt-hidden cannot be combined with --allow-discards.\n"), - poptGetInvocationName(popt_context)); - - if (opt_veracrypt && strcmp(opt_type, "tcrypt")) - usage(popt_context, EXIT_FAILURE, - _("Option --veracrypt is supported only for TCRYPT device type.\n"), + _("Option --tcrypt-hidden or --tcrypt-system is supported only for TCRYPT device.\n"), poptGetInvocationName(popt_context)); if (opt_debug) { diff --git a/src/cryptsetup.h b/src/cryptsetup.h index 5d322cf..1d16a3d 100644 --- a/src/cryptsetup.h +++ b/src/cryptsetup.h @@ -1,10 +1,10 @@ /* * cryptsetup - setup cryptographic volumes for dm-crypt * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2009-2014, Milan Broz + * Copyright (C) 2009-2013, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -57,7 +57,7 @@ extern int opt_force_password; /* Common tools */ void clogger(struct crypt_device *cd, int level, const char *file, int line, - const char *format, ...) __attribute__ ((format (printf, 5, 6))); + const char *format, ...); void tool_log(int level, const char *msg, void *usrptr __attribute__((unused))); void quiet_log(int level, const char *msg, void *usrptr); diff --git a/src/cryptsetup_reencrypt.c b/src/cryptsetup_reencrypt.c index 1db3588..5505431 100644 --- a/src/cryptsetup_reencrypt.c +++ b/src/cryptsetup_reencrypt.c @@ -2,7 +2,7 @@ * cryptsetup-reencrypt - crypt utility for offline re-encryption * * Copyright (C) 2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2012-2015, Milan Broz All rights reserved. + * Copyright (C) 2012-2013, Milan Broz All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -47,8 +47,6 @@ static int opt_tries = 3; static int opt_key_slot = CRYPT_ANY_SLOT; static int opt_key_size = 0; static int opt_new = 0; -static int opt_keep_key = 0; -static int opt_decrypt = 0; static const char *opt_reduce_size_str = NULL; static uint64_t opt_reduce_size = 0; @@ -63,14 +61,12 @@ struct reenc_ctx { char *device; char *device_uuid; uint64_t device_size; /* overrided by parameter */ - uint64_t device_size_new_real; - uint64_t device_size_org_real; + uint64_t device_size_real; uint64_t device_offset; uint64_t device_shift; int in_progress:1; enum { FORWARD = 0, BACKWARD = 1 } reencrypt_direction; - enum { REENCRYPT = 0, ENCRYPT = 1, DECRYPT = 2 } reencrypt_mode; char header_file_org[PATH_MAX]; char header_file_new[PATH_MAX]; @@ -79,7 +75,7 @@ struct reenc_ctx { char crypt_path_org[PATH_MAX]; char crypt_path_new[PATH_MAX]; int log_fd; - char log_buf[SECTOR_SIZE]; + char *log_buf; struct { char *password; @@ -126,12 +122,6 @@ static int alignment(int fd) return alignment; } -static size_t pagesize(void) -{ - long r = sysconf(_SC_PAGESIZE); - return r < 0 ? 4096 : (size_t)r; -} - /* Depends on the first two fields of LUKS1 header format, magic and version */ static int device_check(struct reenc_ctx *rc, header_magic set_magic) { @@ -139,7 +129,6 @@ static int device_check(struct reenc_ctx *rc, header_magic set_magic) int r, devfd; ssize_t s; uint16_t version; - size_t buf_size = pagesize(); devfd = open(rc->device, O_RDWR | O_EXCL | O_DIRECT); if (devfd == -1) { @@ -157,14 +146,14 @@ static int device_check(struct reenc_ctx *rc, header_magic set_magic) goto out; } - if (posix_memalign((void *)&buf, alignment(devfd), buf_size)) { + if (posix_memalign((void *)&buf, alignment(devfd), SECTOR_SIZE)) { log_err(_("Allocation of aligned memory failed.\n")); r = -ENOMEM; goto out; } - s = read(devfd, buf, buf_size); - if (s < 0 || s != (ssize_t)buf_size) { + s = read(devfd, buf, SECTOR_SIZE); + if (s < 0 || s != SECTOR_SIZE) { log_err(_("Cannot read device %s.\n"), rc->device); r = -EIO; goto out; @@ -195,8 +184,8 @@ static int device_check(struct reenc_ctx *rc, header_magic set_magic) if (!r) { if (lseek(devfd, 0, SEEK_SET) == -1) goto out; - s = write(devfd, buf, buf_size); - if (s < 0 || s != (ssize_t)buf_size) { + s = write(devfd, buf, SECTOR_SIZE); + if (s < 0 || s != SECTOR_SIZE) { log_err(_("Cannot write device %s.\n"), rc->device); r = -EIO; } @@ -204,7 +193,7 @@ static int device_check(struct reenc_ctx *rc, header_magic set_magic) log_dbg("LUKS signature check failed for %s.", rc->device); out: if (buf) - memset(buf, 0, buf_size); + memset(buf, 0, SECTOR_SIZE); free(buf); close(devfd); return r; @@ -268,9 +257,9 @@ static int write_log(struct reenc_ctx *rc) memset(rc->log_buf, 0, SECTOR_SIZE); snprintf(rc->log_buf, SECTOR_SIZE, "# LUKS reencryption log, DO NOT EDIT OR DELETE.\n" - "version = %d\nUUID = %s\ndirection = %d\nmode = %d\n" + "version = %d\nUUID = %s\ndirection = %d\n" "offset = %" PRIu64 "\nshift = %" PRIu64 "\n# EOF\n", - 2, rc->device_uuid, rc->reencrypt_direction, rc->reencrypt_mode, + 1, rc->device_uuid, rc->reencrypt_direction, rc->device_offset, rc->device_shift); if (lseek(rc->log_fd, 0, SEEK_SET) == -1) @@ -296,7 +285,7 @@ static int parse_line_log(struct reenc_ctx *rc, const char *line) return 0; if (sscanf(line, "version = %d", &i) == 1) { - if (i < 1 || i > 2) { + if (i != 1) { log_dbg("Log: Unexpected version = %i", i); return -EINVAL; } @@ -314,13 +303,6 @@ static int parse_line_log(struct reenc_ctx *rc, const char *line) } else if (sscanf(line, "shift = %" PRIu64, &u64) == 1) { log_dbg("Log: shift = %" PRIu64, u64); rc->device_shift = u64; - } else if (sscanf(line, "mode = %d", &i) == 1) { /* added in v2 */ - log_dbg("Log: mode = %i", i); - rc->reencrypt_mode = i; - if (rc->reencrypt_mode != REENCRYPT && - rc->reencrypt_mode != ENCRYPT && - rc->reencrypt_mode != DECRYPT) - return -EINVAL; } else return -EINVAL; @@ -361,11 +343,13 @@ static void close_log(struct reenc_ctx *rc) log_dbg("Closing LUKS reencryption log file %s.", rc->log_file); if (rc->log_fd != -1) close(rc->log_fd); + free(rc->log_buf); + rc->log_buf = NULL; } static int open_log(struct reenc_ctx *rc) { - int flags = opt_fsync ? O_SYNC : 0; + int flags = opt_directio ? O_DIRECT : 0; rc->log_fd = open(rc->log_file, O_RDWR|O_EXCL|O_CREAT|flags, S_IRUSR|S_IWUSR); if (rc->log_fd != -1) { @@ -379,6 +363,12 @@ static int open_log(struct reenc_ctx *rc) if (rc->log_fd == -1) return -EINVAL; + if (posix_memalign((void *)&rc->log_buf, alignment(rc->log_fd), SECTOR_SIZE)) { + log_err(_("Allocation of aligned memory failed.\n")); + close_log(rc); + return -ENOMEM; + } + if (!rc->in_progress && write_log(rc) < 0) { close_log(rc); return -EIO; @@ -427,8 +417,7 @@ out: static int create_new_header(struct reenc_ctx *rc, const char *cipher, const char *cipher_mode, const char *uuid, - const char *key, int key_size, - struct crypt_params_luks1 *params) + int key_size, struct crypt_params_luks1 *params) { struct crypt_device *cd_new = NULL; int i, r; @@ -445,7 +434,7 @@ static int create_new_header(struct reenc_ctx *rc, const char *cipher, crypt_set_iteration_time(cd_new, opt_iteration_time); if ((r = crypt_format(cd_new, CRYPT_LUKS1, cipher, cipher_mode, - uuid, key, key_size, params))) + uuid, NULL, key_size, params))) goto out; log_verbose(_("New LUKS header for device %s created.\n"), rc->device); @@ -468,8 +457,6 @@ static int backup_luks_headers(struct reenc_ctx *rc) struct crypt_device *cd = NULL; struct crypt_params_luks1 params = {0}; char cipher [MAX_CIPHER_LEN], cipher_mode[MAX_CIPHER_LEN]; - char *old_key = NULL; - size_t old_key_size; int r; log_dbg("Creating LUKS header backup for device %s.", rc->device); @@ -483,10 +470,6 @@ static int backup_luks_headers(struct reenc_ctx *rc) goto out; log_verbose(_("LUKS header backup of device %s created.\n"), rc->device); - /* For decrypt, new header will be fake one, so we are done here. */ - if (rc->reencrypt_mode == DECRYPT) - goto out; - if ((r = create_empty_header(rc->header_file_new, rc->header_file_org, crypt_get_data_offset(cd)))) goto out; @@ -504,30 +487,14 @@ static int backup_luks_headers(struct reenc_ctx *rc) } } - if (opt_keep_key) { - log_dbg("Keeping key from old header."); - old_key_size = crypt_get_volume_key_size(cd); - old_key = crypt_safe_alloc(old_key_size); - if (!old_key) { - r = -ENOMEM; - goto out; - } - r = crypt_volume_key_get(cd, CRYPT_ANY_SLOT, old_key, &old_key_size, - rc->p[rc->keyslot].password, rc->p[rc->keyslot].passwordLen); - if (r < 0) - goto out; - } - r = create_new_header(rc, opt_cipher ? cipher : crypt_get_cipher(cd), opt_cipher ? cipher_mode : crypt_get_cipher_mode(cd), crypt_get_uuid(cd), - old_key, opt_key_size ? opt_key_size / 8 : crypt_get_volume_key_size(cd), ¶ms); out: crypt_free(cd); - crypt_safe_free(old_key); if (r) log_err(_("Creation of LUKS backup headers failed.\n")); return r; @@ -539,13 +506,10 @@ static int backup_fake_header(struct reenc_ctx *rc) struct crypt_device *cd_new = NULL; struct crypt_params_luks1 params = {0}; char cipher [MAX_CIPHER_LEN], cipher_mode[MAX_CIPHER_LEN]; - const char *header_file_fake; - int r; - log_dbg("Creating fake (cipher_null) header for %s device.", - (rc->reencrypt_mode == DECRYPT) ? "new" : "original"); + int r; - header_file_fake = (rc->reencrypt_mode == DECRYPT) ? rc->header_file_new : rc->header_file_org; + log_dbg("Creating fake (cipher_null) header for original device."); if (!opt_key_size) opt_key_size = DEFAULT_LUKS1_KEYBITS; @@ -558,7 +522,7 @@ static int backup_fake_header(struct reenc_ctx *rc) } } - r = create_empty_header(header_file_fake, NULL, MAX_BCK_SECTORS); + r = create_empty_header(rc->header_file_org, NULL, 0); if (r < 0) return r; @@ -566,7 +530,7 @@ static int backup_fake_header(struct reenc_ctx *rc) params.data_alignment = 0; params.data_device = rc->device; - r = crypt_init(&cd_new, header_file_fake); + r = crypt_init(&cd_new, rc->header_file_org); if (r < 0) return r; @@ -575,15 +539,11 @@ static int backup_fake_header(struct reenc_ctx *rc) if (r < 0) goto out; - r = crypt_keyslot_add_by_volume_key(cd_new, rc->keyslot, NULL, 0, - rc->p[rc->keyslot].password, rc->p[rc->keyslot].passwordLen); + r = crypt_keyslot_add_by_volume_key(cd_new, 0, NULL, 0, + rc->p[0].password, rc->p[0].passwordLen); if (r < 0) goto out; - /* The real header is backup header created in backup_luks_headers() */ - if (rc->reencrypt_mode == DECRYPT) - goto out; - r = create_empty_header(rc->header_file_new, rc->header_file_org, 0); if (r < 0) goto out; @@ -592,7 +552,7 @@ static int backup_fake_header(struct reenc_ctx *rc) r = create_new_header(rc, opt_cipher ? cipher : DEFAULT_LUKS1_CIPHER, opt_cipher ? cipher_mode : DEFAULT_LUKS1_MODE, - NULL, NULL, + NULL, (opt_key_size ? opt_key_size : DEFAULT_LUKS1_KEYBITS) / 8, ¶ms); out: @@ -673,29 +633,6 @@ static void print_progress(struct reenc_ctx *rc, uint64_t bytes, int final) final ? "\n" :""); } -static ssize_t read_buf(int fd, void *buf, size_t count) -{ - size_t read_size = 0; - ssize_t s; - - do { - /* This expects that partial read is aligned in buffer */ - s = read(fd, buf, count - read_size); - if (s == -1 && errno != EINTR) - return s; - if (s == 0) - return (ssize_t)read_size; - if (s > 0) { - if (s != (ssize_t)count) - log_dbg("Partial read %zd / %zu.", s, count); - read_size += (size_t)s; - buf = (uint8_t*)buf + s; - } - } while (read_size != count); - - return (ssize_t)count; -} - static int copy_data_forward(struct reenc_ctx *rc, int fd_old, int fd_new, size_t block_size, void *buf, uint64_t *bytes) { @@ -715,11 +652,11 @@ static int copy_data_forward(struct reenc_ctx *rc, int fd_old, int fd_new, return -EIO; while (!quit && rc->device_offset < rc->device_size) { - s1 = read_buf(fd_old, buf, block_size); + s1 = read(fd_old, buf, block_size); if (s1 < 0 || ((size_t)s1 != block_size && (rc->device_offset + s1) != rc->device_size)) { - log_dbg("Read error, expecting %zu, got %zd.", - block_size, s1); + log_dbg("Read error, expecting %d, got %d.", + (int)block_size, (int)s1); return -EIO; } @@ -729,8 +666,8 @@ static int copy_data_forward(struct reenc_ctx *rc, int fd_old, int fd_new, s2 = write(fd_new, buf, s1); if (s2 < 0) { - log_dbg("Write error, expecting %zu, got %zd.", - block_size, s2); + log_dbg("Write error, expecting %d, got %d.", + (int)block_size, (int)s2); return -EIO; } @@ -785,17 +722,17 @@ static int copy_data_backward(struct reenc_ctx *rc, int fd_old, int fd_new, return -EIO; } - s1 = read_buf(fd_old, buf, working_block); + s1 = read(fd_old, buf, working_block); if (s1 < 0 || (s1 != working_block)) { - log_dbg("Read error, expecting %zu, got %zd.", - block_size, s1); + log_dbg("Read error, expecting %d, got %d.", + (int)block_size, (int)s1); return -EIO; } s2 = write(fd_new, buf, working_block); if (s2 < 0) { - log_dbg("Write error, expecting %zu, got %zd.", - block_size, s2); + log_dbg("Write error, expecting %d, got %d.", + (int)block_size, (int)s2); return -EIO; } @@ -815,41 +752,6 @@ static int copy_data_backward(struct reenc_ctx *rc, int fd_old, int fd_new, return quit ? -EAGAIN : 0; } -static void zero_rest_of_device(int fd, size_t block_size, void *buf, - uint64_t *bytes, uint64_t offset) -{ - ssize_t s1, s2; - - log_dbg("Zeroing rest of device."); - - if (lseek64(fd, offset, SEEK_SET) < 0) { - log_dbg(_("Cannot seek to device offset.\n")); - return; - } - - memset(buf, 0, block_size); - s1 = block_size; - - while (!quit && *bytes) { - if (*bytes < s1) - s1 = *bytes; - - s2 = write(fd, buf, s1); - if (s2 < 0) { - log_dbg("Write error, expecting %zu, got %zd.", - block_size, s2); - return; - } - - if (opt_fsync && fsync(fd) < 0) { - log_dbg("Write error, fsync."); - return; - } - - *bytes -= s2; - } -} - static int copy_data(struct reenc_ctx *rc) { size_t block_size = opt_bsize * 1024 * 1024; @@ -872,22 +774,13 @@ static int copy_data(struct reenc_ctx *rc) goto out; } - if (ioctl(fd_old, BLKGETSIZE64, &rc->device_size_org_real) < 0) { + /* Check size */ + if (ioctl(fd_new, BLKGETSIZE64, &rc->device_size_real) < 0) { log_err(_("Cannot get device size.\n")); goto out; } - if (ioctl(fd_new, BLKGETSIZE64, &rc->device_size_new_real) < 0) { - log_err(_("Cannot get device size.\n")); - goto out; - } - - if (opt_device_size) - rc->device_size = opt_device_size; - else if (rc->reencrypt_mode == DECRYPT) - rc->device_size = rc->device_size_org_real; - else - rc->device_size = rc->device_size_new_real; + rc->device_size = opt_device_size ?: rc->device_size_real; if (posix_memalign((void *)&buf, alignment(fd_new), block_size)) { log_err(_("Allocation of aligned memory failed.\n")); @@ -903,17 +796,8 @@ static int copy_data(struct reenc_ctx *rc) else r = copy_data_backward(rc, fd_old, fd_new, block_size, buf, &bytes); - print_progress(rc, bytes, 1); - - /* Zero (wipe) rest of now plain-only device when decrypting. - * (To not leave any sign of encryption here.) */ - if (!r && rc->reencrypt_mode == DECRYPT && - rc->device_size_new_real > rc->device_size_org_real) { - bytes = rc->device_size_new_real - rc->device_size_org_real; - zero_rest_of_device(fd_new, block_size, buf, &bytes, rc->device_size_org_real); - } - set_int_block(1); + print_progress(rc, bytes, 1); if (r == -EAGAIN) log_err(_("Interrupted by a signal.\n")); @@ -960,14 +844,15 @@ static int initialize_uuid(struct reenc_ctx *rc) static int init_passphrase1(struct reenc_ctx *rc, struct crypt_device *cd, const char *msg, int slot_to_check, int check) { - char *password; - int r = -EINVAL, retry_count; - size_t passwordLen; + int r = -EINVAL, slot, retry_count; + + slot = (slot_to_check == CRYPT_ANY_SLOT) ? 0 : slot_to_check; retry_count = opt_tries ?: 1; while (retry_count--) { set_int_handler(0); - r = crypt_get_key(msg, &password, &passwordLen, + r = crypt_get_key(msg, &rc->p[slot].password, + &rc->p[slot].passwordLen, 0, 0, NULL /*opt_key_file*/, 0, 0, cd); if (r < 0) @@ -979,49 +864,42 @@ static int init_passphrase1(struct reenc_ctx *rc, struct crypt_device *cd, set_int_block(1); if (check) r = crypt_activate_by_passphrase(cd, NULL, slot_to_check, - password, passwordLen, 0); + rc->p[slot].password, rc->p[slot].passwordLen, 0); else - r = (slot_to_check == CRYPT_ANY_SLOT) ? 0 : slot_to_check; + r = slot; if (r < 0) { - crypt_safe_free(password); - password = NULL; - passwordLen = 0; + crypt_safe_free(rc->p[slot].password); + rc->p[slot].password = NULL; + rc->p[slot].passwordLen = 0; } if (r < 0 && r != -EPERM) return r; if (r >= 0) { - rc->keyslot = r; - rc->p[r].password = password; - rc->p[r].passwordLen = passwordLen; + rc->keyslot = slot; break; } log_err(_("No key available with this passphrase.\n")); } - - password = NULL; - passwordLen = 0; - return r; } static int init_keyfile(struct reenc_ctx *rc, struct crypt_device *cd, int slot_check) { - char *password; - int r; - size_t passwordLen; + int r, slot; - r = crypt_get_key(NULL, &password, &passwordLen, opt_keyfile_offset, - opt_keyfile_size, opt_key_file, 0, 0, cd); + slot = (slot_check == CRYPT_ANY_SLOT) ? 0 : slot_check; + r = crypt_get_key(NULL, &rc->p[slot].password, &rc->p[slot].passwordLen, + opt_keyfile_offset, opt_keyfile_size, opt_key_file, 0, 0, cd); if (r < 0) return r; - r = crypt_activate_by_passphrase(cd, NULL, slot_check, password, - passwordLen, 0); + r = crypt_activate_by_passphrase(cd, NULL, slot_check, + rc->p[slot].password, rc->p[slot].passwordLen, 0); /* * Allow keyslot only if it is last slot or if user explicitly - * specify which slot to use (IOW others will be disabled). + * specify whch slot to use (IOW others will be disabled). */ if (r >= 0 && opt_key_slot == CRYPT_ANY_SLOT && crypt_keyslot_status(cd, r) != CRYPT_SLOT_ACTIVE_LAST) { @@ -1031,17 +909,14 @@ static int init_keyfile(struct reenc_ctx *rc, struct crypt_device *cd, int slot_ } if (r < 0) { - crypt_safe_free(password); + crypt_safe_free(rc->p[slot].password); + rc->p[slot].password = NULL; + rc->p[slot].passwordLen = 0; if (r == -EPERM) log_err(_("No key available with this passphrase.\n")); - } else { - rc->keyslot = r; - rc->p[r].password = password; - rc->p[r].passwordLen = passwordLen; - } - - password = NULL; - passwordLen = 0; + return r; + } else + rc->keyslot = slot; return r; } @@ -1055,8 +930,8 @@ static int initialize_passphrase(struct reenc_ctx *rc, const char *device) log_dbg("Passhrases initialization."); - if (rc->reencrypt_mode == ENCRYPT && !rc->in_progress) { - r = init_passphrase1(rc, cd, _("Enter new passphrase: "), opt_key_slot, 0); + if (opt_new && !rc->in_progress) { + r = init_passphrase1(rc, cd, _("Enter new passphrase: "), 0, 0); return r > 0 ? 0 : r; } @@ -1067,18 +942,11 @@ static int initialize_passphrase(struct reenc_ctx *rc, const char *device) return r; } - if (opt_key_slot != CRYPT_ANY_SLOT) - snprintf(msg, sizeof(msg), - _("Enter passphrase for key slot %u: "), opt_key_slot); - else - snprintf(msg, sizeof(msg), _("Enter any existing passphrase: ")); - if (opt_key_file) { r = init_keyfile(rc, cd, opt_key_slot); - } else if (rc->in_progress || - opt_key_slot != CRYPT_ANY_SLOT || - rc->reencrypt_mode == DECRYPT) { - r = init_passphrase1(rc, cd, msg, opt_key_slot, 1); + } else if (rc->in_progress) { + r = init_passphrase1(rc, cd, _("Enter any existing passphrase: "), + CRYPT_ANY_SLOT, 1); } else for (i = 0; i < MAX_SLOT; i++) { ki = crypt_keyslot_status(cd, i); if (ki != CRYPT_SLOT_ACTIVE && ki != CRYPT_SLOT_ACTIVE_LAST) @@ -1144,13 +1012,6 @@ static int initialize_context(struct reenc_ctx *rc, const char *device) rc->reencrypt_direction = BACKWARD; rc->device_offset = (uint64_t)~0; } - - if (opt_new) - rc->reencrypt_mode = ENCRYPT; - else if (opt_decrypt) - rc->reencrypt_mode = DECRYPT; - else - rc->reencrypt_mode = REENCRYPT; } return 0; @@ -1184,7 +1045,7 @@ static void destroy_context(struct reenc_ctx *rc) static int run_reencrypt(const char *device) { int r = -EINVAL; - static struct reenc_ctx rc = {}; + struct reenc_ctx rc = {}; if (initialize_context(&rc, device)) goto out; @@ -1192,41 +1053,26 @@ static int run_reencrypt(const char *device) log_dbg("Running reencryption."); if (!rc.in_progress) { - if ((r = initialize_passphrase(&rc, rc.device))) - goto out; - - if (rc.reencrypt_mode == ENCRYPT) { - /* Create fake header for exising device */ - if ((r = backup_fake_header(&rc))) - goto out; - } else { - if ((r = backup_luks_headers(&rc))) - goto out; - /* Create fake header for decrypted device */ - if (rc.reencrypt_mode == DECRYPT && + if (opt_new) { + if ((r = initialize_passphrase(&rc, rc.device)) || (r = backup_fake_header(&rc))) - goto out; - if ((r = device_check(&rc, MAKE_UNUSABLE))) - goto out; - } + goto out; + } else if ((r = initialize_passphrase(&rc, rc.device)) || + (r = backup_luks_headers(&rc)) || + (r = device_check(&rc, MAKE_UNUSABLE))) + goto out; } else { if ((r = initialize_passphrase(&rc, rc.header_file_new))) goto out; } - if (!opt_keep_key) { - log_dbg("Running data area reencryption."); - if ((r = activate_luks_headers(&rc))) - goto out; + if ((r = activate_luks_headers(&rc))) + goto out; - if ((r = copy_data(&rc))) - goto out; - } else - log_dbg("Keeping existing key, skipping data area reencryption."); + if ((r = copy_data(&rc))) + goto out; - // FIXME: fix error path above to not skip this - if (rc.reencrypt_mode != DECRYPT) - r = restore_luks_header(&rc); + r = restore_luks_header(&rc); out: destroy_context(&rc); return r; @@ -1263,14 +1109,13 @@ int main(int argc, const char **argv) { "cipher", 'c', POPT_ARG_STRING, &opt_cipher, 0, N_("The cipher used to encrypt the disk (see /proc/crypto)"), NULL }, { "key-size", 's', POPT_ARG_INT, &opt_key_size, 0, N_("The size of the encryption key"), N_("BITS") }, { "hash", 'h', POPT_ARG_STRING, &opt_hash, 0, N_("The hash used to create the encryption key from the passphrase"), NULL }, - { "keep-key", '\0', POPT_ARG_NONE, &opt_keep_key, 0, N_("Do not change key, no data area reencryption."), NULL }, { "key-file", 'd', POPT_ARG_STRING, &opt_key_file, 0, N_("Read the key from a file."), NULL }, { "iter-time", 'i', POPT_ARG_INT, &opt_iteration_time, 0, N_("PBKDF2 iteration time for LUKS (in ms)"), N_("msecs") }, { "batch-mode", 'q', POPT_ARG_NONE, &opt_batch_mode, 0, N_("Do not ask for confirmation"), NULL }, { "tries", 'T', POPT_ARG_INT, &opt_tries, 0, N_("How often the input of the passphrase can be retried"), NULL }, { "use-random", '\0', POPT_ARG_NONE, &opt_random, 0, N_("Use /dev/random for generating volume key."), NULL }, { "use-urandom", '\0', POPT_ARG_NONE, &opt_urandom, 0, N_("Use /dev/urandom for generating volume key."), NULL }, - { "use-directio", '\0', POPT_ARG_NONE, &opt_directio, 0, N_("Use direct-io when accessing devices."), NULL }, + { "use-directio", '\0', POPT_ARG_NONE, &opt_directio, 0, N_("Use direct-io when accesing devices."), NULL }, { "use-fsync", '\0', POPT_ARG_NONE, &opt_fsync, 0, N_("Use fsync after each block."), NULL }, { "write-log", '\0', POPT_ARG_NONE, &opt_write_log, 0, N_("Update log file after every block."), NULL }, { "key-slot", 'S', POPT_ARG_INT, &opt_key_slot, 0, N_("Use only this slot (others will be disabled)."), NULL }, @@ -1278,8 +1123,7 @@ int main(int argc, const char **argv) { "keyfile-size", 'l', POPT_ARG_LONG, &opt_keyfile_size, 0, N_("Limits the read from keyfile"), N_("bytes") }, { "reduce-device-size",'\0', POPT_ARG_STRING, &opt_reduce_size_str, 0, N_("Reduce data device size (move data offset). DANGEROUS!"), N_("bytes") }, { "device-size", '\0', POPT_ARG_STRING, &opt_device_size_str, 0, N_("Use only specified device size (ignore rest of device). DANGEROUS!"), N_("bytes") }, - { "new", 'N', POPT_ARG_NONE, &opt_new, 0, N_("Create new header on not encrypted device."), NULL }, - { "decrypt", '\0', POPT_ARG_NONE, &opt_decrypt, 0, N_("Permanently decrypt device (remove encryption)."), NULL }, + { "new", 'N', POPT_ARG_NONE,&opt_new, 0, N_("Create new header on not encrypted device."), NULL }, POPT_TABLEEND }; poptContext popt_context; @@ -1370,18 +1214,6 @@ int main(int argc, const char **argv) usage(popt_context, EXIT_FAILURE, _("Option --new must be used together with --reduce-device-size."), poptGetInvocationName(popt_context)); - if (opt_keep_key && ((!opt_hash && !opt_iteration_time) || opt_cipher || opt_new)) - usage(popt_context, EXIT_FAILURE, _("Option --keep-key can be used only with --hash or --iter-time."), - poptGetInvocationName(popt_context)); - - if (opt_new && opt_decrypt) - usage(popt_context, EXIT_FAILURE, _("Option --new cannot be used together with --decrypt."), - poptGetInvocationName(popt_context)); - - if (opt_decrypt && (opt_cipher || opt_hash || opt_reduce_size || opt_keep_key || opt_device_size)) - usage(popt_context, EXIT_FAILURE, _("Option --decrypt is incompatible with specified parameters."), - poptGetInvocationName(popt_context)); - if (opt_debug) { opt_verbose = 1; crypt_set_debug_level(-1); diff --git a/src/utils_password.c b/src/utils_password.c index 541806c..052041b 100644 --- a/src/utils_password.c +++ b/src/utils_password.c @@ -2,7 +2,7 @@ * Password quality check wrapper * * Copyright (C) 2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2012-2014, Milan Broz + * Copyright (C) 2012, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/src/utils_tools.c b/src/utils_tools.c index 23e4acb..ca39339 100644 --- a/src/utils_tools.c +++ b/src/utils_tools.c @@ -1,10 +1,10 @@ /* * cryptsetup - setup cryptographic volumes for dm-crypt * - * Copyright (C) 2004, Jana Saout + * Copyright (C) 2004, Christophe Saout * Copyright (C) 2004-2007, Clemens Fruhwirth * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. - * Copyright (C) 2009-2014, Milan Broz + * Copyright (C) 2009-2012, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -143,7 +143,6 @@ int yesDialog(const char *msg, void *usrptr __attribute__((unused))) if(isatty(STDIN_FILENO) && !opt_batch_mode) { log_std("\nWARNING!\n========\n"); log_std("%s\n\nAre you sure? (Type uppercase yes): ", msg); - fflush(stdout); if(getline(&answer, &size, stdin) == -1) { r = 0; /* Aborted by signal */ @@ -164,7 +163,7 @@ int yesDialog(const char *msg, void *usrptr __attribute__((unused))) void show_status(int errcode) { - char error[256]; + char error[256], *error_; if(!opt_verbose) return; @@ -176,16 +175,12 @@ void show_status(int errcode) crypt_get_error(error, sizeof(error)); - if (*error) { -#ifdef STRERROR_R_CHAR_P /* GNU-specific strerror_r */ - char *error_ = strerror_r(-errcode, error, sizeof(error)); - if (error_ != error) + if (!error[0]) { + error_ = strerror_r(-errcode, error, sizeof(error)); + if (error_ != error) { strncpy(error, error_, sizeof(error)); -#else /* POSIX strerror_r variant */ - if (strerror_r(-errcode, error, sizeof(error))) - *error = '\0'; -#endif - error[sizeof(error) - 1] = '\0'; + error[sizeof(error) - 1] = '\0'; + } } log_err(_("Command failed with code %i"), -errcode); diff --git a/src/veritysetup.c b/src/veritysetup.c index 8f45be4..cc2095d 100644 --- a/src/veritysetup.c +++ b/src/veritysetup.c @@ -1,8 +1,7 @@ /* * veritysetup - setup cryptographic volumes for dm-verity * - * Copyright (C) 2012-2013, Red Hat, Inc. All rights reserved. - * Copyright (C) 2012-2013, Milan Broz + * Copyright (C) 2012, Red Hat, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/tests/Makefile.am b/tests/Makefile.am index 862e0f0..677ad52 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -5,9 +5,7 @@ TESTS = api-test \ discards-test \ mode-test \ password-hash-test \ - tcrypt-compat-test \ - luks1-compat-test \ - device-test + tcrypt-compat-test if VERITYSETUP TESTS += verity-compat-test @@ -18,25 +16,21 @@ TESTS += reencryption-compat-test endif EXTRA_DIST = compatimage.img.bz2 compatv10image.img.bz2 \ - img_fs_ext4.img.bz2 img_fs_vfat.img.bz2 img_fs_xfs.img.bz2 \ valid_header_file.bz2 \ evil_hdr-payload_overwrite.bz2 \ evil_hdr-stripes_payload_dmg.bz2 \ evil_hdr-luks_hdr_damage.bz2 \ evil_hdr-small_luks_device.bz2 \ tcrypt-images.tar.bz2 \ - luks1-images.tar.bz2 \ compat-test loopaes-test align-test discards-test mode-test password-hash-test \ verity-compat-test \ reencryption-compat-test \ tcrypt-compat-test \ - luks1-compat-test \ - device-test \ cryptsetup-valg-supps valg.sh valg-api.sh CLEANFILES = cryptsetup-tst* valglog* clean-local: - -rm -rf tcrypt-images luks1-images + -rm -rf tcrypt-images differ_SOURCES = differ.c differ_CFLAGS = $(AM_CFLAGS) -Wall -O2 diff --git a/tests/Makefile.in b/tests/Makefile.in deleted file mode 100644 index bdfc0c0..0000000 --- a/tests/Makefile.in +++ /dev/null @@ -1,839 +0,0 @@ -# Makefile.in generated by automake 1.14.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -VPATH = @srcdir@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -TESTS = api-test$(EXEEXT) compat-test loopaes-test align-test \ - discards-test mode-test password-hash-test tcrypt-compat-test \ - luks1-compat-test device-test $(am__append_1) $(am__append_2) -@VERITYSETUP_TRUE@am__append_1 = verity-compat-test -@REENCRYPT_TRUE@am__append_2 = reencryption-compat-test -check_PROGRAMS = api-test$(EXEEXT) differ$(EXEEXT) -subdir = tests -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(top_srcdir)/depcomp -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am_api_test_OBJECTS = api_test-api-test.$(OBJEXT) \ - api_test-utils_loop.$(OBJEXT) -api_test_OBJECTS = $(am_api_test_OBJECTS) -api_test_DEPENDENCIES = ../lib/libcryptsetup.la -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -api_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(api_test_CFLAGS) \ - $(CFLAGS) $(api_test_LDFLAGS) $(LDFLAGS) -o $@ -am_differ_OBJECTS = differ-differ.$(OBJEXT) -differ_OBJECTS = $(am_differ_OBJECTS) -differ_LDADD = $(LDADD) -differ_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(differ_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(api_test_SOURCES) $(differ_SOURCES) -DIST_SOURCES = $(api_test_SOURCES) $(differ_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -am__tty_colors_dummy = \ - mgn= red= grn= lgn= blu= brg= std=; \ - am__color_tests=no -am__tty_colors = { \ - $(am__tty_colors_dummy); \ - if test "X$(AM_COLOR_TESTS)" = Xno; then \ - am__color_tests=no; \ - elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ - am__color_tests=yes; \ - elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ - am__color_tests=yes; \ - fi; \ - if test $$am__color_tests = yes; then \ - red=''; \ - grn=''; \ - lgn=''; \ - blu=''; \ - mgn=''; \ - brg=''; \ - std=''; \ - fi; \ -} -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CRYPTO_CFLAGS = @CRYPTO_CFLAGS@ -CRYPTO_LIBS = @CRYPTO_LIBS@ -CRYPTO_STATIC_LIBS = @CRYPTO_STATIC_LIBS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVMAPPER_CFLAGS = @DEVMAPPER_CFLAGS@ -DEVMAPPER_LIBS = @DEVMAPPER_LIBS@ -DEVMAPPER_STATIC_CFLAGS = @DEVMAPPER_STATIC_CFLAGS@ -DEVMAPPER_STATIC_LIBS = @DEVMAPPER_STATIC_LIBS@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -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@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBCRYPTSETUP_VERSION = @LIBCRYPTSETUP_VERSION@ -LIBCRYPTSETUP_VERSION_INFO = @LIBCRYPTSETUP_VERSION_INFO@ -LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ -LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ -LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -NSS_CFLAGS = @NSS_CFLAGS@ -NSS_LIBS = @NSS_LIBS@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_STATIC_CFLAGS = @OPENSSL_STATIC_CFLAGS@ -OPENSSL_STATIC_LIBS = @OPENSSL_STATIC_LIBS@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POPT_LIBS = @POPT_LIBS@ -POSUB = @POSUB@ -PWQUALITY_CFLAGS = @PWQUALITY_CFLAGS@ -PWQUALITY_LIBS = @PWQUALITY_LIBS@ -PWQUALITY_STATIC_LIBS = @PWQUALITY_STATIC_LIBS@ -PYTHON = @PYTHON@ -PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ -PYTHON_INCLUDES = @PYTHON_INCLUDES@ -PYTHON_LIBS = @PYTHON_LIBS@ -PYTHON_PLATFORM = @PYTHON_PLATFORM@ -PYTHON_PREFIX = @PYTHON_PREFIX@ -PYTHON_VERSION = @PYTHON_VERSION@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -UUID_LIBS = @UUID_LIBS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -pkgpyexecdir = @pkgpyexecdir@ -pkgpythondir = @pkgpythondir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -pyexecdir = @pyexecdir@ -pythondir = @pythondir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -EXTRA_DIST = compatimage.img.bz2 compatv10image.img.bz2 \ - img_fs_ext4.img.bz2 img_fs_vfat.img.bz2 img_fs_xfs.img.bz2 \ - valid_header_file.bz2 \ - evil_hdr-payload_overwrite.bz2 \ - evil_hdr-stripes_payload_dmg.bz2 \ - evil_hdr-luks_hdr_damage.bz2 \ - evil_hdr-small_luks_device.bz2 \ - tcrypt-images.tar.bz2 \ - luks1-images.tar.bz2 \ - compat-test loopaes-test align-test discards-test mode-test password-hash-test \ - verity-compat-test \ - reencryption-compat-test \ - tcrypt-compat-test \ - luks1-compat-test \ - device-test \ - cryptsetup-valg-supps valg.sh valg-api.sh - -CLEANFILES = cryptsetup-tst* valglog* -differ_SOURCES = differ.c -differ_CFLAGS = $(AM_CFLAGS) -Wall -O2 -api_test_SOURCES = api-test.c $(top_srcdir)/lib/utils_loop.c -api_test_LDADD = ../lib/libcryptsetup.la -api_test_LDFLAGS = $(AM_LDFLAGS) -static -api_test_CFLAGS = -g -Wall -O0 $(AM_CFLAGS) -I$(top_srcdir)/lib/ -I$(top_srcdir)/lib/luks1 -api_test_CPPFLAGS = $(AM_CPPFLAGS) -include config.h -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .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 ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu tests/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-checkPROGRAMS: - @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list - -api-test$(EXEEXT): $(api_test_OBJECTS) $(api_test_DEPENDENCIES) $(EXTRA_api_test_DEPENDENCIES) - @rm -f api-test$(EXEEXT) - $(AM_V_CCLD)$(api_test_LINK) $(api_test_OBJECTS) $(api_test_LDADD) $(LIBS) - -differ$(EXEEXT): $(differ_OBJECTS) $(differ_DEPENDENCIES) $(EXTRA_differ_DEPENDENCIES) - @rm -f differ$(EXEEXT) - $(AM_V_CCLD)$(differ_LINK) $(differ_OBJECTS) $(differ_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/api_test-api-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/api_test-utils_loop.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/differ-differ.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -api_test-api-test.o: api-test.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(api_test_CPPFLAGS) $(CPPFLAGS) $(api_test_CFLAGS) $(CFLAGS) -MT api_test-api-test.o -MD -MP -MF $(DEPDIR)/api_test-api-test.Tpo -c -o api_test-api-test.o `test -f 'api-test.c' || echo '$(srcdir)/'`api-test.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/api_test-api-test.Tpo $(DEPDIR)/api_test-api-test.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='api-test.c' object='api_test-api-test.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(api_test_CPPFLAGS) $(CPPFLAGS) $(api_test_CFLAGS) $(CFLAGS) -c -o api_test-api-test.o `test -f 'api-test.c' || echo '$(srcdir)/'`api-test.c - -api_test-api-test.obj: api-test.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(api_test_CPPFLAGS) $(CPPFLAGS) $(api_test_CFLAGS) $(CFLAGS) -MT api_test-api-test.obj -MD -MP -MF $(DEPDIR)/api_test-api-test.Tpo -c -o api_test-api-test.obj `if test -f 'api-test.c'; then $(CYGPATH_W) 'api-test.c'; else $(CYGPATH_W) '$(srcdir)/api-test.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/api_test-api-test.Tpo $(DEPDIR)/api_test-api-test.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='api-test.c' object='api_test-api-test.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(api_test_CPPFLAGS) $(CPPFLAGS) $(api_test_CFLAGS) $(CFLAGS) -c -o api_test-api-test.obj `if test -f 'api-test.c'; then $(CYGPATH_W) 'api-test.c'; else $(CYGPATH_W) '$(srcdir)/api-test.c'; fi` - -api_test-utils_loop.o: $(top_srcdir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(api_test_CPPFLAGS) $(CPPFLAGS) $(api_test_CFLAGS) $(CFLAGS) -MT api_test-utils_loop.o -MD -MP -MF $(DEPDIR)/api_test-utils_loop.Tpo -c -o api_test-utils_loop.o `test -f '$(top_srcdir)/lib/utils_loop.c' || echo '$(srcdir)/'`$(top_srcdir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/api_test-utils_loop.Tpo $(DEPDIR)/api_test-utils_loop.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/lib/utils_loop.c' object='api_test-utils_loop.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(api_test_CPPFLAGS) $(CPPFLAGS) $(api_test_CFLAGS) $(CFLAGS) -c -o api_test-utils_loop.o `test -f '$(top_srcdir)/lib/utils_loop.c' || echo '$(srcdir)/'`$(top_srcdir)/lib/utils_loop.c - -api_test-utils_loop.obj: $(top_srcdir)/lib/utils_loop.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(api_test_CPPFLAGS) $(CPPFLAGS) $(api_test_CFLAGS) $(CFLAGS) -MT api_test-utils_loop.obj -MD -MP -MF $(DEPDIR)/api_test-utils_loop.Tpo -c -o api_test-utils_loop.obj `if test -f '$(top_srcdir)/lib/utils_loop.c'; then $(CYGPATH_W) '$(top_srcdir)/lib/utils_loop.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/lib/utils_loop.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/api_test-utils_loop.Tpo $(DEPDIR)/api_test-utils_loop.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/lib/utils_loop.c' object='api_test-utils_loop.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(api_test_CPPFLAGS) $(CPPFLAGS) $(api_test_CFLAGS) $(CFLAGS) -c -o api_test-utils_loop.obj `if test -f '$(top_srcdir)/lib/utils_loop.c'; then $(CYGPATH_W) '$(top_srcdir)/lib/utils_loop.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/lib/utils_loop.c'; fi` - -differ-differ.o: differ.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(differ_CFLAGS) $(CFLAGS) -MT differ-differ.o -MD -MP -MF $(DEPDIR)/differ-differ.Tpo -c -o differ-differ.o `test -f 'differ.c' || echo '$(srcdir)/'`differ.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/differ-differ.Tpo $(DEPDIR)/differ-differ.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='differ.c' object='differ-differ.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(differ_CFLAGS) $(CFLAGS) -c -o differ-differ.o `test -f 'differ.c' || echo '$(srcdir)/'`differ.c - -differ-differ.obj: differ.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(differ_CFLAGS) $(CFLAGS) -MT differ-differ.obj -MD -MP -MF $(DEPDIR)/differ-differ.Tpo -c -o differ-differ.obj `if test -f 'differ.c'; then $(CYGPATH_W) 'differ.c'; else $(CYGPATH_W) '$(srcdir)/differ.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/differ-differ.Tpo $(DEPDIR)/differ-differ.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='differ.c' object='differ-differ.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(differ_CFLAGS) $(CFLAGS) -c -o differ-differ.obj `if test -f 'differ.c'; then $(CYGPATH_W) 'differ.c'; else $(CYGPATH_W) '$(srcdir)/differ.c'; fi` - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; \ - srcdir=$(srcdir); export srcdir; \ - list=' $(TESTS) '; \ - $(am__tty_colors); \ - if test -n "$$list"; then \ - for tst in $$list; do \ - if test -f ./$$tst; then dir=./; \ - elif test -f $$tst; then dir=; \ - else dir="$(srcdir)/"; fi; \ - if $(TESTS_ENVIRONMENT) $${dir}$$tst $(AM_TESTS_FD_REDIRECT); then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *[\ \ ]$$tst[\ \ ]*) \ - xpass=`expr $$xpass + 1`; \ - failed=`expr $$failed + 1`; \ - col=$$red; res=XPASS; \ - ;; \ - *) \ - col=$$grn; res=PASS; \ - ;; \ - esac; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *[\ \ ]$$tst[\ \ ]*) \ - xfail=`expr $$xfail + 1`; \ - col=$$lgn; res=XFAIL; \ - ;; \ - *) \ - failed=`expr $$failed + 1`; \ - col=$$red; res=FAIL; \ - ;; \ - esac; \ - else \ - skip=`expr $$skip + 1`; \ - col=$$blu; res=SKIP; \ - fi; \ - echo "$${col}$$res$${std}: $$tst"; \ - done; \ - if test "$$all" -eq 1; then \ - tests="test"; \ - All=""; \ - else \ - tests="tests"; \ - All="All "; \ - fi; \ - if test "$$failed" -eq 0; then \ - if test "$$xfail" -eq 0; then \ - banner="$$All$$all $$tests passed"; \ - else \ - if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ - banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ - fi; \ - else \ - if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all $$tests failed"; \ - else \ - if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ - banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ - fi; \ - fi; \ - dashes="$$banner"; \ - skipped=""; \ - if test "$$skip" -ne 0; then \ - if test "$$skip" -eq 1; then \ - skipped="($$skip test was not run)"; \ - else \ - skipped="($$skip tests were not run)"; \ - fi; \ - test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$skipped"; \ - fi; \ - report=""; \ - if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ - report="Please report to $(PACKAGE_BUGREPORT)"; \ - test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$report"; \ - fi; \ - dashes=`echo "$$dashes" | sed s/./=/g`; \ - if test "$$failed" -eq 0; then \ - col="$$grn"; \ - else \ - col="$$red"; \ - fi; \ - echo "$${col}$$dashes$${std}"; \ - echo "$${col}$$banner$${std}"; \ - test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \ - test -z "$$report" || echo "$${col}$$report$${std}"; \ - echo "$${col}$$dashes$${std}"; \ - test "$$failed" -eq 0; \ - else :; fi - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am - $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) - $(MAKE) $(AM_MAKEFLAGS) check-TESTS -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-checkPROGRAMS clean-generic clean-libtool clean-local \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: check-am install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \ - clean-checkPROGRAMS clean-generic clean-libtool clean-local \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -clean-local: - -rm -rf tcrypt-images luks1-images - -compatimage.img: - @bzip2 -k -d compatimage.img.bz2 - -valgrind-check: api-test differ - @VALG=1 ./compat-test - @INFOSTRING="api-test-000" ./valg-api.sh ./api-test - -.PHONY: valgrind-check - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/tests/align-test b/tests/align-test index c6de95d..7942f31 100755 --- a/tests/align-test +++ b/tests/align-test @@ -3,16 +3,11 @@ CRYPTSETUP="../src/cryptsetup" DEV="" DEV_STACKED="luks0xbabe" -MNT_DIR="./mnt_luks" PWD1="93R4P4pIqAH8" PWD2="mymJeD8ivEhE" cleanup() { udevadm settle >/dev/null 2>&1 - if [ -d "$MNT_DIR" ] ; then - umount -f $MNT_DIR 2>/dev/null - rmdir $MNT_DIR 2>/dev/null - fi [ -b /dev/mapper/$DEV_STACKED ] && dmsetup remove $DEV_STACKED >/dev/null 2>&1 rmmod scsi_debug 2>/dev/null sleep 2 @@ -20,18 +15,12 @@ cleanup() { fail() { - if [ -n "$1" ] ; then echo "FAIL $1" ; else echo "FAIL" ; fi + echo "FAIL" + [ -n "$1" ] && echo "$1" cleanup exit 100 } -skip() -{ - echo "TEST SKIPPED: $1" - cleanup - exit 0 -} - add_device() { modprobe scsi_debug $@ if [ $? -ne 0 ] ; then @@ -40,7 +29,7 @@ add_device() { fi sleep 2 - DEV=$(grep -l -e scsi_debug /sys/block/*/device/model | cut -f4 -d /) + DEV=$(grep scsi_debug /sys/block/*/device/model | cut -f4 -d /) if [ ! -e /sys/block/$DEV/alignment_offset ] ; then echo "This kernel seems to not support topology info, test skipped." @@ -209,18 +198,3 @@ format_null 512 4040 8 format_null 512 4096 128 format_null 512 4096 2048 cleanup - -echo "# Create enterprise-class 4K drive with fs and LUKS images." -# loop device here presents 512 block but images have 4k block -# cryptsetup should properly use 4k block on direct-io -add_device dev_size_mb=16 sector_size=4096 physblk_exp=0 num_tgts=1 -for file in $(ls img_fs_*.img.bz2) ; do - echo "Format using fs image $file." - bzip2 -d -c $file | dd of=$DEV bs=1M 2>/dev/null || fail "bad image" - [ ! -d $MNT_DIR ] && mkdir $MNT_DIR - mount $DEV $MNT_DIR || skip "Mounting image is not available." - echo $PWD1 | $CRYPTSETUP luksFormat -i 1 $MNT_DIR/luks.img || fail - echo $PWD2 | $CRYPTSETUP luksFormat -i 1 $MNT_DIR/luks.img --header $MNT_DIR/luks_header.img || fail - umount $MNT_DIR -done -cleanup diff --git a/tests/api-test.c b/tests/api-test.c index 7fd85c2..5607f8d 100644 --- a/tests/api-test.c +++ b/tests/api-test.c @@ -1,8 +1,8 @@ /* * cryptsetup library API check functions * - * Copyright (C) 2009-2013 Red Hat, Inc. All rights reserved. - * Copyright (C) 2009-2014, Milan Broz + * Copyright (C) 2009-2012 Red Hat, Inc. All rights reserved. + * Copyright (C) 2009-2013, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -94,7 +94,6 @@ static int global_lines = 0; static char *DEVICE_1 = NULL; static char *DEVICE_2 = NULL; -static char *DEVICE_3 = NULL; static char *THE_LOOP_DEV = NULL; static char *tmp_file_1 = NULL; @@ -124,9 +123,6 @@ static int fips_mode(void) int fd; char buf = 0; - if (access("/etc/system-fips", F_OK)) - return 0; - fd = open("/proc/sys/crypto/fips_enabled", O_RDONLY); if (fd < 0) @@ -250,7 +246,7 @@ static int _prepare_keyfile(const char *name, const char *passphrase, int size) { int fd, r; - fd = open(name, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR|S_IWUSR); + fd = open(name, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR); if (fd != -1) { r = write(fd, passphrase, size); close(fd); @@ -375,9 +371,6 @@ static void _cleanup(void) if (crypt_loop_device(DEVICE_2)) crypt_loop_detach(DEVICE_2); - if (crypt_loop_device(DEVICE_3)) - crypt_loop_detach(DEVICE_3); - _system("rm -f " IMAGE_EMPTY, 0); _system("rm -f " IMAGE1, 0); @@ -398,7 +391,6 @@ static void _cleanup(void) free(THE_LOOP_DEV); free(DEVICE_1); free(DEVICE_2); - free(DEVICE_3); } static int _setup(void) @@ -463,12 +455,6 @@ static int _setup(void) fd = crypt_loop_attach(DEVICE_2, IMAGE_EMPTY, 0, 0, &ro); close(fd); } - if (!DEVICE_3) - DEVICE_3 = crypt_loop_get_device(); - if (!DEVICE_3) { - printf("Cannot find free loop device.\n"); - return 1; - } /* Keymaterial offset is less than 8 sectors */ _system(" [ ! -e " EVL_HEADER_1 " ] && bzip2 -dk " EVL_HEADER_1 ".bz2", 1); /* keymaterial offset aims into payload area */ @@ -975,11 +961,8 @@ static void SuspendDevice(void) suspend_status = crypt_suspend(cd, CDEVICE_1); if (suspend_status == -ENOTSUP) { printf("WARNING: Suspend/Resume not supported, skipping test.\n"); - OK_(crypt_deactivate(cd, CDEVICE_1)); - crypt_free(cd); - return; + goto out; } - OK_(suspend_status); FAIL_(crypt_suspend(cd, CDEVICE_1), "already suspended"); @@ -993,30 +976,10 @@ static void SuspendDevice(void) FAIL_(crypt_resume_by_keyfile_offset(cd, CDEVICE_1, CRYPT_ANY_SLOT, KEYFILE1, 1, 0), "wrong key"); OK_(crypt_resume_by_keyfile_offset(cd, CDEVICE_1, CRYPT_ANY_SLOT, KEYFILE1, 0, 0)); FAIL_(crypt_resume_by_keyfile(cd, CDEVICE_1, CRYPT_ANY_SLOT, KEYFILE1, 0), "not suspended"); + _remove_keyfiles(); +out: OK_(crypt_deactivate(cd, CDEVICE_1)); crypt_free(cd); - - /* create LUKS device with detached header */ - OK_(crypt_init(&cd, DEVICE_1)); - OK_(crypt_load(cd, CRYPT_LUKS1, NULL)); - OK_(crypt_set_data_device(cd, DEVICE_2)); - OK_(crypt_activate_by_passphrase(cd, CDEVICE_1, CRYPT_ANY_SLOT, KEY1, strlen(KEY1), 0)); - crypt_free(cd); - - /* Should be able to suspend but not resume if not header specified */ - OK_(crypt_init_by_name(&cd, CDEVICE_1)); - OK_(crypt_suspend(cd, CDEVICE_1)); - FAIL_(crypt_suspend(cd, CDEVICE_1), "already suspended"); - FAIL_(crypt_resume_by_passphrase(cd, CDEVICE_1, CRYPT_ANY_SLOT, KEY1, strlen(KEY1)-1), "no header"); - crypt_free(cd); - - OK_(crypt_init_by_name_and_header(&cd, CDEVICE_1, DEVICE_1)); - OK_(crypt_resume_by_passphrase(cd, CDEVICE_1, CRYPT_ANY_SLOT, KEY1, strlen(KEY1))); - - OK_(crypt_deactivate(cd, CDEVICE_1)); - crypt_free(cd); - - _remove_keyfiles(); } static void AddDeviceLuks(void) @@ -1118,14 +1081,6 @@ static void AddDeviceLuks(void) OK_(crypt_init_by_name_and_header(&cd, CDEVICE_1, DMDIR H_DEVICE)); FAIL_(crypt_format(cd, CRYPT_LUKS1, cipher, cipher_mode, NULL, key, key_size, ¶ms), "Context is already formated"); EQ_(crypt_status(cd, CDEVICE_1), CRYPT_ACTIVE); - crypt_free(cd); - // check active status without header - OK_(crypt_init_by_name_and_header(&cd, CDEVICE_1, NULL)); - EQ_(crypt_status(cd, CDEVICE_1), CRYPT_ACTIVE); - OK_(!!crypt_get_type(cd)); - OK_(strcmp(cipher, crypt_get_cipher(cd))); - OK_(strcmp(cipher_mode, crypt_get_cipher_mode(cd))); - EQ_((int)key_size, crypt_get_volume_key_size(cd)); OK_(crypt_deactivate(cd, CDEVICE_1)); crypt_free(cd); @@ -1355,8 +1310,8 @@ static void LuksHeaderRestore(void) // volume key_size mismatch OK_(crypt_init(&cd, DMDIR L_DEVICE_OK)); - memcpy(key2, key, key_size / 2); - OK_(crypt_format(cd, CRYPT_LUKS1, cipher, cipher_mode, NULL, key2, key_size / 2, ¶ms)); + memcpy(key2, key, key_size - 1); + OK_(crypt_format(cd, CRYPT_LUKS1, cipher, cipher_mode, NULL, key2, key_size - 1, ¶ms)); FAIL_(crypt_header_restore(cd, CRYPT_LUKS1, VALID_HEADER), "Volume keysize mismatch"); crypt_free(cd); @@ -1470,7 +1425,6 @@ static void LuksHeaderBackup(void) .data_alignment = 2048, }; char key[128]; - int fd, ro = O_RDONLY; const char *mk_hex = "bb21158c733229347bd4e681891e213d94c685be6a5b84818afe7a78a6de7a1a"; size_t key_size = strlen(mk_hex) / 2; @@ -1478,8 +1432,6 @@ static void LuksHeaderBackup(void) const char *cipher_mode = "cbc-essiv:sha256"; uint64_t r_payload_offset; - const char *passphrase = PASSPHRASE; - crypt_decode_key(key, mk_hex, key_size); OK_(get_luks_offsets(0, key_size, params.data_alignment, 0, NULL, &r_payload_offset)); @@ -1489,8 +1441,6 @@ static void LuksHeaderBackup(void) OK_(crypt_init(&cd, DMDIR L_DEVICE_OK)); OK_(crypt_format(cd, CRYPT_LUKS1, cipher, cipher_mode, NULL, key, key_size, ¶ms)); OK_(crypt_activate_by_volume_key(cd, CDEVICE_1, key, key_size, 0)); - EQ_(crypt_keyslot_add_by_volume_key(cd, 7, key, key_size, passphrase, strlen(passphrase)), 7); - EQ_(crypt_keyslot_add_by_volume_key(cd, 0, key, key_size, passphrase, strlen(passphrase)), 0); OK_(crypt_header_backup(cd, CRYPT_LUKS1, BACKUP_FILE)); OK_(crypt_deactivate(cd, CDEVICE_1)); crypt_free(cd); @@ -1504,43 +1454,6 @@ static void LuksHeaderBackup(void) OK_(crypt_deactivate(cd, CDEVICE_1)); crypt_free(cd); - // exercise luksOpen using backup header in file - OK_(crypt_init(&cd, BACKUP_FILE)); - OK_(crypt_load(cd, CRYPT_LUKS1, NULL)); - OK_(crypt_set_data_device(cd, DMDIR L_DEVICE_OK)); - EQ_(crypt_activate_by_passphrase(cd, CDEVICE_1, 0, passphrase, strlen(passphrase), 0), 0); - EQ_(crypt_status(cd, CDEVICE_1), CRYPT_ACTIVE); - OK_(crypt_deactivate(cd, CDEVICE_1)); - crypt_free(cd); - - OK_(crypt_init(&cd, BACKUP_FILE)); - OK_(crypt_load(cd, CRYPT_LUKS1, NULL)); - OK_(crypt_set_data_device(cd, DMDIR L_DEVICE_OK)); - EQ_(crypt_activate_by_passphrase(cd, CDEVICE_1, 7, passphrase, strlen(passphrase), 0), 7); - EQ_(crypt_status(cd, CDEVICE_1), CRYPT_ACTIVE); - OK_(crypt_deactivate(cd, CDEVICE_1)); - crypt_free(cd); - - // exercise luksOpen using backup header on block device - fd = crypt_loop_attach(DEVICE_3, BACKUP_FILE, 0, 0, &ro); - close(fd); - OK_(fd < 0); - OK_(crypt_init(&cd, DEVICE_3)); - OK_(crypt_load(cd, CRYPT_LUKS1, NULL)); - OK_(crypt_set_data_device(cd, DMDIR L_DEVICE_OK)); - EQ_(crypt_activate_by_passphrase(cd, CDEVICE_1, 0, passphrase, strlen(passphrase), 0), 0); - EQ_(crypt_status(cd, CDEVICE_1), CRYPT_ACTIVE); - OK_(crypt_deactivate(cd, CDEVICE_1)); - crypt_free(cd); - - OK_(crypt_init(&cd, DEVICE_3)); - OK_(crypt_load(cd, CRYPT_LUKS1, NULL)); - OK_(crypt_set_data_device(cd, DMDIR L_DEVICE_OK)); - EQ_(crypt_activate_by_passphrase(cd, CDEVICE_1, 7, passphrase, strlen(passphrase), 0), 7); - EQ_(crypt_status(cd, CDEVICE_1), CRYPT_ACTIVE); - OK_(crypt_deactivate(cd, CDEVICE_1)); - crypt_free(cd); - _cleanup_dmdevices(); } @@ -1929,7 +1842,7 @@ static void NonFIPSAlg(void) struct crypt_device *cd; struct crypt_params_luks1 params = {0}; char key[128] = ""; - size_t key_size = 128 / 8; + size_t key_size = 128; const char *cipher = "aes"; const char *cipher_mode = "cbc-essiv:sha256"; int ret; diff --git a/tests/compat-test b/tests/compat-test index 5247fd3..ab3ade5 100755 --- a/tests/compat-test +++ b/tests/compat-test @@ -39,7 +39,7 @@ KEY_MATERIAL5_EXT="S331776-395264" TEST_UUID="12345678-1234-1234-1234-123456789abc" LOOPDEV=$(losetup -f 2>/dev/null) -[ -f /etc/system-fips ] && FIPS_MODE=$(cat /proc/sys/crypto/fips_enabled 2>/dev/null) +FIPS_MODE=$(cat /proc/sys/crypto/fips_enabled 2>/dev/null) function remove_mapping() { @@ -314,9 +314,6 @@ $CRYPTSETUP luksDump $LOOPDEV | grep -q "Key Slot 3: ENABLED" || fail echo $PWD2 | $CRYPTSETUP luksAddKey $LOOPDEV --master-key-file /dev/zero --key-slot 4 || fail $CRYPTSETUP luksDump $LOOPDEV | grep -q "Key Slot 4: ENABLED" || fail echo $PWD3 | $CRYPTSETUP luksAddKey $LOOPDEV --master-key-file /dev/null --key-slot 5 2>/dev/null && fail -$CRYPTSETUP luksAddKey $LOOPDEV --master-key-file /dev/zero --key-slot 5 $KEY1 || fail -$CRYPTSETUP luksDump $LOOPDEV | grep -q "Key Slot 5: ENABLED" || fail - # [0]PWD1 [1]PWD2 [2]$KEY1/1 [3]$KEY1 [4]$KEY2 $CRYPTSETUP -q luksFormat $LOOPDEV $KEY1 --key-slot 3 || fail $CRYPTSETUP luksDump $LOOPDEV | grep -q "Key Slot 3: ENABLED" || fail @@ -536,15 +533,9 @@ echo $PWD1 | $CRYPTSETUP luksFormat -i1 $LOOPDEV --header $HEADER_IMG --align-pa echo $PWD1 | $CRYPTSETUP luksOpen $LOOPDEV --header $HEADER_IMG $DEV_NAME || fail $CRYPTSETUP -q resize $DEV_NAME --size 100 --header $HEADER_IMG || fail $CRYPTSETUP -q status $DEV_NAME --header $HEADER_IMG | grep "size:" | grep -q "100 sectors" || fail -$CRYPTSETUP -q status $DEV_NAME | grep "type:" | grep -q "n/a" || fail -$CRYPTSETUP -q status $DEV_NAME | grep "size:" | grep -q "100 sectors" || fail $CRYPTSETUP luksSuspend $DEV_NAME --header $HEADER_IMG || fail echo $PWD1 | $CRYPTSETUP luksResume $DEV_NAME --header $HEADER_IMG || fail $CRYPTSETUP luksClose $DEV_NAME || fail -echo $PWD1 | $CRYPTSETUP luksAddKey -S 5 _fakedev_ --header $HEADER_IMG $KEY5 || fail -$CRYPTSETUP luksDump _fakedev_ --header $HEADER_IMG | grep -q "Key Slot 5: ENABLED" || fail -$CRYPTSETUP luksKillSlot -q _fakedev_ --header $HEADER_IMG 5 || fail -$CRYPTSETUP luksDump _fakedev_ --header $HEADER_IMG | grep -q "Key Slot 5: DISABLED" || fail prepare "[29] Repair metadata" wipe $CRYPTSETUP -q luksFormat -i1 $LOOPDEV $KEY1 --key-slot 0 || fail @@ -555,14 +546,5 @@ $CRYPTSETUP -q repair $LOOPDEV >/dev/null 2>&1 || fail $CRYPTSETUP luksOpen -d $KEY1 $LOOPDEV $DEV_NAME || fail $CRYPTSETUP luksClose $DEV_NAME || fail -prepare "[30] LUKS erase" wipe -$CRYPTSETUP -q luksFormat -i1 $LOOPDEV $KEY5 --key-slot 5 || fail -$CRYPTSETUP luksAddKey -S 1 -d $KEY5 $LOOPDEV $KEY1 || fail -$CRYPTSETUP luksDump $LOOPDEV | grep -q "Key Slot 1: ENABLED" || fail -$CRYPTSETUP luksDump $LOOPDEV | grep -q "Key Slot 5: ENABLED" || fail -$CRYPTSETUP luksErase -q $LOOPDEV || fail -$CRYPTSETUP luksDump $LOOPDEV | grep -q "Key Slot 1: DISABLED" || fail -$CRYPTSETUP luksDump $LOOPDEV | grep -q "Key Slot 5: DISABLED" || fail - remove_mapping exit 0 diff --git a/tests/device-test b/tests/device-test deleted file mode 100755 index 1a6c8d2..0000000 --- a/tests/device-test +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/bash - -CRYPTSETUP="../src/cryptsetup" -MNT_DIR="./mnt_luks" -DEV_NAME="dummy" -PWD1="93R4P4pIqAH8" -PWD2="mymJeD8ivEhE" - -cleanup() { - [ -b /dev/mapper/$DEV_NAME ] && dmsetup remove $DEV_NAME - udevadm settle >/dev/null 2>&1 - if [ -d "$MNT_DIR" ] ; then - umount -f $MNT_DIR 2>/dev/null - rmdir $MNT_DIR 2>/dev/null - fi - sleep 2 -} - -fail() -{ - if [ -n "$1" ] ; then echo "FAIL $1" ; else echo "FAIL" ; fi - cleanup - exit 100 -} - -skip() -{ - echo "TEST SKIPPED: $1" - cleanup - exit 0 -} - -format() # key_bits expected [forced] -{ - dd if=/dev/zero of=$DEV bs=1M count=5 >/dev/null 2>&1 - - echo $PWD1 | $CRYPTSETUP luksFormat $DEV -q -i1 -c aes-cbc-essiv:sha256 - [ $? -ne 0 ] && fail "Format failed." - - # test some operation, just in case - echo -e "$PWD1\n$PWD2" | $CRYPTSETUP luksAddKey $DEV -i1 --key-slot 1 - [ $? -ne 0 ] && fail "Keyslot add failed." - - $CRYPTSETUP -q luksKillSlot $DEV 1 - [ $? -ne 0 ] && fail "Keyslot removal failed." -} - -if [ $(id -u) != 0 ]; then - echo "WARNING: You must be root to run this test, test skipped." - exit 0 -fi - -[ ! -d $MNT_DIR ] && mkdir $MNT_DIR - -echo "[1] Using tmpfs for image" -DEV="$MNT_DIR/test.img" -mount -t tmpfs none $MNT_DIR || skip "Mounting tmpfs not available." -format - -echo "[2] Kernel dmcrypt performace options" -echo -e "$PWD1" | $CRYPTSETUP open --type plain $DEV $DEV_NAME --perf-same_cpu_crypt >/dev/null 2>&1 -if [ $? -ne 0 ] ; then - echo "TEST SKIPPED: dmcrypt options not available" -else - $CRYPTSETUP close $DEV_NAME || fail - # plain - echo -e "$PWD1" | $CRYPTSETUP open --type plain $DEV $DEV_NAME --perf-same_cpu_crypt --perf-submit_from_crypt_cpus || fail - $CRYPTSETUP status $DEV_NAME | grep -q same_cpu_crypt || fail - $CRYPTSETUP status $DEV_NAME | grep -q submit_from_crypt_cpus || fail - $CRYPTSETUP close $DEV_NAME || fail - echo -e "$PWD1" | $CRYPTSETUP open --type plain $DEV $DEV_NAME --perf-same_cpu_crypt --allow-discards || fail - $CRYPTSETUP status $DEV_NAME | grep -q same_cpu_crypt || fail - $CRYPTSETUP status $DEV_NAME | grep -q discards || fail - $CRYPTSETUP close $DEV_NAME || fail - # LUKS - echo -e "$PWD1" | $CRYPTSETUP open --type luks1 $DEV $DEV_NAME --perf-same_cpu_crypt --perf-submit_from_crypt_cpus || fail - $CRYPTSETUP status $DEV_NAME | grep -q same_cpu_crypt || fail - $CRYPTSETUP status $DEV_NAME | grep -q submit_from_crypt_cpus || fail - $CRYPTSETUP close $DEV_NAME || fail - echo -e "$PWD1" | $CRYPTSETUP open --type luks1 $DEV $DEV_NAME --perf-same_cpu_crypt --allow-discards || fail - $CRYPTSETUP status $DEV_NAME | grep -q same_cpu_crypt || fail - $CRYPTSETUP status $DEV_NAME | grep -q discards || fail - $CRYPTSETUP close $DEV_NAME || fail -fi - -cleanup diff --git a/tests/discards-test b/tests/discards-test index a8c4bc6..796cace 100755 --- a/tests/discards-test +++ b/tests/discards-test @@ -27,7 +27,7 @@ add_device() { fi sleep 2 - DEV=$(grep -l -e scsi_debug /sys/block/*/device/model | cut -f4 -d /) + DEV=$(grep scsi_debug /sys/block/*/device/model | cut -f4 -d /) DEV="/dev/$DEV" [ -b $DEV ] || fail "Cannot find $DEV." diff --git a/tests/img_fs_ext4.img.bz2 b/tests/img_fs_ext4.img.bz2 deleted file mode 100644 index 5faa3e7..0000000 Binary files a/tests/img_fs_ext4.img.bz2 and /dev/null differ diff --git a/tests/img_fs_vfat.img.bz2 b/tests/img_fs_vfat.img.bz2 deleted file mode 100644 index a87683b..0000000 Binary files a/tests/img_fs_vfat.img.bz2 and /dev/null differ diff --git a/tests/img_fs_xfs.img.bz2 b/tests/img_fs_xfs.img.bz2 deleted file mode 100644 index 3e21a8a..0000000 Binary files a/tests/img_fs_xfs.img.bz2 and /dev/null differ diff --git a/tests/luks1-compat-test b/tests/luks1-compat-test deleted file mode 100755 index 6e6d620..0000000 --- a/tests/luks1-compat-test +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/bash - -# check luks1 images parsing - -# NOTE: if image with whirlpool hash fails, check -# that you are not using old gcrypt with flawed whirlpool -# (see cryptsetup debug output) - -CRYPTSETUP=../src/cryptsetup -TST_DIR=luks1-images -MAP=luks1tst -KEYFILE=keyfile1 - -function remove_mapping() -{ - [ -b /dev/mapper/$MAP ] && dmsetup remove $MAP -} - -function fail() -{ - [ -n "$1" ] && echo "$1" - echo " [FAILED]" - remove_mapping - exit 2 -} - -function skip() -{ - [ -n "$1" ] && echo "$1" - echo "Test skipped." - exit 0 -} - -function test_one() -{ - $CRYPTSETUP benchmark -c "$1" -s "$2" | grep -v "#" || skip -} - -function test_required() -{ - which lsblk >/dev/null 2>&1 || skip "WARNING: lsblk tool required." - - echo "REQUIRED KDF TEST" - $CRYPTSETUP benchmark -h whirlpool | grep "N/A" && skip - - echo "REQUIRED CIPHERS TEST" - echo "# Algorithm | Key | Encryption | Decryption" - - test_one aes-xts 256 - test_one twofish-xts 256 - test_one serpent-xts 256 - test_one aes-cbc 256 - test_one aes-lrw 256 -} - -export LANG=C - -if [ $(id -u) != 0 ]; then - echo "WARNING: You must be root to run activation part of test, test skipped." - exit 0 -fi - -test_required -[ ! -d $TST_DIR ] && tar xjf luks1-images.tar.bz2 - -echo "ACTIVATION FS UUID CHECK" -for file in $(ls $TST_DIR/luks1_*) ; do - echo -n " $file" - $CRYPTSETUP luksOpen -d $TST_DIR/$KEYFILE $file $MAP 2>/dev/null - ret=$? - # ignore missing whirlpool (pwd failed is exit code 2) - [ $ret -eq 1 ] && (echo $file | grep -q -e "whirlpool") && echo " [N/A]" && continue - [ $ret -ne 0 ] && fail - $CRYPTSETUP status $MAP >/dev/null || fail - $CRYPTSETUP status /dev/mapper/$MAP >/dev/null || fail - UUID=$(lsblk -n -o UUID /dev/mapper/$MAP) - $CRYPTSETUP remove $MAP || fail - [ "$UUID" != "DEAD-BABE" ] && fail "UUID check failed." - echo " [OK]" -done diff --git a/tests/luks1-images.tar.bz2 b/tests/luks1-images.tar.bz2 deleted file mode 100644 index 86de8a5..0000000 Binary files a/tests/luks1-images.tar.bz2 and /dev/null differ diff --git a/tests/mode-test b/tests/mode-test index fcc460d..3801718 100755 --- a/tests/mode-test +++ b/tests/mode-test @@ -52,7 +52,7 @@ add_device() { dmcrypt_check() # device outstring { X=$(dmsetup table $1 2>/dev/null | sed 's/.*: //' | cut -d' ' -f 4) - if [ "$X" = $2 ] ; then + if [ $X = $2 ] ; then echo -n "[table OK]" else echo "[table FAIL]" @@ -65,7 +65,7 @@ dmcrypt_check() # device outstring echo -n "[status OK]" else echo "[status FAIL]" - echo " Expecting $2 got \"$X\"." + echo " Expecting $2 got $X." fail fi diff --git a/tests/password-hash-test b/tests/password-hash-test index a03af50..5e3a3d8 100755 --- a/tests/password-hash-test +++ b/tests/password-hash-test @@ -20,20 +20,13 @@ cleanup() { exit $1 } -function fail() -{ - echo " $1 [FAILED]" - cleanup 2 -} - -crypt_key() # hash keysize pwd/file name outkey [limit] [offset] +crypt_key() # hash keysize pwd/file name outkey [limit] { DEV2=$DEV_NAME"_x" LIMIT="" MODE=aes-cbc-essiv:sha256 [ $2 -gt 256 ] && MODE=aes-xts-plain [ -n "$6" ] && LIMIT="-l $6" - [ -n "$7" ] && LIMIT="$LIMIT --keyfile-offset $7" echo -n "HASH: $1 KSIZE: $2 / $3" case "$3" in @@ -53,21 +46,12 @@ crypt_key() # hash keysize pwd/file name outkey [limit] [offset] cat $4 | $CRYPTSETUP create -c $MODE -h $1 -s $2 $LIMIT $DEV2 /dev/mapper/$DEV_NAME 2>/dev/null ret=$? ;; - cat-) - cat $4 | $CRYPTSETUP create -c $MODE -h $1 -s $2 $LIMIT $DEV2 -d - /dev/mapper/$DEV_NAME 2>/dev/null - ret=$? - ;; file) - $CRYPTSETUP create -q -c $MODE -d $4 -h $1 -s $2 $DEV2 /dev/mapper/$DEV_NAME 2>/dev/null + $CRYPTSETUP create -c $MODE -d $4 -h $1 -s $2 $DEV2 /dev/mapper/$DEV_NAME 2>/dev/null ret=$? ;; - failpwd) - echo -e -n "$4" | $CRYPTSETUP create -c $MODE -h $1 -s $2 $LIMIT $DEV2 /dev/mapper/$DEV_NAME 2>/dev/null && fail "Expecting failure" - echo " [OK]" - return - ;; *) - fail "" + fail ;; esac @@ -123,15 +107,11 @@ crypt_key unknown* 256 file /dev/zero 00000000000000000000000000000000000000000 crypt_key sha256:20 256 pwd "xxx" cd2eb0837c9b4c962c22d2ff8b5441b7b4580588000000000000000000000000 crypt_key sha256:32 256 pwd "xxx" cd2eb0837c9b4c962c22d2ff8b5441b7b45805887f051d39bf133b583baf6860 -crypt_key sha256: 256 failpwd "xxx" x -crypt_key sha256:xx 256 failpwd "xxx" x - # key file, 80 chars echo -n -e "0123456789abcdef\n\x01\x00\x03\xff\xff\r\xff\xff\n\r" \ "2352j3rkjhadcfasc823rqaw7e1 3dq sdq3d 2dkjqw3h2=====" >$KEY_FILE KEY_FILE_HEX="303132333435363738396162636465660a010003ffff0dffff0a0d20323335326a33726b6a686164636661736338323372716177376531203364712073647133" -# ignore hash if keyfile is specified crypt_key ripemd160 256 file $KEY_FILE ${KEY_FILE_HEX:0:64} crypt_key sha256 256 file $KEY_FILE ${KEY_FILE_HEX:0:64} crypt_key sha256 128 file $KEY_FILE ${KEY_FILE_HEX:0:32} @@ -140,27 +120,7 @@ crypt_key sha256 512 file $KEY_FILE $KEY_FILE_HEX # stdin can be limited crypt_key plain 128 cat /dev/zero 00000000000000000000000000000000 16 crypt_key plain 128 cat /dev/zero 00000000000000000000000000000000 17 - -# read key only up to \n crypt_key plain 128 cat $KEY_FILE ${KEY_FILE_HEX:0:28}0000 14 - -# read full key, ignore keyfile length -crypt_key plain 128 cat- $KEY_FILE ${KEY_FILE_HEX:0:32} -crypt_key plain 128 cat- $KEY_FILE ${KEY_FILE_HEX:0:32} 14 - -# but do not ignore hash if keysgfile is "-" -crypt_key sha256 128 cat- $KEY_FILE f3b827c8a6f159ad8c8ed5bd5ab3f8c5 -crypt_key sha256 128 cat- $KEY_FILE f3b827c8a6f159ad8c8ed5bd5ab3f8c5 0 -crypt_key sha256 128 cat- $KEY_FILE f3b827c8a6f159ad8c8ed5bd5ab3f8c5 80 -crypt_key sha256 128 cat- $KEY_FILE a82c9227cc54c7475620ce85ba1fca1e 14 -crypt_key sha256 128 cat- $KEY_FILE 7df3f4a41a33805596be85c781cac3b4 14 2 -crypt_key sha256 128 cat- $KEY_FILE ebbe65a178e886ddbb778e0a5538db72 40 40 - -# limiting plain (no hash) -crypt_key plain 256 pwd "xxxxxxxx" 7878787878787878000000000000000000000000000000000000000000000000 -crypt_key plain:2 256 pwd "xxxxxxxx" 7878000000000000000000000000000000000000000000000000000000000000 -crypt_key plain:9 256 failpwd "xxxxxxxx" x - crypt_key sha256 128 cat $KEY_FILE a82c9227cc54c7475620ce85ba1fca1e 14 crypt_key sha256:14 128 cat $KEY_FILE a82c9227cc54c7475620ce85ba1f0000 14 diff --git a/tests/reencryption-compat-test b/tests/reencryption-compat-test index a3f9e4a..307fdd4 100755 --- a/tests/reencryption-compat-test +++ b/tests/reencryption-compat-test @@ -6,38 +6,22 @@ REENC=../src/cryptsetup-reencrypt DEV_NAME=reenc9768 DEV_NAME2=reenc1273 IMG=reenc-data -ORIG_IMG=reenc-data-orig KEY1=key1 PWD1="93R4P4pIqAH8" -PWD2="1cND4319812f" -PWD3="1-9Qu5Ejfnqv" - -MNT_DIR=./mnt_luks -START_DIR=$(pwd) - -function del_scsi_device() -{ - rmmod scsi_debug 2>/dev/null - sleep 2 -} function remove_mapping() { [ -b /dev/mapper/$DEV_NAME2 ] && dmsetup remove $DEV_NAME2 [ -b /dev/mapper/$DEV_NAME ] && dmsetup remove $DEV_NAME [ ! -z "$LOOPDEV1" ] && losetup -d $LOOPDEV1 >/dev/null 2>&1 - rm -f $IMG $ORIG_IMG $KEY1 >/dev/null 2>&1 - umount $MNT_DIR > /dev/null 2>&1 - rmdir $MNT_DIR > /dev/null 2>&1 + rm -f $IMG $KEY1 >/dev/null 2>&1 LOOPDEV1="" - del_scsi_device } function fail() { [ -n "$1" ] && echo "$1" echo "FAILED" - cd $START_DIR remove_mapping exit 2 } @@ -48,25 +32,12 @@ function skip() exit 0 } -function add_scsi_device() { - del_scsi_device - modprobe scsi_debug $@ - if [ $? -ne 0 ] ; then - echo "This kernel seems to not support proper scsi_debug module, test skipped." - exit 0 - fi - - sleep 2 - SCSI_DEV="/dev/"$(grep -l -e scsi_debug /sys/block/*/device/model | cut -f4 -d /) - [ -b $SCSI_DEV ] || fail "Cannot find $SCSI_DEV." -} - function open_crypt() { if [ -n "$1" ] ; then echo "$1" | $CRYPTSETUP luksOpen $LOOPDEV1 $DEV_NAME || fail else - $CRYPTSETUP luksOpen -d $KEY1 $LOOPDEV1 $DEV_NAME || fail + $CRYPTSETUP luksOpen -d key1 $LOOPDEV1 $DEV_NAME || fail fi } @@ -79,7 +50,6 @@ function wipe() # $1 pass { open_crypt $1 wipe_dev /dev/mapper/$DEV_NAME - udevadm settle >/dev/null 2>&1 $CRYPTSETUP luksClose $DEV_NAME || fail } @@ -110,107 +80,17 @@ function check_hash() # $1 pwd, $2 hash $CRYPTSETUP remove $DEV_NAME || fail } -function backup_orig() -{ - sync - losetup -d $LOOPDEV1 - cp $IMG $ORIG_IMG - losetup $LOOPDEV1 $IMG -} - -function rollback() -{ - sync - losetup -d $LOOPDEV1 - cp $ORIG_IMG $IMG - losetup $LOOPDEV1 $IMG -} - -function check_slot() #space separeted list of ENABLED key slots -{ - local _KS0=DISABLED - local _KS1=$_KS0 _KS2=$_KS0 _KS3=$_KS0 _KS4=$_KS0 _KS5=$_KS0 _KS6=$_KS0 _KS7=$_KS0 - local _tmp - - for _tmp in $*; do - eval _KS$_tmp=ENABLED - done - - local _out=$($CRYPTSETUP luksDump $LOOPDEV1 | grep -e "Key Slot" | cut -d ' ' -f 4) - - local _i=0 - for _tmp in $_out; do - eval local _orig="\${_KS${_i}}" - if [ "$_tmp" != "$_orig" ]; then - echo "Keyslot $_i is $_tmp, expected result: $_orig" - return 1 - fi - _i=$[_i+1] - done - - return 0 -} - -function simple_scsi_reenc() -{ - echo -n "$1" - echo $PWD1 | $CRYPTSETUP luksFormat -i1 $SCSI_DEV || fail - - echo $PWD1 | $CRYPTSETUP luksOpen $SCSI_DEV $DEV_NAME || fail - HASH=$(sha256sum /dev/mapper/$DEV_NAME | cut -d' ' -f 1) - $CRYPTSETUP luksClose $DEV_NAME || fail - - echo $PWD1 | $REENC -q -i 1 $SCSI_DEV || fail - - echo $PWD1 | $CRYPTSETUP luksOpen $SCSI_DEV $DEV_NAME || fail - check_hash_dev /dev/mapper/$DEV_NAME $HASH - $CRYPTSETUP luksClose $DEV_NAME || fail -} - -function mount_and_test() { - test -d $MNT_DIR || mkdir -p $MNT_DIR - mount $@ $MNT_DIR 2>/dev/null || { - echo -n "failed to mount [SKIP]" - return 0 - } - rm $MNT_DIR/* 2>/dev/null - cd $MNT_DIR - echo $PWD2 | $START_DIR/$REENC $LOOPDEV1 -q --use-fsync --use-directio --write-log || return 1 - cd $START_DIR - umount $MNT_DIR - echo -n [OK] -} - -function test_logging_tmpfs() { - echo -n "[tmpfs]" - mount_and_test -t tmpfs none -o size=$[25*1024*1024] || return 1 - echo -} - -function test_logging() { - echo -n "$1:" - for img in $(ls img_fs*img.bz2) ; do - wipefs -a $SCSI_DEV > /dev/null - echo -n "[${img%.img.bz2}]" - bzip2 -d -c $img | dd of=$SCSI_DEV >/dev/null 2>&1 - mount_and_test $SCSI_DEV || return 1 - done - echo -} - [ $(id -u) != 0 ] && skip "WARNING: You must be root to run this test, test skipped." [ ! -x "$REENC" ] && skip "Cannot find $REENC, test skipped." -which wipefs >/dev/null || skip "Cannot find wipefs, test skipped." # REENCRYPTION tests HASH1=b69dae56a14d1a8314ed40664c4033ea0a550eea2673e04df42a66ac6b9faf2c HASH2=d85ef2a08aeac2812a648deb875485a6e3848fc3d43ce4aa380937f08199f86b HASH3=e4e5749032a5163c45125eccf3e8598ba5ed840df442c97e1d5ad4ad84359605 -HASH4=2daeb1f36095b44b318410b3f4e8b5d989dcc7bb023d1426c492dab0a3053e74 echo "[1] Reencryption" -prepare 8192 +prepare 8192 echo $PWD1 | $CRYPTSETUP -q luksFormat -s 128 -c aes-cbc-plain -i 1 --align-payload 4096 $LOOPDEV1 || fail wipe $PWD1 check_hash $PWD1 $HASH1 @@ -232,15 +112,12 @@ echo $PWD1 | $REENC $LOOPDEV1 -q -i 1 || fail check_hash $PWD1 $HASH2 echo "[3] Reencryption with keyfile" -echo $PWD1 | $CRYPTSETUP -q luksFormat -d $KEY1 -c aes-cbc-essiv:sha256 -s 128 -i 1 --align-payload 4096 $LOOPDEV1 || fail +echo $PWD1 | $CRYPTSETUP -q luksFormat -d key1 -c aes-cbc-essiv:sha256 -s 128 -i 1 --align-payload 4096 $LOOPDEV1 || fail wipe check_hash "" $HASH1 -echo $PWD1 | $CRYPTSETUP -q luksAddKey -d $KEY1 $LOOPDEV1 || fail -$REENC $LOOPDEV1 -d $KEY1 -i 1 -q 2>/dev/null && fail -$REENC $LOOPDEV1 -d $KEY1 -S 0 -i 1 -q || fail +echo $PWD1 | $CRYPTSETUP -q luksAddKey -d key1 $LOOPDEV1 || fail +$REENC $LOOPDEV1 -d key1 -S 0 -i 1 -q || fail check_hash "" $HASH1 -check_slot 0 || fail "Only keyslot 0 expected to be enabled" -$REENC $LOOPDEV1 -d $KEY1 -i 1 -q || fail # FIXME echo $PWD1 | $REENC ... echo "[4] Encryption of not yet encrypted device" @@ -254,75 +131,5 @@ dmsetup remove $DEV_NAME2 || fail echo $PWD1 | $REENC $LOOPDEV1 -c aes-cbc-essiv:sha256 -s 128 --new --reduce-device-size "$OFFSET"S -q check_hash $PWD1 $HASH3 -echo "[5] Reencryption using specific keyslot" -echo $PWD2 | $CRYPTSETUP -q luksFormat -i 1 $LOOPDEV1 || fail -echo -e "$PWD2\n$PWD1" | $CRYPTSETUP -q luksAddKey -i 1 -S 1 $LOOPDEV1 || fail -echo -e "$PWD2\n$PWD2" | $CRYPTSETUP -q luksAddKey -i 1 -S 2 $LOOPDEV1 || fail -echo -e "$PWD2\n$PWD1" | $CRYPTSETUP -q luksAddKey -i 1 -S 3 $LOOPDEV1 || fail -echo -e "$PWD2\n$PWD2" | $CRYPTSETUP -q luksAddKey -i 1 -S 4 $LOOPDEV1 || fail -echo -e "$PWD2\n$PWD1" | $CRYPTSETUP -q luksAddKey -i 1 -S 5 $LOOPDEV1 || fail -echo -e "$PWD2\n$PWD2" | $CRYPTSETUP -q luksAddKey -i 1 -S 6 $LOOPDEV1 || fail -echo -e "$PWD2\n$PWD3" | $CRYPTSETUP -q luksAddKey -i 1 -S 7 $LOOPDEV1 || fail -backup_orig -echo $PWD2 | $REENC -i 1 -S 0 -q $LOOPDEV1 || fail -check_slot 0 || fail "Only keyslot 0 expected to be enabled" -wipe $PWD2 -rollback -echo $PWD1 | $REENC -i 1 -S 1 -q $LOOPDEV1 || fail -check_slot 1 || fail "Only keyslot 1 expected to be enabled" -wipe $PWD1 -rollback -echo $PWD2 | $REENC -i 1 -S 6 -q $LOOPDEV1 || fail -check_slot 6 || fail "Only keyslot 6 expected to be enabled" -wipe $PWD2 -rollback -echo $PWD3 | $REENC -i 1 -S 7 -q $LOOPDEV1 || fail -check_slot 7 || fail "Only keyslot 7 expected to be enabled" -wipe $PWD3 -rollback - -echo "[6] Reencryption using all active keyslots" -echo -e "$PWD2\n$PWD1\n$PWD2\n$PWD1\n$PWD2\n$PWD1\n$PWD2\n$PWD3" | $REENC -q $LOOPDEV1 || fail -check_slot 0 1 2 3 4 5 6 7 || fail "All keyslots expected to be enabled" - -echo "[7] Reencryption of block devices with different block size" -add_scsi_device sector_size=512 dev_size_mb=8 -simple_scsi_reenc "[512 sector]" -add_scsi_device sector_size=4096 dev_size_mb=8 -simple_scsi_reenc "[4096 sector]" -add_scsi_device sector_size=512 physblk_exp=3 dev_size_mb=8 -simple_scsi_reenc "[4096/512 sector]" -echo "[OK]" - -echo "[8] Header only reencryption (hash and iteration time)" -echo $PWD1 | $CRYPTSETUP -q luksFormat --hash sha1 $LOOPDEV1 || fail -wipe $PWD1 -check_hash $PWD1 $HASH1 -echo $PWD1 | $REENC $LOOPDEV1 -q --keep-key --hash sha256 --iter-time 1 -check_hash $PWD1 $HASH1 -echo $PWD1 | $REENC $LOOPDEV1 -q --keep-key --hash sha512 -check_hash $PWD1 $HASH1 -echo $PWD1 | $REENC $LOOPDEV1 -q --keep-key --iter-time 1 -check_hash $PWD1 $HASH1 - -echo "[9] Test log I/Os on various underlaying block devices" -prepare 8192 -echo $PWD2 | $CRYPTSETUP -q luksFormat -i 1 $LOOPDEV1 || fail -add_scsi_device sector_size=512 dev_size_mb=25 -test_logging "[512 sector]" || fail -add_scsi_device sector_size=4096 dev_size_mb=25 -test_logging "[4096 sector]" || fail -add_scsi_device sector_size=512 dev_size_mb=25 physblk_exp=3 -test_logging "[4096/512 sector]" || fail -test_logging_tmpfs || fail - -echo "[10] Removal of encryption" -prepare 8192 -echo $PWD1 | $CRYPTSETUP -q luksFormat -i 1 $LOOPDEV1 || fail -wipe $PWD1 -check_hash $PWD1 $HASH1 -echo $PWD1 | $REENC $LOOPDEV1 -q --decrypt -check_hash_dev $LOOPDEV1 $HASH4 - remove_mapping exit 0 diff --git a/tests/tcrypt-compat-test b/tests/tcrypt-compat-test index efb0e06..4195ef9 100755 --- a/tests/tcrypt-compat-test +++ b/tests/tcrypt-compat-test @@ -65,28 +65,27 @@ function test_required() } test_required -export LANG=C [ ! -d $TST_DIR ] && tar xjf tcrypt-images.tar.bz2 echo "HEADER CHECK" -for file in $(ls $TST_DIR/[tv]c_*) ; do +for file in $(ls $TST_DIR/tc_*) ; do echo -n " $file" - echo $PASSWORD | $CRYPTSETUP tcryptDump --veracrypt $file >/dev/null || fail + echo $PASSWORD | $CRYPTSETUP tcryptDump $file >/dev/null || fail echo " [OK]" done echo "HEADER CHECK (HIDDEN)" -for file in $(ls $TST_DIR/[tv]c_*-hidden) ; do +for file in $(ls $TST_DIR/tc_*-hidden) ; do echo -n " $file (hidden)" - echo $PASSWORD_HIDDEN | $CRYPTSETUP tcryptDump --tcrypt-hidden --veracrypt $file >/dev/null || fail + echo $PASSWORD_HIDDEN | $CRYPTSETUP tcryptDump --tcrypt-hidden $file >/dev/null || fail echo " [OK]" done echo "HEADER KEYFILES CHECK" -for file in $(ls $TST_DIR/[tv]ck_*) ; do +for file in $(ls $TST_DIR/tck_*) ; do echo -n " $file" - echo $PASSWORD | $CRYPTSETUP tcryptDump --veracrypt -d $TST_DIR/keyfile1 -d $TST_DIR/keyfile2 $file >/dev/null || fail + echo $PASSWORD | $CRYPTSETUP tcryptDump -d $TST_DIR/keyfile1 -d $TST_DIR/keyfile2 $file >/dev/null || fail echo " [OK]" done @@ -96,14 +95,10 @@ if [ $(id -u) != 0 ]; then exit 0 fi -echo "ACTIVATION FS UUID CHECK" -for file in $(ls $TST_DIR/[tv]c_*) ; do +echo "ACTIVATION FS UUID CHECK (LRW/XTS modes only)" +for file in $(ls $TST_DIR/tc_*-lrw-* $TST_DIR/tc_*-xts-*) ; do echo -n " $file" - out=$(echo $PASSWORD | $CRYPTSETUP tcryptOpen --veracrypt -r $file $MAP 2>&1) - ret=$? - [ $ret -eq 1 ] && ( echo "$out" | grep -q -e "TCRYPT legacy mode" ) && echo " [N/A]" && continue - [ $ret -eq 1 ] && ( echo "$out" | grep -q -e "TCRYPT compatible mapping" ) && echo " [N/A]" && continue - [ $ret -ne 0 ] && fail + echo $PASSWORD | $CRYPTSETUP tcryptOpen -r $file $MAP || fail $CRYPTSETUP status $MAP >/dev/null || fail $CRYPTSETUP status /dev/mapper/$MAP >/dev/null || fail UUID=$(lsblk -n -o UUID /dev/mapper/$MAP) @@ -112,14 +107,10 @@ for file in $(ls $TST_DIR/[tv]c_*) ; do echo " [OK]" done -echo "ACTIVATION FS UUID (HIDDEN) CHECK" -for file in $(ls $TST_DIR/[tv]c_*-hidden) ; do +echo "ACTIVATION FS UUID (HIDDEN) CHECK (LRW/XTS modes only)" +for file in $(ls $TST_DIR/tc_*-lrw-*-hidden $TST_DIR/tc_*-xts-*-hidden) ; do echo -n " $file" - out=$(echo $PASSWORD_HIDDEN | $CRYPTSETUP tcryptOpen --veracrypt -r $file $MAP --tcrypt-hidden 2>&1) - ret=$? - [ $ret -eq 1 ] && ( echo "$out" | grep -q -e "TCRYPT legacy mode" ) && echo " [N/A]" && continue - [ $ret -eq 1 ] && ( echo "$out" | grep -q -e "TCRYPT compatible mapping" ) && echo " [N/A]" && continue - [ $ret -ne 0 ] && fail + echo $PASSWORD_HIDDEN | $CRYPTSETUP tcryptOpen -r $file $MAP --tcrypt-hidden || fail UUID=$(lsblk -n -o UUID /dev/mapper/$MAP) $CRYPTSETUP remove $MAP || fail [ "$UUID" != "CAFE-BABE" ] && fail "UUID check failed." diff --git a/tests/tcrypt-images.tar.bz2 b/tests/tcrypt-images.tar.bz2 index 4ca5473..b801821 100644 Binary files a/tests/tcrypt-images.tar.bz2 and b/tests/tcrypt-images.tar.bz2 differ -- cgit v1.2.3