libheif-1.12.0/0000775000175000017500000000000014044446311010201 500000000000000libheif-1.12.0/examples/0000775000175000017500000000000014044446310012016 500000000000000libheif-1.12.0/examples/encoder.cc0000644000175000017500000000462214003350403013656 00000000000000/* libheif example application "convert". This file is part of convert, an example application using libheif. MIT License Copyright (c) 2018 struktur AG, Joachim Bauch 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include "encoder.h" static const char kMetadataTypeExif[] = "Exif"; // static bool Encoder::HasExifMetaData(const struct heif_image_handle* handle) { heif_item_id metadata_id; int count = heif_image_handle_get_list_of_metadata_block_IDs(handle, kMetadataTypeExif, &metadata_id, 1); return count > 0; } // static uint8_t* Encoder::GetExifMetaData(const struct heif_image_handle* handle, size_t* size) { heif_item_id metadata_id; int count = heif_image_handle_get_list_of_metadata_block_IDs(handle, kMetadataTypeExif, &metadata_id, 1); for (int i = 0; i < count; i++) { size_t datasize = heif_image_handle_get_metadata_size(handle, metadata_id); uint8_t* data = static_cast(malloc(datasize)); if (!data) { continue; } heif_error error = heif_image_handle_get_metadata(handle, metadata_id, data); if (error.code != heif_error_Ok) { free(data); continue; } *size = datasize; return data; } return nullptr; } libheif-1.12.0/examples/example.avif0000644000175000017500000033570414003350403014242 00000000000000ftypavifavifmif1meta@hdlrpictlibheif (1.9.1) / Rav1e encoderpitm"ilocD@#iinfinfeav01Yiprp;ipcocolrnclx av1C ispe ipmamdat qP (g`[> qAX"}EEP;4Y8WVz՞>4B&L,]F` Gxи ioS2sEJ/ p2V=вXs 4E. ?Y(bY|A]oĦ#IG] pr&jQV!6/[?jI$(%xDQzd5!xkS+ QV9of5R\or+Qt/UsyygЂ!{1YdY3Φ璙hWXsxmZXK%wcLjTH&A@f(X 0IicgtR9k1 ;l!t jYimՐL9=C=jq )wk 3.![Dl"NmM)#JJDbdM*K'lA(|"\k7-$"Bc+=PgBmPu-;t'#O11pVn7+wbQkn!eO8ic+}Z j.MEWqƄ|{4'D#H(`bd?wO>zЂyLBJ#&+z&&op%XmaT7` ȗhX[?̛ٸWLV\ o3a?j],5% Gw 1K͉ G;p>p|.u$5;9D1@*RUo( <s=.cY5qqn`?(i7M93QP4&X΄]YrR'h%=c-."j]:'c"M9gƬ ek#3-'dؒZg"~c%Ar6~`qs\/-z?:0\jstCTZz ;e4F[(\U%L zOr_=vs) #V00hɈk:R pysk4Jsp~gnHRM_+ <5Opx(-cn_ͨbP-f$qiVk8!fI;Ezp(r-'Dt-.فB uȟ1ݟ/M5`0Z&=< Y똇6jy˳,2g #Z#s;4%ѕi@TGRRЂ*2m *[ߐGAc kיD%$٦VdKЙs$pL4 Gƪ~>J7 ~Lԅ,#DOɄh@q%axxM(.s:M#ʔ3bLɔ?$'v,q65ش Lү|GF ;Qg3DGRO35.3}!g5r=@'Ϡ|frL|w]9+*1JDD%{t0|tr %9$Ҷ~RFo Z3d5QlU`Rxl:]a$LI^i-gKJRttTNC'E̺, |!HWV]P)"k!,ԏ,3RJoSYG&0oZ]=Ѱ- t%Y(nwjK^+r.z.SpϱjԽwB=1""鲯lERN`͹pȝ ^2?<O NJس _'F ,هͦA='-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͓hqƖ7Tp{K\ˆCKp߫1aFS1y|,Yو)$|}פ6p/: WԸbz~[Fۭ'=Q? ?Htܲ>$#FJW~|x,UO-+Q6I Dauhpaz |DTBwz+ nTpl홇îPp$vN.0\lp tN|Y) \q%nqa[+1~ӌGH;S[} ޳\:>ulpUr5=;U}ZH0#'tկ:bDoNrdWNY_Ԣ.E [\,IJ$',N4 .=sBڄZ@߇`& x=iG,_lCGN_'yEp%sֵLZWh[T~x}m7A#YɕYP J2o,03\KM'Yj Ml_nO %|e'2#Zjx¡>&1J Of10@=?d?sPZBfdzY O$ǘ"D=״vpA\}_ӯM0%ꇂZG>!?/Ogg[+#|mHz͚#U} v{N*E$o#8"9C'ͪW ׅhCU"OW y4Cr^Moדm|շ]P]pϺ#@ dn^H0` /ѵz.䠄vXg 7:Bi"q&&sQ@ Rn4m|'ݩY3g:RfW: "ȱD;Ͱ3hl(<:!掛B8qa8Ij`:mce,?@;A٦b6\جQWe4* 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include #include #include #include #include #include #include "encoder_png.h" PngEncoder::PngEncoder() {} bool PngEncoder::Encode(const struct heif_image_handle* handle, const struct heif_image* image, const std::string& filename) { png_structp png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr); if (!png_ptr) { fprintf(stderr, "libpng initialization failed (1)\n"); return false; } png_infop info_ptr = png_create_info_struct(png_ptr); if (!info_ptr) { png_destroy_write_struct(&png_ptr, nullptr); fprintf(stderr, "libpng initialization failed (2)\n"); return false; } FILE* fp = fopen(filename.c_str(), "wb"); if (!fp) { fprintf(stderr, "Can't open %s: %s\n", filename.c_str(), strerror(errno)); png_destroy_write_struct(&png_ptr, &info_ptr); return false; } if (setjmp(png_jmpbuf(png_ptr))) { png_destroy_write_struct(&png_ptr, &info_ptr); fclose(fp); fprintf(stderr, "Error while encoding image\n"); return false; } png_init_io(png_ptr, fp); bool withAlpha = (heif_image_get_chroma_format(image) == heif_chroma_interleaved_RGBA || heif_image_get_chroma_format(image) == heif_chroma_interleaved_RRGGBBAA_BE); int width = heif_image_get_width(image, heif_channel_interleaved); int height = heif_image_get_height(image, heif_channel_interleaved); int bitDepth; int input_bpp = heif_image_get_bits_per_pixel_range(image, heif_channel_interleaved); if (input_bpp > 8) { bitDepth = 16; } else { bitDepth = 8; } const int colorType = withAlpha ? PNG_COLOR_TYPE_RGBA : PNG_COLOR_TYPE_RGB; png_set_IHDR(png_ptr, info_ptr, width, height, bitDepth, colorType, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); size_t profile_size = heif_image_handle_get_raw_color_profile_size(handle); if (profile_size > 0) { uint8_t* profile_data = static_cast(malloc(profile_size)); heif_image_handle_get_raw_color_profile(handle, profile_data); char profile_name[] = "unknown"; png_set_iCCP(png_ptr, info_ptr, profile_name, PNG_COMPRESSION_TYPE_BASE, #if PNG_LIBPNG_VER < 10500 (png_charp)profile_data, #else (png_const_bytep) profile_data, #endif (png_uint_32) profile_size); free(profile_data); } png_write_info(png_ptr, info_ptr); uint8_t** row_pointers = new uint8_t* [height]; int stride_rgb; const uint8_t* row_rgb = heif_image_get_plane_readonly(image, heif_channel_interleaved, &stride_rgb); for (int y = 0; y < height; ++y) { row_pointers[y] = const_cast(&row_rgb[y * stride_rgb]); } if (bitDepth == 16) { // shift image data to full 16bit range int shift = 16 - input_bpp; if (shift > 0) { for (int y = 0; y < height; ++y) { for (int x = 0; x < stride_rgb; x += 2) { uint8_t* p = (&row_pointers[y][x]); int v = (p[0] << 8) | p[1]; v = (v << shift) | (v >> (16 - shift)); p[0] = (uint8_t) (v >> 8); p[1] = (uint8_t) (v & 0xFF); } } } } png_write_image(png_ptr, row_pointers); png_write_end(png_ptr, nullptr); png_destroy_write_struct(&png_ptr, &info_ptr); delete[] row_pointers; fclose(fp); return true; } libheif-1.12.0/examples/heif-test.go0000644000175000017500000001134114003350403014143 00000000000000/* Simple GO interface test program MIT License Copyright (c) 2018 struktur AG, Dirk Farin 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package main import ( "bytes" "fmt" "image" _ "image/jpeg" "image/png" "io/ioutil" "os" "path/filepath" "github.com/strukturag/libheif/go/heif" ) // ================================================== // TEST // ================================================== func savePNG(img image.Image, filename string) { var out bytes.Buffer if err := png.Encode(&out, img); err != nil { fmt.Printf("Could not encode image as PNG: %s\n", err) } else { if err := ioutil.WriteFile(filename, out.Bytes(), 0644); err != nil { fmt.Printf("Could not save PNG image as %s: %s\n", filename, err) } else { fmt.Printf("Written to %s\n", filename) } } } func testHeifHighlevel(filename string) { fmt.Printf("Performing highlevel conversion of %s\n", filename) file, err := os.Open(filename) if err != nil { fmt.Printf("Could not read file %s: %s\n", filename, err) return } defer file.Close() img, magic, err := image.Decode(file) if err != nil { fmt.Printf("Could not decode image: %s\n", err) return } fmt.Printf("Decoded image of type %s: %s\n", magic, img.Bounds()) ext := filepath.Ext(filename) outFilename := filename[0:len(filename)-len(ext)] + "_highlevel.png" savePNG(img, outFilename) } func testHeifLowlevel(filename string) { fmt.Printf("Performing lowlevel conversion of %s\n", filename) c, err := heif.NewContext() if err != nil { fmt.Printf("Could not create context: %s\n", err) return } if err := c.ReadFromFile(filename); err != nil { fmt.Printf("Could not read file %s: %s\n", filename, err) return } nImages := c.GetNumberOfTopLevelImages() fmt.Printf("Number of top level images: %v\n", nImages) ids := c.GetListOfTopLevelImageIDs() fmt.Printf("List of top level image IDs: %#v\n", ids) if pID, err := c.GetPrimaryImageID(); err != nil { fmt.Printf("Could not get primary image id: %s\n", err) } else { fmt.Printf("Primary image: %v\n", pID) } handle, err := c.GetPrimaryImageHandle() if err != nil { fmt.Printf("Could not get primary image: %s\n", err) return } fmt.Printf("Image size: %v × %v\n", handle.GetWidth(), handle.GetHeight()) img, err := handle.DecodeImage(heif.ColorspaceUndefined, heif.ChromaUndefined, nil) if err != nil { fmt.Printf("Could not decode image: %s\n", err) } else if i, err := img.GetImage(); err != nil { fmt.Printf("Could not get image: %s\n", err) } else { fmt.Printf("Rectangle: %v\n", i.Bounds()) ext := filepath.Ext(filename) outFilename := filename[0:len(filename)-len(ext)] + "_lowlevel.png" savePNG(i, outFilename) } } func testHeifEncode(filename string) { file, err := os.Open(filename) if err != nil { fmt.Printf("failed to open file %v\n", file) return } defer file.Close() i, _, err := image.Decode(file) if err != nil { fmt.Printf("failed to decode image: %v\n", err) return } const quality = 100 ctx, err := heif.EncodeFromImage(i, heif.CompressionHEVC, quality, heif.LosslessModeEnabled, heif.LoggingLevelFull) if err != nil { fmt.Printf("failed to heif encode image: %v\n", err) return } ext := filepath.Ext(filename) out := filename[0:len(filename)-len(ext)] + "_encoded.heif" if err := ctx.WriteToFile(out); err != nil { fmt.Printf("failed to write to file: %v\n", err) return } fmt.Printf("Written to %s\n", out) } func main() { fmt.Printf("libheif version: %v\n", heif.GetVersion()) if len(os.Args) < 2 { fmt.Printf("USAGE: %s \n", os.Args[0]) return } filename := os.Args[1] testHeifLowlevel(filename) fmt.Println() testHeifHighlevel(filename) fmt.Println() testHeifEncode(filename) fmt.Println("Done.") } libheif-1.12.0/examples/heif_test.cc0000644000175000017500000001147114003350404014212 00000000000000/* libheif example application "heif-test". MIT License Copyright (c) 2017 struktur AG, Dirk Farin 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #if defined(HAVE_UNISTD_H) #include #else #define STDOUT_FILENO 1 #endif #include #include #include #include #include #include static struct option long_options[] = { //{"write-raw", required_argument, 0, 'w' }, //{"output", required_argument, 0, 'o' }, {(char* const) "decode-img", required_argument, 0, 'd'}, {(char* const) "metadata", required_argument, 0, 'm'}, {0, 0, 0, 0} }; void show_help(const char* argv0) { fprintf(stderr, " heif-test libheif version: %s\n", heif_get_version()); fprintf(stderr, "------------------------------------\n"); fprintf(stderr, "usage: heif-test [options] image.heic\n"); fprintf(stderr, "\n"); fprintf(stderr, "options:\n"); fprintf(stderr, " -d, --decode-img ID decode image and output raw pixel data of all planes\n"); fprintf(stderr, " -m, --metadata ID output metadata\n"); fprintf(stderr, " -h, --help show help\n"); } std::pair parse_id_pair(std::string s) { std::string::size_type p = s.find_first_of(':'); if (p == std::string::npos) { fprintf(stderr, "id pair has to be in this format: 'ID:ID'\n"); exit(1); } std::pair pair; pair.first = atoi(s.substr(0, p).c_str()); pair.second = atoi(s.substr(p + 1).c_str()); return pair; } int main(int argc, char** argv) { std::vector image_IDs; std::vector> metadata_IDs; // first: image, second: metadata while (true) { int option_index = 0; int c = getopt_long(argc, argv, "d:m:h", long_options, &option_index); if (c == -1) break; switch (c) { case 'd': image_IDs.push_back(atoi(optarg)); break; case 'm': metadata_IDs.push_back(parse_id_pair(optarg)); break; case 'h': show_help(argv[0]); return 0; } } if (optind != argc - 1) { show_help(argv[0]); return 0; } const char* input_filename = argv[optind]; // ============================================================================== try { heif::Context ctx; ctx.read_from_file(input_filename); // --- dump images for (auto id : image_IDs) { heif::ImageHandle handle = ctx.get_image_handle(id); heif::Image img = handle.decode_image(heif_colorspace_undefined, heif_chroma_undefined); std::vector channel_candidates{ heif_channel_Y, heif_channel_Cb, heif_channel_Cr, heif_channel_R, heif_channel_G, heif_channel_B, heif_channel_Alpha, heif_channel_interleaved }; for (heif_channel channel : channel_candidates) { if (img.has_channel(channel)) { int width = img.get_width(channel); int height = img.get_height(channel); int bytes = (img.get_bits_per_pixel(channel) + 7) / 8; int stride; const uint8_t* p = img.get_plane(channel, &stride); for (int y = 0; y < height; y++) { fwrite(p + y * stride, width, bytes, stdout); } } } } // --- dump metadata for (auto idpair : metadata_IDs) { heif::ImageHandle handle = ctx.get_image_handle(idpair.first); std::vector data = handle.get_metadata(idpair.second); fwrite(data.data(), data.size(), 1, stdout); } } catch (const heif::Error& err) { std::cerr << err.get_message() << "\n"; } return 0; } libheif-1.12.0/examples/example.heic0000644000175000017500000257244214003350403014231 00000000000000ftypmif1mif1heichevcmeta!hdlrpictpitmN$XilocD@N$N%M_N&{  N' pViinfinfeN$hvc1HEVC ImageinfeN%hvc1HEVC ImageinfeN&hvc1HEVC ImageinfeN'hvc1HEVC Image(irefthmbN%N$thmbN'N&Riprp&ipco~hvcC`x @ `x@!0B`x5Yfb&d "Drb@ispeV}hvcC`< @ `<@!/B`<  yfb&d "Drb@ispe@~hvcC`x @ `x@!0B`x5Yfb&d "Drb@}hvcC`< @ `<@!/B`<  yfb&d "Drb@$ipmaN$N%N&N'mdatN, GۻUNx265 (build 79) - 1.9:[Linux][GCC 5.3.1][64 bit] 8bit+10bit+12bit - H.265/HEVC codec - Copyright 2013-2015 (c) Multicoreware Inc - http://x265.org - options: 1280x856 fps=25/1 bitdepth=8 wpp ctu=64 min-cu-size=8 max-tu-size=32 tu-intra-depth=2 tu-inter-depth=2 me=3 subme=3 merange=57 rect amp max-merge=3 temporal-mvp no-early-skip rdpenalty=0 no-tskip no-tskip-fast strong-intra-smoothing no-lossless no-cu-lossless no-constrained-intra no-fast-intra open-gop no-temporal-layers interlace=0 keyint=250 min-keyint=25 scenecut=40 rc-lookahead=30 lookahead-slices=4 bframes=8 bframe-bias=0 b-adapt=2 ref=4 limit-refs=2 limit-modes weightp weightb aq-mode=1 qg-size=32 aq-strength=1.00 cbqpoffs=0 crqpoffs=0 rd=6 psy-rd=2.00 rdoq-level=2 psy-rdoq=1.00 signhide deblock sao no-sao-non-deblock b-pyramid cutree no-intra-refresh rc=crf crf=12.0 qcomp=0.60 qpmin=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itdepth=8 wpp ctu=64 min-cu-size=8 max-tu-size=32 tu-intra-depth=2 tu-inter-depth=2 me=3 subme=3 merange=57 rect amp max-merge=3 temporal-mvp no-early-skip rdpenalty=0 no-tskip no-tskip-fast strong-intra-smoothing no-lossless no-cu-lossless no-constrained-intra no-fast-intra open-gop no-temporal-layers interlace=0 keyint=250 min-keyint=25 scenecut=40 rc-lookahead=30 lookahead-slices=0 bframes=8 bframe-bias=0 b-adapt=2 ref=4 limit-refs=2 limit-modes weightp weightb aq-mode=1 qg-size=32 aq-strength=1.00 cbqpoffs=0 crqpoffs=0 rd=6 psy-rd=2.00 rdoq-level=2 psy-rdoq=1.00 signhide deblock sao no-sao-non-deblock b-pyramid cutree no-intra-refresh rc=crf crf=12.0 qcomp=0.60 qpmin=0 qpmax=51 qpstep=4 ipratio=1.40 pbratio=1.30\&& 8ˀFXPީ]cO# -Y`x[Ln Cاr5-}ږ.C&^7J=cwroʮ" #9;o c 6E!WL0}8v¸D*NJ_#EmOZ4SYtpj4s:zTe,HJEåQowz!'ԁ-( I 8F +b6 kXVu4YxICS-ںc䝔?/$τr7H:6rXe!+j޺R*cK.qH[& v0Na+ 彖7$\Ft0NݜH9 ֪mBn ? /Z[Bpjw&gihqn˱]p߿DX=,)"m}ڒ꜠&H`Xd snGq9X+$i@ލәhUβliM6Ϥ`@'(鄍FMU$ ڳy{^ A 0ԊDՏMzܘsUjWPs)5-}"&^F/Rb(^MaؘqXlRof)"6nt12{%:4=$Ҿ;.N2iCn'tH@t-R |ov#!R0_&CdӔJrp_\o( гn]5,ZNh- W2nUbw['p j {tM6W-4/+Ner&ʍ3g0=13PLQ;뷗6 $dSR 7`LK GJLAL模$h)n ̅{pA:m &b3|tBv!b``?`ˆ~M?J}+躋$de!}\KiT䬣zR׫OrT)nL9Oa WDR^F"m nM!Tc7F Qa_&C/zQn_y^ػXc祇' `K7,DW_LM$WE̼ Lۿ^P)=rg/6RERLt'G=,G(jo1duR荎zʾ5^y' c w'8qFo3nwɏ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7;χ oxCnd⏪O 9`É(zBKm1ER:';u:x(|vF`Um7h,/sHJyl`ss1_QL`3a $|<.^F < <4SvrH}Obq]OQER(Y~sbR/4C.UgU)\Ud$=_e>0 mdatN, GۻUNx265 (build 79) - 1.9:[Linux][GCC 5.3.1][64 bit] 8bit+10bit+12bit - H.265/HEVC codec - Copyright 2013-2015 (c) Multicoreware Inc - http://x265.org - options: 1280x856 fps=25/1 bitdepth=8 wpp ctu=64 min-cu-size=8 max-tu-size=32 tu-intra-depth=2 tu-inter-depth=2 me=3 subme=3 merange=57 rect amp max-merge=3 temporal-mvp no-early-skip rdpenalty=0 no-tskip no-tskip-fast strong-intra-smoothing no-lossless no-cu-lossless no-constrained-intra no-fast-intra open-gop no-temporal-layers interlace=0 keyint=250 min-keyint=25 scenecut=40 rc-lookahead=30 lookahead-slices=4 bframes=8 bframe-bias=0 b-adapt=2 ref=4 limit-refs=2 limit-modes weightp weightb aq-mode=1 qg-size=32 aq-strength=1.00 cbqpoffs=0 crqpoffs=0 rd=6 psy-rd=2.00 rdoq-level=2 psy-rdoq=1.00 signhide deblock sao no-sao-non-deblock b-pyramid cutree no-intra-refresh rc=crf crf=12.0 qcomp=0.60 qpmin=0 qpmax=51 qpstep=4 ipratio=1.40 pbratio=1.30& u` *׊* `r/DmX[7yoS'=ӯ~Bb觻> #CpLJ$Cي[ٰ̒ Nsɋ >h`w~T)L{l}kc6=5b6.W=OVhmYý9i@.kU6g8?o$r/P אj哓' x_\r#fNi@(DZ 8.\j36 լNshque3!>$gۥ9zRȏ5٩i+,^ J+F[`p4 )8@&wh1= -l;2Vw1mRlǭ*&"4nVs"Kn3KeDq^`gS%ast~2ܸV(uUhGN.h"gퟄ$ٵBH&f;8i V^;P|k~7Aoݺrp2O:0@]1RJ^CAPФѺVRC'YP7*oʉd\<ڣ}^ sYeעkkCce*1&nsnaÂsGkZr L_Piu#&\8 0`С<]Wvp3*r,+ɞc"PJ1.| $d+IkUD:3=ylZe#=r}e>v9cvψlqyW,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*>ڻ>lh!go-$n2^ R*(EȼM3rbyۉAvƥAH[뒝i+l-x~˷:p -8FڼkFei&ŞfiVr|/Y^ؘVPx/ԫ T>k0Vpv%fTSjiotMc`i-p^~Cئi,$vQc)#l -j *^a_Í xtc5u,i].VjP࠴ݸ Eaay4?у{A &u)Q> P25˗uǕ{j'4_ PUZ)ܲ z\Q%v>Ka~P^B#8q߰Or jHl<歑𶇴9 0G*&qe M7r>uLw AJY=]Cd? áw 'S(ζ5 ҳT Hf}!xL(J@xX;OFM< h΍L8dJfPCbܫL 4>н:=j -pu0ٯGvܕ 9`D%'K4]Bhdg7S\F^a`*& [ZH(D3 hZNtšݥA~2_2G?aa8x!E %)ۖdg.|p|\Ձ⦒ h`]68"Դ1Zyn4 iei):";޼ v1̫WMlG][I!:_uWy,2d7JqA `d#bpImSYDFX$TN|3\rA [x3%$SB@ƅvLoS6O~țV9#mGUYDDŽkZs%|7nTZep6:x`D)y֔WS9$~#ͲB\.6oI dذ?FZ], V>ww:ek")Z^bREncm,y*: I )9 $^+&|br/EN'ÒCgq'k^kZn&ͼXNL.LZr3 gG#, O (E h4'pc8(y<8+$^-(QtL5 ;.àacu8s|C D\SjNkiB{3_oPeTjq)`e}gc˚"s_ u9@閑?{zV)ۧZ%; gr9%Cych@(.w}yY ۔–CnX%dNo=zyK >В>aP!6|xg·cd>(C,cѩ{YNTxs۳i3gs`'C~8B7Z,Ka)HBw|"'<Eg^R4vz)Z@-d\WPFόKQ=~- _^ܐ[Q qv7;EN;,fă bC,ϓ <=0+j jr ƿUPp^mdatN, GۻUNx265 (build 79) - 1.9:[Linux][GCC 5.3.1][64 bit] 8bit+10bit+12bit - H.265/HEVC codec - Copyright 2013-2015 (c) Multicoreware Inc - http://x265.org - options: 320x216 fps=25/1 bitdepth=8 wpp ctu=64 min-cu-size=8 max-tu-size=32 tu-intra-depth=2 tu-inter-depth=2 me=3 subme=3 merange=57 rect amp max-merge=3 temporal-mvp no-early-skip rdpenalty=0 no-tskip no-tskip-fast strong-intra-smoothing no-lossless no-cu-lossless no-constrained-intra no-fast-intra open-gop no-temporal-layers interlace=0 keyint=250 min-keyint=25 scenecut=40 rc-lookahead=30 lookahead-slices=0 bframes=8 bframe-bias=0 b-adapt=2 ref=4 limit-refs=2 limit-modes weightp weightb aq-mode=1 qg-size=32 aq-strength=1.00 cbqpoffs=0 crqpoffs=0 rd=6 psy-rd=2.00 rdoq-level=2 psy-rdoq=1.00 signhide deblock sao no-sao-non-deblock b-pyramid cutree no-intra-refresh rc=crf crf=12.0 qcomp=0.60 qpmin=0 qpmax=51 qpstep=4 ipratio=1.40 pbratio=1.30l& :X{t7o*LSK✥7 Dvl*˪7CCJɬSU^I*ħkiɶQIc Q]ieAcAG9PZ@%χ-k(ϓ=U y+*l<:Ptiz1JҨfGf=úmi~dR CX$ \)Iә5.nj0\ˌvqGV'G`Hx.%8NDC"o=7SNyreiv_賭.cR 0K?ѭ+>c_JLAVB<99\A"HLiݶ-^Rp,rjt[Kцϡ.e\Bȅ]+K"[gW=`Lli^V[ө3t${i{e9$}P1&. nV1x‚OCW{4/ȅ WxZպ>R(um5ݬگ*~+jY!zk?w\cy tr'XPHP)䫫7w a|}6rd @1xBn\gHL_CL^||z U#?0x|m <e>Wͽ6#q'u\E}9w{;br*`{dNFmSf4<6U ڛ5sV1'$TKc.GγQ&Oi-C?#62yF1՜t 1vD͚~y%QlPI6Y![yNSI9 Ev>6dE.0խL+=C\b؂>*[OvOs<[chnZ2&XPs ǩ, vJѯG$/e>P2g@Ǣrہs=|iiE3% #e)7iF.pP~Ѕ/T hS*x n)œ%ԣ% ԣX"a?G O%(bз!Qm쯯TcT;|pI)<'Y( Zbv} 2= fV]::Z'k/u^iĵd+O$۔SJ[SZd]dJkQ;eQ)`:f+cx&Ԁi6^Lza]bݭE~%s/ո(+Osv gn8.cVd%+덱[f^Dɚ/sl>\* `$]N )ҵ)arX\dC翨brȮXI[Rl 0}8.BUؕ;"c[={r5G|0N_V/uRQqEgyhu (BufY,P\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%ǾIvM<ηAuwF՜D mdatNHW_0001libheif-1.12.0/examples/heif-convert.10000644000175000017500000000162214003350403014400 00000000000000.TH HEIF-THUMBNAILER 1 .SH NAME heif-convert \- convert HEIC/HEIF image .SH SYNOPSIS .B heif-convert [\fB\-q\fR \fIQUALITY\fR] .IR filename .IR output[.jpg|.png|.y4m] .SH DESCRIPTION .B heif-convert Convert HEIC/HEIF image to a different image format. .SH OPTIONS .TP .BR \-q\fR\ \fIQUALITY\fR Defines quality level between 0 and 100 for the generated output file. .SH EXIT STATUS .PP \fB0\fR .RS 4 Success .RE .PP \fB1\fR .RS 4 Failure (syntax or usage error; error while loading, converting or writing image). .RE .SH NOTES The available output formats depend on the libraries that were available at compile time. Supported are JPEG, PNG and Y4M, the file type is determined based on the extension of the output file. .SH BUGS Please reports bugs or issues at https://github.com/strukturag/libheif .SH AUTHORS Joachim Bauch, struktur AG .br Dirk Farin, struktur AG .SH COPYRIGHT Copyright \[co] 2017 struktur AG libheif-1.12.0/examples/heif_info.cc0000664000175000017500000002543014043747772014216 00000000000000/* libheif example application "heif-info". MIT License Copyright (c) 2017 struktur AG, Dirk Farin 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #if defined(HAVE_UNISTD_H) #include #else #define STDOUT_FILENO 1 #endif #include #include #include #include #include #include /* image: 20005 (1920x1080), primary thumbnail: 20010 (320x240) alpha channel: 20012 (1920x1080) metadata: Exif image: 1920x1080 (20005), primary thumbnail: 320x240 (20010) alpha channel: 1920x1080 (20012) info *file info -w 20012 -o out.265 *file info -d // dump */ static struct option long_options[] = { //{"write-raw", required_argument, 0, 'w' }, //{"output", required_argument, 0, 'o' }, {(char* const) "dump-boxes", no_argument, 0, 'd'}, {(char* const) "help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; const char* fourcc_to_string(uint32_t fourcc) { static char fcc[5]; fcc[0] = (char) ((fourcc >> 24) & 0xFF); fcc[1] = (char) ((fourcc >> 16) & 0xFF); fcc[2] = (char) ((fourcc >> 8) & 0xFF); fcc[3] = (char) ((fourcc >> 0) & 0xFF); fcc[4] = 0; return fcc; } void show_help(const char* argv0) { fprintf(stderr, " heif-info libheif version: %s\n", heif_get_version()); fprintf(stderr, "------------------------------------\n"); fprintf(stderr, "usage: heif-info [options] image.heic\n"); fprintf(stderr, "\n"); fprintf(stderr, "options:\n"); //fprintf(stderr," -w, --write-raw ID write raw compressed data of image 'ID'\n"); //fprintf(stderr," -o, --output NAME output file name for image selected by -w\n"); fprintf(stderr, " -d, --dump-boxes show a low-level dump of all MP4 file boxes\n"); fprintf(stderr, " -h, --help show help\n"); } int main(int argc, char** argv) { bool dump_boxes = false; bool write_raw_image = false; heif_item_id raw_image_id; std::string output_filename = "output.265"; while (true) { int option_index = 0; int c = getopt_long(argc, argv, "dh", long_options, &option_index); if (c == -1) break; switch (c) { case 'd': dump_boxes = true; break; case 'h': show_help(argv[0]); return 0; case 'w': write_raw_image = true; raw_image_id = atoi(optarg); break; case 'o': output_filename = optarg; break; } } if (optind != argc - 1) { show_help(argv[0]); return 0; } (void) raw_image_id; (void) write_raw_image; const char* input_filename = argv[optind]; // ============================================================================== // show MIME type { const static int bufSize = 50; uint8_t buf[bufSize]; FILE* fh = fopen(input_filename, "rb"); if (fh) { std::cout << "MIME type: "; int n = (int) fread(buf, 1, bufSize, fh); const char* mime_type = heif_get_file_mime_type(buf, n); if (*mime_type == 0) { std::cout << "unknown\n"; } else { std::cout << mime_type << "\n"; } fclose(fh); char fourcc[5]; fourcc[4]=0; heif_brand_to_fourcc( heif_read_main_brand(buf,bufSize), fourcc ); std::cout << "main brand: " << fourcc << "\n"; heif_brand2* brands=nullptr; int nBrands=0; struct heif_error err=heif_list_compatible_brands(buf, n, &brands, &nBrands); if (err.code) { std::cerr << "error reading brands: " << err.message << "\n"; } else { std::cout << "compatible brands: "; for (int i=0;i0) { std::cout << ", "; } std::cout << fourcc; } std::cout << "\n"; heif_free_list_of_compatible_brands(brands); } } std::cout << "\n"; } // ============================================================================== std::shared_ptr ctx(heif_context_alloc(), [](heif_context* c) { heif_context_free(c); }); if (!ctx) { fprintf(stderr, "Could not create context object\n"); return 1; } struct heif_error err; err = heif_context_read_from_file(ctx.get(), input_filename, nullptr); if (dump_boxes) { heif_context_debug_dump_boxes_to_file(ctx.get(), STDOUT_FILENO); // dump to stdout return 0; } if (err.code != 0) { std::cerr << "Could not read HEIF/AVIF file: " << err.message << "\n"; return 1; } // ============================================================================== int numImages = heif_context_get_number_of_top_level_images(ctx.get()); std::vector IDs(numImages); heif_context_get_list_of_top_level_image_IDs(ctx.get(), IDs.data(), numImages); for (int i = 0; i < numImages; i++) { struct heif_image_handle* handle; struct heif_error err = heif_context_get_image_handle(ctx.get(), IDs[i], &handle); if (err.code) { std::cerr << err.message << "\n"; return 10; } int width = heif_image_handle_get_width(handle); int height = heif_image_handle_get_height(handle); int primary = heif_image_handle_is_primary_image(handle); printf("image: %dx%d (id=%d)%s\n", width, height, IDs[i], primary ? ", primary" : ""); // --- thumbnails int nThumbnails = heif_image_handle_get_number_of_thumbnails(handle); std::vector thumbnailIDs(nThumbnails); nThumbnails = heif_image_handle_get_list_of_thumbnail_IDs(handle, thumbnailIDs.data(), nThumbnails); for (int thumbnailIdx = 0; thumbnailIdx < nThumbnails; thumbnailIdx++) { heif_image_handle* thumbnail_handle; err = heif_image_handle_get_thumbnail(handle, thumbnailIDs[thumbnailIdx], &thumbnail_handle); if (err.code) { std::cerr << err.message << "\n"; return 10; } int th_width = heif_image_handle_get_width(thumbnail_handle); int th_height = heif_image_handle_get_height(thumbnail_handle); printf(" thumbnail: %dx%d\n", th_width, th_height); heif_image_handle_release(thumbnail_handle); } // --- color profile uint32_t profileType = heif_image_handle_get_color_profile_type(handle); printf(" color profile: %s\n", profileType ? fourcc_to_string(profileType) : "no"); // --- depth information bool has_depth = heif_image_handle_has_depth_image(handle); bool has_alpha = heif_image_handle_has_alpha_channel(handle); bool premultiplied_alpha = false; if (has_alpha) { premultiplied_alpha = heif_image_handle_is_premultiplied_alpha(handle); } printf(" alpha channel: %s %s\n", has_alpha ? "yes" : "no", premultiplied_alpha ? "(premultiplied)" : ""); printf(" depth channel: %s\n", has_depth ? "yes" : "no"); heif_item_id depth_id; int nDepthImages = heif_image_handle_get_list_of_depth_image_IDs(handle, &depth_id, 1); if (has_depth) { assert(nDepthImages == 1); } else { assert(nDepthImages == 0); } (void) nDepthImages; if (has_depth) { struct heif_image_handle* depth_handle; err = heif_image_handle_get_depth_image_handle(handle, depth_id, &depth_handle); if (err.code) { fprintf(stderr, "cannot get depth image: %s\n", err.message); return 1; } printf(" (%dx%d)\n", heif_image_handle_get_width(depth_handle), heif_image_handle_get_height(depth_handle)); const struct heif_depth_representation_info* depth_info; if (heif_image_handle_get_depth_image_representation_info(handle, depth_id, &depth_info)) { printf(" z-near: "); if (depth_info->has_z_near) printf("%f\n", depth_info->z_near); else printf("undefined\n"); printf(" z-far: "); if (depth_info->has_z_far) printf("%f\n", depth_info->z_far); else printf("undefined\n"); printf(" d-min: "); if (depth_info->has_d_min) printf("%f\n", depth_info->d_min); else printf("undefined\n"); printf(" d-max: "); if (depth_info->has_d_max) printf("%f\n", depth_info->d_max); else printf("undefined\n"); printf(" representation: "); switch (depth_info->depth_representation_type) { case heif_depth_representation_type_uniform_inverse_Z: printf("inverse Z\n"); break; case heif_depth_representation_type_uniform_disparity: printf("uniform disparity\n"); break; case heif_depth_representation_type_uniform_Z: printf("uniform Z\n"); break; case heif_depth_representation_type_nonuniform_disparity: printf("non-uniform disparity\n"); break; default: printf("unknown\n"); } if (depth_info->has_d_min || depth_info->has_d_max) { printf(" disparity_reference_view: %d\n", depth_info->disparity_reference_view); } heif_depth_representation_info_free(depth_info); } heif_image_handle_release(depth_handle); } heif_image_handle_release(handle); } #if 0 std::cout << "num images: " << heif_context_get_number_of_top_level_images(ctx.get()) << "\n"; struct heif_image_handle* handle; err = heif_context_get_primary_image_handle(ctx.get(), &handle); if (err.code != 0) { std::cerr << "Could not get primage image handle: " << err.message << "\n"; return 1; } struct heif_image* image; err = heif_decode_image(handle, &image, heif_colorspace_undefined, heif_chroma_undefined, NULL); if (err.code != 0) { heif_image_handle_release(handle); std::cerr << "Could not decode primage image: " << err.message << "\n"; return 1; } heif_image_release(image); heif_image_handle_release(handle); #endif return 0; } libheif-1.12.0/examples/encoder_png.h0000644000175000017500000000373714003350403014372 00000000000000/* libheif example application "convert". MIT License Copyright (c) 2017 struktur AG, Joachim Bauch 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef EXAMPLE_ENCODER_PNG_H #define EXAMPLE_ENCODER_PNG_H #include #include "encoder.h" class PngEncoder : public Encoder { public: PngEncoder(); heif_colorspace colorspace(bool has_alpha) const override { return heif_colorspace_RGB; } heif_chroma chroma(bool has_alpha, int bit_depth) const override { if (bit_depth == 8) { if (has_alpha) return heif_chroma_interleaved_RGBA; else return heif_chroma_interleaved_RGB; } else { if (has_alpha) return heif_chroma_interleaved_RRGGBBAA_BE; else return heif_chroma_interleaved_RRGGBB_BE; } } bool Encode(const struct heif_image_handle* handle, const struct heif_image* image, const std::string& filename) override; private: }; #endif // EXAMPLE_ENCODER_PNG_H libheif-1.12.0/examples/heif-info.10000644000175000017500000000122314003350403013650 00000000000000.TH HEIF-INFO 1 .SH NAME heif-info \- show information on HEIC/HEIF file .SH SYNOPSIS .B heif-info [\fB\-d\fR|\fB--dump-boxes\fR] [\fB\-h\fR|\fB--help\fR] .IR filename .SH DESCRIPTION .B heif-info Show information on HEIC/HEIF file. .SH OPTIONS .TP .BR \-d ", " \-\-dump-boxes\fR Show a low-level dump of all MP4 file boxes. .TP .BR \-help ", " \-\-help\fR Show help. .SH EXIT STATUS .PP \fB0\fR .RS 4 Success .RE .PP \fB1\fR .RS 4 Failure (syntax or usage error; error while loading image). .RE .SH BUGS Please reports bugs or issues at https://github.com/strukturag/libheif .SH AUTHORS Dirk Farin, struktur AG .SH COPYRIGHT Copyright \[co] 2017 struktur AG libheif-1.12.0/examples/heif_thumbnailer.cc0000644000175000017500000001325614003350404015550 00000000000000/* libheif thumbnailer for Gnome desktop. MIT License Copyright (c) 2018 struktur AG, Dirk Farin 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #if defined(HAVE_CONFIG_H) # include "config.h" #endif #if defined(HAVE_UNISTD_H) # include #endif #include #include #include #include #include "encoder.h" #if HAVE_LIBPNG # include "encoder_png.h" #endif #if defined(_MSC_VER) #include "getopt.h" #endif static int usage(const char* command) { fprintf(stderr, "usage: %s [-s size] [-p] \n", command); fprintf(stderr, " -p Render thumbnail from primary image, even if thumbnail is stored in image.\n"); return 1; } int main(int argc, char** argv) { int opt; int size = 512; // default thumbnail size bool thumbnail_from_primary_image_only = false; while ((opt = getopt(argc, argv, "s:hp")) != -1) { switch (opt) { case 's': size = atoi(optarg); break; case 'p': thumbnail_from_primary_image_only = true; break; case 'h': default: return usage(argv[0]); } } if (optind + 2 > argc) { // Need input and output filenames as additional arguments. return usage(argv[0]); } std::string input_filename(argv[optind++]); std::string output_filename(argv[optind++]); // --- read heif file std::shared_ptr context(heif_context_alloc(), [](heif_context* c) { heif_context_free(c); }); struct heif_error err; err = heif_context_read_from_file(context.get(), input_filename.c_str(), nullptr); if (err.code != 0) { std::cerr << "Could not read HEIF file: " << err.message << "\n"; return 1; } // --- get primary image struct heif_image_handle* image_handle = NULL; err = heif_context_get_primary_image_handle(context.get(), &image_handle); if (err.code) { std::cerr << "Could not read HEIF image : " << err.message << "\n"; return 1; } // --- if image has a thumbnail, use that instead if (!thumbnail_from_primary_image_only) { heif_item_id thumbnail_ID; int nThumbnails = heif_image_handle_get_list_of_thumbnail_IDs(image_handle, &thumbnail_ID, 1); if (nThumbnails > 0) { struct heif_image_handle* thumbnail_handle; err = heif_image_handle_get_thumbnail(image_handle, thumbnail_ID, &thumbnail_handle); if (err.code) { std::cerr << "Could not read HEIF image : " << err.message << "\n"; return 1; } // replace image handle with thumbnail handle heif_image_handle_release(image_handle); image_handle = thumbnail_handle; } } // --- decode the image (or its thumbnail) std::unique_ptr encoder(new PngEncoder()); struct heif_decoding_options* decode_options = heif_decoding_options_alloc(); encoder->UpdateDecodingOptions(image_handle, decode_options); decode_options->convert_hdr_to_8bit = true; int bit_depth = 8; struct heif_image* image = NULL; err = heif_decode_image(image_handle, &image, encoder->colorspace(false), encoder->chroma(false, bit_depth), decode_options); if (err.code) { std::cerr << "Could not decode HEIF image : " << err.message << "\n"; return 1; } assert(image); // --- compute output thumbnail size int input_width = heif_image_handle_get_width(image_handle); int input_height = heif_image_handle_get_height(image_handle); int thumbnail_width = input_width; int thumbnail_height = input_height; if (input_width > size || input_height > size) { if (input_width > input_height) { thumbnail_height = input_height * size / input_width; thumbnail_width = size; } else if (input_height > 0) { thumbnail_width = input_width * size / input_height; thumbnail_height = size; } else { thumbnail_width = thumbnail_height = 0; } // --- output thumbnail smaller than HEIF thumbnail -> scale down struct heif_image* scaled_image = NULL; err = heif_image_scale_image(image, &scaled_image, thumbnail_width, thumbnail_height, NULL); if (err.code) { std::cerr << "Could not scale image : " << err.message << "\n"; return 1; } heif_image_release(image); image = scaled_image; } // --- write thumbnail image to PNG bool written = encoder->Encode(image_handle, image, output_filename.c_str()); if (!written) { fprintf(stderr, "could not write image\n"); return 1; } heif_image_release(image); heif_image_handle_release(image_handle); return 0; } libheif-1.12.0/examples/demo.html0000644000175000017500000002706014003350403013543 00000000000000 libheif decoder demo

libheif decoder demo

Fork me on GitHub
Copyright © 2017-2018 by struktur AG
Loading, please wait...
libheif-1.12.0/examples/Makefile.in0000664000175000017500000017301314044230172014005 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ @HAVE_LIBPNG_TRUE@am__append_1 = heif-thumbnailer @HAVE_LIBPNG_TRUE@am__append_2 = heif-thumbnailer.1 @HAVE_LIBJPEG_TRUE@am__append_3 = $(libjpeg_CFLAGS) @HAVE_LIBJPEG_TRUE@am__append_4 = $(libjpeg_LIBS) @HAVE_LIBJPEG_TRUE@am__append_5 = encoder_jpeg.cc encoder_jpeg.h @HAVE_LIBPNG_TRUE@am__append_6 = $(libpng_CFLAGS) @HAVE_LIBPNG_TRUE@am__append_7 = $(libpng_LIBS) @HAVE_LIBPNG_TRUE@am__append_8 = encoder_png.cc encoder_png.h @HAVE_LIBJPEG_TRUE@am__append_9 = $(libjpeg_CFLAGS) @HAVE_LIBJPEG_TRUE@am__append_10 = $(libjpeg_LIBS) @HAVE_LIBPNG_TRUE@am__append_11 = $(libpng_CFLAGS) @HAVE_LIBPNG_TRUE@am__append_12 = $(libpng_LIBS) @HAVE_GO_TRUE@am__append_13 = \ @HAVE_GO_TRUE@ heif-test-go @WITH_EXAMPLES_TRUE@bin_PROGRAMS = $(am__EXEEXT_2) @WITH_EXAMPLES_TRUE@noinst_PROGRAMS = $(am__EXEEXT_4) subdir = examples ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_c_cxx_compile_flags.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.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/visibility.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = @HAVE_LIBPNG_TRUE@am__EXEEXT_1 = heif-thumbnailer$(EXEEXT) am__EXEEXT_2 = heif-convert$(EXEEXT) heif-enc$(EXEEXT) \ heif-info$(EXEEXT) $(am__EXEEXT_1) am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" @HAVE_GO_TRUE@am__EXEEXT_3 = heif-test-go$(EXEEXT) am__EXEEXT_4 = heif-test$(EXEEXT) test-c-api$(EXEEXT) $(am__EXEEXT_3) PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) am__heif_convert_SOURCES_DIST = encoder.cc encoder.h heif_convert.cc \ encoder_y4m.cc encoder_y4m.h encoder_jpeg.cc encoder_jpeg.h \ encoder_png.cc encoder_png.h @HAVE_LIBJPEG_TRUE@am__objects_1 = \ @HAVE_LIBJPEG_TRUE@ heif_convert-encoder_jpeg.$(OBJEXT) @HAVE_LIBPNG_TRUE@am__objects_2 = heif_convert-encoder_png.$(OBJEXT) am_heif_convert_OBJECTS = heif_convert-encoder.$(OBJEXT) \ heif_convert-heif_convert.$(OBJEXT) \ heif_convert-encoder_y4m.$(OBJEXT) $(am__objects_1) \ $(am__objects_2) heif_convert_OBJECTS = $(am_heif_convert_OBJECTS) am__DEPENDENCIES_1 = @HAVE_LIBJPEG_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) @HAVE_LIBPNG_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) 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 = heif_convert_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(heif_convert_CXXFLAGS) \ $(CXXFLAGS) $(heif_convert_LDFLAGS) $(LDFLAGS) -o $@ am_heif_enc_OBJECTS = heif_enc-heif_enc.$(OBJEXT) heif_enc_OBJECTS = $(am_heif_enc_OBJECTS) heif_enc_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(heif_enc_CXXFLAGS) \ $(CXXFLAGS) $(heif_enc_LDFLAGS) $(LDFLAGS) -o $@ am_heif_info_OBJECTS = heif_info-heif_info.$(OBJEXT) heif_info_OBJECTS = $(am_heif_info_OBJECTS) heif_info_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(heif_info_CXXFLAGS) \ $(CXXFLAGS) $(heif_info_LDFLAGS) $(LDFLAGS) -o $@ am_heif_test_OBJECTS = heif_test-heif_test.$(OBJEXT) heif_test_OBJECTS = $(am_heif_test_OBJECTS) heif_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(heif_test_CXXFLAGS) \ $(CXXFLAGS) $(heif_test_LDFLAGS) $(LDFLAGS) -o $@ am__heif_test_go_SOURCES_DIST = heif-test.go am_heif_test_go_OBJECTS = heif_test_go_OBJECTS = $(am_heif_test_go_OBJECTS) heif_test_go_LDADD = $(LDADD) am__heif_thumbnailer_SOURCES_DIST = encoder.cc encoder.h \ heif_thumbnailer.cc encoder_png.cc encoder_png.h @HAVE_LIBPNG_TRUE@am_heif_thumbnailer_OBJECTS = \ @HAVE_LIBPNG_TRUE@ heif_thumbnailer-encoder.$(OBJEXT) \ @HAVE_LIBPNG_TRUE@ heif_thumbnailer-heif_thumbnailer.$(OBJEXT) \ @HAVE_LIBPNG_TRUE@ heif_thumbnailer-encoder_png.$(OBJEXT) heif_thumbnailer_OBJECTS = $(am_heif_thumbnailer_OBJECTS) heif_thumbnailer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) \ $(heif_thumbnailer_LDFLAGS) $(LDFLAGS) -o $@ am_test_c_api_OBJECTS = test_c_api-test_c_api.$(OBJEXT) test_c_api_OBJECTS = $(am_test_c_api_OBJECTS) test_c_api_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_c_api_CFLAGS) \ $(CFLAGS) $(test_c_api_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__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/heif_convert-encoder.Po \ ./$(DEPDIR)/heif_convert-encoder_jpeg.Po \ ./$(DEPDIR)/heif_convert-encoder_png.Po \ ./$(DEPDIR)/heif_convert-encoder_y4m.Po \ ./$(DEPDIR)/heif_convert-heif_convert.Po \ ./$(DEPDIR)/heif_enc-heif_enc.Po \ ./$(DEPDIR)/heif_info-heif_info.Po \ ./$(DEPDIR)/heif_test-heif_test.Po \ ./$(DEPDIR)/heif_thumbnailer-encoder.Po \ ./$(DEPDIR)/heif_thumbnailer-encoder_png.Po \ ./$(DEPDIR)/heif_thumbnailer-heif_thumbnailer.Po \ ./$(DEPDIR)/test_c_api-test_c_api.Po 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 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(heif_convert_SOURCES) $(heif_enc_SOURCES) \ $(heif_info_SOURCES) $(heif_test_SOURCES) \ $(heif_test_go_SOURCES) $(heif_thumbnailer_SOURCES) \ $(test_c_api_SOURCES) DIST_SOURCES = $(am__heif_convert_SOURCES_DIST) $(heif_enc_SOURCES) \ $(heif_info_SOURCES) $(heif_test_SOURCES) \ $(am__heif_test_go_SOURCES_DIST) \ $(am__heif_thumbnailer_SOURCES_DIST) $(test_c_api_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 NROFF = nroff MANS = $(dist_man_MANS) am__extra_recursive_targets = format-recursive test-recursive 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__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.in \ $(top_srcdir)/depcomp COPYING 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@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_LIBFUZZER = @ENABLE_LIBFUZZER@ ENABLE_PARALLEL_TILE_DECODING = @ENABLE_PARALLEL_TILE_DECODING@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FUZZING_ENGINE = @FUZZING_ENGINE@ GO = @GO@ GREP = @GREP@ HAVE_CXX11 = @HAVE_CXX11@ HAVE_GO = @HAVE_GO@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBHEIF_AGE = @LIBHEIF_AGE@ LIBHEIF_CURRENT = @LIBHEIF_CURRENT@ LIBHEIF_REVISION = @LIBHEIF_REVISION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PROJECT_VERSION_MAJOR = @PROJECT_VERSION_MAJOR@ PROJECT_VERSION_MINOR = @PROJECT_VERSION_MINOR@ PROJECT_VERSION_PATCH = @PROJECT_VERSION_PATCH@ PROJECT_VERSION_TWEAK = @PROJECT_VERSION_TWEAK@ RANLIB = @RANLIB@ REQUIRES_PRIVATE = @REQUIRES_PRIVATE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WITH_EXAMPLES = @WITH_EXAMPLES@ 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_CXX = @ac_ct_CXX@ 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@ aom_CFLAGS = @aom_CFLAGS@ aom_LIBS = @aom_LIBS@ 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@ dav1d_CFLAGS = @dav1d_CFLAGS@ dav1d_LIBS = @dav1d_LIBS@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gdk_pixbuf_binary_version = @gdk_pixbuf_binary_version@ gdk_pixbuf_binarydir = @gdk_pixbuf_binarydir@ gdk_pixbuf_cache_file = @gdk_pixbuf_cache_file@ gdk_pixbuf_moduledir = @gdk_pixbuf_moduledir@ gdkpixbuf_CFLAGS = @gdkpixbuf_CFLAGS@ gdkpixbuf_LIBS = @gdkpixbuf_LIBS@ have_aom = @have_aom@ have_aom_decoder = @have_aom_decoder@ have_aom_encoder = @have_aom_encoder@ have_avif_decoder = @have_avif_decoder@ have_avif_encoder = @have_avif_encoder@ have_libde265 = @have_libde265@ have_rav1e = @have_rav1e@ have_x265 = @have_x265@ 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@ libde265_CFLAGS = @libde265_CFLAGS@ libde265_LIBS = @libde265_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libjpeg_CFLAGS = @libjpeg_CFLAGS@ libjpeg_LIBS = @libjpeg_LIBS@ libpng_CFLAGS = @libpng_CFLAGS@ libpng_LIBS = @libpng_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rav1e_CFLAGS = @rav1e_CFLAGS@ rav1e_LIBS = @rav1e_LIBS@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ x265_CFLAGS = @x265_CFLAGS@ x265_LIBS = @x265_LIBS@ AUTOMAKE_OPTIONS = subdir-objects examples = heif-convert heif-enc heif-info $(am__append_1) examples_noinst = heif-test test-c-api $(am__append_13) dist_man_MANS = heif-convert.1 $(am__append_2) heif-info.1 heif-enc.1 heif_convert_DEPENDENCIES = ../libheif/libheif.la heif_convert_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir)/. \ $(am__append_3) $(am__append_6) heif_convert_LDFLAGS = heif_convert_LDADD = ../libheif/libheif.la $(am__append_4) \ $(am__append_7) heif_convert_SOURCES = encoder.cc encoder.h heif_convert.cc \ encoder_y4m.cc encoder_y4m.h $(am__append_5) $(am__append_8) @HAVE_LIBPNG_TRUE@heif_thumbnailer_DEPENDENCIES = ../libheif/libheif.la @HAVE_LIBPNG_TRUE@heif_thumbnailer_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) $(libpng_CFLAGS) @HAVE_LIBPNG_TRUE@heif_thumbnailer_LDFLAGS = $(libpng_LIBS) @HAVE_LIBPNG_TRUE@heif_thumbnailer_LDADD = ../libheif/libheif.la @HAVE_LIBPNG_TRUE@heif_thumbnailer_SOURCES = encoder.cc encoder.h heif_thumbnailer.cc encoder_png.cc encoder_png.h heif_info_DEPENDENCIES = ../libheif/libheif.la heif_info_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) heif_info_LDFLAGS = heif_info_LDADD = ../libheif/libheif.la heif_info_SOURCES = heif_info.cc heif_enc_DEPENDENCIES = ../libheif/libheif.la heif_enc_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) $(am__append_9) \ $(am__append_11) heif_enc_LDFLAGS = heif_enc_LDADD = ../libheif/libheif.la $(am__append_10) \ $(am__append_12) heif_enc_SOURCES = heif_enc.cc heif_test_DEPENDENCIES = ../libheif/libheif.la heif_test_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) heif_test_LDFLAGS = heif_test_LDADD = ../libheif/libheif.la heif_test_SOURCES = heif_test.cc test_c_api_DEPENDENCIES = ../libheif/libheif.la test_c_api_CFLAGS = -I$(top_srcdir) -I$(top_builddir) test_c_api_LDFLAGS = test_c_api_LDADD = ../libheif/libheif.la test_c_api_SOURCES = test_c_api.c EXTRA_DIST = \ CMakeLists.txt \ COPYING \ demo.html \ example.avif \ example.heic @HAVE_GO_TRUE@heif_test_go_SOURCES = heif-test.go all: all-am .SUFFIXES: .SUFFIXES: .c .cc .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) --foreign examples/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign examples/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || 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)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_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 clean-noinstPROGRAMS: @list='$(noinst_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 heif-convert$(EXEEXT): $(heif_convert_OBJECTS) $(heif_convert_DEPENDENCIES) $(EXTRA_heif_convert_DEPENDENCIES) @rm -f heif-convert$(EXEEXT) $(AM_V_CXXLD)$(heif_convert_LINK) $(heif_convert_OBJECTS) $(heif_convert_LDADD) $(LIBS) heif-enc$(EXEEXT): $(heif_enc_OBJECTS) $(heif_enc_DEPENDENCIES) $(EXTRA_heif_enc_DEPENDENCIES) @rm -f heif-enc$(EXEEXT) $(AM_V_CXXLD)$(heif_enc_LINK) $(heif_enc_OBJECTS) $(heif_enc_LDADD) $(LIBS) heif-info$(EXEEXT): $(heif_info_OBJECTS) $(heif_info_DEPENDENCIES) $(EXTRA_heif_info_DEPENDENCIES) @rm -f heif-info$(EXEEXT) $(AM_V_CXXLD)$(heif_info_LINK) $(heif_info_OBJECTS) $(heif_info_LDADD) $(LIBS) heif-test$(EXEEXT): $(heif_test_OBJECTS) $(heif_test_DEPENDENCIES) $(EXTRA_heif_test_DEPENDENCIES) @rm -f heif-test$(EXEEXT) $(AM_V_CXXLD)$(heif_test_LINK) $(heif_test_OBJECTS) $(heif_test_LDADD) $(LIBS) @HAVE_GO_FALSE@heif-test-go$(EXEEXT): $(heif_test_go_OBJECTS) $(heif_test_go_DEPENDENCIES) $(EXTRA_heif_test_go_DEPENDENCIES) @HAVE_GO_FALSE@ @rm -f heif-test-go$(EXEEXT) @HAVE_GO_FALSE@ $(AM_V_CCLD)$(LINK) $(heif_test_go_OBJECTS) $(heif_test_go_LDADD) $(LIBS) heif-thumbnailer$(EXEEXT): $(heif_thumbnailer_OBJECTS) $(heif_thumbnailer_DEPENDENCIES) $(EXTRA_heif_thumbnailer_DEPENDENCIES) @rm -f heif-thumbnailer$(EXEEXT) $(AM_V_CXXLD)$(heif_thumbnailer_LINK) $(heif_thumbnailer_OBJECTS) $(heif_thumbnailer_LDADD) $(LIBS) test-c-api$(EXEEXT): $(test_c_api_OBJECTS) $(test_c_api_DEPENDENCIES) $(EXTRA_test_c_api_DEPENDENCIES) @rm -f test-c-api$(EXEEXT) $(AM_V_CCLD)$(test_c_api_LINK) $(test_c_api_OBJECTS) $(test_c_api_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_convert-encoder.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_convert-encoder_jpeg.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_convert-encoder_png.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_convert-encoder_y4m.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_convert-heif_convert.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_enc-heif_enc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_info-heif_info.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_test-heif_test.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_thumbnailer-encoder.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_thumbnailer-encoder_png.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_thumbnailer-heif_thumbnailer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_c_api-test_c_api.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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 $@ $< test_c_api-test_c_api.o: test_c_api.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_c_api_CFLAGS) $(CFLAGS) -MT test_c_api-test_c_api.o -MD -MP -MF $(DEPDIR)/test_c_api-test_c_api.Tpo -c -o test_c_api-test_c_api.o `test -f 'test_c_api.c' || echo '$(srcdir)/'`test_c_api.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_c_api-test_c_api.Tpo $(DEPDIR)/test_c_api-test_c_api.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test_c_api.c' object='test_c_api-test_c_api.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) $(test_c_api_CFLAGS) $(CFLAGS) -c -o test_c_api-test_c_api.o `test -f 'test_c_api.c' || echo '$(srcdir)/'`test_c_api.c test_c_api-test_c_api.obj: test_c_api.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_c_api_CFLAGS) $(CFLAGS) -MT test_c_api-test_c_api.obj -MD -MP -MF $(DEPDIR)/test_c_api-test_c_api.Tpo -c -o test_c_api-test_c_api.obj `if test -f 'test_c_api.c'; then $(CYGPATH_W) 'test_c_api.c'; else $(CYGPATH_W) '$(srcdir)/test_c_api.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_c_api-test_c_api.Tpo $(DEPDIR)/test_c_api-test_c_api.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test_c_api.c' object='test_c_api-test_c_api.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) $(test_c_api_CFLAGS) $(CFLAGS) -c -o test_c_api-test_c_api.obj `if test -f 'test_c_api.c'; then $(CYGPATH_W) 'test_c_api.c'; else $(CYGPATH_W) '$(srcdir)/test_c_api.c'; fi` .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< heif_convert-encoder.o: encoder.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -MT heif_convert-encoder.o -MD -MP -MF $(DEPDIR)/heif_convert-encoder.Tpo -c -o heif_convert-encoder.o `test -f 'encoder.cc' || echo '$(srcdir)/'`encoder.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_convert-encoder.Tpo $(DEPDIR)/heif_convert-encoder.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder.cc' object='heif_convert-encoder.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -c -o heif_convert-encoder.o `test -f 'encoder.cc' || echo '$(srcdir)/'`encoder.cc heif_convert-encoder.obj: encoder.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -MT heif_convert-encoder.obj -MD -MP -MF $(DEPDIR)/heif_convert-encoder.Tpo -c -o heif_convert-encoder.obj `if test -f 'encoder.cc'; then $(CYGPATH_W) 'encoder.cc'; else $(CYGPATH_W) '$(srcdir)/encoder.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_convert-encoder.Tpo $(DEPDIR)/heif_convert-encoder.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder.cc' object='heif_convert-encoder.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -c -o heif_convert-encoder.obj `if test -f 'encoder.cc'; then $(CYGPATH_W) 'encoder.cc'; else $(CYGPATH_W) '$(srcdir)/encoder.cc'; fi` heif_convert-heif_convert.o: heif_convert.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -MT heif_convert-heif_convert.o -MD -MP -MF $(DEPDIR)/heif_convert-heif_convert.Tpo -c -o heif_convert-heif_convert.o `test -f 'heif_convert.cc' || echo '$(srcdir)/'`heif_convert.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_convert-heif_convert.Tpo $(DEPDIR)/heif_convert-heif_convert.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_convert.cc' object='heif_convert-heif_convert.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -c -o heif_convert-heif_convert.o `test -f 'heif_convert.cc' || echo '$(srcdir)/'`heif_convert.cc heif_convert-heif_convert.obj: heif_convert.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -MT heif_convert-heif_convert.obj -MD -MP -MF $(DEPDIR)/heif_convert-heif_convert.Tpo -c -o heif_convert-heif_convert.obj `if test -f 'heif_convert.cc'; then $(CYGPATH_W) 'heif_convert.cc'; else $(CYGPATH_W) '$(srcdir)/heif_convert.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_convert-heif_convert.Tpo $(DEPDIR)/heif_convert-heif_convert.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_convert.cc' object='heif_convert-heif_convert.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -c -o heif_convert-heif_convert.obj `if test -f 'heif_convert.cc'; then $(CYGPATH_W) 'heif_convert.cc'; else $(CYGPATH_W) '$(srcdir)/heif_convert.cc'; fi` heif_convert-encoder_y4m.o: encoder_y4m.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -MT heif_convert-encoder_y4m.o -MD -MP -MF $(DEPDIR)/heif_convert-encoder_y4m.Tpo -c -o heif_convert-encoder_y4m.o `test -f 'encoder_y4m.cc' || echo '$(srcdir)/'`encoder_y4m.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_convert-encoder_y4m.Tpo $(DEPDIR)/heif_convert-encoder_y4m.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder_y4m.cc' object='heif_convert-encoder_y4m.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -c -o heif_convert-encoder_y4m.o `test -f 'encoder_y4m.cc' || echo '$(srcdir)/'`encoder_y4m.cc heif_convert-encoder_y4m.obj: encoder_y4m.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -MT heif_convert-encoder_y4m.obj -MD -MP -MF $(DEPDIR)/heif_convert-encoder_y4m.Tpo -c -o heif_convert-encoder_y4m.obj `if test -f 'encoder_y4m.cc'; then $(CYGPATH_W) 'encoder_y4m.cc'; else $(CYGPATH_W) '$(srcdir)/encoder_y4m.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_convert-encoder_y4m.Tpo $(DEPDIR)/heif_convert-encoder_y4m.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder_y4m.cc' object='heif_convert-encoder_y4m.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -c -o heif_convert-encoder_y4m.obj `if test -f 'encoder_y4m.cc'; then $(CYGPATH_W) 'encoder_y4m.cc'; else $(CYGPATH_W) '$(srcdir)/encoder_y4m.cc'; fi` heif_convert-encoder_jpeg.o: encoder_jpeg.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -MT heif_convert-encoder_jpeg.o -MD -MP -MF $(DEPDIR)/heif_convert-encoder_jpeg.Tpo -c -o heif_convert-encoder_jpeg.o `test -f 'encoder_jpeg.cc' || echo '$(srcdir)/'`encoder_jpeg.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_convert-encoder_jpeg.Tpo $(DEPDIR)/heif_convert-encoder_jpeg.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder_jpeg.cc' object='heif_convert-encoder_jpeg.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -c -o heif_convert-encoder_jpeg.o `test -f 'encoder_jpeg.cc' || echo '$(srcdir)/'`encoder_jpeg.cc heif_convert-encoder_jpeg.obj: encoder_jpeg.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -MT heif_convert-encoder_jpeg.obj -MD -MP -MF $(DEPDIR)/heif_convert-encoder_jpeg.Tpo -c -o heif_convert-encoder_jpeg.obj `if test -f 'encoder_jpeg.cc'; then $(CYGPATH_W) 'encoder_jpeg.cc'; else $(CYGPATH_W) '$(srcdir)/encoder_jpeg.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_convert-encoder_jpeg.Tpo $(DEPDIR)/heif_convert-encoder_jpeg.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder_jpeg.cc' object='heif_convert-encoder_jpeg.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -c -o heif_convert-encoder_jpeg.obj `if test -f 'encoder_jpeg.cc'; then $(CYGPATH_W) 'encoder_jpeg.cc'; else $(CYGPATH_W) '$(srcdir)/encoder_jpeg.cc'; fi` heif_convert-encoder_png.o: encoder_png.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -MT heif_convert-encoder_png.o -MD -MP -MF $(DEPDIR)/heif_convert-encoder_png.Tpo -c -o heif_convert-encoder_png.o `test -f 'encoder_png.cc' || echo '$(srcdir)/'`encoder_png.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_convert-encoder_png.Tpo $(DEPDIR)/heif_convert-encoder_png.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder_png.cc' object='heif_convert-encoder_png.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -c -o heif_convert-encoder_png.o `test -f 'encoder_png.cc' || echo '$(srcdir)/'`encoder_png.cc heif_convert-encoder_png.obj: encoder_png.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -MT heif_convert-encoder_png.obj -MD -MP -MF $(DEPDIR)/heif_convert-encoder_png.Tpo -c -o heif_convert-encoder_png.obj `if test -f 'encoder_png.cc'; then $(CYGPATH_W) 'encoder_png.cc'; else $(CYGPATH_W) '$(srcdir)/encoder_png.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_convert-encoder_png.Tpo $(DEPDIR)/heif_convert-encoder_png.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder_png.cc' object='heif_convert-encoder_png.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_convert_CXXFLAGS) $(CXXFLAGS) -c -o heif_convert-encoder_png.obj `if test -f 'encoder_png.cc'; then $(CYGPATH_W) 'encoder_png.cc'; else $(CYGPATH_W) '$(srcdir)/encoder_png.cc'; fi` heif_enc-heif_enc.o: heif_enc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_enc_CXXFLAGS) $(CXXFLAGS) -MT heif_enc-heif_enc.o -MD -MP -MF $(DEPDIR)/heif_enc-heif_enc.Tpo -c -o heif_enc-heif_enc.o `test -f 'heif_enc.cc' || echo '$(srcdir)/'`heif_enc.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_enc-heif_enc.Tpo $(DEPDIR)/heif_enc-heif_enc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_enc.cc' object='heif_enc-heif_enc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_enc_CXXFLAGS) $(CXXFLAGS) -c -o heif_enc-heif_enc.o `test -f 'heif_enc.cc' || echo '$(srcdir)/'`heif_enc.cc heif_enc-heif_enc.obj: heif_enc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_enc_CXXFLAGS) $(CXXFLAGS) -MT heif_enc-heif_enc.obj -MD -MP -MF $(DEPDIR)/heif_enc-heif_enc.Tpo -c -o heif_enc-heif_enc.obj `if test -f 'heif_enc.cc'; then $(CYGPATH_W) 'heif_enc.cc'; else $(CYGPATH_W) '$(srcdir)/heif_enc.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_enc-heif_enc.Tpo $(DEPDIR)/heif_enc-heif_enc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_enc.cc' object='heif_enc-heif_enc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_enc_CXXFLAGS) $(CXXFLAGS) -c -o heif_enc-heif_enc.obj `if test -f 'heif_enc.cc'; then $(CYGPATH_W) 'heif_enc.cc'; else $(CYGPATH_W) '$(srcdir)/heif_enc.cc'; fi` heif_info-heif_info.o: heif_info.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_info_CXXFLAGS) $(CXXFLAGS) -MT heif_info-heif_info.o -MD -MP -MF $(DEPDIR)/heif_info-heif_info.Tpo -c -o heif_info-heif_info.o `test -f 'heif_info.cc' || echo '$(srcdir)/'`heif_info.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_info-heif_info.Tpo $(DEPDIR)/heif_info-heif_info.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_info.cc' object='heif_info-heif_info.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_info_CXXFLAGS) $(CXXFLAGS) -c -o heif_info-heif_info.o `test -f 'heif_info.cc' || echo '$(srcdir)/'`heif_info.cc heif_info-heif_info.obj: heif_info.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_info_CXXFLAGS) $(CXXFLAGS) -MT heif_info-heif_info.obj -MD -MP -MF $(DEPDIR)/heif_info-heif_info.Tpo -c -o heif_info-heif_info.obj `if test -f 'heif_info.cc'; then $(CYGPATH_W) 'heif_info.cc'; else $(CYGPATH_W) '$(srcdir)/heif_info.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_info-heif_info.Tpo $(DEPDIR)/heif_info-heif_info.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_info.cc' object='heif_info-heif_info.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_info_CXXFLAGS) $(CXXFLAGS) -c -o heif_info-heif_info.obj `if test -f 'heif_info.cc'; then $(CYGPATH_W) 'heif_info.cc'; else $(CYGPATH_W) '$(srcdir)/heif_info.cc'; fi` heif_test-heif_test.o: heif_test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_test_CXXFLAGS) $(CXXFLAGS) -MT heif_test-heif_test.o -MD -MP -MF $(DEPDIR)/heif_test-heif_test.Tpo -c -o heif_test-heif_test.o `test -f 'heif_test.cc' || echo '$(srcdir)/'`heif_test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_test-heif_test.Tpo $(DEPDIR)/heif_test-heif_test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_test.cc' object='heif_test-heif_test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_test_CXXFLAGS) $(CXXFLAGS) -c -o heif_test-heif_test.o `test -f 'heif_test.cc' || echo '$(srcdir)/'`heif_test.cc heif_test-heif_test.obj: heif_test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_test_CXXFLAGS) $(CXXFLAGS) -MT heif_test-heif_test.obj -MD -MP -MF $(DEPDIR)/heif_test-heif_test.Tpo -c -o heif_test-heif_test.obj `if test -f 'heif_test.cc'; then $(CYGPATH_W) 'heif_test.cc'; else $(CYGPATH_W) '$(srcdir)/heif_test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_test-heif_test.Tpo $(DEPDIR)/heif_test-heif_test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_test.cc' object='heif_test-heif_test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_test_CXXFLAGS) $(CXXFLAGS) -c -o heif_test-heif_test.obj `if test -f 'heif_test.cc'; then $(CYGPATH_W) 'heif_test.cc'; else $(CYGPATH_W) '$(srcdir)/heif_test.cc'; fi` heif_thumbnailer-encoder.o: encoder.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -MT heif_thumbnailer-encoder.o -MD -MP -MF $(DEPDIR)/heif_thumbnailer-encoder.Tpo -c -o heif_thumbnailer-encoder.o `test -f 'encoder.cc' || echo '$(srcdir)/'`encoder.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_thumbnailer-encoder.Tpo $(DEPDIR)/heif_thumbnailer-encoder.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder.cc' object='heif_thumbnailer-encoder.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -c -o heif_thumbnailer-encoder.o `test -f 'encoder.cc' || echo '$(srcdir)/'`encoder.cc heif_thumbnailer-encoder.obj: encoder.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -MT heif_thumbnailer-encoder.obj -MD -MP -MF $(DEPDIR)/heif_thumbnailer-encoder.Tpo -c -o heif_thumbnailer-encoder.obj `if test -f 'encoder.cc'; then $(CYGPATH_W) 'encoder.cc'; else $(CYGPATH_W) '$(srcdir)/encoder.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_thumbnailer-encoder.Tpo $(DEPDIR)/heif_thumbnailer-encoder.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder.cc' object='heif_thumbnailer-encoder.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -c -o heif_thumbnailer-encoder.obj `if test -f 'encoder.cc'; then $(CYGPATH_W) 'encoder.cc'; else $(CYGPATH_W) '$(srcdir)/encoder.cc'; fi` heif_thumbnailer-heif_thumbnailer.o: heif_thumbnailer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -MT heif_thumbnailer-heif_thumbnailer.o -MD -MP -MF $(DEPDIR)/heif_thumbnailer-heif_thumbnailer.Tpo -c -o heif_thumbnailer-heif_thumbnailer.o `test -f 'heif_thumbnailer.cc' || echo '$(srcdir)/'`heif_thumbnailer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_thumbnailer-heif_thumbnailer.Tpo $(DEPDIR)/heif_thumbnailer-heif_thumbnailer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_thumbnailer.cc' object='heif_thumbnailer-heif_thumbnailer.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -c -o heif_thumbnailer-heif_thumbnailer.o `test -f 'heif_thumbnailer.cc' || echo '$(srcdir)/'`heif_thumbnailer.cc heif_thumbnailer-heif_thumbnailer.obj: heif_thumbnailer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -MT heif_thumbnailer-heif_thumbnailer.obj -MD -MP -MF $(DEPDIR)/heif_thumbnailer-heif_thumbnailer.Tpo -c -o heif_thumbnailer-heif_thumbnailer.obj `if test -f 'heif_thumbnailer.cc'; then $(CYGPATH_W) 'heif_thumbnailer.cc'; else $(CYGPATH_W) '$(srcdir)/heif_thumbnailer.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_thumbnailer-heif_thumbnailer.Tpo $(DEPDIR)/heif_thumbnailer-heif_thumbnailer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_thumbnailer.cc' object='heif_thumbnailer-heif_thumbnailer.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -c -o heif_thumbnailer-heif_thumbnailer.obj `if test -f 'heif_thumbnailer.cc'; then $(CYGPATH_W) 'heif_thumbnailer.cc'; else $(CYGPATH_W) '$(srcdir)/heif_thumbnailer.cc'; fi` heif_thumbnailer-encoder_png.o: encoder_png.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -MT heif_thumbnailer-encoder_png.o -MD -MP -MF $(DEPDIR)/heif_thumbnailer-encoder_png.Tpo -c -o heif_thumbnailer-encoder_png.o `test -f 'encoder_png.cc' || echo '$(srcdir)/'`encoder_png.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_thumbnailer-encoder_png.Tpo $(DEPDIR)/heif_thumbnailer-encoder_png.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder_png.cc' object='heif_thumbnailer-encoder_png.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -c -o heif_thumbnailer-encoder_png.o `test -f 'encoder_png.cc' || echo '$(srcdir)/'`encoder_png.cc heif_thumbnailer-encoder_png.obj: encoder_png.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -MT heif_thumbnailer-encoder_png.obj -MD -MP -MF $(DEPDIR)/heif_thumbnailer-encoder_png.Tpo -c -o heif_thumbnailer-encoder_png.obj `if test -f 'encoder_png.cc'; then $(CYGPATH_W) 'encoder_png.cc'; else $(CYGPATH_W) '$(srcdir)/encoder_png.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_thumbnailer-encoder_png.Tpo $(DEPDIR)/heif_thumbnailer-encoder_png.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder_png.cc' object='heif_thumbnailer-encoder_png.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_thumbnailer_CXXFLAGS) $(CXXFLAGS) -c -o heif_thumbnailer-encoder_png.obj `if test -f 'encoder_png.cc'; then $(CYGPATH_W) 'encoder_png.cc'; else $(CYGPATH_W) '$(srcdir)/encoder_png.cc'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(dist_man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(dist_man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) format-local: test-local: ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(MANS) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/heif_convert-encoder.Po -rm -f ./$(DEPDIR)/heif_convert-encoder_jpeg.Po -rm -f ./$(DEPDIR)/heif_convert-encoder_png.Po -rm -f ./$(DEPDIR)/heif_convert-encoder_y4m.Po -rm -f ./$(DEPDIR)/heif_convert-heif_convert.Po -rm -f ./$(DEPDIR)/heif_enc-heif_enc.Po -rm -f ./$(DEPDIR)/heif_info-heif_info.Po -rm -f ./$(DEPDIR)/heif_test-heif_test.Po -rm -f ./$(DEPDIR)/heif_thumbnailer-encoder.Po -rm -f ./$(DEPDIR)/heif_thumbnailer-encoder_png.Po -rm -f ./$(DEPDIR)/heif_thumbnailer-heif_thumbnailer.Po -rm -f ./$(DEPDIR)/test_c_api-test_c_api.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: format: format-am format-am: format-local 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-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/heif_convert-encoder.Po -rm -f ./$(DEPDIR)/heif_convert-encoder_jpeg.Po -rm -f ./$(DEPDIR)/heif_convert-encoder_png.Po -rm -f ./$(DEPDIR)/heif_convert-encoder_y4m.Po -rm -f ./$(DEPDIR)/heif_convert-heif_convert.Po -rm -f ./$(DEPDIR)/heif_enc-heif_enc.Po -rm -f ./$(DEPDIR)/heif_info-heif_info.Po -rm -f ./$(DEPDIR)/heif_test-heif_test.Po -rm -f ./$(DEPDIR)/heif_thumbnailer-encoder.Po -rm -f ./$(DEPDIR)/heif_thumbnailer-encoder_png.Po -rm -f ./$(DEPDIR)/heif_thumbnailer-heif_thumbnailer.Po -rm -f ./$(DEPDIR)/test_c_api-test_c_api.Po -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: test: test-am test-am: test-local uninstall-am: uninstall-binPROGRAMS uninstall-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic clean-libtool \ clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am format-am format-local html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-man1 \ 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 test-am test-local uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-man \ uninstall-man1 .PRECIOUS: Makefile @HAVE_GO_TRUE@gopath: @HAVE_GO_TRUE@ mkdir -p ${CURDIR}/src/github.com/strukturag/libheif @HAVE_GO_TRUE@ ln -sf ${CURDIR}/../go ${CURDIR}/src/github.com/strukturag/libheif/ @HAVE_GO_TRUE@heif-test-go: gopath $(top_builddir)/libheif/libheif.la $(top_builddir)/libheif.pc heif-test.go @HAVE_GO_TRUE@ GOPATH=${CURDIR} PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:$(abs_top_builddir):$(abs_top_builddir)/libde265/dist/lib/pkgconfig/ CGO_CFLAGS="-I$(abs_top_builddir)" CGO_LDFLAGS="-L$(abs_top_builddir)/libheif/.libs" LD_LIBRARY_PATH=$(abs_top_builddir)/libheif/.libs $(GO) build -o heif-test-go ${heif_test_go_SOURCES} @HAVE_GO_TRUE@format-go: ${heif_test_go_SOURCES} @HAVE_GO_TRUE@ $(GO) fmt ${heif_test_go_SOURCES} @HAVE_GO_FALSE@format-go: @HAVE_GO_FALSE@ echo ""go" not present in "${PATH}", skipping formatting" format-local: format-go # 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: libheif-1.12.0/examples/heif_convert.cc0000664000175000017500000002670714026071653014740 00000000000000/* libheif example application "convert". MIT License Copyright (c) 2017 struktur AG, Joachim Bauch 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #if defined(HAVE_UNISTD_H) #include #endif #include #include #include #include #include #include #include #include #include "encoder.h" #if HAVE_LIBJPEG #include "encoder_jpeg.h" #endif #if HAVE_LIBPNG #include "encoder_png.h" #endif #include "encoder_y4m.h" #if defined(__MINGW32__) || defined(__MINGW64__) || defined(_MSC_VER) #include "getopt.h" #endif #define UNUSED(x) (void)x static int usage(const char* command) { fprintf(stderr, "USAGE: %s [-q quality 0..100] \n", command); return 1; } class ContextReleaser { public: ContextReleaser(struct heif_context* ctx) : ctx_(ctx) {} ~ContextReleaser() { heif_context_free(ctx_); } private: struct heif_context* ctx_; }; int main(int argc, char** argv) { int opt; int quality = -1; // Use default quality. UNUSED(quality); // The quality will only be used by encoders that support it. while ((opt = getopt(argc, argv, "q:")) != -1) { switch (opt) { case 'q': quality = atoi(optarg); break; default: /* '?' */ return usage(argv[0]); } } if (optind + 2 > argc) { // Need input and output filenames as additional arguments. return usage(argv[0]); } std::string input_filename(argv[optind++]); std::string output_filename(argv[optind++]); std::unique_ptr encoder; size_t dot_pos = output_filename.rfind('.'); if (dot_pos != std::string::npos) { std::string suffix_lowercase = output_filename.substr(dot_pos + 1); std::transform(suffix_lowercase.begin(), suffix_lowercase.end(), suffix_lowercase.begin(), ::tolower); if (suffix_lowercase == "jpg" || suffix_lowercase == "jpeg") { #if HAVE_LIBJPEG static const int kDefaultJpegQuality = 90; if (quality == -1) { quality = kDefaultJpegQuality; } encoder.reset(new JpegEncoder(quality)); #else fprintf(stderr, "JPEG support has not been compiled in.\n"); return 1; #endif // HAVE_LIBJPEG } if (suffix_lowercase == "png") { #if HAVE_LIBPNG encoder.reset(new PngEncoder()); #else fprintf(stderr, "PNG support has not been compiled in.\n"); return 1; #endif // HAVE_LIBPNG } if (suffix_lowercase == "y4m") { encoder.reset(new Y4MEncoder()); } } if (!encoder) { fprintf(stderr, "Unknown file type in %s\n", output_filename.c_str()); return 1; } // --- check whether input is a supported HEIF file // TODO: when we are reading from named pipes, we probably should not consume any bytes // just for file-type checking. // TODO: check, whether reading from named pipes works at all. std::ifstream istr(input_filename.c_str(), std::ios_base::binary); uint8_t magic[12]; istr.read((char*) magic, 12); enum heif_filetype_result filetype_check = heif_check_filetype(magic, 12); if (filetype_check == heif_filetype_no) { fprintf(stderr, "Input file is not an HEIF/AVIF file\n"); return 1; } if (filetype_check == heif_filetype_yes_unsupported) { fprintf(stderr, "Input file is an unsupported HEIF/AVIF file type\n"); return 1; } // --- read the HEIF file struct heif_context* ctx = heif_context_alloc(); if (!ctx) { fprintf(stderr, "Could not create context object\n"); return 1; } ContextReleaser cr(ctx); struct heif_error err; err = heif_context_read_from_file(ctx, input_filename.c_str(), nullptr); if (err.code != 0) { std::cerr << "Could not read HEIF/AVIF file: " << err.message << "\n"; return 1; } int num_images = heif_context_get_number_of_top_level_images(ctx); if (num_images == 0) { fprintf(stderr, "File doesn't contain any images\n"); return 1; } printf("File contains %d images\n", num_images); std::vector image_IDs(num_images); num_images = heif_context_get_list_of_top_level_image_IDs(ctx, image_IDs.data(), num_images); std::string filename; size_t image_index = 1; // Image filenames are "1" based. for (int idx = 0; idx < num_images; ++idx) { if (num_images > 1) { std::ostringstream s; s << output_filename.substr(0, output_filename.find_last_of('.')); s << "-" << image_index; s << output_filename.substr(output_filename.find_last_of('.')); filename.assign(s.str()); } else { filename.assign(output_filename); } struct heif_image_handle* handle; err = heif_context_get_image_handle(ctx, image_IDs[idx], &handle); if (err.code) { std::cerr << "Could not read HEIF/AVIF image " << idx << ": " << err.message << "\n"; return 1; } int has_alpha = heif_image_handle_has_alpha_channel(handle); struct heif_decoding_options* decode_options = heif_decoding_options_alloc(); encoder->UpdateDecodingOptions(handle, decode_options); int bit_depth = heif_image_handle_get_luma_bits_per_pixel(handle); if (bit_depth < 0) { heif_decoding_options_free(decode_options); heif_image_handle_release(handle); std::cerr << "Input image has undefined bit-depth\n"; return 1; } struct heif_image* image; err = heif_decode_image(handle, &image, encoder->colorspace(has_alpha), encoder->chroma(has_alpha, bit_depth), decode_options); heif_decoding_options_free(decode_options); if (err.code) { heif_image_handle_release(handle); std::cerr << "Could not decode image: " << idx << ": " << err.message << "\n"; return 1; } if (image) { bool written = encoder->Encode(handle, image, filename); if (!written) { fprintf(stderr, "could not write image\n"); } else { printf("Written to %s\n", filename.c_str()); } heif_image_release(image); int has_depth = heif_image_handle_has_depth_image(handle); if (has_depth) { heif_item_id depth_id; int nDepthImages = heif_image_handle_get_list_of_depth_image_IDs(handle, &depth_id, 1); assert(nDepthImages == 1); (void) nDepthImages; struct heif_image_handle* depth_handle; err = heif_image_handle_get_depth_image_handle(handle, depth_id, &depth_handle); if (err.code) { heif_image_handle_release(handle); std::cerr << "Could not read depth channel\n"; return 1; } int depth_bit_depth = heif_image_handle_get_luma_bits_per_pixel(depth_handle); struct heif_image* depth_image; err = heif_decode_image(depth_handle, &depth_image, encoder->colorspace(false), encoder->chroma(false, depth_bit_depth), nullptr); if (err.code) { heif_image_handle_release(depth_handle); heif_image_handle_release(handle); std::cerr << "Could not decode depth image: " << err.message << "\n"; return 1; } std::ostringstream s; s << output_filename.substr(0, output_filename.find('.')); s << "-depth"; s << output_filename.substr(output_filename.find('.')); written = encoder->Encode(depth_handle, depth_image, s.str()); if (!written) { fprintf(stderr, "could not write depth image\n"); } else { printf("Depth image written to %s\n", s.str().c_str()); } heif_image_release(depth_image); heif_image_handle_release(depth_handle); } // --- aux images int nAuxImages = heif_image_handle_get_number_of_auxiliary_images(handle, LIBHEIF_AUX_IMAGE_FILTER_OMIT_ALPHA | LIBHEIF_AUX_IMAGE_FILTER_OMIT_DEPTH); if (nAuxImages>0) { std::vector auxIDs(nAuxImages); heif_image_handle_get_list_of_auxiliary_image_IDs(handle, LIBHEIF_AUX_IMAGE_FILTER_OMIT_ALPHA | LIBHEIF_AUX_IMAGE_FILTER_OMIT_DEPTH, auxIDs.data(), nAuxImages); for (heif_item_id auxId : auxIDs) { struct heif_image_handle* aux_handle; err = heif_image_handle_get_auxiliary_image_handle(handle, auxId, &aux_handle); if (err.code) { heif_image_handle_release(handle); std::cerr << "Could not read auxiliary image\n"; return 1; } int aux_bit_depth = heif_image_handle_get_luma_bits_per_pixel(aux_handle); struct heif_image* aux_image; err = heif_decode_image(aux_handle, &aux_image, encoder->colorspace(false), encoder->chroma(false, aux_bit_depth), nullptr); if (err.code) { heif_image_handle_release(aux_handle); heif_image_handle_release(handle); std::cerr << "Could not decode auxiliary image: " << err.message << "\n"; return 1; } const char* auxTypeC = nullptr; err = heif_image_handle_get_auxiliary_type(aux_handle, &auxTypeC); if (err.code) { heif_image_handle_release(aux_handle); heif_image_handle_release(handle); std::cerr << "Could not get type of auxiliary image: " << err.message << "\n"; return 1; } std::string auxType = std::string(auxTypeC); heif_image_handle_free_auxiliary_types(aux_handle, &auxTypeC); std::ostringstream s; s << output_filename.substr(0, output_filename.find('.')); s << "-" + auxType; s << output_filename.substr(output_filename.find('.')); written = encoder->Encode(aux_handle, aux_image, s.str()); if (!written) { fprintf(stderr, "could not write auxiliary image\n"); } else { printf("Auxiliary image written to %s\n", s.str().c_str()); } heif_image_release(aux_image); heif_image_handle_release(aux_handle); } } heif_image_handle_release(handle); } image_index++; } return 0; } libheif-1.12.0/examples/Makefile.am0000644000175000017500000000616614044230146013777 00000000000000AUTOMAKE_OPTIONS = subdir-objects examples = \ heif-convert \ heif-enc \ heif-info examples_noinst = \ heif-test \ test-c-api dist_man_MANS = heif_convert_DEPENDENCIES = ../libheif/libheif.la heif_convert_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir)/. heif_convert_LDFLAGS = heif_convert_LDADD = ../libheif/libheif.la heif_convert_SOURCES = encoder.cc encoder.h heif_convert.cc encoder_y4m.cc encoder_y4m.h dist_man_MANS += heif-convert.1 if HAVE_LIBPNG examples += heif-thumbnailer heif_thumbnailer_DEPENDENCIES = ../libheif/libheif.la heif_thumbnailer_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) $(libpng_CFLAGS) heif_thumbnailer_LDFLAGS = $(libpng_LIBS) heif_thumbnailer_LDADD = ../libheif/libheif.la heif_thumbnailer_SOURCES = encoder.cc encoder.h heif_thumbnailer.cc encoder_png.cc encoder_png.h dist_man_MANS += heif-thumbnailer.1 endif if HAVE_LIBJPEG heif_convert_CXXFLAGS += $(libjpeg_CFLAGS) heif_convert_LDADD += $(libjpeg_LIBS) heif_convert_SOURCES += encoder_jpeg.cc encoder_jpeg.h endif if HAVE_LIBPNG heif_convert_CXXFLAGS += $(libpng_CFLAGS) heif_convert_LDADD += $(libpng_LIBS) heif_convert_SOURCES += encoder_png.cc encoder_png.h endif heif_info_DEPENDENCIES = ../libheif/libheif.la heif_info_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) heif_info_LDFLAGS = heif_info_LDADD = ../libheif/libheif.la heif_info_SOURCES = heif_info.cc dist_man_MANS += heif-info.1 heif_enc_DEPENDENCIES = ../libheif/libheif.la heif_enc_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) heif_enc_LDFLAGS = heif_enc_LDADD = ../libheif/libheif.la heif_enc_SOURCES = heif_enc.cc dist_man_MANS += heif-enc.1 if HAVE_LIBJPEG heif_enc_CXXFLAGS += $(libjpeg_CFLAGS) heif_enc_LDADD += $(libjpeg_LIBS) endif if HAVE_LIBPNG heif_enc_CXXFLAGS += $(libpng_CFLAGS) heif_enc_LDADD += $(libpng_LIBS) endif heif_test_DEPENDENCIES = ../libheif/libheif.la heif_test_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) heif_test_LDFLAGS = heif_test_LDADD = ../libheif/libheif.la heif_test_SOURCES = heif_test.cc test_c_api_DEPENDENCIES = ../libheif/libheif.la test_c_api_CFLAGS = -I$(top_srcdir) -I$(top_builddir) test_c_api_LDFLAGS = test_c_api_LDADD = ../libheif/libheif.la test_c_api_SOURCES = test_c_api.c EXTRA_DIST = \ CMakeLists.txt \ COPYING \ demo.html \ example.avif \ example.heic if HAVE_GO examples_noinst += \ heif-test-go heif_test_go_SOURCES = heif-test.go gopath: mkdir -p ${CURDIR}/src/github.com/strukturag/libheif ln -sf ${CURDIR}/../go ${CURDIR}/src/github.com/strukturag/libheif/ heif-test-go: gopath $(top_builddir)/libheif/libheif.la $(top_builddir)/libheif.pc heif-test.go GOPATH=${CURDIR} PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:$(abs_top_builddir):$(abs_top_builddir)/libde265/dist/lib/pkgconfig/ CGO_CFLAGS="-I$(abs_top_builddir)" CGO_LDFLAGS="-L$(abs_top_builddir)/libheif/.libs" LD_LIBRARY_PATH=$(abs_top_builddir)/libheif/.libs $(GO) build -o heif-test-go ${heif_test_go_SOURCES} format-go: ${heif_test_go_SOURCES} $(GO) fmt ${heif_test_go_SOURCES} else format-go: echo ""go" not present in "${PATH}", skipping formatting" endif if WITH_EXAMPLES bin_PROGRAMS = $(examples) noinst_PROGRAMS = $(examples_noinst) endif format-local: format-go libheif-1.12.0/examples/encoder_y4m.h0000644000175000017500000000354414003350403014313 00000000000000/* libheif example application "convert". MIT License Copyright (c) 2019 struktur AG, Dirk Farin 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef EXAMPLE_ENCODER_Y4M_H #define EXAMPLE_ENCODER_Y4M_H #include #include "encoder.h" class Y4MEncoder : public Encoder { public: Y4MEncoder(); heif_colorspace colorspace(bool has_alpha) const override { return heif_colorspace_YCbCr; } heif_chroma chroma(bool has_alpha, int bit_depth) const override { return heif_chroma_420; } void UpdateDecodingOptions(const struct heif_image_handle* handle, struct heif_decoding_options* options) const override; bool Encode(const struct heif_image_handle* handle, const struct heif_image* image, const std::string& filename) override; private: }; #endif // EXAMPLE_ENCODER_Y4M_H libheif-1.12.0/examples/CMakeLists.txt0000664000175000017500000000717714043747772014531 00000000000000# Needed to find libheif/heif_version.h while compiling the library include_directories(${libheif_BINARY_DIR} ${libheif_SOURCE_DIR}) set (heif_convert_sources encoder.cc encoder.h encoder_y4m.cc encoder_y4m.h heif_convert.cc ) set (additional_link_directories) set (additional_libraries) set (additional_includes) include (${CMAKE_ROOT}/Modules/FindJPEG.cmake) if(JPEG_FOUND) add_definitions(-DHAVE_LIBJPEG=1) include_directories(SYSTEM ${JPEG_INCLUDE_DIR}) include (${CMAKE_ROOT}/Modules/CheckCXXSourceCompiles.cmake) set(CMAKE_REQUIRED_LIBRARIES ${JPEG_LIBRARIES}) # while the docs say JPEG_INCLUDE_DIRS, my FindJPEG.cmake script returns it in JPEG_INCLUDE_DIR set(CMAKE_REQUIRED_INCLUDES ${JPEG_INCLUDE_DIRS} ${JPEG_INCLUDE_DIR}) check_cxx_source_compiles(" #include #include #include int main() { jpeg_write_icc_profile(NULL, NULL, 0); return 0; } " HAVE_JPEG_WRITE_ICC_PROFILE) if(HAVE_JPEG_WRITE_ICC_PROFILE) add_definitions(-DHAVE_JPEG_WRITE_ICC_PROFILE=1) endif() set (heif_convert_sources ${heif_convert_sources} encoder_jpeg.cc encoder_jpeg.h ) set (additional_libraries ${additional_libraries} ${JPEG_LIBRARIES} ) set (additional_includes ${additional_includes} ${JPEG_INCLUDE_DIRS} ${JPEG_INCLUDE_DIR} ) endif() if(UNIX OR MINGW) include (${CMAKE_ROOT}/Modules/FindPkgConfig.cmake) pkg_check_modules (LIBPNG libpng) if(LIBPNG_FOUND) add_definitions(-DHAVE_LIBPNG=1) set (heif_convert_sources ${heif_convert_sources} encoder_png.cc encoder_png.h ) set (additional_link_directories ${additional_link_directories} ${LIBPNG_LIBRARY_DIRS} ) set (additional_libraries ${additional_libraries} ${LIBPNG_LINK_LIBRARIES} ${LIBPNG_LIBRARIES} ) set (additional_includes ${additional_includes} ${LIBPNG_INCLUDE_DIRS} ) endif() endif() set (heif_info_sources heif_info.cc ) set (heif_enc_sources heif_enc.cc ) set (heif_test_sources heif_test.cc ) if(MSVC) set (getopt_sources ../extra/getopt.c ../extra/getopt.h ../extra/getopt_long.c ) include_directories ("../extra") endif() add_executable (heif-convert ${heif_convert_sources} ${getopt_sources}) target_link_directories (heif-convert PRIVATE ${additional_link_directories}) target_link_libraries (heif-convert heif ${additional_libraries}) target_include_directories(heif-convert PRIVATE ${additional_includes}) install(TARGETS heif-convert RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) add_executable (heif-info ${heif_info_sources} ${getopt_sources}) target_link_libraries (heif-info heif) install(TARGETS heif-info RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) add_executable (heif-enc ${heif_enc_sources} ${getopt_sources}) target_link_directories (heif-enc PRIVATE ${additional_link_directories}) target_link_libraries (heif-enc heif ${additional_libraries}) target_include_directories(heif-enc PRIVATE ${additional_includes}) install(TARGETS heif-enc RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) add_executable (heif-test ${heif_test_sources} ${getopt_sources}) target_link_libraries (heif-test heif) if(LIBPNG_FOUND) set (heif_thumbnailer_sources encoder.cc encoder.h heif_thumbnailer.cc encoder_png.cc encoder_png.h ) add_executable (heif-thumbnailer ${heif_thumbnailer_sources}) target_link_directories (heif-thumbnailer PRIVATE ${LIBPNG_LIBRARY_DIRS}) target_link_libraries (heif-thumbnailer heif ${LIBPNG_LINK_LIBRARIES} ${LIBPNG_LIBRARIES}) target_include_directories(heif-thumbnailer PRIVATE ${LIBPNG_INCLUDE_DIRS}) install(TARGETS heif-thumbnailer RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() libheif-1.12.0/examples/heif-thumbnailer.10000644000175000017500000000134014003350404015230 00000000000000.TH HEIF-THUMBNAILER 1 .SH NAME heif-thumbnailer \- create thumbnails from HEIC/HEIF files .SH SYNOPSIS .B heif-thumbnailer [\fB\-s\fR \fISIZE\fR] .IR filename .IR output .SH DESCRIPTION .B heif-thumbnailer Create thumbnail images from HEIC/HEIF files that can be used for example by Nautilus. .SH OPTIONS .TP .BR \-s\fR\ \fISIZE\fR Defines the maximum width and height of the thumbnail to generate. Default is 512 pixel. .SH EXIT STATUS .PP \fB0\fR .RS 4 Success .RE .PP \fB1\fR .RS 4 Failure (syntax or usage error; error while loading, converting or writing image). .RE .SH BUGS Please reports bugs or issues at https://github.com/strukturag/libheif .SH AUTHORS Dirk Farin, struktur AG .SH COPYRIGHT Copyright \[co] 2018 struktur AG libheif-1.12.0/examples/encoder_jpeg.cc0000664000175000017500000001751014005755472014706 00000000000000/* libheif example application "convert". MIT License Copyright (c) 2017 struktur AG, Joachim Bauch 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include "encoder_jpeg.h" JpegEncoder::JpegEncoder(int quality) : quality_(quality) { if (quality_ < 0 || quality_ > 100) { quality_ = kDefaultQuality; } } void JpegEncoder::UpdateDecodingOptions(const struct heif_image_handle* handle, struct heif_decoding_options* options) const { if (HasExifMetaData(handle)) { options->ignore_transformations = 1; } options->convert_hdr_to_8bit = 1; } // static void JpegEncoder::OnJpegError(j_common_ptr cinfo) { ErrorHandler* handler = reinterpret_cast(cinfo->err); longjmp(handler->setjmp_buffer, 1); } #if !defined(HAVE_JPEG_WRITE_ICC_PROFILE) #define ICC_MARKER (JPEG_APP0 + 2) /* JPEG marker code for ICC */ #define ICC_OVERHEAD_LEN 14 /* size of non-profile data in APP2 */ #define MAX_BYTES_IN_MARKER 65533 /* maximum data len of a JPEG marker */ #define MAX_DATA_BYTES_IN_MARKER (MAX_BYTES_IN_MARKER - ICC_OVERHEAD_LEN) /* * This routine writes the given ICC profile data into a JPEG file. It *must* * be called AFTER calling jpeg_start_compress() and BEFORE the first call to * jpeg_write_scanlines(). (This ordering ensures that the APP2 marker(s) will * appear after the SOI and JFIF or Adobe markers, but before all else.) */ /* This function is copied almost as is from libjpeg-turbo */ static void jpeg_write_icc_profile(j_compress_ptr cinfo, const JOCTET* icc_data_ptr, unsigned int icc_data_len) { unsigned int num_markers; /* total number of markers we'll write */ int cur_marker = 1; /* per spec, counting starts at 1 */ unsigned int length; /* number of bytes to write in this marker */ /* Calculate the number of markers we'll need, rounding up of course */ num_markers = icc_data_len / MAX_DATA_BYTES_IN_MARKER; if (num_markers * MAX_DATA_BYTES_IN_MARKER != icc_data_len) num_markers++; while (icc_data_len > 0) { /* length of profile to put in this marker */ length = icc_data_len; if (length > MAX_DATA_BYTES_IN_MARKER) length = MAX_DATA_BYTES_IN_MARKER; icc_data_len -= length; /* Write the JPEG marker header (APP2 code and marker length) */ jpeg_write_m_header(cinfo, ICC_MARKER, (unsigned int) (length + ICC_OVERHEAD_LEN)); /* Write the marker identifying string "ICC_PROFILE" (null-terminated). We * code it in this less-than-transparent way so that the code works even if * the local character set is not ASCII. */ jpeg_write_m_byte(cinfo, 0x49); jpeg_write_m_byte(cinfo, 0x43); jpeg_write_m_byte(cinfo, 0x43); jpeg_write_m_byte(cinfo, 0x5F); jpeg_write_m_byte(cinfo, 0x50); jpeg_write_m_byte(cinfo, 0x52); jpeg_write_m_byte(cinfo, 0x4F); jpeg_write_m_byte(cinfo, 0x46); jpeg_write_m_byte(cinfo, 0x49); jpeg_write_m_byte(cinfo, 0x4C); jpeg_write_m_byte(cinfo, 0x45); jpeg_write_m_byte(cinfo, 0x0); /* Add the sequencing info */ jpeg_write_m_byte(cinfo, cur_marker); jpeg_write_m_byte(cinfo, (int) num_markers); /* Add the profile data */ while (length--) { jpeg_write_m_byte(cinfo, *icc_data_ptr); icc_data_ptr++; } cur_marker++; } } #endif // !defined(HAVE_JPEG_WRITE_ICC_PROFILE) bool JpegEncoder::Encode(const struct heif_image_handle* handle, const struct heif_image* image, const std::string& filename) { FILE* fp = fopen(filename.c_str(), "wb"); if (!fp) { fprintf(stderr, "Can't open %s: %s\n", filename.c_str(), strerror(errno)); return false; } struct jpeg_compress_struct cinfo; struct ErrorHandler jerr; cinfo.err = jpeg_std_error(reinterpret_cast(&jerr)); jerr.pub.error_exit = &JpegEncoder::OnJpegError; if (setjmp(jerr.setjmp_buffer)) { cinfo.err->output_message(reinterpret_cast(&cinfo)); jpeg_destroy_compress(&cinfo); fclose(fp); return false; } jpeg_create_compress(&cinfo); jpeg_stdio_dest(&cinfo, fp); cinfo.image_width = heif_image_get_width(image, heif_channel_Y); cinfo.image_height = heif_image_get_height(image, heif_channel_Y); cinfo.input_components = 3; cinfo.in_color_space = JCS_YCbCr; jpeg_set_defaults(&cinfo); static const boolean kForceBaseline = TRUE; jpeg_set_quality(&cinfo, quality_, kForceBaseline); static const boolean kWriteAllTables = TRUE; jpeg_start_compress(&cinfo, kWriteAllTables); size_t exifsize = 0; uint8_t* exifdata = GetExifMetaData(handle, &exifsize); if (exifdata && exifsize > 4) { static const uint8_t kExifMarker = JPEG_APP0 + 1; jpeg_write_marker(&cinfo, kExifMarker, exifdata + 4, static_cast(exifsize - 4)); free(exifdata); } size_t profile_size = heif_image_handle_get_raw_color_profile_size(handle); if (profile_size > 0) { uint8_t* profile_data = static_cast(malloc(profile_size)); heif_image_handle_get_raw_color_profile(handle, profile_data); jpeg_write_icc_profile(&cinfo, profile_data, (unsigned int) profile_size); free(profile_data); } if (heif_image_get_bits_per_pixel(image, heif_channel_Y) != 8) { fprintf(stderr, "JPEG writer cannot handle image with >8 bpp.\n"); return false; } int stride_y; const uint8_t* row_y = heif_image_get_plane_readonly(image, heif_channel_Y, &stride_y); int stride_u; const uint8_t* row_u = heif_image_get_plane_readonly(image, heif_channel_Cb, &stride_u); int stride_v; const uint8_t* row_v = heif_image_get_plane_readonly(image, heif_channel_Cr, &stride_v); JSAMPARRAY buffer = cinfo.mem->alloc_sarray( reinterpret_cast(&cinfo), JPOOL_IMAGE, cinfo.image_width * cinfo.input_components, 1); JSAMPROW row[1] = {buffer[0]}; while (cinfo.next_scanline < cinfo.image_height) { size_t offset_y = cinfo.next_scanline * stride_y; const uint8_t* start_y = &row_y[offset_y]; size_t offset_u = (cinfo.next_scanline / 2) * stride_u; const uint8_t* start_u = &row_u[offset_u]; size_t offset_v = (cinfo.next_scanline / 2) * stride_v; const uint8_t* start_v = &row_v[offset_v]; JOCTET* bufp = buffer[0]; for (JDIMENSION x = 0; x < cinfo.image_width; ++x) { *bufp++ = start_y[x]; *bufp++ = start_u[x / 2]; *bufp++ = start_v[x / 2]; } jpeg_write_scanlines(&cinfo, row, 1); } jpeg_finish_compress(&cinfo); fclose(fp); jpeg_destroy_compress(&cinfo); return true; } libheif-1.12.0/examples/heif-enc.10000644000175000017500000000455714003350403013477 00000000000000.TH HEIF-ENC 1 .SH NAME heif-enc \- convert image to HEIC/HEIF .SH SYNOPSIS .B heif-enc [\fB\-h\fR|\fB--help\fR] [\fB\-q\fR \fIQUALITY\fR|\fB--quality\fR \fIQUALITY\fR] [\fB\-L\fR|\fB--lossless\fR] [\fB\-t\fR \fISIZE\fR|\fB--thumb\fR \fISIZE\fR] [\fB--no-alpha\fR] [\fB--no-thumb-alpha\fR] [\fB\-o\fR \fIFILENAME\fR|\fB--output\fR \fIFILENAME\fR] [\fB\-v\fR|\fB--verbose\fR] [\fB\-P\fR|\fB--params\fR] [\fB\-b\fR \fIDEPTH\fR] [\fB\-p\fR \fINAME\fR\fB=\fR\fIVALUE\fR] .IR filename[.jpg|.png|.y4m] .SH DESCRIPTION .B heif-enc Convert image to HEIC/HEIF. .SH OPTIONS .TP .BR \-q\fR\ \fIQUALITY\fR ", " \-\-quality\fR\ \fIQUALITY\fR Defines quality level between 0 and 100 for the generated output file. .TP .BR \-L ", "\-\-lossless\fR Generate lossless output (\fB-q\fR has no effect) .TP .BR \-t\fR\ \fISIZE\fR ", " \-\-thumb\fR\ \fISIZE\fR Generate thumbnail with maximum size \fISIZE\fR pixels (default: off). .TP .BR \-\-no-alpha\fR Do not save alpha channel. .TP .BR \-\-no-thumb-alpha\fR Do not save alpha channel in thumbnail image. .TP .BR \-o\fR\ \fIFILENAME\fR ", " \-\-output\fR\ \fIFILENAME\fR Output filename (optional). .TP .BR \-v ", "\-\-verbose\fR Enable logging output (more \fB\-v\fR will increase logging level). .TP .BR \-P ", "\-\-params\fR Show all encoder parameters. .TP .BR \-b\fR\ \fIDEPTH\fR Bit-depth of generated HEIF file when using 16-bit PNG input (default: 10 bit). .TP .BR \-p\fR\ \fINAME\fR\fB=\fR\fIVALUE\fR Set additional encoder parameters. See \fBNOTES\fR below. .SH EXIT STATUS .PP \fB0\fR .RS 4 Success .RE .PP \fB1\fR .RS 4 Failure (syntax or usage error; error while loading, converting or writing image). .RE .SH NOTES The available input formats depend on the libraries that were available at compile time. Supported are JPEG, PNG and Y4M, the file type is determined based on the extension of the input file. When specifying multiple source images, they will all be saved into the same HEIF file. When using the x265 encoder, you may pass it any of its parameters by prefixing the parameter name with \fBx265:\fR. Hence, to set the \fBctu\fR parameter, you will have to set \fBx265:ctu\fR in libheif (e.g.: \fB-p x265:ctu=64\fR). Note that there is no checking for valid parameters when using the prefix. .SH BUGS Please reports bugs or issues at https://github.com/strukturag/libheif .SH AUTHORS Dirk Farin, struktur AG .SH COPYRIGHT Copyright \[co] 2017 struktur AG libheif-1.12.0/examples/heif_enc.cc0000664000175000017500000012200314043747772014022 00000000000000/* libheif example application "heif". MIT License Copyright (c) 2017 struktur AG, Dirk Farin 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include #include #include #include #include #include #if HAVE_LIBJPEG extern "C" { // Prevent duplicate definition for libjpeg-turbo v2.0 // Note: these 'undef's are only a workaround for a libjpeg-turbo-v2.0 bug and // should be removed again later. Bug has been fixed in libjpeg-turbo-v2.0.1. #include #if defined(LIBJPEG_TURBO_VERSION_NUMBER) && LIBJPEG_TURBO_VERSION_NUMBER == 2000000 #undef HAVE_STDDEF_H #undef HAVE_STDLIB_H #endif #include } #endif #if HAVE_LIBPNG extern "C" { #include } #endif #include #define JPEG_ICC_MARKER (JPEG_APP0+2) /* JPEG marker code for ICC */ #define JPEG_ICC_OVERHEAD_LEN 14 /* size of non-profile data in APP2 */ int master_alpha = 1; int thumb_alpha = 1; int list_encoders = 0; int two_colr_boxes = 0; int premultiplied_alpha = 0; const char* encoderId = nullptr; int nclx_matrix_coefficients = 6; int nclx_colour_primaries = 2; int nclx_transfer_characteristic = 2; int nclx_full_range = true; const int OPTION_NCLX_MATRIX_COEFFICIENTS = 1000; const int OPTION_NCLX_COLOUR_PRIMARIES = 1001; const int OPTION_NCLX_TRANSFER_CHARACTERISTIC = 1002; const int OPTION_NCLX_FULL_RANGE_FLAG = 1003; static struct option long_options[] = { {(char* const) "help", no_argument, 0, 'h'}, {(char* const) "quality", required_argument, 0, 'q'}, {(char* const) "output", required_argument, 0, 'o'}, {(char* const) "lossless", no_argument, 0, 'L'}, {(char* const) "thumb", required_argument, 0, 't'}, {(char* const) "verbose", no_argument, 0, 'v'}, {(char* const) "params", no_argument, 0, 'P'}, {(char* const) "no-alpha", no_argument, &master_alpha, 0}, {(char* const) "no-thumb-alpha", no_argument, &thumb_alpha, 0}, {(char* const) "list-encoders", no_argument, &list_encoders, 1}, {(char* const) "encoder", no_argument, 0, 'e'}, {(char* const) "bit-depth", required_argument, 0, 'b'}, {(char* const) "even-size", no_argument, 0, 'E'}, {(char* const) "avif", no_argument, 0, 'A'}, {(char* const) "matrix_coefficients", required_argument, 0, OPTION_NCLX_MATRIX_COEFFICIENTS}, {(char* const) "colour_primaries", required_argument, 0, OPTION_NCLX_COLOUR_PRIMARIES}, {(char* const) "transfer_characteristic", required_argument, 0, OPTION_NCLX_TRANSFER_CHARACTERISTIC}, {(char* const) "full_range_flag", required_argument, 0, OPTION_NCLX_FULL_RANGE_FLAG}, {(char* const) "enable-two-colr-boxes", no_argument, &two_colr_boxes, 1}, {(char* const) "premultiplied-alpha", no_argument, &premultiplied_alpha, 1}, {0, 0, 0, 0} }; void show_help(const char* argv0) { std::cerr << " heif-enc libheif version: " << heif_get_version() << "\n" << "----------------------------------------\n" << "Usage: heif-enc [options] image.jpeg ...\n" << "\n" << "When specifying multiple source images, they will all be saved into the same HEIF/AVIF file.\n" << "\n" << "When using the x265 encoder, you may pass it any of its parameters by\n" << "prefixing the parameter name with 'x265:'. Hence, to set the 'ctu' parameter,\n" << "you will have to set 'x265:ctu' in libheif (e.g.: -p x265:ctu=64).\n" << "Note that there is no checking for valid parameters when using the prefix.\n" << "\n" << "Options:\n" << " -h, --help show help\n" << " -q, --quality set output quality (0-100) for lossy compression\n" << " -L, --lossless generate lossless output (-q has no effect)\n" << " -t, --thumb # generate thumbnail with maximum size # (default: off)\n" << " --no-alpha do not save alpha channel\n" << " --no-thumb-alpha do not save alpha channel in thumbnail image\n" << " -o, --output output filename (optional)\n" << " -v, --verbose enable logging output (more -v will increase logging level)\n" << " -P, --params show all encoder parameters\n" << " -b, --bit-depth # bit-depth of generated HEIF/AVIF file when using 16-bit PNG input (default: 10 bit)\n" << " -p set encoder parameter (NAME=VALUE)\n" << " -A, --avif encode as AVIF\n" << " --list-encoders list all available encoders for the selected output format\n" << " -e, --encoder ID select encoder to use (the IDs can be listed with --list-encoders)\n" << " -E, --even-size [deprecated] crop images to even width and height (odd sizes are not decoded correctly by some software)\n" << " --matrix_coefficients nclx profile: color conversion matrix coefficients, default=6 (see h.273)\n" << " --colour_primaries nclx profile: color primaries (see h.273)\n" << " --transfer_characteristic nclx profile: transfer characteristics (see h.273)\n" << " --full_range_flag nclx profile: full range flag, default: 1\n" << " --enable-two-colr-boxes will write both an ICC and an nclx color profile if both a present\n" << " --premultiplied-alpha input image has premultiplied alpha\n" << "\n" << "Note: to get lossless encoding, you need this set of options:\n" << " -L switch encoder to lossless mode\n" << " -p chroma=444 switch off color subsampling\n" << " --matrix_coefficients=0 encode in RGB color-space\n"; } #if HAVE_LIBJPEG static bool JPEGMarkerIsIcc(jpeg_saved_marker_ptr marker) { return marker->marker == JPEG_ICC_MARKER && marker->data_length >= JPEG_ICC_OVERHEAD_LEN && /* verify the identifying string */ GETJOCTET(marker->data[0]) == 0x49 && GETJOCTET(marker->data[1]) == 0x43 && GETJOCTET(marker->data[2]) == 0x43 && GETJOCTET(marker->data[3]) == 0x5F && GETJOCTET(marker->data[4]) == 0x50 && GETJOCTET(marker->data[5]) == 0x52 && GETJOCTET(marker->data[6]) == 0x4F && GETJOCTET(marker->data[7]) == 0x46 && GETJOCTET(marker->data[8]) == 0x49 && GETJOCTET(marker->data[9]) == 0x4C && GETJOCTET(marker->data[10]) == 0x45 && GETJOCTET(marker->data[11]) == 0x0; } boolean ReadICCProfileFromJPEG(j_decompress_ptr cinfo, JOCTET** icc_data_ptr, unsigned int* icc_data_len) { jpeg_saved_marker_ptr marker; int num_markers = 0; int seq_no; JOCTET* icc_data; unsigned int total_length; #define MAX_SEQ_NO 255 /* sufficient since marker numbers are bytes */ char marker_present[MAX_SEQ_NO + 1]; /* 1 if marker found */ unsigned int data_length[MAX_SEQ_NO + 1]; /* size of profile data in marker */ unsigned int data_offset[MAX_SEQ_NO + 1]; /* offset for data in marker */ *icc_data_ptr = NULL; /* avoid confusion if FALSE return */ *icc_data_len = 0; /* This first pass over the saved markers discovers whether there are * any ICC markers and verifies the consistency of the marker numbering. */ for (seq_no = 1; seq_no <= MAX_SEQ_NO; seq_no++) marker_present[seq_no] = 0; for (marker = cinfo->marker_list; marker != NULL; marker = marker->next) { if (JPEGMarkerIsIcc(marker)) { if (num_markers == 0) num_markers = GETJOCTET(marker->data[13]); else if (num_markers != GETJOCTET(marker->data[13])) return FALSE; /* inconsistent num_markers fields */ seq_no = GETJOCTET(marker->data[12]); if (seq_no <= 0 || seq_no > num_markers) return FALSE; /* bogus sequence number */ if (marker_present[seq_no]) return FALSE; /* duplicate sequence numbers */ marker_present[seq_no] = 1; data_length[seq_no] = marker->data_length - JPEG_ICC_OVERHEAD_LEN; } } if (num_markers == 0) return FALSE; /* Check for missing markers, count total space needed, * compute offset of each marker's part of the data. */ total_length = 0; for (seq_no = 1; seq_no <= num_markers; seq_no++) { if (marker_present[seq_no] == 0) return FALSE; /* missing sequence number */ data_offset[seq_no] = total_length; total_length += data_length[seq_no]; } if (total_length <= 0) return FALSE; /* found only empty markers? */ /* Allocate space for assembled data */ icc_data = (JOCTET*) malloc(total_length * sizeof(JOCTET)); if (icc_data == NULL) return FALSE; /* oops, out of memory */ /* and fill it in */ for (marker = cinfo->marker_list; marker != NULL; marker = marker->next) { if (JPEGMarkerIsIcc(marker)) { JOCTET FAR* src_ptr; JOCTET* dst_ptr; unsigned int length; seq_no = GETJOCTET(marker->data[12]); dst_ptr = icc_data + data_offset[seq_no]; src_ptr = marker->data + JPEG_ICC_OVERHEAD_LEN; length = data_length[seq_no]; while (length--) { *dst_ptr++ = *src_ptr++; } } } *icc_data_ptr = icc_data; *icc_data_len = total_length; return TRUE; } std::shared_ptr loadJPEG(const char* filename) { struct heif_image* image = nullptr; // ### Code copied from LibVideoGfx and slightly modified to use HeifPixelImage struct jpeg_decompress_struct cinfo; struct jpeg_error_mgr jerr; // to store embedded icc profile uint32_t iccLen; uint8_t* iccBuffer = NULL; // open input file FILE* infile; if ((infile = fopen(filename, "rb")) == NULL) { std::cerr << "Can't open " << filename << "\n"; exit(1); } // initialize decompressor jpeg_create_decompress(&cinfo); cinfo.err = jpeg_std_error(&jerr); jpeg_stdio_src(&cinfo, infile); /* Adding this part to prepare for icc profile reading. */ jpeg_save_markers(&cinfo, JPEG_APP0 + 2, 0xFFFF); jpeg_read_header(&cinfo, TRUE); boolean embeddedIccFlag = ReadICCProfileFromJPEG(&cinfo, &iccBuffer, &iccLen); if (cinfo.jpeg_color_space == JCS_GRAYSCALE) { cinfo.out_color_space = JCS_GRAYSCALE; jpeg_start_decompress(&cinfo); JSAMPARRAY buffer; buffer = (*cinfo.mem->alloc_sarray) ((j_common_ptr) &cinfo, JPOOL_IMAGE, cinfo.output_width * cinfo.output_components, 1); // create destination image struct heif_error err = heif_image_create(cinfo.output_width, cinfo.output_height, heif_colorspace_monochrome, heif_chroma_monochrome, &image); (void) err; // TODO: handle error heif_image_add_plane(image, heif_channel_Y, cinfo.output_width, cinfo.output_height, 8); int y_stride; uint8_t* py = heif_image_get_plane(image, heif_channel_Y, &y_stride); // read the image while (cinfo.output_scanline < cinfo.output_height) { (void) jpeg_read_scanlines(&cinfo, buffer, 1); memcpy(py + (cinfo.output_scanline - 1) * y_stride, *buffer, cinfo.output_width); } } else { cinfo.out_color_space = JCS_YCbCr; jpeg_start_decompress(&cinfo); JSAMPARRAY buffer; buffer = (*cinfo.mem->alloc_sarray) ((j_common_ptr) &cinfo, JPOOL_IMAGE, cinfo.output_width * cinfo.output_components, 1); // create destination image struct heif_error err = heif_image_create(cinfo.output_width, cinfo.output_height, heif_colorspace_YCbCr, heif_chroma_420, &image); (void) err; heif_image_add_plane(image, heif_channel_Y, cinfo.output_width, cinfo.output_height, 8); heif_image_add_plane(image, heif_channel_Cb, (cinfo.output_width + 1) / 2, (cinfo.output_height + 1) / 2, 8); heif_image_add_plane(image, heif_channel_Cr, (cinfo.output_width + 1) / 2, (cinfo.output_height + 1) / 2, 8); int y_stride; int cb_stride; int cr_stride; uint8_t* py = heif_image_get_plane(image, heif_channel_Y, &y_stride); uint8_t* pcb = heif_image_get_plane(image, heif_channel_Cb, &cb_stride); uint8_t* pcr = heif_image_get_plane(image, heif_channel_Cr, &cr_stride); // read the image //printf("jpeg size: %d %d\n",cinfo.output_width, cinfo.output_height); while (cinfo.output_scanline < cinfo.output_height) { JOCTET* bufp; (void) jpeg_read_scanlines(&cinfo, buffer, 1); bufp = buffer[0]; int y = cinfo.output_scanline - 1; for (unsigned int x = 0; x < cinfo.output_width; x += 2) { py[y * y_stride + x] = *bufp++; pcb[y / 2 * cb_stride + x / 2] = *bufp++; pcr[y / 2 * cr_stride + x / 2] = *bufp++; if (x + 1 < cinfo.output_width) { py[y * y_stride + x + 1] = *bufp++; } bufp += 2; } if (cinfo.output_scanline < cinfo.output_height) { (void) jpeg_read_scanlines(&cinfo, buffer, 1); bufp = buffer[0]; y = cinfo.output_scanline - 1; for (unsigned int x = 0; x < cinfo.output_width; x++) { py[y * y_stride + x] = *bufp++; bufp += 2; } } } } if (embeddedIccFlag && iccLen > 0) { heif_image_set_raw_color_profile(image, "prof", iccBuffer, (size_t) iccLen); } // cleanup free(iccBuffer); jpeg_finish_decompress(&cinfo); jpeg_destroy_decompress(&cinfo); fclose(infile); return std::shared_ptr(image, [](heif_image* img) { heif_image_release(img); }); } #else std::shared_ptr loadJPEG(const char* filename) { std::cerr << "Cannot load JPEG because libjpeg support was not compiled.\n"; exit(1); return nullptr; } #endif #if HAVE_LIBPNG static void user_read_fn(png_structp png_ptr, png_bytep data, png_size_t length) { FILE* fh = (FILE*) png_get_io_ptr(png_ptr); size_t n = fread((char*) data, length, 1, fh); (void) n; } // user_read_data std::shared_ptr loadPNG(const char* filename, int output_bit_depth) { FILE* fh = fopen(filename, "rb"); if (!fh) { std::cerr << "Can't open " << filename << "\n"; exit(1); } // ### Code copied from LibVideoGfx and slightly modified to use HeifPixelImage struct heif_image* image = nullptr; png_structp png_ptr; png_infop info_ptr; png_uint_32 width, height; int bit_depth, color_type, interlace_type; int compression_type; png_charp name; #if (PNG_LIBPNG_VER < 10500) png_charp png_profile_data; #else png_bytep png_profile_data; #endif uint8_t* profile_data = nullptr; png_uint_32 profile_length = 5; /* Create and initialize the png_struct with the desired error handler * functions. If you want to use the default stderr and longjump method, * you can supply NULL for the last three parameters. We also supply the * the compiler header file version, so that we know if the application * was compiled with a compatible version of the library. REQUIRED */ png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); assert(png_ptr != NULL); /* Allocate/initialize the memory for image information. REQUIRED. */ info_ptr = png_create_info_struct(png_ptr); if (info_ptr == NULL) { png_destroy_read_struct(&png_ptr, (png_infopp) NULL, (png_infopp) NULL); assert(false); // , "could not create info_ptr"); } // if /* Set error handling if you are using the setjmp/longjmp method (this is * the normal method of doing things with libpng). REQUIRED unless you * set up your own error handlers in the png_create_read_struct() earlier. */ if (setjmp(png_jmpbuf(png_ptr))) { /* Free all of the memory associated with the png_ptr and info_ptr */ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL); /* If we get here, we had a problem reading the file */ assert(false); // , "fatal error in png library"); } // if /* If you are using replacement read functions, instead of calling * png_init_io() here you would call: */ png_set_read_fn(png_ptr, (void*) fh, user_read_fn); /* where user_io_ptr is a structure you want available to the callbacks */ /* The call to png_read_info() gives us all of the information from the * PNG file before the first IDAT (image data chunk). REQUIRED */ png_read_info(png_ptr, info_ptr); png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, &interlace_type, NULL, NULL); if (png_get_valid(png_ptr, info_ptr, PNG_INFO_iCCP)) { if (PNG_INFO_iCCP == png_get_iCCP(png_ptr, info_ptr, &name, &compression_type, &png_profile_data, &profile_length) && profile_length > 0) { profile_data = (uint8_t*) malloc(profile_length); if (profile_data) { memcpy(profile_data, png_profile_data, profile_length); } } } /**** Set up the data transformations you want. Note that these are all **** optional. Only call them if you want/need them. Many of the **** transformations only work on specific types of images, and many **** are mutually exclusive. ****/ // \TODO // /* Strip alpha bytes from the input data without combining with the // * background (not recommended). // */ // png_set_strip_alpha(png_ptr); /* Extract multiple pixels with bit depths of 1, 2, and 4 from a single * byte into separate bytes (useful for paletted and grayscale images). */ png_set_packing(png_ptr); /* Expand paletted colors into true RGB triplets */ if (color_type == PNG_COLOR_TYPE_PALETTE) png_set_expand(png_ptr); /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */ if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) png_set_expand(png_ptr); /* Set the background color to draw transparent and alpha images over. * It is possible to set the red, green, and blue components directly * for paletted images instead of supplying a palette index. Note that * even if the PNG file supplies a background, you are not required to * use it - you should use the (solid) application background if it has one. */ #if 0 // \TODO 0 is index in color lookup table - correct? used already? png_color_16 my_background = {0, 255, 255, 255, 255}; png_color_16 *image_background; if (png_get_bKGD(png_ptr, info_ptr, &image_background)) png_set_background(png_ptr, image_background, PNG_BACKGROUND_GAMMA_FILE, 1, 1.0); else png_set_background(png_ptr, &my_background, PNG_BACKGROUND_GAMMA_SCREEN, 0, 1.0); #endif /* Optional call to gamma correct and add the background to the palette * and update info structure. REQUIRED if you are expecting libpng to * update the palette for you (ie you selected such a transform above). */ png_read_update_info(png_ptr, info_ptr); /* Allocate the memory to hold the image using the fields of info_ptr. */ /* The easiest way to read the image: */ uint8_t** row_pointers = new png_bytep[height]; assert(row_pointers != NULL); for (uint32_t y = 0; y < height; y++) { row_pointers[y] = (png_bytep) malloc(png_get_rowbytes(png_ptr, info_ptr)); assert(row_pointers[y] != NULL); } // for /* Now it's time to read the image. One of these methods is REQUIRED */ png_read_image(png_ptr, row_pointers); /* read rest of file, and get additional chunks in info_ptr - REQUIRED */ png_read_end(png_ptr, info_ptr); /* clean up after the read, and free any memory allocated - REQUIRED */ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL); // OK, now we should have the png image in some way in // row_pointers, have fun with it int band = 0; switch (color_type) { case PNG_COLOR_TYPE_GRAY: case PNG_COLOR_TYPE_GRAY_ALPHA: band = 1; break; case PNG_COLOR_TYPE_PALETTE: case PNG_COLOR_TYPE_RGB: case PNG_COLOR_TYPE_RGB_ALPHA: band = 3; break; default: assert(false); // , "unknown color type in png image."); } // switch struct heif_error err; bool has_alpha = (color_type & PNG_COLOR_MASK_ALPHA); if (band == 1 && bit_depth==8) { err = heif_image_create((int) width, (int) height, heif_colorspace_monochrome, heif_chroma_monochrome, &image); (void) err; heif_image_add_plane(image, heif_channel_Y, (int) width, (int) height, 8); int y_stride; int a_stride; uint8_t* py = heif_image_get_plane(image, heif_channel_Y, &y_stride); uint8_t* pa = nullptr; if (has_alpha) { heif_image_add_plane(image, heif_channel_Alpha, (int) width, (int) height, 8); pa = heif_image_get_plane(image, heif_channel_Alpha, &a_stride); } for (uint32_t y = 0; y < height; y++) { uint8_t* p = row_pointers[y]; if (has_alpha) { for (uint32_t x = 0; x < width; x++) { py[y * y_stride + x] = *p++; pa[y * a_stride + x] = *p++; } } else { memcpy(&py[y * y_stride], p, width); } } } else if (band == 1) { assert(bit_depth>8); err = heif_image_create((int) width, (int) height, heif_colorspace_monochrome, heif_chroma_monochrome, &image); (void) err; int bdShift = 16 - output_bit_depth; heif_image_add_plane(image, heif_channel_Y, (int) width, (int) height, output_bit_depth); int y_stride; int a_stride = 0; uint16_t* py = (uint16_t*)heif_image_get_plane(image, heif_channel_Y, &y_stride); uint16_t* pa = nullptr; if (has_alpha) { heif_image_add_plane(image, heif_channel_Alpha, (int) width, (int) height, output_bit_depth); pa = (uint16_t*)heif_image_get_plane(image, heif_channel_Alpha, &a_stride); } y_stride /= 2; a_stride /= 2; for (uint32_t y = 0; y < height; y++) { uint8_t* p = row_pointers[y]; if (has_alpha) { for (uint32_t x = 0; x < width; x++) { uint16_t vp = (uint16_t) (((p[0] << 8) | p[1]) >> bdShift); uint16_t va = (uint16_t) (((p[2] << 8) | p[3]) >> bdShift); py[x + y * y_stride] = vp; pa[x + y * y_stride] = va; p += 4; } } else { for (uint32_t x = 0; x < width; x++) { uint16_t vp = (uint16_t) (((p[0] << 8) | p[1]) >> bdShift); py[x + y * y_stride] = vp; p += 2; } } } } else if (bit_depth == 8) { err = heif_image_create((int) width, (int) height, heif_colorspace_RGB, has_alpha ? heif_chroma_interleaved_RGBA : heif_chroma_interleaved_RGB, &image); (void) err; heif_image_add_plane(image, heif_channel_interleaved, (int) width, (int) height, has_alpha ? 32 : 24); int stride; uint8_t* p = heif_image_get_plane(image, heif_channel_interleaved, &stride); for (uint32_t y = 0; y < height; y++) { if (has_alpha) { memcpy(p + y * stride, row_pointers[y], width * 4); } else { memcpy(p + y * stride, row_pointers[y], width * 3); } } } else { err = heif_image_create((int) width, (int) height, heif_colorspace_RGB, has_alpha ? heif_chroma_interleaved_RRGGBBAA_LE : heif_chroma_interleaved_RRGGBB_LE, &image); (void) err; int bdShift = 16 - output_bit_depth; heif_image_add_plane(image, heif_channel_interleaved, (int) width, (int) height, output_bit_depth); int stride; uint8_t* p_out = (uint8_t*) heif_image_get_plane(image, heif_channel_interleaved, &stride); for (uint32_t y = 0; y < height; y++) { uint8_t* p = row_pointers[y]; uint32_t nVal = (has_alpha ? 4 : 3) * width; for (uint32_t x = 0; x < nVal; x++) { uint16_t v = (uint16_t) (((p[0] << 8) | p[1]) >> bdShift); p_out[2 * x + y * stride + 1] = (uint8_t) (v >> 8); p_out[2 * x + y * stride + 0] = (uint8_t) (v & 0xFF); p += 2; } } } if (profile_data && profile_length > 0) { heif_image_set_raw_color_profile(image, "prof", profile_data, (size_t) profile_length); } free(profile_data); for (uint32_t y = 0; y < height; y++) { free(row_pointers[y]); } // for delete[] row_pointers; return std::shared_ptr(image, [](heif_image* img) { heif_image_release(img); }); } #else std::shared_ptr loadPNG(const char* filename, int output_bit_depth) { std::cerr << "Cannot load PNG because libpng support was not compiled.\n"; exit(1); return nullptr; } #endif std::shared_ptr loadY4M(const char* filename) { struct heif_image* image = nullptr; // open input file std::ifstream istr(filename, std::ios_base::binary); if (istr.fail()) { std::cerr << "Can't open " << filename << "\n"; exit(1); } std::string header; getline(istr, header); if (header.find("YUV4MPEG2 ") != 0) { std::cerr << "Input is not a Y4M file.\n"; exit(1); } int w = -1; int h = -1; size_t pos = 0; for (;;) { pos = header.find(' ', pos + 1) + 1; if (pos == std::string::npos) { break; } size_t end = header.find_first_of(" \n", pos + 1); if (end == std::string::npos) { break; } if (end - pos <= 1) { std::cerr << "Header format error in Y4M file.\n"; exit(1); } char tag = header[pos]; std::string value = header.substr(pos + 1, end - pos - 1); if (tag == 'W') { w = atoi(value.c_str()); } else if (tag == 'H') { h = atoi(value.c_str()); } } std::string frameheader; getline(istr, frameheader); if (frameheader != "FRAME") { std::cerr << "Y4M misses the frame header.\n"; exit(1); } if (w < 0 || h < 0) { std::cerr << "Y4M has invalid frame size.\n"; exit(1); } struct heif_error err = heif_image_create(w, h, heif_colorspace_YCbCr, heif_chroma_420, &image); (void) err; // TODO: handle error heif_image_add_plane(image, heif_channel_Y, w, h, 8); heif_image_add_plane(image, heif_channel_Cb, (w + 1) / 2, (h + 1) / 2, 8); heif_image_add_plane(image, heif_channel_Cr, (w + 1) / 2, (h + 1) / 2, 8); int y_stride, cb_stride, cr_stride; uint8_t* py = heif_image_get_plane(image, heif_channel_Y, &y_stride); uint8_t* pcb = heif_image_get_plane(image, heif_channel_Cb, &cb_stride); uint8_t* pcr = heif_image_get_plane(image, heif_channel_Cr, &cr_stride); for (int y = 0; y < h; y++) { istr.read((char*) (py + y * y_stride), w); } for (int y = 0; y < (h + 1) / 2; y++) { istr.read((char*) (pcb + y * cb_stride), (w + 1) / 2); } for (int y = 0; y < (h + 1) / 2; y++) { istr.read((char*) (pcr + y * cr_stride), (w + 1) / 2); } return std::shared_ptr(image, [](heif_image* img) { heif_image_release(img); }); } void list_encoder_parameters(heif_encoder* encoder) { std::cerr << "Parameters for encoder `" << heif_encoder_get_name(encoder) << "`:\n"; const struct heif_encoder_parameter* const* params = heif_encoder_list_parameters(encoder); for (int i = 0; params[i]; i++) { const char* name = heif_encoder_parameter_get_name(params[i]); switch (heif_encoder_parameter_get_type(params[i])) { case heif_encoder_parameter_type_integer: { heif_error error; std::cerr << " " << name; if (heif_encoder_has_default(encoder, name)) { int value; error = heif_encoder_get_parameter_integer(encoder, name, &value); (void) error; std::cerr << ", default=" << value; } int have_minimum, have_maximum, minimum, maximum, num_valid_values; const int* valid_values = nullptr; error = heif_encoder_parameter_integer_valid_values(encoder, name, &have_minimum, &have_maximum, &minimum, &maximum, &num_valid_values, &valid_values); if (have_minimum || have_maximum) { // TODO: only one is set std::cerr << ", [" << minimum << ";" << maximum << "]"; } if (num_valid_values > 0) { std::cerr << ", {"; for (int p=0;p0) { std::cerr << ", "; } std::cerr << valid_values[p]; } std::cerr << "}"; } std::cerr << "\n"; } break; case heif_encoder_parameter_type_boolean: { heif_error error; std::cerr << " " << name; if (heif_encoder_has_default(encoder, name)) { int value; error = heif_encoder_get_parameter_boolean(encoder, name, &value); (void) error; std::cerr << ", default=" << (value ? "true" : "false"); } std::cerr << "\n"; } break; case heif_encoder_parameter_type_string: { heif_error error; std::cerr << " " << name; if (heif_encoder_has_default(encoder, name)) { const int value_size = 50; char value[value_size]; error = heif_encoder_get_parameter_string(encoder, name, value, value_size); (void) error; std::cerr << ", default=" << value; } const char* const* valid_options; error = heif_encoder_parameter_string_valid_values(encoder, name, &valid_options); if (valid_options) { std::cerr << ", { "; for (int i = 0; valid_options[i]; i++) { if (i > 0) { std::cerr << ","; } std::cerr << valid_options[i]; } std::cerr << " }"; } std::cerr << "\n"; } break; } } } void set_params(struct heif_encoder* encoder, std::vector params) { for (std::string p : params) { auto pos = p.find_first_of('='); if (pos == std::string::npos || pos == 0 || pos == p.size() - 1) { std::cerr << "Encoder parameter must be in the format 'name=value'\n"; exit(5); } std::string name = p.substr(0, pos); std::string value = p.substr(pos + 1); struct heif_error error = heif_encoder_set_parameter(encoder, name.c_str(), value.c_str()); if (error.code) { std::cerr << "Error: " << error.message << "\n"; exit(5); } } } static void show_list_of_encoders(const heif_encoder_descriptor*const* encoder_descriptors, int count) { std::cout << "Encoders (first is default):\n"; for (int i = 0; i < count; i++) { std::cout << "- " << heif_encoder_descriptor_get_id_name(encoder_descriptors[i]) << " = " << heif_encoder_descriptor_get_name(encoder_descriptors[i]) << "\n"; } } int main(int argc, char** argv) { int quality = 50; bool lossless = false; std::string output_filename; int logging_level = 0; bool option_show_parameters = false; int thumbnail_bbox_size = 0; int output_bit_depth = 10; bool enc_av1f = false; bool crop_to_even_size = false; std::vector raw_params; while (true) { int option_index = 0; int c = getopt_long(argc, argv, "hq:Lo:vPp:t:b:AEe:", long_options, &option_index); if (c == -1) break; switch (c) { case 'h': show_help(argv[0]); return 0; case 'q': quality = atoi(optarg); break; case 'L': lossless = true; break; case 'o': output_filename = optarg; break; case 'v': logging_level++; break; case 'P': option_show_parameters = true; break; case 'p': raw_params.push_back(optarg); break; case 't': thumbnail_bbox_size = atoi(optarg); break; case 'b': output_bit_depth = atoi(optarg); break; case 'A': enc_av1f = true; break; case 'E': crop_to_even_size = true; break; case 'e': encoderId = optarg; break; case OPTION_NCLX_MATRIX_COEFFICIENTS: nclx_matrix_coefficients = atoi(optarg); break; case OPTION_NCLX_COLOUR_PRIMARIES: nclx_colour_primaries = atoi(optarg); break; case OPTION_NCLX_TRANSFER_CHARACTERISTIC: nclx_transfer_characteristic = atoi(optarg); break; case OPTION_NCLX_FULL_RANGE_FLAG: nclx_full_range = atoi(optarg); break; } } if (quality < 0 || quality > 100) { std::cerr << "Invalid quality factor. Must be between 0 and 100.\n"; return 5; } if (logging_level > 0) { logging_level += 2; if (logging_level > 4) { logging_level = 4; } } // ============================================================================== std::shared_ptr context(heif_context_alloc(), [](heif_context* c) { heif_context_free(c); }); if (!context) { std::cerr << "Could not create context object\n"; return 1; } struct heif_encoder* encoder = nullptr; #define MAX_ENCODERS 5 const heif_encoder_descriptor* encoder_descriptors[MAX_ENCODERS]; int count = heif_context_get_encoder_descriptors(context.get(), enc_av1f ? heif_compression_AV1 : heif_compression_HEVC, nullptr, encoder_descriptors, MAX_ENCODERS); if (list_encoders) { show_list_of_encoders(encoder_descriptors, count); return 0; } if (count > 0) { int idx = 0; if (encoderId != nullptr) { for (int i = 0; i <= count; i++) { if (i==count) { std::cerr << "Unknown encoder ID. Choose one from the list below.\n"; show_list_of_encoders(encoder_descriptors, count); return 5; } if (strcmp(encoderId, heif_encoder_descriptor_get_id_name(encoder_descriptors[i])) == 0) { idx = i; break; } } } heif_error error = heif_context_get_encoder(context.get(), encoder_descriptors[idx], &encoder); if (error.code) { std::cerr << error.message << "\n"; return 5; } } else { std::cerr << "No " << (enc_av1f ? "AV1" : "HEVC") << " encoder available.\n"; return 5; } if (option_show_parameters) { list_encoder_parameters(encoder); return 0; } if (optind > argc - 1) { show_help(argv[0]); return 0; } struct heif_error error; for (; optind < argc; optind++) { std::string input_filename = argv[optind]; if (output_filename.empty()) { std::string filename_without_suffix; std::string::size_type dot_position = input_filename.find_last_of('.'); if (dot_position != std::string::npos) { filename_without_suffix = input_filename.substr(0, dot_position); } else { filename_without_suffix = input_filename; } output_filename = filename_without_suffix + (enc_av1f ? ".avif" : ".heic"); } // ============================================================================== // get file type from file name std::string suffix; auto suffix_pos = input_filename.find_last_of('.'); if (suffix_pos != std::string::npos) { suffix = input_filename.substr(suffix_pos + 1); std::transform(suffix.begin(), suffix.end(), suffix.begin(), ::tolower); } enum { PNG, JPEG, Y4M } filetype = JPEG; if (suffix == "png") { filetype = PNG; } else if (suffix == "y4m") { filetype = Y4M; } std::shared_ptr image; if (filetype == PNG) { image = loadPNG(input_filename.c_str(), output_bit_depth); } else if (filetype == Y4M) { image = loadY4M(input_filename.c_str()); } else { image = loadJPEG(input_filename.c_str()); } heif_color_profile_nclx nclx; nclx.matrix_coefficients = (heif_matrix_coefficients) nclx_matrix_coefficients; nclx.transfer_characteristics = (heif_transfer_characteristics) nclx_transfer_characteristic; nclx.color_primaries = (heif_color_primaries) nclx_colour_primaries; nclx.full_range_flag = (uint8_t) nclx_full_range; //heif_image_set_nclx_color_profile(image.get(), &nclx); heif_encoder_set_lossy_quality(encoder, quality); heif_encoder_set_lossless(encoder, lossless); heif_encoder_set_logging_level(encoder, logging_level); set_params(encoder, raw_params); struct heif_encoding_options* options = heif_encoding_options_alloc(); options->save_alpha_channel = (uint8_t) master_alpha; options->save_two_colr_boxes_when_ICC_and_nclx_available = (uint8_t)two_colr_boxes; options->output_nclx_profile = &nclx; if (crop_to_even_size) { if (heif_image_get_primary_width(image.get()) == 1 || heif_image_get_primary_height(image.get()) == 1) { std::cerr << "Image only has a size of 1 pixel width or height. Cannot crop to even size.\n"; return 1; } std::cerr << "Warning: option --even-size/-E is deprecated as it is not needed anymore.\n"; int right = heif_image_get_primary_width(image.get()) % 2; int bottom = heif_image_get_primary_height(image.get()) % 2; error = heif_image_crop(image.get(), 0, right, 0, bottom); if (error.code != 0) { heif_encoding_options_free(options); std::cerr << "Could not crop image: " << error.message << "\n"; return 1; } } if (premultiplied_alpha) { heif_image_set_premultiplied_alpha(image.get(), premultiplied_alpha); } struct heif_image_handle* handle; error = heif_context_encode_image(context.get(), image.get(), encoder, options, &handle); if (error.code != 0) { heif_encoding_options_free(options); std::cerr << "Could not encode HEIF/AVIF file: " << error.message << "\n"; return 1; } if (thumbnail_bbox_size > 0) { // encode thumbnail struct heif_image_handle* thumbnail_handle; options->save_alpha_channel = master_alpha && thumb_alpha; error = heif_context_encode_thumbnail(context.get(), image.get(), handle, encoder, options, thumbnail_bbox_size, &thumbnail_handle); if (error.code) { heif_encoding_options_free(options); std::cerr << "Could not generate thumbnail: " << error.message << "\n"; return 5; } if (thumbnail_handle) { heif_image_handle_release(thumbnail_handle); } } heif_image_handle_release(handle); heif_encoding_options_free(options); } heif_encoder_release(encoder); error = heif_context_write_to_file(context.get(), output_filename.c_str()); if (error.code) { std::cerr << error.message << "\n"; return 5; } return 0; } libheif-1.12.0/examples/test_c_api.c0000644000175000017500000000261114003350404014203 00000000000000/* Very simple test whether the header file compiler with a plain C compiler This file is part of libheif. It performs test calculations for CI checks. MIT License Copyright (c) 2018 struktur AG, Dirk Farin 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "libheif/heif.h" #include "libheif/heif_version.h" #include "libheif/heif_plugin.h" int main() { return 0; } libheif-1.12.0/examples/encoder.h0000644000175000017500000000377414003350403013527 00000000000000/* libheif example application "convert". MIT License Copyright (c) 2017 struktur AG, Joachim Bauch 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef EXAMPLE_ENCODER_H #define EXAMPLE_ENCODER_H #include #include #include class Encoder { public: virtual ~Encoder() {} virtual heif_colorspace colorspace(bool has_alpha) const = 0; virtual heif_chroma chroma(bool has_alpha, int bit_depth) const = 0; virtual void UpdateDecodingOptions(const struct heif_image_handle* handle, struct heif_decoding_options* options) const { // Override if necessary. } virtual bool Encode(const struct heif_image_handle* handle, const struct heif_image* image, const std::string& filename) = 0; protected: static bool HasExifMetaData(const struct heif_image_handle* handle); static uint8_t* GetExifMetaData(const struct heif_image_handle* handle, size_t* size); }; #endif // EXAMPLE_ENCODER_H libheif-1.12.0/examples/COPYING0000644000175000017500000000205214003350403012756 00000000000000 MIT License 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. libheif-1.12.0/examples/encoder_y4m.cc0000644000175000017500000000527514003350403014454 00000000000000/* libheif example application "convert". MIT License Copyright (c) 2019 struktur AG, Dirk Farin 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "encoder_y4m.h" #include #include #include Y4MEncoder::Y4MEncoder() { } void Y4MEncoder::UpdateDecodingOptions(const struct heif_image_handle* handle, struct heif_decoding_options* options) const { } bool Y4MEncoder::Encode(const struct heif_image_handle* handle, const struct heif_image* image, const std::string& filename) { FILE* fp = fopen(filename.c_str(), "wb"); if (!fp) { fprintf(stderr, "Can't open %s: %s\n", filename.c_str(), strerror(errno)); return false; } int y_stride, cb_stride, cr_stride; const uint8_t* yp = heif_image_get_plane_readonly(image, heif_channel_Y, &y_stride); const uint8_t* cbp = heif_image_get_plane_readonly(image, heif_channel_Cb, &cb_stride); const uint8_t* crp = heif_image_get_plane_readonly(image, heif_channel_Cr, &cr_stride); assert(y_stride > 0); assert(cb_stride > 0); assert(cr_stride > 0); int yw = heif_image_get_width(image, heif_channel_Y); int yh = heif_image_get_height(image, heif_channel_Y); int cw = heif_image_get_width(image, heif_channel_Cb); int ch = heif_image_get_height(image, heif_channel_Cb); fprintf(fp, "YUV4MPEG2 W%d H%d F30:1\nFRAME\n", yw, yh); for (int y = 0; y < yh; y++) { fwrite(yp + y * y_stride, 1, yw, fp); } for (int y = 0; y < ch; y++) { fwrite(cbp + y * cb_stride, 1, cw, fp); } for (int y = 0; y < ch; y++) { fwrite(crp + y * cr_stride, 1, cw, fp); } fclose(fp); return true; } libheif-1.12.0/examples/encoder_jpeg.h0000644000175000017500000000427514003350403014531 00000000000000/* libheif example application "convert". MIT License Copyright (c) 2017 struktur AG, Joachim Bauch 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef EXAMPLE_ENCODER_JPEG_H #define EXAMPLE_ENCODER_JPEG_H #include #include #include #include #include #include "encoder.h" class JpegEncoder : public Encoder { public: JpegEncoder(int quality); heif_colorspace colorspace(bool has_alpha) const override { return heif_colorspace_YCbCr; } heif_chroma chroma(bool has_alpha, int bit_depth) const override { return heif_chroma_420; } void UpdateDecodingOptions(const struct heif_image_handle* handle, struct heif_decoding_options* options) const override; bool Encode(const struct heif_image_handle* handle, const struct heif_image* image, const std::string& filename) override; private: static const int kDefaultQuality = 90; struct ErrorHandler { struct jpeg_error_mgr pub; /* "public" fields */ jmp_buf setjmp_buffer; /* for return to caller */ }; static void OnJpegError(j_common_ptr cinfo); int quality_; }; #endif // EXAMPLE_ENCODER_JPEG_H libheif-1.12.0/cmake/0000775000175000017500000000000014044446310011260 500000000000000libheif-1.12.0/cmake/modules/0000775000175000017500000000000014044446310012730 500000000000000libheif-1.12.0/cmake/modules/FindRav1e.cmake0000664000175000017500000000112614043747772015450 00000000000000include(LibFindMacros) libfind_pkg_check_modules(RAV1E_PKGCONF rav1e) find_path(RAV1E_INCLUDE_DIR NAMES rav1e.h HINTS ${RAV1E_PKGCONF_INCLUDE_DIRS} ${RAV1E_PKGCONF_INCLUDEDIR} PATH_SUFFIXES RAV1E ) find_library(RAV1E_LIBRARY NAMES librav1e rav1e rav1e.dll HINTS ${RAV1E_PKGCONF_LIBRARY_DIRS} ${RAV1E_PKGCONF_LIBDIR} ) set(RAV1E_PROCESS_LIBS RAV1E_LIBRARY) set(RAV1E_PROCESS_INCLUDES RAV1E_INCLUDE_DIR) libfind_process(RAV1E) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(RAV1E REQUIRED_VARS RAV1E_INCLUDE_DIR RAV1E_LIBRARIES ) libheif-1.12.0/cmake/modules/FindDav1d.cmake0000644000175000017500000000112214003350402015373 00000000000000include(LibFindMacros) libfind_pkg_check_modules(DAV1D_PKGCONF dav1d) find_path(DAV1D_INCLUDE_DIR NAMES dav1d/dav1d.h HINTS ${DAV1D_PKGCONF_INCLUDE_DIRS} ${DAV1D_PKGCONF_INCLUDEDIR} PATH_SUFFIXES DAV1D ) find_library(DAV1D_LIBRARY NAMES libdav1d dav1d HINTS ${DAV1D_PKGCONF_LIBRARY_DIRS} ${DAV1D_PKGCONF_LIBDIR} ) set(DAV1D_PROCESS_LIBS DAV1D_LIBRARY) set(DAV1D_PROCESS_INCLUDES DAV1D_INCLUDE_DIR) libfind_process(DAV1D) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(DAV1D REQUIRED_VARS DAV1D_INCLUDE_DIR DAV1D_LIBRARIES ) libheif-1.12.0/cmake/modules/FindX265.cmake0000644000175000017500000000170414003350402015106 00000000000000include(LibFindMacros) libfind_pkg_check_modules(X265_PKGCONF x265) find_path(X265_INCLUDE_DIR NAMES x265.h HINTS ${X265_PKGCONF_INCLUDE_DIRS} ${X265_PKGCONF_INCLUDEDIR} PATH_SUFFIXES X265 ) find_library(X265_LIBRARY NAMES libx265 x265 HINTS ${X265_PKGCONF_LIBRARY_DIRS} ${X265_PKGCONF_LIBDIR} ) set(X265_PROCESS_LIBS X265_LIBRARY) set(X265_PROCESS_INCLUDES X265_INCLUDE_DIR) libfind_process(X265) if(X265_INCLUDE_DIR) set(x265_config_file "${X265_INCLUDE_DIR}/x265_config.h") if(EXISTS ${x265_config_file}) file(STRINGS ${x265_config_file} TMP REGEX "#define X265_BUILD .*$") string(REGEX REPLACE "#define X265_BUILD" "" TMP ${TMP}) string(REGEX MATCHALL "[0-9.]+" X265_BUILD ${TMP}) endif() endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(X265 REQUIRED_VARS X265_INCLUDE_DIR X265_LIBRARIES VERSION_VAR X265_BUILD ) libheif-1.12.0/cmake/modules/LibFindMacros.cmake0000644000175000017500000002511014003350402016312 00000000000000# Version 2.3 # Public Domain, originally written by Lasse Kärkkäinen # Maintained at https://github.com/Tronic/cmake-modules # Please send your improvements as pull requests on Github. # Find another package and make it a dependency of the current package. # This also automatically forwards the "REQUIRED" argument. # Usage: libfind_package( [extra args to find_package]) macro (libfind_package PREFIX PKG) set(${PREFIX}_args ${PKG} ${ARGN}) if (${PREFIX}_FIND_REQUIRED) set(${PREFIX}_args ${${PREFIX}_args} REQUIRED) endif() find_package(${${PREFIX}_args}) set(${PREFIX}_DEPENDENCIES ${${PREFIX}_DEPENDENCIES};${PKG}) unset(${PREFIX}_args) endmacro() # A simple wrapper to make pkg-config searches a bit easier. # Works the same as CMake's internal pkg_check_modules but is always quiet. macro (libfind_pkg_check_modules) find_package(PkgConfig QUIET) if (PKG_CONFIG_FOUND) pkg_check_modules(${ARGN} QUIET) endif() endmacro() # Avoid useless copy&pasta by doing what most simple libraries do anyway: # pkg-config, find headers, find library. # Usage: libfind_pkg_detect( FIND_PATH [other args] FIND_LIBRARY [other args]) # E.g. libfind_pkg_detect(SDL2 sdl2 FIND_PATH SDL.h PATH_SUFFIXES SDL2 FIND_LIBRARY SDL2) function (libfind_pkg_detect PREFIX) # Parse arguments set(argname pkgargs) foreach (i ${ARGN}) if ("${i}" STREQUAL "FIND_PATH") set(argname pathargs) elseif ("${i}" STREQUAL "FIND_LIBRARY") set(argname libraryargs) else() set(${argname} ${${argname}} ${i}) endif() endforeach() if (NOT pkgargs) message(FATAL_ERROR "libfind_pkg_detect requires at least a pkg_config package name to be passed.") endif() # Find library libfind_pkg_check_modules(${PREFIX}_PKGCONF ${pkgargs}) if (pathargs) find_path(${PREFIX}_INCLUDE_DIR NAMES ${pathargs} HINTS ${${PREFIX}_PKGCONF_INCLUDE_DIRS}) endif() if (libraryargs) find_library(${PREFIX}_LIBRARY NAMES ${libraryargs} HINTS ${${PREFIX}_PKGCONF_LIBRARY_DIRS}) endif() # Read pkg-config version if (${PREFIX}_PKGCONF_VERSION) set(${PREFIX}_VERSION ${${PREFIX}_PKGCONF_VERSION} PARENT_SCOPE) endif() endfunction() # Extracts a version #define from a version.h file, output stored to _VERSION. # Usage: libfind_version_header(Foobar foobar/version.h FOOBAR_VERSION_STR) # Fourth argument "QUIET" may be used for silently testing different define names. # This function does nothing if the version variable is already defined. function (libfind_version_header PREFIX VERSION_H DEFINE_NAME) # Skip processing if we already have a version or if the include dir was not found if (${PREFIX}_VERSION OR NOT ${PREFIX}_INCLUDE_DIR) return() endif() set(quiet ${${PREFIX}_FIND_QUIETLY}) # Process optional arguments foreach(arg ${ARGN}) if (arg STREQUAL "QUIET") set(quiet TRUE) else() message(AUTHOR_WARNING "Unknown argument ${arg} to libfind_version_header ignored.") endif() endforeach() # Read the header and parse for version number set(filename "${${PREFIX}_INCLUDE_DIR}/${VERSION_H}") if (NOT EXISTS ${filename}) if (NOT quiet) message(AUTHOR_WARNING "Unable to find ${${PREFIX}_INCLUDE_DIR}/${VERSION_H}") endif() return() endif() file(READ "${filename}" header) string(REGEX REPLACE ".*#[ \t]*define[ \t]*${DEFINE_NAME}[ \t]*\"([^\n]*)\".*" "\\1" match "${header}") # No regex match? if (match STREQUAL header) if (NOT quiet) message(AUTHOR_WARNING "Unable to find \#define ${DEFINE_NAME} \"\" from ${${PREFIX}_INCLUDE_DIR}/${VERSION_H}") endif() return() endif() # Export the version string set(${PREFIX}_VERSION "${match}" PARENT_SCOPE) endfunction() # Do the final processing once the paths have been detected. # If include dirs are needed, ${PREFIX}_PROCESS_INCLUDES should be set to contain # all the variables, each of which contain one include directory. # Ditto for ${PREFIX}_PROCESS_LIBS and library files. # Will set ${PREFIX}_FOUND, ${PREFIX}_INCLUDE_DIRS and ${PREFIX}_LIBRARIES. # Also handles errors in case library detection was required, etc. function (libfind_process PREFIX) # Skip processing if already processed during this configuration run if (${PREFIX}_FOUND) return() endif() set(found TRUE) # Start with the assumption that the package was found # Did we find any files? Did we miss includes? These are for formatting better error messages. set(some_files FALSE) set(missing_headers FALSE) # Shorthands for some variables that we need often set(quiet ${${PREFIX}_FIND_QUIETLY}) set(required ${${PREFIX}_FIND_REQUIRED}) set(exactver ${${PREFIX}_FIND_VERSION_EXACT}) set(findver "${${PREFIX}_FIND_VERSION}") set(version "${${PREFIX}_VERSION}") # Lists of config option names (all, includes, libs) unset(configopts) set(includeopts ${${PREFIX}_PROCESS_INCLUDES}) set(libraryopts ${${PREFIX}_PROCESS_LIBS}) # Process deps to add to foreach (i ${PREFIX} ${${PREFIX}_DEPENDENCIES}) if (DEFINED ${i}_INCLUDE_OPTS OR DEFINED ${i}_LIBRARY_OPTS) # The package seems to export option lists that we can use, woohoo! list(APPEND includeopts ${${i}_INCLUDE_OPTS}) list(APPEND libraryopts ${${i}_LIBRARY_OPTS}) else() # If plural forms don't exist or they equal singular forms if ((NOT DEFINED ${i}_INCLUDE_DIRS AND NOT DEFINED ${i}_LIBRARIES) OR (${i}_INCLUDE_DIR STREQUAL ${i}_INCLUDE_DIRS AND ${i}_LIBRARY STREQUAL ${i}_LIBRARIES)) # Singular forms can be used if (DEFINED ${i}_INCLUDE_DIR) list(APPEND includeopts ${i}_INCLUDE_DIR) endif() if (DEFINED ${i}_LIBRARY) list(APPEND libraryopts ${i}_LIBRARY) endif() else() # Oh no, we don't know the option names message(FATAL_ERROR "We couldn't determine config variable names for ${i} includes and libs. Aieeh!") endif() endif() endforeach() if (includeopts) list(REMOVE_DUPLICATES includeopts) endif() if (libraryopts) list(REMOVE_DUPLICATES libraryopts) endif() string(REGEX REPLACE ".*[ ;]([^ ;]*(_INCLUDE_DIRS|_LIBRARIES))" "\\1" tmp "${includeopts} ${libraryopts}") if (NOT tmp STREQUAL "${includeopts} ${libraryopts}") message(AUTHOR_WARNING "Plural form ${tmp} found in config options of ${PREFIX}. This works as before but is now deprecated. Please only use singular forms INCLUDE_DIR and LIBRARY, and update your find scripts for LibFindMacros > 2.0 automatic dependency system (most often you can simply remove the PROCESS variables entirely).") endif() # Include/library names separated by spaces (notice: not CMake lists) unset(includes) unset(libs) # Process all includes and set found false if any are missing foreach (i ${includeopts}) list(APPEND configopts ${i}) if (NOT "${${i}}" STREQUAL "${i}-NOTFOUND") list(APPEND includes "${${i}}") else() set(found FALSE) set(missing_headers TRUE) endif() endforeach() # Process all libraries and set found false if any are missing foreach (i ${libraryopts}) list(APPEND configopts ${i}) if (NOT "${${i}}" STREQUAL "${i}-NOTFOUND") list(APPEND libs "${${i}}") else() set (found FALSE) endif() endforeach() # Version checks if (found AND findver) if (NOT version) message(WARNING "The find module for ${PREFIX} does not provide version information, so we'll just assume that it is OK. Please fix the module or remove package version requirements to get rid of this warning.") elseif (version VERSION_LESS findver OR (exactver AND NOT version VERSION_EQUAL findver)) set(found FALSE) set(version_unsuitable TRUE) endif() endif() # If all-OK, hide all config options, export variables, print status and exit if (found) foreach (i ${configopts}) mark_as_advanced(${i}) endforeach() if (NOT quiet) message(STATUS "Found ${PREFIX} ${${PREFIX}_VERSION}") if (LIBFIND_DEBUG) message(STATUS " ${PREFIX}_DEPENDENCIES=${${PREFIX}_DEPENDENCIES}") message(STATUS " ${PREFIX}_INCLUDE_OPTS=${includeopts}") message(STATUS " ${PREFIX}_INCLUDE_DIRS=${includes}") message(STATUS " ${PREFIX}_LIBRARY_OPTS=${libraryopts}") message(STATUS " ${PREFIX}_LIBRARIES=${libs}") endif() endif() set (${PREFIX}_INCLUDE_OPTS ${includeopts} PARENT_SCOPE) set (${PREFIX}_LIBRARY_OPTS ${libraryopts} PARENT_SCOPE) set (${PREFIX}_INCLUDE_DIRS ${includes} PARENT_SCOPE) set (${PREFIX}_LIBRARIES ${libs} PARENT_SCOPE) set (${PREFIX}_FOUND TRUE PARENT_SCOPE) return() endif() # Format messages for debug info and the type of error set(vars "Relevant CMake configuration variables:\n") foreach (i ${configopts}) mark_as_advanced(CLEAR ${i}) set(val ${${i}}) if ("${val}" STREQUAL "${i}-NOTFOUND") set (val "") elseif (val AND NOT EXISTS ${val}) set (val "${val} (does not exist)") else() set(some_files TRUE) endif() set(vars "${vars} ${i}=${val}\n") endforeach() set(vars "${vars}You may use CMake GUI, cmake -D or ccmake to modify the values. Delete CMakeCache.txt to discard all values and force full re-detection if necessary.\n") if (version_unsuitable) set(msg "${PREFIX} ${${PREFIX}_VERSION} was found but") if (exactver) set(msg "${msg} only version ${findver} is acceptable.") else() set(msg "${msg} version ${findver} is the minimum requirement.") endif() else() if (missing_headers) set(msg "We could not find development headers for ${PREFIX}. Do you have the necessary dev package installed?") elseif (some_files) set(msg "We only found some files of ${PREFIX}, not all of them. Perhaps your installation is incomplete or maybe we just didn't look in the right place?") if(findver) set(msg "${msg} This could also be caused by incompatible version (if it helps, at least ${PREFIX} ${findver} should work).") endif() else() set(msg "We were unable to find package ${PREFIX}.") endif() endif() # Fatal error out if REQUIRED if (required) set(msg "REQUIRED PACKAGE NOT FOUND\n${msg} This package is REQUIRED and you need to install it or adjust CMake configuration in order to continue building ${CMAKE_PROJECT_NAME}.") message(FATAL_ERROR "${msg}\n${vars}") endif() # Otherwise just print a nasty warning if (NOT quiet) message(WARNING "WARNING: MISSING PACKAGE\n${msg} This package is NOT REQUIRED and you may ignore this warning but by doing so you may miss some functionality of ${CMAKE_PROJECT_NAME}. \n${vars}") endif() endfunction() libheif-1.12.0/cmake/modules/FindLibAOM.cmake0000644000175000017500000000150114003350402015500 00000000000000include(LibFindMacros) libfind_pkg_check_modules(AOM_PKGCONF aom) find_path(AOM_INCLUDE_DIR NAMES aom/aom_decoder.h aom/aom_encoder.h HINTS ${AOM_PKGCONF_INCLUDE_DIRS} ${AOM_PKGCONF_INCLUDEDIR} PATH_SUFFIXES AOM ) find_library(AOM_LIBRARY NAMES libaom aom HINTS ${AOM_PKGCONF_LIBRARY_DIRS} ${AOM_PKGCONF_LIBDIR} ) if(EXISTS "${AOM_INCLUDE_DIR}/aom/aom_decoder.h") set(AOM_DECODER_FOUND YES) else() set(AOM_DECODER_FOUND NO) endif() if(EXISTS "${AOM_INCLUDE_DIR}/aom/aom_encoder.h") set(AOM_ENCODER_FOUND YES) else() set(AOM_ENCODER_FOUND NO) endif() set(AOM_PROCESS_LIBS AOM_LIBRARY) set(AOM_PROCESS_INCLUDES AOM_INCLUDE_DIR) libfind_process(AOM) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(AOM REQUIRED_VARS AOM_INCLUDE_DIR AOM_LIBRARIES ) libheif-1.12.0/cmake/modules/FindLibde265.cmake0000644000175000017500000000211714003350402015715 00000000000000include(LibFindMacros) libfind_pkg_check_modules(LIBDE265_PKGCONF libde265) find_path(LIBDE265_INCLUDE_DIR NAMES libde265/de265.h HINTS ${LIBDE265_PKGCONF_INCLUDE_DIRS} ${LIBDE265_PKGCONF_INCLUDEDIR} PATH_SUFFIXES DE265 ) find_library(LIBDE265_LIBRARY NAMES libde265 de265 HINTS ${LIBDE265_PKGCONF_LIBRARY_DIRS} ${LIBDE265_PKGCONF_LIBDIR} ) set(LIBDE265_PROCESS_LIBS ${LIBDE265_LIBRARY}) set(LIBDE265_PROCESS_INCLUDES ${LIBDE265_INCLUDE_DIR}) libfind_process(LIBDE265) if(LIBDE265_INCLUDE_DIR) set(libde265_config_file "${LIBDE265_INCLUDE_DIR}/libde265/de265-version.h") if(EXISTS ${libde265_config_file}) file(STRINGS ${libde265_config_file} TMP REGEX "#define LIBDE265_VERSION .*$") string(REGEX REPLACE "#define LIBDE265_VERSION" "" TMP ${TMP}) string(REGEX MATCHALL "[0-9.]+" LIBDE265_VERSION ${TMP}) endif() endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(LIBDE265 REQUIRED_VARS LIBDE265_INCLUDE_DIRS LIBDE265_LIBRARIES VERSION_VAR LIBDE265_VERSION ) libheif-1.12.0/autogen.sh0000755000175000017500000000236714003350402012116 00000000000000#!/bin/bash set -eu # # HEIF codec. # Copyright (c) 2017 struktur AG, Joachim Bauch # # This file is part of libheif. # # libheif 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. # # libheif 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 libheif. If not, see . # ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [ -d "$ROOT/.git/hooks" ]; then echo "Installing pre-commit hook ..." ln -sf "$ROOT/scripts/pre-commit.hook" "$ROOT/.git/hooks/pre-commit" fi if [ -x "`which autoreconf 2>/dev/null`" ] ; then exec autoreconf -ivf fi LIBTOOLIZE=libtoolize SYSNAME=`uname` if [ "x$SYSNAME" = "xDarwin" ] ; then LIBTOOLIZE=glibtoolize fi aclocal -I m4 && \ autoheader && \ $LIBTOOLIZE && \ autoconf && \ automake --add-missing --force-missing --copy libheif-1.12.0/extra/0000775000175000017500000000000014044446310011323 500000000000000libheif-1.12.0/extra/getopt.c0000644000175000017500000001060314003350404012700 00000000000000/* $NetBSD: getopt.c,v 1.16 1999/12/02 13:15:56 kleink Exp $ */ /* * Copyright (c) 1987, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #if 0 static char sccsid[] = "@(#)getopt.c 8.3 (Berkeley) 4/27/95"; #endif #include #include #include #include #define __P(x) x #define _DIAGASSERT(x) assert(x) #ifdef __weak_alias __weak_alias(getopt,_getopt); #endif #ifdef __cplusplus extern "C" { #endif int opterr = 1, /* if error message should be printed */ optind = 1, /* index into parent argv vector */ optopt, /* character checked for validity */ optreset; /* reset getopt */ char *optarg; /* argument associated with option */ static char * _progname __P((char *)); int getopt_internal __P((int, char * const *, const char *)); static char * _progname(char * nargv0) { char * tmp; _DIAGASSERT(nargv0 != NULL); tmp = strrchr(nargv0, '/'); if (tmp) tmp++; else tmp = nargv0; return(tmp); } #define BADCH (int)'?' #define BADARG (int)':' #define EMSG "" /* * getopt -- * Parse argc/argv argument vector. */ int getopt(int nargc, char * nargv[], const char *ostr) { static char *__progname = 0; static char *place = EMSG; /* option letter processing */ const char *oli; /* option letter list index */ __progname = __progname?__progname:_progname(*nargv); _DIAGASSERT(nargv != NULL); _DIAGASSERT(ostr != NULL); if (optreset || !*place) { /* update scanning pointer */ optreset = 0; if (optind >= nargc || *(place = nargv[optind]) != '-') { place = EMSG; return (-1); } if (place[1] && *++place == '-' /* found "--" */ && place[1] == '\0') { ++optind; place = EMSG; return (-1); } } /* option letter okay? */ if ((optopt = (int)*place++) == (int)':' || !(oli = strchr(ostr, optopt))) { /* * if the user didn't specify '-' as an option, * assume it means -1. */ if (optopt == (int)'-') return (-1); if (!*place) ++optind; if (opterr && *ostr != ':') (void)fprintf(stderr, "%s: illegal option -- %c\n", __progname, optopt); return (BADCH); } if (*++oli != ':') { /* don't need argument */ optarg = NULL; if (!*place) ++optind; } else { /* need an argument */ if (*place) /* no white space */ optarg = place; else if (nargc <= ++optind) { /* no arg */ place = EMSG; if (*ostr == ':') return (BADARG); if (opterr) (void)fprintf(stderr, "%s: option requires an argument -- %c\n", __progname, optopt); return (BADCH); } else /* white space */ optarg = nargv[optind]; place = EMSG; ++optind; } return (optopt); /* dump back option letter */ } #ifdef __cplusplus } #endif libheif-1.12.0/extra/Makefile.in0000664000175000017500000003403014044226076013315 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = extra ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_c_cxx_compile_flags.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.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/visibility.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__extra_recursive_targets = format-recursive test-recursive am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_LIBFUZZER = @ENABLE_LIBFUZZER@ ENABLE_PARALLEL_TILE_DECODING = @ENABLE_PARALLEL_TILE_DECODING@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FUZZING_ENGINE = @FUZZING_ENGINE@ GO = @GO@ GREP = @GREP@ HAVE_CXX11 = @HAVE_CXX11@ HAVE_GO = @HAVE_GO@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBHEIF_AGE = @LIBHEIF_AGE@ LIBHEIF_CURRENT = @LIBHEIF_CURRENT@ LIBHEIF_REVISION = @LIBHEIF_REVISION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PROJECT_VERSION_MAJOR = @PROJECT_VERSION_MAJOR@ PROJECT_VERSION_MINOR = @PROJECT_VERSION_MINOR@ PROJECT_VERSION_PATCH = @PROJECT_VERSION_PATCH@ PROJECT_VERSION_TWEAK = @PROJECT_VERSION_TWEAK@ RANLIB = @RANLIB@ REQUIRES_PRIVATE = @REQUIRES_PRIVATE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WITH_EXAMPLES = @WITH_EXAMPLES@ 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_CXX = @ac_ct_CXX@ 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@ aom_CFLAGS = @aom_CFLAGS@ aom_LIBS = @aom_LIBS@ 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@ dav1d_CFLAGS = @dav1d_CFLAGS@ dav1d_LIBS = @dav1d_LIBS@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gdk_pixbuf_binary_version = @gdk_pixbuf_binary_version@ gdk_pixbuf_binarydir = @gdk_pixbuf_binarydir@ gdk_pixbuf_cache_file = @gdk_pixbuf_cache_file@ gdk_pixbuf_moduledir = @gdk_pixbuf_moduledir@ gdkpixbuf_CFLAGS = @gdkpixbuf_CFLAGS@ gdkpixbuf_LIBS = @gdkpixbuf_LIBS@ have_aom = @have_aom@ have_aom_decoder = @have_aom_decoder@ have_aom_encoder = @have_aom_encoder@ have_avif_decoder = @have_avif_decoder@ have_avif_encoder = @have_avif_encoder@ have_libde265 = @have_libde265@ have_rav1e = @have_rav1e@ have_x265 = @have_x265@ 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@ libde265_CFLAGS = @libde265_CFLAGS@ libde265_LIBS = @libde265_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libjpeg_CFLAGS = @libjpeg_CFLAGS@ libjpeg_LIBS = @libjpeg_LIBS@ libpng_CFLAGS = @libpng_CFLAGS@ libpng_LIBS = @libpng_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rav1e_CFLAGS = @rav1e_CFLAGS@ rav1e_LIBS = @rav1e_LIBS@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ x265_CFLAGS = @x265_CFLAGS@ x265_LIBS = @x265_LIBS@ EXTRA_DIST = \ getopt.c \ getopt.h \ getopt_long.c 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) --foreign extra/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign extra/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(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 format-local: test-local: tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile 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 mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: format: format-am format-am: format-local html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f 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: test: test-am test-am: test-local uninstall-am: .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 format-am format-local \ html html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am test-am \ test-local uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libheif-1.12.0/extra/Makefile.am0000644000175000017500000000007714003350404013272 00000000000000EXTRA_DIST = \ getopt.c \ getopt.h \ getopt_long.c libheif-1.12.0/extra/getopt.h0000644000175000017500000000472114003350404012711 00000000000000/* * Copyright (c) 1987, 1993, 1994, 1996 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifndef __GETOPT_H__ #define __GETOPT_H__ #ifdef __cplusplus extern "C" { #endif extern int opterr; /* if error message should be printed */ extern int optind; /* index into parent argv vector */ extern int optopt; /* character checked for validity */ extern int optreset; /* reset getopt */ extern char *optarg; /* argument associated with option */ struct option { const char *name; int has_arg; int *flag; int val; }; #define no_argument 0 #define required_argument 1 #define optional_argument 2 int getopt(int, char**, char*); int getopt_long(int, char**, char*, struct option*, int*); #ifdef __cplusplus } #endif #endif /* __GETOPT_H__ */ libheif-1.12.0/extra/getopt_long.c0000644000175000017500000001440114003350404013717 00000000000000/* * Copyright (c) 1987, 1993, 1994, 1996 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include #include #include #include #include #include "getopt.h" extern int opterr; /* if error message should be printed */ extern int optind; /* index into parent argv vector */ extern int optopt; /* character checked for validity */ extern int optreset; /* reset getopt */ extern char *optarg; /* argument associated with option */ #define __P(x) x #define _DIAGASSERT(x) assert(x) static char * __progname __P((char *)); int getopt_internal __P((int, char * const *, const char *)); static char * __progname(char * nargv0) { char * tmp; _DIAGASSERT(nargv0 != NULL); tmp = strrchr(nargv0, '/'); if (tmp) tmp++; else tmp = nargv0; return(tmp); } #define BADCH (int)'?' #define BADARG (int)':' #define EMSG "" /* * getopt -- * Parse argc/argv argument vector. */ int getopt_internal(int nargc, char ** nargv, const char *ostr) { static char *place = EMSG; /* option letter processing */ const char *oli; /* option letter list index */ _DIAGASSERT(nargv != NULL); _DIAGASSERT(ostr != NULL); if (optreset || !*place) { /* update scanning pointer */ optreset = 0; if (optind >= nargc || *(place = nargv[optind]) != '-') { place = EMSG; return (-1); } if (place[1] && *++place == '-') { /* found "--" */ /* ++optind; */ place = EMSG; return (-2); } } /* option letter okay? */ if ((optopt = (int)*place++) == (int)':' || !(oli = strchr(ostr, optopt))) { /* * if the user didn't specify '-' as an option, * assume it means -1. */ if (optopt == (int)'-') return (-1); if (!*place) ++optind; if (opterr && *ostr != ':') (void)fprintf(stderr, "%s: illegal option -- %c\n", __progname(nargv[0]), optopt); return (BADCH); } if (*++oli != ':') { /* don't need argument */ optarg = NULL; if (!*place) ++optind; } else { /* need an argument */ if (*place) /* no white space */ optarg = place; else if (nargc <= ++optind) { /* no arg */ place = EMSG; if ((opterr) && (*ostr != ':')) (void)fprintf(stderr, "%s: option requires an argument -- %c\n", __progname(nargv[0]), optopt); return (BADARG); } else /* white space */ optarg = nargv[optind]; place = EMSG; ++optind; } return (optopt); /* dump back option letter */ } #if 0 /* * getopt -- * Parse argc/argv argument vector. */ int getopt2(int nargc, char * nargv, const char *ostr) { int retval; if ((retval = getopt_internal(nargc, nargv, ostr)) == -2) { retval = -1; ++optind; } return(retval); } #endif /* * getopt_long -- * Parse argc/argv argument vector. */ int getopt_long(int nargc, char ** nargv, char * options, struct option * long_options, int * index) { int retval; _DIAGASSERT(nargv != NULL); _DIAGASSERT(options != NULL); _DIAGASSERT(long_options != NULL); /* index may be NULL */ if ((retval = getopt_internal(nargc, nargv, options)) == -2) { char *current_argv = nargv[optind++] + 2, *has_equal; int i, current_argv_len, match = -1; if (*current_argv == '\0') { return(-1); } if ((has_equal = strchr(current_argv, '=')) != NULL) { current_argv_len = has_equal - current_argv; has_equal++; } else current_argv_len = strlen(current_argv); for (i = 0; long_options[i].name; i++) { if (strncmp(current_argv, long_options[i].name, current_argv_len)) continue; if (strlen(long_options[i].name) == (unsigned)current_argv_len) { match = i; break; } if (match == -1) match = i; } if (match != -1) { if (long_options[match].has_arg == required_argument || long_options[match].has_arg == optional_argument) { if (has_equal) optarg = has_equal; else optarg = nargv[optind++]; } if ((long_options[match].has_arg == required_argument) && (optarg == NULL)) { /* * Missing argument, leading : * indicates no error should be generated */ if ((opterr) && (*options != ':')) (void)fprintf(stderr, "%s: option requires an argument -- %s\n", __progname(nargv[0]), current_argv); return (BADARG); } } else { /* No matching argument */ if ((opterr) && (*options != ':')) (void)fprintf(stderr, "%s: illegal option -- %s\n", __progname(nargv[0]), current_argv); return (BADCH); } if (long_options[match].flag) { *long_options[match].flag = long_options[match].val; retval = 0; } else retval = long_options[match].val; if (index) *index = match; } return(retval); } libheif-1.12.0/gdk-pixbuf/0000775000175000017500000000000014044446310012240 500000000000000libheif-1.12.0/gdk-pixbuf/Makefile.in0000664000175000017500000006206314044226076014241 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ @HAVE_GDKPIXBUF2_TRUE@am__append_1 = libpixbufloader-heif.la subdir = gdk-pixbuf ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_c_cxx_compile_flags.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.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/visibility.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(gdk_pixbuf_moduledir)" LTLIBRARIES = $(gdk_pixbuf_module_LTLIBRARIES) am__DEPENDENCIES_1 = am__libpixbufloader_heif_la_SOURCES_DIST = pixbufloader-heif.c @HAVE_GDKPIXBUF2_TRUE@am_libpixbufloader_heif_la_OBJECTS = libpixbufloader_heif_la-pixbufloader-heif.lo libpixbufloader_heif_la_OBJECTS = \ $(am_libpixbufloader_heif_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 = libpixbufloader_heif_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libpixbufloader_heif_la_CFLAGS) $(CFLAGS) \ $(libpixbufloader_heif_la_LDFLAGS) $(LDFLAGS) -o $@ @HAVE_GDKPIXBUF2_TRUE@am_libpixbufloader_heif_la_rpath = -rpath \ @HAVE_GDKPIXBUF2_TRUE@ $(gdk_pixbuf_moduledir) 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__maybe_remake_depfiles = depfiles am__depfiles_remade = \ ./$(DEPDIR)/libpixbufloader_heif_la-pixbufloader-heif.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libpixbufloader_heif_la_SOURCES) DIST_SOURCES = $(am__libpixbufloader_heif_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__extra_recursive_targets = format-recursive test-recursive 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__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_LIBFUZZER = @ENABLE_LIBFUZZER@ ENABLE_PARALLEL_TILE_DECODING = @ENABLE_PARALLEL_TILE_DECODING@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FUZZING_ENGINE = @FUZZING_ENGINE@ GO = @GO@ GREP = @GREP@ HAVE_CXX11 = @HAVE_CXX11@ HAVE_GO = @HAVE_GO@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBHEIF_AGE = @LIBHEIF_AGE@ LIBHEIF_CURRENT = @LIBHEIF_CURRENT@ LIBHEIF_REVISION = @LIBHEIF_REVISION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PROJECT_VERSION_MAJOR = @PROJECT_VERSION_MAJOR@ PROJECT_VERSION_MINOR = @PROJECT_VERSION_MINOR@ PROJECT_VERSION_PATCH = @PROJECT_VERSION_PATCH@ PROJECT_VERSION_TWEAK = @PROJECT_VERSION_TWEAK@ RANLIB = @RANLIB@ REQUIRES_PRIVATE = @REQUIRES_PRIVATE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WITH_EXAMPLES = @WITH_EXAMPLES@ 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_CXX = @ac_ct_CXX@ 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@ aom_CFLAGS = @aom_CFLAGS@ aom_LIBS = @aom_LIBS@ 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@ dav1d_CFLAGS = @dav1d_CFLAGS@ dav1d_LIBS = @dav1d_LIBS@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gdk_pixbuf_binary_version = @gdk_pixbuf_binary_version@ gdk_pixbuf_binarydir = @gdk_pixbuf_binarydir@ gdk_pixbuf_cache_file = @gdk_pixbuf_cache_file@ gdk_pixbuf_moduledir = @gdk_pixbuf_moduledir@ gdkpixbuf_CFLAGS = @gdkpixbuf_CFLAGS@ gdkpixbuf_LIBS = @gdkpixbuf_LIBS@ have_aom = @have_aom@ have_aom_decoder = @have_aom_decoder@ have_aom_encoder = @have_aom_encoder@ have_avif_decoder = @have_avif_decoder@ have_avif_encoder = @have_avif_encoder@ have_libde265 = @have_libde265@ have_rav1e = @have_rav1e@ have_x265 = @have_x265@ 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@ libde265_CFLAGS = @libde265_CFLAGS@ libde265_LIBS = @libde265_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libjpeg_CFLAGS = @libjpeg_CFLAGS@ libjpeg_LIBS = @libjpeg_LIBS@ libpng_CFLAGS = @libpng_CFLAGS@ libpng_LIBS = @libpng_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rav1e_CFLAGS = @rav1e_CFLAGS@ rav1e_LIBS = @rav1e_LIBS@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ x265_CFLAGS = @x265_CFLAGS@ x265_LIBS = @x265_LIBS@ AUTOMAKE_OPTIONS = subdir-objects gdk_pixbuf_module_LTLIBRARIES = $(am__append_1) @HAVE_GDKPIXBUF2_TRUE@libpixbufloader_heif_la_DEPENDENCIES = ../libheif/libheif.la @HAVE_GDKPIXBUF2_TRUE@libpixbufloader_heif_la_CFLAGS = -I$(top_srcdir) -I$(top_builddir) $(gdkpixbuf_CFLAGS) @HAVE_GDKPIXBUF2_TRUE@libpixbufloader_heif_la_LIBADD = ../libheif/libheif.la $(gdkpixbuf_LIBS) @HAVE_GDKPIXBUF2_TRUE@libpixbufloader_heif_la_LDFLAGS = -avoid-version -module @HAVE_GDKPIXBUF2_TRUE@libpixbufloader_heif_la_SOURCES = pixbufloader-heif.c EXTRA_DIST = CMakeLists.txt 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) --foreign gdk-pixbuf/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign gdk-pixbuf/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(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-gdk_pixbuf_moduleLTLIBRARIES: $(gdk_pixbuf_module_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(gdk_pixbuf_module_LTLIBRARIES)'; test -n "$(gdk_pixbuf_moduledir)" || 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)$(gdk_pixbuf_moduledir)'"; \ $(MKDIR_P) "$(DESTDIR)$(gdk_pixbuf_moduledir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(gdk_pixbuf_moduledir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(gdk_pixbuf_moduledir)"; \ } uninstall-gdk_pixbuf_moduleLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(gdk_pixbuf_module_LTLIBRARIES)'; test -n "$(gdk_pixbuf_moduledir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(gdk_pixbuf_moduledir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(gdk_pixbuf_moduledir)/$$f"; \ done clean-gdk_pixbuf_moduleLTLIBRARIES: -test -z "$(gdk_pixbuf_module_LTLIBRARIES)" || rm -f $(gdk_pixbuf_module_LTLIBRARIES) @list='$(gdk_pixbuf_module_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}; \ } libpixbufloader-heif.la: $(libpixbufloader_heif_la_OBJECTS) $(libpixbufloader_heif_la_DEPENDENCIES) $(EXTRA_libpixbufloader_heif_la_DEPENDENCIES) $(AM_V_CCLD)$(libpixbufloader_heif_la_LINK) $(am_libpixbufloader_heif_la_rpath) $(libpixbufloader_heif_la_OBJECTS) $(libpixbufloader_heif_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpixbufloader_heif_la-pixbufloader-heif.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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 $@ $< libpixbufloader_heif_la-pixbufloader-heif.lo: pixbufloader-heif.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) $(libpixbufloader_heif_la_CFLAGS) $(CFLAGS) -MT libpixbufloader_heif_la-pixbufloader-heif.lo -MD -MP -MF $(DEPDIR)/libpixbufloader_heif_la-pixbufloader-heif.Tpo -c -o libpixbufloader_heif_la-pixbufloader-heif.lo `test -f 'pixbufloader-heif.c' || echo '$(srcdir)/'`pixbufloader-heif.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libpixbufloader_heif_la-pixbufloader-heif.Tpo $(DEPDIR)/libpixbufloader_heif_la-pixbufloader-heif.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pixbufloader-heif.c' object='libpixbufloader_heif_la-pixbufloader-heif.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) $(libpixbufloader_heif_la_CFLAGS) $(CFLAGS) -c -o libpixbufloader_heif_la-pixbufloader-heif.lo `test -f 'pixbufloader-heif.c' || echo '$(srcdir)/'`pixbufloader-heif.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs format-local: test-local: ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(gdk_pixbuf_moduledir)"; 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-gdk_pixbuf_moduleLTLIBRARIES clean-generic \ clean-libtool mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/libpixbufloader_heif_la-pixbufloader-heif.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: format: format-am format-am: format-local html: html-am html-am: info: info-am info-am: install-data-am: install-gdk_pixbuf_moduleLTLIBRARIES install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libpixbufloader_heif_la-pixbufloader-heif.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: test: test-am test-am: test-local uninstall-am: uninstall-gdk_pixbuf_moduleLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-gdk_pixbuf_moduleLTLIBRARIES clean-generic clean-libtool \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am format-am format-local 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-gdk_pixbuf_moduleLTLIBRARIES 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 test-am test-local uninstall \ uninstall-am uninstall-gdk_pixbuf_moduleLTLIBRARIES .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libheif-1.12.0/gdk-pixbuf/Makefile.am0000644000175000017500000000077714003350405014217 00000000000000AUTOMAKE_OPTIONS = subdir-objects gdk_pixbuf_module_LTLIBRARIES = if HAVE_GDKPIXBUF2 gdk_pixbuf_module_LTLIBRARIES += libpixbufloader-heif.la libpixbufloader_heif_la_DEPENDENCIES = ../libheif/libheif.la libpixbufloader_heif_la_CFLAGS = -I$(top_srcdir) -I$(top_builddir) $(gdkpixbuf_CFLAGS) libpixbufloader_heif_la_LIBADD = ../libheif/libheif.la $(gdkpixbuf_LIBS) libpixbufloader_heif_la_LDFLAGS = -avoid-version -module libpixbufloader_heif_la_SOURCES = pixbufloader-heif.c endif EXTRA_DIST = CMakeLists.txt libheif-1.12.0/gdk-pixbuf/CMakeLists.txt0000644000175000017500000000154014003350405014710 00000000000000if(UNIX) find_package(PkgConfig) find_package(Threads) pkg_check_modules(GDKPIXBUF2 gdk-pixbuf-2.0) if(GDKPIXBUF2_FOUND) execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} gdk-pixbuf-2.0 --variable gdk_pixbuf_moduledir --define-variable=prefix=${CMAKE_INSTALL_PREFIX} OUTPUT_VARIABLE GDKPIXBUF2_MODULE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) add_library(pixbufloader-heif MODULE pixbufloader-heif.c) target_include_directories(pixbufloader-heif PRIVATE ${GDKPIXBUF2_INCLUDE_DIRS} ${libheif_BINARY_DIR} ${libheif_SOURCE_DIR}) target_link_libraries(pixbufloader-heif PUBLIC ${GDKPIXBUF2_LIBRARIES} heif) install(TARGETS pixbufloader-heif LIBRARY DESTINATION ${GDKPIXBUF2_MODULE_DIR}) endif() endif() libheif-1.12.0/gdk-pixbuf/pixbufloader-heif.c0000644000175000017500000001273514003350405015721 00000000000000/* * gdk-pixbuf loader module for libheif * Copyright (c) 2019 Oliver Giles * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #define GDK_PIXBUF_ENABLE_BACKEND #include #include G_MODULE_EXPORT void fill_vtable(GdkPixbufModule* module); G_MODULE_EXPORT void fill_info(GdkPixbufFormat* info); typedef struct { GdkPixbufModuleUpdatedFunc update_func; GdkPixbufModulePreparedFunc prepare_func; GdkPixbufModuleSizeFunc size_func; gpointer user_data; GByteArray* data; } HeifPixbufCtx; static gpointer begin_load(GdkPixbufModuleSizeFunc size_func, GdkPixbufModulePreparedFunc prepare_func, GdkPixbufModuleUpdatedFunc update_func, gpointer user_data, GError** error) { HeifPixbufCtx* hpc; hpc = g_new0(HeifPixbufCtx, 1); hpc->data = g_byte_array_new(); hpc->size_func = size_func; hpc->prepare_func = prepare_func; hpc->update_func = update_func; hpc->user_data = user_data; return hpc; } static void release_heif_image(guchar* pixels, gpointer data) { heif_image_release((struct heif_image*) data); } static gboolean stop_load(gpointer context, GError** error) { HeifPixbufCtx* hpc; struct heif_error err; struct heif_context* hc; struct heif_image_handle* hdl = NULL; struct heif_image* img = NULL; int width, height, stride; int requested_width, requested_height; const uint8_t* data; GdkPixbuf* pixbuf; gboolean result; result = FALSE; hpc = (HeifPixbufCtx*) context; hc = heif_context_alloc(); if (!hc) { g_warning("cannot allocate heif_context"); goto cleanup; } err = heif_context_read_from_memory_without_copy(hc, hpc->data->data, hpc->data->len, NULL); if (err.code != heif_error_Ok) { g_warning("%s", err.message); goto cleanup; } err = heif_context_get_primary_image_handle(hc, &hdl); if (err.code != heif_error_Ok) { g_warning("%s", err.message); goto cleanup; } int has_alpha = heif_image_handle_has_alpha_channel(hdl); err = heif_decode_image(hdl, &img, heif_colorspace_RGB, has_alpha ? heif_chroma_interleaved_RGBA : heif_chroma_interleaved_RGB, NULL); if (err.code != heif_error_Ok) { g_warning("%s", err.message); goto cleanup; } width = heif_image_get_width(img, heif_channel_interleaved); height = heif_image_get_height(img, heif_channel_interleaved); requested_width = width; requested_height = height; if (hpc->size_func) { (*hpc->size_func)(&requested_width, &requested_height, hpc->user_data); } if (requested_width > 0 && requested_height > 0 && (width != requested_width || height != requested_height)) { struct heif_image* resized; heif_image_scale_image(img, &resized, requested_width, requested_height, NULL); heif_image_release(img); width = requested_width; height = requested_height; img = resized; } data = heif_image_get_plane_readonly(img, heif_channel_interleaved, &stride); pixbuf = gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, has_alpha, 8, width, height, stride, release_heif_image, img); if (hpc->prepare_func) { (*hpc->prepare_func)(pixbuf, NULL, hpc->user_data); } if (hpc->update_func != NULL) { (*hpc->update_func)(pixbuf, 0, 0, gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf), hpc->user_data); } result = TRUE; cleanup: if (img) { // Do not free the image here when we pass it to gdk-pixbuf, as its memory will still be used by gdk-pixbuf. if (!result) { heif_image_release(img); } } if (hdl) { heif_image_handle_release(hdl); } if (hc) { heif_context_free(hc); } g_byte_array_free(hpc->data, TRUE); g_free(hpc); return result; } static gboolean load_increment(gpointer context, const guchar* buf, guint size, GError** error) { HeifPixbufCtx* ctx = (HeifPixbufCtx*) context; g_byte_array_append(ctx->data, buf, size); return TRUE; } void fill_vtable(GdkPixbufModule* module) { module->begin_load = begin_load; module->stop_load = stop_load; module->load_increment = load_increment; } void fill_info(GdkPixbufFormat* info) { static GdkPixbufModulePattern signature[] = { {" ftyp", "xxxx ", 100}, {NULL, NULL, 0} }; static gchar* mime_types[] = { "image/heif", "image/heic", "image/avif", NULL }; static gchar* extensions[] = { "heif", "heic", "avif", NULL }; info->name = "heif/avif"; info->signature = signature; info->domain = "pixbufloader-heif"; info->description = "HEIF/AVIF Image"; info->mime_types = mime_types; info->extensions = extensions; info->flags = GDK_PIXBUF_FORMAT_THREADSAFE; info->disabled = FALSE; info->license = "LGPL3"; } libheif-1.12.0/configure0000775000175000017500000242223514044226076012046 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for libheif 1.12.0. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: opensource@struktur.de about your system, including any $0: error possibly output before this message. Then install $0: a modern shell, or manually run the script under such a $0: 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='libheif' PACKAGE_TARNAME='libheif' PACKAGE_VERSION='1.12.0' PACKAGE_STRING='libheif 1.12.0' PACKAGE_BUGREPORT='opensource@struktur.de' PACKAGE_URL='' ac_unique_file="libheif/box.cc" # 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 ENABLE_PARALLEL_TILE_DECODING ENABLE_LIBFUZZER ENABLE_LIBFUZZER_FALSE ENABLE_LIBFUZZER_TRUE FUZZING_ENGINE have_avif_encoder have_avif_decoder HAVE_DAV1D_FALSE HAVE_DAV1D_TRUE dav1d_LIBS dav1d_CFLAGS have_rav1e HAVE_RAV1E_FALSE HAVE_RAV1E_TRUE rav1e_LIBS rav1e_CFLAGS gdk_pixbuf_cache_file gdk_pixbuf_moduledir gdk_pixbuf_binarydir gdk_pixbuf_binary_version HAVE_GDKPIXBUF2_FALSE HAVE_GDKPIXBUF2_TRUE gdkpixbuf_LIBS gdkpixbuf_CFLAGS HAVE_LIBPNG_FALSE HAVE_LIBPNG_TRUE libpng_LIBS libpng_CFLAGS HAVE_LIBJPEG_FALSE HAVE_LIBJPEG_TRUE libjpeg_LIBS libjpeg_CFLAGS have_x265 HAVE_X265_FALSE HAVE_X265_TRUE x265_LIBS x265_CFLAGS have_libde265 HAVE_LIBDE265_FALSE HAVE_LIBDE265_TRUE libde265_LIBS libde265_CFLAGS have_aom_encoder HAVE_AOM_ENCODER_FALSE HAVE_AOM_ENCODER_TRUE have_aom_decoder HAVE_AOM_DECODER_FALSE HAVE_AOM_DECODER_TRUE have_aom HAVE_AOM_FALSE HAVE_AOM_TRUE aom_LIBS aom_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG REQUIRES_PRIVATE HAVE_VISIBILITY_FALSE HAVE_VISIBILITY_TRUE HAVE_TESTS_FALSE HAVE_TESTS_TRUE HAVE_VISIBILITY CFLAG_VISIBILITY LIBOBJS HAVE_CXX11 AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__untar am__tar AMTAR SET_MAKE mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc MINGW_FALSE MINGW_TRUE WITH_EXAMPLES WITH_EXAMPLES_FALSE WITH_EXAMPLES_TRUE HAVE_GO HAVE_GO_FALSE HAVE_GO_TRUE GO INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM CXXCPP ac_ct_CXX CXXFLAGS CXX am__fastdepCCAS_FALSE am__fastdepCCAS_TRUE CCASDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR am__leading_dot CCASFLAGS CCAS CPP LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL AWK RANLIB STRIP ac_ct_AR AR DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC LIBTOOL target_os target_vendor target_cpu target host_os host_vendor host_cpu host build_os build_vendor build_cpu build LIBHEIF_AGE LIBHEIF_REVISION LIBHEIF_CURRENT PROJECT_VERSION_TWEAK PROJECT_VERSION_PATCH PROJECT_VERSION_MINOR PROJECT_VERSION_MAJOR target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_shared enable_static with_pic enable_fast_install with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock enable_dependency_tracking enable_go enable_examples enable_silent_rules enable_visibility enable_tests enable_aom enable_libde265 enable_x265 enable_gdk_pixbuf enable_rav1e enable_libfuzzer enable_multithreading ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS LT_SYS_LIBRARY_PATH CPP CCAS CCASFLAGS CXX CXXFLAGS CCC CXXCPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR aom_CFLAGS aom_LIBS libde265_CFLAGS libde265_LIBS x265_CFLAGS x265_LIBS libpng_CFLAGS libpng_LIBS gdkpixbuf_CFLAGS gdkpixbuf_LIBS rav1e_CFLAGS rav1e_LIBS dav1d_CFLAGS dav1d_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # 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 ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$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 runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $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 libheif 1.12.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/libheif] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of libheif 1.12.0:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-go Disable building Go code / examples. --disable-examples Disable building examples. --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --disable-visibility Disable visibility definitions. --enable-tests Enable compiling tests ('visibility' will be disabled). --disable-aom Disable building of aom decoder/encoder. --disable-libde265 Disable building of libde265 decoder. --disable-x265 Disable building of x265 encoder. --disable-gdk-pixbuf Disable building of gdk-pixbuf plugin. --disable-rav1e Disable building of rav1e encoder. --enable-libfuzzer Enable fuzzing with libFuzzer. --disable-multithreading Disable multithreaded decoding. Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-aix-soname=aix|svr4|both shared library versioning (aka "SONAME") variant to provide on AIX, [default=aix]. --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory LT_SYS_LIBRARY_PATH User-defined run-time library search path. CPP C preprocessor CCAS assembler compiler command (defaults to CC) CCASFLAGS assembler compiler flags (defaults to CFLAGS) CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP 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 aom_CFLAGS C compiler flags for aom, overriding pkg-config aom_LIBS linker flags for aom, overriding pkg-config libde265_CFLAGS C compiler flags for libde265, overriding pkg-config libde265_LIBS linker flags for libde265, overriding pkg-config x265_CFLAGS C compiler flags for x265, overriding pkg-config x265_LIBS linker flags for x265, overriding pkg-config libpng_CFLAGS C compiler flags for libpng, overriding pkg-config libpng_LIBS linker flags for libpng, overriding pkg-config gdkpixbuf_CFLAGS C compiler flags for gdkpixbuf, overriding pkg-config gdkpixbuf_LIBS linker flags for gdkpixbuf, overriding pkg-config rav1e_CFLAGS C compiler flags for rav1e, overriding pkg-config rav1e_LIBS linker flags for rav1e, overriding pkg-config dav1d_CFLAGS C compiler flags for dav1d, overriding pkg-config dav1d_LIBS linker flags for dav1d, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF libheif configure 1.12.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_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_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_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_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_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_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_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_cxx_preproc_warn_flag$ac_cxx_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_cxx_try_cpp # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_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_cxx_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_cxx_try_link # 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_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## ------------------------------------- ## ## Report this to opensource@struktur.de ## ## ------------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_find_uintX_t LINENO BITS VAR # ------------------------------------ # Finds an unsigned integer type with width BITS, setting cache variable VAR # accordingly. ac_fn_c_find_uintX_t () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 $as_echo_n "checking for uint$2_t... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" # Order is important - never check a type that is potentially smaller # than half of the expected target width. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 'unsigned long long int' 'unsigned short int' 'unsigned char'; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : case $ac_type in #( uint$2_t) : eval "$3=yes" ;; #( *) : eval "$3=\$ac_type" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if eval test \"x\$"$3"\" = x"no"; then : else break fi done 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_find_uintX_t 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 libheif $as_me 1.12.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" # Note: do not forget to set the version in the CMakeLists.txt file accordingly PROJECT_VERSION_MAJOR=1 PROJECT_VERSION_MINOR=12 PROJECT_VERSION_PATCH=0 PROJECT_VERSION_TWEAK=0 # From https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html: # If the library source code has changed at all since the last update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’). # If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. # If any interfaces have been added since the last public release, then increment age. # If any interfaces have been removed or changed since the last public release, then set age to 0. LIBHEIF_CURRENT=13 LIBHEIF_REVISION=0 LIBHEIF_AGE=12 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. # 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } if ${ac_cv_target+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- 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.6' macro_revision='2.4.6' 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 # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` 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 { $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 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 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 no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; 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 yes = "$with_gnu_ld"; 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 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $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 -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm { $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; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac 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"} 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 yes != "$GCC"; then reload_cmds=false fi ;; darwin*) if test yes = "$GCC"; then reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}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 # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # 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* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac 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 one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac 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=cr} { $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 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$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 no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $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 bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac 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 # 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 ia64 = "$host_cpu"; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $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 yes = "$pipe_works"; 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 yes = "$GCC"; 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; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 $as_echo_n "checking for a working dd... " >&6; } if ${ac_cv_path_lt_DD+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then ac_path_lt_DD_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in dd; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi $ac_path_lt_DD_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_lt_DD"; then : fi else ac_cv_path_lt_DD=$lt_DD fi rm -f conftest.i conftest2.i conftest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 $as_echo "$ac_cv_path_lt_DD" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 $as_echo_n "checking how to truncate binary pipes... " >&6; } if ${lt_cv_truncate_bin+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 $as_echo "$lt_cv_truncate_bin" >&6; } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $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 what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; 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* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $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-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" { $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 yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $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*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $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 yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $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 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi 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 cr libconftest.a conftest.o" >&5 $AR cr libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM 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 yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } ac_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 ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in 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 --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac else enable_static=yes fi # Check whether --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 # 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 shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test "${with_aix_soname+set}" = set; then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 ;; esac lt_cv_with_aix_soname=$with_aix_soname else if ${lt_cv_with_aix_soname+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 $as_echo "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi { $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 set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # 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 func_cc_basename $compiler cc_basename=$func_cc_basename_result # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $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 yes = "$GCC"; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $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" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* 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 yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test yes = "$GCC"; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi lt_prog_compiler_pic='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # flang / f18. f95 an alias for gfortran or flang on Debian flang* | f18* | f95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $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" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* 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 yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $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 yes = "$lt_cv_prog_compiler_static_works"; 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 no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; 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 no = "$hard_links"; 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 yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) 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 yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' export_dynamic_flag_spec='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='$wl--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs=yes ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | 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 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test no = "$ld_shlibs"; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct=no hardcode_direct_absolute=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${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 -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${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 yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # 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,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $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 yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $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 yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi link_all_deplibs=no else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs=yes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd* | 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* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='$wl-rpath,$libdir' fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='$wl-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='$wl-z,text' allow_undefined_flag='$wl-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $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 yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([A-Za-z]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # 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$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${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 # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/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* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $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 yes = "$hardcode_automatic"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $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 ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen=shl_load else { $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 no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" { $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 yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $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 yes = "$lt_cv_dlopen_self"; 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 yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $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 what 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 no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $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 yes = "$enable_shared" || 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: ac_aux_dir= for ac_dir in . "$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\"/." "$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. # Checks for programs. 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 DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 $as_echo "${_am_result}" >&6; } # 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 # By default we simply use the C compiler to build assembly code. test "${CCAS+set}" = set || CCAS=$CC test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS depcc="$CCAS" 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_CCAS_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_CCAS_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 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_CCAS_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CCAS_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then am__fastdepCCAS_TRUE= am__fastdepCCAS_FALSE='#' else am__fastdepCCAS_TRUE='#' am__fastdepCCAS_FALSE= fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu 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 if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $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; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_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_cxx_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_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_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_cxx_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 \"$CXXCPP\" 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 else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds reload_flag_CXX=$reload_flag reload_cmds_CXX=$reload_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_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 compiler_CXX=$CC func_cc_basename $compiler cc_basename=$func_cc_basename_result if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; 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 yes = "$with_gnu_ld"; 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 # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$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' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -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 { $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; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec_CXX='$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_CXX=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. no_undefined_flag_CXX='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} 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_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`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__CXX"; then lt_cv_aix_libpath__CXX=`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__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} 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_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`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__CXX"; then lt_cv_aix_libpath__CXX=`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__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' $wl-bernotok' allow_undefined_flag_CXX=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' fi archive_cmds_need_lc_CXX=yes archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32* | 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. hardcode_libdir_flag_spec_CXX=' ' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=yes file_list_spec_CXX='@' # 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_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' enable_shared_with_static_runtimes_CXX=yes # Don't use ranlib old_postinstall_cmds_CXX='chmod 644 $oldlib' postlink_cmds_CXX='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, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' export_dynamic_flag_spec_CXX='$wl--export-all-symbols' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec_CXX='`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_CXX='' fi link_all_deplibs_CXX=yes allow_undefined_flag_CXX=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" if test yes != "$lt_cv_apple_cc_single_mod"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi else ld_shlibs_CXX=no fi ;; os2*) hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_minus_L_CXX=yes allow_undefined_flag_CXX=unsupported shrext_cmds=.dll archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_CXX=yes ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; haiku*) archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs_CXX=yes ;; hpux9*) hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='$wl-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$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 ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && 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. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then archive_cmds_CXX='$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 archive_cmds_CXX='$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 link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=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. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | 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."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5].* | *pgcpp\ [1-5].*) prelink_cmds_CXX='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`"' old_archive_cmds_CXX='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' archive_cmds_CXX='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' archive_expsym_cmds_CXX='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 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`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 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_CXX='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 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object_CXX=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. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) ld_shlibs_CXX=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='$wl-E' whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else ld_shlibs_CXX=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. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' case $host in osf3*) archive_cmds_CXX='$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' ;; *) archive_cmds_CXX='$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 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='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. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then no_undefined_flag_CXX=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' fi hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='$wl-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_CXX='$wl-z,text' allow_undefined_flag_CXX='$wl-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ '"$old_archive_cmds_CXX" reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ '"$reload_cmds_CXX" ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no GCC_CXX=$GXX LD_CXX=$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... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _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 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 # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX=$prev$p else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX=$prev$p else postdeps_CXX="${postdeps_CXX} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$predep_objects_CXX"; then predep_objects_CXX=$p else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX=$p else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi lt_prog_compiler_pic_CXX='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-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_CXX='-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 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_CXX='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for 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_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; 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). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) # IBM XL 8.0, 9.0 on PPC and BlueGene lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { $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_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { $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_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_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_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then : else lt_prog_compiler_static_CXX= 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_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$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_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&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_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$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_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; 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 no = "$hard_links"; 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; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) export_symbols_cmds_CXX='$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_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' ;; esac ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs_CXX=no ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $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_CXX+:} 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_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no else lt_cv_archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; 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_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$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec_CXX='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${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_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_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 # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/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* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $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_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test yes = "$hardcode_automatic_CXX"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct_CXX" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && test no != "$hardcode_minus_L_CXX"; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 $as_echo "$hardcode_action_CXX" >&6; } if test relink = "$hardcode_action_CXX" || test yes = "$inherit_rpath_CXX"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" ac_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 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 # 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 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 { $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" # Check whether --enable-go was given. if test "${enable_go+set}" = set; then : enableval=$enable_go; fi if eval "test x$enable_go = x" ; then # Extract the first word of "go", so it can be a program name with args. set dummy go; 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_GO+:} false; then : $as_echo_n "(cached) " >&6 else case $GO in [\\/]* | ?:[\\/]*) ac_cv_path_GO="$GO" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/lib/go-1.10$PATH_SEPARATOR/usr/lib/go-1.9$PATH_SEPARATOR/usr/lib/go-1.8$PATH_SEPARATOR/usr/lib/go-1.7$PATH_SEPARATOR/usr/lib/go-1.6 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_GO="$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_GO" && ac_cv_path_GO="no" ;; esac fi GO=$ac_cv_path_GO if test -n "$GO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5 $as_echo "$GO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test "x$GO" != "xno" && test "x$GO" != "x"; then HAVE_GO_TRUE= HAVE_GO_FALSE='#' else HAVE_GO_TRUE='#' HAVE_GO_FALSE= fi # Check whether --enable-examples was given. if test "${enable_examples+set}" = set; then : enableval=$enable_examples; else enable_examples=yes fi if test "x$enable_examples" = "xyes"; then WITH_EXAMPLES_TRUE= WITH_EXAMPLES_FALSE='#' else WITH_EXAMPLES_TRUE='#' WITH_EXAMPLES_FALSE= fi if expr $host : '.*-mingw' >/dev/null 2>&1; then MINGW_TRUE= MINGW_FALSE='#' else MINGW_TRUE='#' MINGW_FALSE= fi am__api_version='1.16' { $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"` 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+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $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; } { $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-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='libheif' VERSION='1.12.0' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 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 depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi # 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 ax_cxx_compile_cxx11_required=true ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_success=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } if ${ax_cv_cxx_compile_cxx11+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template struct check { static_assert(sizeof(int) <= sizeof(T), "not big enough"); }; struct Base { virtual void f() {} }; struct Child : public Base { virtual void f() {} // DiFa: override {} # override not supported in gcc 4.6 }; typedef check> right_angle_brackets; int a; decltype(a) b; typedef check check_type; check_type c; check_type&& cr = static_cast(c); auto d = a; auto l = [](){}; _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ax_cv_cxx_compile_cxx11=yes else ax_cv_cxx_compile_cxx11=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } if test x$ax_cv_cxx_compile_cxx11 = xyes; then ac_success=yes fi if test x$ac_success = xno; then for switch in -std=gnu++11 -std=gnu++0x; do cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } if eval \${$cachevar+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template struct check { static_assert(sizeof(int) <= sizeof(T), "not big enough"); }; struct Base { virtual void f() {} }; struct Child : public Base { virtual void f() {} // DiFa: override {} # override not supported in gcc 4.6 }; typedef check> right_angle_brackets; int a; decltype(a) b; typedef check check_type; check_type c; check_type&& cr = static_cast(c); auto d = a; auto l = [](){}; _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : eval $cachevar=yes else eval $cachevar=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS="$ac_save_CXXFLAGS" fi eval ac_res=\$$cachevar { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXXFLAGS="$CXXFLAGS $switch" ac_success=yes break fi done fi if test x$ac_success = xno; then for switch in -std=c++11 -std=c++0x; do cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } if eval \${$cachevar+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template struct check { static_assert(sizeof(int) <= sizeof(T), "not big enough"); }; struct Base { virtual void f() {} }; struct Child : public Base { virtual void f() {} // DiFa: override {} # override not supported in gcc 4.6 }; typedef check> right_angle_brackets; int a; decltype(a) b; typedef check check_type; check_type c; check_type&& cr = static_cast(c); auto d = a; auto l = [](){}; _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : eval $cachevar=yes else eval $cachevar=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS="$ac_save_CXXFLAGS" fi eval ac_res=\$$cachevar { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXXFLAGS="$CXXFLAGS $switch" ac_success=yes break fi done 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 x$ax_cxx_compile_cxx11_required = xtrue; then if test x$ac_success = xno; then as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 fi else if test x$ac_success = xno; then HAVE_CXX11=0 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 $as_echo "$as_me: No compiler with C++11 support was found" >&6;} else HAVE_CXX11=1 $as_echo "#define HAVE_CXX11 1" >>confdefs.h fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } if ${ac_cv_header_stdbool_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; /* See body of main program for 'e'. */ char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; /* The following fails for HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html */ _Bool q = true; _Bool *pq = &q; int main () { bool e = &s; *pq |= q; *pq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdbool_h=yes else ac_cv_header_stdbool_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 $as_echo "$ac_cv_header_stdbool_h" >&6; } ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" if test "x$ac_cv_type__Bool" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 _ACEOF fi if test $ac_cv_header_stdbool_h = yes; then $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h fi for ac_header in inttypes.h stddef.h unistd.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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 $as_echo_n "checking for error_at_line... " >&6; } if ${ac_cv_lib_error_at_line+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_error_at_line=yes else ac_cv_lib_error_at_line=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: $ac_cv_lib_error_at_line" >&5 $as_echo "$ac_cv_lib_error_at_line" >&6; } if test $ac_cv_lib_error_at_line = no; then case " $LIBOBJS " in *" error.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; esac fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" case $ac_cv_c_uint8_t in #( no|yes) ;; #( *) $as_echo "#define _UINT8_T 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define uint8_t $ac_cv_c_uint8_t _ACEOF ;; esac ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" case $ac_cv_c_uint16_t in #( no|yes) ;; #( *) cat >>confdefs.h <<_ACEOF #define uint16_t $ac_cv_c_uint16_t _ACEOF ;; esac ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" case $ac_cv_c_uint32_t in #( no|yes) ;; #( *) $as_echo "#define _UINT32_T 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define uint32_t $ac_cv_c_uint32_t _ACEOF ;; esac ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" case $ac_cv_c_uint64_t in #( no|yes) ;; #( *) $as_echo "#define _UINT64_T 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define uint64_t $ac_cv_c_uint64_t _ACEOF ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_create+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $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 pthread_create (); int main () { return pthread_create (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_create=yes else ac_cv_lib_pthread_pthread_create=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_pthread_pthread_create" >&5 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPTHREAD 1 _ACEOF LIBS="-lpthread $LIBS" fi # Check whether --enable-visibility was given. if test "${enable_visibility+set}" = set; then : enableval=$enable_visibility; HAVE_VISIBILITY=0 else CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 $as_echo_n "checking for simple visibility declarations... " >&6; } if ${gl_cv_cc_visibility+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_cc_visibility=yes else gl_cv_cc_visibility=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 $as_echo "$gl_cv_cc_visibility" >&6; } if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 fi fi cat >>confdefs.h <<_ACEOF #define HAVE_VISIBILITY $HAVE_VISIBILITY _ACEOF fi # Check whether --enable-tests was given. if test "${enable_tests+set}" = set; then : enableval=$enable_tests; fi if test "x$enable_tests" = "xyes"; then : HAVE_TESTS=1 enable_visibility=no HAVE_VISIBILITY=0 CFLAG_VISIBILITY= fi if test "x$HAVE_TESTS" == "x1"; then HAVE_TESTS_TRUE= HAVE_TESTS_FALSE='#' else HAVE_TESTS_TRUE='#' HAVE_TESTS_FALSE= fi if test "x$HAVE_VISIBILITY" != "x0"; then HAVE_VISIBILITY_TRUE= HAVE_VISIBILITY_FALSE='#' else HAVE_VISIBILITY_TRUE='#' HAVE_VISIBILITY_FALSE= fi if eval "test x$enable_visibility = x" ; then enable_visibility=yes ; fi REQUIRES_PRIVATE="" 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 have_avif_decoder="no" have_avif_encoder="no" # Check whether --enable-aom was given. if test "${enable_aom+set}" = set; then : enableval=$enable_aom; fi if eval "test x$enable_aom = x" ; then enable_aom=yes ; fi if eval "test x$enable_aom != xno"; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aom" >&5 $as_echo_n "checking for aom... " >&6; } if test -n "$aom_CFLAGS"; then pkg_cv_aom_CFLAGS="$aom_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"aom\""; } >&5 ($PKG_CONFIG --exists --print-errors "aom") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_aom_CFLAGS=`$PKG_CONFIG --cflags "aom" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$aom_LIBS"; then pkg_cv_aom_LIBS="$aom_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"aom\""; } >&5 ($PKG_CONFIG --exists --print-errors "aom") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_aom_LIBS=`$PKG_CONFIG --libs "aom" 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 aom_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "aom" 2>&1` else aom_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "aom" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$aom_PKG_ERRORS" >&5 have_aom="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_aom="no" else aom_CFLAGS=$pkg_cv_aom_CFLAGS aom_LIBS=$pkg_cv_aom_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_AOM 1" >>confdefs.h REQUIRES_PRIVATE="$REQUIRES_PRIVATE aom" have_aom="yes" fi if eval "test x$have_aom = xyes"; then ac_fn_c_check_header_mongrel "$LINENO" "aom/aom_decoder.h" "ac_cv_header_aom_aom_decoder_h" "$ac_includes_default" if test "x$ac_cv_header_aom_aom_decoder_h" = xyes; then : $as_echo "#define HAVE_AOM_DECODER 1" >>confdefs.h have_aom_decoder="yes" have_avif_decoder="yes" else have_aom_decoder="no" fi ac_fn_c_check_header_mongrel "$LINENO" "aom/aom_encoder.h" "ac_cv_header_aom_aom_encoder_h" "$ac_includes_default" if test "x$ac_cv_header_aom_aom_encoder_h" = xyes; then : $as_echo "#define HAVE_AOM_ENCODER 1" >>confdefs.h have_aom_encoder="yes" have_avif_encoder="yes" else have_aom_encoder="no" fi fi else have_aom="no" have_aom_decoder="no" have_aom_encoder="no" fi if test "x$have_aom" = "xyes"; then HAVE_AOM_TRUE= HAVE_AOM_FALSE='#' else HAVE_AOM_TRUE='#' HAVE_AOM_FALSE= fi if test "x$have_aom_decoder" = "xyes"; then HAVE_AOM_DECODER_TRUE= HAVE_AOM_DECODER_FALSE='#' else HAVE_AOM_DECODER_TRUE='#' HAVE_AOM_DECODER_FALSE= fi if test "x$have_aom_encoder" = "xyes"; then HAVE_AOM_ENCODER_TRUE= HAVE_AOM_ENCODER_FALSE='#' else HAVE_AOM_ENCODER_TRUE='#' HAVE_AOM_ENCODER_FALSE= fi # Check whether --enable-libde265 was given. if test "${enable_libde265+set}" = set; then : enableval=$enable_libde265; fi if eval "test x$enable_libde265 = x" ; then enable_libde265=yes ; fi if eval "test x$enable_libde265 != xno"; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libde265" >&5 $as_echo_n "checking for libde265... " >&6; } if test -n "$libde265_CFLAGS"; then pkg_cv_libde265_CFLAGS="$libde265_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libde265\""; } >&5 ($PKG_CONFIG --exists --print-errors "libde265") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libde265_CFLAGS=`$PKG_CONFIG --cflags "libde265" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libde265_LIBS"; then pkg_cv_libde265_LIBS="$libde265_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libde265\""; } >&5 ($PKG_CONFIG --exists --print-errors "libde265") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libde265_LIBS=`$PKG_CONFIG --libs "libde265" 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 libde265_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libde265" 2>&1` else libde265_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libde265" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libde265_PKG_ERRORS" >&5 have_libde265="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_libde265="no" else libde265_CFLAGS=$pkg_cv_libde265_CFLAGS libde265_LIBS=$pkg_cv_libde265_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_LIBDE265 1" >>confdefs.h REQUIRES_PRIVATE="$REQUIRES_PRIVATE libde265" have_libde265="yes" fi else have_libde265="no" fi if test "x$have_libde265" = "xyes"; then HAVE_LIBDE265_TRUE= HAVE_LIBDE265_FALSE='#' else HAVE_LIBDE265_TRUE='#' HAVE_LIBDE265_FALSE= fi # Check whether --enable-x265 was given. if test "${enable_x265+set}" = set; then : enableval=$enable_x265; fi if eval "test x$enable_x265 = x" ; then enable_x265=yes ; fi if eval "test x$enable_x265 != xno"; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x265" >&5 $as_echo_n "checking for x265... " >&6; } if test -n "$x265_CFLAGS"; then pkg_cv_x265_CFLAGS="$x265_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x265\""; } >&5 ($PKG_CONFIG --exists --print-errors "x265") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_x265_CFLAGS=`$PKG_CONFIG --cflags "x265" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$x265_LIBS"; then pkg_cv_x265_LIBS="$x265_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x265\""; } >&5 ($PKG_CONFIG --exists --print-errors "x265") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_x265_LIBS=`$PKG_CONFIG --libs "x265" 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 x265_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x265" 2>&1` else x265_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x265" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$x265_PKG_ERRORS" >&5 have_x265="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_x265="no" else x265_CFLAGS=$pkg_cv_x265_CFLAGS x265_LIBS=$pkg_cv_x265_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_X265 1" >>confdefs.h REQUIRES_PRIVATE="$REQUIRES_PRIVATE x265" have_x265="yes" fi else have_x265="no" fi if test "x$have_x265" = "xyes"; then HAVE_X265_TRUE= HAVE_X265_FALSE='#' else HAVE_X265_TRUE='#' HAVE_X265_FALSE= fi for ac_header in jpeglib.h do : ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" if test "x$ac_cv_header_jpeglib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_JPEGLIB_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateCompress in -ljpeg" >&5 $as_echo_n "checking for jpeg_CreateCompress in -ljpeg... " >&6; } if ${ac_cv_lib_jpeg_jpeg_CreateCompress+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ljpeg $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 jpeg_CreateCompress (); int main () { return jpeg_CreateCompress (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_jpeg_jpeg_CreateCompress=yes else ac_cv_lib_jpeg_jpeg_CreateCompress=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_jpeg_jpeg_CreateCompress" >&5 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6; } if test "x$ac_cv_lib_jpeg_jpeg_CreateCompress" = xyes; then : $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h libjpeg_CFLAGS="" libjpeg_LIBS="-ljpeg" have_libjpeg="yes" else have_libjpeg="no" fi if eval "test x$have_libjpeg = xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ljpeg $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 jpeg_destroy_compress (); int main () { return jpeg_destroy_compress (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_jpeg_jpeg_destroy_compress=yes else ac_cv_lib_jpeg_jpeg_destroy_compress=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_jpeg_jpeg_destroy_compress" >&5 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then : $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h libjpeg_CFLAGS="" libjpeg_LIBS="-ljpeg" have_libjpeg="yes" else have_libjpeg="no" fi fi if test "x$have_libjpeg" = "xyes"; then HAVE_LIBJPEG_TRUE= HAVE_LIBJPEG_FALSE='#' else HAVE_LIBJPEG_TRUE='#' HAVE_LIBJPEG_FALSE= fi if eval "test x$have_libjpeg = xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_write_icc_profile" >&5 $as_echo_n "checking for jpeg_write_icc_profile... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { jpeg_write_icc_profile(NULL, NULL, 0); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : has_jpeg_write_icc_profile=yes else has_jpeg_write_icc_profile=no fi rm -f core conftest.err conftest.$ac_objext 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_jpeg_write_icc_profile" >&5 $as_echo "$has_jpeg_write_icc_profile" >&6; } if eval "test x$has_jpeg_write_icc_profile = xyes"; then $as_echo "#define HAVE_JPEG_WRITE_ICC_PROFILE 1" >>confdefs.h fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5 $as_echo_n "checking for libpng... " >&6; } if test -n "$libpng_CFLAGS"; then pkg_cv_libpng_CFLAGS="$libpng_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libpng_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libpng_LIBS"; then pkg_cv_libpng_LIBS="$libpng_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libpng_LIBS=`$PKG_CONFIG --libs "libpng" 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 libpng_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1` else libpng_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libpng_PKG_ERRORS" >&5 have_libpng="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_libpng="no" else libpng_CFLAGS=$pkg_cv_libpng_CFLAGS libpng_LIBS=$pkg_cv_libpng_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h have_libpng="yes" fi if test "x$have_libpng" = "xyes"; then HAVE_LIBPNG_TRUE= HAVE_LIBPNG_FALSE='#' else HAVE_LIBPNG_TRUE='#' HAVE_LIBPNG_FALSE= fi # Check whether --enable-gdk-pixbuf was given. if test "${enable_gdk_pixbuf+set}" = set; then : enableval=$enable_gdk_pixbuf; fi if eval "test x$enable_gdk_pixbuf = x" ; then enable_gdk_pixbuf=yes ; fi if eval "test x$enable_gdk_pixbuf != xno"; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdkpixbuf" >&5 $as_echo_n "checking for gdkpixbuf... " >&6; } if test -n "$gdkpixbuf_CFLAGS"; then pkg_cv_gdkpixbuf_CFLAGS="$gdkpixbuf_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_gdkpixbuf_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$gdkpixbuf_LIBS"; then pkg_cv_gdkpixbuf_LIBS="$gdkpixbuf_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_gdkpixbuf_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $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 gdkpixbuf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdk-pixbuf-2.0" 2>&1` else gdkpixbuf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdk-pixbuf-2.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$gdkpixbuf_PKG_ERRORS" >&5 have_gdkpixbuf2="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_gdkpixbuf2="no" else gdkpixbuf_CFLAGS=$pkg_cv_gdkpixbuf_CFLAGS gdkpixbuf_LIBS=$pkg_cv_gdkpixbuf_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_GDKPIXBUF2 1" >>confdefs.h have_gdkpixbuf2="yes" fi else have_gdkpixbuf2="no" fi if test "x$have_gdkpixbuf2" = "xyes"; then HAVE_GDKPIXBUF2_TRUE= HAVE_GDKPIXBUF2_FALSE='#' else HAVE_GDKPIXBUF2_TRUE='#' HAVE_GDKPIXBUF2_FALSE= fi if eval "test x$have_gdkpixbuf2 = xyes"; then gdk_pixbuf_binary_version="`$PKG_CONFIG --variable=gdk_pixbuf_binary_version gdk-pixbuf-2.0`" gdk_pixbuf_binarydir="`$PKG_CONFIG --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0`" gdk_pixbuf_moduledir=`$PKG_CONFIG --variable gdk_pixbuf_moduledir gdk-pixbuf-2.0` gdk_pixbuf_cache_file=`$PKG_CONFIG --variable gdk_pixbuf_cache_file gdk-pixbuf-2.0` fi # Check whether --enable-rav1e was given. if test "${enable_rav1e+set}" = set; then : enableval=$enable_rav1e; fi if eval "test x$enable_rav1e = x" ; then enable_rav1e=yes ; fi if eval "test x$enable_rav1e != xno"; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rav1e" >&5 $as_echo_n "checking for rav1e... " >&6; } if test -n "$rav1e_CFLAGS"; then pkg_cv_rav1e_CFLAGS="$rav1e_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rav1e\""; } >&5 ($PKG_CONFIG --exists --print-errors "rav1e") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_rav1e_CFLAGS=`$PKG_CONFIG --cflags "rav1e" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$rav1e_LIBS"; then pkg_cv_rav1e_LIBS="$rav1e_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rav1e\""; } >&5 ($PKG_CONFIG --exists --print-errors "rav1e") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_rav1e_LIBS=`$PKG_CONFIG --libs "rav1e" 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 rav1e_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "rav1e" 2>&1` else rav1e_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "rav1e" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$rav1e_PKG_ERRORS" >&5 have_rav1e="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_rav1e="no" else rav1e_CFLAGS=$pkg_cv_rav1e_CFLAGS rav1e_LIBS=$pkg_cv_rav1e_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_RAV1E 1" >>confdefs.h have_avif_encoder="yes" REQUIRES_PRIVATE="$REQUIRES_PRIVATE rav1e" have_rav1e="yes" fi else have_rav1e="no" fi if test "x$have_rav1e" = "xyes"; then HAVE_RAV1E_TRUE= HAVE_RAV1E_FALSE='#' else HAVE_RAV1E_TRUE='#' HAVE_RAV1E_FALSE= fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dav1d" >&5 $as_echo_n "checking for dav1d... " >&6; } if test -n "$dav1d_CFLAGS"; then pkg_cv_dav1d_CFLAGS="$dav1d_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dav1d\""; } >&5 ($PKG_CONFIG --exists --print-errors "dav1d") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_dav1d_CFLAGS=`$PKG_CONFIG --cflags "dav1d" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$dav1d_LIBS"; then pkg_cv_dav1d_LIBS="$dav1d_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dav1d\""; } >&5 ($PKG_CONFIG --exists --print-errors "dav1d") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_dav1d_LIBS=`$PKG_CONFIG --libs "dav1d" 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 dav1d_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dav1d" 2>&1` else dav1d_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dav1d" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$dav1d_PKG_ERRORS" >&5 have_dav1d="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_dav1d="no" else dav1d_CFLAGS=$pkg_cv_dav1d_CFLAGS dav1d_LIBS=$pkg_cv_dav1d_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_DAV1D 1" >>confdefs.h have_avif_decoder="yes" REQUIRES_PRIVATE="$REQUIRES_PRIVATE dav1d" have_dav1d="yes" fi if test "x$have_dav1d" = "xyes"; then HAVE_DAV1D_TRUE= HAVE_DAV1D_FALSE='#' else HAVE_DAV1D_TRUE='#' HAVE_DAV1D_FALSE= fi # Check whether --enable-libfuzzer was given. if test "${enable_libfuzzer+set}" = set; then : enableval=$enable_libfuzzer; else enable_libfuzzer=no fi if eval "test x$enable_libfuzzer != xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Enable libFuzzer" >&5 $as_echo "$as_me: Enable libFuzzer" >&6;} $as_echo "#define HAVE_LIBFUZZER 1" >>confdefs.h FUZZING_ENGINE="-lFuzzingEngine" if eval "test x$enable_libfuzzer != xyes"; then FUZZING_ENGINE="$enable_libfuzzer" fi { $as_echo "$as_me:${as_lineno-$LINENO}: Fuzzing engine flags: $FUZZING_ENGINE" >&5 $as_echo "$as_me: Fuzzing engine flags: $FUZZING_ENGINE" >&6;} fi if test "x$enable_libfuzzer" != "xno"; then ENABLE_LIBFUZZER_TRUE= ENABLE_LIBFUZZER_FALSE='#' else ENABLE_LIBFUZZER_TRUE='#' ENABLE_LIBFUZZER_FALSE= fi # Check whether --enable-multithreading was given. if test "${enable_multithreading+set}" = set; then : enableval=$enable_multithreading; fi if eval "test x$enable_multithreading = x" ; then enable_multithreading=yes ; fi if eval "test x$enable_multithreading != xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Enable multithreading" >&5 $as_echo "$as_me: Enable multithreading" >&6;} $as_echo "#define ENABLE_PARALLEL_TILE_DECODING 1" >>confdefs.h fi WARNING_FLAGS="-Wall -Werror -Wsign-compare -Wconversion -Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error=deprecated-declarations" CXXFLAGS="$CXXFLAGS $WARNING_FLAGS" CFLAGS="$CFLAGS $WARNING_FLAGS" NEW_CFLAGS="$CFLAGS" NEW_CXXFLAGS="$CXXFLAGS" for ac_flag in -Wno-error=potentially-evaluated-expression do { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports $ac_flag" >&5 $as_echo_n "checking whether compiler supports $ac_flag... " >&6; } CXXFLAGS="$NEW_CXXFLAGS $ac_flag" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : NEW_CFLAGS="$NEW_CFLAGS $ac_flag" NEW_CXXFLAGS="$NEW_CXXFLAGS $ac_flag" { $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 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done CFLAGS=$NEW_CFLAGS CXXFLAGS=$NEW_CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: ---------------------------------------" >&5 $as_echo "$as_me: ---------------------------------------" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: Multithreading: $enable_multithreading" >&5 $as_echo "$as_me: Multithreading: $enable_multithreading" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: Symbol visibility: $enable_visibility" >&5 $as_echo "$as_me: Symbol visibility: $enable_visibility" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: libaom decoder: $have_aom_decoder" >&5 $as_echo "$as_me: libaom decoder: $have_aom_decoder" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: libaom encoder: $have_aom_encoder" >&5 $as_echo "$as_me: libaom encoder: $have_aom_encoder" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: rav1e encoder: $have_rav1e" >&5 $as_echo "$as_me: rav1e encoder: $have_rav1e" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: dav1d decoder: $have_dav1d" >&5 $as_echo "$as_me: dav1d decoder: $have_dav1d" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: libde265 decoder: $have_libde265" >&5 $as_echo "$as_me: libde265 decoder: $have_libde265" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: libx265 encoder: $have_x265" >&5 $as_echo "$as_me: libx265 encoder: $have_x265" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: JPEG output: $have_libjpeg" >&5 $as_echo "$as_me: JPEG output: $have_libjpeg" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: PNG output: $have_libpng" >&5 $as_echo "$as_me: PNG output: $have_libpng" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: GdkPixbuf2 loader: $have_gdkpixbuf2" >&5 $as_echo "$as_me: GdkPixbuf2 loader: $have_gdkpixbuf2" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: Examples: $enable_examples" >&5 $as_echo "$as_me: Examples: $enable_examples" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: Tests: $enable_tests (tests will cause 'visibility' to be turned off)" >&5 $as_echo "$as_me: Tests: $enable_tests (tests will cause 'visibility' to be turned off)" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: ---------------------------------------" >&5 $as_echo "$as_me: ---------------------------------------" >&6;} ac_config_files="$ac_config_files Makefile" ac_config_files="$ac_config_files examples/Makefile" ac_config_files="$ac_config_files extra/Makefile" ac_config_files="$ac_config_files fuzzing/Makefile" ac_config_files="$ac_config_files gdk-pixbuf/Makefile" ac_config_files="$ac_config_files go/Makefile" ac_config_files="$ac_config_files gnome/Makefile" ac_config_files="$ac_config_files scripts/Makefile" ac_config_files="$ac_config_files tests/Makefile" ac_config_files="$ac_config_files libheif/Makefile" ac_config_files="$ac_config_files libheif/heif_version.h" ac_config_files="$ac_config_files libheif.pc" 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 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__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_GO_TRUE}" && test -z "${HAVE_GO_FALSE}"; then as_fn_error $? "conditional \"HAVE_GO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then as_fn_error $? "conditional \"MINGW\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi { $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 -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${HAVE_TESTS_TRUE}" && test -z "${HAVE_TESTS_FALSE}"; then as_fn_error $? "conditional \"HAVE_TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_VISIBILITY_TRUE}" && test -z "${HAVE_VISIBILITY_FALSE}"; then as_fn_error $? "conditional \"HAVE_VISIBILITY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_AOM_TRUE}" && test -z "${HAVE_AOM_FALSE}"; then as_fn_error $? "conditional \"HAVE_AOM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_AOM_DECODER_TRUE}" && test -z "${HAVE_AOM_DECODER_FALSE}"; then as_fn_error $? "conditional \"HAVE_AOM_DECODER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_AOM_ENCODER_TRUE}" && test -z "${HAVE_AOM_ENCODER_FALSE}"; then as_fn_error $? "conditional \"HAVE_AOM_ENCODER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LIBDE265_TRUE}" && test -z "${HAVE_LIBDE265_FALSE}"; then as_fn_error $? "conditional \"HAVE_LIBDE265\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_X265_TRUE}" && test -z "${HAVE_X265_FALSE}"; then as_fn_error $? "conditional \"HAVE_X265\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then as_fn_error $? "conditional \"HAVE_LIBJPEG\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LIBPNG_TRUE}" && test -z "${HAVE_LIBPNG_FALSE}"; then as_fn_error $? "conditional \"HAVE_LIBPNG\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_GDKPIXBUF2_TRUE}" && test -z "${HAVE_GDKPIXBUF2_FALSE}"; then as_fn_error $? "conditional \"HAVE_GDKPIXBUF2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_RAV1E_TRUE}" && test -z "${HAVE_RAV1E_FALSE}"; then as_fn_error $? "conditional \"HAVE_RAV1E\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_DAV1D_TRUE}" && test -z "${HAVE_DAV1D_FALSE}"; then as_fn_error $? "conditional \"HAVE_DAV1D\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_LIBFUZZER_TRUE}" && test -z "${ENABLE_LIBFUZZER_FALSE}"; then as_fn_error $? "conditional \"ENABLE_LIBFUZZER\" 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 libheif $as_me 1.12.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ libheif config.status 1.12.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 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_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $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_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ reload_flag_CXX \ compiler_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_static_CXX \ lt_cv_prog_compiler_c_o_CXX \ export_dynamic_flag_spec_CXX \ whole_archive_flag_spec_CXX \ compiler_needs_object_CXX \ with_gnu_ld_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_separator_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX \ file_list_spec_CXX \ compiler_lib_search_dirs_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path \ reload_cmds_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ export_symbols_cmds_CXX \ prelink_cmds_CXX \ postlink_cmds_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" _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" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; "fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES fuzzing/Makefile" ;; "gdk-pixbuf/Makefile") CONFIG_FILES="$CONFIG_FILES gdk-pixbuf/Makefile" ;; "go/Makefile") CONFIG_FILES="$CONFIG_FILES go/Makefile" ;; "gnome/Makefile") CONFIG_FILES="$CONFIG_FILES gnome/Makefile" ;; "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; "libheif/Makefile") CONFIG_FILES="$CONFIG_FILES libheif/Makefile" ;; "libheif/heif_version.h") CONFIG_FILES="$CONFIG_FILES libheif/heif_version.h" ;; "libheif.pc") CONFIG_FILES="$CONFIG_FILES libheif.pc" ;; *) 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 "libtool":C) # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # The names of the tagged configurations supported by this script. available_tags='CXX ' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # 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 into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using 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_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF ;; "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. Try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; 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 libheif-1.12.0/post.js0000644000175000017500000001461514003350417011445 00000000000000function StringToArrayBuffer(str) { var buf = new ArrayBuffer(str.length); var bufView = new Uint8Array(buf); for (var i=0, strLen=str.length; i> 1); yval = 1.164 * (y[yoffset + xpos] - 16); uval = u[uoffset + x2] - 128; vval = v[voffset + x2] - 128; dest[(i<<2)+0] = yval + 1.596 * vval; dest[(i<<2)+1] = yval - 0.813 * vval - 0.391 * uval; dest[(i<<2)+2] = yval + 2.018 * uval; dest[(i<<2)+3] = 0xff; i++; xpos++; if (xpos < w) { yval = 1.164 * (y[yoffset + xpos] - 16); dest[(i<<2)+0] = yval + 1.596 * vval; dest[(i<<2)+1] = yval - 0.813 * vval - 0.391 * uval; dest[(i<<2)+2] = yval + 2.018 * uval; dest[(i<<2)+3] = 0xff; i++; xpos++; } if (xpos === w) { xpos = 0; ypos++; yoffset += stridey; uoffset = ((ypos >> 1) * strideu); voffset = ((ypos >> 1) * stridev); } } callback(image_data); }.bind(this), 0); }; var HeifDecoder = function() { this.decoder = null; }; HeifDecoder.prototype.decode = function(buffer) { if (this.decoder) { libheif.heif_context_free(this.decoder); } this.decoder = libheif.heif_context_alloc(); if (!this.decoder) { console.log("Could not create HEIF context"); return []; } var error = libheif.heif_context_read_from_memory(this.decoder, buffer); if (error.code !== libheif.heif_error_Ok) { console.log("Could not parse HEIF file", error); return []; } var ids = libheif.heif_js_context_get_list_of_top_level_image_IDs(this.decoder); if (!ids || ids.code) { console.log("Error loading image ids", ids); return []; } else if (!ids.length) { console.log("No images found"); return []; } var result = []; for (var i = 0; i < ids.length; i++) { var handle = libheif.heif_js_context_get_image_handle(this.decoder, ids[i]); if (!handle || handle.code) { console.log("Could not get image data for id", ids[i], handle); continue; } result.push(new HeifImage(handle)); } return result; }; var libheif = { // Expose high-level API. /** @expose */ HeifDecoder: HeifDecoder, // Expose low-level API. /** @expose */ fourcc: function(s) { return s.charCodeAt(0) << 24 | s.charCodeAt(1) << 16 | s.charCodeAt(2) << 8 | s.charCodeAt(3); } }; var key; // Expose enum values. var enums = { "heif_error_code": true, "heif_suberror_code": true, "heif_compression_format": true, "heif_chroma": true, "heif_colorspace": true, "heif_channel": true }; var e; for (e in enums) { if (!enums.hasOwnProperty(e)) { continue; } for (key in Module[e]) { if (!Module[e].hasOwnProperty(key) || key === "values") { continue; } libheif[key] = Module[e][key]; } } // Expose internal C API. for (key in Module) { if (enums.hasOwnProperty(key) || key.indexOf("heif_") !== 0) { continue; } libheif[key] = Module[key]; } // don't pollute the global namespace delete this['Module']; // On IE this function is called with "undefined" as first parameter. Override // with a version that supports this behaviour. function createNamedFunction(name, body) { if (!name) { name = "function_" + (new Date()); } name = makeLegalFunctionName(name); /*jshint evil:true*/ return new Function( "body", "return function " + name + "() {\n" + " \"use strict\";" + " return body.apply(this, arguments);\n" + "};\n" )(body); } var root = this; if (typeof exports !== 'undefined') { if (typeof module !== 'undefined' && module.exports) { /** @expose */ exports = module.exports = libheif; } /** @expose */ exports.libheif = libheif; } else { /** @expose */ root.libheif = libheif; } if (typeof define === "function" && define.amd) { /** @expose */ define([], function() { return libheif; }); } // NOTE: wrapped inside "(function() {" block from pre.js }).call(this); libheif-1.12.0/Makefile.in0000664000175000017500000007350614044226076012205 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_c_cxx_compile_flags.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.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/visibility.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = libheif.pc CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkgconfigdir)" DATA = $(pkgconfig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir distdir-am dist dist-all distcheck am__extra_recursive_targets = format-recursive test-recursive 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) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/libheif.pc.in COPYING compile config.guess \ config.sub depcomp install-sh ltmain.sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip 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@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_LIBFUZZER = @ENABLE_LIBFUZZER@ ENABLE_PARALLEL_TILE_DECODING = @ENABLE_PARALLEL_TILE_DECODING@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FUZZING_ENGINE = @FUZZING_ENGINE@ GO = @GO@ GREP = @GREP@ HAVE_CXX11 = @HAVE_CXX11@ HAVE_GO = @HAVE_GO@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBHEIF_AGE = @LIBHEIF_AGE@ LIBHEIF_CURRENT = @LIBHEIF_CURRENT@ LIBHEIF_REVISION = @LIBHEIF_REVISION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PROJECT_VERSION_MAJOR = @PROJECT_VERSION_MAJOR@ PROJECT_VERSION_MINOR = @PROJECT_VERSION_MINOR@ PROJECT_VERSION_PATCH = @PROJECT_VERSION_PATCH@ PROJECT_VERSION_TWEAK = @PROJECT_VERSION_TWEAK@ RANLIB = @RANLIB@ REQUIRES_PRIVATE = @REQUIRES_PRIVATE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WITH_EXAMPLES = @WITH_EXAMPLES@ 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_CXX = @ac_ct_CXX@ 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@ aom_CFLAGS = @aom_CFLAGS@ aom_LIBS = @aom_LIBS@ 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@ dav1d_CFLAGS = @dav1d_CFLAGS@ dav1d_LIBS = @dav1d_LIBS@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gdk_pixbuf_binary_version = @gdk_pixbuf_binary_version@ gdk_pixbuf_binarydir = @gdk_pixbuf_binarydir@ gdk_pixbuf_cache_file = @gdk_pixbuf_cache_file@ gdk_pixbuf_moduledir = @gdk_pixbuf_moduledir@ gdkpixbuf_CFLAGS = @gdkpixbuf_CFLAGS@ gdkpixbuf_LIBS = @gdkpixbuf_LIBS@ have_aom = @have_aom@ have_aom_decoder = @have_aom_decoder@ have_aom_encoder = @have_aom_encoder@ have_avif_decoder = @have_avif_decoder@ have_avif_encoder = @have_avif_encoder@ have_libde265 = @have_libde265@ have_rav1e = @have_rav1e@ have_x265 = @have_x265@ 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@ libde265_CFLAGS = @libde265_CFLAGS@ libde265_LIBS = @libde265_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libjpeg_CFLAGS = @libjpeg_CFLAGS@ libjpeg_LIBS = @libjpeg_LIBS@ libpng_CFLAGS = @libpng_CFLAGS@ libpng_LIBS = @libpng_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rav1e_CFLAGS = @rav1e_CFLAGS@ rav1e_LIBS = @rav1e_LIBS@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ x265_CFLAGS = @x265_CFLAGS@ x265_LIBS = @x265_LIBS@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = \ libheif \ examples \ extra \ fuzzing \ gdk-pixbuf \ gnome \ go \ scripts \ tests pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libheif.pc EXTRA_DIST = \ .github/workflows/*.yml \ appveyor.yml \ autogen.sh \ CMakeLists.txt \ CPPLINT.cfg \ README.md \ pre.js \ post.js \ build-emscripten.sh \ cmake/modules/*.cmake all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(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 libheif.pc: $(top_builddir)/config.status $(srcdir)/libheif.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" format-local: test-local: ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) 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 $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: format: format-recursive format-am: format-local html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-pkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-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: test: test-recursive test-am: test-local uninstall-am: uninstall-pkgconfigDATA .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ dist-xz dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-libtool distclean-tags distcleancheck \ distdir distuninstallcheck dvi dvi-am format-am format-local \ 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-pkgconfigDATA 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 test-am test-local uninstall uninstall-am \ uninstall-pkgconfigDATA .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libheif-1.12.0/.github/0000775000175000017500000000000014044446310011540 500000000000000libheif-1.12.0/.github/workflows/0000775000175000017500000000000014044446310013575 500000000000000libheif-1.12.0/.github/workflows/go.yml0000644000175000017500000000123414003350400014630 00000000000000name: go on: push: branches: [ master ] pull_request: branches: [ master ] jobs: libde265: strategy: matrix: libde265-version: - "1" - "2" env: WITH_LIBDE265: ${{ matrix.libde265-version }} WITH_X265: 1 WITH_GRAPHICS: 1 GO: 1 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: "1.10" - name: Install dependencies run: | ./scripts/install-ci-linux.sh - name: Prepare CI run: | ./scripts/prepare-ci.sh - name: Run tests run: | ./scripts/run-ci.sh libheif-1.12.0/.github/workflows/osx.yml0000644000175000017500000000144214003350400015035 00000000000000name: osx on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: strategy: matrix: env: - { NAME: "nothing" } - { NAME: "cmake", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 1, CMAKE: 1 } - { NAME: "libde265 (1) / x265 / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_LIBDE265: 1 } - { NAME: "libde265 (2) / x265 / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_LIBDE265: 2 } env: ${{ matrix.env }} runs-on: macos-10.15 steps: - uses: actions/checkout@v2 - name: Install dependencies run: | ./scripts/install-ci-osx.sh - name: Prepare CI run: | ./scripts/prepare-ci.sh - name: Run tests run: | ./scripts/run-ci.sh libheif-1.12.0/.github/workflows/fuzzer.yml0000644000175000017500000000077114003350400015555 00000000000000name: fuzzer on: push: branches: [ master ] pull_request: branches: [ master ] jobs: fuzzer: env: WITH_AOM: 1 WITH_GRAPHICS: 1 WITH_LIBDE265: 1 WITH_X265: 1 FUZZER: 1 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install dependencies run: | ./scripts/install-ci-linux.sh - name: Prepare CI run: | ./scripts/prepare-ci.sh - name: Run tests run: | ./scripts/run-ci.sh libheif-1.12.0/.github/workflows/test.yml0000644000175000017500000000064114003350400015203 00000000000000name: test on: push: branches: [ master ] pull_request: branches: [ master ] jobs: test: env: TESTS: 1 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install dependencies run: | ./scripts/install-ci-linux.sh - name: Prepare CI run: | ./scripts/prepare-ci.sh - name: Run tests run: | ./scripts/run-ci.sh libheif-1.12.0/.github/workflows/coverity.yml0000644000175000017500000000262214003350400016071 00000000000000name: coverity on: push: branches: [ coverity ] jobs: scan: runs-on: ubuntu-latest env: TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} WITH_AOM: 1 WITH_GRAPHICS: 1 WITH_LIBDE265: 1 WITH_X265: 1 steps: - uses: actions/checkout@v2 - name: Cache Coverity build tool uses: actions/cache@v2 with: path: | coverity_tool.tar.gz key: ${{ runner.os }} - name: Download Coverity build tool run: | wget -c -N https://scan.coverity.com/download/linux64 --post-data "token=$TOKEN&project=strukturag%2Flibheif" -O coverity_tool.tar.gz mkdir coverity_tool tar xzf coverity_tool.tar.gz --strip 1 -C coverity_tool - name: Install dependencies run: | ./scripts/install-ci-linux.sh - name: Prepare CI run: | ./scripts/prepare-ci.sh - name: Build with Coverity build tool run: | export PATH=`pwd`/coverity_tool/bin:$PATH cov-build --dir cov-int make - name: Submit build result to Coverity Scan run: | tar czvf libheif.tar.gz cov-int curl --form token=$TOKEN \ --form email=opensource@struktur.de \ --form file=@libheif.tar.gz \ --form version="Commit $GITHUB_SHA" \ --form description="Build submitted via CI" \ https://scan.coverity.com/builds?project=strukturag%2Flibheif libheif-1.12.0/.github/workflows/emscripten.yml0000644000175000017500000000067614003350400016405 00000000000000name: emscripten on: push: branches: [ master ] pull_request: branches: [ master ] jobs: emscripten: env: EMSCRIPTEN_VERSION: 1.37.26 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install emscripten run: | ./scripts/install-ci-linux.sh - name: Prepare CI run: | ./scripts/prepare-ci.sh - name: Run tests run: | ./scripts/run-ci.sh libheif-1.12.0/.github/workflows/clang.yml0000644000175000017500000000155214003350400015312 00000000000000name: clang on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: strategy: matrix: env: - { NAME: "nothing" } - { NAME: "libde265 (1) / x265 / aom / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 1 } - { NAME: "libde265 (2) / x265 / aom / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 2 } env: ${{ matrix.env }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install dependencies run: | ./scripts/install-ci-linux.sh sudo apt install clang - name: Prepare CI env: CC: clang CXX: clang++ run: | ./scripts/prepare-ci.sh - name: Run tests env: CC: clang CXX: clang++ run: | ./scripts/run-ci.sh libheif-1.12.0/.github/workflows/build.yml0000644000175000017500000000325414003350400015326 00000000000000name: build on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: strategy: matrix: env: - { NAME: "nothing" } - { NAME: "cmake", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_DAV1D: 1, WITH_RAV1E: 1, WITH_LIBDE265: 1, CMAKE: 1 } - { NAME: "tarball", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_DAV1D: 1, WITH_RAV1E: 1, WITH_LIBDE265: 1, TARBALL: 1 } - { NAME: "graphics", WITH_GRAPHICS: 1 } - { NAME: "x265", WITH_X265: 1 } - { NAME: "x265 / graphics", WITH_GRAPHICS: 1, WITH_X265: 1 } - { NAME: "libde265 (1) / graphics", WITH_GRAPHICS: 1, WITH_LIBDE265: 1 } - { NAME: "libde265 (2) / graphics", WITH_GRAPHICS: 1, WITH_LIBDE265: 2 } - { NAME: "libde265 (1) / x265 / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_LIBDE265: 1 } - { NAME: "libde265 (2) / x265 / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_LIBDE265: 2 } - { NAME: "libde265 (1) / x265 / aom / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 1 } - { NAME: "libde265 (1) / x265 / dav1d / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_DAV1D: 1, WITH_LIBDE265: 1 } - { NAME: "libde265 (1) / x265 / aom / rav1e / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_RAV1E: 1, WITH_LIBDE265: 1 } env: ${{ matrix.env }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install dependencies run: | ./scripts/install-ci-linux.sh - name: Prepare CI run: | ./scripts/prepare-ci.sh - name: Run tests run: | ./scripts/run-ci.sh libheif-1.12.0/.github/workflows/lint.yml0000644000175000017500000000137414003350400015176 00000000000000name: lint on: push: branches: [ master ] pull_request: branches: [ master ] jobs: cpplint: env: CPPLINT: 1 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install dependencies run: | ./scripts/install-ci-linux.sh - name: Prepare CI run: | ./scripts/prepare-ci.sh - name: Check format run: | ./scripts/run-ci.sh licenses: env: CHECK_LICENSES: 1 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install dependencies run: | ./scripts/install-ci-linux.sh - name: Prepare CI run: | ./scripts/prepare-ci.sh - name: Check licenses run: | ./scripts/run-ci.sh libheif-1.12.0/.github/workflows/mingw.yml0000644000175000017500000000100314003350400015336 00000000000000name: mingw on: push: branches: [ master ] pull_request: branches: [ master ] jobs: mingw: strategy: matrix: env: - { MINGW: 32 } - { MINGW: 64 } env: ${{ matrix.env }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install dependencies run: | ./scripts/install-ci-linux.sh - name: Prepare CI run: | ./scripts/prepare-ci.sh - name: Run tests run: | ./scripts/run-ci.sh libheif-1.12.0/m4/0000775000175000017500000000000014044446310010520 500000000000000libheif-1.12.0/m4/libtool.m40000644000175000017500000112676314006205441012360 00000000000000# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . ]) # serial 58 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_PREPARE_CC_BASENAME # ----------------------- m4_defun([_LT_PREPARE_CC_BASENAME], [ # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in @S|@*""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } ])# _LT_PREPARE_CC_BASENAME # _LT_CC_BASENAME(CC) # ------------------- # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, # but that macro is also expanded into generated libtool script, which # arranges for $SED and $ECHO to be set by different means. m4_defun([_LT_CC_BASENAME], [m4_require([_LT_PREPARE_CC_BASENAME])dnl AC_REQUIRE([_LT_DECL_SED])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl func_cc_basename $1 cc_basename=$func_cc_basename_result ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl m4_require([_LT_CMD_TRUNCATE])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # 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\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # '#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test 0 = "$lt_write_fail" && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $[#] do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try '$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try '$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 _LT_COPYING _LT_LIBTOOL_TAGS # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE _LT_PREPARE_MUNGE_PATH_LIST _LT_PREPARE_CC_BASENAME # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS=$save_LDFLAGS ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # 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 yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test yes = "$lt_cv_ld_force_load"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" m4_if([$1], [CXX], [ if test yes != "$lt_cv_apple_cc_single_mod"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script that will find a shell with a builtin # printf (that we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case $ECHO in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [Search for dependent libraries within DIR (or the compiler's sysroot if not specified).])], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([$with_sysroot]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and where our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/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 what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then case `/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* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/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-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cr} _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 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test yes = "[$]$2"; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ]) if test yes = "[$]$2"; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n "$lt_cv_sys_max_cmd_len"; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes = "$cross_compiling"; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen=shl_load], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen=dlopen], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) ]) ]) ]) ]) ]) ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links=nottested if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test no = "$hard_links"; then AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", [Define to the sub-directory where libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then # We can hardcode non-existent directories. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -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_PREPARE_MUNGE_PATH_LIST # --------------------------- # Make sure func_munge_path_list() is defined correctly. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], [[# func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x@S|@2 in x) ;; *:) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" ;; x:*) eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; *::*) eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" ;; *) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; esac } ]])# _LT_PREPARE_PATH_LIST # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown AC_ARG_VAR([LT_SYS_LIBRARY_PATH], [User-defined run-time library search path.]) case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a[(]lib.so.V[)]' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # 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$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/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* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], [Detected run-time system search path for libraries]) _LT_DECL([], [configure_time_lt_sys_library_path], [2], [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program that can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$1"; then lt_cv_path_MAGIC_CMD=$ac_dir/"$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac]) MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program that can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test no = "$withval" || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], [if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi]) rm -f conftest.i conftest2.i conftest.out]) ])# _LT_PATH_DD # _LT_CMD_TRUNCATE # ---------------- # find command to truncate a binary pipe m4_defun([_LT_CMD_TRUNCATE], [m4_require([_LT_PATH_DD]) AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], [printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], [Command to truncate a binary pipe]) ])# _LT_CMD_TRUNCATE # _LT_CHECK_MAGIC_METHOD # ---------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_MAGIC_METHOD], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) AC_CACHE_CHECK([how to recognize dependent libraries], lt_cv_deplibs_check_method, [lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[[4-9]]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[[45]]*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # 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* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi]) if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # _LT_DLL_DEF_P([FILE]) # --------------------- # True iff FILE is a Windows DLL '.def' file. # Keep in sync with func_dll_def_p in the libtool script AC_DEFUN([_LT_DLL_DEF_P], [dnl test DEF = "`$SED -n dnl -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl -e q dnl Only consider the first "real" line $1`" dnl ])# _LT_DLL_DEF_P # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM=-lm) ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test yes = "$GCC"; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], [Transform the output of nm into a list of symbols to manually relocate]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], [The name lister interface]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | 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 yes = "$GCC"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # flang / f18. f95 an alias for gfortran or flang on Debian flang* | f18* | f95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _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 yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) 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 yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | 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 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # 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,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC 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 yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS=$save_LDFLAGS]) if test yes = "$lt_cv_irix_exported_symbol"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi _LT_TAGVAR(link_all_deplibs, $1)=no else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd* | 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* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; osf3*) if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test yes,yes = "$GCC,$enable_shared"; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting $shlibpath_var if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC=$CC AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report what library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC=$lt_save_CC ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # 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,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(GCC, $1)=$GXX _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case @S|@2 in .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)=$prev$p else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)=$p else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)=$p else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test no = "$F77"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_F77"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$G77 _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_F77" AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code=$lt_simple_compile_test_code # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f "$lt_ac_sed" && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test 10 -lt "$lt_ac_count" && break lt_ac_count=`expr $lt_ac_count + 1` if test "$lt_ac_count" -gt "$lt_ac_max"; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine what file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS libheif-1.12.0/m4/ax_cxx_compile_stdcxx_11.m40000644000175000017500000001135714003350415015602 00000000000000# ============================================================================ # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html # ============================================================================ # # SYNOPSIS # # AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional]) # # DESCRIPTION # # Check for baseline language coverage in the compiler for the C++11 # standard; if necessary, add switches to CXXFLAGS to enable support. # # The first argument, if specified, indicates whether you insist on an # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. # -std=c++11). If neither is specified, you get whatever works, with # preference for an extended mode. # # The second argument, if specified 'mandatory' or if left unspecified, # indicates that baseline C++11 support is required and that the macro # should error out if no mode with that support is found. If specified # 'optional', then configuration proceeds regardless, after defining # HAVE_CXX11 if and only if a supporting mode is found. # # LICENSE # # Copyright (c) 2008 Benjamin Kosnik # Copyright (c) 2012 Zack Weinberg # Copyright (c) 2013 Roy Stogner # Copyright (c) 2014 Alexey Sokolov # # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice # and this notice are preserved. This file is offered as-is, without any # warranty. #serial 4 m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[ template struct check { static_assert(sizeof(int) <= sizeof(T), "not big enough"); }; struct Base { virtual void f() {} }; struct Child : public Base { virtual void f() {} // DiFa: override {} # override not supported in gcc 4.6 }; typedef check> right_angle_brackets; int a; decltype(a) b; typedef check check_type; check_type c; check_type&& cr = static_cast(c); auto d = a; auto l = [](){}; ]]) AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl m4_if([$1], [], [], [$1], [ext], [], [$1], [noext], [], [m4_fatal([invalid argument `$1' to AX_CXX_COMPILE_STDCXX_11])])dnl m4_if([$2], [], [ax_cxx_compile_cxx11_required=true], [$2], [mandatory], [ax_cxx_compile_cxx11_required=true], [$2], [optional], [ax_cxx_compile_cxx11_required=false], [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])]) AC_LANG_PUSH([C++])dnl ac_success=no AC_CACHE_CHECK(whether $CXX supports C++11 features by default, ax_cv_cxx_compile_cxx11, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], [ax_cv_cxx_compile_cxx11=yes], [ax_cv_cxx_compile_cxx11=no])]) if test x$ax_cv_cxx_compile_cxx11 = xyes; then ac_success=yes fi m4_if([$1], [noext], [], [dnl if test x$ac_success = xno; then for switch in -std=gnu++11 -std=gnu++0x; do cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, $cachevar, [ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $switch" AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], [eval $cachevar=yes], [eval $cachevar=no]) CXXFLAGS="$ac_save_CXXFLAGS"]) if eval test x\$$cachevar = xyes; then CXXFLAGS="$CXXFLAGS $switch" ac_success=yes break fi done fi]) m4_if([$1], [ext], [], [dnl if test x$ac_success = xno; then for switch in -std=c++11 -std=c++0x; do cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, $cachevar, [ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $switch" AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], [eval $cachevar=yes], [eval $cachevar=no]) CXXFLAGS="$ac_save_CXXFLAGS"]) if eval test x\$$cachevar = xyes; then CXXFLAGS="$CXXFLAGS $switch" ac_success=yes break fi done fi]) AC_LANG_POP([C++]) if test x$ax_cxx_compile_cxx11_required = xtrue; then if test x$ac_success = xno; then AC_MSG_ERROR([*** A compiler with support for C++11 language features is required.]) fi else if test x$ac_success = xno; then HAVE_CXX11=0 AC_MSG_NOTICE([No compiler with C++11 support was found]) else HAVE_CXX11=1 AC_DEFINE(HAVE_CXX11,1, [define if the compiler supports basic C++11 syntax]) fi AC_SUBST(HAVE_CXX11) fi ]) libheif-1.12.0/m4/ltsugar.m40000644000175000017500000001044014006205441012354 00000000000000# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007-2008, 2011-2015 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 ]) libheif-1.12.0/m4/lt~obsolete.m40000644000175000017500000001377414006205441013262 00000000000000# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 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])]) libheif-1.12.0/m4/ac_c_cxx_compile_flags.m40000644000175000017500000000062514003350415015331 00000000000000AC_DEFUN([AC_C_CXX_COMPILE_FLAGS],[ NEW_CFLAGS="$CFLAGS" NEW_CXXFLAGS="$CXXFLAGS" for ac_flag in $1 do AC_MSG_CHECKING(whether compiler supports $ac_flag) CXXFLAGS="$NEW_CXXFLAGS $ac_flag" AC_LANG(C++) AC_TRY_COMPILE(,[ ; ],[ NEW_CFLAGS="$NEW_CFLAGS $ac_flag" NEW_CXXFLAGS="$NEW_CXXFLAGS $ac_flag" AC_MSG_RESULT(yes) ],AC_MSG_RESULT(no)) done CFLAGS=$NEW_CFLAGS CXXFLAGS=$NEW_CXXFLAGS ]) libheif-1.12.0/m4/visibility.m40000644000175000017500000000413014003350416013061 00000000000000# visibility.m4 serial 1 (gettext-0.15) dnl Copyright (C) 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 Tests whether the compiler supports the command-line option dnl -fvisibility=hidden and the function and variable attributes dnl __attribute__((__visibility__("hidden"))) and dnl __attribute__((__visibility__("default"))). dnl Does *not* test for __visibility__("protected") - which has tricky dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on dnl MacOS X. dnl Does *not* test for __visibility__("internal") - which has processor dnl dependent semantics. dnl Does *not* test for #pragma GCC visibility push(hidden) - which is dnl "really only recommended for legacy code". dnl Set the variable CFLAG_VISIBILITY. dnl Defines and sets the variable HAVE_VISIBILITY. AC_DEFUN([gl_VISIBILITY], [ AC_REQUIRE([AC_PROG_CC]) CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then AC_MSG_CHECKING([for simple visibility declarations]) AC_CACHE_VAL(gl_cv_cc_visibility, [ gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" AC_TRY_COMPILE( [extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void);], [], gl_cv_cc_visibility=yes, gl_cv_cc_visibility=no) CFLAGS="$gl_save_CFLAGS"]) AC_MSG_RESULT([$gl_cv_cc_visibility]) if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 fi fi AC_SUBST([CFLAG_VISIBILITY]) AC_SUBST([HAVE_VISIBILITY]) AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY], [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.]) ]) libheif-1.12.0/m4/ltversion.m40000644000175000017500000000127314006205441012724 00000000000000# ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004, 2011-2015 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 4179 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.6]) m4_define([LT_PACKAGE_REVISION], [2.4.6]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.6' macro_revision='2.4.6' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) libheif-1.12.0/m4/ltoptions.m40000644000175000017500000003426214006205441012736 00000000000000# Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 8 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option '$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl 'shared' nor 'disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], [_LT_WITH_AIX_SONAME([aix])]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the 'shared' and # 'disable-shared' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the 'static' and # 'disable-static' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the 'fast-install' # and 'disable-fast-install' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_AIX_SONAME([DEFAULT]) # ---------------------------------- # implement the --with-aix-soname flag, and support the `aix-soname=aix' # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. m4_define([_LT_WITH_AIX_SONAME], [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[[5-9]]*,yes) AC_MSG_CHECKING([which variant of shared library versioning to provide]) AC_ARG_WITH([aix-soname], [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], [case $withval in aix|svr4|both) ;; *) AC_MSG_ERROR([Unknown argument to --with-aix-soname]) ;; esac lt_cv_with_aix_soname=$with_aix_soname], [AC_CACHE_VAL([lt_cv_with_aix_soname], [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) with_aix_soname=$lt_cv_with_aix_soname]) AC_MSG_RESULT([$with_aix_soname]) if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac _LT_DECL([], [shared_archive_member_spec], [0], [Shared archive member basename, for filename based shared library versioning on AIX])dnl ])# _LT_WITH_AIX_SONAME LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' # LT_INIT options. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac], [pic_mode=m4_default([$1], [default])]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) libheif-1.12.0/fuzzing/0000775000175000017500000000000014044446310011674 500000000000000libheif-1.12.0/fuzzing/corpus/0000775000175000017500000000000014044446310013207 500000000000000libheif-1.12.0/fuzzing/corpus/clusterfuzz-testcase-minimized-file-fuzzer-5720856641142784.heic0000644000175000017500000001146214003350404026173 00000000000000ftyp heicmeta "hdlr pict $ pitm 1=iinf                                                 infe 1 grid  iprp Sipco0 C    0 =XYZ J7 XYZ (8 ȹparaff Y [sf32 B&nChvcCp< @ !(4@|VCⰄB' P((z"U #1D@8) #3 /AdJf< 8p'!PA CtcaBE  V 0``XaN*H$ׯ pI<@|W$BG+\`!L…A@@8@`"$ HTH&.t(_* X"L I@I`rL…A@@8@`"$ HH.T&ׯ pIipma4      !"#$%&'()*+,-./112 idat @iloc3!i0L   !h "/ " #$%m&4&'()X**+,-J../1f1-1 2!3"1I#5$5e6&7x'8?(9)9*+,<"c-<.=/>w0?>12Bg3libheif-1.12.0/fuzzing/corpus/clusterfuzz-testcase-minimized-file-fuzzer-5651556035198976.heic0000644000175000017500000001146214003350404026206 00000000000000ftyp heicmeta * "hdlr pict $  ȹpitm 1=iinf  infe  hvc1              @              )  + idat                   infe 1 grid  iref 10   !"#$%&'()*+,-./0thmb21cdsc31 iprp Sipco0clapproBg3XYZ   acspAPPLAPP4-appl%M8 descecprtd#wtptrXYZgXYZbXYZrTRC cHad,bTRC gTRC desc Display P3textCopyright Apple Inc., 217XYZ QXYZ 10  Jipco XYWIZ(8 ȹparaffd Y [sf32 B&nChvcCpZ   pZp$BpZX>(4@|Q0h4 `i!qXBu|VCtcaBE  V 0`DŽ`XaN*H$|t(_* X"L I@I`rЎ ₁p2X3 DIa 8 L\!^O_%& _'?^yiׯ pI(4@|VCⰄB' P((z"U #1D@8) #3 /AdJf< 8dfnip'!PA CtcaBE  V 0``XaN*H$ׯ pI<@|W$BG+\`!L…A@@8@`"$ HTH&.t(_* X"L I@I`rL…A@@8@`"$ HH.T&௓ pIipma4      !"#$%&'()*+,-./112 idat @ilocD3i0L   !h "/ " #$%m<4,&'()X**+,-J../1f1-1 6&7x'8?(9)9*<"c-<.=/>w012Bg3mdat, c(,VG2  libheif-1.12.0/fuzzing/corpus/github_47.heic0000644000175000017500000000002014003350405015535 00000000000000 libheif-1.12.0/fuzzing/corpus/github_15.heic0000644000175000017500000000002014003350405015530 00000000000000 libheif-1.12.0/fuzzing/corpus/github_367_2.heic0000644000175000017500000001146214003350405016057 00000000000000ftypheic heicmeta "hdlr pict $ pitm 1=iinf      *               ine,hvc1infe-hvc0inge.hvc1 fe/hvc1ine0hvc1infe1gridinfe2b6c1infe3Exifirefldimg20 6 !"#$%&'()*+,,/0thmB21cdsc31 iprp Sipco0$olrprof$applmnrRGB-XYZ   ac))))))))))1111111111;'appl%M8 1infehvc1ininfehvc0Xnfe gTRC dcwc Display P4CopyriApple Inc., 2017XYZ QXHZ =XYZ J7 YZ (8 ȹparaff Y {sf16 B&nChvcCpZ @ pZp$BpZX@>(4@|Q3h4 `i!qXBu|VCtcaBE  V 0XaN*H$|t8_% X"L I@I` Exception/C3 DIa-hvc L\!^_O%& _'?^rׯ pI ipma4     exif:ResolutionUe !"#k$%&6()*+,-..012 idat @ilocD3i0  !h "/ "$%m&8&'()X**+,-J../#5f1-1 1!3"4N#5$5%6&7x'8?(9)9=*:+0ZIinfe idenExifMM* exif:XResolution libheif-1.12.0/fuzzing/corpus/github_138.heic0000644000175000017500000001146214003350405015632 00000000000000ftypheicmif1heicmeta "hdlr pict $ pitm 1=iinf                                            (      infe 1 grid  iprp Sipco0 C    0 =XYZ J7 XYZ (8 ȹparaff Y [sf32 B&nChvcCp< @ !(4@|VCⰄB' P((z"U #1D@8) #3 /AdJf< 8p'!PA CtcaBE  V 0``XaN*H$ׯ pI<@|W$BG+\`!L…A@@8@`"$ HTH&.t(_* X"L I@I`rL…A@@8@`"$ HH.T&ׯ pIipma4      !"#$%&'()*+,-./112 idat @iloc3!i0L   !h "/ " #$%m&4&'()X**+,-J../1f1-1 2!3"1I#5$5e6&7x'8?(9)9*+,<"c-<.=/>w0?>12Bg3libheif-1.12.0/fuzzing/corpus/github_20.heic0000644000175000017500000006044714003350405015547 00000000000000 meta iprp  meta iprp meta iprp meta iprp meta iprp meta iprp meta iprp meta iprp meta iprp meta iprp meta iprp meta iprp meta iprp meta iprp meta iprp meta meta meta ipco meta ipco meta ipco meta meta ipco meta ipco meta ipco meta ipco meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Gipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~dmetaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&metaLipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&metapcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&ipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipco@d&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&ipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~d&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~dmetaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&metaLipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&ipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipco@d&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipcod&meta~Lipcod&meta~LipcoD&meta~Lipcod&meta~Lipcod&meta~Lipcod&meta~d&metaGipcod&meta~Lipcod&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&meta~Lipc`d&meta~Lipcod&meta~Lipca~d&metaGipcod&meta~&meta~Lipcod&meta~cod&meta~Lipcod&meta~Lipcod&meta~Lipco d&metameta~oD&metailibheif-1.12.0/fuzzing/corpus/clusterfuzz-testcase-minimized-file-fuzzer-5662360964956160.heic0000644000175000017500000000107514003350404026176 00000000000000ftyp heic%meta !hdlr pict pitm 4iloc  8iinf infe  hvc1infe  hvc1diprpAipcou  'auxC urn:mpeg:hevc:2015:auxid:1u  ipma   iref auxl libheif-1.12.0/fuzzing/corpus/github_367_1.heic0000644000175000017500000001146214003350405016056 00000000000000ftypheicmif1heicmeta "hdlrpict$dinfdref@ url:pitm1=iinf3i~fe1inf~{vc1infmhvc1inhvc1inehvc1*ifehvc1infehvc1irfehvc1Qnd hvc1Tnfe hvc1in@e hvc1hnfe hvc1nf} hvc3inFehvc1infehvc1infehvc1infehvc1hvc1infhvc1infehvc1infehvc1Xnfevc1infehvc1Xnfehvc1in&e"hvc0fe hvc"wnfehvc(fehv1snfe]htW1infN|vc1nfehvc1infs hvc1inf!hvc1ife"hvc1infe#hvc1infe$hv@infe%hvc1infeh Snfe'hrZ1infe(hvc1ijfeHEIChvc1infe*hvc1infe+hsinfe,hvc1infe-hvc1inge.hvc1fe/hvc1inH0hvc1infe1gridinfe2hvc1infe3Exifirefldimg10 6 !"#$Y%&'()*+,,/0thmB21cdsc31 iprp Sipco0colrprof$applmntrRGB-XYZ   ac))))))))))11111111111-appl%M8date:moinfehvc1 idginfehvc2Xnfe gTR1 dcsc Display P2 CopyriApple Inc., 2017XYZ QXHZ =XYZ J7 XYZ (8 ȹparaff Y [sf32 B&nChvcpZ @ pZp$BpZX>(@|Q3h4 `i!qXBu|VCtcaBE  V 0XaN*H$|t8_% X"L @I` Exception/C3 DIa-hvc L\!^_O%& _'?^rׯ pIipma4     exif:ResolutionUe !"#k$%&7()*+,-..012x idat @ilocD3i0 L  !h "/ " #($%m&4&'()X**+,-J../0f?-1 11"I4# 6$5%4&7x'8?9)9*:+;[,<"-<.=*@>w0?>1Bg3xda libheif-1.12.0/fuzzing/corpus/github_45.heic0000644000175000017500000001577314003350405015560 00000000000000ftyp heicmeta "hdlr pict $ pitm 1=iinf  infe  hvc1                                              infe 1 grid  iref 10   !"#$%&'()*+,-./0thmb21cdsc31 iprp Sipco0colrprof$applmntrRGB XYZ   acspAPPLAPPL-appl%M8 descecprtd#wtptrXYZgXYZbXYZrTRC chad,bTRC gTRC desc Display P3textCopyright Apple Inc., 217XYZ QXYZ =XYZ J XYWIZ(8 ȹparaffd Y [sf32 B&nChvcCpZ @ pZp$BpZX>(4@|Q0h4 `i!qXBu|VCtcaBE  V 0`DŽ`XaN*H$|t(_* X"L I@I`rЎ ₁p2X3 DIa 8 L\!^O_%& _'?^yׯ pI(4@|VCⰄB' P((z"U #1D@8) #3 /AdJf< 8p'!PA CtcaBE  V 0``XaN*H$ׯ pI<@|W$BG+\`!L…A@@8@`"$ HTH&.t(_* X"L I@I`rL…A@@8@`"$ HH.T&ׯ pIipma4      !"#$%&'()*+,-./112 idat @ilocD3i0L   !h "/ " #$%m&4&'()X**+,-J../1f1-1 2!3"4I#5$5e6&7x'8?(9)9*+,<"c-<.=/>w0?>12Bg3mdat,c(,VG2jbɓf(%B>~0ZI 4p%2ʀTnK  ExifMM*  (02iAppleiXhone XHH11.3201exif:ExposureBiasValFN"'0221Vj ~  $ispeispe irotpixi0colrprof$applGB XYX   acspAPPLAPPL-appl%M9 descecprtd#wtptrXYZgXYZbXYZrTRC chad,bTRC gtextCopyright Apple Inc., 2017XYZ QXYZ =XYZ J7 XYZ (8 ȹpara        bplist00O              bplist00UflagsUvalueYtimescaleUepoch[*;'-/8= ?9g -q750n  AppleiPhone X back dual camera 4mm f/1.8( WZ1Gjbɓf("b>~0Zz?"j 4R%2ʀ (PTnK2P|8*D* Dh< @ * j eV( WZ1@GjbɓʀK2P|8*Db>~0Zz?"j 4R%2ʀ (PTnD* Dh< @ * j eVlibheif-1.12.0/fuzzing/corpus/github_44.heic0000644000175000017500000001146714003350405015553 00000000000000ftyp heicmeta "hdlr pict $ pitm 1=iinf                                                 e0jvc1infe1gridinfe2hvc1infe3Exifirefldimg10  !"#$%&'()*+,-./0thmb21cdsc31 iprp Sipco0colrprof$applmntrRGB XYZ   acspAPPLAPPL-appl%M8 descecprtd#wtptrXYZgXYZbXYZrTRC chad,bTRC gTRC desc Display P3textCopyright Apple Inc., 2017XYZ QXYZ =XYZ J7 XYZ (8 ȹparaff Y [sf32 B&nChvcCpZ @ pZp$BpZX>(4@|Q0h4 `i!qXBu|VCtcaBE  V 0`DŽ`XaN*H$|t(_* X"L I@I`rЎ ₁p2%X3 DIa 8 L\!^O_%& _'?^yׯ pI(4@|VCⰄB' P((z"U #1D@8) #3 /AdJf< 8p'!PA CtcaBE  V 0`DŽ`XaN*H$ׯ pI<@|W$BG+\`!L…A@@8@`"$ HTH&.t(_* X"L I@I`rL…A@@8@`"$ HH.T&ׯ pIipma4      !"#$%&'()*+,-./112 idat @ilocD3i0L   !h "/ " #$%m&4&'()X**+,-J../0f1-1 2!3"4I#5$5%6&7x'8?(9)9*+;[,<"-<.=/>w0?>12Bg3mdatlibheif-1.12.0/fuzzing/corpus/clusterfuzz-testcase-minimized-file-fuzzer-6045213633282048.heic0000644000175000017500000003522414003350404026160 00000000000000ftypheicmif1heicmeta"hdlrpict$d$nfdref url pitm1=iinf3i~fe1inf~{vc1infmhvc1inhvc1inehvc1*ifehvc1infehvM1irfyhv1Qnd hvc1Tnfe hvc0in@e hvc1hnfe hvc1nf} hvc1inFehvc1infehvc1infehvc1infehvc1hvc1infehvc1infeJ7 XYZ hvc1ifehvc1infehvc1infehvc1infehvc0infe0hvc1infehvc1HEIChvc1infec5infehvc1infe:hvcinfe hvc1infe!hvc2infe"hv1infe#xvc1Tnfe$hvc1infe%hwc1[nfe&hvc1info'hvc1infe@(hvc1infe)hvc1fe!*hvc1inf +hvc1infa,hvc1infe(hvc1ine.hvc1ie/h1InfeJ0hvc1infe1gridinfe2iprpvlinfe3Exififrelidgm10 j !"#$%&'()*+,-svg:0thmb"1cdsc31 iprp Sipco0coOrprof$applmitrRGB XYZ   acsPpAPLAPPL-ap l%M4 desecprtd#wtptrXYZgXYZObXYZrTRC chad,bTRC gTRC desc Display P3textyoroCight Apple Inc., 2/1CXY; QXYZ =XYZ J7 XYZ (8 ȹpar2ff Y [sf16 B&nChvcCpZ @ pZp$BpZX>(3@|Q0h4 `i!qXBu|VdCtcaBE V 0`DŽ+`XaN*H$|t(_* X"L I@I~rю ₁p2%X3 DIa 8 L\!^O_%& M_'yׯ pI(4@|VCⰄB' P((z"U #1D@8@`"$ HTH&.t(_* X"L I@Io3…A@@5@`$a HTH1ׯ pIipma2      !"#$%&'()*+,-./112 idat @ilocD3i01L !h "/ " #!$%m&4&'()X**,-J../0f1-1 2!3"4I#5$5%6&7x'8?(9)9*:+;[,<"-<.=/>w0?>12Bg3mdat#,c(,VGjbɓf(%BZI 4p%2ѫTnV  ExifMM* (__________T______________0fim_________________________________________________________________________________________________________________________________pPiCenUdef_____________________________________________________________________________________________@`$a HTH1ׯ pIipma2      !"#$%&'()*+,-+,-./012 ida@ilocD3i0LA  !h "/ "%m&4&'()X**,ot ipc../@ftypheicmif1heicmeta"hdlrpict$dinfdref url pitm1=iinf3i~fe1inQ~{vc1infmhvc1inhvc1inehvc1*ifeinfehvc1Xnvehvc1in&t"hvc0fe hvc"wnfehvc(fehv1snfe]htW1infNnfehvc1infs hvc1infhvc1ife"hvc1infe#h1infe$hvinf%hvc1infeinfe1Snfe'hvZ1infeL/Rifrelidgm10Wheicinfe2iovlinfe3Exififrelidgm10 CB\i|adifnt$&i3fWWWExif @ Wheicinfe2iovlinfe3Exififrelidgm10 CB\i|adifnt$&i3fWWWExif @ ifrelidgm10 CB\i|adifnt$&i3fWWWExif @ 0Fcc0,0'pR$˄?#m3 dJf<$<Rp'!PA C^O_%& ׯ pI(4@|VCⰄB' P((z"U #1D@8) #3 /AdJf< 8p'!PA CtcaBE  V 0`DŽ`XaN*H$ׯ pI<@2BG+\`!L…A@@8@`"$ HTH&.t(_* X"L I@I`rJ…A@@8@`"$ HH.T&ׯ pIipma4      !"#$%&'()*+,-./112 idat @ilocD3i0L   !ho "/ " #$%m&4&'()X**+,-J../0f1-1 2!3"4I#5$5%6&7x'8?(9)9*+;[,<"-<.=/>w0?>12Bg3mdatʀTn~K  ExifMM*  (02iAppleiPho XHH11.3201exif:ExposureBiasValFN"f$aYX   acspAPPLAPPL-appl%M9TRC gTRC desc Display P3textCopyright Apple Inc., 2017XYZ QXYZ =XYZ J4 XYZ (8 ȹparaff Yftyp heicmeta "hdlr pict $ pitm 1=iinf          vc0infe1gridinfe2hvc1infe3Exifirefldimg10  !"#$%&',-./0thmb 2c1dsc31 iprp Sipco0colrprof$applmntrRGB XYZ   acspAPPLAPPL-appl%M8 vc1infe1gridinfe2hvc1infe3Exifirefldimg10  !"#$%&',-./0thmb 2c1dsc31 iprp Sipco0colrprof$applmntrRGB XYZ   acspAPPLAPPL-appl%M8 descecprtd#wtptrXYZ{XYZbXYZrTRC chad,bTRC gTRC desc Display P3textCopyright Apple Inc., 2017XYZ QXYZ =XYZ J7 XYZ (8 ȹparaff Y [sf32 B&nChvcCpZ @ pZp$B0?>ǀ eV( WZGjbɓb>~ʀ (P;2 Dh< @pZp$Bplibheif-1.12.0/fuzzing/corpus/github_48.heic0000644000175000017500000001627614003350405015562 00000000000000ftyp heicmeta "hdlr pict $ pitm 1=iinf   infe  iovl                                             vc1infe1gridinfe2hvc1infe3Exifirefldimg10  !"#$%&',-./0thmb 2c1dsc31 iprp Sipco0colrprof$applmntrRGB XYZ   acspAPPLAPPL-appl%M8 descecprtd#wtptrXYZ{XYZbXYZrTRC chad,bTRC gTRC desc Display P3textCopyright Apple Inc., 2017XYZ QXYZ =XYZ J7 XYZ (8 ȹparaff Y [sf32 B&nChvcCpZ @ pZp$BpZX>(4@|Q0h4 `i!qXBu|VCtcaBE  V 0`DŽ`XaN*H$|t(_* X"L I@I`rЎ ₁p2%X3 DIa 8 L\!^O_%& _'?^yޯ pI(4@|VCⰄB' P((z"U #1D@8) #3 /AdJf< 8p'!PA CtcaBE  V 0`DŽ`XaN*H$ׯ pI<@|W$BG+\`!L…A@@8@`"$ HTH&.t(_* X"L I@I`rJ…A@@8@`"$ HH.T&ׯ pIipma4      !"#$%&'()*+,-./112 idat @ilocD3i0L   !ho "/ " #$%m&4&'()X**+,-J../0f1-1 2!3"4I#5$5%6&7x'8?(9)9*+;[,<"-<.=/>w0?>12Bg3mdatʀTnK  ExifMM*  (02iAppleiPho XHH11.3201exif:ExposureBiasValFN"f$aYX   acspAPPLAPPL-appl%M9TRC gTRC desc Display P3textCopyright Apple Inc., 2017XYZ QXYZ =XYZ J7 XYZ (8 ȹparaff Y [sf32 B&nChvcCp< @ p(4@|VCⰄB' g((z"U #1       bplist00O                bplist00UflagsUvalueYtimescaleUepoch[*;'-/8=??9g -q750n  AppleiPhone X back dual camera 4mm f/1.8( WZ1Gjbɓf("b>~0Zz?"j 4R%2ʀ (PTn./0f1-1 2!3"4I#5$6&7x'8?(9)9*+;[,<"-<=/>w0?>ǀ eV( WZ1Gjbɓf("b>~ʀ (P;K2 Dh< @pZp$Bplibheif-1.12.0/fuzzing/corpus/uaf_heif_context.h_117_1.heic0000644000175000017500000000111014003350405020312 00000000000000ftypmif1heicmif1meta!hdlrpictpitm4ilocD@77 Liinfinfehvc1HEVC Imageinfehvc1HEVC ImageirefauxlwJiprp'ipcolhvcC`x@ `x$B`x-$m٢DispexhvcC`x@ `x@+B`x-Yة$!Dwى'auxCurn:mpeg:hevc:2015:auxid:1ipmaddatYG$libheif-1.12.0/fuzzing/corpus/clusterfuzz-testcase-minimized-file-fuzzer-5686319331672064.heic0000644000175000017500000000175314003350404026175 00000000000000ftyp heicmeta !hdlr pict pitm Xiloc @ biinf infe  hvc1 infe  hvc1infe  hvc1iprpzipcou  ' u  u  'auxC urn:mpeg:hevc:2015:auxid:1u  &ipma     6iref  auxl thmb libheif-1.12.0/fuzzing/corpus/github_49.heic0000644000175000017500000000002014003350405015537 00000000000000 libheif-1.12.0/fuzzing/corpus/colors-with-alpha-thumbnail.heic0000644000175000017500000000401414003350405021266 00000000000000ftypheicmif1heicmeta!hdlrpictpitmXilocD@yPbiinfinfehvc1infehvc1infehvc1infehvc1iprpzipcouhvcCp @ p@!(Bp$%I)l@"Dr"@ispeHH'auxCurn:mpeg:hevc:2015:auxid:1uhvcCp @ p@!(Bp$%I)l@"Dr"@ispeHHuhvcCp @ p@!(Bp I)l@"Dr"@ispe@@'auxCurn:mpeg:hevc:2015:auxid:1uhvcCp @ p@!(Bp I)l@"Dr"@ispe@@&ipma 6irefauxlauxlthmb!mdat&Vxpdڮa:b꫍y9g ^%*"ISL)7}0\]/h~!kXr /bR箨cPߒhh$ ͩy, ]Mwwo>tZ_5BYbɜ, ! 1*LW,29?zV3(I`*#CwyD9&4L{#u&|ө'[Hٖ{6`PxtlKVJHѪ#Si5V»[֗뎗҅ľ3{@A8.zwPIčlX&q, P>3KiQ2OۚVUٗ% AwQ]g+E "Y 85t)7Z(V ln[v1J4}naҤֻ~u<DpA/1Q4aAY@Gej-ۊٵFZonbqzpPWp%|fZn?&|6zm ߃bpBӭK&ScX>c$3̄!jơ4l`w+ݴ(RII UvY9IA_iO3>W0^JW.ZFoz>MjWp%;GNop)n 'M8 (ơԍZc e@H&swy%M%7vg7g3b-&Slibheif-1.12.0/fuzzing/corpus/colors-no-alpha.heic0000644000175000017500000000076314003350405016755 00000000000000ftypheicmif1heic.meta!hdlrpictpitm"ilocD@N#iinfinfehvc1iprpipcouhvcCp @ p@!(Bp I)l@"Dr"@ispe@@ipmamdat&uͬ|rAb9[@us`i+l$\g o;/M˞%V2LUqÆU{T}sE ))dMXXNzpSe,ӽ1t 3r؍[75w_libheif-1.12.0/fuzzing/corpus/colors-no-alpha-thumbnail.heic0000644000175000017500000000207714003350404020735 00000000000000ftypheicmif1heicmeta!hdlrpictpitm4ilocD@;X8iinfinfehvc1infehvc1,⓺ͻP̟*=Gb͇ VN13P\Ƒ4ܝdܲ*P$ARv}gwPO!^J&|Z&)/84QVpɇq=r"ܩuYo ɵNVL5W sfJ3{ BrcŲR q3gOkwRvfݥlVbP.dz;'⏷>7:ϼ-~7kX1ƒL^wK)tIams^ yj"\<6|Z"=F2O'glibheif-1.12.0/fuzzing/corpus/hbo_heif_context.h_126_1.heic0000644000175000017500000000111014003350405020307 00000000000000ftypmif1heicmif1meta!hdlrpictpitm4ilocD@77 Liinfinfe hvc1HEVC Imageinfehvc1HEVC ImageirefauxlJiprp'ipcolhvcC`x@ `x$B`x-$m٢DispexhvcC`x@ `x@+B`x-Yة$!Dwى'auxCurn:mpeg:hevc:2015:auxid:2ipmamdatYG$libheif-1.12.0/fuzzing/corpus/colors-with-alpha.heic0000644000175000017500000000146114003350405017310 00000000000000ftypheicmif1heic%meta!hdlrpictpitm4ilocD@EG8iinfinfehvc1infehvc1diprpAipcouhvcCp @ p@!(Bp I)l@"Dr"@ispe@@'auxCurn:mpeg:hevc:2015:auxid:1uhvcCp @ p@!(Bp I)l@"Dr"@ispe@@ipmairefauxlmdatC& k8S}̆v$1"i˱"sZ6*w׮Ĺq0cMS&uͬ|rAb9[@us`i+l$\g o;/M˞%V2LUqÆU{T}sE ))dMXXNzpSe,ӽ1t 3r؍[75w_libheif-1.12.0/fuzzing/corpus/clusterfuzz-testcase-minimized-file-fuzzer-5757633845264384.heic0000644000175000017500000000150514003350404026202 00000000000000ftyp heic%meta !hdlr pict pitm 4iloc D@ E  8iinf infe  hvc1infe  hvc1diprpAipcouhvcC   (B   I D"  ' uhvcC   (   ipma  C   libheif-1.12.0/fuzzing/corpus/github_46_1.heic0000644000175000017500000001152714003350405015772 00000000000000ftypheicmif1heicmeta"hdlrpict$dindref url pitm2=iinf3infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infe hvc1infe!hvc1anfe"hvc1infeh#vc1infe$hvc1infe%hvc1infe&hvc1infe'hvc1infe(hvc1infe)hvc1infe*hvc1infe+hvc1infe,hvc1infe-hvc1infe.hvc1infe/hvc1infe0hvc1infe1gridinfe2hvc1inoe3Exifirefldimg10  !"#$%&'()*+,-./0thmb21cdsc31 iprp Sipco0colrprof$applmntrRGB XYZ   acspAPPLAPPL-appl%M8 descecprtd#wtptrXYZgXYZbXYZrTRC chad,bTRC gTRC desc Display P3textCopyright Apple Inc., 2017XYZfQXYZ =XYZ J7 XYZ (8 ȹparaff Y [sf32 B&nChvcCpZ @ pZp$BpZX>(4@|Q0h4 `i!qXBu|VCtcaBE  V `DŽ`XaN*H$|t(_* X"L I@I`rю ₁p4%X3 DIa 8 L\!^O_%& _'?^yׯ pI(6@|VCⰄB' P((z"U #1>@8) #3 /AdJf< 8p'!PA CtcaBE  V 0`DŽ`XaN*H$ׯ pIipma2      !"#HEI$%&'()*+,-./012 idat @ilocD3i0L  !h "/ " #$%m&4&'()X**+,-J../0f1--appl%M8 descecprtd#wtptrXYZgXYZbXYZrTRC chad,bTRC gTRC desc Display P3textCopyright Apple Inc., 2017XYZfQXYZ =XYZ J7 XYZ (8 ȹparaff Y [sf32 B&nChvcCpZ @ pZp$BpZilibheif-1.12.0/fuzzing/corpus/github_50.heic0000644000175000017500000001576714003350405015557 00000000000000ftyp heicmeta "hdlr pict $ pitm 1=iinf  infe  iovl                  hvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infehvc1infe hvc1infe!hvc1infe"hvc1infe#hvc1infe$hvc1infe%hvc1infe&hvc1infe'hvc1infe(hvc1infe)hvc1infe*hvc1infe+hvc1infe,hvc1infe-hvc1infe.hvc1infe/hvc1infe0jvc1infe1gridinfe2hvc1infe3Exifirefldimg10  !"#$%&'()*+,-./0thmb21cdsc31 iprp Sipco0prof$applmntrRGB XYZ   acspAPPLAPPL-appl%M8 descecprtd#wtptrXYZgXYZbXYZrTRC chad,bTRC gTRC desc Display P3textCopyright Apple Inc., 217XYZ QXYZ =XYZ J XYZ (8 ȹparaff Y [sf32 B&nChvcCpZ @ pZp$BpZX>(4@|Q0h4 `i!qXBu|VCtcaBE  V 0`DŽ`XaN*H$|t(_* X"L I@I`rЎ ₁p2X3 DIa 8 L\!^O_%& _'?^yׯ pI(4@|VCⰄB' P((z"U #1D@8) #3 /AdJf< 8p'!PA CtcaBE  V 0`DŽ`XaN*H$ׯ pI<@|W$BG+\`!L…A@@8@`"$ HTH&.t(_* X"L I@I`rL…A@@8@`"$ HH.T&ׯ pIipma4      !"#$%&'()*+,-./112 idat @ilocD3i0L   !h "/ " #$%m&4&'()X**+,-J../0f1-1 2!3"4I#5$5%6&7x'8?(9)9*]+;[,<"-<.=/>w0?>12Bg3mdat,c(,VG2jbɓf(%B>~0ZI 4p%2ʀTnK  ExifMM*  (02]iAppleiPhone XHH11.3201exif:ExposureBiasValFN"'0221Vj ~  $ispeispe irotpixi0colrprof$applGB XYX   acspAPPLAPPL-appl%M9d escecprtd#wtptrXYZgXYZtextCopyright Apple Inc., 2017XYZ QXYZ =XYZ J7 XYZ (8 ȹpara        bplist00O            8*D* Dh< @ * j eV( WZ("b>~0Zz?"j 4%2ʀ (PTnK2P|8*D* Dh< @ * j eV( WZ1Gjbɓf("b>~0Zz?"j 4R%2ʀ (PTnK2P|8*D* Dh< @ * j eV( WZ1Gjbɓf("b>~0Zz?"j 4R%2ʀ (PTnK2P|8*D* Dh< @ * j eV( WZ1Gjbɓf("b>~0Zz?4libheif-1.12.0/fuzzing/corpus/clusterfuzz-testcase-minimized-file-fuzzer-5724458239655936.heic0000644000175000017500000000076314003350404026212 00000000000000ftyp heic.meta !hdlr pict pitm "iloc D@ N#iinf infe  hvc1iprpipcouhvcC   (B   imir Dr"  ipma  & u ͬ!| r Ab5[ s `i u\ a oNpSe,ӽ t 3r{ u d}s . e i libheif-1.12.0/fuzzing/corpus/clusterfuzz-testcase-minimized-file-fuzzer-5718632116518912.heic0000644000175000017500000000076314003350404026171 00000000000000ftyp heic.meta !hdlr pict pitm "iloc D@ N#iinf infe  hvc1iprpipcouhvcC   (B   & ꮖ D"  ipma   libheif-1.12.0/fuzzing/corpus/github_46_2.heic0000644000175000017500000000102014003350405015756 00000000000000iprpiprp libheif-1.12.0/fuzzing/Makefile.in0000664000175000017500000003402514044226076013672 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = fuzzing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_c_cxx_compile_flags.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.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/visibility.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__extra_recursive_targets = format-recursive test-recursive am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_LIBFUZZER = @ENABLE_LIBFUZZER@ ENABLE_PARALLEL_TILE_DECODING = @ENABLE_PARALLEL_TILE_DECODING@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FUZZING_ENGINE = @FUZZING_ENGINE@ GO = @GO@ GREP = @GREP@ HAVE_CXX11 = @HAVE_CXX11@ HAVE_GO = @HAVE_GO@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBHEIF_AGE = @LIBHEIF_AGE@ LIBHEIF_CURRENT = @LIBHEIF_CURRENT@ LIBHEIF_REVISION = @LIBHEIF_REVISION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PROJECT_VERSION_MAJOR = @PROJECT_VERSION_MAJOR@ PROJECT_VERSION_MINOR = @PROJECT_VERSION_MINOR@ PROJECT_VERSION_PATCH = @PROJECT_VERSION_PATCH@ PROJECT_VERSION_TWEAK = @PROJECT_VERSION_TWEAK@ RANLIB = @RANLIB@ REQUIRES_PRIVATE = @REQUIRES_PRIVATE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WITH_EXAMPLES = @WITH_EXAMPLES@ 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_CXX = @ac_ct_CXX@ 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@ aom_CFLAGS = @aom_CFLAGS@ aom_LIBS = @aom_LIBS@ 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@ dav1d_CFLAGS = @dav1d_CFLAGS@ dav1d_LIBS = @dav1d_LIBS@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gdk_pixbuf_binary_version = @gdk_pixbuf_binary_version@ gdk_pixbuf_binarydir = @gdk_pixbuf_binarydir@ gdk_pixbuf_cache_file = @gdk_pixbuf_cache_file@ gdk_pixbuf_moduledir = @gdk_pixbuf_moduledir@ gdkpixbuf_CFLAGS = @gdkpixbuf_CFLAGS@ gdkpixbuf_LIBS = @gdkpixbuf_LIBS@ have_aom = @have_aom@ have_aom_decoder = @have_aom_decoder@ have_aom_encoder = @have_aom_encoder@ have_avif_decoder = @have_avif_decoder@ have_avif_encoder = @have_avif_encoder@ have_libde265 = @have_libde265@ have_rav1e = @have_rav1e@ have_x265 = @have_x265@ 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@ libde265_CFLAGS = @libde265_CFLAGS@ libde265_LIBS = @libde265_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libjpeg_CFLAGS = @libjpeg_CFLAGS@ libjpeg_LIBS = @libjpeg_LIBS@ libpng_CFLAGS = @libpng_CFLAGS@ libpng_LIBS = @libpng_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rav1e_CFLAGS = @rav1e_CFLAGS@ rav1e_LIBS = @rav1e_LIBS@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ x265_CFLAGS = @x265_CFLAGS@ x265_LIBS = @x265_LIBS@ EXTRA_DIST = \ corpus/*.heic \ dictionary.txt 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) --foreign fuzzing/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign fuzzing/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(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 format-local: test-local: tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile 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 mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: format: format-am format-am: format-local html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f 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: test: test-am test-am: test-local uninstall-am: .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 format-am format-local \ html html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am test-am \ test-local uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libheif-1.12.0/fuzzing/Makefile.am0000644000175000017500000000006614003350404013641 00000000000000EXTRA_DIST = \ corpus/*.heic \ dictionary.txt libheif-1.12.0/fuzzing/dictionary.txt0000644000175000017500000000052014003350405014507 00000000000000"auxC" "auxl" "av1C" "avif" "cdsc" "clap" "colr" "dimg" "dinf" "dref" "ftyp" "grpl" "hdlr" "heic" "heix" "hevc" "hevx" "heim" "heis" "hevm" "hevs" "hvcC" "idat" "iinf" "iloc" "imir" "infe" "ipco" "ipma" "iprp" "iref" "irot" "ispe" "mdat" "meta" "mif1" "mime" "msf1" "nclx" "pict" "pitm" "pixi" "prof" "rICC" "thmb" "uri " "url " "uuid" libheif-1.12.0/libheif.pc.in0000644000175000017500000000072214003350415012445 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ builtin_h265_decoder=@have_libde265@ builtin_h265_encoder=@have_x265@ builtin_avif_decoder=@have_avif_decoder@ builtin_avif_encoder=@have_avif_encoder@ Name: libheif Description: HEIF image codec. URL: https://github.com/strukturag/libheif Version: @VERSION@ Requires: Requires.private: @REQUIRES_PRIVATE@ Libs: -L@libdir@ -lheif Libs.private: @LIBS@ -lstdc++ Cflags: -I@includedir@ libheif-1.12.0/CPPLINT.cfg0000644000175000017500000000006214003350401011674 00000000000000set noparent filter=-,+build/include_what_you_use libheif-1.12.0/compile0000755000175000017500000001632714006205443011503 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2018 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 | \ icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libheif-1.12.0/gnome/0000775000175000017500000000000014044446310011305 500000000000000libheif-1.12.0/gnome/Makefile.in0000664000175000017500000004253014044226076013303 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = gnome ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_c_cxx_compile_flags.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.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/visibility.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(mime_dir)" \ "$(DESTDIR)$(thumbnailer_dir)" DATA = $(mime__DATA) $(thumbnailer__DATA) am__extra_recursive_targets = format-recursive test-recursive am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_LIBFUZZER = @ENABLE_LIBFUZZER@ ENABLE_PARALLEL_TILE_DECODING = @ENABLE_PARALLEL_TILE_DECODING@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FUZZING_ENGINE = @FUZZING_ENGINE@ GO = @GO@ GREP = @GREP@ HAVE_CXX11 = @HAVE_CXX11@ HAVE_GO = @HAVE_GO@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBHEIF_AGE = @LIBHEIF_AGE@ LIBHEIF_CURRENT = @LIBHEIF_CURRENT@ LIBHEIF_REVISION = @LIBHEIF_REVISION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PROJECT_VERSION_MAJOR = @PROJECT_VERSION_MAJOR@ PROJECT_VERSION_MINOR = @PROJECT_VERSION_MINOR@ PROJECT_VERSION_PATCH = @PROJECT_VERSION_PATCH@ PROJECT_VERSION_TWEAK = @PROJECT_VERSION_TWEAK@ RANLIB = @RANLIB@ REQUIRES_PRIVATE = @REQUIRES_PRIVATE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WITH_EXAMPLES = @WITH_EXAMPLES@ 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_CXX = @ac_ct_CXX@ 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@ aom_CFLAGS = @aom_CFLAGS@ aom_LIBS = @aom_LIBS@ 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@ dav1d_CFLAGS = @dav1d_CFLAGS@ dav1d_LIBS = @dav1d_LIBS@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gdk_pixbuf_binary_version = @gdk_pixbuf_binary_version@ gdk_pixbuf_binarydir = @gdk_pixbuf_binarydir@ gdk_pixbuf_cache_file = @gdk_pixbuf_cache_file@ gdk_pixbuf_moduledir = @gdk_pixbuf_moduledir@ gdkpixbuf_CFLAGS = @gdkpixbuf_CFLAGS@ gdkpixbuf_LIBS = @gdkpixbuf_LIBS@ have_aom = @have_aom@ have_aom_decoder = @have_aom_decoder@ have_aom_encoder = @have_aom_encoder@ have_avif_decoder = @have_avif_decoder@ have_avif_encoder = @have_avif_encoder@ have_libde265 = @have_libde265@ have_rav1e = @have_rav1e@ have_x265 = @have_x265@ 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@ libde265_CFLAGS = @libde265_CFLAGS@ libde265_LIBS = @libde265_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libjpeg_CFLAGS = @libjpeg_CFLAGS@ libjpeg_LIBS = @libjpeg_LIBS@ libpng_CFLAGS = @libpng_CFLAGS@ libpng_LIBS = @libpng_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rav1e_CFLAGS = @rav1e_CFLAGS@ rav1e_LIBS = @rav1e_LIBS@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ x265_CFLAGS = @x265_CFLAGS@ x265_LIBS = @x265_LIBS@ thumbnailer_dir = $(datadir)/thumbnailers thumbnailer__DATA = heif.thumbnailer mime_dir = $(datadir)/mime/packages mime__DATA = heif.xml avif.xml EXTRA_DIST = \ heif.thumbnailer \ heif.xml \ avif.xml 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) --foreign gnome/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign gnome/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(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-mime_DATA: $(mime__DATA) @$(NORMAL_INSTALL) @list='$(mime__DATA)'; test -n "$(mime_dir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(mime_dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(mime_dir)" || 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)$(mime_dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(mime_dir)" || exit $$?; \ done uninstall-mime_DATA: @$(NORMAL_UNINSTALL) @list='$(mime__DATA)'; test -n "$(mime_dir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(mime_dir)'; $(am__uninstall_files_from_dir) install-thumbnailer_DATA: $(thumbnailer__DATA) @$(NORMAL_INSTALL) @list='$(thumbnailer__DATA)'; test -n "$(thumbnailer_dir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(thumbnailer_dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(thumbnailer_dir)" || 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)$(thumbnailer_dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(thumbnailer_dir)" || exit $$?; \ done uninstall-thumbnailer_DATA: @$(NORMAL_UNINSTALL) @list='$(thumbnailer__DATA)'; test -n "$(thumbnailer_dir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(thumbnailer_dir)'; $(am__uninstall_files_from_dir) format-local: test-local: tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(mime_dir)" "$(DESTDIR)$(thumbnailer_dir)"; 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: format: format-am format-am: format-local html: html-am html-am: info: info-am info-am: install-data-am: install-mime_DATA install-thumbnailer_DATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: test: test-am test-am: test-local uninstall-am: uninstall-mime_DATA uninstall-thumbnailer_DATA .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 format-am format-local \ 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-mime_DATA install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ install-thumbnailer_DATA installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am test-am test-local uninstall uninstall-am \ uninstall-mime_DATA uninstall-thumbnailer_DATA .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libheif-1.12.0/gnome/heif.thumbnailer0000644000175000017500000000015714003350405014367 00000000000000[Thumbnailer Entry] TryExec=heif-thumbnailer Exec=heif-thumbnailer -s %s %i %o MimeType=image/heif;image/avif; libheif-1.12.0/gnome/Makefile.am0000644000175000017500000000032614003350405013252 00000000000000thumbnailer_dir = $(datadir)/thumbnailers thumbnailer__DATA = heif.thumbnailer mime_dir = $(datadir)/mime/packages mime__DATA = heif.xml avif.xml EXTRA_DIST = \ heif.thumbnailer \ heif.xml \ avif.xml libheif-1.12.0/gnome/heif.xml0000644000175000017500000000052714003350405012656 00000000000000 HEIF image HEIF-Bild libheif-1.12.0/gnome/avif.xml0000644000175000017500000000043314003350405012664 00000000000000 AVIF image AVIF-Bild libheif-1.12.0/config.guess0000755000175000017500000012637314006205443012450 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2018 Free Software Foundation, Inc. timestamp='2018-02-24' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess # # Please send patches to . me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2018 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'`" # If ldd exists, use it to detect musl libc. if command -v ldd >/dev/null && \ ldd --version 2>&1 | grep -q ^musl then LIBC=musl fi ;; esac # Note: order is significant - the case branches are not exclusive. case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ "/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 ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine="${arch}${endian}"-unknown ;; *) machine="$UNAME_MACHINE_ARCH"-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case "$UNAME_MACHINE_ARCH" in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) 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 # Determine ABI tags. case "$UNAME_MACHINE_ARCH" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "$UNAME_VERSION" in Debian*) release='-gnu' ;; *) release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "$machine-${os}${release}${abi}" 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 ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) echo "$UNAME_MACHINE"-unknown-midnightbsd"$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 ;; *:Sortix:*:*) echo "$UNAME_MACHINE"-unknown-sortix exit ;; *:Redox:*:*) echo "$UNAME_MACHINE"-unknown-redox exit ;; mips:OSF1:*.*) echo mips-dec-osf1 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 ;; 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/lslpp ] ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi echo "$IBM_ARCH"-ibm-aix"$IBM_REV" exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) 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) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" 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*: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 ;; i*:UWIN*:*) echo "$UNAME_MACHINE"-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-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 "[:upper:]" "[:lower:]"``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 ;; e2k:Linux:*:*) echo "$UNAME_MACHINE"-unknown-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 ;; k1om: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; } ;; mips64el:Linux:*:*) echo "$UNAME_MACHINE"-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 ;; riscv32:Linux:*:* | riscv64:Linux:*:*) echo "$UNAME_MACHINE"-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:*:*) if objdump -f /bin/sh | grep -q elf32-x86-64; then echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32 else echo "$UNAME_MACHINE"-pc-linux-"$LIBC" fi 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.*:*) 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 configure 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 ;; SX-ACE:SUPER-UX:*:*) echo sxace-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 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi 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 ;; NSV-*:NONSTOP_KERNEL:*:*) echo nsv-tandem-nsk"$UNAME_RELEASE" exit ;; NSX-*:NONSTOP_KERNEL:*:*) echo nsx-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 ;; amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; esac echo "$0: unable to guess system type" >&2 case "$UNAME_MACHINE:$UNAME_SYSTEM" in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <&2 </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-functions 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: libheif-1.12.0/Makefile.am0000644000175000017500000000066214003350401012144 00000000000000ACLOCAL_AMFLAGS = -I m4 SUBDIRS = \ libheif \ examples \ extra \ fuzzing \ gdk-pixbuf \ gnome \ go \ scripts \ tests pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libheif.pc EXTRA_DIST = \ .github/workflows/*.yml \ appveyor.yml \ autogen.sh \ CMakeLists.txt \ CPPLINT.cfg \ README.md \ pre.js \ post.js \ build-emscripten.sh \ cmake/modules/*.cmake libheif-1.12.0/CMakeLists.txt0000664000175000017500000000775314043747772012713 00000000000000cmake_minimum_required (VERSION 3.13) project(libheif LANGUAGES C CXX VERSION 1.12.0.0) # https://cmake.org/cmake/help/v3.1/policy/CMP0054.html cmake_policy(SET CMP0054 NEW) include(GNUInstallDirs) # The version number. set (PACKAGE_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}) # Check for unistd.h include (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake) CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H) if (HAVE_UNISTD_H) add_definitions(-DHAVE_UNISTD_H) endif() if(NOT MSVC) add_definitions(-Wall) add_definitions(-Werror) add_definitions(-Wsign-compare) add_definitions(-Wconversion) add_definitions(-Wno-sign-conversion) add_definitions(-Wno-error=conversion) add_definitions(-Wno-error=unused-parameter) add_definitions(-Wno-error=deprecated-declarations) endif() set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) set(CMAKE_POSITION_INDEPENDENT_CODE ON) # Create the compile command database for clang by default set(CMAKE_EXPORT_COMPILE_COMMANDS ON) option(BUILD_SHARED_LIBS "Build shared libraries" ON) include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG(-Wno-error=potentially-evaluated-expression has_potentially_evaluated_expression) if (has_potentially_evaluated_expression) add_definitions(-Wno-error=potentially-evaluated-expression) endif() LIST (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules") option(WITH_LIBDE265 "Build libde265 decoder" ON) if (WITH_LIBDE265) find_package(Libde265) endif () option(WITH_X265 "Build x265 encoder" ON) if (WITH_X265) find_package(X265) endif () option(WITH_AOM "Build aom encoder/decoder" ON) if (WITH_AOM) find_package(LibAOM) endif() option(WITH_RAV1E "Build rav1e encoder" ON) if (WITH_RAV1E) find_package(Rav1e) endif () option(WITH_DAV1D "Build dav1d decoder" ON) if (WITH_DAV1D) find_package(Dav1d) endif () if (LIBDE265_FOUND) message("HEIF decoder, libde265: found") else () message("HEIF decoder, libde265: not found") endif () if (X265_FOUND) message("HEIF encoder, x265: found") else () message("HEIF encoder, x265: not found") endif () if (AOM_ENCODER_FOUND) message("AVIF encoder, aom: found") else () message("AVIF encoder, aom: not found") endif () if (AOM_DECODER_FOUND) message("AVIF decoder, aom: found") else () message("AVIF decoder, aom: not found") endif () if (RAV1E_FOUND) message("AVIF encoder, rav1e: found") else () message("AVIF encoder, rav1e: not found") endif () if (DAV1D_FOUND) message("AVIF decoder, dav1d: found") else () message("AVIF decoder, dav1d: not found") endif () # Create libheif pkgconfig file set(prefix ${CMAKE_INSTALL_PREFIX}) set(exec_prefix ${CMAKE_INSTALL_PREFIX}) set(libdir ${CMAKE_INSTALL_FULL_LIBDIR}) set(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR}) if (LIBDE265_FOUND) list(APPEND REQUIRES_PRIVATE "libde265") set(have_libde265 yes) else() set(have_libde265 no) endif() if (X265_FOUND) list(APPEND REQUIRES_PRIVATE "x265") set(have_x265 yes) else() set(have_x265 no) endif() if (AOM_DECODER_FOUND OR AOM_ENCODER_FOUND) list(APPEND REQUIRES_PRIVATE "aom") endif() if (DAV1D_FOUND) list(APPEND REQUIRES_PRIVATE "dav1d") endif() if (RAV1E_FOUND) list(APPEND REQUIRES_PRIVATE "rav1e") endif() if (AOM_DECODER_FOUND OR DAV1D_FOUND) set(have_avif_decoder yes) else() set(have_avif_decoder no) endif() if (AOM_ENCODER_FOUND OR RAV1E_FOUND) set(have_avif_encoder yes) else() set(have_avif_encoder no) endif() list(JOIN REQUIRES_PRIVATE " " REQUIRES_PRIVATE) set(VERSION ${PROJECT_VERSION}) configure_file(libheif.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libheif.pc @ONLY) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libheif.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) option(WITH_EXAMPLES "Build examples" ON) if(WITH_EXAMPLES) add_subdirectory (examples) endif() add_subdirectory (libheif) add_subdirectory (gdk-pixbuf) libheif-1.12.0/configure.ac0000664000175000017500000002707714043747772012442 00000000000000AC_PREREQ([2.68]) AC_INIT([libheif], [1.12.0], [opensource@struktur.de]) AC_CONFIG_SRCDIR([libheif/box.cc]) AC_CONFIG_HEADERS([config.h]) # Note: do not forget to set the version in the CMakeLists.txt file accordingly PROJECT_VERSION_MAJOR=1 PROJECT_VERSION_MINOR=12 PROJECT_VERSION_PATCH=0 PROJECT_VERSION_TWEAK=0 AC_SUBST(PROJECT_VERSION_MAJOR) AC_SUBST(PROJECT_VERSION_MINOR) AC_SUBST(PROJECT_VERSION_PATCH) AC_SUBST(PROJECT_VERSION_TWEAK) # From https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html: # If the library source code has changed at all since the last update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’). # If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. # If any interfaces have been added since the last public release, then increment age. # If any interfaces have been removed or changed since the last public release, then set age to 0. LIBHEIF_CURRENT=13 LIBHEIF_REVISION=0 LIBHEIF_AGE=12 AC_SUBST(LIBHEIF_CURRENT) AC_SUBST(LIBHEIF_REVISION) AC_SUBST(LIBHEIF_AGE) AC_CANONICAL_SYSTEM LT_INIT AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([.]) # Checks for programs. AM_PROG_AS AC_PROG_CXX AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_GREP AC_ARG_ENABLE([go], AS_HELP_STRING([--disable-go], [Disable building Go code / examples.])) if eval "test x$enable_go = x" ; then AC_PATH_PROG([GO], [go], [no], [$PATH$PATH_SEPARATOR/usr/lib/go-1.10$PATH_SEPARATOR/usr/lib/go-1.9$PATH_SEPARATOR/usr/lib/go-1.8$PATH_SEPARATOR/usr/lib/go-1.7$PATH_SEPARATOR/usr/lib/go-1.6]) AC_SUBST(GO) fi AM_CONDITIONAL([HAVE_GO], [test "x$GO" != "xno" && test "x$GO" != "x"]) AC_SUBST(HAVE_GO) AC_ARG_ENABLE([examples], AS_HELP_STRING([--disable-examples], [Disable building examples.]), [], [enable_examples=yes]) AM_CONDITIONAL([WITH_EXAMPLES], [test "x$enable_examples" = "xyes"]) AC_SUBST(WITH_EXAMPLES) AM_CONDITIONAL(MINGW, expr $host : '.*-mingw' >/dev/null 2>&1) AM_INIT_AUTOMAKE([1.13 foreign]) AM_EXTRA_RECURSIVE_TARGETS([format test]) AX_CXX_COMPILE_STDCXX_11() AC_HEADER_STDBOOL AC_CHECK_HEADERS([inttypes.h stddef.h unistd.h]) AC_C_INLINE AC_FUNC_ERROR_AT_LINE AC_TYPE_SIZE_T AC_TYPE_UINT8_T AC_TYPE_UINT16_T AC_TYPE_UINT32_T AC_TYPE_UINT64_T AC_CHECK_LIB([pthread], [pthread_create]) AC_ARG_ENABLE([visibility], AS_HELP_STRING([--disable-visibility], [Disable visibility definitions.]), [HAVE_VISIBILITY=0], [gl_VISIBILITY]) AC_ARG_ENABLE([tests], AS_HELP_STRING([--enable-tests], [Enable compiling tests ('visibility' will be disabled).])) AS_IF([test "x$enable_tests" = "xyes"], [ HAVE_TESTS=1 enable_visibility=no HAVE_VISIBILITY=0 CFLAG_VISIBILITY= ]) AM_CONDITIONAL([HAVE_TESTS], [test "x$HAVE_TESTS" == "x1"]) AM_CONDITIONAL([HAVE_VISIBILITY], [test "x$HAVE_VISIBILITY" != "x0"]) if eval "test x$enable_visibility = x" ; then enable_visibility=yes ; fi REQUIRES_PRIVATE="" AC_SUBST([REQUIRES_PRIVATE]) PKG_PROG_PKG_CONFIG have_avif_decoder="no" have_avif_encoder="no" AC_ARG_ENABLE([aom], AS_HELP_STRING([--disable-aom], [Disable building of aom decoder/encoder.])) if eval "test x$enable_aom = x" ; then enable_aom=yes ; fi if eval "test x$enable_aom != xno"; then PKG_CHECK_MODULES([aom], [aom], [ AC_DEFINE([HAVE_AOM], [1], [Whether aom was found.]) AC_SUBST(aom_CFLAGS) AC_SUBST(aom_LIBS) REQUIRES_PRIVATE="$REQUIRES_PRIVATE aom" have_aom="yes" ], [have_aom="no"]) if eval "test x$have_aom = xyes"; then AC_CHECK_HEADER([aom/aom_decoder.h], [ AC_DEFINE([HAVE_AOM_DECODER], [1], [Whether aom decoder was found.]) have_aom_decoder="yes" have_avif_decoder="yes" ], [have_aom_decoder="no"]) AC_CHECK_HEADER([aom/aom_encoder.h], [ AC_DEFINE([HAVE_AOM_ENCODER], [1], [Whether aom encoder was found.]) have_aom_encoder="yes" have_avif_encoder="yes" ], [have_aom_encoder="no"]) fi else have_aom="no" have_aom_decoder="no" have_aom_encoder="no" fi AM_CONDITIONAL([HAVE_AOM], [test "x$have_aom" = "xyes"]) AC_SUBST([have_aom]) AM_CONDITIONAL([HAVE_AOM_DECODER], [test "x$have_aom_decoder" = "xyes"]) AC_SUBST([have_aom_decoder]) AM_CONDITIONAL([HAVE_AOM_ENCODER], [test "x$have_aom_encoder" = "xyes"]) AC_SUBST([have_aom_encoder]) AC_ARG_ENABLE([libde265], AS_HELP_STRING([--disable-libde265], [Disable building of libde265 decoder.])) if eval "test x$enable_libde265 = x" ; then enable_libde265=yes ; fi if eval "test x$enable_libde265 != xno"; then PKG_CHECK_MODULES([libde265], [libde265], [ AC_DEFINE([HAVE_LIBDE265], [1], [Whether libde265 was found.]) AC_SUBST(libde265_CFLAGS) AC_SUBST(libde265_LIBS) REQUIRES_PRIVATE="$REQUIRES_PRIVATE libde265" have_libde265="yes" ], [have_libde265="no"]) else have_libde265="no" fi AM_CONDITIONAL([HAVE_LIBDE265], [test "x$have_libde265" = "xyes"]) AC_SUBST([have_libde265]) AC_ARG_ENABLE([x265], AS_HELP_STRING([--disable-x265], [Disable building of x265 encoder.])) if eval "test x$enable_x265 = x" ; then enable_x265=yes ; fi if eval "test x$enable_x265 != xno"; then PKG_CHECK_MODULES([x265], [x265], [ AC_DEFINE([HAVE_X265], [1], [Whether x265 was found.]) AC_SUBST(x265_CFLAGS) AC_SUBST(x265_LIBS) REQUIRES_PRIVATE="$REQUIRES_PRIVATE x265" have_x265="yes" ], [have_x265="no"]) else have_x265="no" fi AM_CONDITIONAL([HAVE_X265], [test "x$have_x265" = "xyes"]) AC_SUBST([have_x265]) AC_CHECK_HEADERS([jpeglib.h]) AC_CHECK_LIB([jpeg], [jpeg_CreateCompress], [ AC_DEFINE([HAVE_LIBJPEG], [1], [Whether libjpeg was found.]) libjpeg_CFLAGS="" AC_SUBST(libjpeg_CFLAGS) libjpeg_LIBS="-ljpeg" AC_SUBST(libjpeg_LIBS) have_libjpeg="yes" ], [have_libjpeg="no"]) if eval "test x$have_libjpeg = xno"; then AC_CHECK_LIB([jpeg], [jpeg_destroy_compress], [ AC_DEFINE([HAVE_LIBJPEG], [1], [Whether libjpeg was found.]) libjpeg_CFLAGS="" AC_SUBST(libjpeg_CFLAGS) libjpeg_LIBS="-ljpeg" AC_SUBST(libjpeg_LIBS) have_libjpeg="yes" ], [have_libjpeg="no"]) fi AM_CONDITIONAL([HAVE_LIBJPEG], [test "x$have_libjpeg" = "xyes"]) if eval "test x$have_libjpeg = xyes"; then AC_MSG_CHECKING([for jpeg_write_icc_profile]) AC_LANG_PUSH(C++) AC_TRY_COMPILE([ #include #include #include ],[ jpeg_write_icc_profile(NULL, NULL, 0); ],[has_jpeg_write_icc_profile=yes],[has_jpeg_write_icc_profile=no]); AC_LANG_POP(C++) AC_MSG_RESULT([$has_jpeg_write_icc_profile]) if eval "test x$has_jpeg_write_icc_profile = xyes"; then AC_DEFINE(HAVE_JPEG_WRITE_ICC_PROFILE, 1, [Define to 1 if jpeg_write_icc_profile is available in libjpeg.]) fi fi PKG_CHECK_MODULES([libpng], [libpng], [ AC_DEFINE([HAVE_LIBPNG], [1], [Whether libpng was found.]) AC_SUBST(libpng_CFLAGS) AC_SUBST(libpng_LIBS) have_libpng="yes" ], [have_libpng="no"]) AM_CONDITIONAL([HAVE_LIBPNG], [test "x$have_libpng" = "xyes"]) AC_ARG_ENABLE([gdk-pixbuf], AS_HELP_STRING([--disable-gdk-pixbuf], [Disable building of gdk-pixbuf plugin.])) if eval "test x$enable_gdk_pixbuf = x" ; then enable_gdk_pixbuf=yes ; fi if eval "test x$enable_gdk_pixbuf != xno"; then PKG_CHECK_MODULES([gdkpixbuf], [gdk-pixbuf-2.0], [ AC_DEFINE([HAVE_GDKPIXBUF2], [1], [Whether gdk-pixbuf-2.0 was found.]) AC_SUBST(gdkpixbuf_CFLAGS) AC_SUBST(gdkpixbuf_LIBS) have_gdkpixbuf2="yes" ], [have_gdkpixbuf2="no"]) else have_gdkpixbuf2="no" fi AM_CONDITIONAL([HAVE_GDKPIXBUF2], [test "x$have_gdkpixbuf2" = "xyes"]) if eval "test x$have_gdkpixbuf2 = xyes"; then gdk_pixbuf_binary_version="`$PKG_CONFIG --variable=gdk_pixbuf_binary_version gdk-pixbuf-2.0`" gdk_pixbuf_binarydir="`$PKG_CONFIG --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0`" gdk_pixbuf_moduledir=`$PKG_CONFIG --variable gdk_pixbuf_moduledir gdk-pixbuf-2.0` gdk_pixbuf_cache_file=`$PKG_CONFIG --variable gdk_pixbuf_cache_file gdk-pixbuf-2.0` AC_SUBST([gdk_pixbuf_binary_version]) AC_SUBST([gdk_pixbuf_binarydir]) AC_SUBST([gdk_pixbuf_moduledir]) AC_SUBST([gdk_pixbuf_cache_file]) fi AC_ARG_ENABLE([rav1e], AS_HELP_STRING([--disable-rav1e], [Disable building of rav1e encoder.])) if eval "test x$enable_rav1e = x" ; then enable_rav1e=yes ; fi if eval "test x$enable_rav1e != xno"; then PKG_CHECK_MODULES([rav1e], [rav1e], [ AC_DEFINE([HAVE_RAV1E], [1], [Whether rav1e was found.]) AC_SUBST(rav1e_CFLAGS) AC_SUBST(rav1e_LIBS) have_avif_encoder="yes" REQUIRES_PRIVATE="$REQUIRES_PRIVATE rav1e" have_rav1e="yes" ], [have_rav1e="no"]) else have_rav1e="no" fi AM_CONDITIONAL([HAVE_RAV1E], [test "x$have_rav1e" = "xyes"]) AC_SUBST([have_rav1e]) PKG_CHECK_MODULES([dav1d], [dav1d], [ AC_DEFINE([HAVE_DAV1D], [1], [Whether dav1d was found.]) AC_SUBST(dav1d_CFLAGS) AC_SUBST(dav1d_LIBS) have_avif_decoder="yes" REQUIRES_PRIVATE="$REQUIRES_PRIVATE dav1d" have_dav1d="yes" ], [have_dav1d="no"]) AM_CONDITIONAL([HAVE_DAV1D], [test "x$have_dav1d" = "xyes"]) AC_SUBST(have_avif_decoder) AC_SUBST(have_avif_encoder) AC_ARG_ENABLE([libfuzzer], AS_HELP_STRING([--enable-libfuzzer], [Enable fuzzing with libFuzzer.]), [], [enable_libfuzzer=no]) if eval "test x$enable_libfuzzer != xno"; then AC_MSG_NOTICE([Enable libFuzzer]) AC_DEFINE([HAVE_LIBFUZZER], [1], [Whether building with libFuzzer.]) FUZZING_ENGINE="-lFuzzingEngine" if eval "test x$enable_libfuzzer != xyes"; then FUZZING_ENGINE="$enable_libfuzzer" fi AC_MSG_NOTICE([Fuzzing engine flags: $FUZZING_ENGINE]) AC_SUBST([FUZZING_ENGINE]) fi AM_CONDITIONAL([ENABLE_LIBFUZZER], [test "x$enable_libfuzzer" != "xno"]) AC_SUBST(ENABLE_LIBFUZZER) AC_ARG_ENABLE([multithreading], AS_HELP_STRING([--disable-multithreading], [Disable multithreaded decoding.])) if eval "test x$enable_multithreading = x" ; then enable_multithreading=yes ; fi if eval "test x$enable_multithreading != xno"; then AC_MSG_NOTICE([Enable multithreading]) AC_DEFINE([ENABLE_PARALLEL_TILE_DECODING], [1], [Whether we enable multithreaded decoding.]) fi AC_SUBST(ENABLE_PARALLEL_TILE_DECODING) WARNING_FLAGS="-Wall -Werror -Wsign-compare -Wconversion -Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error=deprecated-declarations" CXXFLAGS="$CXXFLAGS $WARNING_FLAGS" CFLAGS="$CFLAGS $WARNING_FLAGS" AC_C_CXX_COMPILE_FLAGS([-Wno-error=potentially-evaluated-expression]) AC_MSG_NOTICE([---------------------------------------]) AC_MSG_NOTICE([Multithreading: $enable_multithreading]) AC_MSG_NOTICE([Symbol visibility: $enable_visibility]) AC_MSG_NOTICE([libaom decoder: $have_aom_decoder]) AC_MSG_NOTICE([libaom encoder: $have_aom_encoder]) AC_MSG_NOTICE([rav1e encoder: $have_rav1e]) AC_MSG_NOTICE([dav1d decoder: $have_dav1d]) AC_MSG_NOTICE([libde265 decoder: $have_libde265]) AC_MSG_NOTICE([libx265 encoder: $have_x265]) AC_MSG_NOTICE([JPEG output: $have_libjpeg]) AC_MSG_NOTICE([PNG output: $have_libpng]) AC_MSG_NOTICE([GdkPixbuf2 loader: $have_gdkpixbuf2]) AC_MSG_NOTICE([Examples: $enable_examples]) AC_MSG_NOTICE([Tests: $enable_tests (tests will cause 'visibility' to be turned off)]) AC_MSG_NOTICE([---------------------------------------]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([examples/Makefile]) AC_CONFIG_FILES([extra/Makefile]) AC_CONFIG_FILES([fuzzing/Makefile]) AC_CONFIG_FILES([gdk-pixbuf/Makefile]) AC_CONFIG_FILES([go/Makefile]) AC_CONFIG_FILES([gnome/Makefile]) AC_CONFIG_FILES([scripts/Makefile]) AC_CONFIG_FILES([tests/Makefile]) AC_CONFIG_FILES([libheif/Makefile]) AC_CONFIG_FILES([libheif/heif_version.h]) AC_CONFIG_FILES([libheif.pc]) AC_OUTPUT libheif-1.12.0/build-emscripten.sh0000755000175000017500000000377414003350402013725 00000000000000#!/bin/bash set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CORES=$(nproc --all) echo "Build using ${CORES} CPU cores" LIBDE265_VERSION=1.0.2 [ -s "libde265-${LIBDE265_VERSION}.tar.gz" ] || curl \ -L \ -o libde265-${LIBDE265_VERSION}.tar.gz \ https://github.com/strukturag/libde265/releases/download/v${LIBDE265_VERSION}/libde265-${LIBDE265_VERSION}.tar.gz if [ ! -s "libde265-${LIBDE265_VERSION}/libde265/.libs/libde265.so" ]; then tar xf libde265-${LIBDE265_VERSION}.tar.gz cd libde265-${LIBDE265_VERSION} [ -x configure ] || ./autogen.sh emconfigure ./configure --disable-sse --disable-dec265 --disable-sherlock265 emmake make -j${CORES} cd .. fi CONFIGURE_ARGS="--disable-multithreading --disable-go" emconfigure ./configure $CONFIGURE_ARGS \ PKG_CONFIG_PATH="${DIR}/libde265-${LIBDE265_VERSION}" \ libde265_CFLAGS="-I${DIR}/libde265-${LIBDE265_VERSION}" \ libde265_LIBS="-L${DIR}/libde265-${LIBDE265_VERSION}/libde265/.libs" if [ ! -e "Makefile" ]; then # Most likely the first run of "emscripten" which will generate the # config file and terminate. Run "emconfigure" again. emconfigure ./configure $CONFIGURE_ARGS \ PKG_CONFIG_PATH="${DIR}/libde265-${LIBDE265_VERSION}" \ libde265_CFLAGS="-I${DIR}/libde265-${LIBDE265_VERSION}" \ libde265_LIBS="-L${DIR}/libde265-${LIBDE265_VERSION}/libde265/.libs" fi emmake make -j${CORES} export TOTAL_MEMORY=16777216 echo "Running Emscripten..." emcc libheif/.libs/libheif.so \ --bind \ -s NO_EXIT_RUNTIME=1 \ -s TOTAL_MEMORY=${TOTAL_MEMORY} \ -s ALLOW_MEMORY_GROWTH=1 \ -s ASSERTIONS=0 \ -s INVOKE_RUN=0 \ -s DOUBLE_MODE=0 \ -s PRECISE_F32=0 \ -s PRECISE_I64_MATH=0 \ -s DISABLE_EXCEPTION_CATCHING=1 \ -s USE_CLOSURE_COMPILER=0 \ -s LEGACY_VM_SUPPORT=1 \ --memory-init-file 0 \ -O3 \ -std=c++11 \ -L${DIR}/libde265-${LIBDE265_VERSION}/libde265/.libs \ -lde265 \ --pre-js pre.js \ --post-js post.js \ -o libheif.js libheif-1.12.0/appveyor.yml0000664000175000017500000000141114044225345012510 00000000000000# stats available at # https://ci.appveyor.com/project/strukturag/libheif image: Visual Studio 2019 configuration: Release cache: c:\tools\vcpkg\installed\ matrix: allow_failures: - arch: arm64 # libde265 currently doesn't support arm64 on vcpkg environment: matrix: - arch: x64 - arch: arm64 install: - vcpkg install libde265:%arch%-windows - vcpkg install x265:%arch%-windows - vcpkg install dav1d:%arch%-windows - cd c:\tools\vcpkg - vcpkg integrate install - cd %APPVEYOR_BUILD_FOLDER% before_build: - mkdir build - cd build - cmake .. -A %arch% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake build: verbosity: normal artifacts: - path: build - path: build\**\Release\*.exe - path: build\**\Release\*.dll libheif-1.12.0/config.sub0000755000175000017500000010645014006205443012105 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2018 Free Software Foundation, Inc. timestamp='2018-02-22' # 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"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2018 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* | netbsd*-eabi* | \ kopensolaris*-gnu* | cloudabi*-eabi* | \ 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/'` ;; -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 \ | ba \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | e2k | epiphany \ | fido | fr30 | frv | ft32 \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia16 | 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 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pru \ | pyramid \ | riscv32 | riscv64 \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]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 \ | visium \ | wasm32 \ | 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 ;; leon|leon[3-9]) basic_machine=sparc-$basic_machine ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) ;; 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-* \ | ba-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | e2k-* | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia16-* | 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-* \ | pru-* \ | pyramid-* \ | riscv32-* | riscv64-* \ | 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-* \ | visium-* \ | wasm32-* \ | 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-pc 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 ;; asmjs) basic_machine=asmjs-unknown ;; 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*) basic_machine=m68k-bull os=-sysv3 ;; e500v[12]) basic_machine=powerpc-unknown os=$os"spe" ;; e500v[12]-*) basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=$os"spe" ;; 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 ;; 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 ;; 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 ;; leon-*|leon[3-9]-*) basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; 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 ;; nsv-tandem) basic_machine=nsv-tandem ;; nsx-tandem) basic_machine=nsx-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) 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) 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 ;; sh5el) basic_machine=sh5le-unknown ;; 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 ;; x64) basic_machine=x86_64-pc ;; 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 ;; 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 ;; 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 ;; 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 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # es1800 is here to avoid being matched by es* (a different OS) -es1800*) os=-ose ;; # Now 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* | -cloudabi* | -sortix* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | -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* | -glidix* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ | -midnightbsd*) # 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 | -xray | -os68k* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* \ | -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 ;; -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 ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -pikeos*) # Until real need of OS specific support for # particular features comes up, bare metal # configurations are quite functional. case $basic_machine in arm*) os=-eabi ;; *) os=-elf ;; esac ;; -nacl*) ;; -ios) ;; -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 ;; pru-*) os=-elf ;; *-be) os=-beos ;; *-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 ;; *-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-functions 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: libheif-1.12.0/depcomp0000755000175000017500000005602014006205443011474 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2018 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libheif-1.12.0/install-sh0000755000175000017500000003601014006205443012120 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2018-03-11.20; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve 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 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dstbase=`basename "$src"` case $dst in */) dst=$dst$dstbase;; *) dst=$dst/$dstbase;; esac dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi case $dstdir in */) dstdirslash=$dstdir;; *) dstdirslash=$dstdir/;; esac obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # 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. ;; *) # Note that $RANDOM variable is not portable (e.g. dash); Use it # here however when possible just to lower collision chance. tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 # Because "mkdir -p" follows existing symlinks and we likely work # directly in world-writeable /tmp, make sure that the '$tmpdir' # directory is successfully created first before we actually test # 'mkdir -p' feature. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac;; 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 oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=${dstdirslash}_inst.$$_ rmtmp=${dstdirslash}_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # 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 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libheif-1.12.0/config.h.in0000664000175000017500000001073514044226101012143 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Whether we enable multithreaded decoding. */ #undef ENABLE_PARALLEL_TILE_DECODING /* Whether aom was found. */ #undef HAVE_AOM /* Whether aom decoder was found. */ #undef HAVE_AOM_DECODER /* Whether aom encoder was found. */ #undef HAVE_AOM_ENCODER /* define if the compiler supports basic C++11 syntax */ #undef HAVE_CXX11 /* Whether dav1d was found. */ #undef HAVE_DAV1D /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Whether gdk-pixbuf-2.0 was found. */ #undef HAVE_GDKPIXBUF2 /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_JPEGLIB_H /* Define to 1 if jpeg_write_icc_profile is available in libjpeg. */ #undef HAVE_JPEG_WRITE_ICC_PROFILE /* Whether libde265 was found. */ #undef HAVE_LIBDE265 /* Whether building with libFuzzer. */ #undef HAVE_LIBFUZZER /* Whether libjpeg was found. */ #undef HAVE_LIBJPEG /* Whether libpng was found. */ #undef HAVE_LIBPNG /* Define to 1 if you have the `pthread' library (-lpthread). */ #undef HAVE_LIBPTHREAD /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Whether rav1e was found. */ #undef HAVE_RAV1E /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #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 or 0, depending whether the compiler supports simple visibility declarations. */ #undef HAVE_VISIBILITY /* Whether x265 was found. */ #undef HAVE_X265 /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* Define to the sub-directory where 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 /* Version number of package */ #undef VERSION /* Define for Solaris 2.5.1 so the uint32_t typedef from , , or is not used. If the typedef were allowed, the #define below would cause a syntax error. */ #undef _UINT32_T /* Define for Solaris 2.5.1 so the uint64_t typedef from , , or is not used. If the typedef were allowed, the #define below would cause a syntax error. */ #undef _UINT64_T /* Define for Solaris 2.5.1 so the uint8_t typedef from , , or is not used. If the typedef were allowed, the #define below would cause a syntax error. */ #undef _UINT8_T /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to `unsigned int' if does not define. */ #undef size_t /* Define to the type of an unsigned integer type of width exactly 16 bits if such a type exists and the standard includes do not define it. */ #undef uint16_t /* Define to the type of an unsigned integer type of width exactly 32 bits if such a type exists and the standard includes do not define it. */ #undef uint32_t /* Define to the type of an unsigned integer type of width exactly 64 bits if such a type exists and the standard includes do not define it. */ #undef uint64_t /* Define to the type of an unsigned integer type of width exactly 8 bits if such a type exists and the standard includes do not define it. */ #undef uint8_t libheif-1.12.0/aclocal.m40000664000175000017500000015123014044226075011766 00000000000000# generated automatically by aclocal 1.16.1 -*- Autoconf -*- # Copyright (C) 1996-2018 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 pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- dnl serial 11 (pkg-config-0.29.1) dnl dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.1]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. 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 ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $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 ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR # Copyright (C) 2002-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.16.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.16.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # Figure out how to run the assembler. -*- Autoconf -*- # Copyright (C) 2001-2018 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_AS # ---------- AC_DEFUN([AM_PROG_AS], [# By default we simply use the C compiler to build assembly code. AC_REQUIRE([AC_PROG_CC]) test "${CCAS+set}" = set || CCAS=$CC test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl ]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2018 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-2018 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-2018 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-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. AS_CASE([$CONFIG_FILES], [*\'*], [eval set x "$CONFIG_FILES"], [*], [set x $CONFIG_FILES]) shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`AS_DIRNAME(["$am_mf"])` am_filepart=`AS_BASENAME(["$am_mf"])` AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) || am_rc=$? done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments for automatic dependency tracking. Try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi AS_UNSET([am_dirpart]) AS_UNSET([am_filepart]) AS_UNSET([am_mf]) AS_UNSET([am_rc]) rm -f conftest-deps.mk } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking is enabled. # This creates each '.Po' and '.Plo' makefile fragment that we'll need in # order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) # AM_EXTRA_RECURSIVE_TARGETS -*- Autoconf -*- # Copyright (C) 2012-2018 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_EXTRA_RECURSIVE_TARGETS # -------------------------- # Define the list of user recursive targets. This macro exists only to # be traced by Automake, which will ensure that a proper definition of # user-defined recursive targets (and associated rules) is propagated # into all the generated Makefiles. # TODO: We should really reject non-literal arguments here... AC_DEFUN([AM_EXTRA_RECURSIVE_TARGETS], []) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2018 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 (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2018 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-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check whether make has an 'include' directive that can support all # the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) AS_CASE([$?:`cat confinc.out 2>/dev/null`], ['0:this is the am__doit target'], [AS_CASE([$s], [BSD], [am__include='.include' am__quote='"'], [am__include='include' am__quote=''])]) if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* AC_MSG_RESULT([${_am_result}]) AC_SUBST([am__include])]) AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2018 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 ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2018 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-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2018 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-2018 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-2018 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-2018 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-2018 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-2018 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/ac_c_cxx_compile_flags.m4]) m4_include([m4/ax_cxx_compile_stdcxx_11.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/visibility.m4]) libheif-1.12.0/missing0000755000175000017500000001533614006205443011523 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1996-2018 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=https://www.perl.org/ flex_URL=https://github.com/westes/flex gnu_software_URL=https://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libheif-1.12.0/libheif/0000775000175000017500000000000014044446310011602 500000000000000libheif-1.12.0/libheif/heif_image.cc0000664000175000017500000006055714044442647014134 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif_image.h" #include "heif_colorconversion.h" #include #include #include using namespace heif; uint8_t heif::chroma_h_subsampling(heif_chroma c) { switch (c) { case heif_chroma_monochrome: case heif_chroma_444: return 1; case heif_chroma_420: case heif_chroma_422: return 2; case heif_chroma_interleaved_RGB: case heif_chroma_interleaved_RGBA: default: assert(false); return 0; } } uint8_t heif::chroma_v_subsampling(heif_chroma c) { switch (c) { case heif_chroma_monochrome: case heif_chroma_444: case heif_chroma_422: return 1; case heif_chroma_420: return 2; case heif_chroma_interleaved_RGB: case heif_chroma_interleaved_RGBA: default: assert(false); return 0; } } heif_chroma heif::chroma_from_subsampling(int h, int v) { if (h == 2 && v == 2) { return heif_chroma_420; } else if (h == 2 && v == 1) { return heif_chroma_422; } else if (h == 1 && v == 1) { return heif_chroma_444; } else { assert(false); return heif_chroma_undefined; } } HeifPixelImage::~HeifPixelImage() { for (auto& iter : m_planes) { delete[] iter.second.allocated_mem; } } int heif::num_interleaved_pixels_per_plane(heif_chroma chroma) { switch (chroma) { case heif_chroma_undefined: case heif_chroma_monochrome: case heif_chroma_420: case heif_chroma_422: case heif_chroma_444: return 1; case heif_chroma_interleaved_RGB: case heif_chroma_interleaved_RRGGBB_BE: case heif_chroma_interleaved_RRGGBB_LE: return 3; case heif_chroma_interleaved_RGBA: case heif_chroma_interleaved_RRGGBBAA_BE: case heif_chroma_interleaved_RRGGBBAA_LE: return 4; } assert(false); return 0; } bool heif::is_integer_multiple_of_chroma_size(int width, int height, heif_chroma chroma) { switch (chroma) { case heif_chroma_444: case heif_chroma_monochrome: return true; case heif_chroma_422: return (width & 1) == 0; case heif_chroma_420: return (width & 1) == 0 && (height & 1) == 0; default: assert(false); return false; } } void HeifPixelImage::create(int width, int height, heif_colorspace colorspace, heif_chroma chroma) { m_width = width; m_height = height; m_colorspace = colorspace; m_chroma = chroma; } static uint32_t rounded_size(uint32_t s) { s = (s + 1U) & ~1U; if (s < 64) { s = 64; } return s; } bool HeifPixelImage::add_plane(heif_channel channel, int width, int height, int bit_depth) { ImagePlane plane; if (plane.alloc(width, height, bit_depth, m_chroma)) { m_planes.insert(std::make_pair(channel, plane)); return true; } else { return false; } } bool HeifPixelImage::ImagePlane::alloc(int width, int height, int bit_depth, heif_chroma chroma) { assert(width >= 0); assert(height >= 0); assert(bit_depth >= 1); assert(bit_depth <= 32); // use 16 byte alignment uint16_t alignment = 16; // must be power of two m_width = width; m_height = height; m_mem_width = rounded_size(width); m_mem_height = rounded_size(height); // for backwards compatibility, allow for 24/32 bits for RGB/RGBA interleaved chromas if (chroma == heif_chroma_interleaved_RGB && bit_depth == 24) { bit_depth = 8; } if (chroma == heif_chroma_interleaved_RGBA && bit_depth == 32) { bit_depth = 8; } assert(m_bit_depth <= 16); m_bit_depth = static_cast(bit_depth); int bytes_per_component = (m_bit_depth + 7) / 8; int bytes_per_pixel = num_interleaved_pixels_per_plane(chroma) * bytes_per_component; stride = m_mem_width * bytes_per_pixel; stride = (stride + alignment - 1U) & ~(alignment - 1U); try { allocated_mem = new uint8_t[m_mem_height * stride + alignment - 1]; mem = allocated_mem; // shift beginning of image data to aligned memory position auto mem_start_addr = (uint64_t) mem; auto mem_start_offset = (mem_start_addr & (alignment - 1U)); if (mem_start_offset != 0) { mem += alignment - mem_start_offset; } return true; } catch (const std::bad_alloc& excpt) { return false; } } void heif::get_subsampled_size(int width, int height, heif_channel channel, heif_chroma chroma, int* subsampled_width, int* subsampled_height) { if (channel == heif_channel_Cb || channel == heif_channel_Cr) { uint8_t chromaSubH = chroma_h_subsampling(chroma); uint8_t chromaSubV = chroma_v_subsampling(chroma); *subsampled_width = (width + chromaSubH - 1) / chromaSubH; *subsampled_height = (height + chromaSubV - 1) / chromaSubV; } else { *subsampled_width = width; *subsampled_height = height; } } bool HeifPixelImage::extend_padding_to_size(int width, int height) { for (auto& planeIter : m_planes) { auto* plane = &planeIter.second; int subsampled_width, subsampled_height; get_subsampled_size(width, height, planeIter.first, m_chroma, &subsampled_width, &subsampled_height); int old_width = plane->m_width; int old_height = plane->m_height; if (plane->m_mem_width < subsampled_width || plane->m_mem_height < subsampled_height) { ImagePlane newPlane; if (!newPlane.alloc(subsampled_width, subsampled_height, plane->m_bit_depth, m_chroma)) { return false; } // copy the visible part of the old plane into the new plane for (int y = 0; y < plane->m_height; y++) { memcpy(&newPlane.mem[y * newPlane.stride], &plane->mem[y * plane->stride], plane->m_width); } planeIter.second = newPlane; plane = &planeIter.second; } // extend plane size int nbytes = (plane->m_bit_depth + 7) / 8; for (int y = 0; y < old_height; y++) { for (int x = old_width; x < subsampled_width; x++) { memcpy(&plane->mem[y * plane->stride + x * nbytes], &plane->mem[y * plane->stride + (plane->m_width - 1) * nbytes], nbytes); } } for (int y = old_height; y < subsampled_height; y++) { memcpy(&plane->mem[y * plane->stride], &plane->mem[(plane->m_height - 1) * plane->stride], subsampled_width * nbytes); } } // don't modify the logical image size return true; } bool HeifPixelImage::has_channel(heif_channel channel) const { return (m_planes.find(channel) != m_planes.end()); } bool HeifPixelImage::has_alpha() const { return has_channel(heif_channel_Alpha) || get_chroma_format() == heif_chroma_interleaved_RGBA || get_chroma_format() == heif_chroma_interleaved_RRGGBBAA_BE || get_chroma_format() == heif_chroma_interleaved_RRGGBBAA_LE; } int HeifPixelImage::get_width(enum heif_channel channel) const { auto iter = m_planes.find(channel); if (iter == m_planes.end()) { return -1; } return iter->second.m_width; } int HeifPixelImage::get_height(enum heif_channel channel) const { auto iter = m_planes.find(channel); if (iter == m_planes.end()) { return -1; } return iter->second.m_height; } std::set HeifPixelImage::get_channel_set() const { std::set channels; for (const auto& plane : m_planes) { channels.insert(plane.first); } return channels; } uint8_t HeifPixelImage::get_storage_bits_per_pixel(enum heif_channel channel) const { if (channel == heif_channel_interleaved) { auto chroma = get_chroma_format(); switch (chroma) { case heif_chroma_interleaved_RGB: return 24; case heif_chroma_interleaved_RGBA: return 32; case heif_chroma_interleaved_RRGGBB_BE: case heif_chroma_interleaved_RRGGBB_LE: return 48; case heif_chroma_interleaved_RRGGBBAA_BE: case heif_chroma_interleaved_RRGGBBAA_LE: return 64; default: return -1; // invalid channel/chroma specification } } else { uint32_t bpp = (get_bits_per_pixel(channel) + 7U) & ~7U; assert(bpp <= 255); return static_cast(bpp); } } uint8_t HeifPixelImage::get_bits_per_pixel(enum heif_channel channel) const { auto iter = m_planes.find(channel); if (iter == m_planes.end()) { return -1; } return iter->second.m_bit_depth; } uint8_t* HeifPixelImage::get_plane(enum heif_channel channel, int* out_stride) { auto iter = m_planes.find(channel); if (iter == m_planes.end()) { return nullptr; } if (out_stride) { *out_stride = iter->second.stride; } return iter->second.mem; } const uint8_t* HeifPixelImage::get_plane(enum heif_channel channel, int* out_stride) const { auto iter = m_planes.find(channel); if (iter == m_planes.end()) { return nullptr; } if (out_stride) { *out_stride = iter->second.stride; } return iter->second.mem; } void HeifPixelImage::copy_new_plane_from(const std::shared_ptr& src_image, heif_channel src_channel, heif_channel dst_channel) { int width = src_image->get_width(src_channel); int height = src_image->get_height(src_channel); assert(!has_channel(dst_channel)); add_plane(dst_channel, width, height, src_image->get_bits_per_pixel(src_channel)); uint8_t* dst; int dst_stride = 0; const uint8_t* src; int src_stride = 0; src = src_image->get_plane(src_channel, &src_stride); dst = get_plane(dst_channel, &dst_stride); int bpl = width * (src_image->get_storage_bits_per_pixel(src_channel) / 8); for (int y = 0; y < height; y++) { memcpy(dst + y * dst_stride, src + y * src_stride, bpl); } } void HeifPixelImage::fill_new_plane(heif_channel dst_channel, uint16_t value, int width, int height, int bpp) { add_plane(dst_channel, width, height, bpp); if (bpp == 8) { uint8_t* dst; int dst_stride = 0; dst = get_plane(dst_channel, &dst_stride); for (int y = 0; y < height; y++) { memset(dst + y * dst_stride, value, width); } } else { uint16_t* dst; int dst_stride = 0; dst = (uint16_t*) get_plane(dst_channel, &dst_stride); dst_stride /= 2; for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { dst[y * dst_stride + x] = value; } } } } void HeifPixelImage::transfer_plane_from_image_as(const std::shared_ptr& source, heif_channel src_channel, heif_channel dst_channel) { // TODO: check that dst_channel does not exist yet ImagePlane plane = source->m_planes[src_channel]; source->m_planes.erase(src_channel); m_planes.insert(std::make_pair(dst_channel, plane)); } bool heif::is_chroma_with_alpha(heif_chroma chroma) { switch (chroma) { case heif_chroma_undefined: case heif_chroma_monochrome: case heif_chroma_420: case heif_chroma_422: case heif_chroma_444: case heif_chroma_interleaved_RGB: case heif_chroma_interleaved_RRGGBB_BE: case heif_chroma_interleaved_RRGGBB_LE: return false; case heif_chroma_interleaved_RGBA: case heif_chroma_interleaved_RRGGBBAA_BE: case heif_chroma_interleaved_RRGGBBAA_LE: return true; } assert(false); return false; } Error HeifPixelImage::rotate_ccw(int angle_degrees, std::shared_ptr& out_img) { // --- create output image (or simply reuse existing image) if (angle_degrees == 0) { out_img = shared_from_this(); return Error::Ok; } int out_width = m_width; int out_height = m_height; if (angle_degrees == 90 || angle_degrees == 270) { std::swap(out_width, out_height); } out_img = std::make_shared(); out_img->create(out_width, out_height, m_colorspace, m_chroma); // --- rotate all channels for (const auto& plane_pair : m_planes) { heif_channel channel = plane_pair.first; const ImagePlane& plane = plane_pair.second; /* if (plane.bit_depth != 8) { return Error(heif_error_Unsupported_feature, heif_suberror_Unspecified, "Can currently only rotate images with 8 bits per pixel"); } */ int out_plane_width = plane.m_width; int out_plane_height = plane.m_height; if (angle_degrees == 90 || angle_degrees == 270) { std::swap(out_plane_width, out_plane_height); } out_img->add_plane(channel, out_plane_width, out_plane_height, plane.m_bit_depth); int w = plane.m_width; int h = plane.m_height; int in_stride = plane.stride; const uint8_t* in_data = plane.mem; int out_stride = 0; uint8_t* out_data = out_img->get_plane(channel, &out_stride); if (plane.m_bit_depth == 8) { if (angle_degrees == 270) { for (int x = 0; x < h; x++) for (int y = 0; y < w; y++) { out_data[y * out_stride + x] = in_data[(h - 1 - x) * in_stride + y]; } } else if (angle_degrees == 180) { for (int y = 0; y < h; y++) for (int x = 0; x < w; x++) { out_data[y * out_stride + x] = in_data[(h - 1 - y) * in_stride + (w - 1 - x)]; } } else if (angle_degrees == 90) { for (int x = 0; x < h; x++) for (int y = 0; y < w; y++) { out_data[y * out_stride + x] = in_data[x * in_stride + (w - 1 - y)]; } } } else { // 16 bit (TODO: unchecked code) if (angle_degrees == 270) { for (int x = 0; x < h; x++) for (int y = 0; y < w; y++) { out_data[y * out_stride + 2 * x] = in_data[(h - 1 - x) * in_stride + 2 * y]; out_data[y * out_stride + 2 * x + 1] = in_data[(h - 1 - x) * in_stride + 2 * y + 1]; } } else if (angle_degrees == 180) { for (int y = 0; y < h; y++) for (int x = 0; x < w; x++) { out_data[y * out_stride + 2 * x] = in_data[(h - 1 - y) * in_stride + 2 * (w - 1 - x)]; out_data[y * out_stride + 2 * x + 1] = in_data[(h - 1 - y) * in_stride + 2 * (w - 1 - x) + 1]; } } else if (angle_degrees == 90) { for (int x = 0; x < h; x++) for (int y = 0; y < w; y++) { out_data[y * out_stride + 2 * x] = in_data[x * in_stride + 2 * (w - 1 - y)]; out_data[y * out_stride + 2 * x + 1] = in_data[x * in_stride + 2 * (w - 1 - y) + 1]; } } } } // --- pass the color profiles to the new image out_img->set_color_profile_nclx(get_color_profile_nclx()); out_img->set_color_profile_icc(get_color_profile_icc()); return Error::Ok; } Error HeifPixelImage::mirror_inplace(bool horizontal) { for (auto& plane_pair : m_planes) { ImagePlane& plane = plane_pair.second; if (plane.m_bit_depth != 8) { return Error(heif_error_Unsupported_feature, heif_suberror_Unspecified, "Can currently only mirror images with 8 bits per pixel"); } int w = plane.m_width; int h = plane.m_height; int stride = plane.stride; uint8_t* data = plane.mem; if (horizontal) { for (int y = 0; y < h; y++) { for (int x = 0; x < w / 2; x++) std::swap(data[y * stride + x], data[y * stride + w - 1 - x]); } } else { for (int y = 0; y < h / 2; y++) { for (int x = 0; x < w; x++) std::swap(data[y * stride + x], data[(h - 1 - y) * stride + x]); } } } return Error::Ok; } Error HeifPixelImage::crop(int left, int right, int top, int bottom, std::shared_ptr& out_img) const { out_img = std::make_shared(); out_img->create(right - left + 1, bottom - top + 1, m_colorspace, m_chroma); // --- crop all channels for (const auto& plane_pair : m_planes) { heif_channel channel = plane_pair.first; const ImagePlane& plane = plane_pair.second; if (false && plane.m_bit_depth != 8) { return Error(heif_error_Unsupported_feature, heif_suberror_Unspecified, "Can currently only crop images with 8 bits per pixel"); } int w = plane.m_width; int h = plane.m_height; int plane_left = left * w / m_width; int plane_right = right * w / m_width; int plane_top = top * h / m_height; int plane_bottom = bottom * h / m_height; out_img->add_plane(channel, plane_right - plane_left + 1, plane_bottom - plane_top + 1, plane.m_bit_depth); int in_stride = plane.stride; const uint8_t* in_data = plane.mem; int out_stride = 0; uint8_t* out_data = out_img->get_plane(channel, &out_stride); if (plane.m_bit_depth == 8) { for (int y = plane_top; y <= plane_bottom; y++) { memcpy(&out_data[(y - plane_top) * out_stride], &in_data[y * in_stride + plane_left], plane_right - plane_left + 1); } } else { for (int y = plane_top; y <= plane_bottom; y++) { memcpy(&out_data[(y - plane_top) * out_stride], &in_data[y * in_stride + plane_left * 2], (plane_right - plane_left + 1) * 2); } } } // --- pass the color profiles to the new image out_img->set_color_profile_nclx(get_color_profile_nclx()); out_img->set_color_profile_icc(get_color_profile_icc()); return Error::Ok; } Error HeifPixelImage::fill_RGB_16bit(uint16_t r, uint16_t g, uint16_t b, uint16_t a) { for (const auto& channel : {heif_channel_R, heif_channel_G, heif_channel_B, heif_channel_Alpha}) { const auto plane_iter = m_planes.find(channel); if (plane_iter == m_planes.end()) { // alpha channel is optional, R,G,B is required if (channel == heif_channel_Alpha) { continue; } return Error(heif_error_Usage_error, heif_suberror_Nonexisting_image_channel_referenced); } ImagePlane& plane = plane_iter->second; if (plane.m_bit_depth != 8) { return Error(heif_error_Unsupported_feature, heif_suberror_Unspecified, "Can currently only fill images with 8 bits per pixel"); } int h = plane.m_height; int stride = plane.stride; uint8_t* data = plane.mem; uint16_t val16; switch (channel) { case heif_channel_R: val16 = r; break; case heif_channel_G: val16 = g; break; case heif_channel_B: val16 = b; break; case heif_channel_Alpha: val16 = a; break; default: // initialization only to avoid warning of uninitalized variable. val16 = 0; // Should already be detected by the check above ("m_planes.find"). assert(false); } auto val8 = static_cast(val16 >> 8U); memset(data, val8, stride * h); } return Error::Ok; } Error HeifPixelImage::overlay(std::shared_ptr& overlay, int dx, int dy) { std::set channels = overlay->get_channel_set(); bool has_alpha = overlay->has_channel(heif_channel_Alpha); //bool has_alpha_me = has_channel(heif_channel_Alpha); int alpha_stride = 0; uint8_t* alpha_p; alpha_p = overlay->get_plane(heif_channel_Alpha, &alpha_stride); for (heif_channel channel : channels) { if (!has_channel(channel)) { continue; } int in_stride = 0; const uint8_t* in_p; int out_stride = 0; uint8_t* out_p; in_p = overlay->get_plane(channel, &in_stride); out_p = get_plane(channel, &out_stride); int in_w = overlay->get_width(channel); int in_h = overlay->get_height(channel); assert(in_w >= 0); assert(in_h >= 0); int out_w = get_width(channel); int out_h = get_height(channel); assert(out_w >= 0); assert(out_h >= 0); // overlay image extends past the right border -> cut width for copy if (dx + in_w > out_w) { in_w = out_w - dx; } // overlay image extends past the bottom border -> cut height for copy if (dy + in_h > out_h) { in_h = out_h - dy; } // overlay image completely outside right or bottom border -> do not copy if (in_w < 0 || in_h < 0) { return Error(heif_error_Invalid_input, heif_suberror_Overlay_image_outside_of_canvas, "Overlay image outside of right or bottom canvas border"); } // calculate top-left point where to start copying in source and destination int in_x0 = 0; int in_y0 = 0; int out_x0 = dx; int out_y0 = dy; // overlay image started outside of left border // -> move start into the image and start at left output column if (dx < 0) { in_x0 = -dx; out_x0 = 0; } // overlay image started outside of top border // -> move start into the image and start at top output row if (dy < 0) { in_y0 = -dy; out_y0 = 0; } // if overlay image is completely outside at left border, do not copy anything. if (in_w <= in_x0 || in_h <= in_y0) { return Error(heif_error_Invalid_input, heif_suberror_Overlay_image_outside_of_canvas, "Overlay image outside of left or top canvas border"); } for (int y = in_y0; y < in_h; y++) { if (!has_alpha) { memcpy(out_p + out_x0 + (out_y0 + y - in_y0) * out_stride, in_p + in_x0 + y * in_stride, in_w - in_x0); } else { for (int x = in_x0; x < in_w; x++) { uint8_t* outptr = &out_p[out_x0 + (out_y0 + y - in_y0) * out_stride + x]; uint8_t in_val = in_p[in_x0 + y * in_stride + x]; uint8_t alpha_val = alpha_p[in_x0 + y * in_stride + x]; *outptr = (uint8_t) ((in_val * alpha_val + *outptr * (255 - alpha_val)) / 255); } } } } return Error::Ok; } Error HeifPixelImage::scale_nearest_neighbor(std::shared_ptr& out_img, int width, int height) const { out_img = std::make_shared(); out_img->create(width, height, m_colorspace, m_chroma); // --- scale all channels for (const auto& plane_pair : m_planes) { heif_channel channel = plane_pair.first; const ImagePlane& plane = plane_pair.second; const int bpp = get_storage_bits_per_pixel(channel) / 8; int in_w = plane.m_width; int in_h = plane.m_height; int out_w = in_w * width / m_width; int out_h = in_h * height / m_height; out_img->add_plane(channel, out_w, out_h, plane.m_bit_depth); if (!width || !height) { continue; } int in_stride = plane.stride; const uint8_t* in_data = plane.mem; int out_stride = 0; uint8_t* out_data = out_img->get_plane(channel, &out_stride); for (int y = 0; y < out_h; y++) { int iy = y * m_height / height; if (bpp == 1) { for (int x = 0; x < out_w; x++) { int ix = x * m_width / width; out_data[y * out_stride + x] = in_data[iy * in_stride + ix]; } } else { for (int x = 0; x < out_w; x++) { int ix = x * m_width / width; for (int b = 0; b < bpp; b++) { out_data[y * out_stride + bpp * x + b] = in_data[iy * in_stride + bpp * ix + b]; } } } } } return Error::Ok; } void HeifPixelImage::debug_dump() const { auto channels = get_channel_set(); for (auto c : channels) { int stride = 0; const uint8_t* p = get_plane(c, &stride); for (int y = 0; y < 8; y++) { for (int x = 0; x < 8; x++) { printf("%02x ", p[y * stride + x]); } printf("\n"); } } } libheif-1.12.0/libheif/heif_plugin.cc0000644000175000017500000000273414003350413014317 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif.h" #include "heif_plugin.h" // needed to avoid 'unresolved symbols' on Visual Studio compiler struct heif_error heif_error_ok = {heif_error_Ok, heif_suberror_Unspecified, "Success"}; struct heif_error heif_error_unsupported_parameter = {heif_error_Usage_error, heif_suberror_Unsupported_parameter, "Unsupported encoder parameter"}; struct heif_error heif_error_invalid_parameter_value = {heif_error_Usage_error, heif_suberror_Invalid_parameter_value, "Invalid parameter value"}; libheif-1.12.0/libheif/heif_limits.h0000644000175000017500000000340514003350413014160 00000000000000/* * HEIF codec. * Copyright (c) 2018 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_LIMITS_H #define LIBHEIF_HEIF_LIMITS_H #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include static const size_t MAX_CHILDREN_PER_BOX = 20000; static const int MAX_ILOC_ITEMS = 20000; static const int MAX_ILOC_EXTENTS_PER_ITEM = 32; static const int MAX_MEMORY_BLOCK_SIZE = 512 * 1024 * 1024; // 512 MB // Artificial limit to avoid allocating too much memory. // 32768^2 = 1.5 GB as YUV-4:2:0 or 4 GB as RGB32 static const int MAX_IMAGE_WIDTH = 32768; static const int MAX_IMAGE_HEIGHT = 32768; // Maximum nesting level of boxes in input files. // We put a limit on this to avoid unlimited stack usage by malicious input files. static const int MAX_BOX_NESTING_LEVEL = 20; static const int MAX_BOX_SIZE = 0x7FFFFFFF; // 2 GB static const int64_t MAX_LARGE_BOX_SIZE = 0x0FFFFFFFFFFFFFFF; static const int64_t MAX_FILE_POS = 0x007FFFFFFFFFFFFFLL; // maximum file position static const int MAX_FRACTION_VALUE = 0x10000; #endif // LIBHEIF_HEIF_LIMITS_H libheif-1.12.0/libheif/heif_api_structs.h0000644000175000017500000000274014003350412015217 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef HEIF_API_STRUCTS_H #define HEIF_API_STRUCTS_H #include "heif_image.h" #include "heif_context.h" #include struct heif_image_handle { std::shared_ptr image; // store reference to keep the context alive while we are using the handle (issue #147) std::shared_ptr context; }; struct heif_image { std::shared_ptr image; }; struct heif_context { std::shared_ptr context; }; struct heif_encoder { heif_encoder(const struct heif_encoder_plugin* plugin); ~heif_encoder(); struct heif_error alloc(); void release(); const struct heif_encoder_plugin* plugin; void* encoder = nullptr; }; #endif libheif-1.12.0/libheif/heif_context.cc0000664000175000017500000021643514043747772014542 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include #include #include #if ENABLE_PARALLEL_TILE_DECODING #include #endif #include "heif_context.h" #include "heif_file.h" #include "heif_image.h" #include "heif_api_structs.h" #include "heif_limits.h" #include "heif_hevc.h" #include "heif_avif.h" #include "heif_plugin_registry.h" #include "heif_colorconversion.h" using namespace heif; heif_encoder::heif_encoder(const struct heif_encoder_plugin* _plugin) : plugin(_plugin) { } heif_encoder::~heif_encoder() { release(); } void heif_encoder::release() { if (encoder) { plugin->free_encoder(encoder); encoder = nullptr; } } struct heif_error heif_encoder::alloc() { if (encoder == nullptr) { struct heif_error error = plugin->new_encoder(&encoder); // TODO: error handling return error; } struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; return err; } static int32_t readvec_signed(const std::vector& data, int& ptr, int len) { const uint32_t high_bit = 0x80 << ((len - 1) * 8); uint32_t val = 0; while (len--) { val <<= 8; val |= data[ptr++]; } bool negative = (val & high_bit) != 0; val &= ~high_bit; if (negative) { return -(high_bit - val); } else { return val; } return val; } static uint32_t readvec(const std::vector& data, int& ptr, int len) { uint32_t val = 0; while (len--) { val <<= 8; val |= data[ptr++]; } return val; } class ImageGrid { public: Error parse(const std::vector& data); std::vector write() const; std::string dump() const; uint32_t get_width() const { return m_output_width; } uint32_t get_height() const { return m_output_height; } uint16_t get_rows() const { assert(m_rows <= 256); return m_rows; } uint16_t get_columns() const { assert(m_columns <= 256); return m_columns; } void set_num_tiles(uint16_t columns, uint16_t rows) { m_rows = rows; m_columns = columns; } void set_output_size(uint32_t width, uint32_t height) { m_output_width = width; m_output_height = height; } private: uint16_t m_rows = 0; uint16_t m_columns = 0; uint32_t m_output_width = 0; uint32_t m_output_height = 0; }; Error ImageGrid::parse(const std::vector& data) { if (data.size() < 8) { return Error(heif_error_Invalid_input, heif_suberror_Invalid_grid_data, "Less than 8 bytes of data"); } uint8_t version = data[0]; (void) version; // version is unused uint8_t flags = data[1]; int field_size = ((flags & 1) ? 32 : 16); m_rows = static_cast(data[2] + 1); m_columns = static_cast(data[3] + 1); if (field_size == 32) { if (data.size() < 12) { return Error(heif_error_Invalid_input, heif_suberror_Invalid_grid_data, "Grid image data incomplete"); } m_output_width = ((data[4] << 24) | (data[5] << 16) | (data[6] << 8) | (data[7])); m_output_height = ((data[8] << 24) | (data[9] << 16) | (data[10] << 8) | (data[11])); } else { m_output_width = ((data[4] << 8) | (data[5])); m_output_height = ((data[6] << 8) | (data[7])); } return Error::Ok; } std::vector ImageGrid::write() const { int field_size; if (m_output_width > 0xFFFF || m_output_height > 0xFFFF) { field_size = 32; } else { field_size = 16; } std::vector data(field_size == 16 ? 8 : 12); data[0] = 0; // version uint8_t flags = 0; if (field_size == 32) { flags |= 1; } data[1] = flags; data[2] = (uint8_t) (m_rows - 1); data[3] = (uint8_t) (m_columns - 1); if (field_size == 32) { data[4] = (uint8_t) ((m_output_width >> 24) & 0xFF); data[5] = (uint8_t) ((m_output_width >> 16) & 0xFF); data[6] = (uint8_t) ((m_output_width >> 8) & 0xFF); data[7] = (uint8_t) ((m_output_width) & 0xFF); data[8] = (uint8_t) ((m_output_height >> 24) & 0xFF); data[9] = (uint8_t) ((m_output_height >> 16) & 0xFF); data[10] = (uint8_t) ((m_output_height >> 8) & 0xFF); data[11] = (uint8_t) ((m_output_height) & 0xFF); } else { data[4] = (uint8_t) ((m_output_width >> 8) & 0xFF); data[5] = (uint8_t) ((m_output_width) & 0xFF); data[6] = (uint8_t) ((m_output_height >> 8) & 0xFF); data[7] = (uint8_t) ((m_output_height) & 0xFF); } return data; } std::string ImageGrid::dump() const { std::ostringstream sstr; sstr << "rows: " << m_rows << "\n" << "columns: " << m_columns << "\n" << "output width: " << m_output_width << "\n" << "output height: " << m_output_height << "\n"; return sstr.str(); } class ImageOverlay { public: Error parse(size_t num_images, const std::vector& data); std::string dump() const; void get_background_color(uint16_t col[4]) const; uint32_t get_canvas_width() const { return m_width; } uint32_t get_canvas_height() const { return m_height; } size_t get_num_offsets() const { return m_offsets.size(); } void get_offset(size_t image_index, int32_t* x, int32_t* y) const; private: uint8_t m_version; uint8_t m_flags; uint16_t m_background_color[4]; uint32_t m_width; uint32_t m_height; struct Offset { int32_t x, y; }; std::vector m_offsets; }; Error ImageOverlay::parse(size_t num_images, const std::vector& data) { Error eofError(heif_error_Invalid_input, heif_suberror_Invalid_grid_data, "Overlay image data incomplete"); if (data.size() < 2 + 4 * 2) { return eofError; } m_version = data[0]; m_flags = data[1]; if (m_version != 0) { std::stringstream sstr; sstr << "Overlay image data version " << ((int) m_version) << " is not implemented yet"; return Error(heif_error_Unsupported_feature, heif_suberror_Unsupported_data_version, sstr.str()); } int field_len = ((m_flags & 1) ? 4 : 2); int ptr = 2; if (ptr + 4 * 2 + 2 * field_len + num_images * 2 * field_len > data.size()) { return eofError; } for (int i = 0; i < 4; i++) { uint16_t color = static_cast(readvec(data, ptr, 2)); m_background_color[i] = color; } m_width = readvec(data, ptr, field_len); m_height = readvec(data, ptr, field_len); m_offsets.resize(num_images); for (size_t i = 0; i < num_images; i++) { m_offsets[i].x = readvec_signed(data, ptr, field_len); m_offsets[i].y = readvec_signed(data, ptr, field_len); } return Error::Ok; } std::string ImageOverlay::dump() const { std::stringstream sstr; sstr << "version: " << ((int) m_version) << "\n" << "flags: " << ((int) m_flags) << "\n" << "background color: " << m_background_color[0] << ";" << m_background_color[1] << ";" << m_background_color[2] << ";" << m_background_color[3] << "\n" << "canvas size: " << m_width << "x" << m_height << "\n" << "offsets: "; for (const Offset& offset : m_offsets) { sstr << offset.x << ";" << offset.y << " "; } sstr << "\n"; return sstr.str(); } void ImageOverlay::get_background_color(uint16_t col[4]) const { for (int i = 0; i < 4; i++) { col[i] = m_background_color[i]; } } void ImageOverlay::get_offset(size_t image_index, int32_t* x, int32_t* y) const { assert(image_index < m_offsets.size()); assert(x && y); *x = m_offsets[image_index].x; *y = m_offsets[image_index].y; } HeifContext::HeifContext() { m_maximum_image_width_limit = MAX_IMAGE_WIDTH; m_maximum_image_height_limit = MAX_IMAGE_HEIGHT; reset_to_empty_heif(); } HeifContext::~HeifContext() { // Break circular references between Images (when a faulty input image has circular image references) for (auto& it : m_all_images) { std::shared_ptr image = it.second; image->clear(); } } Error HeifContext::read(std::shared_ptr reader) { m_heif_file = std::make_shared(); Error err = m_heif_file->read(reader); if (err) { return err; } return interpret_heif_file(); } Error HeifContext::read_from_file(const char* input_filename) { m_heif_file = std::make_shared(); Error err = m_heif_file->read_from_file(input_filename); if (err) { return err; } return interpret_heif_file(); } Error HeifContext::read_from_memory(const void* data, size_t size, bool copy) { m_heif_file = std::make_shared(); Error err = m_heif_file->read_from_memory(data, size, copy); if (err) { return err; } return interpret_heif_file(); } void HeifContext::reset_to_empty_heif() { m_heif_file = std::make_shared(); m_heif_file->new_empty_file(); m_all_images.clear(); m_top_level_images.clear(); m_primary_image.reset(); } void HeifContext::write(StreamWriter& writer) { m_heif_file->write(writer); } std::string HeifContext::debug_dump_boxes() const { return m_heif_file->debug_dump_boxes(); } void HeifContext::register_decoder(const heif_decoder_plugin* decoder_plugin) { if (decoder_plugin->init_plugin) { (*decoder_plugin->init_plugin)(); } m_decoder_plugins.insert(decoder_plugin); } const struct heif_decoder_plugin* HeifContext::get_decoder(enum heif_compression_format type) const { int highest_priority = 0; const struct heif_decoder_plugin* best_plugin = nullptr; // search global plugins best_plugin = heif::get_decoder(type); if (best_plugin != nullptr) { highest_priority = best_plugin->does_support_format(type); } // search context-local plugins (DEPRECATED) for (const auto* plugin : m_decoder_plugins) { int priority = plugin->does_support_format(type); if (priority > highest_priority) { highest_priority = priority; best_plugin = plugin; } } return best_plugin; } static bool item_type_is_image(const std::string& item_type) { return (item_type == "hvc1" || item_type == "grid" || item_type == "iden" || item_type == "iovl" || item_type == "av01"); } void HeifContext::remove_top_level_image(std::shared_ptr image) { std::vector> new_list; for (auto img : m_top_level_images) { if (img != image) { new_list.push_back(img); } } m_top_level_images = new_list; } Error HeifContext::interpret_heif_file() { m_all_images.clear(); m_top_level_images.clear(); m_primary_image.reset(); // --- reference all non-hidden images std::vector image_IDs = m_heif_file->get_item_IDs(); for (heif_item_id id : image_IDs) { auto infe_box = m_heif_file->get_infe_box(id); if (!infe_box) { // TODO(farindk): Should we return an error instead of skipping the invalid id? continue; } if (item_type_is_image(infe_box->get_item_type())) { auto image = std::make_shared(this, id); m_all_images.insert(std::make_pair(id, image)); if (!infe_box->is_hidden_item()) { if (id == m_heif_file->get_primary_image_ID()) { image->set_primary(true); m_primary_image = image; } m_top_level_images.push_back(image); } } } if (!m_primary_image) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "'pitm' box references a non-existing image"); } // --- read through properties for each image and extract image resolutions // Note: this has to be executed before assigning the auxiliary images below because we will only // merge the alpha image with the main image when their resolutions are the same. for (auto& pair : m_all_images) { auto& image = pair.second; std::vector properties; Error err = m_heif_file->get_properties(pair.first, properties); if (err) { return err; } bool ispe_read = false; for (const auto& prop : properties) { auto ispe = std::dynamic_pointer_cast(prop.property); if (ispe) { uint32_t width = ispe->get_width(); uint32_t height = ispe->get_height(); // --- check whether the image size is "too large" if (width > m_maximum_image_width_limit || height > m_maximum_image_height_limit) { std::stringstream sstr; sstr << "Image size " << width << "x" << height << " exceeds the maximum image size " << m_maximum_image_width_limit << "x" << m_maximum_image_height_limit << "\n"; return Error(heif_error_Memory_allocation_error, heif_suberror_Security_limit_exceeded, sstr.str()); } image->set_resolution(width, height); image->set_ispe_resolution(width, height); ispe_read = true; } if (ispe_read) { auto clap = std::dynamic_pointer_cast(prop.property); if (clap) { image->set_resolution(clap->get_width_rounded(), clap->get_height_rounded()); } auto irot = std::dynamic_pointer_cast(prop.property); if (irot) { if (irot->get_rotation() == 90 || irot->get_rotation() == 270) { // swap width and height image->set_resolution(image->get_height(), image->get_width()); } } } auto colr = std::dynamic_pointer_cast(prop.property); if (colr) { auto profile = colr->get_color_profile(); image->set_color_profile(profile); } } } // --- remove auxiliary from top-level images and assign to their respective image auto iref_box = m_heif_file->get_iref_box(); if (iref_box) { // m_top_level_images.clear(); for (auto& pair : m_all_images) { auto& image = pair.second; std::vector references = iref_box->get_references_from(image->get_id()); for (const Box_iref::Reference& ref : references) { uint32_t type = ref.header.get_short_type(); if (type == fourcc("thmb")) { // --- this is a thumbnail image, attach to the main image std::vector refs = ref.to_item_ID; if (refs.size() != 1) { return Error(heif_error_Invalid_input, heif_suberror_Unspecified, "Too many thumbnail references"); } image->set_is_thumbnail_of(refs[0]); auto master_iter = m_all_images.find(refs[0]); if (master_iter == m_all_images.end()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "Thumbnail references a non-existing image"); } if (master_iter->second->is_thumbnail()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "Thumbnail references another thumbnail"); } if (image.get() == master_iter->second.get()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "Recursive thumbnail image detected"); } master_iter->second->add_thumbnail(image); remove_top_level_image(image); } else if (type == fourcc("auxl")) { // --- this is an auxiliary image // check whether it is an alpha channel and attach to the main image if yes std::vector properties; Error err = m_heif_file->get_properties(image->get_id(), properties); if (err) { return err; } std::shared_ptr auxC_property; for (const auto& property : properties) { auto auxC = std::dynamic_pointer_cast(property.property); if (auxC) { auxC_property = auxC; } } if (!auxC_property) { std::stringstream sstr; sstr << "No auxC property for image " << image->get_id(); return Error(heif_error_Invalid_input, heif_suberror_Auxiliary_image_type_unspecified, sstr.str()); } std::vector refs = ref.to_item_ID; if (refs.size() != 1) { return Error(heif_error_Invalid_input, heif_suberror_Unspecified, "Too many auxiliary image references"); } // alpha channel if (auxC_property->get_aux_type() == "urn:mpeg:avc:2015:auxid:1" || // HEIF (avc) auxC_property->get_aux_type() == "urn:mpeg:hevc:2015:auxid:1" || // HEIF (h265) auxC_property->get_aux_type() == "urn:mpeg:mpegB:cicp:systems:auxiliary:alpha") { // MIAF auto master_iter = m_all_images.find(refs[0]); if (master_iter == m_all_images.end()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "Non-existing alpha image referenced"); } auto master_img = master_iter->second; if (image.get() == master_img.get()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "Recursive alpha image detected"); } if (image->get_width() == master_img->get_width() && image->get_height() == master_img->get_height()) { image->set_is_alpha_channel_of(refs[0], true); master_img->set_alpha_channel(image); } } // depth channel if (auxC_property->get_aux_type() == "urn:mpeg:hevc:2015:auxid:2" || // HEIF auxC_property->get_aux_type() == "urn:mpeg:mpegB:cicp:systems:auxiliary:depth") { // AVIF image->set_is_depth_channel_of(refs[0]); auto master_iter = m_all_images.find(refs[0]); if (master_iter == m_all_images.end()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "Non-existing depth image referenced"); } if (image.get() == master_iter->second.get()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "Recursive depth image detected"); } master_iter->second->set_depth_channel(image); auto subtypes = auxC_property->get_subtypes(); std::vector> sei_messages; err = decode_hevc_aux_sei_messages(subtypes, sei_messages); for (auto& msg : sei_messages) { auto depth_msg = std::dynamic_pointer_cast(msg); if (depth_msg) { image->set_depth_representation_info(*depth_msg); } } } // --- generic aux image image->set_is_aux_image_of(refs[0], auxC_property->get_aux_type()); auto master_iter = m_all_images.find(refs[0]); if (master_iter == m_all_images.end()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "Non-existing aux image referenced"); } if (image.get() == master_iter->second.get()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "Recursive aux image detected"); } master_iter->second->add_aux_image(image); remove_top_level_image(image); } else { // 'image' is a normal image, keep it as a top-level image } } } } // --- check that HEVC images have an hvcC property for (auto& pair : m_all_images) { auto& image = pair.second; std::shared_ptr infe = m_heif_file->get_infe_box(image->get_id()); if (infe->get_item_type() == "hvc1") { auto ipma = m_heif_file->get_ipma_box(); auto ipco = m_heif_file->get_ipco_box(); if (!ipco->get_property_for_item_ID(image->get_id(), ipma, fourcc("hvcC"))) { return Error(heif_error_Invalid_input, heif_suberror_No_hvcC_box, "No hvcC property in hvc1 type image"); } } } // --- assign color profile from grid tiles to main image when main image has no profile assigned for (auto& pair : m_all_images) { auto& image = pair.second; auto id = pair.first; auto infe_box = m_heif_file->get_infe_box(id); if (!infe_box) { continue; } if (!iref_box) { break; } if (infe_box->get_item_type() == "grid") { std::vector image_references = iref_box->get_references(id, fourcc("dimg")); if (image_references.empty()) { continue; // TODO: can this every happen? } auto tileId = image_references.front(); auto iter = m_all_images.find(tileId); if (iter == m_all_images.end()) { continue; // invalid grid entry } auto tile_img = iter->second; if (image->get_color_profile_icc() == nullptr && tile_img->get_color_profile_icc()) { image->set_color_profile(tile_img->get_color_profile_icc()); } if (image->get_color_profile_nclx() == nullptr && tile_img->get_color_profile_nclx()) { image->set_color_profile(tile_img->get_color_profile_nclx()); } } } // --- read metadata and assign to image for (heif_item_id id : image_IDs) { std::string item_type = m_heif_file->get_item_type(id); std::string content_type = m_heif_file->get_content_type(id); // we now assign all kinds of metadata to the image, not only 'Exif' and 'XMP' std::shared_ptr metadata = std::make_shared(); metadata->item_id = id; metadata->item_type = item_type; metadata->content_type = content_type; Error err = m_heif_file->get_compressed_image_data(id, &(metadata->m_data)); if (err) { return err; } //std::cerr.write((const char*)data.data(), data.size()); // --- assign metadata to the image if (iref_box) { std::vector references = iref_box->get_references_from(id); for (const auto& ref : references) { if (ref.header.get_short_type() == fourcc("cdsc")) { std::vector refs = ref.to_item_ID; if (refs.size() != 1) { return Error(heif_error_Invalid_input, heif_suberror_Unspecified, "Metadata not correctly assigned to image"); } uint32_t exif_image_id = refs[0]; auto img_iter = m_all_images.find(exif_image_id); if (img_iter == m_all_images.end()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "Metadata assigned to non-existing image"); } img_iter->second->add_metadata(metadata); } else if (ref.header.get_short_type() == fourcc("prem")) { uint32_t color_image_id = ref.from_item_ID; auto img_iter = m_all_images.find(color_image_id); if (img_iter == m_all_images.end()) { return Error(heif_error_Invalid_input, heif_suberror_Nonexisting_item_referenced, "`prem` link assigned to non-existing image"); } img_iter->second->set_is_premultiplied_alpha(true);; } } } } return Error::Ok; } HeifContext::Image::Image(HeifContext* context, heif_item_id id) : m_heif_context(context), m_id(id) { memset(&m_depth_representation_info, 0, sizeof(m_depth_representation_info)); } HeifContext::Image::~Image() { } bool HeifContext::is_image(heif_item_id ID) const { for (const auto& img : m_all_images) { if (img.first == ID) return true; } return false; } Error HeifContext::get_id_of_non_virtual_child_image(heif_item_id id, heif_item_id& out) const { std::string image_type = m_heif_file->get_item_type(id); if (image_type == "grid" || image_type == "iden" || image_type == "iovl") { auto iref_box = m_heif_file->get_iref_box(); if (!iref_box) { return Error(heif_error_Invalid_input, heif_suberror_No_item_data, "Derived image does not reference any other image items"); } std::vector image_references = iref_box->get_references(id, fourcc("dimg")); // TODO: check whether this really can be recursive (e.g. overlay of grid images) if (image_references.empty()) { return Error(heif_error_Invalid_input, heif_suberror_No_item_data, "Derived image does not reference any other image items"); } else { return get_id_of_non_virtual_child_image(image_references[0], out); } } else { out = id; return Error::Ok; } } int HeifContext::Image::get_luma_bits_per_pixel() const { heif_item_id id; Error err = m_heif_context->get_id_of_non_virtual_child_image(m_id, id); if (err) { return -1; } return m_heif_context->m_heif_file->get_luma_bits_per_pixel_from_configuration(id); } int HeifContext::Image::get_chroma_bits_per_pixel() const { heif_item_id id; Error err = m_heif_context->get_id_of_non_virtual_child_image(m_id, id); if (err) { return -1; } return m_heif_context->m_heif_file->get_chroma_bits_per_pixel_from_configuration(id); } Error HeifContext::decode_image_user(heif_item_id ID, std::shared_ptr& img, heif_colorspace out_colorspace, heif_chroma out_chroma, const struct heif_decoding_options* options) const { Error err = decode_image_planar(ID, img, out_colorspace); if (err) { return err; } // --- convert to output chroma format heif_colorspace target_colorspace = (out_colorspace == heif_colorspace_undefined ? img->get_colorspace() : out_colorspace); heif_chroma target_chroma = (out_chroma == heif_chroma_undefined ? img->get_chroma_format() : out_chroma); bool different_chroma = (target_chroma != img->get_chroma_format()); bool different_colorspace = (target_colorspace != img->get_colorspace()); int bpp = (options && options->convert_hdr_to_8bit) ? 8 : 0; // TODO: check BPP changed if (different_chroma || different_colorspace) { img = convert_colorspace(img, target_colorspace, target_chroma, nullptr, bpp); if (!img) { return Error(heif_error_Unsupported_feature, heif_suberror_Unsupported_color_conversion); } } return Error::Ok; } Error HeifContext::decode_image_planar(heif_item_id ID, std::shared_ptr& img, heif_colorspace out_colorspace, const struct heif_decoding_options* options) const { std::string image_type = m_heif_file->get_item_type(ID); std::shared_ptr imginfo; if (m_all_images.find(ID) != m_all_images.end()) { imginfo = m_all_images.find(ID)->second; } assert(imginfo); Error error; // --- decode image, depending on its type if (image_type == "hvc1" || image_type == "av01") { heif_compression_format compression = heif_compression_undefined; if (image_type == "hvc1") { compression = heif_compression_HEVC; } else if (image_type == "av01") { compression = heif_compression_AV1; } const struct heif_decoder_plugin* decoder_plugin = get_decoder(compression); if (!decoder_plugin) { return Error(heif_error_Unsupported_feature, heif_suberror_Unsupported_codec); } std::vector data; error = m_heif_file->get_compressed_image_data(ID, &data); if (error) { return error; } void* decoder; struct heif_error err = decoder_plugin->new_decoder(&decoder); if (err.code != heif_error_Ok) { return Error(err.code, err.subcode, err.message); } err = decoder_plugin->push_data(decoder, data.data(), data.size()); if (err.code != heif_error_Ok) { decoder_plugin->free_decoder(decoder); return Error(err.code, err.subcode, err.message); } //std::shared_ptr* decoded_img; heif_image* decoded_img = nullptr; err = decoder_plugin->decode_image(decoder, &decoded_img); if (err.code != heif_error_Ok) { decoder_plugin->free_decoder(decoder); return Error(err.code, err.subcode, err.message); } if (!decoded_img) { // TODO(farindk): The plugin should return an error in this case. decoder_plugin->free_decoder(decoder); return Error(heif_error_Decoder_plugin_error, heif_suberror_Unspecified); } img = std::move(decoded_img->image); heif_image_release(decoded_img); decoder_plugin->free_decoder(decoder); // --- convert to output chroma format // If there is an NCLX profile in the HEIF/AVIF metadata, use this for the color conversion. // Otherwise, use the profile that is stored in the image stream itself and then set the // (non-NCLX) profile later. auto nclx = imginfo->get_color_profile_nclx(); if (nclx) { img->set_color_profile_nclx(nclx); } auto icc = imginfo->get_color_profile_icc(); if (icc) { img->set_color_profile_icc(icc); } heif_colorspace target_colorspace = (out_colorspace == heif_colorspace_undefined ? img->get_colorspace() : out_colorspace); if (target_colorspace == heif_colorspace_YCbCr) { target_colorspace = heif_colorspace_RGB; } heif_chroma target_chroma = (target_colorspace == heif_colorspace_monochrome ? heif_chroma_monochrome : heif_chroma_444); bool different_chroma = (target_chroma != img->get_chroma_format()); bool different_colorspace = (target_colorspace != img->get_colorspace()); if (different_chroma || different_colorspace) { img = convert_colorspace(img, target_colorspace, target_chroma, nullptr); if (!img) { return Error(heif_error_Unsupported_feature, heif_suberror_Unsupported_color_conversion); } } } else if (image_type == "grid") { std::vector data; error = m_heif_file->get_compressed_image_data(ID, &data); if (error) { return error; } error = decode_full_grid_image(ID, img, data); if (error) { return error; } } else if (image_type == "iden") { error = decode_derived_image(ID, img); if (error) { return error; } } else if (image_type == "iovl") { std::vector data; error = m_heif_file->get_compressed_image_data(ID, &data); if (error) { return error; } error = decode_overlay_image(ID, img, data); if (error) { return error; } } else { // Should not reach this, was already rejected by "get_image_data". return Error(heif_error_Unsupported_feature, heif_suberror_Unsupported_image_type); } // --- apply image transformations if (!options || options->ignore_transformations == false) { std::vector properties; auto ipco_box = m_heif_file->get_ipco_box(); auto ipma_box = m_heif_file->get_ipma_box(); error = ipco_box->get_properties_for_item_ID(ID, ipma_box, properties); for (const auto& property : properties) { auto rot = std::dynamic_pointer_cast(property.property); if (rot) { std::shared_ptr rotated_img; error = img->rotate_ccw(rot->get_rotation(), rotated_img); if (error) { return error; } img = rotated_img; } auto mirror = std::dynamic_pointer_cast(property.property); if (mirror) { error = img->mirror_inplace(mirror->get_mirror_axis() == Box_imir::MirrorAxis::Horizontal); if (error) { return error; } } auto clap = std::dynamic_pointer_cast(property.property); if (clap) { std::shared_ptr clap_img; int img_width = img->get_width(); int img_height = img->get_height(); assert(img_width >= 0); assert(img_height >= 0); int left = clap->left_rounded(img_width); int right = clap->right_rounded(img_width); int top = clap->top_rounded(img_height); int bottom = clap->bottom_rounded(img_height); if (left < 0) { left = 0; } if (top < 0) { top = 0; } if (right >= img_width) { right = img_width - 1; } if (bottom >= img_height) { bottom = img_height - 1; } if (left > right || top > bottom) { return Error(heif_error_Invalid_input, heif_suberror_Invalid_clean_aperture); } std::shared_ptr cropped_img; error = img->crop(left, right, top, bottom, cropped_img); if (error) { return error; } img = cropped_img; } } } // --- add alpha channel, if available // TODO: this if statement is probably wrong. When we have a tiled image with alpha // channel, then the alpha images should be associated with their respective tiles. // However, the tile images are not part of the m_all_images list. // Fix this, when we have a test image available. if (m_all_images.find(ID) != m_all_images.end()) { const auto imginfo = m_all_images.find(ID)->second; std::shared_ptr alpha_image = imginfo->get_alpha_channel(); if (alpha_image) { std::shared_ptr alpha; Error err = decode_image_planar(alpha_image->get_id(), alpha, heif_colorspace_undefined); if (err) { return err; } // TODO: check that sizes are the same and that we have an Y channel // BUT: is there any indication in the standard that the alpha channel should have the same size? heif_channel channel; switch (alpha->get_colorspace()) { case heif_colorspace_YCbCr: case heif_colorspace_monochrome: channel = heif_channel_Y; break; case heif_colorspace_RGB: channel = heif_channel_R; break; case heif_colorspace_undefined: default: return Error(heif_error_Invalid_input, heif_suberror_Unsupported_color_conversion); } img->transfer_plane_from_image_as(alpha, channel, heif_channel_Alpha); if (imginfo->is_premultiplied_alpha()) { img->set_premultiplied_alpha(true); } } } return Error::Ok; } // This function only works with RGB images. Error HeifContext::decode_full_grid_image(heif_item_id ID, std::shared_ptr& img, const std::vector& grid_data) const { ImageGrid grid; Error err = grid.parse(grid_data); if (err) { return err; } //std::cout << grid.dump(); auto iref_box = m_heif_file->get_iref_box(); if (!iref_box) { return Error(heif_error_Invalid_input, heif_suberror_No_iref_box, "No iref box available, but needed for grid image"); } std::vector image_references = iref_box->get_references(ID, fourcc("dimg")); if ((int) image_references.size() != grid.get_rows() * grid.get_columns()) { std::stringstream sstr; sstr << "Tiled image with " << grid.get_rows() << "x" << grid.get_columns() << "=" << (grid.get_rows() * grid.get_columns()) << " tiles, but only " << image_references.size() << " tile images in file"; return Error(heif_error_Invalid_input, heif_suberror_Missing_grid_images, sstr.str()); } // --- check that all image IDs are valid images for (heif_item_id tile_id : image_references) { if (!is_image(tile_id)) { std::stringstream sstr; sstr << "Tile image ID=" << tile_id << " is not a proper image."; return Error(heif_error_Invalid_input, heif_suberror_Missing_grid_images, sstr.str()); } } auto ipma = m_heif_file->get_ipma_box(); auto ipco = m_heif_file->get_ipco_box(); auto pixi_box = ipco->get_property_for_item_ID(ID, ipma, fourcc("pixi")); auto pixi = std::dynamic_pointer_cast(pixi_box); const uint32_t w = grid.get_width(); const uint32_t h = grid.get_height(); // --- determine output image chroma size and make sure all tiles have same chroma assert(!image_references.empty()); heif_chroma tile_chroma = heif_chroma_444; /* TODO: in the future, we might support RGB and mono as intermediate formats heif_chroma tile_chroma = m_heif_file->get_image_chroma_from_configuration(some_tile_id); if (tile_chroma != heif_chroma_monochrome) { tile_chroma = heif_chroma_RGB; } */ // --- generate image of full output size if (w >= m_maximum_image_width_limit || h >= m_maximum_image_height_limit) { std::stringstream sstr; sstr << "Image size " << w << "x" << h << " exceeds the maximum image size " << m_maximum_image_width_limit << "x" << m_maximum_image_height_limit << "\n"; return Error(heif_error_Memory_allocation_error, heif_suberror_Security_limit_exceeded, sstr.str()); } img = std::make_shared(); img->create(w, h, heif_colorspace_RGB, heif_chroma_444); int bpp = 0; if (pixi) { if (pixi->get_num_channels() < 1) { return Error(heif_error_Invalid_input, heif_suberror_Invalid_pixi_box, "No pixi information for luma channel."); } bpp = pixi->get_bits_per_channel(0); if (tile_chroma != heif_chroma_monochrome) { // there are broken files that save only a one-channel pixi for an RGB image (issue #283) if (pixi->get_num_channels() == 3) { int bpp_c1 = pixi->get_bits_per_channel(1); int bpp_c2 = pixi->get_bits_per_channel(2); if (bpp_c1 != bpp || bpp_c2 != bpp) { // TODO: is this really an error? Does the pixi depths refer to RGB or YCbCr? return Error(heif_error_Invalid_input, heif_suberror_Invalid_pixi_box, "Different number of bits per pixel in each channel."); } } } } else { // When there is no pixi-box, get the pixel-depth from one of the tile images heif_item_id tileID = image_references[0]; auto iter = m_all_images.find(tileID); if (iter == m_all_images.end()) { return Error(heif_error_Invalid_input, heif_suberror_Missing_grid_images, "Nonexistent grid image referenced"); } const std::shared_ptr tileImg = iter->second; bpp = tileImg->get_luma_bits_per_pixel(); } if (tile_chroma == heif_chroma_monochrome) { img->add_plane(heif_channel_Y, w, h, bpp); } else { img->add_plane(heif_channel_R, w, h, bpp); img->add_plane(heif_channel_G, w, h, bpp); img->add_plane(heif_channel_B, w, h, bpp); } int y0 = 0; int reference_idx = 0; #if ENABLE_PARALLEL_TILE_DECODING // remember which tile to put where into the image struct tile_data { heif_item_id tileID; int x_origin,y_origin; }; std::deque tiles; tiles.resize(grid.get_rows() * grid.get_columns() ); std::deque > errs; #endif for (int y = 0; y < grid.get_rows(); y++) { int x0 = 0; int tile_height = 0; for (int x = 0; x < grid.get_columns(); x++) { heif_item_id tileID = image_references[reference_idx]; auto iter = m_all_images.find(tileID); if (iter == m_all_images.end()) { return Error(heif_error_Invalid_input, heif_suberror_Missing_grid_images, "Nonexistent grid image referenced"); } const std::shared_ptr tileImg = iter->second; int src_width = tileImg->get_width(); int src_height = tileImg->get_height(); #if ENABLE_PARALLEL_TILE_DECODING tiles[x+y*grid.get_columns()] = tile_data { tileID, x0,y0 }; #else Error err = decode_and_paste_tile_image(tileID, img, x0, y0); if (err) { return err; } #endif x0 += src_width; tile_height = src_height; // TODO: check that all tiles have the same height reference_idx++; } y0 += tile_height; } #if ENABLE_PARALLEL_TILE_DECODING // Process all tiles in a set of background threads. // Do not start more than the maximum number of threads. while (tiles.empty()==false) { // If maximum number of threads running, wait until first thread finishes if (errs.size() >= (size_t)m_max_decoding_threads) { Error e = errs.front().get(); if (e) { return e; } errs.pop_front(); } // Start a new decoding thread tile_data data = tiles.front(); tiles.pop_front(); errs.push_back( std::async(std::launch::async, &HeifContext::decode_and_paste_tile_image, this, data.tileID, img, data.x_origin,data.y_origin) ); } // check for decoding errors in remaining tiles while (errs.empty() == false) { Error e = errs.front().get(); if (e) { return e; } errs.pop_front(); } #endif return Error::Ok; } Error HeifContext::decode_and_paste_tile_image(heif_item_id tileID, std::shared_ptr img, int x0, int y0) const { std::shared_ptr tile_img; Error err = decode_image_planar(tileID, tile_img, img->get_colorspace()); if (err != Error::Ok) { return err; } const int w = img->get_width(); const int h = img->get_height(); // --- copy tile into output image int src_width = tile_img->get_width(); int src_height = tile_img->get_height(); assert(src_width >= 0); assert(src_height >= 0); heif_chroma chroma = img->get_chroma_format(); std::set channels = img->get_channel_set(); if (chroma != tile_img->get_chroma_format()) { return Error(heif_error_Invalid_input, heif_suberror_Wrong_tile_image_chroma_format, "Image tile has different chroma format than combined image"); } for (heif_channel channel : channels) { int tile_stride; uint8_t* tile_data = tile_img->get_plane(channel, &tile_stride); int out_stride; uint8_t* out_data = img->get_plane(channel, &out_stride); if (w <= x0 || h <= y0) { return Error(heif_error_Invalid_input, heif_suberror_Invalid_grid_data); } if (img->get_bits_per_pixel(channel) != tile_img->get_bits_per_pixel(channel)) { return Error(heif_error_Invalid_input, heif_suberror_Wrong_tile_image_pixel_depth); } int copy_width = std::min(src_width, w - x0); int copy_height = std::min(src_height, h - y0); copy_width *= tile_img->get_storage_bits_per_pixel(heif_channel_R) / 8; int xs = x0, ys = y0; xs *= tile_img->get_storage_bits_per_pixel(heif_channel_R) / 8; for (int py = 0; py < copy_height; py++) { memcpy(out_data + xs + (ys + py) * out_stride, tile_data + py * tile_stride, copy_width); } } return Error::Ok; } Error HeifContext::decode_derived_image(heif_item_id ID, std::shared_ptr& img) const { // find the ID of the image this image is derived from auto iref_box = m_heif_file->get_iref_box(); if (!iref_box) { return Error(heif_error_Invalid_input, heif_suberror_No_iref_box, "No iref box available, but needed for iden image"); } std::vector image_references = iref_box->get_references(ID, fourcc("dimg")); if ((int) image_references.size() != 1) { return Error(heif_error_Invalid_input, heif_suberror_Missing_grid_images, "'iden' image with more than one reference image"); } heif_item_id reference_image_id = image_references[0]; Error error = decode_image_planar(reference_image_id, img, heif_colorspace_RGB); // TODO: always RGB ? return error; } Error HeifContext::decode_overlay_image(heif_item_id ID, std::shared_ptr& img, const std::vector& overlay_data) const { // find the IDs this image is composed of auto iref_box = m_heif_file->get_iref_box(); if (!iref_box) { return Error(heif_error_Invalid_input, heif_suberror_No_iref_box, "No iref box available, but needed for iovl image"); } std::vector image_references = iref_box->get_references(ID, fourcc("dimg")); /* TODO: probably, it is valid that an iovl image has no references ? if (image_references.empty()) { return Error(heif_error_Invalid_input, heif_suberror_Missing_grid_images, "'iovl' image with more than one reference image"); } */ ImageOverlay overlay; Error err = overlay.parse(image_references.size(), overlay_data); if (err) { return err; } if (image_references.size() != overlay.get_num_offsets()) { return Error(heif_error_Invalid_input, heif_suberror_Invalid_overlay_data, "Number of image offsets does not match the number of image references"); } uint32_t w = overlay.get_canvas_width(); uint32_t h = overlay.get_canvas_height(); if (w >= m_maximum_image_width_limit || h >= m_maximum_image_height_limit) { std::stringstream sstr; sstr << "Image size " << w << "x" << h << " exceeds the maximum image size " << m_maximum_image_width_limit << "x" << m_maximum_image_height_limit << "\n"; return Error(heif_error_Memory_allocation_error, heif_suberror_Security_limit_exceeded, sstr.str()); } // TODO: seems we always have to compose this in RGB since the background color is an RGB value img = std::make_shared(); img->create(w, h, heif_colorspace_RGB, heif_chroma_444); img->add_plane(heif_channel_R, w, h, 8); // TODO: other bit depths img->add_plane(heif_channel_G, w, h, 8); // TODO: other bit depths img->add_plane(heif_channel_B, w, h, 8); // TODO: other bit depths uint16_t bkg_color[4]; overlay.get_background_color(bkg_color); err = img->fill_RGB_16bit(bkg_color[0], bkg_color[1], bkg_color[2], bkg_color[3]); if (err) { return err; } for (size_t i = 0; i < image_references.size(); i++) { std::shared_ptr overlay_img; err = decode_image_planar(image_references[i], overlay_img, heif_colorspace_RGB); // TODO: always RGB? Probably yes, because of RGB background color. if (err != Error::Ok) { return err; } overlay_img = convert_colorspace(overlay_img, heif_colorspace_RGB, heif_chroma_444, nullptr); if (!overlay_img) { return Error(heif_error_Unsupported_feature, heif_suberror_Unsupported_color_conversion); } int32_t dx, dy; overlay.get_offset(i, &dx, &dy); err = img->overlay(overlay_img, dx, dy); if (err) { if (err.error_code == heif_error_Invalid_input && err.sub_error_code == heif_suberror_Overlay_image_outside_of_canvas) { // NOP, ignore this error err = Error::Ok; } else { return err; } } } return err; } static std::shared_ptr create_alpha_image_from_image_alpha_channel(const std::shared_ptr image) { // --- generate alpha image std::shared_ptr alpha_image = std::make_shared(); alpha_image->create(image->get_width(), image->get_height(), heif_colorspace_monochrome, heif_chroma_monochrome); alpha_image->copy_new_plane_from(image, heif_channel_Alpha, heif_channel_Y); // --- set nclx profile with full-range flag auto nclx = std::make_shared(); nclx->set_undefined(); nclx->set_full_range_flag(true); // this is the default, but just to be sure in case the defaults change alpha_image->set_color_profile_nclx(nclx); return alpha_image; } void HeifContext::Image::set_preencoded_hevc_image(const std::vector& data) { m_heif_context->m_heif_file->add_hvcC_property(m_id); // --- parse the h265 stream and set hvcC headers and compressed image data int state = 0; bool first = true; bool eof = false; int prev_start_code_start = -1; // init to an invalid value, will always be overwritten before use int start_code_start; int ptr = 0; for (;;) { bool dump_nal = false; uint8_t c = data[ptr++]; if (state == 3) { state = 0; } if (c == 0 && state <= 1) { state++; } else if (c == 0) { // NOP } else if (c == 1 && state == 2) { start_code_start = ptr - 3; dump_nal = true; state = 3; } else { state = 0; } if (ptr == (int) data.size()) { start_code_start = (int) data.size(); dump_nal = true; eof = true; } if (dump_nal) { if (first) { first = false; } else { std::vector nal_data; size_t length = start_code_start - (prev_start_code_start + 3); nal_data.resize(length); assert(prev_start_code_start >= 0); memcpy(nal_data.data(), data.data() + prev_start_code_start + 3, length); int nal_type = (nal_data[0] >> 1); switch (nal_type) { case 0x20: case 0x21: case 0x22: m_heif_context->m_heif_file->append_hvcC_nal_data(m_id, nal_data); /*hvcC->append_nal_data(nal_data);*/ break; default: { std::vector nal_data_with_size; nal_data_with_size.resize(nal_data.size() + 4); memcpy(nal_data_with_size.data() + 4, nal_data.data(), nal_data.size()); nal_data_with_size[0] = ((nal_data.size() >> 24) & 0xFF); nal_data_with_size[1] = ((nal_data.size() >> 16) & 0xFF); nal_data_with_size[2] = ((nal_data.size() >> 8) & 0xFF); nal_data_with_size[3] = ((nal_data.size() >> 0) & 0xFF); m_heif_context->m_heif_file->append_iloc_data(m_id, nal_data_with_size); } break; } } prev_start_code_start = start_code_start; } if (eof) { break; } } } Error HeifContext::encode_image(std::shared_ptr pixel_image, struct heif_encoder* encoder, const struct heif_encoding_options* options, enum heif_image_input_class input_class, std::shared_ptr& out_image) { Error error; // TODO: the hdlr box is not the right place for comments // m_heif_file->set_hdlr_library_info(encoder->plugin->get_plugin_name()); switch (encoder->plugin->compression_format) { case heif_compression_HEVC: { error = encode_image_as_hevc(pixel_image, encoder, options, heif_image_input_class_normal, out_image); } break; case heif_compression_AV1: { error = encode_image_as_av1(pixel_image, encoder, options, heif_image_input_class_normal, out_image); } break; default: return Error(heif_error_Encoder_plugin_error, heif_suberror_Unsupported_codec); } m_heif_file->set_brand(encoder->plugin->compression_format, out_image->is_miaf_compatible()); return error; } Error HeifContext::encode_image_as_hevc(std::shared_ptr image, struct heif_encoder* encoder, const struct heif_encoding_options* options, enum heif_image_input_class input_class, std::shared_ptr& out_image) { heif_item_id image_id = m_heif_file->add_new_image("hvc1"); out_image = std::make_shared(this, image_id); // --- check whether we have to convert the image color space heif_colorspace colorspace = image->get_colorspace(); heif_chroma chroma = image->get_chroma_format(); auto nclx_profile = image->get_color_profile_nclx(); if (!nclx_profile) { nclx_profile = std::make_shared(); } if (encoder->plugin->plugin_api_version >= 2) { encoder->plugin->query_input_colorspace2(encoder->encoder, &colorspace, &chroma); } else { encoder->plugin->query_input_colorspace(&colorspace, &chroma); } if (colorspace != image->get_colorspace() || chroma != image->get_chroma_format()) { // @TODO: use color profile when converting image = convert_colorspace(image, colorspace, chroma, nclx_profile); if (!image) { return Error(heif_error_Unsupported_feature, heif_suberror_Unsupported_color_conversion); } } out_image->set_size(image->get_width(heif_channel_Y), image->get_height(heif_channel_Y)); m_heif_file->add_hvcC_property(image_id); heif_image c_api_image; c_api_image.image = image; struct heif_error err = encoder->plugin->encode_image(encoder->encoder, &c_api_image, input_class); if (err.code) { return Error(err.code, err.subcode, err.message); } int encoded_width, encoded_height; for (;;) { uint8_t* data; int size; encoder->plugin->get_compressed_data(encoder->encoder, &data, &size, NULL); if (data == NULL) { break; } const uint8_t NAL_SPS = 33; if ((data[0] >> 1) == NAL_SPS) { Box_hvcC::configuration config; parse_sps_for_hvcC_configuration(data, size, &config, &encoded_width, &encoded_height); m_heif_file->set_hvcC_configuration(image_id, config); } switch (data[0] >> 1) { case 0x20: case 0x21: case 0x22: m_heif_file->append_hvcC_nal_data(image_id, data, size); break; default: m_heif_file->append_iloc_data_with_4byte_size(image_id, data, size); } } // if image size was rounded up to even size, add a 'clap' box to crop the // padding border away if (out_image->get_width() != encoded_width || out_image->get_height() != encoded_height) { if (options->macOS_compatibility_workaround == false) { m_heif_file->add_clap_property(image_id, out_image->get_width(), out_image->get_height(), encoded_width, encoded_height); m_heif_file->add_ispe_property(image_id, out_image->get_width(), out_image->get_height()); // MIAF 7.3.6.7 if (!is_integer_multiple_of_chroma_size(out_image->get_width(), out_image->get_height(), image->get_chroma_format())) { out_image->mark_not_miaf_compatible(); } } else { // --- wrap the encoded image in a grid image just to apply the cropping heif_item_id grid_image_id = m_heif_file->add_new_image("grid"); auto grid_image = std::make_shared(this, grid_image_id); m_heif_file->add_iref_reference(grid_image_id, fourcc("dimg"), {image_id}); ImageGrid grid; grid.set_num_tiles(1, 1); grid.set_output_size(image->get_width(heif_channel_Y), image->get_height(heif_channel_Y)); // TODO: using out_image->get_width/height() would be shorter. auto grid_data = grid.write(); // MIAF 7.3.11.4.2 if (!is_integer_multiple_of_chroma_size(out_image->get_width(), out_image->get_height(), image->get_chroma_format())) { grid_image->mark_not_miaf_compatible(); } if ((encoded_width % 64) != 0 && (encoded_height % 64) != 0) { grid_image->mark_not_miaf_compatible(); } m_heif_file->append_iloc_data(grid_image_id, grid_data, 1); m_heif_file->add_ispe_property(grid_image_id, image->get_width(heif_channel_Y), // TODO: using out_image->get_width/height() would be shorter. image->get_height(heif_channel_Y)); m_heif_file->add_ispe_property(image_id, encoded_width, encoded_height); // --- now use the grid image instead of the original image // hide the original image m_heif_file->get_infe_box(image_id)->set_hidden_item(true); out_image = grid_image; // now use the grid image for all further property output image_id = grid_image_id; } } else { m_heif_file->add_ispe_property(image_id, out_image->get_width(), out_image->get_height()); } // --- choose which color profile to put into 'colr' box if (input_class == heif_image_input_class_normal || input_class == heif_image_input_class_thumbnail) { auto icc_profile = image->get_color_profile_icc(); if (icc_profile) { m_heif_file->set_color_profile(image_id, icc_profile); } // save nclx profile bool save_nclx_profile = (nclx_profile != nullptr); // if there is an ICC profile, only save NCLX when we chose to save both profiles if (icc_profile && !(options->version >= 3 && options->save_two_colr_boxes_when_ICC_and_nclx_available)) { save_nclx_profile = false; } // we might have turned off nclx completely because macOS/iOS cannot read it if (options->version >= 4 && options->macOS_compatibility_workaround_no_nclx_profile) { save_nclx_profile = false; } if (save_nclx_profile) { m_heif_file->set_color_profile(image_id, nclx_profile); } } // --- write PIXI property if (image->get_chroma_format() == heif_chroma_monochrome) { m_heif_file->add_pixi_property(image_id, image->get_bits_per_pixel(heif_channel_Y), 0, 0); } else { m_heif_file->add_pixi_property(image_id, image->get_bits_per_pixel(heif_channel_Y), image->get_bits_per_pixel(heif_channel_Cb), image->get_bits_per_pixel(heif_channel_Cr)); } m_top_level_images.push_back(out_image); // --- If there is an alpha channel, add it as an additional image. // Save alpha after the color image because we need to know the final reference to the color image. if (options->save_alpha_channel && image->has_channel(heif_channel_Alpha)) { // --- generate alpha image // TODO: can we directly code a monochrome image instead of the dummy color channels? std::shared_ptr alpha_image; alpha_image = create_alpha_image_from_image_alpha_channel(image); // --- encode the alpha image std::shared_ptr heif_alpha_image; Error error = encode_image_as_hevc(alpha_image, encoder, options, heif_image_input_class_alpha, heif_alpha_image); if (error) { return error; } m_heif_file->add_iref_reference(heif_alpha_image->get_id(), fourcc("auxl"), {image_id}); if (image->is_premultiplied_alpha()) { m_heif_file->add_iref_reference(image_id, fourcc("prem"), {heif_alpha_image->get_id()}); } // TODO: MIAF says that the *:hevc:* urn is deprecated and we should use "urn:mpeg:mpegB:cicp:systems:auxiliary:alpha" // Is this compatible to other decoders? m_heif_file->set_auxC_property(heif_alpha_image->get_id(), "urn:mpeg:hevc:2015:auxid:1"); } return Error::Ok; } Error HeifContext::encode_image_as_av1(std::shared_ptr image, struct heif_encoder* encoder, const struct heif_encoding_options* options, enum heif_image_input_class input_class, std::shared_ptr& out_image) { heif_item_id image_id = m_heif_file->add_new_image("av01"); out_image = std::make_shared(this, image_id); m_top_level_images.push_back(out_image); // --- check whether we have to convert the image color space heif_colorspace colorspace = image->get_colorspace(); heif_chroma chroma = image->get_chroma_format(); auto color_profile = image->get_color_profile_nclx(); if (!color_profile) { color_profile = std::make_shared(); } auto nclx_profile = std::dynamic_pointer_cast(color_profile); if (encoder->plugin->plugin_api_version >= 2) { encoder->plugin->query_input_colorspace2(encoder->encoder, &colorspace, &chroma); } else { encoder->plugin->query_input_colorspace(&colorspace, &chroma); } if (colorspace != image->get_colorspace() || chroma != image->get_chroma_format()) { // @TODO: use color profile when converting image = convert_colorspace(image, colorspace, chroma, nclx_profile); if (!image) { return Error(heif_error_Unsupported_feature, heif_suberror_Unsupported_color_conversion); } } // --- choose which color profile to put into 'colr' box if (input_class == heif_image_input_class_normal || input_class == heif_image_input_class_thumbnail) { auto icc_profile = image->get_color_profile_icc(); if (icc_profile) { m_heif_file->set_color_profile(image_id, icc_profile); } if (nclx_profile && (!icc_profile || (options->version >= 3 && options->save_two_colr_boxes_when_ICC_and_nclx_available))) { m_heif_file->set_color_profile(image_id, nclx_profile); } } // --- if there is an alpha channel, add it as an additional image if (options->save_alpha_channel && image->has_channel(heif_channel_Alpha)) { // --- generate alpha image // TODO: can we directly code a monochrome image instead of the dummy color channels? std::shared_ptr alpha_image; alpha_image = create_alpha_image_from_image_alpha_channel(image); // --- encode the alpha image std::shared_ptr heif_alpha_image; Error error = encode_image_as_av1(alpha_image, encoder, options, heif_image_input_class_alpha, heif_alpha_image); if (error) { return error; } m_heif_file->add_iref_reference(heif_alpha_image->get_id(), fourcc("auxl"), {image_id}); m_heif_file->set_auxC_property(heif_alpha_image->get_id(), "urn:mpeg:mpegB:cicp:systems:auxiliary:alpha"); if (image->is_premultiplied_alpha()) { m_heif_file->add_iref_reference(image_id, fourcc("prem"), {heif_alpha_image->get_id()}); } } Box_av1C::configuration config; // Fill preliminary av1C in case we cannot parse the sequence_header() correctly in the code below. // TODO: maybe we can remove this later. fill_av1C_configuration(&config, image); heif_image c_api_image; c_api_image.image = image; encoder->plugin->encode_image(encoder->encoder, &c_api_image, input_class); for (;;) { uint8_t* data; int size; encoder->plugin->get_compressed_data(encoder->encoder, &data, &size, nullptr); bool found_config = fill_av1C_configuration_from_stream(&config, data, size); (void)found_config; if (data == nullptr) { break; } std::vector vec; vec.resize(size); memcpy(vec.data(), data, size); m_heif_file->append_iloc_data(image_id, vec); } m_heif_file->add_av1C_property(image_id); m_heif_file->set_av1C_configuration(image_id, config); uint32_t input_width, input_height; input_width = image->get_width(); input_height = image->get_height(); m_heif_file->add_ispe_property(image_id, input_width, input_height); if (encoder->plugin->plugin_api_version >= 3) { uint32_t encoded_width, encoded_height; encoder->plugin->query_encoded_size(encoder->encoder, input_width, input_height, &encoded_width, &encoded_height); if (input_width != encoded_width || input_height != encoded_height) { m_heif_file->add_clap_property(image_id, input_width, input_height, encoded_width, encoded_height); // MIAF 7.3.6.7 if (!is_integer_multiple_of_chroma_size(out_image->get_width(), out_image->get_height(), image->get_chroma_format())) { out_image->mark_not_miaf_compatible(); } } } // --- write PIXI property if (image->get_chroma_format() == heif_chroma_monochrome) { m_heif_file->add_pixi_property(image_id, image->get_bits_per_pixel(heif_channel_Y), 0, 0); } else { m_heif_file->add_pixi_property(image_id, image->get_bits_per_pixel(heif_channel_Y), image->get_bits_per_pixel(heif_channel_Cb), image->get_bits_per_pixel(heif_channel_Cr)); } return Error::Ok; } void HeifContext::set_primary_image(std::shared_ptr image) { // update heif context if (m_primary_image) { m_primary_image->set_primary(false); } image->set_primary(true); m_primary_image = image; // update pitm box in HeifFile m_heif_file->set_primary_item_id(image->get_id()); } Error HeifContext::set_primary_item(heif_item_id id) { auto iter = m_all_images.find(id); if (iter == m_all_images.end()) { return Error(heif_error_Usage_error, heif_suberror_No_or_invalid_primary_item, "Cannot set primary item as the ID does not exist."); } set_primary_image(iter->second); return Error::Ok; } Error HeifContext::assign_thumbnail(std::shared_ptr master_image, std::shared_ptr thumbnail_image) { m_heif_file->add_iref_reference(thumbnail_image->get_id(), fourcc("thmb"), {master_image->get_id()}); return Error::Ok; } Error HeifContext::encode_thumbnail(std::shared_ptr image, struct heif_encoder* encoder, const struct heif_encoding_options* options, int bbox_size, std::shared_ptr& out_thumbnail_handle) { Error error; int orig_width = image->get_width(); int orig_height = image->get_height(); int thumb_width, thumb_height; if (orig_width <= bbox_size && orig_height <= bbox_size) { // original image is smaller than thumbnail size -> do not encode any thumbnail out_thumbnail_handle.reset(); return Error::Ok; } else if (orig_width > orig_height) { thumb_height = orig_height * bbox_size / orig_width; thumb_width = bbox_size; } else { thumb_width = orig_width * bbox_size / orig_height; thumb_height = bbox_size; } // round size to even width and height thumb_width &= ~1; thumb_height &= ~1; std::shared_ptr thumbnail_image; error = image->scale_nearest_neighbor(thumbnail_image, thumb_width, thumb_height); if (error) { return error; } error = encode_image(thumbnail_image, encoder, options, heif_image_input_class_thumbnail, out_thumbnail_handle); if (error) { return error; } return error; } Error HeifContext::add_exif_metadata(std::shared_ptr master_image, const void* data, int size) { // find location of TIFF header uint32_t offset = 0; const char* tiffmagic1 = "MM\0*"; const char* tiffmagic2 = "II*\0"; while (offset + 4 < (unsigned int) size) { if (!memcmp((uint8_t*) data + offset, tiffmagic1, 4)) break; if (!memcmp((uint8_t*) data + offset, tiffmagic2, 4)) break; offset++; } if (offset >= (unsigned int) size) { return Error(heif_error_Usage_error, heif_suberror_Invalid_parameter_value, "Could not find location of TIFF header in Exif metadata."); } std::vector data_array; data_array.resize(size + 4); data_array[0] = (uint8_t) ((offset >> 24) & 0xFF); data_array[1] = (uint8_t) ((offset >> 16) & 0xFF); data_array[2] = (uint8_t) ((offset >> 8) & 0xFF); data_array[3] = (uint8_t) ((offset) & 0xFF); memcpy(data_array.data() + 4, data, size); return add_generic_metadata(master_image, data_array.data(), (int) data_array.size(), "Exif", nullptr); } Error HeifContext::add_XMP_metadata(std::shared_ptr master_image, const void* data, int size) { return add_generic_metadata(master_image, data, size, "mime", "application/rdf+xml"); } Error HeifContext::add_generic_metadata(std::shared_ptr master_image, const void* data, int size, const char* item_type, const char* content_type) { // create an infe box describing what kind of data we are storing (this also creates a new ID) auto metadata_infe_box = m_heif_file->add_new_infe_box(item_type); metadata_infe_box->set_hidden_item(true); if (content_type != nullptr) { metadata_infe_box->set_content_type(content_type); } heif_item_id metadata_id = metadata_infe_box->get_item_ID(); // we assign this data to the image m_heif_file->add_iref_reference(metadata_id, fourcc("cdsc"), {master_image->get_id()}); // copy the XMP data into the file, store the pointer to it in an iloc box entry std::vector data_array; data_array.resize(size); memcpy(data_array.data(), data, size); m_heif_file->append_iloc_data(metadata_id, data_array); return Error::Ok; } libheif-1.12.0/libheif/heif_decoder_libde265.cc0000664000175000017500000002543014005764675016047 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif.h" #include "heif_plugin.h" #include "heif_colorconversion.h" #include "heif_api_structs.h" #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include using namespace heif; struct libde265_decoder { de265_decoder_context* ctx; }; static const char kEmptyString[] = ""; static const int LIBDE265_PLUGIN_PRIORITY = 100; #define MAX_PLUGIN_NAME_LENGTH 80 static char plugin_name[MAX_PLUGIN_NAME_LENGTH]; static const char* libde265_plugin_name() { strcpy(plugin_name, "libde265 HEVC decoder"); const char* libde265_version = de265_get_version(); if (strlen(libde265_version) + 10 < MAX_PLUGIN_NAME_LENGTH) { strcat(plugin_name, ", version "); strcat(plugin_name, libde265_version); } return plugin_name; } static void libde265_init_plugin() { de265_init(); } static void libde265_deinit_plugin() { de265_free(); } static int libde265_does_support_format(enum heif_compression_format format) { if (format == heif_compression_HEVC) { return LIBDE265_PLUGIN_PRIORITY; } else { return 0; } } static struct heif_error convert_libde265_image_to_heif_image(struct libde265_decoder* decoder, const struct de265_image* de265img, struct heif_image** image) { bool is_mono = (de265_get_chroma_format(de265img) == de265_chroma_mono); std::shared_ptr yuv_img = std::make_shared(); yuv_img->create(de265_get_image_width(de265img, 0), de265_get_image_height(de265img, 0), is_mono ? heif_colorspace_monochrome : heif_colorspace_YCbCr, (heif_chroma) de265_get_chroma_format(de265img)); // --- transfer data from de265_image to HeifPixelImage heif_channel channel2plane[3] = { heif_channel_Y, heif_channel_Cb, heif_channel_Cr }; int bpp = de265_get_bits_per_pixel(de265img, 0); int nPlanes = (is_mono ? 1 : 3); for (int c = 0; c < nPlanes; c++) { if (de265_get_bits_per_pixel(de265img, c) != bpp) { struct heif_error err = {heif_error_Unsupported_feature, heif_suberror_Unsupported_color_conversion, "Channels with different number of bits per pixel are not supported"}; return err; } int stride; const uint8_t* data = de265_get_image_plane(de265img, c, &stride); int w = de265_get_image_width(de265img, c); int h = de265_get_image_height(de265img, c); if (w <= 0 || h <= 0) { struct heif_error err = {heif_error_Decoder_plugin_error, heif_suberror_Invalid_image_size, kEmptyString}; return err; } if (!yuv_img->add_plane(channel2plane[c], w, h, bpp)) { struct heif_error err = {heif_error_Memory_allocation_error, heif_suberror_Unspecified, "Cannot allocate memory for image plane"}; return err; } int dst_stride; uint8_t* dst_mem = yuv_img->get_plane(channel2plane[c], &dst_stride); int bytes_per_pixel = (bpp + 7) / 8; for (int y = 0; y < h; y++) { memcpy(dst_mem + y * dst_stride, data + y * stride, w * bytes_per_pixel); } } *image = new heif_image; (*image)->image = yuv_img; struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; return err; } static struct heif_error libde265_new_decoder(void** dec) { struct libde265_decoder* decoder = new libde265_decoder(); struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; decoder->ctx = de265_new_decoder(); #if defined(__EMSCRIPTEN__) // Speed up decoding from JavaScript. de265_set_parameter_bool(decoder->ctx, DE265_DECODER_PARAM_DISABLE_DEBLOCKING, 1); de265_set_parameter_bool(decoder->ctx, DE265_DECODER_PARAM_DISABLE_SAO, 1); #else // Worker threads are not supported when running on Emscripten. de265_start_worker_threads(decoder->ctx, 1); #endif *dec = decoder; return err; } static void libde265_free_decoder(void* decoder_raw) { struct libde265_decoder* decoder = (struct libde265_decoder*) decoder_raw; de265_error err = de265_free_decoder(decoder->ctx); (void) err; delete decoder; } #if LIBDE265_NUMERIC_VERSION >= 0x02000000 static struct heif_error libde265_v2_push_data(void* decoder_raw, const void* data, size_t size) { struct libde265_decoder* decoder = (struct libde265_decoder*)decoder_raw; const uint8_t* cdata = (const uint8_t*)data; size_t ptr=0; while (ptr < size) { if (4 > size - ptr) { struct heif_error err = { heif_error_Decoder_plugin_error, heif_suberror_End_of_data, kEmptyString }; return err; } // TODO: the size of the NAL unit length variable is defined in the hvcC header. // We should not assume that it is always 4 bytes. uint32_t nal_size = (cdata[ptr]<<24) | (cdata[ptr+1]<<16) | (cdata[ptr+2]<<8) | (cdata[ptr+3]); ptr+=4; if (nal_size > size - ptr) { //sstr << "NAL size (" << size32 << ") exceeds available data in file (" //<< data_bytes_left_to_read << ")"; struct heif_error err = { heif_error_Decoder_plugin_error, heif_suberror_End_of_data, kEmptyString }; return err; } de265_push_NAL(decoder->ctx, cdata+ptr, nal_size, 0, nullptr); ptr += nal_size; } struct heif_error err = { heif_error_Ok, heif_suberror_Unspecified, kSuccess }; return err; } static struct heif_error libde265_v2_decode_image(void* decoder_raw, struct heif_image** out_img) { struct libde265_decoder* decoder = (struct libde265_decoder*)decoder_raw; de265_push_end_of_stream(decoder->ctx); int action = de265_get_action(decoder->ctx, 1); // TODO: read NCLX from h265 bitstream // TODO(farindk): Set "err" if no image was decoded. if (action==de265_action_get_image) { const de265_image* img = de265_get_next_picture(decoder->ctx); if (img) { struct heif_error err = convert_libde265_image_to_heif_image(decoder, img, out_img); de265_release_picture(img); return err; } } struct heif_error err = { heif_error_Decoder_plugin_error, heif_suberror_Unspecified, kEmptyString }; return err; } #else static struct heif_error libde265_v1_push_data(void* decoder_raw, const void* data, size_t size) { struct libde265_decoder* decoder = (struct libde265_decoder*) decoder_raw; const uint8_t* cdata = (const uint8_t*) data; size_t ptr = 0; while (ptr < size) { if (4 > size - ptr) { struct heif_error err = {heif_error_Decoder_plugin_error, heif_suberror_End_of_data, kEmptyString}; return err; } uint32_t nal_size = (cdata[ptr] << 24) | (cdata[ptr + 1] << 16) | (cdata[ptr + 2] << 8) | (cdata[ptr + 3]); ptr += 4; if (nal_size > size - ptr) { struct heif_error err = {heif_error_Decoder_plugin_error, heif_suberror_End_of_data, kEmptyString}; return err; } de265_push_NAL(decoder->ctx, cdata + ptr, nal_size, 0, nullptr); ptr += nal_size; } // TODO(farindk): Set "err" if data could not be pushed //de265_push_data(decoder->ctx, data, size, 0, nullptr); struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; return err; } static struct heif_error libde265_v1_decode_image(void* decoder_raw, struct heif_image** out_img) { struct libde265_decoder* decoder = (struct libde265_decoder*) decoder_raw; struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; de265_flush_data(decoder->ctx); // TODO(farindk): Set "err" if no image was decoded. int more; de265_error decode_err; *out_img = nullptr; do { more = 0; decode_err = de265_decode(decoder->ctx, &more); if (decode_err != DE265_OK) { // printf("Error decoding: %s (%d)\n", de265_get_error_text(decode_err), decode_err); break; } // TODO: read NCLX from h265 bitstream const struct de265_image* image = de265_get_next_picture(decoder->ctx); if (image) { // TODO(farindk): Should we return the first image instead? if (*out_img) { heif_image_release(*out_img); } err = convert_libde265_image_to_heif_image(decoder, image, out_img); if (err.code != heif_error_Ok) { return err; } auto nclx = std::make_shared(); #if LIBDE265_NUMERIC_VERSION >= 0x01000700 nclx->set_full_range_flag(de265_get_image_full_range_flag(image)); nclx->set_matrix_coefficients((uint16_t)de265_get_image_matrix_coefficients(image)); nclx->set_colour_primaries((uint16_t)de265_get_image_colour_primaries(image)); nclx->set_transfer_characteristics((uint16_t)de265_get_image_transfer_characteristics(image)); #endif (*out_img)->image->set_color_profile_nclx(nclx); de265_release_next_picture(decoder->ctx); } } while (more); return err; } #endif #if LIBDE265_NUMERIC_VERSION >= 0x02000000 static const struct heif_decoder_plugin decoder_libde265 { 1, libde265_plugin_name, libde265_init_plugin, libde265_deinit_plugin, libde265_does_support_format, libde265_new_decoder, libde265_free_decoder, libde265_v2_push_data, libde265_v2_decode_image }; #else static const struct heif_decoder_plugin decoder_libde265 { 1, libde265_plugin_name, libde265_init_plugin, libde265_deinit_plugin, libde265_does_support_format, libde265_new_decoder, libde265_free_decoder, libde265_v1_push_data, libde265_v1_decode_image }; #endif const struct heif_decoder_plugin* get_decoder_plugin_libde265() { return &decoder_libde265; } libheif-1.12.0/libheif/color_conversion_fuzzer.cc0000644000175000017500000001717114003350412017016 00000000000000/* * HEIF codec. * Copyright (c) 2019 struktur AG, Joachim Bauch * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include #include #include "bitstream.h" #include "heif_colorconversion.h" #include "heif_image.h" static bool is_valid_chroma(uint8_t chroma) { switch (chroma) { case heif_chroma_monochrome: case heif_chroma_420: case heif_chroma_422: case heif_chroma_444: case heif_chroma_interleaved_RGB: case heif_chroma_interleaved_RGBA: case heif_chroma_interleaved_RRGGBB_BE: case heif_chroma_interleaved_RRGGBBAA_BE: case heif_chroma_interleaved_RRGGBB_LE: case heif_chroma_interleaved_RRGGBBAA_LE: return true; default: return false; } } static bool is_valid_colorspace(uint8_t colorspace) { switch (colorspace) { case heif_colorspace_YCbCr: case heif_colorspace_RGB: case heif_colorspace_monochrome: return true; default: return false; } } static bool read_plane(heif::BitstreamRange* range, std::shared_ptr image, heif_channel channel, int width, int height, int bit_depth) { if (width <= 0 || height <= 0) { return false; } if (!range->prepare_read(static_cast(width) * height)) { return false; } if (!image->add_plane(channel, width, height, bit_depth)) { return false; } int stride; uint8_t* plane = image->get_plane(channel, &stride); assert(stride >= width); auto stream = range->get_istream(); for (int y = 0; y < height; y++, plane += stride) { assert(stream->read(plane, width)); } return true; } static bool read_plane_interleaved(heif::BitstreamRange* range, std::shared_ptr image, heif_channel channel, int width, int height, int bit_depth, int comps) { if (width <= 0 || height <= 0) { return false; } if (!range->prepare_read(static_cast(width) * height * comps)) { return false; } if (!image->add_plane(channel, width, height, bit_depth)) { return false; } int stride; uint8_t* plane = image->get_plane(channel, &stride); assert(stride >= width * comps); auto stream = range->get_istream(); for (int y = 0; y < height; y++, plane += stride) { assert(stream->read(plane, width * comps)); } return true; } extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { auto reader = std::make_shared(data, size, false); heif::BitstreamRange range(reader, size); int width; int height; int bit_depth; bool alpha; uint8_t in_chroma; uint8_t in_colorspace; uint8_t out_chroma; uint8_t out_colorspace; if (!range.prepare_read(10)) { return 0; } width = range.read16(); height = range.read16(); bit_depth = range.read8(); alpha = range.read8() == 1; in_chroma = range.read8(); in_colorspace = range.read8(); out_chroma = range.read8(); out_colorspace = range.read8(); // Width / height must be a multiple of 2. if (width == 0 || height == 0 || (width & 1) != 0 || (height & 1) != 0) { return 0; } switch (bit_depth) { case 8: break; default: // TODO: Add support for more color depths. return 0; } if (!is_valid_chroma(in_chroma) || !is_valid_colorspace(in_colorspace) || !is_valid_chroma(out_chroma) || !is_valid_colorspace(out_colorspace)) { return 0; } auto in_image = std::make_shared(); in_image->create(width, height, static_cast(in_colorspace), static_cast(in_chroma)); switch (in_colorspace) { case heif_colorspace_YCbCr: switch (in_chroma) { case heif_chroma_420: if (!read_plane(&range, in_image, heif_channel_Y, width, height, bit_depth)) { return 0; } if (!read_plane(&range, in_image, heif_channel_Cb, width / 2, height / 2, bit_depth)) { return 0; } if (!read_plane(&range, in_image, heif_channel_Cr, width / 2, height / 2, bit_depth)) { return 0; } break; case heif_chroma_422: if (!read_plane(&range, in_image, heif_channel_Y, width, height, bit_depth)) { return 0; } if (!read_plane(&range, in_image, heif_channel_Cb, width / 2, height, bit_depth)) { return 0; } if (!read_plane(&range, in_image, heif_channel_Cr, width / 2, height, bit_depth)) { return 0; } break; case heif_chroma_444: if (!read_plane(&range, in_image, heif_channel_Y, width, height, bit_depth)) { return 0; } if (!read_plane(&range, in_image, heif_channel_Cb, width, height, bit_depth)) { return 0; } if (!read_plane(&range, in_image, heif_channel_Cr, width, height, bit_depth)) { return 0; } break; default: return 0; } break; case heif_colorspace_RGB: switch (in_chroma) { case heif_chroma_interleaved_RGB: if (!read_plane_interleaved(&range, in_image, heif_channel_interleaved, width, height, bit_depth, 3)) { return 0; } break; case heif_chroma_interleaved_RGBA: if (!read_plane_interleaved(&range, in_image, heif_channel_interleaved, width, height, bit_depth, 4)) { return 0; } alpha = false; // Already part of interleaved data. break; default: // TODO: Support other RGB chromas. return 0; } break; case heif_colorspace_monochrome: if (in_chroma != heif_chroma_monochrome) { return 0; } if (!read_plane(&range, in_image, heif_channel_Y, width, height, bit_depth)) { return 0; } break; default: assert(false); } if (alpha) { if (!read_plane(&range, in_image, heif_channel_Alpha, width, height, bit_depth)) { return 0; } } auto out_image = convert_colorspace(in_image, static_cast(out_colorspace), static_cast(out_chroma), nullptr); if (!out_image) { // Conversion is not supported. return 0; } assert(out_image->get_width() == width); assert(out_image->get_height() == height); assert(out_image->get_chroma_format() == static_cast(out_chroma)); assert(out_image->get_colorspace() == static_cast(out_colorspace)); return 0; } libheif-1.12.0/libheif/heif_emscripten.h0000664000175000017500000003330414043747772015061 00000000000000#ifndef LIBHEIF_BOX_EMSCRIPTEN_H #define LIBHEIF_BOX_EMSCRIPTEN_H #include #include #include #include #include #include #include "heif.h" static std::string _heif_get_version() { return heif_get_version(); } static struct heif_error _heif_context_read_from_memory( struct heif_context* context, const std::string& data) { return heif_context_read_from_memory(context, data.data(), data.size(), nullptr); } static void strided_copy(void* dest, const void* src, int width, int height, int stride) { if (width == stride) { memcpy(dest, src, width * height); } else { const uint8_t* _src = static_cast(src); uint8_t* _dest = static_cast(dest); for (int y = 0; y < height; y++, _dest += width, _src += stride) { memcpy(_dest, _src, stride); } } } static emscripten::val heif_js_context_get_image_handle( struct heif_context* context, heif_item_id id) { emscripten::val result = emscripten::val::object(); if (!context) { return result; } struct heif_image_handle* handle; struct heif_error err = heif_context_get_image_handle(context, id, &handle); if (err.code != heif_error_Ok) { return emscripten::val(err); } return emscripten::val(handle); } static emscripten::val heif_js_context_get_list_of_top_level_image_IDs( struct heif_context* context) { emscripten::val result = emscripten::val::array(); if (!context) { return result; } int count = heif_context_get_number_of_top_level_images(context); if (count <= 0) { return result; } heif_item_id* ids = (heif_item_id*) malloc(count * sizeof(heif_item_id)); if (!ids) { struct heif_error err; err.code = heif_error_Memory_allocation_error; err.subcode = heif_suberror_Security_limit_exceeded; return emscripten::val(err); } int received = heif_context_get_list_of_top_level_image_IDs(context, ids, count); if (!received) { free(ids); return result; } for (int i = 0; i < received; i++) { result.set(i, ids[i]); } free(ids); return result; } static int round_odd(int v) { return (int) ((v / 2.0) + 0.5); } static emscripten::val heif_js_decode_image(struct heif_image_handle* handle, enum heif_colorspace colorspace, enum heif_chroma chroma) { emscripten::val result = emscripten::val::object(); if (!handle) { return result; } struct heif_image* image; struct heif_error err = heif_decode_image(handle, &image, colorspace, chroma, nullptr); if (err.code != heif_error_Ok) { return emscripten::val(err); } result.set("is_primary", heif_image_handle_is_primary_image(handle)); result.set("thumbnails", heif_image_handle_get_number_of_thumbnails(handle)); int width = heif_image_get_width(image, heif_channel_Y); result.set("width", width); int height = heif_image_get_height(image, heif_channel_Y); result.set("height", height); std::string data; result.set("chroma", heif_image_get_chroma_format(image)); result.set("colorspace", heif_image_get_colorspace(image)); switch (heif_image_get_colorspace(image)) { case heif_colorspace_YCbCr: { int stride_y; const uint8_t* plane_y = heif_image_get_plane_readonly(image, heif_channel_Y, &stride_y); int stride_u; const uint8_t* plane_u = heif_image_get_plane_readonly(image, heif_channel_Cb, &stride_u); int stride_v; const uint8_t* plane_v = heif_image_get_plane_readonly(image, heif_channel_Cr, &stride_v); data.resize((width * height) + (2 * round_odd(width) * round_odd(height))); char* dest = const_cast(data.data()); strided_copy(dest, plane_y, width, height, stride_y); strided_copy(dest + (width * height), plane_u, round_odd(width), round_odd(height), stride_u); strided_copy(dest + (width * height) + (round_odd(width) * round_odd(height)), plane_v, round_odd(width), round_odd(height), stride_v); } break; case heif_colorspace_RGB: { assert(heif_image_get_chroma_format(image) == heif_chroma_interleaved_24bit); int stride_rgb; const uint8_t* plane_rgb = heif_image_get_plane_readonly(image, heif_channel_interleaved, &stride_rgb); data.resize(width * height * 3); char* dest = const_cast(data.data()); strided_copy(dest, plane_rgb, width * 3, height, stride_rgb); } break; case heif_colorspace_monochrome: { assert(heif_image_get_chroma_format(image) == heif_chroma_monochrome); int stride_grey; const uint8_t* plane_grey = heif_image_get_plane_readonly(image, heif_channel_Y, &stride_grey); data.resize(width * height); char* dest = const_cast(data.data()); strided_copy(dest, plane_grey, width, height, stride_grey); } break; default: // Should never reach here. break; } result.set("data", std::move(data)); heif_image_release(image); return result; } #define EXPORT_HEIF_FUNCTION(name) \ emscripten::function(#name, &name, emscripten::allow_raw_pointers()) EMSCRIPTEN_BINDINGS(libheif) { emscripten::function("heif_get_version", &_heif_get_version, emscripten::allow_raw_pointers()); EXPORT_HEIF_FUNCTION(heif_get_version_number); EXPORT_HEIF_FUNCTION(heif_context_alloc); EXPORT_HEIF_FUNCTION(heif_context_free); emscripten::function("heif_context_read_from_memory", &_heif_context_read_from_memory, emscripten::allow_raw_pointers()); EXPORT_HEIF_FUNCTION(heif_context_get_number_of_top_level_images); emscripten::function("heif_js_context_get_list_of_top_level_image_IDs", &heif_js_context_get_list_of_top_level_image_IDs, emscripten::allow_raw_pointers()); emscripten::function("heif_js_context_get_image_handle", &heif_js_context_get_image_handle, emscripten::allow_raw_pointers()); emscripten::function("heif_js_decode_image", &heif_js_decode_image, emscripten::allow_raw_pointers()); EXPORT_HEIF_FUNCTION(heif_image_handle_release); emscripten::enum_("heif_error_code") .value("heif_error_Ok", heif_error_Ok) .value("heif_error_Input_does_not_exist", heif_error_Input_does_not_exist) .value("heif_error_Invalid_input", heif_error_Invalid_input) .value("heif_error_Unsupported_filetype", heif_error_Unsupported_filetype) .value("heif_error_Unsupported_feature", heif_error_Unsupported_feature) .value("heif_error_Usage_error", heif_error_Usage_error) .value("heif_error_Memory_allocation_error", heif_error_Memory_allocation_error) .value("heif_error_Decoder_plugin_error", heif_error_Decoder_plugin_error) .value("heif_error_Encoder_plugin_error", heif_error_Encoder_plugin_error) .value("heif_error_Encoding_error", heif_error_Encoding_error) .value("heif_error_Color_profile_does_not_exist", heif_error_Color_profile_does_not_exist); emscripten::enum_("heif_suberror_code") .value("heif_suberror_Unspecified", heif_suberror_Unspecified) .value("heif_suberror_Cannot_write_output_data", heif_suberror_Cannot_write_output_data) .value("heif_suberror_End_of_data", heif_suberror_End_of_data) .value("heif_suberror_Invalid_box_size", heif_suberror_Invalid_box_size) .value("heif_suberror_No_ftyp_box", heif_suberror_No_ftyp_box) .value("heif_suberror_No_idat_box", heif_suberror_No_idat_box) .value("heif_suberror_No_meta_box", heif_suberror_No_meta_box) .value("heif_suberror_No_hdlr_box", heif_suberror_No_hdlr_box) .value("heif_suberror_No_hvcC_box", heif_suberror_No_hvcC_box) .value("heif_suberror_No_pitm_box", heif_suberror_No_pitm_box) .value("heif_suberror_No_ipco_box", heif_suberror_No_ipco_box) .value("heif_suberror_No_ipma_box", heif_suberror_No_ipma_box) .value("heif_suberror_No_iloc_box", heif_suberror_No_iloc_box) .value("heif_suberror_No_iinf_box", heif_suberror_No_iinf_box) .value("heif_suberror_No_iprp_box", heif_suberror_No_iprp_box) .value("heif_suberror_No_iref_box", heif_suberror_No_iref_box) .value("heif_suberror_No_pict_handler", heif_suberror_No_pict_handler) .value("heif_suberror_Ipma_box_references_nonexisting_property", heif_suberror_Ipma_box_references_nonexisting_property) .value("heif_suberror_No_properties_assigned_to_item", heif_suberror_No_properties_assigned_to_item) .value("heif_suberror_No_item_data", heif_suberror_No_item_data) .value("heif_suberror_Invalid_grid_data", heif_suberror_Invalid_grid_data) .value("heif_suberror_Missing_grid_images", heif_suberror_Missing_grid_images) .value("heif_suberror_No_av1C_box", heif_suberror_No_av1C_box) .value("heif_suberror_Invalid_clean_aperture", heif_suberror_Invalid_clean_aperture) .value("heif_suberror_Invalid_overlay_data", heif_suberror_Invalid_overlay_data) .value("heif_suberror_Overlay_image_outside_of_canvas", heif_suberror_Overlay_image_outside_of_canvas) .value("heif_suberror_Auxiliary_image_type_unspecified", heif_suberror_Auxiliary_image_type_unspecified) .value("heif_suberror_No_or_invalid_primary_item", heif_suberror_No_or_invalid_primary_item) .value("heif_suberror_No_infe_box", heif_suberror_No_infe_box) .value("heif_suberror_Security_limit_exceeded", heif_suberror_Security_limit_exceeded) .value("heif_suberror_Unknown_color_profile_type", heif_suberror_Unknown_color_profile_type) .value("heif_suberror_Wrong_tile_image_chroma_format", heif_suberror_Wrong_tile_image_chroma_format) .value("heif_suberror_Invalid_fractional_number", heif_suberror_Invalid_fractional_number) .value("heif_suberror_Invalid_image_size", heif_suberror_Invalid_image_size) .value("heif_suberror_Nonexisting_item_referenced", heif_suberror_Nonexisting_item_referenced) .value("heif_suberror_Null_pointer_argument", heif_suberror_Null_pointer_argument) .value("heif_suberror_Nonexisting_image_channel_referenced", heif_suberror_Nonexisting_image_channel_referenced) .value("heif_suberror_Unsupported_plugin_version", heif_suberror_Unsupported_plugin_version) .value("heif_suberror_Unsupported_writer_version", heif_suberror_Unsupported_writer_version) .value("heif_suberror_Unsupported_parameter", heif_suberror_Unsupported_parameter) .value("heif_suberror_Invalid_parameter_value", heif_suberror_Invalid_parameter_value) .value("heif_suberror_Invalid_pixi_box", heif_suberror_Invalid_pixi_box) .value("heif_suberror_Unsupported_codec", heif_suberror_Unsupported_codec) .value("heif_suberror_Unsupported_image_type", heif_suberror_Unsupported_image_type) .value("heif_suberror_Unsupported_data_version", heif_suberror_Unsupported_data_version) .value("heif_suberror_Unsupported_color_conversion", heif_suberror_Unsupported_color_conversion) .value("heif_suberror_Unsupported_item_construction_method", heif_suberror_Unsupported_item_construction_method) .value("heif_suberror_Unsupported_bit_depth", heif_suberror_Unsupported_bit_depth) .value("heif_suberror_Wrong_tile_image_pixel_depth", heif_suberror_Wrong_tile_image_pixel_depth); emscripten::enum_("heif_compression_format") .value("heif_compression_undefined", heif_compression_undefined) .value("heif_compression_HEVC", heif_compression_HEVC) .value("heif_compression_AVC", heif_compression_AVC) .value("heif_compression_JPEG", heif_compression_JPEG) .value("heif_compression_AV1", heif_compression_AV1); emscripten::enum_("heif_chroma") .value("heif_chroma_undefined", heif_chroma_undefined) .value("heif_chroma_monochrome", heif_chroma_monochrome) .value("heif_chroma_420", heif_chroma_420) .value("heif_chroma_422", heif_chroma_422) .value("heif_chroma_444", heif_chroma_444) .value("heif_chroma_interleaved_RGB", heif_chroma_interleaved_RGB) .value("heif_chroma_interleaved_RGBA", heif_chroma_interleaved_RGBA) .value("heif_chroma_interleaved_RRGGBB_BE", heif_chroma_interleaved_RRGGBB_BE) .value("heif_chroma_interleaved_RRGGBBAA_BE", heif_chroma_interleaved_RRGGBBAA_BE) .value("heif_chroma_interleaved_RRGGBB_LE", heif_chroma_interleaved_RRGGBB_LE) .value("heif_chroma_interleaved_RRGGBBAA_LE", heif_chroma_interleaved_RRGGBBAA_LE) // Aliases .value("heif_chroma_interleaved_24bit", heif_chroma_interleaved_24bit) .value("heif_chroma_interleaved_32bit", heif_chroma_interleaved_32bit); emscripten::enum_("heif_colorspace") .value("heif_colorspace_undefined", heif_colorspace_undefined) .value("heif_colorspace_YCbCr", heif_colorspace_YCbCr) .value("heif_colorspace_RGB", heif_colorspace_RGB) .value("heif_colorspace_monochrome", heif_colorspace_monochrome); emscripten::enum_("heif_channel") .value("heif_channel_Y", heif_channel_Y) .value("heif_channel_Cr", heif_channel_Cr) .value("heif_channel_Cb", heif_channel_Cb) .value("heif_channel_R", heif_channel_R) .value("heif_channel_G", heif_channel_G) .value("heif_channel_B", heif_channel_B) .value("heif_channel_Alpha", heif_channel_Alpha) .value("heif_channel_interleaved", heif_channel_interleaved); emscripten::class_("heif_context"); emscripten::class_("heif_image_handle"); emscripten::class_("heif_image"); emscripten::value_object("heif_error") .field("code", &heif_error::code) .field("subcode", &heif_error::subcode); } #endif // LIBHEIF_BOX_EMSCRIPTEN_H libheif-1.12.0/libheif/heif.h0000664000175000017500000015722714043747772012643 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_H #define LIBHEIF_HEIF_H #ifdef __cplusplus extern "C" { #endif #include #include #include // API versions table // // release depth.rep dec.options enc.options heif_reader heif_writer col.profile // ----------------------------------------------------------------------------------------- // 1.0 1 1 N/A N/A N/A N/A // 1.1 1 1 N/A N/A 1 N/A // 1.3 1 1 1 1 1 N/A // 1.4 1 1 1 1 1 1 // 1.7 1 2 1 1 1 1 // 1.9.2 1 2 2 1 1 1 // 1.10 1 2 3 1 1 1 // 1.11 1 2 4 1 1 1 #if defined(_MSC_VER) && !defined(LIBHEIF_STATIC_BUILD) #ifdef LIBHEIF_EXPORTS #define LIBHEIF_API __declspec(dllexport) #else #define LIBHEIF_API __declspec(dllimport) #endif #elif defined(HAVE_VISIBILITY) && HAVE_VISIBILITY #ifdef LIBHEIF_EXPORTS #define LIBHEIF_API __attribute__((__visibility__("default"))) #else #define LIBHEIF_API #endif #else #define LIBHEIF_API #endif #define heif_fourcc(a, b, c, d) ((a<<24) | (b<<16) | (c<<8) | d) /* === version numbers === */ // Version string of linked libheif library. LIBHEIF_API const char* heif_get_version(void); // Numeric version of linked libheif library, encoded as 0xHHMMLL00 = HH.MM.LL. LIBHEIF_API uint32_t heif_get_version_number(void); // Numeric part "HH" from above. LIBHEIF_API int heif_get_version_number_major(void); // Numeric part "MM" from above. LIBHEIF_API int heif_get_version_number_minor(void); // Numeric part "LL" from above. LIBHEIF_API int heif_get_version_number_maintenance(void); // Helper macros to check for given versions of libheif at compile time. #define LIBHEIF_MAKE_VERSION(h, m, l) ((h) << 24 | (m) << 16 | (l) << 8) #define LIBHEIF_HAVE_VERSION(h, m, l) (LIBHEIF_NUMERIC_VERSION >= LIBHEIF_MAKE_VERSION(h, m, l)) struct heif_context; struct heif_image_handle; struct heif_image; enum heif_error_code { // Everything ok, no error occurred. heif_error_Ok = 0, // Input file does not exist. heif_error_Input_does_not_exist = 1, // Error in input file. Corrupted or invalid content. heif_error_Invalid_input = 2, // Input file type is not supported. heif_error_Unsupported_filetype = 3, // Image requires an unsupported decoder feature. heif_error_Unsupported_feature = 4, // Library API has been used in an invalid way. heif_error_Usage_error = 5, // Could not allocate enough memory. heif_error_Memory_allocation_error = 6, // The decoder plugin generated an error heif_error_Decoder_plugin_error = 7, // The encoder plugin generated an error heif_error_Encoder_plugin_error = 8, // Error during encoding or when writing to the output heif_error_Encoding_error = 9, // Application has asked for a color profile type that does not exist heif_error_Color_profile_does_not_exist = 10 }; enum heif_suberror_code { // no further information available heif_suberror_Unspecified = 0, // --- Invalid_input --- // End of data reached unexpectedly. heif_suberror_End_of_data = 100, // Size of box (defined in header) is wrong heif_suberror_Invalid_box_size = 101, // Mandatory 'ftyp' box is missing heif_suberror_No_ftyp_box = 102, heif_suberror_No_idat_box = 103, heif_suberror_No_meta_box = 104, heif_suberror_No_hdlr_box = 105, heif_suberror_No_hvcC_box = 106, heif_suberror_No_pitm_box = 107, heif_suberror_No_ipco_box = 108, heif_suberror_No_ipma_box = 109, heif_suberror_No_iloc_box = 110, heif_suberror_No_iinf_box = 111, heif_suberror_No_iprp_box = 112, heif_suberror_No_iref_box = 113, heif_suberror_No_pict_handler = 114, // An item property referenced in the 'ipma' box is not existing in the 'ipco' container. heif_suberror_Ipma_box_references_nonexisting_property = 115, // No properties have been assigned to an item. heif_suberror_No_properties_assigned_to_item = 116, // Image has no (compressed) data heif_suberror_No_item_data = 117, // Invalid specification of image grid (tiled image) heif_suberror_Invalid_grid_data = 118, // Tile-images in a grid image are missing heif_suberror_Missing_grid_images = 119, heif_suberror_Invalid_clean_aperture = 120, // Invalid specification of overlay image heif_suberror_Invalid_overlay_data = 121, // Overlay image completely outside of visible canvas area heif_suberror_Overlay_image_outside_of_canvas = 122, heif_suberror_Auxiliary_image_type_unspecified = 123, heif_suberror_No_or_invalid_primary_item = 124, heif_suberror_No_infe_box = 125, heif_suberror_Unknown_color_profile_type = 126, heif_suberror_Wrong_tile_image_chroma_format = 127, heif_suberror_Invalid_fractional_number = 128, heif_suberror_Invalid_image_size = 129, heif_suberror_Invalid_pixi_box = 130, heif_suberror_No_av1C_box = 131, heif_suberror_Wrong_tile_image_pixel_depth = 132, // --- Memory_allocation_error --- // A security limit preventing unreasonable memory allocations was exceeded by the input file. // Please check whether the file is valid. If it is, contact us so that we could increase the // security limits further. heif_suberror_Security_limit_exceeded = 1000, // --- Usage_error --- // An item ID was used that is not present in the file. heif_suberror_Nonexisting_item_referenced = 2000, // also used for Invalid_input // An API argument was given a NULL pointer, which is not allowed for that function. heif_suberror_Null_pointer_argument = 2001, // Image channel referenced that does not exist in the image heif_suberror_Nonexisting_image_channel_referenced = 2002, // The version of the passed plugin is not supported. heif_suberror_Unsupported_plugin_version = 2003, // The version of the passed writer is not supported. heif_suberror_Unsupported_writer_version = 2004, // The given (encoder) parameter name does not exist. heif_suberror_Unsupported_parameter = 2005, // The value for the given parameter is not in the valid range. heif_suberror_Invalid_parameter_value = 2006, // --- Unsupported_feature --- // Image was coded with an unsupported compression method. heif_suberror_Unsupported_codec = 3000, // Image is specified in an unknown way, e.g. as tiled grid image (which is supported) heif_suberror_Unsupported_image_type = 3001, heif_suberror_Unsupported_data_version = 3002, // The conversion of the source image to the requested chroma / colorspace is not supported. heif_suberror_Unsupported_color_conversion = 3003, heif_suberror_Unsupported_item_construction_method = 3004, // --- Encoder_plugin_error --- heif_suberror_Unsupported_bit_depth = 4000, // --- Encoding_error --- heif_suberror_Cannot_write_output_data = 5000, }; struct heif_error { // main error category enum heif_error_code code; // more detailed error code enum heif_suberror_code subcode; // textual error message (is always defined, you do not have to check for NULL) const char* message; }; typedef uint32_t heif_item_id; // ========================= file type check ====================== enum heif_filetype_result { heif_filetype_no, heif_filetype_yes_supported, // it is heif and can be read by libheif heif_filetype_yes_unsupported, // it is heif, but cannot be read by libheif heif_filetype_maybe // not sure whether it is an heif, try detection with more input data }; // input data should be at least 12 bytes LIBHEIF_API enum heif_filetype_result heif_check_filetype(const uint8_t* data, int len); // DEPRECATED, use heif_brand2 instead enum heif_brand { heif_unknown_brand, heif_heic, // the usual HEIF images heif_heix, // 10bit images, or anything that uses h265 with range extension heif_hevc, heif_hevx, // brands for image sequences heif_heim, // multiview heif_heis, // scalable heif_hevm, // multiview sequence heif_hevs, // scalable sequence heif_mif1, // image, any coding algorithm heif_msf1, // sequence, any coding algorithm heif_avif, heif_avis }; // input data should be at least 12 bytes // DEPRECATED, use heif_read_main_brand() instead LIBHEIF_API enum heif_brand heif_main_brand(const uint8_t* data, int len); typedef uint32_t heif_brand2; // input data should be at least 12 bytes LIBHEIF_API heif_brand2 heif_read_main_brand(const uint8_t* data, int len); // 'brand_fourcc' must be 4 character long, but need not be 0-terminated LIBHEIF_API heif_brand2 heif_fourcc_to_brand(const char* brand_fourcc); // the output buffer must be at least 4 bytes long LIBHEIF_API void heif_brand_to_fourcc(heif_brand2 brand, char* out_fourcc); // 'brand_fourcc' must be 4 character long, but need not be 0-terminated // returns 1 if file includes the brand, and 0 if it does not // returns -1 if the provided data is not sufficient // (you should input at least as many bytes as indicated in the first 4 bytes of the file, usually ~50 bytes will do) // returns -2 on other errors LIBHEIF_API int heif_has_compatible_brand(const uint8_t* data, int len, const char* brand_fourcc); // Returns an array of compatible brands. The array is allocated by this function and has to be freed with 'heif_free_list_of_compatible_brands()'. // The number of entries is returned in out_size. LIBHEIF_API struct heif_error heif_list_compatible_brands(const uint8_t* data, int len, heif_brand2** out_brands, int* out_size); LIBHEIF_API void heif_free_list_of_compatible_brands(heif_brand2* brands_list); // Returns one of these MIME types: // - image/heic HEIF file using h265 compression // - image/heif HEIF file using any other compression // - image/heic-sequence HEIF image sequence using h265 compression // - image/heif-sequence HEIF image sequence using any other compression // - image/jpeg JPEG image // - image/png PNG image // If the format could not be detected, an empty string is returned. // // Provide at least 12 bytes of input. With less input, its format might not // be detected. You may also provide more input to increase detection accuracy. // // Note that JPEG and PNG images cannot be decoded by libheif even though the // formats are detected by this function. LIBHEIF_API const char* heif_get_file_mime_type(const uint8_t* data, int len); // ========================= heif_context ========================= // A heif_context represents a HEIF file that has been read. // In the future, you will also be able to add pictures to a heif_context // and write it into a file again. // Allocate a new context for reading HEIF files. // Has to be freed again with heif_context_free(). LIBHEIF_API struct heif_context* heif_context_alloc(void); // Free a previously allocated HEIF context. You should not free a context twice. LIBHEIF_API void heif_context_free(struct heif_context*); struct heif_reading_options; enum heif_reader_grow_status { heif_reader_grow_status_size_reached, // requested size has been reached, we can read until this point heif_reader_grow_status_timeout, // size has not been reached yet, but it may still grow further heif_reader_grow_status_size_beyond_eof // size has not been reached and never will. The file has grown to its full size }; struct heif_reader { // API version supported by this reader int reader_api_version; // --- version 1 functions --- int64_t (* get_position)(void* userdata); // The functions read(), and seek() return 0 on success. // Generally, libheif will make sure that we do not read past the file size. int (* read)(void* data, size_t size, void* userdata); int (* seek)(int64_t position, void* userdata); // When calling this function, libheif wants to make sure that it can read the file // up to 'target_size'. This is useful when the file is currently downloaded and may // grow with time. You may, for example, extract the image sizes even before the actual // compressed image data has been completely downloaded. // // Even if your input files will not grow, you will have to implement at least // detection whether the target_size is above the (fixed) file length // (in this case, return 'size_beyond_eof'). enum heif_reader_grow_status (* wait_for_file_size)(int64_t target_size, void* userdata); }; // Read a HEIF file from a named disk file. // The heif_reading_options should currently be set to NULL. LIBHEIF_API struct heif_error heif_context_read_from_file(struct heif_context*, const char* filename, const struct heif_reading_options*); // Read a HEIF file stored completely in memory. // The heif_reading_options should currently be set to NULL. // DEPRECATED: use heif_context_read_from_memory_without_copy() instead. LIBHEIF_API struct heif_error heif_context_read_from_memory(struct heif_context*, const void* mem, size_t size, const struct heif_reading_options*); // Same as heif_context_read_from_memory() except that the provided memory is not copied. // That means, you will have to keep the memory area alive as long as you use the heif_context. LIBHEIF_API struct heif_error heif_context_read_from_memory_without_copy(struct heif_context*, const void* mem, size_t size, const struct heif_reading_options*); LIBHEIF_API struct heif_error heif_context_read_from_reader(struct heif_context*, const struct heif_reader* reader, void* userdata, const struct heif_reading_options*); // Number of top-level images in the HEIF file. This does not include the thumbnails or the // tile images that are composed to an image grid. You can get access to the thumbnails via // the main image handle. LIBHEIF_API int heif_context_get_number_of_top_level_images(struct heif_context* ctx); LIBHEIF_API int heif_context_is_top_level_image_ID(struct heif_context* ctx, heif_item_id id); // Fills in image IDs into the user-supplied int-array 'ID_array', preallocated with 'count' entries. // Function returns the total number of IDs filled into the array. LIBHEIF_API int heif_context_get_list_of_top_level_image_IDs(struct heif_context* ctx, heif_item_id* ID_array, int count); LIBHEIF_API struct heif_error heif_context_get_primary_image_ID(struct heif_context* ctx, heif_item_id* id); // Get a handle to the primary image of the HEIF file. // This is the image that should be displayed primarily when there are several images in the file. LIBHEIF_API struct heif_error heif_context_get_primary_image_handle(struct heif_context* ctx, struct heif_image_handle**); // Get the handle for a specific top-level image from an image ID. LIBHEIF_API struct heif_error heif_context_get_image_handle(struct heif_context* ctx, heif_item_id id, struct heif_image_handle**); // Print information about the boxes of a HEIF file to file descriptor. // This is for debugging and informational purposes only. You should not rely on // the output having a specific format. At best, you should not use this at all. LIBHEIF_API void heif_context_debug_dump_boxes_to_file(struct heif_context* ctx, int fd); LIBHEIF_API void heif_context_set_maximum_image_size_limit(struct heif_context* ctx, int maximum_width); // ========================= heif_image_handle ========================= // An heif_image_handle is a handle to a logical image in the HEIF file. // To get the actual pixel data, you have to decode the handle to an heif_image. // An heif_image_handle also gives you access to the thumbnails and Exif data // associated with an image. // Once you obtained an heif_image_handle, you can already release the heif_context, // since it is internally ref-counted. // Release image handle. LIBHEIF_API void heif_image_handle_release(const struct heif_image_handle*); // Check whether the given image_handle is the primary image of the file. LIBHEIF_API int heif_image_handle_is_primary_image(const struct heif_image_handle* handle); // Get the resolution of an image. LIBHEIF_API int heif_image_handle_get_width(const struct heif_image_handle* handle); LIBHEIF_API int heif_image_handle_get_height(const struct heif_image_handle* handle); LIBHEIF_API int heif_image_handle_has_alpha_channel(const struct heif_image_handle*); LIBHEIF_API int heif_image_handle_is_premultiplied_alpha(const struct heif_image_handle*); // Returns -1 on error, e.g. if this information is not present in the image. LIBHEIF_API int heif_image_handle_get_luma_bits_per_pixel(const struct heif_image_handle*); // Returns -1 on error, e.g. if this information is not present in the image. LIBHEIF_API int heif_image_handle_get_chroma_bits_per_pixel(const struct heif_image_handle*); // Get the image width from the 'ispe' box. This is the original image size without // any transformations applied to it. Do not use this unless you know exactly what // you are doing. LIBHEIF_API int heif_image_handle_get_ispe_width(const struct heif_image_handle* handle); LIBHEIF_API int heif_image_handle_get_ispe_height(const struct heif_image_handle* handle); // ------------------------- depth images ------------------------- LIBHEIF_API int heif_image_handle_has_depth_image(const struct heif_image_handle*); LIBHEIF_API int heif_image_handle_get_number_of_depth_images(const struct heif_image_handle* handle); LIBHEIF_API int heif_image_handle_get_list_of_depth_image_IDs(const struct heif_image_handle* handle, heif_item_id* ids, int count); LIBHEIF_API struct heif_error heif_image_handle_get_depth_image_handle(const struct heif_image_handle* handle, heif_item_id depth_image_id, struct heif_image_handle** out_depth_handle); enum heif_depth_representation_type { heif_depth_representation_type_uniform_inverse_Z = 0, heif_depth_representation_type_uniform_disparity = 1, heif_depth_representation_type_uniform_Z = 2, heif_depth_representation_type_nonuniform_disparity = 3 }; struct heif_depth_representation_info { uint8_t version; // version 1 fields uint8_t has_z_near; uint8_t has_z_far; uint8_t has_d_min; uint8_t has_d_max; double z_near; double z_far; double d_min; double d_max; enum heif_depth_representation_type depth_representation_type; uint32_t disparity_reference_view; uint32_t depth_nonlinear_representation_model_size; uint8_t* depth_nonlinear_representation_model; // version 2 fields below }; LIBHEIF_API void heif_depth_representation_info_free(const struct heif_depth_representation_info* info); // Returns true when there is depth_representation_info available // Note 1: depth_image_id is currently unused because we support only one depth channel per image, but // you should still provide the correct ID for future compatibility. // Note 2: Because of an API bug before v1.11.0, the function also works when 'handle' is the handle of the depth image. // However, you should pass the handle of the main image. Please adapt your code if needed. LIBHEIF_API int heif_image_handle_get_depth_image_representation_info(const struct heif_image_handle* handle, heif_item_id depth_image_id, const struct heif_depth_representation_info** out); // ------------------------- thumbnails ------------------------- // List the number of thumbnails assigned to this image handle. Usually 0 or 1. LIBHEIF_API int heif_image_handle_get_number_of_thumbnails(const struct heif_image_handle* handle); LIBHEIF_API int heif_image_handle_get_list_of_thumbnail_IDs(const struct heif_image_handle* handle, heif_item_id* ids, int count); // Get the image handle of a thumbnail image. LIBHEIF_API struct heif_error heif_image_handle_get_thumbnail(const struct heif_image_handle* main_image_handle, heif_item_id thumbnail_id, struct heif_image_handle** out_thumbnail_handle); // ------------------------- auxiliary images ------------------------- #define LIBHEIF_AUX_IMAGE_FILTER_OMIT_ALPHA (1UL<<1) #define LIBHEIF_AUX_IMAGE_FILTER_OMIT_DEPTH (2UL<<1) // List the number of auxiliary images assigned to this image handle. LIBHEIF_API int heif_image_handle_get_number_of_auxiliary_images(const struct heif_image_handle* handle, int aux_filter); LIBHEIF_API int heif_image_handle_get_list_of_auxiliary_image_IDs(const struct heif_image_handle* handle, int aux_filter, heif_item_id* ids, int count); // You are responsible to deallocate the returned buffer with heif_image_handle_free_auxiliary_types(). LIBHEIF_API struct heif_error heif_image_handle_get_auxiliary_type(const struct heif_image_handle* handle, const char** out_type); LIBHEIF_API void heif_image_handle_free_auxiliary_types(const struct heif_image_handle* handle, const char** out_type); // Get the image handle of an auxiliary image. LIBHEIF_API struct heif_error heif_image_handle_get_auxiliary_image_handle(const struct heif_image_handle* main_image_handle, heif_item_id auxiliary_id, struct heif_image_handle** out_auxiliary_handle); // ------------------------- metadata (Exif / XMP) ------------------------- // How many metadata blocks are attached to an image. Usually, the only metadata is // an "Exif" block. LIBHEIF_API int heif_image_handle_get_number_of_metadata_blocks(const struct heif_image_handle* handle, const char* type_filter); // 'type_filter' can be used to get only metadata of specific types, like "Exif". // If 'type_filter' is NULL, it will return all types of metadata IDs. LIBHEIF_API int heif_image_handle_get_list_of_metadata_block_IDs(const struct heif_image_handle* handle, const char* type_filter, heif_item_id* ids, int count); // Return a string indicating the type of the metadata, as specified in the HEIF file. // Exif data will have the type string "Exif". // This string will be valid until the next call to a libheif function. // You do not have to free this string. LIBHEIF_API const char* heif_image_handle_get_metadata_type(const struct heif_image_handle* handle, heif_item_id metadata_id); LIBHEIF_API const char* heif_image_handle_get_metadata_content_type(const struct heif_image_handle* handle, heif_item_id metadata_id); // Get the size of the raw metadata, as stored in the HEIF file. LIBHEIF_API size_t heif_image_handle_get_metadata_size(const struct heif_image_handle* handle, heif_item_id metadata_id); // 'out_data' must point to a memory area of the size reported by heif_image_handle_get_metadata_size(). // The data is returned exactly as stored in the HEIF file. // For Exif data, you probably have to skip the first four bytes of the data, since they // indicate the offset to the start of the TIFF header of the Exif data. LIBHEIF_API struct heif_error heif_image_handle_get_metadata(const struct heif_image_handle* handle, heif_item_id metadata_id, void* out_data); enum heif_color_profile_type { heif_color_profile_type_not_present = 0, heif_color_profile_type_nclx = heif_fourcc('n', 'c', 'l', 'x'), heif_color_profile_type_rICC = heif_fourcc('r', 'I', 'C', 'C'), heif_color_profile_type_prof = heif_fourcc('p', 'r', 'o', 'f') }; // Returns 'heif_color_profile_type_not_present' if there is no color profile. // If there is an ICC profile and an NCLX profile, the ICC profile is returned. // TODO: we need a new API for this function as images can contain both NCLX and ICC at the same time. // However, you can still use heif_image_handle_get_raw_color_profile() and // heif_image_handle_get_nclx_color_profile() to access both profiles. LIBHEIF_API enum heif_color_profile_type heif_image_handle_get_color_profile_type(const struct heif_image_handle* handle); LIBHEIF_API size_t heif_image_handle_get_raw_color_profile_size(const struct heif_image_handle* handle); // Returns 'heif_error_Color_profile_does_not_exist' when there is no ICC profile. LIBHEIF_API struct heif_error heif_image_handle_get_raw_color_profile(const struct heif_image_handle* handle, void* out_data); enum heif_color_primaries { heif_color_primaries_ITU_R_BT_709_5 = 1, // g=0.3;0.6, b=0.15;0.06, r=0.64;0.33, w=0.3127,0.3290 heif_color_primaries_unspecified = 2, heif_color_primaries_ITU_R_BT_470_6_System_M = 4, heif_color_primaries_ITU_R_BT_470_6_System_B_G = 5, heif_color_primaries_ITU_R_BT_601_6 = 6, heif_color_primaries_SMPTE_240M = 7, heif_color_primaries_generic_film = 8, heif_color_primaries_ITU_R_BT_2020_2_and_2100_0 = 9, heif_color_primaries_SMPTE_ST_428_1 = 10, heif_color_primaries_SMPTE_RP_431_2 = 11, heif_color_primaries_SMPTE_EG_432_1 = 12, heif_color_primaries_EBU_Tech_3213_E = 22 }; enum heif_transfer_characteristics { heif_transfer_characteristic_ITU_R_BT_709_5 = 1, heif_transfer_characteristic_unspecified = 2, heif_transfer_characteristic_ITU_R_BT_470_6_System_M = 4, heif_transfer_characteristic_ITU_R_BT_470_6_System_B_G = 5, heif_transfer_characteristic_ITU_R_BT_601_6 = 6, heif_transfer_characteristic_SMPTE_240M = 7, heif_transfer_characteristic_linear = 8, heif_transfer_characteristic_logarithmic_100 = 9, heif_transfer_characteristic_logarithmic_100_sqrt10 = 10, heif_transfer_characteristic_IEC_61966_2_4 = 11, heif_transfer_characteristic_ITU_R_BT_1361 = 12, heif_transfer_characteristic_IEC_61966_2_1 = 13, heif_transfer_characteristic_ITU_R_BT_2020_2_10bit = 14, heif_transfer_characteristic_ITU_R_BT_2020_2_12bit = 15, heif_transfer_characteristic_ITU_R_BT_2100_0_PQ = 16, heif_transfer_characteristic_SMPTE_ST_428_1 = 17, heif_transfer_characteristic_ITU_R_BT_2100_0_HLG = 18 }; enum heif_matrix_coefficients { heif_matrix_coefficients_RGB_GBR = 0, heif_matrix_coefficients_ITU_R_BT_709_5 = 1, // TODO: or 709-6 according to h.273 heif_matrix_coefficients_unspecified = 2, heif_matrix_coefficients_US_FCC_T47 = 4, heif_matrix_coefficients_ITU_R_BT_470_6_System_B_G = 5, heif_matrix_coefficients_ITU_R_BT_601_6 = 6, // TODO: or 601-7 according to h.273 heif_matrix_coefficients_SMPTE_240M = 7, heif_matrix_coefficients_YCgCo = 8, heif_matrix_coefficients_ITU_R_BT_2020_2_non_constant_luminance = 9, heif_matrix_coefficients_ITU_R_BT_2020_2_constant_luminance = 10, heif_matrix_coefficients_SMPTE_ST_2085 = 11, heif_matrix_coefficients_chromaticity_derived_non_constant_luminance = 12, heif_matrix_coefficients_chromaticity_derived_constant_luminance = 13, heif_matrix_coefficients_ICtCp = 14 }; struct heif_color_profile_nclx { // === version 1 fields uint8_t version; enum heif_color_primaries color_primaries; enum heif_transfer_characteristics transfer_characteristics; enum heif_matrix_coefficients matrix_coefficients; uint8_t full_range_flag; // --- decoded values (not used when saving nclx) float color_primary_red_x, color_primary_red_y; float color_primary_green_x, color_primary_green_y; float color_primary_blue_x, color_primary_blue_y; float color_primary_white_x, color_primary_white_y; }; // Returns 'heif_error_Color_profile_does_not_exist' when there is no NCLX profile. // TODO: This function does currently not return an NCLX profile if it is stored in the image bitstream. // Only NCLX profiles stored as colr boxes are returned. This may change in the future. LIBHEIF_API struct heif_error heif_image_handle_get_nclx_color_profile(const struct heif_image_handle* handle, struct heif_color_profile_nclx** out_data); // Returned color profile has 'version' field set to the maximum allowed. // Do not fill values for higher versions as these might be outside the allocated structure size. // May return NULL. LIBHEIF_API struct heif_color_profile_nclx* heif_nclx_color_profile_alloc(); LIBHEIF_API void heif_nclx_color_profile_free(struct heif_color_profile_nclx* nclx_profile); LIBHEIF_API enum heif_color_profile_type heif_image_get_color_profile_type(const struct heif_image* image); LIBHEIF_API size_t heif_image_get_raw_color_profile_size(const struct heif_image* image); LIBHEIF_API struct heif_error heif_image_get_raw_color_profile(const struct heif_image* image, void* out_data); LIBHEIF_API struct heif_error heif_image_get_nclx_color_profile(const struct heif_image* image, struct heif_color_profile_nclx** out_data); // ========================= heif_image ========================= // An heif_image contains a decoded pixel image in various colorspaces, chroma formats, // and bit depths. // Note: when converting images to an interleaved chroma format, the resulting // image contains only a single channel of type channel_interleaved with, e.g., 3 bytes per pixel, // containing the interleaved R,G,B values. // Planar RGB images are specified as heif_colorspace_RGB / heif_chroma_444. enum heif_compression_format { heif_compression_undefined = 0, heif_compression_HEVC = 1, heif_compression_AVC = 2, heif_compression_JPEG = 3, heif_compression_AV1 = 4 }; enum heif_chroma { heif_chroma_undefined = 99, heif_chroma_monochrome = 0, heif_chroma_420 = 1, heif_chroma_422 = 2, heif_chroma_444 = 3, heif_chroma_interleaved_RGB = 10, heif_chroma_interleaved_RGBA = 11, heif_chroma_interleaved_RRGGBB_BE = 12, heif_chroma_interleaved_RRGGBBAA_BE = 13, heif_chroma_interleaved_RRGGBB_LE = 14, heif_chroma_interleaved_RRGGBBAA_LE = 15 }; // DEPRECATED ENUM NAMES #define heif_chroma_interleaved_24bit heif_chroma_interleaved_RGB #define heif_chroma_interleaved_32bit heif_chroma_interleaved_RGBA enum heif_colorspace { heif_colorspace_undefined = 99, heif_colorspace_YCbCr = 0, heif_colorspace_RGB = 1, heif_colorspace_monochrome = 2 }; enum heif_channel { heif_channel_Y = 0, heif_channel_Cb = 1, heif_channel_Cr = 2, heif_channel_R = 3, heif_channel_G = 4, heif_channel_B = 5, heif_channel_Alpha = 6, heif_channel_interleaved = 10 }; enum heif_progress_step { heif_progress_step_total = 0, heif_progress_step_load_tile = 1 }; struct heif_decoding_options { uint8_t version; // version 1 options // Ignore geometric transformations like cropping, rotation, mirroring. // Default: false (do not ignore). uint8_t ignore_transformations; void (* start_progress)(enum heif_progress_step step, int max_progress, void* progress_user_data); void (* on_progress)(enum heif_progress_step step, int progress, void* progress_user_data); void (* end_progress)(enum heif_progress_step step, void* progress_user_data); void* progress_user_data; // version 2 options uint8_t convert_hdr_to_8bit; }; // Allocate decoding options and fill with default values. // Note: you should always get the decoding options through this function since the // option structure may grow in size in future versions. LIBHEIF_API struct heif_decoding_options* heif_decoding_options_alloc(); LIBHEIF_API void heif_decoding_options_free(struct heif_decoding_options*); // Decode an heif_image_handle into the actual pixel image and also carry out // all geometric transformations specified in the HEIF file (rotation, cropping, mirroring). // // If colorspace or chroma is set to heif_colorspace_undefined or heif_chroma_undefined, // respectively, the original colorspace is taken. // Decoding options may be NULL. If you want to supply options, always use // heif_decoding_options_alloc() to get the structure. LIBHEIF_API struct heif_error heif_decode_image(const struct heif_image_handle* in_handle, struct heif_image** out_img, enum heif_colorspace colorspace, enum heif_chroma chroma, const struct heif_decoding_options* options); // Get the colorspace format of the image. LIBHEIF_API enum heif_colorspace heif_image_get_colorspace(const struct heif_image*); // Get the chroma format of the image. LIBHEIF_API enum heif_chroma heif_image_get_chroma_format(const struct heif_image*); // Get width of the given image channel in pixels. Returns -1 if a non-existing // channel was given. LIBHEIF_API int heif_image_get_width(const struct heif_image*, enum heif_channel channel); // Get height of the given image channel in pixels. Returns -1 if a non-existing // channel was given. LIBHEIF_API int heif_image_get_height(const struct heif_image*, enum heif_channel channel); // Get the width of the main channel (Y in YCbCr, or any in RGB). LIBHEIF_API int heif_image_get_primary_width(const struct heif_image*); LIBHEIF_API int heif_image_get_primary_height(const struct heif_image*); LIBHEIF_API struct heif_error heif_image_crop(struct heif_image* img, int left, int right, int top, int bottom); // Get the number of bits per pixel in the given image channel. Returns -1 if // a non-existing channel was given. // Note that the number of bits per pixel may be different for each color channel. // This function returns the number of bits used for storage of each pixel. // Especially for HDR images, this is probably not what you want. Have a look at // heif_image_get_bits_per_pixel_range() instead. LIBHEIF_API int heif_image_get_bits_per_pixel(const struct heif_image*, enum heif_channel channel); // Get the number of bits per pixel in the given image channel. This function returns // the number of bits used for representing the pixel value, which might be smaller // than the number of bits used in memory. // For example, in 12bit HDR images, this function returns '12', while still 16 bits // are reserved for storage. For interleaved RGBA with 12 bit, this function also returns // '12', not '48' or '64' (heif_image_get_bits_per_pixel returns 64 in this case). LIBHEIF_API int heif_image_get_bits_per_pixel_range(const struct heif_image*, enum heif_channel channel); LIBHEIF_API int heif_image_has_channel(const struct heif_image*, enum heif_channel channel); // Get a pointer to the actual pixel data. // The 'out_stride' is returned as "bytes per line". // When out_stride is NULL, no value will be written. // Returns NULL if a non-existing channel was given. LIBHEIF_API const uint8_t* heif_image_get_plane_readonly(const struct heif_image*, enum heif_channel channel, int* out_stride); LIBHEIF_API uint8_t* heif_image_get_plane(struct heif_image*, enum heif_channel channel, int* out_stride); struct heif_scaling_options; // Currently, heif_scaling_options is not defined yet. Pass a NULL pointer. LIBHEIF_API struct heif_error heif_image_scale_image(const struct heif_image* input, struct heif_image** output, int width, int height, const struct heif_scaling_options* options); // The color profile is not attached to the image handle because we might need it // for color space transform and encoding. LIBHEIF_API struct heif_error heif_image_set_raw_color_profile(struct heif_image* image, const char* profile_type_fourcc_string, const void* profile_data, const size_t profile_size); LIBHEIF_API struct heif_error heif_image_set_nclx_color_profile(struct heif_image* image, const struct heif_color_profile_nclx* color_profile); // TODO: this function does not make any sense yet, since we currently cannot modify existing HEIF files. //LIBHEIF_API //void heif_image_remove_color_profile(struct heif_image* image); // Release heif_image. LIBHEIF_API void heif_image_release(const struct heif_image*); // ==================================================================================================== // Encoding API LIBHEIF_API struct heif_error heif_context_write_to_file(struct heif_context*, const char* filename); struct heif_writer { // API version supported by this writer int writer_api_version; // --- version 1 functions --- struct heif_error (* write)(struct heif_context* ctx, // TODO: why do we need this parameter? const void* data, size_t size, void* userdata); }; LIBHEIF_API struct heif_error heif_context_write(struct heif_context*, struct heif_writer* writer, void* userdata); // ----- encoder ----- // The encoder used for actually encoding an image. struct heif_encoder; // A description of the encoder's capabilities and name. struct heif_encoder_descriptor; // A configuration parameter of the encoder. Each encoder implementation may have a different // set of parameters. For the most common settings (e.q. quality), special functions to set // the parameters are provided. struct heif_encoder_parameter; // Get a list of available encoders. You can filter the encoders by compression format and name. // Use format_filter==heif_compression_undefined and name_filter==NULL as wildcards. // The returned list of encoders is sorted by their priority (which is a plugin property). // Note: to get the actual encoder from the descriptors returned here, use heif_context_get_encoder(). LIBHEIF_API int heif_context_get_encoder_descriptors(struct heif_context*, // TODO: why do we need this parameter? enum heif_compression_format format_filter, const char* name_filter, const struct heif_encoder_descriptor** out_encoders, int count); // Return a long, descriptive name of the encoder (including version information). LIBHEIF_API const char* heif_encoder_descriptor_get_name(const struct heif_encoder_descriptor*); // Return a short, symbolic name for identifying the encoder. // This name should stay constant over different encoder versions. LIBHEIF_API const char* heif_encoder_descriptor_get_id_name(const struct heif_encoder_descriptor*); LIBHEIF_API enum heif_compression_format heif_encoder_descriptor_get_compression_format(const struct heif_encoder_descriptor*); LIBHEIF_API int heif_encoder_descriptor_supports_lossy_compression(const struct heif_encoder_descriptor*); LIBHEIF_API int heif_encoder_descriptor_supports_lossless_compression(const struct heif_encoder_descriptor*); // Get an encoder instance that can be used to actually encode images from a descriptor. LIBHEIF_API struct heif_error heif_context_get_encoder(struct heif_context* context, const struct heif_encoder_descriptor*, struct heif_encoder** out_encoder); // Quick check whether there is a decoder available for the given format. // Note that the decoder still may not be able to decode all variants of that format. // You will have to query that further (todo) or just try to decode and check the returned error. LIBHEIF_API int heif_have_decoder_for_format(enum heif_compression_format format); // Quick check whether there is an enoder available for the given format. // Note that the encoder may be limited to a certain subset of features (e.g. only 8 bit, only lossy). // You will have to query the specific capabilities further. LIBHEIF_API int heif_have_encoder_for_format(enum heif_compression_format format); // Get an encoder for the given compression format. If there are several encoder plugins // for this format, the encoder with the highest plugin priority will be returned. LIBHEIF_API struct heif_error heif_context_get_encoder_for_format(struct heif_context* context, enum heif_compression_format format, struct heif_encoder**); // You have to release the encoder after use. LIBHEIF_API void heif_encoder_release(struct heif_encoder*); // Get the encoder name from the encoder itself. LIBHEIF_API const char* heif_encoder_get_name(const struct heif_encoder*); // --- Encoder Parameters --- // Libheif supports settings parameters through specialized functions and through // generic functions by parameter name. Sometimes, the same parameter can be set // in both ways. // We consider it best practice to use the generic parameter functions only in // dynamically generated user interfaces, as no guarantees are made that some specific // parameter names are supported by all plugins. // Set a 'quality' factor (0-100). How this is mapped to actual encoding parameters is // encoder dependent. LIBHEIF_API struct heif_error heif_encoder_set_lossy_quality(struct heif_encoder*, int quality); LIBHEIF_API struct heif_error heif_encoder_set_lossless(struct heif_encoder*, int enable); // level should be between 0 (= none) to 4 (= full) LIBHEIF_API struct heif_error heif_encoder_set_logging_level(struct heif_encoder*, int level); // Get a generic list of encoder parameters. // Each encoder may define its own, additional set of parameters. // You do not have to free the returned list. LIBHEIF_API const struct heif_encoder_parameter* const* heif_encoder_list_parameters(struct heif_encoder*); // Return the parameter name. LIBHEIF_API const char* heif_encoder_parameter_get_name(const struct heif_encoder_parameter*); enum heif_encoder_parameter_type { heif_encoder_parameter_type_integer = 1, heif_encoder_parameter_type_boolean = 2, heif_encoder_parameter_type_string = 3 }; // Return the parameter type. LIBHEIF_API enum heif_encoder_parameter_type heif_encoder_parameter_get_type(const struct heif_encoder_parameter*); // DEPRECATED. Use heif_encoder_parameter_get_valid_integer_values() instead. LIBHEIF_API struct heif_error heif_encoder_parameter_get_valid_integer_range(const struct heif_encoder_parameter*, int* have_minimum_maximum, int* minimum, int* maximum); // If integer is limited by a range, have_minimum and/or have_maximum will be != 0 and *minimum, *maximum is set. // If integer is limited by a fixed set of values, *num_valid_values will be >0 and *out_integer_array is set. LIBHEIF_API struct heif_error heif_encoder_parameter_get_valid_integer_values(const struct heif_encoder_parameter*, int* have_minimum, int* have_maximum, int* minimum, int* maximum, int* num_valid_values, const int** out_integer_array); LIBHEIF_API struct heif_error heif_encoder_parameter_get_valid_string_values(const struct heif_encoder_parameter*, const char* const** out_stringarray); LIBHEIF_API struct heif_error heif_encoder_set_parameter_integer(struct heif_encoder*, const char* parameter_name, int value); LIBHEIF_API struct heif_error heif_encoder_get_parameter_integer(struct heif_encoder*, const char* parameter_name, int* value); // TODO: name should be changed to heif_encoder_get_valid_integer_parameter_range LIBHEIF_API // DEPRECATED. struct heif_error heif_encoder_parameter_integer_valid_range(struct heif_encoder*, const char* parameter_name, int* have_minimum_maximum, int* minimum, int* maximum); LIBHEIF_API struct heif_error heif_encoder_set_parameter_boolean(struct heif_encoder*, const char* parameter_name, int value); LIBHEIF_API struct heif_error heif_encoder_get_parameter_boolean(struct heif_encoder*, const char* parameter_name, int* value); LIBHEIF_API struct heif_error heif_encoder_set_parameter_string(struct heif_encoder*, const char* parameter_name, const char* value); LIBHEIF_API struct heif_error heif_encoder_get_parameter_string(struct heif_encoder*, const char* parameter_name, char* value, int value_size); // returns a NULL-terminated list of valid strings or NULL if all values are allowed LIBHEIF_API struct heif_error heif_encoder_parameter_string_valid_values(struct heif_encoder*, const char* parameter_name, const char* const** out_stringarray); LIBHEIF_API struct heif_error heif_encoder_parameter_integer_valid_values(struct heif_encoder*, const char* parameter_name, int* have_minimum, int* have_maximum, int* minimum, int* maximum, int* num_valid_values, const int** out_integer_array); // Set a parameter of any type to the string value. // Integer values are parsed from the string. // Boolean values can be "true"/"false"/"1"/"0" // // x265 encoder specific note: // When using the x265 encoder, you may pass any of its parameters by // prefixing the parameter name with 'x265:'. Hence, to set the 'ctu' parameter, // you will have to set 'x265:ctu' in libheif. // Note that there is no checking for valid parameters when using the prefix. LIBHEIF_API struct heif_error heif_encoder_set_parameter(struct heif_encoder*, const char* parameter_name, const char* value); // Get the current value of a parameter of any type as a human readable string. // The returned string is compatible with heif_encoder_set_parameter(). LIBHEIF_API struct heif_error heif_encoder_get_parameter(struct heif_encoder*, const char* parameter_name, char* value_ptr, int value_size); // Query whether a specific parameter has a default value. LIBHEIF_API int heif_encoder_has_default(struct heif_encoder*, const char* parameter_name); struct heif_encoding_options { uint8_t version; // version 1 options uint8_t save_alpha_channel; // default: true // version 2 options // Crops heif images with a grid wrapper instead of a 'clap' transform. // Results in slightly larger file size. // Default: on. uint8_t macOS_compatibility_workaround; // version 3 options uint8_t save_two_colr_boxes_when_ICC_and_nclx_available; // default: false // version 4 options // Set this to the NCLX parameters to be used in the output image or set to NULL // when the same parameters as in the input image should be used. struct heif_color_profile_nclx* output_nclx_profile; uint8_t macOS_compatibility_workaround_no_nclx_profile; }; LIBHEIF_API struct heif_encoding_options* heif_encoding_options_alloc(); LIBHEIF_API void heif_encoding_options_free(struct heif_encoding_options*); // Compress the input image. // Returns a handle to the coded image in 'out_image_handle' unless out_image_handle = NULL. // 'options' should be NULL for now. // The first image added to the context is also automatically set the primary image, but // you can change the primary image later with heif_context_set_primary_image(). LIBHEIF_API struct heif_error heif_context_encode_image(struct heif_context*, const struct heif_image* image, struct heif_encoder* encoder, const struct heif_encoding_options* options, struct heif_image_handle** out_image_handle); LIBHEIF_API struct heif_error heif_context_set_primary_image(struct heif_context*, struct heif_image_handle* image_handle); // Encode the 'image' as a scaled down thumbnail image. // The image is scaled down to fit into a square area of width 'bbox_size'. // If the input image is already so small that it fits into this bounding box, no thumbnail // image is encoded and NULL is returned in 'out_thumb_image_handle'. // No error is returned in this case. // The encoded thumbnail is automatically assigned to the 'master_image_handle'. Hence, you // do not have to call heif_context_assign_thumbnail(). LIBHEIF_API struct heif_error heif_context_encode_thumbnail(struct heif_context*, const struct heif_image* image, const struct heif_image_handle* master_image_handle, struct heif_encoder* encoder, const struct heif_encoding_options* options, int bbox_size, struct heif_image_handle** out_thumb_image_handle); // Assign 'thumbnail_image' as the thumbnail image of 'master_image'. LIBHEIF_API struct heif_error heif_context_assign_thumbnail(struct heif_context*, const struct heif_image_handle* master_image, const struct heif_image_handle* thumbnail_image); // Add EXIF metadata to an image. LIBHEIF_API struct heif_error heif_context_add_exif_metadata(struct heif_context*, const struct heif_image_handle* image_handle, const void* data, int size); // Add XMP metadata to an image. LIBHEIF_API struct heif_error heif_context_add_XMP_metadata(struct heif_context*, const struct heif_image_handle* image_handle, const void* data, int size); // Add generic, proprietary metadata to an image. You have to specify an 'item_type' that will // identify your metadata. 'content_type' can be an additional type, or it can be NULL. // For example, this function can be used to add IPTC metadata (IIM stream, not XMP) to an image. // Even not standard, we propose to store IPTC data with item type="iptc", content_type=NULL. LIBHEIF_API struct heif_error heif_context_add_generic_metadata(struct heif_context* ctx, const struct heif_image_handle* image_handle, const void* data, int size, const char* item_type, const char* content_type); // --- heif_image allocation // Create a new image of the specified resolution and colorspace. // Note: no memory for the actual image data is reserved yet. You have to use // heif_image_add_plane() to add the image planes required by your colorspace/chroma. LIBHEIF_API struct heif_error heif_image_create(int width, int height, enum heif_colorspace colorspace, enum heif_chroma chroma, struct heif_image** out_image); // The indicated bit_depth corresponds to the bit depth per channel. // I.e. for interleaved formats like RRGGBB, the bit_depth would be, e.g., 10 bit instead // of 30 bits or 3*16=48 bits. // For backward compatibility, one can also specify 24bits for RGB and 32bits for RGBA, // instead of the preferred 8 bits. LIBHEIF_API struct heif_error heif_image_add_plane(struct heif_image* image, enum heif_channel channel, int width, int height, int bit_depth); // Signal that the image is premultiplied by the alpha pixel values. LIBHEIF_API void heif_image_set_premultiplied_alpha(struct heif_image* image, int is_premultiplied_alpha); LIBHEIF_API int heif_image_is_premultiplied_alpha(struct heif_image* image); // --- register plugins struct heif_decoder_plugin; struct heif_encoder_plugin; // DEPRECATED. Use heif_register_decoder_plugin(const struct heif_decoder_plugin*) instead. LIBHEIF_API struct heif_error heif_register_decoder(struct heif_context* heif, const struct heif_decoder_plugin*); LIBHEIF_API struct heif_error heif_register_decoder_plugin(const struct heif_decoder_plugin*); LIBHEIF_API struct heif_error heif_register_encoder_plugin(const struct heif_encoder_plugin*); // DEPRECATED, typo in function name LIBHEIF_API int heif_encoder_descriptor_supportes_lossy_compression(const struct heif_encoder_descriptor*); // DEPRECATED, typo in function name LIBHEIF_API int heif_encoder_descriptor_supportes_lossless_compression(const struct heif_encoder_descriptor*); #ifdef __cplusplus } #endif #endif libheif-1.12.0/libheif/logging.h0000644000175000017500000000276314003350415013322 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_LOGGING_H #define LIBHEIF_LOGGING_H #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include #include #include namespace heif { class Indent { public: Indent() : m_indent(0) {} int get_indent() const { return m_indent; } void operator++(int) { m_indent++; } void operator--(int) { m_indent--; if (m_indent < 0) m_indent = 0; } private: int m_indent; }; inline std::ostream& operator<<(std::ostream& ostr, const Indent& indent) { for (int i = 0; i < indent.get_indent(); i++) { ostr << "| "; } return ostr; } } #endif libheif-1.12.0/libheif/heif.cc0000664000175000017500000020400614043747772012765 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include "heif.h" #include "heif_file.h" #include "heif_image.h" #include "heif_api_structs.h" #include "heif_context.h" #include "heif_plugin_registry.h" #include "error.h" #include "bitstream.h" #if defined(__EMSCRIPTEN__) #include "heif_emscripten.h" #endif #include #include #include #include #include #include #include #include #if (defined(__MINGW32__) || defined(__MINGW64__) || defined(_MSC_VER)) && !defined(HAVE_UNISTD_H) // for _write #include #else #include #endif using namespace heif; static struct heif_error error_Ok = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; static struct heif_error error_unsupported_parameter = {heif_error_Usage_error, heif_suberror_Unsupported_parameter, "Unsupported encoder parameter"}; static struct heif_error error_invalid_parameter_value = {heif_error_Usage_error, heif_suberror_Invalid_parameter_value, "Invalid parameter value"}; static struct heif_error error_unsupported_plugin_version = {heif_error_Usage_error, heif_suberror_Unsupported_plugin_version, "Unsupported plugin version"}; static struct heif_error error_null_parameter = {heif_error_Usage_error, heif_suberror_Null_pointer_argument, "NULL passed"}; const char* heif_get_version(void) { return (LIBHEIF_VERSION); } uint32_t heif_get_version_number(void) { return (LIBHEIF_NUMERIC_VERSION); } int heif_get_version_number_major(void) { return ((LIBHEIF_NUMERIC_VERSION) >> 24) & 0xFF; } int heif_get_version_number_minor(void) { return ((LIBHEIF_NUMERIC_VERSION) >> 16) & 0xFF; } int heif_get_version_number_maintenance(void) { return ((LIBHEIF_NUMERIC_VERSION) >> 8) & 0xFF; } heif_filetype_result heif_check_filetype(const uint8_t* data, int len) { if (len < 8) { return heif_filetype_maybe; } if (data[4] != 'f' || data[5] != 't' || data[6] != 'y' || data[7] != 'p') { return heif_filetype_no; } if (len >= 12) { heif_brand brand = heif_main_brand(data, len); if (brand == heif_heic) { return heif_filetype_yes_supported; } else if (brand == heif_heix) { return heif_filetype_yes_supported; } else if (brand == heif_avif) { return heif_filetype_yes_supported; } else if (brand == heif_unknown_brand) { return heif_filetype_no; } else if (brand == heif_mif1) { return heif_filetype_maybe; } else { return heif_filetype_yes_unsupported; } } return heif_filetype_maybe; } heif_brand heif_fourcc_to_brand_enum(const char* fourcc) { if (fourcc==nullptr || !fourcc[0] || !fourcc[1] || !fourcc[2] || !fourcc[3]) { return heif_unknown_brand; } char brand[5]; brand[0] = fourcc[0]; brand[1] = fourcc[1]; brand[2] = fourcc[2]; brand[3] = fourcc[3]; brand[4] = 0; if (strcmp(brand, "heic") == 0) { return heif_heic; } else if (strcmp(brand, "heix") == 0) { return heif_heix; } else if (strcmp(brand, "hevc") == 0) { return heif_hevc; } else if (strcmp(brand, "hevx") == 0) { return heif_hevx; } else if (strcmp(brand, "heim") == 0) { return heif_heim; } else if (strcmp(brand, "heis") == 0) { return heif_heis; } else if (strcmp(brand, "hevm") == 0) { return heif_hevm; } else if (strcmp(brand, "hevs") == 0) { return heif_hevs; } else if (strcmp(brand, "mif1") == 0) { return heif_mif1; } else if (strcmp(brand, "msf1") == 0) { return heif_msf1; } else if (strcmp(brand, "avif") == 0) { return heif_avif; } else if (strcmp(brand, "avis") == 0) { return heif_avis; } else { return heif_unknown_brand; } } enum heif_brand heif_main_brand(const uint8_t* data, int len) { if (len < 12) { return heif_unknown_brand; } return heif_fourcc_to_brand_enum((char*)(data+8)); } heif_brand2 heif_read_main_brand(const uint8_t* data, int len) { if (len < 12) { return heif_unknown_brand; } return heif_fourcc_to_brand((char*)(data+8)); } #define fourcc_to_uint32(id) (((uint32_t)(id[0])<<24) | (id[1]<<16) | (id[2]<<8) | (id[3])) heif_brand2 heif_fourcc_to_brand(const char* fourcc) { if (fourcc==nullptr || !fourcc[0] || !fourcc[1] || !fourcc[2] || !fourcc[3]) { return 0; } return fourcc_to_uint32(fourcc); } void heif_brand_to_fourcc(heif_brand2 brand, char* out_fourcc) { if (out_fourcc) { out_fourcc[0] = (char)((brand >> 24) & 0xFF); out_fourcc[1] = (char)((brand >> 16) & 0xFF); out_fourcc[2] = (char)((brand >> 8) & 0xFF); out_fourcc[3] = (char)((brand >> 0) & 0xFF); } } int heif_has_compatible_brand(const uint8_t* data, int len, const char* brand_fourcc) { if (data == nullptr || len<=0 || brand_fourcc == nullptr || !brand_fourcc[0] || !brand_fourcc[1] || !brand_fourcc[2] || !brand_fourcc[3]) { return -1; } auto stream = std::make_shared(data, len, false); BitstreamRange range(stream, len); std::shared_ptr box; Error err = Box::read(range, &box); if (err) { if (err.sub_error_code == heif_suberror_End_of_data) { return -1; } return -2; } auto ftyp = std::dynamic_pointer_cast(box); if (!ftyp) { return -2; } return ftyp->has_compatible_brand(fourcc_to_uint32(brand_fourcc)) ? 1 : 0; } struct heif_error heif_list_compatible_brands(const uint8_t* data, int len, heif_brand2** out_brands, int* out_size) { if (data == nullptr || out_brands==nullptr || out_size==nullptr) { return {heif_error_Usage_error, heif_suberror_Null_pointer_argument, "NULL argument"}; } if (len<=0) { return {heif_error_Usage_error, heif_suberror_Invalid_parameter_value, "data length must be positive"}; } auto stream = std::make_shared(data, len, false); BitstreamRange range(stream, len); std::shared_ptr box; Error err = Box::read(range, &box); if (err) { if (err.sub_error_code == heif_suberror_End_of_data) { return {err.error_code, err.sub_error_code, "insufficient input data"}; } return {err.error_code, err.sub_error_code, "error reading ftyp box"}; } auto ftyp = std::dynamic_pointer_cast(box); if (!ftyp) { return {heif_error_Invalid_input, heif_suberror_No_ftyp_box, "input is no ftyp box"}; } auto brands = ftyp->list_brands(); *out_brands = (heif_brand2*)malloc(sizeof(heif_brand2) * brands.size()); *out_size = (int)brands.size(); for (int i=0;i<(int)brands.size();i++) { (*out_brands)[i] = brands[i]; } return {heif_error_Ok, heif_suberror_Unspecified, Error::kSuccess}; } void heif_free_list_of_compatible_brands(heif_brand2* brands_list) { if (brands_list) { free(brands_list); } } enum class TriBool { No, Yes, Unknown }; TriBool is_jpeg(const uint8_t* data, int len) { if (len < 12) { return TriBool::Unknown; } if (data[0] == 0xFF && data[1] == 0xD8 && data[2] == 0xFF && data[3] == 0xE0 && data[4] == 0x00 && data[5] == 0x10 && data[6] == 0x4A && data[7] == 0x46 && data[8] == 0x49 && data[9] == 0x46 && data[10] == 0x00 && data[11] == 0x01) { return TriBool::Yes; } if (data[0] == 0xFF && data[1] == 0xD8 && data[2] == 0xFF && data[3] == 0xE1 && data[6] == 0x45 && data[7] == 0x78 && data[8] == 0x69 && data[9] == 0x66 && data[10] == 0x00 && data[11] == 0x00) { return TriBool::Yes; } else { return TriBool::No; } } TriBool is_png(const uint8_t* data, int len) { if (len < 8) { return TriBool::Unknown; } if (data[0] == 0x89 && data[1] == 0x50 && data[2] == 0x4E && data[3] == 0x47 && data[4] == 0x0D && data[5] == 0x0A && data[6] == 0x1A && data[7] == 0x0A) { return TriBool::Yes; } else { return TriBool::No; } } const char* heif_get_file_mime_type(const uint8_t* data, int len) { heif_brand mainBrand = heif_main_brand(data, len); if (mainBrand == heif_heic || mainBrand == heif_heix || mainBrand == heif_heim || mainBrand == heif_heis) { return "image/heic"; } else if (mainBrand == heif_mif1) { return "image/heif"; } else if (mainBrand == heif_hevc || mainBrand == heif_hevx || mainBrand == heif_hevm || mainBrand == heif_hevs) { return "image/heic-sequence"; } else if (mainBrand == heif_msf1) { return "image/heif-sequence"; } else if (mainBrand == heif_avif) { return "image/avif"; } else if (mainBrand == heif_avis) { return "image/avif-sequence"; } else if (is_jpeg(data, len) == TriBool::Yes) { return "image/jpeg"; } else if (is_png(data, len) == TriBool::Yes) { return "image/png"; } else { return ""; } } heif_context* heif_context_alloc() { struct heif_context* ctx = new heif_context; ctx->context = std::make_shared(); return ctx; } void heif_context_free(heif_context* ctx) { delete ctx; } heif_error heif_context_read_from_file(heif_context* ctx, const char* filename, const struct heif_reading_options*) { Error err = ctx->context->read_from_file(filename); return err.error_struct(ctx->context.get()); } heif_error heif_context_read_from_memory(heif_context* ctx, const void* mem, size_t size, const struct heif_reading_options*) { Error err = ctx->context->read_from_memory(mem, size, true); return err.error_struct(ctx->context.get()); } heif_error heif_context_read_from_memory_without_copy(heif_context* ctx, const void* mem, size_t size, const struct heif_reading_options*) { Error err = ctx->context->read_from_memory(mem, size, false); return err.error_struct(ctx->context.get()); } heif_error heif_context_read_from_reader(struct heif_context* ctx, const struct heif_reader* reader_func_table, void* userdata, const struct heif_reading_options*) { auto reader = std::make_shared(reader_func_table, userdata); Error err = ctx->context->read(reader); return err.error_struct(ctx->context.get()); } // TODO: heif_error heif_context_read_from_file_descriptor(heif_context*, int fd); void heif_context_debug_dump_boxes_to_file(struct heif_context* ctx, int fd) { if (!ctx) { return; } std::string dump = ctx->context->debug_dump_boxes(); // TODO(fancycode): Should we return an error if writing fails? #if (defined(__MINGW32__) || defined(__MINGW64__) || defined(_MSC_VER)) && !defined(HAVE_UNISTD_H) auto written = _write(fd, dump.c_str(), dump.size()); #else auto written = write(fd, dump.c_str(), dump.size()); #endif (void) written; } heif_error heif_context_get_primary_image_handle(heif_context* ctx, heif_image_handle** img) { if (!img) { Error err(heif_error_Usage_error, heif_suberror_Null_pointer_argument); return err.error_struct(ctx->context.get()); } std::shared_ptr primary_image = ctx->context->get_primary_image(); // It is a requirement of an HEIF file there is always a primary image. // If there is none, an error is generated when loading the file. if (!primary_image) { Error err(heif_error_Invalid_input, heif_suberror_No_or_invalid_primary_item); return err.error_struct(ctx->context.get()); } *img = new heif_image_handle(); (*img)->image = std::move(primary_image); (*img)->context = ctx->context; return Error::Ok.error_struct(ctx->context.get()); } struct heif_error heif_context_get_primary_image_ID(struct heif_context* ctx, heif_item_id* id) { if (!id) { return Error(heif_error_Usage_error, heif_suberror_Null_pointer_argument).error_struct(ctx->context.get()); } std::shared_ptr primary = ctx->context->get_primary_image(); if (!primary) { return Error(heif_error_Invalid_input, heif_suberror_No_or_invalid_primary_item).error_struct(ctx->context.get()); } *id = primary->get_id(); return Error::Ok.error_struct(ctx->context.get()); } int heif_context_is_top_level_image_ID(struct heif_context* ctx, heif_item_id id) { const std::vector> images = ctx->context->get_top_level_images(); for (const auto& img : images) { if (img->get_id() == id) { return true; } } return false; } int heif_context_get_number_of_top_level_images(heif_context* ctx) { return (int) ctx->context->get_top_level_images().size(); } int heif_context_get_list_of_top_level_image_IDs(struct heif_context* ctx, heif_item_id* ID_array, int count) { if (ID_array == nullptr || count == 0 || ctx == nullptr) { return 0; } // fill in ID values into output array const std::vector> imgs = ctx->context->get_top_level_images(); int n = (int) std::min(count, (int) imgs.size()); for (int i = 0; i < n; i++) { ID_array[i] = imgs[i]->get_id(); } return n; } struct heif_error heif_context_get_image_handle(struct heif_context* ctx, heif_item_id id, struct heif_image_handle** imgHdl) { if (!imgHdl) { Error err(heif_error_Usage_error, heif_suberror_Null_pointer_argument); return err.error_struct(ctx->context.get()); } const std::vector> images = ctx->context->get_top_level_images(); std::shared_ptr image; for (auto& img : images) { if (img->get_id() == id) { image = img; break; } } if (!image) { Error err(heif_error_Usage_error, heif_suberror_Nonexisting_item_referenced); return err.error_struct(ctx->context.get()); } *imgHdl = new heif_image_handle(); (*imgHdl)->image = image; (*imgHdl)->context = ctx->context; return Error::Ok.error_struct(ctx->context.get()); } int heif_image_handle_is_primary_image(const struct heif_image_handle* handle) { return handle->image->is_primary(); } int heif_image_handle_get_number_of_thumbnails(const struct heif_image_handle* handle) { return (int) handle->image->get_thumbnails().size(); } int heif_image_handle_get_list_of_thumbnail_IDs(const struct heif_image_handle* handle, heif_item_id* ids, int count) { if (ids == nullptr) { return 0; } auto thumbnails = handle->image->get_thumbnails(); int n = (int) std::min(count, (int) thumbnails.size()); for (int i = 0; i < n; i++) { ids[i] = thumbnails[i]->get_id(); } return n; } heif_error heif_image_handle_get_thumbnail(const struct heif_image_handle* handle, heif_item_id thumbnail_id, struct heif_image_handle** out_thumbnail_handle) { if (!out_thumbnail_handle) { return Error(heif_error_Usage_error, heif_suberror_Null_pointer_argument).error_struct(handle->image.get()); } auto thumbnails = handle->image->get_thumbnails(); for (auto thumb : thumbnails) { if (thumb->get_id() == thumbnail_id) { *out_thumbnail_handle = new heif_image_handle(); (*out_thumbnail_handle)->image = thumb; (*out_thumbnail_handle)->context = handle->context; return Error::Ok.error_struct(handle->image.get()); } } Error err(heif_error_Usage_error, heif_suberror_Nonexisting_item_referenced); return err.error_struct(handle->image.get()); } int heif_image_handle_get_number_of_auxiliary_images(const struct heif_image_handle* handle, int include_alpha_image) { return (int) handle->image->get_aux_images(include_alpha_image).size(); } int heif_image_handle_get_list_of_auxiliary_image_IDs(const struct heif_image_handle* handle, int include_alpha_image, heif_item_id* ids, int count) { if (ids == nullptr) { return 0; } auto auxImages = handle->image->get_aux_images(include_alpha_image); int n = (int) std::min(count, (int) auxImages.size()); for (int i = 0; i < n; i++) { ids[i] = auxImages[i]->get_id(); } return n; } struct heif_error heif_image_handle_get_auxiliary_type(const struct heif_image_handle* handle, const char** out_type) { if (out_type == nullptr) { return Error(heif_error_Usage_error, heif_suberror_Null_pointer_argument).error_struct(handle->image.get()); } auto auxType = handle->image->get_aux_type(); char* buf = (char*)malloc(auxType.length()+1); if (buf == nullptr) { return Error(heif_error_Memory_allocation_error, heif_suberror_Unspecified, "Failed to allocate memory for the type string").error_struct(handle->image.get()); } strcpy(buf, auxType.c_str()); *out_type = buf; return {heif_error_Ok, heif_suberror_Unspecified, Error::kSuccess}; } void heif_image_handle_free_auxiliary_types(const struct heif_image_handle* handle, const char** out_type) { if (out_type && *out_type) { free((void*)*out_type); *out_type = nullptr; } } struct heif_error heif_image_handle_get_auxiliary_image_handle(const struct heif_image_handle* main_image_handle, heif_item_id auxiliary_id, struct heif_image_handle** out_auxiliary_handle) { if (!out_auxiliary_handle) { return Error(heif_error_Usage_error, heif_suberror_Null_pointer_argument).error_struct(main_image_handle->image.get()); } auto auxImages = main_image_handle->image->get_aux_images(); for (auto aux : auxImages) { if (aux->get_id() == auxiliary_id) { *out_auxiliary_handle = new heif_image_handle(); (*out_auxiliary_handle)->image = aux; (*out_auxiliary_handle)->context = main_image_handle->context; return Error::Ok.error_struct(main_image_handle->image.get()); } } Error err(heif_error_Usage_error, heif_suberror_Nonexisting_item_referenced); return err.error_struct(main_image_handle->image.get()); } int heif_image_handle_get_width(const struct heif_image_handle* handle) { if (handle && handle->image) { return handle->image->get_width(); } else { return 0; } } int heif_image_handle_get_height(const struct heif_image_handle* handle) { if (handle && handle->image) { return handle->image->get_height(); } else { return 0; } } int heif_image_handle_get_ispe_width(const struct heif_image_handle* handle) { if (handle && handle->image) { return handle->image->get_ispe_width(); } else { return 0; } } int heif_image_handle_get_ispe_height(const struct heif_image_handle* handle) { if (handle && handle->image) { return handle->image->get_ispe_height(); } else { return 0; } } int heif_image_handle_has_alpha_channel(const struct heif_image_handle* handle) { return handle->image->get_alpha_channel() != nullptr; } int heif_image_handle_is_premultiplied_alpha(const struct heif_image_handle* handle) { return handle->image->is_premultiplied_alpha(); } int heif_image_handle_get_luma_bits_per_pixel(const struct heif_image_handle* handle) { return handle->image->get_luma_bits_per_pixel(); } int heif_image_handle_get_chroma_bits_per_pixel(const struct heif_image_handle* handle) { return handle->image->get_chroma_bits_per_pixel(); } int heif_image_handle_has_depth_image(const struct heif_image_handle* handle) { return handle->image->get_depth_channel() != nullptr; } void heif_depth_representation_info_free(const struct heif_depth_representation_info* info) { delete info; } int heif_image_handle_get_depth_image_representation_info(const struct heif_image_handle* handle, heif_item_id depth_image_id, const struct heif_depth_representation_info** out) { std::shared_ptr depth_image; if (out) { if (handle->image->is_depth_channel()) { // Because of an API bug before v1.11.0, the input handle may be the depth image (#422). depth_image = handle->image; } else { depth_image = handle->image->get_depth_channel(); } if (depth_image->has_depth_representation_info()) { auto info = new heif_depth_representation_info; *info = depth_image->get_depth_representation_info(); *out = info; return true; } else { *out = nullptr; } } return false; } int heif_image_handle_get_number_of_depth_images(const struct heif_image_handle* handle) { auto depth_image = handle->image->get_depth_channel(); if (depth_image) { return 1; } else { return 0; } } int heif_image_handle_get_list_of_depth_image_IDs(const struct heif_image_handle* handle, heif_item_id* ids, int count) { auto depth_image = handle->image->get_depth_channel(); if (count == 0) { return 0; } if (depth_image) { ids[0] = depth_image->get_id(); return 1; } else { return 0; } } struct heif_error heif_image_handle_get_depth_image_handle(const struct heif_image_handle* handle, heif_item_id depth_id, struct heif_image_handle** out_depth_handle) { auto depth_image = handle->image->get_depth_channel(); if (depth_image->get_id() != depth_id) { *out_depth_handle = nullptr; Error err(heif_error_Usage_error, heif_suberror_Nonexisting_item_referenced); return err.error_struct(handle->image.get()); } *out_depth_handle = new heif_image_handle(); (*out_depth_handle)->image = depth_image; (*out_depth_handle)->context = handle->context; return Error::Ok.error_struct(handle->image.get()); } heif_decoding_options* heif_decoding_options_alloc() { auto options = new heif_decoding_options; options->version = 2; options->ignore_transformations = false; options->start_progress = NULL; options->on_progress = NULL; options->end_progress = NULL; options->progress_user_data = NULL; // version 2 options->convert_hdr_to_8bit = false; return options; } void heif_decoding_options_free(heif_decoding_options* options) { delete options; } struct heif_error heif_decode_image(const struct heif_image_handle* in_handle, struct heif_image** out_img, heif_colorspace colorspace, heif_chroma chroma, const struct heif_decoding_options* options) { std::shared_ptr img; heif_item_id id = in_handle->image->get_id(); Error err = in_handle->context->decode_image_user(id, img, colorspace, chroma, options); if (err.error_code != heif_error_Ok) { return err.error_struct(in_handle->image.get()); } *out_img = new heif_image(); (*out_img)->image = std::move(img); return Error::Ok.error_struct(in_handle->image.get()); } struct heif_error heif_image_create(int width, int height, heif_colorspace colorspace, heif_chroma chroma, struct heif_image** image) { struct heif_image* img = new heif_image; img->image = std::make_shared(); img->image->create(width, height, colorspace, chroma); *image = img; struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, Error::kSuccess}; return err; } void heif_image_release(const struct heif_image* img) { delete img; } void heif_image_handle_release(const struct heif_image_handle* handle) { delete handle; } enum heif_colorspace heif_image_get_colorspace(const struct heif_image* img) { return img->image->get_colorspace(); } enum heif_chroma heif_image_get_chroma_format(const struct heif_image* img) { return img->image->get_chroma_format(); } int heif_image_get_width(const struct heif_image* img, enum heif_channel channel) { return img->image->get_width(channel); } int heif_image_get_height(const struct heif_image* img, enum heif_channel channel) { return img->image->get_height(channel); } int heif_image_get_primary_width(const struct heif_image* img) { if (img->image->get_colorspace() == heif_colorspace_RGB) { if (img->image->get_chroma_format() == heif_chroma_444) { return img->image->get_width(heif_channel_G); } else { return img->image->get_width(heif_channel_interleaved); } } else { return img->image->get_width(heif_channel_Y); } } int heif_image_get_primary_height(const struct heif_image* img) { if (img->image->get_colorspace() == heif_colorspace_RGB) { if (img->image->get_chroma_format() == heif_chroma_444) { return img->image->get_height(heif_channel_G); } else { return img->image->get_height(heif_channel_interleaved); } } else { return img->image->get_height(heif_channel_Y); } } heif_error heif_image_crop(struct heif_image* img, int left, int right, int top, int bottom) { std::shared_ptr out_img; int w = img->image->get_width(); int h = img->image->get_height(); Error err = img->image->crop(left, w - 1 - right, top, h - 1 - bottom, out_img); if (err) { return err.error_struct(img->image.get()); } img->image = out_img; return heif_error{heif_error_Ok, heif_suberror_Unspecified, Error::kSuccess}; } int heif_image_get_bits_per_pixel(const struct heif_image* img, enum heif_channel channel) { return img->image->get_storage_bits_per_pixel(channel); } int heif_image_get_bits_per_pixel_range(const struct heif_image* img, enum heif_channel channel) { return img->image->get_bits_per_pixel(channel); } int heif_image_has_channel(const struct heif_image* img, enum heif_channel channel) { return img->image->has_channel(channel); } struct heif_error heif_image_add_plane(struct heif_image* image, heif_channel channel, int width, int height, int bit_depth) { if (!image->image->add_plane(channel, width, height, bit_depth)) { struct heif_error err = {heif_error_Memory_allocation_error, heif_suberror_Unspecified, "Cannot allocate memory for image plane"}; return err; } else { struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, Error::kSuccess}; return err; } } const uint8_t* heif_image_get_plane_readonly(const struct heif_image* image, enum heif_channel channel, int* out_stride) { if (!image || !image->image) { *out_stride = 0; return nullptr; } return image->image->get_plane(channel, out_stride); } uint8_t* heif_image_get_plane(struct heif_image* image, enum heif_channel channel, int* out_stride) { if (!image || !image->image) { *out_stride = 0; return nullptr; } return image->image->get_plane(channel, out_stride); } void heif_image_set_premultiplied_alpha(struct heif_image* image, int is_premultiplied_alpha) { if (image == nullptr) { return; } image->image->set_premultiplied_alpha(is_premultiplied_alpha); } int heif_image_is_premultiplied_alpha(struct heif_image* image) { if (image == nullptr) { return 0; } return image->image->is_premultiplied_alpha(); } struct heif_error heif_image_scale_image(const struct heif_image* input, struct heif_image** output, int width, int height, const struct heif_scaling_options* options) { std::shared_ptr out_img; Error err = input->image->scale_nearest_neighbor(out_img, width, height); if (err) { return err.error_struct(input->image.get()); } *output = new heif_image; (*output)->image = out_img; return Error::Ok.error_struct(input->image.get()); } struct heif_error heif_image_set_raw_color_profile(struct heif_image* image, const char* color_profile_type_fourcc, const void* profile_data, const size_t profile_size) { if (strlen(color_profile_type_fourcc) != 4) { heif_error err = {heif_error_Usage_error, heif_suberror_Unspecified, "Invalid color_profile_type (must be 4 characters)"}; return err; } uint32_t color_profile_type = fourcc(color_profile_type_fourcc); std::vector data; data.insert(data.end(), (const uint8_t*) profile_data, (const uint8_t*) profile_data + profile_size); auto color_profile = std::make_shared(color_profile_type, data); image->image->set_color_profile_icc(color_profile); struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, Error::kSuccess}; return err; } struct heif_error heif_image_set_nclx_color_profile(struct heif_image* image, const struct heif_color_profile_nclx* color_profile) { auto nclx = std::make_shared(); nclx->set_colour_primaries(color_profile->color_primaries); nclx->set_transfer_characteristics(color_profile->transfer_characteristics); nclx->set_matrix_coefficients(color_profile->matrix_coefficients); nclx->set_full_range_flag(color_profile->full_range_flag); image->image->set_color_profile_nclx(nclx); return error_Ok; } /* void heif_image_remove_color_profile(struct heif_image* image) { image->image->set_color_profile(nullptr); } */ int heif_image_handle_get_number_of_metadata_blocks(const struct heif_image_handle* handle, const char* type_filter) { int cnt = 0; for (const auto& metadata : handle->image->get_metadata()) { if (type_filter == nullptr || metadata->item_type == type_filter) { cnt++; } } return cnt; } int heif_image_handle_get_list_of_metadata_block_IDs(const struct heif_image_handle* handle, const char* type_filter, heif_item_id* ids, int count) { int cnt = 0; for (const auto& metadata : handle->image->get_metadata()) { if (type_filter == nullptr || metadata->item_type == type_filter) { if (cnt < count) { ids[cnt] = metadata->item_id; cnt++; } else { break; } } } return cnt; } const char* heif_image_handle_get_metadata_type(const struct heif_image_handle* handle, heif_item_id metadata_id) { for (auto& metadata : handle->image->get_metadata()) { if (metadata->item_id == metadata_id) { return metadata->item_type.c_str(); } } return nullptr; } const char* heif_image_handle_get_metadata_content_type(const struct heif_image_handle* handle, heif_item_id metadata_id) { for (auto& metadata : handle->image->get_metadata()) { if (metadata->item_id == metadata_id) { return metadata->content_type.c_str(); } } return nullptr; } size_t heif_image_handle_get_metadata_size(const struct heif_image_handle* handle, heif_item_id metadata_id) { for (auto& metadata : handle->image->get_metadata()) { if (metadata->item_id == metadata_id) { return metadata->m_data.size(); } } return 0; } struct heif_error heif_image_handle_get_metadata(const struct heif_image_handle* handle, heif_item_id metadata_id, void* out_data) { for (auto& metadata : handle->image->get_metadata()) { if (metadata->item_id == metadata_id) { if (!metadata->m_data.empty()) { if (out_data == nullptr) { Error err(heif_error_Usage_error, heif_suberror_Null_pointer_argument); return err.error_struct(handle->image.get()); } memcpy(out_data, metadata->m_data.data(), metadata->m_data.size()); } return Error::Ok.error_struct(handle->image.get()); } } Error err(heif_error_Usage_error, heif_suberror_Nonexisting_item_referenced); return err.error_struct(handle->image.get()); } heif_color_profile_type heif_image_handle_get_color_profile_type(const struct heif_image_handle* handle) { auto profile_icc = handle->image->get_color_profile_icc(); if (profile_icc) { return (heif_color_profile_type) profile_icc->get_type(); } auto profile_nclx = handle->image->get_color_profile_nclx(); if (profile_nclx) { return (heif_color_profile_type) profile_nclx->get_type(); } else { return heif_color_profile_type_not_present; } } size_t heif_image_handle_get_raw_color_profile_size(const struct heif_image_handle* handle) { auto profile_icc = handle->image->get_color_profile_icc(); if (profile_icc) { return profile_icc->get_data().size(); } else { return 0; } } struct heif_error heif_image_handle_get_nclx_color_profile(const struct heif_image_handle* handle, struct heif_color_profile_nclx** out_data) { if (!out_data) { Error err(heif_error_Usage_error, heif_suberror_Null_pointer_argument); return err.error_struct(handle->image.get()); } auto nclx_profile = handle->image->get_color_profile_nclx(); if (!nclx_profile) { Error err(heif_error_Color_profile_does_not_exist, heif_suberror_Unspecified); return err.error_struct(handle->image.get()); } Error err = nclx_profile->get_nclx_color_profile(out_data); return err.error_struct(handle->image.get()); } struct heif_error heif_image_handle_get_raw_color_profile(const struct heif_image_handle* handle, void* out_data) { if (out_data == nullptr) { Error err(heif_error_Usage_error, heif_suberror_Null_pointer_argument); return err.error_struct(handle->image.get()); } auto raw_profile = handle->image->get_color_profile_icc(); if (raw_profile) { memcpy(out_data, raw_profile->get_data().data(), raw_profile->get_data().size()); } else { Error err(heif_error_Color_profile_does_not_exist, heif_suberror_Unspecified); return err.error_struct(handle->image.get()); } return Error::Ok.error_struct(handle->image.get()); } enum heif_color_profile_type heif_image_get_color_profile_type(const struct heif_image* image) { std::shared_ptr profile; profile = image->image->get_color_profile_icc(); if (!profile) { profile = image->image->get_color_profile_nclx(); } if (!profile) { return heif_color_profile_type_not_present; } else { return (heif_color_profile_type) profile->get_type(); } } size_t heif_image_get_raw_color_profile_size(const struct heif_image* image) { auto raw_profile = image->image->get_color_profile_icc(); if (raw_profile) { return raw_profile->get_data().size(); } else { return 0; } } struct heif_error heif_image_get_raw_color_profile(const struct heif_image* image, void* out_data) { if (out_data == nullptr) { Error err(heif_error_Usage_error, heif_suberror_Null_pointer_argument); return err.error_struct(image->image.get()); } auto raw_profile = image->image->get_color_profile_icc(); if (raw_profile) { memcpy(out_data, raw_profile->get_data().data(), raw_profile->get_data().size()); } return Error::Ok.error_struct(image->image.get()); } struct heif_error heif_image_get_nclx_color_profile(const struct heif_image* image, struct heif_color_profile_nclx** out_data) { if (!out_data) { Error err(heif_error_Usage_error, heif_suberror_Null_pointer_argument); return err.error_struct(image->image.get()); } auto nclx_profile = image->image->get_color_profile_nclx(); if (!nclx_profile) { Error err(heif_error_Color_profile_does_not_exist, heif_suberror_Unspecified); return err.error_struct(image->image.get()); } Error err = nclx_profile->get_nclx_color_profile(out_data); return err.error_struct(image->image.get()); } struct heif_color_profile_nclx* heif_nclx_color_profile_alloc() { return color_profile_nclx::alloc_nclx_color_profile(); } void heif_nclx_color_profile_free(struct heif_color_profile_nclx* nclx_profile) { color_profile_nclx::free_nclx_color_profile(nclx_profile); } // DEPRECATED struct heif_error heif_register_decoder(heif_context* heif, const heif_decoder_plugin* decoder_plugin) { if (!decoder_plugin) { return error_null_parameter; } else if (decoder_plugin->plugin_api_version != 1) { return error_unsupported_plugin_version; } heif->context->register_decoder(decoder_plugin); return Error::Ok.error_struct(heif->context.get()); } struct heif_error heif_register_decoder_plugin(const heif_decoder_plugin* decoder_plugin) { if (!decoder_plugin) { return error_null_parameter; } else if (decoder_plugin->plugin_api_version != 1) { return error_unsupported_plugin_version; } register_decoder(decoder_plugin); return error_Ok; } struct heif_error heif_register_encoder_plugin(const heif_encoder_plugin* encoder_plugin) { if (!encoder_plugin) { return error_null_parameter; } else if (encoder_plugin->plugin_api_version != 1) { return error_unsupported_plugin_version; } register_encoder(encoder_plugin); return error_Ok; } /* int heif_image_get_number_of_data_chunks(heif_image* img); void heif_image_get_data_chunk(heif_image* img, int chunk_index, uint8_t const*const* dataptr, int const* data_size); void heif_image_free_data_chunk(heif_image* img, int chunk_index); */ /* void heif_context_reset(struct heif_context* ctx) { ctx->context->reset_to_empty_heif(); } */ static struct heif_error heif_file_writer_write(struct heif_context* ctx, const void* data, size_t size, void* userdata) { const char* filename = static_cast(userdata); #ifdef _MSC_VER std::ofstream ostr(HeifFile::convert_utf8_path_to_utf16(filename).c_str(), std::ios_base::binary); #else std::ofstream ostr(filename, std::ios_base::binary); #endif ostr.write(static_cast(data), size); // TODO: handle write errors return Error::Ok.error_struct(ctx->context.get()); } struct heif_error heif_context_write_to_file(struct heif_context* ctx, const char* filename) { heif_writer writer; writer.writer_api_version = 1; writer.write = heif_file_writer_write; return heif_context_write(ctx, &writer, (void*) filename); } struct heif_error heif_context_write(struct heif_context* ctx, struct heif_writer* writer, void* userdata) { if (!writer) { return Error(heif_error_Usage_error, heif_suberror_Null_pointer_argument).error_struct(ctx->context.get()); } else if (writer->writer_api_version != 1) { Error err(heif_error_Usage_error, heif_suberror_Unsupported_writer_version); return err.error_struct(ctx->context.get()); } StreamWriter swriter; ctx->context->write(swriter); const auto& data = swriter.get_data(); return writer->write(ctx, data.data(), data.size(), userdata); } int heif_context_get_encoder_descriptors(struct heif_context* ctx, enum heif_compression_format format, const char* name, const struct heif_encoder_descriptor** out_encoder_descriptors, int count) { if (out_encoder_descriptors == nullptr || count <= 0) { return 0; } std::vector descriptors; descriptors = get_filtered_encoder_descriptors(format, name); int i; for (i = 0; i < count && static_cast(i) < descriptors.size(); i++) { out_encoder_descriptors[i] = descriptors[i]; } return i; } const char* heif_encoder_descriptor_get_name(const struct heif_encoder_descriptor* descriptor) { return descriptor->plugin->get_plugin_name(); } const char* heif_encoder_descriptor_get_id_name(const struct heif_encoder_descriptor* descriptor) { return descriptor->plugin->id_name; } enum heif_compression_format heif_encoder_descriptor_get_compression_format(const struct heif_encoder_descriptor* descriptor) { return descriptor->plugin->compression_format; } int heif_encoder_descriptor_supports_lossy_compression(const struct heif_encoder_descriptor* descriptor) { return descriptor->plugin->supports_lossy_compression; } int heif_encoder_descriptor_supports_lossless_compression(const struct heif_encoder_descriptor* descriptor) { return descriptor->plugin->supports_lossless_compression; } // DEPRECATED: typo in functino name int heif_encoder_descriptor_supportes_lossy_compression(const struct heif_encoder_descriptor* descriptor) { return descriptor->plugin->supports_lossy_compression; } // DEPRECATED: typo in functino name int heif_encoder_descriptor_supportes_lossless_compression(const struct heif_encoder_descriptor* descriptor) { return descriptor->plugin->supports_lossless_compression; } const char* heif_encoder_get_name(const struct heif_encoder* encoder) { return encoder->plugin->get_plugin_name(); } struct heif_error heif_context_get_encoder(struct heif_context* context, const struct heif_encoder_descriptor* descriptor, struct heif_encoder** encoder) { // Note: be aware that context may be NULL as we explicitly allowed that in an earlier documentation. if (!descriptor || !encoder) { Error err(heif_error_Usage_error, heif_suberror_Null_pointer_argument); return err.error_struct(context ? context->context.get() : nullptr); } *encoder = new struct heif_encoder(descriptor->plugin); return (*encoder)->alloc(); } int heif_have_decoder_for_format(enum heif_compression_format format) { auto plugin = heif::get_decoder(format); return plugin != nullptr; } int heif_have_encoder_for_format(enum heif_compression_format format) { auto plugin = heif::get_encoder(format); return plugin != nullptr; } struct heif_error heif_context_get_encoder_for_format(struct heif_context* context, enum heif_compression_format format, struct heif_encoder** encoder) { // Note: be aware that context may be NULL as we explicitly allowed that in an earlier documentation. if (!encoder) { Error err(heif_error_Usage_error, heif_suberror_Null_pointer_argument); return err.error_struct(context ? context->context.get() : nullptr); } std::vector descriptors; descriptors = get_filtered_encoder_descriptors(format, nullptr); if (descriptors.size() > 0) { *encoder = new struct heif_encoder(descriptors[0]->plugin); return (*encoder)->alloc(); } else { Error err(heif_error_Unsupported_filetype, // TODO: is this the right error code? heif_suberror_Unspecified); return err.error_struct(context ? context->context.get() : nullptr); } } void heif_encoder_release(struct heif_encoder* encoder) { if (encoder) { delete encoder; } } //struct heif_encoder_param* heif_encoder_get_param(struct heif_encoder* encoder) //{ // return nullptr; //} //void heif_encoder_release_param(struct heif_encoder_param* param) //{ //} // Set a 'quality' factor (0-100). How this is mapped to actual encoding parameters is // encoder dependent. struct heif_error heif_encoder_set_lossy_quality(struct heif_encoder* encoder, int quality) { if (!encoder) { return Error(heif_error_Usage_error, heif_suberror_Null_pointer_argument).error_struct(nullptr); } return encoder->plugin->set_parameter_quality(encoder->encoder, quality); } struct heif_error heif_encoder_set_lossless(struct heif_encoder* encoder, int enable) { if (!encoder) { return Error(heif_error_Usage_error, heif_suberror_Null_pointer_argument).error_struct(nullptr); } return encoder->plugin->set_parameter_lossless(encoder->encoder, enable); } struct heif_error heif_encoder_set_logging_level(struct heif_encoder* encoder, int level) { if (!encoder) { return Error(heif_error_Usage_error, heif_suberror_Null_pointer_argument).error_struct(nullptr); } if (encoder->plugin->set_parameter_logging_level) { return encoder->plugin->set_parameter_logging_level(encoder->encoder, level); } struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; return err; } const struct heif_encoder_parameter* const* heif_encoder_list_parameters(struct heif_encoder* encoder) { return encoder->plugin->list_parameters(encoder->encoder); } const char* heif_encoder_parameter_get_name(const struct heif_encoder_parameter* param) { return param->name; } enum heif_encoder_parameter_type heif_encoder_parameter_get_type(const struct heif_encoder_parameter* param) { return param->type; } struct heif_error heif_encoder_set_parameter_integer(struct heif_encoder* encoder, const char* parameter_name, int value) { // --- check if parameter is valid for (const struct heif_encoder_parameter* const* params = heif_encoder_list_parameters(encoder); *params; params++) { if (strcmp((*params)->name, parameter_name) == 0) { int have_minimum = 0, have_maximum = 0, minimum = 0, maximum = 0, num_valid_values = 0; const int* valid_values = nullptr; heif_error err = heif_encoder_parameter_get_valid_integer_values((*params), &have_minimum, &have_maximum, &minimum, &maximum, &num_valid_values, &valid_values); if (err.code) { return err; } if ((have_minimum && value < minimum) || (have_maximum && value > maximum)) { return error_invalid_parameter_value; } if (num_valid_values > 0) { bool found = false; for (int i = 0; i < num_valid_values; i++) { if (valid_values[i] == value) { found = true; break; } } if (!found) { return error_invalid_parameter_value; } } } } // --- parameter is ok, pass it to the encoder plugin return encoder->plugin->set_parameter_integer(encoder->encoder, parameter_name, value); } struct heif_error heif_encoder_get_parameter_integer(struct heif_encoder* encoder, const char* parameter_name, int* value_ptr) { return encoder->plugin->get_parameter_integer(encoder->encoder, parameter_name, value_ptr); } struct heif_error heif_encoder_parameter_get_valid_integer_range(const struct heif_encoder_parameter* param, int* have_minimum_maximum, int* minimum, int* maximum) { if (param->type != heif_encoder_parameter_type_integer) { return error_unsupported_parameter; // TODO: correct error ? } if (param->integer.have_minimum_maximum) { if (minimum) { *minimum = param->integer.minimum; } if (maximum) { *maximum = param->integer.maximum; } } if (have_minimum_maximum) { *have_minimum_maximum = param->integer.have_minimum_maximum; } return error_Ok; } LIBHEIF_API struct heif_error heif_encoder_parameter_get_valid_integer_values(const struct heif_encoder_parameter* param, int* have_minimum, int* have_maximum, int* minimum, int* maximum, int* num_valid_values, const int** out_integer_array) { if (param->type != heif_encoder_parameter_type_integer) { return error_unsupported_parameter; // TODO: correct error ? } // --- range of values if (param->integer.have_minimum_maximum) { if (minimum) { *minimum = param->integer.minimum; } if (maximum) { *maximum = param->integer.maximum; } } if (have_minimum) { *have_minimum = param->integer.have_minimum_maximum; } if (have_maximum) { *have_maximum = param->integer.have_minimum_maximum; } // --- set of valid values if (param->integer.num_valid_values > 0) { if (out_integer_array) { *out_integer_array = param->integer.valid_values; } } if (num_valid_values) { *num_valid_values = param->integer.num_valid_values; } return error_Ok; } struct heif_error heif_encoder_parameter_get_valid_string_values(const struct heif_encoder_parameter* param, const char* const** out_stringarray) { if (param->type != heif_encoder_parameter_type_string) { return error_unsupported_parameter; // TODO: correct error ? } if (out_stringarray) { *out_stringarray = param->string.valid_values; } return error_Ok; } struct heif_error heif_encoder_parameter_integer_valid_range(struct heif_encoder* encoder, const char* parameter_name, int* have_minimum_maximum, int* minimum, int* maximum) { for (const struct heif_encoder_parameter* const* params = heif_encoder_list_parameters(encoder); *params; params++) { if (strcmp((*params)->name, parameter_name) == 0) { return heif_encoder_parameter_get_valid_integer_range(*params, have_minimum_maximum, minimum, maximum); } } return error_unsupported_parameter; } struct heif_error heif_encoder_set_parameter_boolean(struct heif_encoder* encoder, const char* parameter_name, int value) { return encoder->plugin->set_parameter_boolean(encoder->encoder, parameter_name, value); } struct heif_error heif_encoder_get_parameter_boolean(struct heif_encoder* encoder, const char* parameter_name, int* value_ptr) { return encoder->plugin->get_parameter_boolean(encoder->encoder, parameter_name, value_ptr); } struct heif_error heif_encoder_set_parameter_string(struct heif_encoder* encoder, const char* parameter_name, const char* value) { return encoder->plugin->set_parameter_string(encoder->encoder, parameter_name, value); } struct heif_error heif_encoder_get_parameter_string(struct heif_encoder* encoder, const char* parameter_name, char* value_ptr, int value_size) { return encoder->plugin->get_parameter_string(encoder->encoder, parameter_name, value_ptr, value_size); } struct heif_error heif_encoder_parameter_string_valid_values(struct heif_encoder* encoder, const char* parameter_name, const char* const** out_stringarray) { for (const struct heif_encoder_parameter* const* params = heif_encoder_list_parameters(encoder); *params; params++) { if (strcmp((*params)->name, parameter_name) == 0) { return heif_encoder_parameter_get_valid_string_values(*params, out_stringarray); } } return error_unsupported_parameter; } struct heif_error heif_encoder_parameter_integer_valid_values(struct heif_encoder* encoder, const char* parameter_name, int* have_minimum, int* have_maximum, int* minimum, int* maximum, int* num_valid_values, const int** out_integer_array) { for (const struct heif_encoder_parameter* const* params = heif_encoder_list_parameters(encoder); *params; params++) { if (strcmp((*params)->name, parameter_name) == 0) { return heif_encoder_parameter_get_valid_integer_values(*params, have_minimum, have_maximum, minimum, maximum, num_valid_values, out_integer_array); } } return error_unsupported_parameter; } static bool parse_boolean(const char* value) { if (strcmp(value, "true") == 0) { return true; } else if (strcmp(value, "false") == 0) { return false; } else if (strcmp(value, "1") == 0) { return true; } else if (strcmp(value, "0") == 0) { return false; } return false; } struct heif_error heif_encoder_set_parameter(struct heif_encoder* encoder, const char* parameter_name, const char* value) { for (const struct heif_encoder_parameter* const* params = heif_encoder_list_parameters(encoder); *params; params++) { if (strcmp((*params)->name, parameter_name) == 0) { switch ((*params)->type) { case heif_encoder_parameter_type_integer: return heif_encoder_set_parameter_integer(encoder, parameter_name, atoi(value)); case heif_encoder_parameter_type_boolean: return heif_encoder_set_parameter_boolean(encoder, parameter_name, parse_boolean(value)); case heif_encoder_parameter_type_string: return heif_encoder_set_parameter_string(encoder, parameter_name, value); break; } return error_Ok; } } return heif_encoder_set_parameter_string(encoder, parameter_name, value); //return error_unsupported_parameter; } struct heif_error heif_encoder_get_parameter(struct heif_encoder* encoder, const char* parameter_name, char* value_ptr, int value_size) { for (const struct heif_encoder_parameter* const* params = heif_encoder_list_parameters(encoder); *params; params++) { if (strcmp((*params)->name, parameter_name) == 0) { switch ((*params)->type) { case heif_encoder_parameter_type_integer: { int value; struct heif_error error = heif_encoder_get_parameter_integer(encoder, parameter_name, &value); if (error.code) { return error; } else { snprintf(value_ptr, value_size, "%d", value); } } break; case heif_encoder_parameter_type_boolean: { int value; struct heif_error error = heif_encoder_get_parameter_boolean(encoder, parameter_name, &value); if (error.code) { return error; } else { snprintf(value_ptr, value_size, "%d", value); } } break; case heif_encoder_parameter_type_string: { struct heif_error error = heif_encoder_get_parameter_string(encoder, parameter_name, value_ptr, value_size); if (error.code) { return error; } } break; } return error_Ok; } } return error_unsupported_parameter; } int heif_encoder_has_default(struct heif_encoder* encoder, const char* parameter_name) { for (const struct heif_encoder_parameter* const* params = heif_encoder_list_parameters(encoder); *params; params++) { if (strcmp((*params)->name, parameter_name) == 0) { if ((*params)->version >= 2) { return (*params)->has_default; } else { return true; } } } return false; } static void set_default_options(heif_encoding_options& options) { options.version = 4; options.save_alpha_channel = true; options.macOS_compatibility_workaround = true; options.save_two_colr_boxes_when_ICC_and_nclx_available = false; options.output_nclx_profile = nullptr; options.macOS_compatibility_workaround_no_nclx_profile = true; } static void copy_options(heif_encoding_options& options, const heif_encoding_options& input_options) { set_default_options(options); switch (input_options.version) { case 4: options.output_nclx_profile = input_options.output_nclx_profile; options.macOS_compatibility_workaround_no_nclx_profile = input_options.macOS_compatibility_workaround_no_nclx_profile; // fallthrough case 3: options.save_two_colr_boxes_when_ICC_and_nclx_available = input_options.save_two_colr_boxes_when_ICC_and_nclx_available; // fallthrough case 2: options.macOS_compatibility_workaround = input_options.macOS_compatibility_workaround; // fallthrough case 1: options.save_alpha_channel = input_options.save_alpha_channel; } } heif_encoding_options* heif_encoding_options_alloc() { auto options = new heif_encoding_options; set_default_options(*options); return options; } void heif_encoding_options_free(heif_encoding_options* options) { delete options; } struct heif_error heif_context_encode_image(struct heif_context* ctx, const struct heif_image* input_image, struct heif_encoder* encoder, const struct heif_encoding_options* input_options, struct heif_image_handle** out_image_handle) { if (!encoder) { return Error(heif_error_Usage_error, heif_suberror_Null_pointer_argument).error_struct(ctx->context.get()); } heif_encoding_options options; heif_color_profile_nclx nclx; if (input_options == nullptr) { set_default_options(options); } else { copy_options(options, *input_options); if (options.output_nclx_profile == nullptr) { auto input_nclx = input_image->image->get_color_profile_nclx(); if (input_nclx) { options.output_nclx_profile = &nclx; nclx.version = 1; nclx.color_primaries = (enum heif_color_primaries)input_nclx->get_colour_primaries(); nclx.transfer_characteristics = (enum heif_transfer_characteristics)input_nclx->get_transfer_characteristics(); nclx.matrix_coefficients = (enum heif_matrix_coefficients)input_nclx->get_matrix_coefficients(); nclx.full_range_flag = input_nclx->get_full_range_flag(); } } } std::shared_ptr image; Error error; error = ctx->context->encode_image(input_image->image, encoder, &options, heif_image_input_class_normal, image); if (error != Error::Ok) { return error.error_struct(ctx->context.get()); } // mark the new image as primary image if (ctx->context->is_primary_image_set() == false) { ctx->context->set_primary_image(image); } if (out_image_handle) { *out_image_handle = new heif_image_handle; (*out_image_handle)->image = image; (*out_image_handle)->context = ctx->context; } return error_Ok; } struct heif_error heif_context_assign_thumbnail(struct heif_context* ctx, const struct heif_image_handle* master_image, const struct heif_image_handle* thumbnail_image) { Error error = ctx->context->assign_thumbnail(thumbnail_image->image, master_image->image); return error.error_struct(ctx->context.get()); } struct heif_error heif_context_encode_thumbnail(struct heif_context* ctx, const struct heif_image* image, const struct heif_image_handle* image_handle, struct heif_encoder* encoder, const struct heif_encoding_options* options, int bbox_size, struct heif_image_handle** out_image_handle) { std::shared_ptr thumbnail_image; heif_encoding_options default_options; if (options == nullptr) { set_default_options(default_options); options = &default_options; } Error error = ctx->context->encode_thumbnail(image->image, encoder, options, bbox_size, thumbnail_image); if (error != Error::Ok) { return error.error_struct(ctx->context.get()); } else if (!thumbnail_image) { Error err(heif_error_Usage_error, heif_suberror_Invalid_parameter_value, "Thumbnail images must be smaller than the original image."); return err.error_struct(ctx->context.get()); } error = ctx->context->assign_thumbnail(image_handle->image, thumbnail_image); if (error != Error::Ok) { return error.error_struct(ctx->context.get()); } if (out_image_handle) { if (thumbnail_image) { *out_image_handle = new heif_image_handle; (*out_image_handle)->image = thumbnail_image; (*out_image_handle)->context = ctx->context; } else { *out_image_handle = nullptr; } } return error_Ok; } struct heif_error heif_context_set_primary_image(struct heif_context* ctx, struct heif_image_handle* image_handle) { ctx->context->set_primary_image(image_handle->image); return error_Ok; } struct heif_error heif_context_add_exif_metadata(struct heif_context* ctx, const struct heif_image_handle* image_handle, const void* data, int size) { Error error = ctx->context->add_exif_metadata(image_handle->image, data, size); if (error != Error::Ok) { return error.error_struct(ctx->context.get()); } else { return error_Ok; } } struct heif_error heif_context_add_XMP_metadata(struct heif_context* ctx, const struct heif_image_handle* image_handle, const void* data, int size) { Error error = ctx->context->add_XMP_metadata(image_handle->image, data, size); if (error != Error::Ok) { return error.error_struct(ctx->context.get()); } else { return error_Ok; } } struct heif_error heif_context_add_generic_metadata(struct heif_context* ctx, const struct heif_image_handle* image_handle, const void* data, int size, const char* item_type, const char* content_type) { Error error = ctx->context->add_generic_metadata(image_handle->image, data, size, item_type, content_type); if (error != Error::Ok) { return error.error_struct(ctx->context.get()); } else { return error_Ok; } } void heif_context_set_maximum_image_size_limit(struct heif_context* ctx, int maximum_width) { ctx->context->set_maximum_image_size_limit(maximum_width); } libheif-1.12.0/libheif/heif_encoder_x265.h0000644000175000017500000000254014003350413015061 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_ENCODER_X265_H #define LIBHEIF_HEIF_ENCODER_X265_H /* Image sizes in HEVC: since HEVC does not allow for odd image dimensions when using chroma 4:2:0, our strategy is as follows. - Images with odd dimensions are extended with an extra row/column which contains a copy of the border. - The HEVC image size generated by x265 is rounded up to the CTU size (?) and the conformance window has to be respected. - We add an additional crop transform to remove the extra row/column. */ const struct heif_encoder_plugin* get_encoder_plugin_x265(); #endif libheif-1.12.0/libheif/heif_encoder_rav1e.h0000644000175000017500000000163614003350413015400 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_ENCODER_RAV1E_H #define LIBHEIF_HEIF_ENCODER_RAV1E_H const struct heif_encoder_plugin* get_encoder_plugin_rav1e(); #endif libheif-1.12.0/libheif/heif_encoder_rav1e.cc0000664000175000017500000005254514043747772015573 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif.h" #include "heif_plugin.h" #include "heif_avif.h" #include "heif_api_structs.h" #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include #include #include // TODO: remove me #include "rav1e.h" struct encoder_struct_rav1e { int speed; // 0-10 int quality; // TODO: not sure yet how to map quality to min/max q int min_q; int threads; int tile_rows = 1; // 1,2,4,8,16,32,64 int tile_cols = 1; // 1,2,4,8,16,32,64 heif_chroma chroma; // --- output std::vector compressed_data; bool data_read = false; }; static const char* kError_out_of_memory = "Out of memory"; static const char* kParam_min_q = "min-q"; static const char* kParam_threads = "threads"; static const char* kParam_speed = "speed"; static const char* kParam_chroma = "chroma"; static const char* const kParam_chroma_valid_values[] = { "420", "422", "444", nullptr }; static int valid_tile_num_values[] = {1, 2, 4, 8, 16, 32, 64}; static struct heif_error heif_error_codec_library_error = {heif_error_Encoder_plugin_error, heif_suberror_Unspecified, "rav1e error"}; static const int RAV1E_PLUGIN_PRIORITY = 50; #define MAX_PLUGIN_NAME_LENGTH 80 static char plugin_name[MAX_PLUGIN_NAME_LENGTH]; static void rav1e_set_default_parameters(void* encoder); static const char* rav1e_plugin_name() { strcpy(plugin_name, "Rav1e encoder"); return plugin_name; } #define MAX_NPARAMETERS 10 static struct heif_encoder_parameter rav1e_encoder_params[MAX_NPARAMETERS]; static const struct heif_encoder_parameter* rav1e_encoder_parameter_ptrs[MAX_NPARAMETERS + 1]; static void rav1e_init_parameters() { struct heif_encoder_parameter* p = rav1e_encoder_params; const struct heif_encoder_parameter** d = rav1e_encoder_parameter_ptrs; int i = 0; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_speed; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 8; p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 0; p->integer.maximum = 10; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_threads; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 4; p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 1; p->integer.maximum = 16; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = "tile-rows"; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 4; p->has_default = true; p->integer.have_minimum_maximum = false; p->integer.valid_values = valid_tile_num_values; p->integer.num_valid_values = 7; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = "tile-cols"; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 4; p->has_default = true; p->integer.have_minimum_maximum = false; p->integer.valid_values = valid_tile_num_values; p->integer.num_valid_values = 7; d[i++] = p++; /* assert(i < MAX_NPARAMETERS); p->version = 2; p->name = heif_encoder_parameter_name_quality; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 50; p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 0; p->integer.maximum = 100; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; */ /* assert(i < MAX_NPARAMETERS); p->version = 2; p->name = heif_encoder_parameter_name_lossless; p->type = heif_encoder_parameter_type_boolean; p->boolean.default_value = false; p->has_default = true; d[i++] = p++; */ assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_chroma; p->type = heif_encoder_parameter_type_string; p->string.default_value = "420"; p->has_default = true; p->string.valid_values = kParam_chroma_valid_values; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_min_q; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 0; p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 0; p->integer.maximum = 255; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; d[i++] = nullptr; } const struct heif_encoder_parameter** rav1e_list_parameters(void* encoder) { return rav1e_encoder_parameter_ptrs; } static void rav1e_init_plugin() { rav1e_init_parameters(); } static void rav1e_cleanup_plugin() { } struct heif_error rav1e_new_encoder(void** enc) { auto* encoder = new encoder_struct_rav1e(); struct heif_error err = heif_error_ok; *enc = encoder; // set default parameters rav1e_set_default_parameters(encoder); return err; } void rav1e_free_encoder(void* encoder_raw) { auto* encoder = (struct encoder_struct_rav1e*) encoder_raw; delete encoder; } struct heif_error rav1e_set_parameter_quality(void* encoder_raw, int quality) { auto* encoder = (struct encoder_struct_rav1e*) encoder_raw; if (quality < 0 || quality > 100) { return heif_error_invalid_parameter_value; } encoder->quality = quality; return heif_error_ok; } struct heif_error rav1e_get_parameter_quality(void* encoder_raw, int* quality) { auto* encoder = (struct encoder_struct_rav1e*) encoder_raw; *quality = encoder->quality; return heif_error_ok; } struct heif_error rav1e_set_parameter_lossless(void* encoder_raw, int enable) { struct encoder_struct_rav1e* encoder = (struct encoder_struct_rav1e*) encoder_raw; if (enable) { encoder->min_q = 0; } return heif_error_ok; } struct heif_error rav1e_get_parameter_lossless(void* encoder_raw, int* enable) { struct encoder_struct_rav1e* encoder = (struct encoder_struct_rav1e*) encoder_raw; *enable = (encoder->min_q == 0); return heif_error_ok; } struct heif_error rav1e_set_parameter_logging_level(void* encoder_raw, int logging) { #if 0 struct encoder_struct_x265* encoder = (struct encoder_struct_x265*)encoder_raw; if (logging<0 || logging>4) { return heif_error_invalid_parameter_value; } encoder->logLevel = logging; #endif return heif_error_ok; } struct heif_error rav1e_get_parameter_logging_level(void* encoder_raw, int* loglevel) { #if 0 struct encoder_struct_x265* encoder = (struct encoder_struct_x265*)encoder_raw; *loglevel = encoder->logLevel; #else *loglevel = 0; #endif return heif_error_ok; } #define set_value(paramname, paramvar) if (strcmp(name, paramname)==0) { encoder->paramvar = value; return heif_error_ok; } #define get_value(paramname, paramvar) if (strcmp(name, paramname)==0) { *value = encoder->paramvar; return heif_error_ok; } struct heif_error rav1e_set_parameter_integer(void* encoder_raw, const char* name, int value) { struct encoder_struct_rav1e* encoder = (struct encoder_struct_rav1e*) encoder_raw; if (strcmp(name, heif_encoder_parameter_name_quality) == 0) { return rav1e_set_parameter_quality(encoder, value); } else if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return rav1e_set_parameter_lossless(encoder, value); } set_value(kParam_min_q, min_q); set_value(kParam_threads, threads); set_value(kParam_speed, speed); set_value("tile-rows", tile_rows); set_value("tile-cols", tile_cols); return heif_error_unsupported_parameter; } struct heif_error rav1e_get_parameter_integer(void* encoder_raw, const char* name, int* value) { struct encoder_struct_rav1e* encoder = (struct encoder_struct_rav1e*) encoder_raw; if (strcmp(name, heif_encoder_parameter_name_quality) == 0) { return rav1e_get_parameter_quality(encoder, value); } else if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return rav1e_get_parameter_lossless(encoder, value); } get_value(kParam_min_q, min_q); get_value(kParam_threads, threads); get_value(kParam_speed, speed); get_value("tile-rows", tile_rows); get_value("tile-cols", tile_cols); return heif_error_unsupported_parameter; } struct heif_error rav1e_set_parameter_boolean(void* encoder_raw, const char* name, int value) { auto* encoder = (struct encoder_struct_rav1e*) encoder_raw; if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return rav1e_set_parameter_lossless(encoder, value); } //set_value(kParam_realtime, realtime_mode); return heif_error_unsupported_parameter; } struct heif_error rav1e_get_parameter_boolean(void* encoder_raw, const char* name, int* value) { auto* encoder = (struct encoder_struct_rav1e*) encoder_raw; if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return rav1e_get_parameter_lossless(encoder, value); } //get_value(kParam_realtime, realtime_mode); return heif_error_unsupported_parameter; } struct heif_error rav1e_set_parameter_string(void* encoder_raw, const char* name, const char* value) { auto* encoder = (struct encoder_struct_rav1e*) encoder_raw; if (strcmp(name, kParam_chroma) == 0) { if (strcmp(value, "420") == 0) { encoder->chroma = heif_chroma_420; return heif_error_ok; } else if (strcmp(value, "422") == 0) { encoder->chroma = heif_chroma_422; return heif_error_ok; } else if (strcmp(value, "444") == 0) { encoder->chroma = heif_chroma_444; return heif_error_ok; } else { return heif_error_invalid_parameter_value; } } return heif_error_unsupported_parameter; } static void save_strcpy(char* dst, int dst_size, const char* src) { strncpy(dst, src, dst_size - 1); dst[dst_size - 1] = 0; } struct heif_error rav1e_get_parameter_string(void* encoder_raw, const char* name, char* value, int value_size) { struct encoder_struct_rav1e* encoder = (struct encoder_struct_rav1e*) encoder_raw; switch (encoder->chroma) { case heif_chroma_420: save_strcpy(value, value_size, "420"); break; case heif_chroma_422: save_strcpy(value, value_size, "422"); break; case heif_chroma_444: save_strcpy(value, value_size, "444"); break; default: assert(false); return heif_error_invalid_parameter_value; } return heif_error_unsupported_parameter; } static void rav1e_set_default_parameters(void* encoder) { for (const struct heif_encoder_parameter** p = rav1e_encoder_parameter_ptrs; *p; p++) { const struct heif_encoder_parameter* param = *p; if (param->has_default) { switch (param->type) { case heif_encoder_parameter_type_integer: rav1e_set_parameter_integer(encoder, param->name, param->integer.default_value); break; case heif_encoder_parameter_type_boolean: rav1e_set_parameter_boolean(encoder, param->name, param->boolean.default_value); break; case heif_encoder_parameter_type_string: rav1e_set_parameter_string(encoder, param->name, param->string.default_value); break; } } } } void rav1e_query_input_colorspace(heif_colorspace* colorspace, heif_chroma* chroma) { *colorspace = heif_colorspace_YCbCr; *chroma = heif_chroma_420; } void rav1e_query_input_colorspace2(void* encoder_raw, heif_colorspace* colorspace, heif_chroma* chroma) { auto* encoder = (struct encoder_struct_rav1e*) encoder_raw; *colorspace = heif_colorspace_YCbCr; *chroma = encoder->chroma; } void rav1e_query_encoded_size(void* encoder, uint32_t input_width, uint32_t input_height, uint32_t* encoded_width, uint32_t* encoded_height) { *encoded_width = std::max(input_width, 16U); *encoded_height = std::max(input_height, 16U); } struct heif_error rav1e_encode_image(void* encoder_raw, const struct heif_image* image, heif_image_input_class input_class) { auto* encoder = (struct encoder_struct_rav1e*) encoder_raw; // --- round image size to minimum size uint32_t rounded_width, rounded_height; rav1e_query_encoded_size(encoder, image->image->get_width(), image->image->get_height(), &rounded_width, &rounded_height); bool success = image->image->extend_padding_to_size(rounded_width, rounded_height); if (!success) { struct heif_error err = { heif_error_Memory_allocation_error, heif_suberror_Unspecified, kError_out_of_memory }; return err; } const heif_chroma chroma = heif_image_get_chroma_format(image); uint8_t yShift = 0; RaChromaSampling chromaSampling; RaPixelRange rav1eRange; if (input_class == heif_image_input_class_alpha) { chromaSampling = RA_CHROMA_SAMPLING_CS420; // I can't seem to get RA_CHROMA_SAMPLING_CS400 to work right now, unfortunately } else { switch (chroma) { case heif_chroma_444: chromaSampling = RA_CHROMA_SAMPLING_CS444; break; case heif_chroma_422: chromaSampling = RA_CHROMA_SAMPLING_CS422; break; case heif_chroma_420: chromaSampling = RA_CHROMA_SAMPLING_CS420; yShift = 1; break; default: return heif_error_codec_library_error; } } rav1eRange = RA_PIXEL_RANGE_FULL; auto nclx = image->image->get_color_profile_nclx(); if (nclx) { rav1eRange = nclx->get_full_range_flag() ? RA_PIXEL_RANGE_FULL : RA_PIXEL_RANGE_LIMITED; } int bitDepth = image->image->get_bits_per_pixel(heif_channel_Y); auto rav1eConfigRaw = rav1e_config_default(); auto rav1eConfig = std::shared_ptr(rav1eConfigRaw, [](RaConfig* c) { rav1e_config_unref(c); }); if (rav1e_config_set_pixel_format(rav1eConfig.get(), (uint8_t) bitDepth, chromaSampling, RA_CHROMA_SAMPLE_POSITION_UNKNOWN, rav1eRange) < 0) { return heif_error_codec_library_error; } if (rav1e_config_parse(rav1eConfig.get(), "still_picture", "true") == -1) { return heif_error_codec_library_error; } if (rav1e_config_parse_int(rav1eConfig.get(), "width", image->image->get_width()) == -1) { return heif_error_codec_library_error; } if (rav1e_config_parse_int(rav1eConfig.get(), "height", image->image->get_height()) == -1) { return heif_error_codec_library_error; } if (rav1e_config_parse_int(rav1eConfig.get(), "threads", encoder->threads) == -1) { return heif_error_codec_library_error; } if (nclx && (input_class == heif_image_input_class_normal || input_class == heif_image_input_class_thumbnail)) { if (rav1e_config_set_color_description(rav1eConfig.get(), (RaMatrixCoefficients) nclx->get_matrix_coefficients(), (RaColorPrimaries) nclx->get_colour_primaries(), (RaTransferCharacteristics) nclx->get_transfer_characteristics()) == -1) { return heif_error_codec_library_error; } } if (rav1e_config_parse_int(rav1eConfig.get(), "min_quantizer", encoder->min_q) == -1) { return heif_error_codec_library_error; } int base_quantizer = ((100 - encoder->quality) * 255 + 50) / 100; if (rav1e_config_parse_int(rav1eConfig.get(), "quantizer", base_quantizer) == -1) { return heif_error_codec_library_error; } if (encoder->tile_rows != 1) { if (rav1e_config_parse_int(rav1eConfig.get(), "tile_rows", encoder->tile_rows) == -1) { return heif_error_codec_library_error; } } if (encoder->tile_cols != 1) { if (rav1e_config_parse_int(rav1eConfig.get(), "tile_cols", encoder->tile_cols) == -1) { return heif_error_codec_library_error; } } /*if (encoder->speed != -1)*/ { if (rav1e_config_parse_int(rav1eConfig.get(), "speed", encoder->speed) == -1) { return heif_error_codec_library_error; } } auto colorProfile = image->image->get_color_profile_nclx(); if (auto nclxProfile = std::dynamic_pointer_cast(colorProfile)) { rav1e_config_set_color_description(rav1eConfig.get(), (RaMatrixCoefficients) nclxProfile->matrix_coefficients, (RaColorPrimaries) nclxProfile->color_primaries, (RaTransferCharacteristics) nclxProfile->transfer_characteristics); } RaContext* rav1eContextRaw = rav1e_context_new(rav1eConfig.get()); if (!rav1eContextRaw) { return heif_error_codec_library_error; } auto rav1eContext = std::shared_ptr(rav1eContextRaw, [](RaContext* ctx) { rav1e_context_unref(ctx); }); // --- copy libheif image to rav1e image auto rav1eFrameRaw = rav1e_frame_new(rav1eContext.get()); auto rav1eFrame = std::shared_ptr(rav1eFrameRaw, [](RaFrame* frm) { rav1e_frame_unref(frm); }); int byteWidth = (bitDepth > 8) ? 2 : 1; // if (input_class == heif_image_input_class_alpha) { //} else { int strideY; const uint8_t* Y = image->image->get_plane(heif_channel_Y, &strideY); int strideCb; const uint8_t* Cb = image->image->get_plane(heif_channel_Cb, &strideCb); int strideCr; const uint8_t* Cr = image->image->get_plane(heif_channel_Cr, &strideCr); uint32_t height = image->image->get_height(); uint32_t uvHeight = (height + yShift) >> yShift; rav1e_frame_fill_plane(rav1eFrame.get(), 0, Y, strideY * height, strideY, byteWidth); rav1e_frame_fill_plane(rav1eFrame.get(), 1, Cb, strideCb * uvHeight, strideCb, byteWidth); rav1e_frame_fill_plane(rav1eFrame.get(), 2, Cr, strideCr * uvHeight, strideCr, byteWidth); } RaEncoderStatus encoderStatus = rav1e_send_frame(rav1eContext.get(), rav1eFrame.get()); if (encoderStatus != 0) { return heif_error_codec_library_error; } // flush encoder encoderStatus = rav1e_send_frame(rav1eContext.get(), nullptr); if (encoderStatus != 0) { return heif_error_codec_library_error; } RaPacket* pkt = nullptr; encoderStatus = rav1e_receive_packet(rav1eContext.get(), &pkt); if (encoderStatus != 0) { return heif_error_codec_library_error; } if (pkt && pkt->data && (pkt->len > 0)) { encoder->compressed_data.resize(pkt->len); memcpy(encoder->compressed_data.data(), pkt->data, pkt->len); encoder->data_read = false; } if (pkt) { rav1e_packet_unref(pkt); } return heif_error_ok; } struct heif_error rav1e_get_compressed_data(void* encoder_raw, uint8_t** data, int* size, enum heif_encoded_data_type* type) { auto* encoder = (struct encoder_struct_rav1e*) encoder_raw; if (encoder->data_read) { *data = nullptr; *size = 0; } else { *data = encoder->compressed_data.data(); *size = (int) encoder->compressed_data.size(); encoder->data_read = true; } return heif_error_ok; } static const struct heif_encoder_plugin encoder_plugin_rav1e { /* plugin_api_version */ 3, /* compression_format */ heif_compression_AV1, /* id_name */ "rav1e", /* priority */ RAV1E_PLUGIN_PRIORITY, /* supports_lossy_compression */ true, /* supports_lossless_compression */ true, /* get_plugin_name */ rav1e_plugin_name, /* init_plugin */ rav1e_init_plugin, /* cleanup_plugin */ rav1e_cleanup_plugin, /* new_encoder */ rav1e_new_encoder, /* free_encoder */ rav1e_free_encoder, /* set_parameter_quality */ rav1e_set_parameter_quality, /* get_parameter_quality */ rav1e_get_parameter_quality, /* set_parameter_lossless */ rav1e_set_parameter_lossless, /* get_parameter_lossless */ rav1e_get_parameter_lossless, /* set_parameter_logging_level */ rav1e_set_parameter_logging_level, /* get_parameter_logging_level */ rav1e_get_parameter_logging_level, /* list_parameters */ rav1e_list_parameters, /* set_parameter_integer */ rav1e_set_parameter_integer, /* get_parameter_integer */ rav1e_get_parameter_integer, /* set_parameter_boolean */ rav1e_set_parameter_boolean, /* get_parameter_boolean */ rav1e_get_parameter_boolean, /* set_parameter_string */ rav1e_set_parameter_string, /* get_parameter_string */ rav1e_get_parameter_string, /* query_input_colorspace */ rav1e_query_input_colorspace, /* encode_image */ rav1e_encode_image, /* get_compressed_data */ rav1e_get_compressed_data, /* query_input_colorspace (v2) */ rav1e_query_input_colorspace2, /* query_encoded_size (v3) */ rav1e_query_encoded_size }; const struct heif_encoder_plugin* get_encoder_plugin_rav1e() { return &encoder_plugin_rav1e; } libheif-1.12.0/libheif/Makefile.in0000664000175000017500000100266314044226076013604 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) @HAVE_AOM_TRUE@am__append_1 = $(aom_LIBS) @HAVE_LIBDE265_TRUE@am__append_2 = $(libde265_LIBS) @HAVE_X265_TRUE@am__append_3 = $(x265_LIBS) @HAVE_RAV1E_TRUE@am__append_4 = $(rav1e_LIBS) @HAVE_DAV1D_TRUE@am__append_5 = $(dav1d_LIBS) @MINGW_TRUE@am__append_6 = -no-undefined @HAVE_AOM_DECODER_TRUE@am__append_7 = \ @HAVE_AOM_DECODER_TRUE@ heif_decoder_aom.cc \ @HAVE_AOM_DECODER_TRUE@ heif_decoder_aom.h @HAVE_AOM_ENCODER_TRUE@am__append_8 = \ @HAVE_AOM_ENCODER_TRUE@ heif_encoder_aom.cc \ @HAVE_AOM_ENCODER_TRUE@ heif_encoder_aom.h @HAVE_LIBDE265_TRUE@am__append_9 = \ @HAVE_LIBDE265_TRUE@ heif_decoder_libde265.cc \ @HAVE_LIBDE265_TRUE@ heif_decoder_libde265.h @HAVE_RAV1E_TRUE@am__append_10 = \ @HAVE_RAV1E_TRUE@ heif_encoder_rav1e.cc \ @HAVE_RAV1E_TRUE@ heif_encoder_rav1e.h @HAVE_DAV1D_TRUE@am__append_11 = \ @HAVE_DAV1D_TRUE@ heif_decoder_dav1d.cc \ @HAVE_DAV1D_TRUE@ heif_decoder_dav1d.h @HAVE_X265_TRUE@am__append_12 = \ @HAVE_X265_TRUE@ heif_encoder_x265.cc \ @HAVE_X265_TRUE@ heif_encoder_x265.h @HAVE_VISIBILITY_TRUE@am__append_13 = -DHAVE_VISIBILITY @HAVE_VISIBILITY_TRUE@am__append_14 = -DHAVE_VISIBILITY @ENABLE_LIBFUZZER_TRUE@am__append_15 = box-fuzzer \ @ENABLE_LIBFUZZER_TRUE@ color-conversion-fuzzer @ENABLE_LIBFUZZER_TRUE@@HAVE_LIBDE265_TRUE@am__append_16 = file-fuzzer @ENABLE_LIBFUZZER_TRUE@@HAVE_X265_TRUE@am__append_17 = encoder-fuzzer subdir = libheif ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_c_cxx_compile_flags.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.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/visibility.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(libheif_la_HEADERS) \ $(noinst_HEADERS) $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = heif_version.h CONFIG_CLEAN_VPATH_FILES = @ENABLE_LIBFUZZER_TRUE@am__EXEEXT_1 = box-fuzzer$(EXEEXT) \ @ENABLE_LIBFUZZER_TRUE@ color-conversion-fuzzer$(EXEEXT) @ENABLE_LIBFUZZER_TRUE@@HAVE_LIBDE265_TRUE@am__EXEEXT_2 = file-fuzzer$(EXEEXT) @ENABLE_LIBFUZZER_TRUE@@HAVE_X265_TRUE@am__EXEEXT_3 = encoder-fuzzer$(EXEEXT) am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(libheif_ladir)" PROGRAMS = $(bin_PROGRAMS) LIBRARIES = $(noinst_LIBRARIES) 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; }; \ } LTLIBRARIES = $(lib_LTLIBRARIES) ARFLAGS = cru AM_V_AR = $(am__v_AR_@AM_V@) am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = libfuzzers_a_AR = $(AR) $(ARFLAGS) libfuzzers_a_LIBADD = am__libfuzzers_a_SOURCES_DIST = box_fuzzer.cc \ color_conversion_fuzzer.cc encoder_fuzzer.cc file_fuzzer.cc @ENABLE_LIBFUZZER_FALSE@am_libfuzzers_a_OBJECTS = \ @ENABLE_LIBFUZZER_FALSE@ box_fuzzer.$(OBJEXT) \ @ENABLE_LIBFUZZER_FALSE@ color_conversion_fuzzer.$(OBJEXT) \ @ENABLE_LIBFUZZER_FALSE@ encoder_fuzzer.$(OBJEXT) \ @ENABLE_LIBFUZZER_FALSE@ file_fuzzer.$(OBJEXT) libfuzzers_a_OBJECTS = $(am_libfuzzers_a_OBJECTS) am__DEPENDENCIES_1 = @HAVE_AOM_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) @HAVE_LIBDE265_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) @HAVE_X265_TRUE@am__DEPENDENCIES_4 = $(am__DEPENDENCIES_1) @HAVE_RAV1E_TRUE@am__DEPENDENCIES_5 = $(am__DEPENDENCIES_1) @HAVE_DAV1D_TRUE@am__DEPENDENCIES_6 = $(am__DEPENDENCIES_1) am__DEPENDENCIES_7 = $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_3) \ $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_5) \ $(am__DEPENDENCIES_6) libheif_la_DEPENDENCIES = $(am__DEPENDENCIES_7) am__libheif_la_SOURCES_DIST = bitstream.h bitstream.cc box.h box.cc \ error.h error.cc heif_api_structs.h heif_file.h heif_file.cc \ heif_image.h heif_image.cc heif_limits.h heif.h heif.cc \ heif_context.h heif_context.cc heif_hevc.h heif_hevc.cc \ heif_avif.h heif_avif.cc heif_plugin_registry.h \ heif_plugin_registry.cc heif_plugin.h heif_plugin.cc \ heif_colorconversion.h heif_colorconversion.cc logging.h \ nclx.cc nclx.h heif_decoder_aom.cc heif_decoder_aom.h \ heif_encoder_aom.cc heif_encoder_aom.h \ heif_decoder_libde265.cc heif_decoder_libde265.h \ heif_encoder_rav1e.cc heif_encoder_rav1e.h \ heif_decoder_dav1d.cc heif_decoder_dav1d.h \ heif_encoder_x265.cc heif_encoder_x265.h @HAVE_AOM_DECODER_TRUE@am__objects_1 = libheif_la-heif_decoder_aom.lo @HAVE_AOM_ENCODER_TRUE@am__objects_2 = libheif_la-heif_encoder_aom.lo @HAVE_LIBDE265_TRUE@am__objects_3 = \ @HAVE_LIBDE265_TRUE@ libheif_la-heif_decoder_libde265.lo @HAVE_RAV1E_TRUE@am__objects_4 = libheif_la-heif_encoder_rav1e.lo @HAVE_DAV1D_TRUE@am__objects_5 = libheif_la-heif_decoder_dav1d.lo @HAVE_X265_TRUE@am__objects_6 = libheif_la-heif_encoder_x265.lo am_libheif_la_OBJECTS = libheif_la-bitstream.lo libheif_la-box.lo \ libheif_la-error.lo libheif_la-heif_file.lo \ libheif_la-heif_image.lo libheif_la-heif.lo \ libheif_la-heif_context.lo libheif_la-heif_hevc.lo \ libheif_la-heif_avif.lo libheif_la-heif_plugin_registry.lo \ libheif_la-heif_plugin.lo libheif_la-heif_colorconversion.lo \ libheif_la-nclx.lo $(am__objects_1) $(am__objects_2) \ $(am__objects_3) $(am__objects_4) $(am__objects_5) \ $(am__objects_6) libheif_la_OBJECTS = $(am_libheif_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 = libheif_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(libheif_la_CXXFLAGS) \ $(CXXFLAGS) $(libheif_la_LDFLAGS) $(LDFLAGS) -o $@ am__box_fuzzer_SOURCES_DIST = bitstream.h bitstream.cc box.h box.cc \ error.h error.cc heif_api_structs.h heif_file.h heif_file.cc \ heif_image.h heif_image.cc heif_limits.h heif.h heif.cc \ heif_context.h heif_context.cc heif_hevc.h heif_hevc.cc \ heif_avif.h heif_avif.cc heif_plugin_registry.h \ heif_plugin_registry.cc heif_plugin.h heif_plugin.cc \ heif_colorconversion.h heif_colorconversion.cc logging.h \ nclx.cc nclx.h heif_decoder_aom.cc heif_decoder_aom.h \ heif_encoder_aom.cc heif_encoder_aom.h \ heif_decoder_libde265.cc heif_decoder_libde265.h \ heif_encoder_rav1e.cc heif_encoder_rav1e.h \ heif_decoder_dav1d.cc heif_decoder_dav1d.h \ heif_encoder_x265.cc heif_encoder_x265.h box_fuzzer.cc @HAVE_AOM_DECODER_TRUE@am__objects_7 = \ @HAVE_AOM_DECODER_TRUE@ box_fuzzer-heif_decoder_aom.$(OBJEXT) @HAVE_AOM_ENCODER_TRUE@am__objects_8 = \ @HAVE_AOM_ENCODER_TRUE@ box_fuzzer-heif_encoder_aom.$(OBJEXT) @HAVE_LIBDE265_TRUE@am__objects_9 = box_fuzzer-heif_decoder_libde265.$(OBJEXT) @HAVE_RAV1E_TRUE@am__objects_10 = \ @HAVE_RAV1E_TRUE@ box_fuzzer-heif_encoder_rav1e.$(OBJEXT) @HAVE_DAV1D_TRUE@am__objects_11 = \ @HAVE_DAV1D_TRUE@ box_fuzzer-heif_decoder_dav1d.$(OBJEXT) @HAVE_X265_TRUE@am__objects_12 = \ @HAVE_X265_TRUE@ box_fuzzer-heif_encoder_x265.$(OBJEXT) am__objects_13 = box_fuzzer-bitstream.$(OBJEXT) \ box_fuzzer-box.$(OBJEXT) box_fuzzer-error.$(OBJEXT) \ box_fuzzer-heif_file.$(OBJEXT) box_fuzzer-heif_image.$(OBJEXT) \ box_fuzzer-heif.$(OBJEXT) box_fuzzer-heif_context.$(OBJEXT) \ box_fuzzer-heif_hevc.$(OBJEXT) box_fuzzer-heif_avif.$(OBJEXT) \ box_fuzzer-heif_plugin_registry.$(OBJEXT) \ box_fuzzer-heif_plugin.$(OBJEXT) \ box_fuzzer-heif_colorconversion.$(OBJEXT) \ box_fuzzer-nclx.$(OBJEXT) $(am__objects_7) $(am__objects_8) \ $(am__objects_9) $(am__objects_10) $(am__objects_11) \ $(am__objects_12) am_box_fuzzer_OBJECTS = $(am__objects_13) \ box_fuzzer-box_fuzzer.$(OBJEXT) box_fuzzer_OBJECTS = $(am_box_fuzzer_OBJECTS) box_fuzzer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(box_fuzzer_CXXFLAGS) \ $(CXXFLAGS) $(box_fuzzer_LDFLAGS) $(LDFLAGS) -o $@ am__color_conversion_fuzzer_SOURCES_DIST = bitstream.h bitstream.cc \ box.h box.cc error.h error.cc heif_api_structs.h heif_file.h \ heif_file.cc heif_image.h heif_image.cc heif_limits.h heif.h \ heif.cc heif_context.h heif_context.cc heif_hevc.h \ heif_hevc.cc heif_avif.h heif_avif.cc heif_plugin_registry.h \ heif_plugin_registry.cc heif_plugin.h heif_plugin.cc \ heif_colorconversion.h heif_colorconversion.cc logging.h \ nclx.cc nclx.h heif_decoder_aom.cc heif_decoder_aom.h \ heif_encoder_aom.cc heif_encoder_aom.h \ heif_decoder_libde265.cc heif_decoder_libde265.h \ heif_encoder_rav1e.cc heif_encoder_rav1e.h \ heif_decoder_dav1d.cc heif_decoder_dav1d.h \ heif_encoder_x265.cc heif_encoder_x265.h \ color_conversion_fuzzer.cc @HAVE_AOM_DECODER_TRUE@am__objects_14 = color_conversion_fuzzer-heif_decoder_aom.$(OBJEXT) @HAVE_AOM_ENCODER_TRUE@am__objects_15 = color_conversion_fuzzer-heif_encoder_aom.$(OBJEXT) @HAVE_LIBDE265_TRUE@am__objects_16 = color_conversion_fuzzer-heif_decoder_libde265.$(OBJEXT) @HAVE_RAV1E_TRUE@am__objects_17 = color_conversion_fuzzer-heif_encoder_rav1e.$(OBJEXT) @HAVE_DAV1D_TRUE@am__objects_18 = color_conversion_fuzzer-heif_decoder_dav1d.$(OBJEXT) @HAVE_X265_TRUE@am__objects_19 = color_conversion_fuzzer-heif_encoder_x265.$(OBJEXT) am__objects_20 = color_conversion_fuzzer-bitstream.$(OBJEXT) \ color_conversion_fuzzer-box.$(OBJEXT) \ color_conversion_fuzzer-error.$(OBJEXT) \ color_conversion_fuzzer-heif_file.$(OBJEXT) \ color_conversion_fuzzer-heif_image.$(OBJEXT) \ color_conversion_fuzzer-heif.$(OBJEXT) \ color_conversion_fuzzer-heif_context.$(OBJEXT) \ color_conversion_fuzzer-heif_hevc.$(OBJEXT) \ color_conversion_fuzzer-heif_avif.$(OBJEXT) \ color_conversion_fuzzer-heif_plugin_registry.$(OBJEXT) \ color_conversion_fuzzer-heif_plugin.$(OBJEXT) \ color_conversion_fuzzer-heif_colorconversion.$(OBJEXT) \ color_conversion_fuzzer-nclx.$(OBJEXT) $(am__objects_14) \ $(am__objects_15) $(am__objects_16) $(am__objects_17) \ $(am__objects_18) $(am__objects_19) am_color_conversion_fuzzer_OBJECTS = $(am__objects_20) \ color_conversion_fuzzer-color_conversion_fuzzer.$(OBJEXT) color_conversion_fuzzer_OBJECTS = \ $(am_color_conversion_fuzzer_OBJECTS) color_conversion_fuzzer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) \ $(color_conversion_fuzzer_LDFLAGS) $(LDFLAGS) -o $@ am__encoder_fuzzer_SOURCES_DIST = bitstream.h bitstream.cc box.h \ box.cc error.h error.cc heif_api_structs.h heif_file.h \ heif_file.cc heif_image.h heif_image.cc heif_limits.h heif.h \ heif.cc heif_context.h heif_context.cc heif_hevc.h \ heif_hevc.cc heif_avif.h heif_avif.cc heif_plugin_registry.h \ heif_plugin_registry.cc heif_plugin.h heif_plugin.cc \ heif_colorconversion.h heif_colorconversion.cc logging.h \ nclx.cc nclx.h heif_decoder_aom.cc heif_decoder_aom.h \ heif_encoder_aom.cc heif_encoder_aom.h \ heif_decoder_libde265.cc heif_decoder_libde265.h \ heif_encoder_rav1e.cc heif_encoder_rav1e.h \ heif_decoder_dav1d.cc heif_decoder_dav1d.h \ heif_encoder_x265.cc heif_encoder_x265.h encoder_fuzzer.cc @HAVE_AOM_DECODER_TRUE@am__objects_21 = encoder_fuzzer-heif_decoder_aom.$(OBJEXT) @HAVE_AOM_ENCODER_TRUE@am__objects_22 = encoder_fuzzer-heif_encoder_aom.$(OBJEXT) @HAVE_LIBDE265_TRUE@am__objects_23 = encoder_fuzzer-heif_decoder_libde265.$(OBJEXT) @HAVE_RAV1E_TRUE@am__objects_24 = \ @HAVE_RAV1E_TRUE@ encoder_fuzzer-heif_encoder_rav1e.$(OBJEXT) @HAVE_DAV1D_TRUE@am__objects_25 = \ @HAVE_DAV1D_TRUE@ encoder_fuzzer-heif_decoder_dav1d.$(OBJEXT) @HAVE_X265_TRUE@am__objects_26 = \ @HAVE_X265_TRUE@ encoder_fuzzer-heif_encoder_x265.$(OBJEXT) am__objects_27 = encoder_fuzzer-bitstream.$(OBJEXT) \ encoder_fuzzer-box.$(OBJEXT) encoder_fuzzer-error.$(OBJEXT) \ encoder_fuzzer-heif_file.$(OBJEXT) \ encoder_fuzzer-heif_image.$(OBJEXT) \ encoder_fuzzer-heif.$(OBJEXT) \ encoder_fuzzer-heif_context.$(OBJEXT) \ encoder_fuzzer-heif_hevc.$(OBJEXT) \ encoder_fuzzer-heif_avif.$(OBJEXT) \ encoder_fuzzer-heif_plugin_registry.$(OBJEXT) \ encoder_fuzzer-heif_plugin.$(OBJEXT) \ encoder_fuzzer-heif_colorconversion.$(OBJEXT) \ encoder_fuzzer-nclx.$(OBJEXT) $(am__objects_21) \ $(am__objects_22) $(am__objects_23) $(am__objects_24) \ $(am__objects_25) $(am__objects_26) am_encoder_fuzzer_OBJECTS = $(am__objects_27) \ encoder_fuzzer-encoder_fuzzer.$(OBJEXT) encoder_fuzzer_OBJECTS = $(am_encoder_fuzzer_OBJECTS) encoder_fuzzer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) \ $(encoder_fuzzer_LDFLAGS) $(LDFLAGS) -o $@ am__file_fuzzer_SOURCES_DIST = bitstream.h bitstream.cc box.h box.cc \ error.h error.cc heif_api_structs.h heif_file.h heif_file.cc \ heif_image.h heif_image.cc heif_limits.h heif.h heif.cc \ heif_context.h heif_context.cc heif_hevc.h heif_hevc.cc \ heif_avif.h heif_avif.cc heif_plugin_registry.h \ heif_plugin_registry.cc heif_plugin.h heif_plugin.cc \ heif_colorconversion.h heif_colorconversion.cc logging.h \ nclx.cc nclx.h heif_decoder_aom.cc heif_decoder_aom.h \ heif_encoder_aom.cc heif_encoder_aom.h \ heif_decoder_libde265.cc heif_decoder_libde265.h \ heif_encoder_rav1e.cc heif_encoder_rav1e.h \ heif_decoder_dav1d.cc heif_decoder_dav1d.h \ heif_encoder_x265.cc heif_encoder_x265.h file_fuzzer.cc @HAVE_AOM_DECODER_TRUE@am__objects_28 = \ @HAVE_AOM_DECODER_TRUE@ file_fuzzer-heif_decoder_aom.$(OBJEXT) @HAVE_AOM_ENCODER_TRUE@am__objects_29 = \ @HAVE_AOM_ENCODER_TRUE@ file_fuzzer-heif_encoder_aom.$(OBJEXT) @HAVE_LIBDE265_TRUE@am__objects_30 = file_fuzzer-heif_decoder_libde265.$(OBJEXT) @HAVE_RAV1E_TRUE@am__objects_31 = \ @HAVE_RAV1E_TRUE@ file_fuzzer-heif_encoder_rav1e.$(OBJEXT) @HAVE_DAV1D_TRUE@am__objects_32 = \ @HAVE_DAV1D_TRUE@ file_fuzzer-heif_decoder_dav1d.$(OBJEXT) @HAVE_X265_TRUE@am__objects_33 = \ @HAVE_X265_TRUE@ file_fuzzer-heif_encoder_x265.$(OBJEXT) am__objects_34 = file_fuzzer-bitstream.$(OBJEXT) \ file_fuzzer-box.$(OBJEXT) file_fuzzer-error.$(OBJEXT) \ file_fuzzer-heif_file.$(OBJEXT) \ file_fuzzer-heif_image.$(OBJEXT) file_fuzzer-heif.$(OBJEXT) \ file_fuzzer-heif_context.$(OBJEXT) \ file_fuzzer-heif_hevc.$(OBJEXT) \ file_fuzzer-heif_avif.$(OBJEXT) \ file_fuzzer-heif_plugin_registry.$(OBJEXT) \ file_fuzzer-heif_plugin.$(OBJEXT) \ file_fuzzer-heif_colorconversion.$(OBJEXT) \ file_fuzzer-nclx.$(OBJEXT) $(am__objects_28) $(am__objects_29) \ $(am__objects_30) $(am__objects_31) $(am__objects_32) \ $(am__objects_33) am_file_fuzzer_OBJECTS = $(am__objects_34) \ file_fuzzer-file_fuzzer.$(OBJEXT) file_fuzzer_OBJECTS = $(am_file_fuzzer_OBJECTS) file_fuzzer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(file_fuzzer_CXXFLAGS) \ $(CXXFLAGS) $(file_fuzzer_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__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/box_fuzzer-bitstream.Po \ ./$(DEPDIR)/box_fuzzer-box.Po \ ./$(DEPDIR)/box_fuzzer-box_fuzzer.Po \ ./$(DEPDIR)/box_fuzzer-error.Po ./$(DEPDIR)/box_fuzzer-heif.Po \ ./$(DEPDIR)/box_fuzzer-heif_avif.Po \ ./$(DEPDIR)/box_fuzzer-heif_colorconversion.Po \ ./$(DEPDIR)/box_fuzzer-heif_context.Po \ ./$(DEPDIR)/box_fuzzer-heif_decoder_aom.Po \ ./$(DEPDIR)/box_fuzzer-heif_decoder_dav1d.Po \ ./$(DEPDIR)/box_fuzzer-heif_decoder_libde265.Po \ ./$(DEPDIR)/box_fuzzer-heif_encoder_aom.Po \ ./$(DEPDIR)/box_fuzzer-heif_encoder_rav1e.Po \ ./$(DEPDIR)/box_fuzzer-heif_encoder_x265.Po \ ./$(DEPDIR)/box_fuzzer-heif_file.Po \ ./$(DEPDIR)/box_fuzzer-heif_hevc.Po \ ./$(DEPDIR)/box_fuzzer-heif_image.Po \ ./$(DEPDIR)/box_fuzzer-heif_plugin.Po \ ./$(DEPDIR)/box_fuzzer-heif_plugin_registry.Po \ ./$(DEPDIR)/box_fuzzer-nclx.Po ./$(DEPDIR)/box_fuzzer.Po \ ./$(DEPDIR)/color_conversion_fuzzer-bitstream.Po \ ./$(DEPDIR)/color_conversion_fuzzer-box.Po \ ./$(DEPDIR)/color_conversion_fuzzer-color_conversion_fuzzer.Po \ ./$(DEPDIR)/color_conversion_fuzzer-error.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_avif.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_colorconversion.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_context.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_aom.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_dav1d.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_libde265.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_aom.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_rav1e.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_x265.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_file.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_hevc.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_image.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_plugin.Po \ ./$(DEPDIR)/color_conversion_fuzzer-heif_plugin_registry.Po \ ./$(DEPDIR)/color_conversion_fuzzer-nclx.Po \ ./$(DEPDIR)/color_conversion_fuzzer.Po \ ./$(DEPDIR)/encoder_fuzzer-bitstream.Po \ ./$(DEPDIR)/encoder_fuzzer-box.Po \ ./$(DEPDIR)/encoder_fuzzer-encoder_fuzzer.Po \ ./$(DEPDIR)/encoder_fuzzer-error.Po \ ./$(DEPDIR)/encoder_fuzzer-heif.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_avif.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_colorconversion.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_context.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_decoder_aom.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_decoder_dav1d.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_decoder_libde265.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_encoder_aom.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_encoder_rav1e.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_encoder_x265.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_file.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_hevc.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_image.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_plugin.Po \ ./$(DEPDIR)/encoder_fuzzer-heif_plugin_registry.Po \ ./$(DEPDIR)/encoder_fuzzer-nclx.Po \ ./$(DEPDIR)/encoder_fuzzer.Po \ ./$(DEPDIR)/file_fuzzer-bitstream.Po \ ./$(DEPDIR)/file_fuzzer-box.Po \ ./$(DEPDIR)/file_fuzzer-error.Po \ ./$(DEPDIR)/file_fuzzer-file_fuzzer.Po \ ./$(DEPDIR)/file_fuzzer-heif.Po \ ./$(DEPDIR)/file_fuzzer-heif_avif.Po \ ./$(DEPDIR)/file_fuzzer-heif_colorconversion.Po \ ./$(DEPDIR)/file_fuzzer-heif_context.Po \ ./$(DEPDIR)/file_fuzzer-heif_decoder_aom.Po \ ./$(DEPDIR)/file_fuzzer-heif_decoder_dav1d.Po \ ./$(DEPDIR)/file_fuzzer-heif_decoder_libde265.Po \ ./$(DEPDIR)/file_fuzzer-heif_encoder_aom.Po \ ./$(DEPDIR)/file_fuzzer-heif_encoder_rav1e.Po \ ./$(DEPDIR)/file_fuzzer-heif_encoder_x265.Po \ ./$(DEPDIR)/file_fuzzer-heif_file.Po \ ./$(DEPDIR)/file_fuzzer-heif_hevc.Po \ ./$(DEPDIR)/file_fuzzer-heif_image.Po \ ./$(DEPDIR)/file_fuzzer-heif_plugin.Po \ ./$(DEPDIR)/file_fuzzer-heif_plugin_registry.Po \ ./$(DEPDIR)/file_fuzzer-nclx.Po ./$(DEPDIR)/file_fuzzer.Po \ ./$(DEPDIR)/libheif_la-bitstream.Plo \ ./$(DEPDIR)/libheif_la-box.Plo \ ./$(DEPDIR)/libheif_la-error.Plo \ ./$(DEPDIR)/libheif_la-heif.Plo \ ./$(DEPDIR)/libheif_la-heif_avif.Plo \ ./$(DEPDIR)/libheif_la-heif_colorconversion.Plo \ ./$(DEPDIR)/libheif_la-heif_context.Plo \ ./$(DEPDIR)/libheif_la-heif_decoder_aom.Plo \ ./$(DEPDIR)/libheif_la-heif_decoder_dav1d.Plo \ ./$(DEPDIR)/libheif_la-heif_decoder_libde265.Plo \ ./$(DEPDIR)/libheif_la-heif_encoder_aom.Plo \ ./$(DEPDIR)/libheif_la-heif_encoder_rav1e.Plo \ ./$(DEPDIR)/libheif_la-heif_encoder_x265.Plo \ ./$(DEPDIR)/libheif_la-heif_file.Plo \ ./$(DEPDIR)/libheif_la-heif_hevc.Plo \ ./$(DEPDIR)/libheif_la-heif_image.Plo \ ./$(DEPDIR)/libheif_la-heif_plugin.Plo \ ./$(DEPDIR)/libheif_la-heif_plugin_registry.Plo \ ./$(DEPDIR)/libheif_la-nclx.Plo am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = 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 = $(libfuzzers_a_SOURCES) $(libheif_la_SOURCES) \ $(box_fuzzer_SOURCES) $(color_conversion_fuzzer_SOURCES) \ $(encoder_fuzzer_SOURCES) $(file_fuzzer_SOURCES) DIST_SOURCES = $(am__libfuzzers_a_SOURCES_DIST) \ $(am__libheif_la_SOURCES_DIST) $(am__box_fuzzer_SOURCES_DIST) \ $(am__color_conversion_fuzzer_SOURCES_DIST) \ $(am__encoder_fuzzer_SOURCES_DIST) \ $(am__file_fuzzer_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(libheif_la_HEADERS) $(noinst_HEADERS) am__extra_recursive_targets = format-recursive test-recursive 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__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/heif_version.h.in \ $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_LIBFUZZER = @ENABLE_LIBFUZZER@ ENABLE_PARALLEL_TILE_DECODING = @ENABLE_PARALLEL_TILE_DECODING@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FUZZING_ENGINE = @FUZZING_ENGINE@ GO = @GO@ GREP = @GREP@ HAVE_CXX11 = @HAVE_CXX11@ HAVE_GO = @HAVE_GO@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBHEIF_AGE = @LIBHEIF_AGE@ LIBHEIF_CURRENT = @LIBHEIF_CURRENT@ LIBHEIF_REVISION = @LIBHEIF_REVISION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PROJECT_VERSION_MAJOR = @PROJECT_VERSION_MAJOR@ PROJECT_VERSION_MINOR = @PROJECT_VERSION_MINOR@ PROJECT_VERSION_PATCH = @PROJECT_VERSION_PATCH@ PROJECT_VERSION_TWEAK = @PROJECT_VERSION_TWEAK@ RANLIB = @RANLIB@ REQUIRES_PRIVATE = @REQUIRES_PRIVATE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WITH_EXAMPLES = @WITH_EXAMPLES@ 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_CXX = @ac_ct_CXX@ 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@ aom_CFLAGS = @aom_CFLAGS@ aom_LIBS = @aom_LIBS@ 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@ dav1d_CFLAGS = @dav1d_CFLAGS@ dav1d_LIBS = @dav1d_LIBS@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gdk_pixbuf_binary_version = @gdk_pixbuf_binary_version@ gdk_pixbuf_binarydir = @gdk_pixbuf_binarydir@ gdk_pixbuf_cache_file = @gdk_pixbuf_cache_file@ gdk_pixbuf_moduledir = @gdk_pixbuf_moduledir@ gdkpixbuf_CFLAGS = @gdkpixbuf_CFLAGS@ gdkpixbuf_LIBS = @gdkpixbuf_LIBS@ have_aom = @have_aom@ have_aom_decoder = @have_aom_decoder@ have_aom_encoder = @have_aom_encoder@ have_avif_decoder = @have_avif_decoder@ have_avif_encoder = @have_avif_encoder@ have_libde265 = @have_libde265@ have_rav1e = @have_rav1e@ have_x265 = @have_x265@ 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@ libde265_CFLAGS = @libde265_CFLAGS@ libde265_LIBS = @libde265_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libjpeg_CFLAGS = @libjpeg_CFLAGS@ libjpeg_LIBS = @libjpeg_LIBS@ libpng_CFLAGS = @libpng_CFLAGS@ libpng_LIBS = @libpng_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rav1e_CFLAGS = @rav1e_CFLAGS@ rav1e_LIBS = @rav1e_LIBS@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ x265_CFLAGS = @x265_CFLAGS@ x265_LIBS = @x265_LIBS@ AUTOMAKE_OPTIONS = subdir-objects lib_LTLIBRARIES = libheif.la libheif_ladir = \ $(includedir)/libheif ADDITIONAL_LIBS = $(am__append_1) $(am__append_2) $(am__append_3) \ $(am__append_4) $(am__append_5) libheif_la_CPPFLAGS = libheif_la_CFLAGS = $(CFLAG_VISIBILITY) -DLIBHEIF_EXPORTS \ $(am__append_13) libheif_la_CXXFLAGS = $(CFLAG_VISIBILITY) $(aom_CFLAGS) \ $(libde265_CFLAGS) $(x265_CFLAGS) $(dav1d_CFLAGS) \ $(rav1e_CFLAGS) -DLIBHEIF_EXPORTS -I$(top_srcdir) \ $(am__append_14) libheif_la_LIBADD = $(ADDITIONAL_LIBS) libheif_la_LDFLAGS = -version-info \ $(LIBHEIF_CURRENT):$(LIBHEIF_REVISION):$(LIBHEIF_AGE) \ $(am__append_6) libheif_la_SOURCES = bitstream.h bitstream.cc box.h box.cc error.h \ error.cc heif_api_structs.h heif_file.h heif_file.cc \ heif_image.h heif_image.cc heif_limits.h heif.h heif.cc \ heif_context.h heif_context.cc heif_hevc.h heif_hevc.cc \ heif_avif.h heif_avif.cc heif_plugin_registry.h \ heif_plugin_registry.cc heif_plugin.h heif_plugin.cc \ heif_colorconversion.h heif_colorconversion.cc logging.h \ nclx.cc nclx.h $(am__append_7) $(am__append_8) $(am__append_9) \ $(am__append_10) $(am__append_11) $(am__append_12) libheif_la_HEADERS = \ heif.h \ heif_plugin.h \ heif_version.h \ heif_cxx.h noinst_HEADERS = \ heif_emscripten.h @ENABLE_LIBFUZZER_FALSE@noinst_LIBRARIES = libfuzzers.a @ENABLE_LIBFUZZER_FALSE@libfuzzers_a_SOURCES = \ @ENABLE_LIBFUZZER_FALSE@ box_fuzzer.cc \ @ENABLE_LIBFUZZER_FALSE@ color_conversion_fuzzer.cc \ @ENABLE_LIBFUZZER_FALSE@ encoder_fuzzer.cc \ @ENABLE_LIBFUZZER_FALSE@ file_fuzzer.cc box_fuzzer_DEPENDENCIES = box_fuzzer_CXXFLAGS = $(libde265_CFLAGS) box_fuzzer_LDFLAGS = $(FUZZING_ENGINE) box_fuzzer_LDADD = $(ADDITIONAL_LIBS) box_fuzzer_SOURCES = $(libheif_la_SOURCES) box_fuzzer.cc color_conversion_fuzzer_DEPENDENCIES = color_conversion_fuzzer_CXXFLAGS = $(libde265_CFLAGS) color_conversion_fuzzer_LDFLAGS = $(FUZZING_ENGINE) color_conversion_fuzzer_LDADD = $(ADDITIONAL_LIBS) color_conversion_fuzzer_SOURCES = $(libheif_la_SOURCES) color_conversion_fuzzer.cc encoder_fuzzer_DEPENDENCIES = encoder_fuzzer_CXXFLAGS = $(libde265_CFLAGS) encoder_fuzzer_LDFLAGS = $(FUZZING_ENGINE) encoder_fuzzer_LDADD = $(ADDITIONAL_LIBS) encoder_fuzzer_SOURCES = $(libheif_la_SOURCES) encoder_fuzzer.cc file_fuzzer_DEPENDENCIES = file_fuzzer_CXXFLAGS = $(libde265_CFLAGS) file_fuzzer_LDFLAGS = $(FUZZING_ENGINE) file_fuzzer_LDADD = $(ADDITIONAL_LIBS) file_fuzzer_SOURCES = $(libheif_la_SOURCES) file_fuzzer.cc EXTRA_DIST = \ CMakeLists.txt all: all-am .SUFFIXES: .SUFFIXES: .cc .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) --foreign libheif/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libheif/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(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): heif_version.h: $(top_builddir)/config.status $(srcdir)/heif_version.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || 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)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_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 clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) 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}; \ } libfuzzers.a: $(libfuzzers_a_OBJECTS) $(libfuzzers_a_DEPENDENCIES) $(EXTRA_libfuzzers_a_DEPENDENCIES) $(AM_V_at)-rm -f libfuzzers.a $(AM_V_AR)$(libfuzzers_a_AR) libfuzzers.a $(libfuzzers_a_OBJECTS) $(libfuzzers_a_LIBADD) $(AM_V_at)$(RANLIB) libfuzzers.a libheif.la: $(libheif_la_OBJECTS) $(libheif_la_DEPENDENCIES) $(EXTRA_libheif_la_DEPENDENCIES) $(AM_V_CXXLD)$(libheif_la_LINK) -rpath $(libdir) $(libheif_la_OBJECTS) $(libheif_la_LIBADD) $(LIBS) box-fuzzer$(EXEEXT): $(box_fuzzer_OBJECTS) $(box_fuzzer_DEPENDENCIES) $(EXTRA_box_fuzzer_DEPENDENCIES) @rm -f box-fuzzer$(EXEEXT) $(AM_V_CXXLD)$(box_fuzzer_LINK) $(box_fuzzer_OBJECTS) $(box_fuzzer_LDADD) $(LIBS) color-conversion-fuzzer$(EXEEXT): $(color_conversion_fuzzer_OBJECTS) $(color_conversion_fuzzer_DEPENDENCIES) $(EXTRA_color_conversion_fuzzer_DEPENDENCIES) @rm -f color-conversion-fuzzer$(EXEEXT) $(AM_V_CXXLD)$(color_conversion_fuzzer_LINK) $(color_conversion_fuzzer_OBJECTS) $(color_conversion_fuzzer_LDADD) $(LIBS) encoder-fuzzer$(EXEEXT): $(encoder_fuzzer_OBJECTS) $(encoder_fuzzer_DEPENDENCIES) $(EXTRA_encoder_fuzzer_DEPENDENCIES) @rm -f encoder-fuzzer$(EXEEXT) $(AM_V_CXXLD)$(encoder_fuzzer_LINK) $(encoder_fuzzer_OBJECTS) $(encoder_fuzzer_LDADD) $(LIBS) file-fuzzer$(EXEEXT): $(file_fuzzer_OBJECTS) $(file_fuzzer_DEPENDENCIES) $(EXTRA_file_fuzzer_DEPENDENCIES) @rm -f file-fuzzer$(EXEEXT) $(AM_V_CXXLD)$(file_fuzzer_LINK) $(file_fuzzer_OBJECTS) $(file_fuzzer_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-bitstream.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-box.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-box_fuzzer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-error.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_avif.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_colorconversion.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_context.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_decoder_aom.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_decoder_dav1d.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_decoder_libde265.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_encoder_aom.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_encoder_rav1e.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_encoder_x265.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_file.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_hevc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_image.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_plugin.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-heif_plugin_registry.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer-nclx.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_fuzzer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-bitstream.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-box.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-color_conversion_fuzzer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-error.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_avif.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_colorconversion.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_context.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_aom.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_dav1d.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_libde265.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_aom.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_rav1e.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_x265.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_file.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_hevc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_image.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_plugin.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-heif_plugin_registry.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer-nclx.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color_conversion_fuzzer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-bitstream.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-box.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-encoder_fuzzer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-error.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_avif.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_colorconversion.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_context.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_decoder_aom.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_decoder_dav1d.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_decoder_libde265.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_encoder_aom.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_encoder_rav1e.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_encoder_x265.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_file.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_hevc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_image.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_plugin.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-heif_plugin_registry.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer-nclx.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoder_fuzzer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-bitstream.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-box.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-error.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-file_fuzzer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_avif.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_colorconversion.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_context.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_decoder_aom.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_decoder_dav1d.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_decoder_libde265.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_encoder_aom.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_encoder_rav1e.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_encoder_x265.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_file.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_hevc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_image.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_plugin.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-heif_plugin_registry.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer-nclx.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-bitstream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-box.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_avif.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_colorconversion.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_context.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_decoder_aom.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_decoder_dav1d.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_decoder_libde265.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_encoder_aom.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_encoder_rav1e.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_encoder_x265.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_file.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_hevc.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_image.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_plugin.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-heif_plugin_registry.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libheif_la-nclx.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< libheif_la-bitstream.lo: bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-bitstream.lo -MD -MP -MF $(DEPDIR)/libheif_la-bitstream.Tpo -c -o libheif_la-bitstream.lo `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-bitstream.Tpo $(DEPDIR)/libheif_la-bitstream.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bitstream.cc' object='libheif_la-bitstream.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-bitstream.lo `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc libheif_la-box.lo: box.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-box.lo -MD -MP -MF $(DEPDIR)/libheif_la-box.Tpo -c -o libheif_la-box.lo `test -f 'box.cc' || echo '$(srcdir)/'`box.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-box.Tpo $(DEPDIR)/libheif_la-box.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box.cc' object='libheif_la-box.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-box.lo `test -f 'box.cc' || echo '$(srcdir)/'`box.cc libheif_la-error.lo: error.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-error.lo -MD -MP -MF $(DEPDIR)/libheif_la-error.Tpo -c -o libheif_la-error.lo `test -f 'error.cc' || echo '$(srcdir)/'`error.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-error.Tpo $(DEPDIR)/libheif_la-error.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='error.cc' object='libheif_la-error.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-error.lo `test -f 'error.cc' || echo '$(srcdir)/'`error.cc libheif_la-heif_file.lo: heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_file.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_file.Tpo -c -o libheif_la-heif_file.lo `test -f 'heif_file.cc' || echo '$(srcdir)/'`heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_file.Tpo $(DEPDIR)/libheif_la-heif_file.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_file.cc' object='libheif_la-heif_file.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_file.lo `test -f 'heif_file.cc' || echo '$(srcdir)/'`heif_file.cc libheif_la-heif_image.lo: heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_image.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_image.Tpo -c -o libheif_la-heif_image.lo `test -f 'heif_image.cc' || echo '$(srcdir)/'`heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_image.Tpo $(DEPDIR)/libheif_la-heif_image.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_image.cc' object='libheif_la-heif_image.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_image.lo `test -f 'heif_image.cc' || echo '$(srcdir)/'`heif_image.cc libheif_la-heif.lo: heif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif.Tpo -c -o libheif_la-heif.lo `test -f 'heif.cc' || echo '$(srcdir)/'`heif.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif.Tpo $(DEPDIR)/libheif_la-heif.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif.cc' object='libheif_la-heif.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif.lo `test -f 'heif.cc' || echo '$(srcdir)/'`heif.cc libheif_la-heif_context.lo: heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_context.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_context.Tpo -c -o libheif_la-heif_context.lo `test -f 'heif_context.cc' || echo '$(srcdir)/'`heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_context.Tpo $(DEPDIR)/libheif_la-heif_context.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_context.cc' object='libheif_la-heif_context.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_context.lo `test -f 'heif_context.cc' || echo '$(srcdir)/'`heif_context.cc libheif_la-heif_hevc.lo: heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_hevc.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_hevc.Tpo -c -o libheif_la-heif_hevc.lo `test -f 'heif_hevc.cc' || echo '$(srcdir)/'`heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_hevc.Tpo $(DEPDIR)/libheif_la-heif_hevc.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_hevc.cc' object='libheif_la-heif_hevc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_hevc.lo `test -f 'heif_hevc.cc' || echo '$(srcdir)/'`heif_hevc.cc libheif_la-heif_avif.lo: heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_avif.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_avif.Tpo -c -o libheif_la-heif_avif.lo `test -f 'heif_avif.cc' || echo '$(srcdir)/'`heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_avif.Tpo $(DEPDIR)/libheif_la-heif_avif.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_avif.cc' object='libheif_la-heif_avif.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_avif.lo `test -f 'heif_avif.cc' || echo '$(srcdir)/'`heif_avif.cc libheif_la-heif_plugin_registry.lo: heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_plugin_registry.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_plugin_registry.Tpo -c -o libheif_la-heif_plugin_registry.lo `test -f 'heif_plugin_registry.cc' || echo '$(srcdir)/'`heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_plugin_registry.Tpo $(DEPDIR)/libheif_la-heif_plugin_registry.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin_registry.cc' object='libheif_la-heif_plugin_registry.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_plugin_registry.lo `test -f 'heif_plugin_registry.cc' || echo '$(srcdir)/'`heif_plugin_registry.cc libheif_la-heif_plugin.lo: heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_plugin.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_plugin.Tpo -c -o libheif_la-heif_plugin.lo `test -f 'heif_plugin.cc' || echo '$(srcdir)/'`heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_plugin.Tpo $(DEPDIR)/libheif_la-heif_plugin.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin.cc' object='libheif_la-heif_plugin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_plugin.lo `test -f 'heif_plugin.cc' || echo '$(srcdir)/'`heif_plugin.cc libheif_la-heif_colorconversion.lo: heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_colorconversion.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_colorconversion.Tpo -c -o libheif_la-heif_colorconversion.lo `test -f 'heif_colorconversion.cc' || echo '$(srcdir)/'`heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_colorconversion.Tpo $(DEPDIR)/libheif_la-heif_colorconversion.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_colorconversion.cc' object='libheif_la-heif_colorconversion.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_colorconversion.lo `test -f 'heif_colorconversion.cc' || echo '$(srcdir)/'`heif_colorconversion.cc libheif_la-nclx.lo: nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-nclx.lo -MD -MP -MF $(DEPDIR)/libheif_la-nclx.Tpo -c -o libheif_la-nclx.lo `test -f 'nclx.cc' || echo '$(srcdir)/'`nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-nclx.Tpo $(DEPDIR)/libheif_la-nclx.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nclx.cc' object='libheif_la-nclx.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-nclx.lo `test -f 'nclx.cc' || echo '$(srcdir)/'`nclx.cc libheif_la-heif_decoder_aom.lo: heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_decoder_aom.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_decoder_aom.Tpo -c -o libheif_la-heif_decoder_aom.lo `test -f 'heif_decoder_aom.cc' || echo '$(srcdir)/'`heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_decoder_aom.Tpo $(DEPDIR)/libheif_la-heif_decoder_aom.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_aom.cc' object='libheif_la-heif_decoder_aom.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_decoder_aom.lo `test -f 'heif_decoder_aom.cc' || echo '$(srcdir)/'`heif_decoder_aom.cc libheif_la-heif_encoder_aom.lo: heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_encoder_aom.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_encoder_aom.Tpo -c -o libheif_la-heif_encoder_aom.lo `test -f 'heif_encoder_aom.cc' || echo '$(srcdir)/'`heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_encoder_aom.Tpo $(DEPDIR)/libheif_la-heif_encoder_aom.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_aom.cc' object='libheif_la-heif_encoder_aom.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_encoder_aom.lo `test -f 'heif_encoder_aom.cc' || echo '$(srcdir)/'`heif_encoder_aom.cc libheif_la-heif_decoder_libde265.lo: heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_decoder_libde265.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_decoder_libde265.Tpo -c -o libheif_la-heif_decoder_libde265.lo `test -f 'heif_decoder_libde265.cc' || echo '$(srcdir)/'`heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_decoder_libde265.Tpo $(DEPDIR)/libheif_la-heif_decoder_libde265.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_libde265.cc' object='libheif_la-heif_decoder_libde265.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_decoder_libde265.lo `test -f 'heif_decoder_libde265.cc' || echo '$(srcdir)/'`heif_decoder_libde265.cc libheif_la-heif_encoder_rav1e.lo: heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_encoder_rav1e.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_encoder_rav1e.Tpo -c -o libheif_la-heif_encoder_rav1e.lo `test -f 'heif_encoder_rav1e.cc' || echo '$(srcdir)/'`heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_encoder_rav1e.Tpo $(DEPDIR)/libheif_la-heif_encoder_rav1e.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_rav1e.cc' object='libheif_la-heif_encoder_rav1e.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_encoder_rav1e.lo `test -f 'heif_encoder_rav1e.cc' || echo '$(srcdir)/'`heif_encoder_rav1e.cc libheif_la-heif_decoder_dav1d.lo: heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_decoder_dav1d.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_decoder_dav1d.Tpo -c -o libheif_la-heif_decoder_dav1d.lo `test -f 'heif_decoder_dav1d.cc' || echo '$(srcdir)/'`heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_decoder_dav1d.Tpo $(DEPDIR)/libheif_la-heif_decoder_dav1d.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_dav1d.cc' object='libheif_la-heif_decoder_dav1d.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_decoder_dav1d.lo `test -f 'heif_decoder_dav1d.cc' || echo '$(srcdir)/'`heif_decoder_dav1d.cc libheif_la-heif_encoder_x265.lo: heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -MT libheif_la-heif_encoder_x265.lo -MD -MP -MF $(DEPDIR)/libheif_la-heif_encoder_x265.Tpo -c -o libheif_la-heif_encoder_x265.lo `test -f 'heif_encoder_x265.cc' || echo '$(srcdir)/'`heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libheif_la-heif_encoder_x265.Tpo $(DEPDIR)/libheif_la-heif_encoder_x265.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_x265.cc' object='libheif_la-heif_encoder_x265.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libheif_la_CPPFLAGS) $(CPPFLAGS) $(libheif_la_CXXFLAGS) $(CXXFLAGS) -c -o libheif_la-heif_encoder_x265.lo `test -f 'heif_encoder_x265.cc' || echo '$(srcdir)/'`heif_encoder_x265.cc box_fuzzer-bitstream.o: bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-bitstream.o -MD -MP -MF $(DEPDIR)/box_fuzzer-bitstream.Tpo -c -o box_fuzzer-bitstream.o `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-bitstream.Tpo $(DEPDIR)/box_fuzzer-bitstream.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bitstream.cc' object='box_fuzzer-bitstream.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-bitstream.o `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc box_fuzzer-bitstream.obj: bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-bitstream.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-bitstream.Tpo -c -o box_fuzzer-bitstream.obj `if test -f 'bitstream.cc'; then $(CYGPATH_W) 'bitstream.cc'; else $(CYGPATH_W) '$(srcdir)/bitstream.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-bitstream.Tpo $(DEPDIR)/box_fuzzer-bitstream.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bitstream.cc' object='box_fuzzer-bitstream.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-bitstream.obj `if test -f 'bitstream.cc'; then $(CYGPATH_W) 'bitstream.cc'; else $(CYGPATH_W) '$(srcdir)/bitstream.cc'; fi` box_fuzzer-box.o: box.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-box.o -MD -MP -MF $(DEPDIR)/box_fuzzer-box.Tpo -c -o box_fuzzer-box.o `test -f 'box.cc' || echo '$(srcdir)/'`box.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-box.Tpo $(DEPDIR)/box_fuzzer-box.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box.cc' object='box_fuzzer-box.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-box.o `test -f 'box.cc' || echo '$(srcdir)/'`box.cc box_fuzzer-box.obj: box.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-box.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-box.Tpo -c -o box_fuzzer-box.obj `if test -f 'box.cc'; then $(CYGPATH_W) 'box.cc'; else $(CYGPATH_W) '$(srcdir)/box.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-box.Tpo $(DEPDIR)/box_fuzzer-box.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box.cc' object='box_fuzzer-box.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-box.obj `if test -f 'box.cc'; then $(CYGPATH_W) 'box.cc'; else $(CYGPATH_W) '$(srcdir)/box.cc'; fi` box_fuzzer-error.o: error.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-error.o -MD -MP -MF $(DEPDIR)/box_fuzzer-error.Tpo -c -o box_fuzzer-error.o `test -f 'error.cc' || echo '$(srcdir)/'`error.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-error.Tpo $(DEPDIR)/box_fuzzer-error.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='error.cc' object='box_fuzzer-error.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-error.o `test -f 'error.cc' || echo '$(srcdir)/'`error.cc box_fuzzer-error.obj: error.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-error.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-error.Tpo -c -o box_fuzzer-error.obj `if test -f 'error.cc'; then $(CYGPATH_W) 'error.cc'; else $(CYGPATH_W) '$(srcdir)/error.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-error.Tpo $(DEPDIR)/box_fuzzer-error.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='error.cc' object='box_fuzzer-error.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-error.obj `if test -f 'error.cc'; then $(CYGPATH_W) 'error.cc'; else $(CYGPATH_W) '$(srcdir)/error.cc'; fi` box_fuzzer-heif_file.o: heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_file.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_file.Tpo -c -o box_fuzzer-heif_file.o `test -f 'heif_file.cc' || echo '$(srcdir)/'`heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_file.Tpo $(DEPDIR)/box_fuzzer-heif_file.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_file.cc' object='box_fuzzer-heif_file.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_file.o `test -f 'heif_file.cc' || echo '$(srcdir)/'`heif_file.cc box_fuzzer-heif_file.obj: heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_file.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_file.Tpo -c -o box_fuzzer-heif_file.obj `if test -f 'heif_file.cc'; then $(CYGPATH_W) 'heif_file.cc'; else $(CYGPATH_W) '$(srcdir)/heif_file.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_file.Tpo $(DEPDIR)/box_fuzzer-heif_file.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_file.cc' object='box_fuzzer-heif_file.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_file.obj `if test -f 'heif_file.cc'; then $(CYGPATH_W) 'heif_file.cc'; else $(CYGPATH_W) '$(srcdir)/heif_file.cc'; fi` box_fuzzer-heif_image.o: heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_image.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_image.Tpo -c -o box_fuzzer-heif_image.o `test -f 'heif_image.cc' || echo '$(srcdir)/'`heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_image.Tpo $(DEPDIR)/box_fuzzer-heif_image.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_image.cc' object='box_fuzzer-heif_image.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_image.o `test -f 'heif_image.cc' || echo '$(srcdir)/'`heif_image.cc box_fuzzer-heif_image.obj: heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_image.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_image.Tpo -c -o box_fuzzer-heif_image.obj `if test -f 'heif_image.cc'; then $(CYGPATH_W) 'heif_image.cc'; else $(CYGPATH_W) '$(srcdir)/heif_image.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_image.Tpo $(DEPDIR)/box_fuzzer-heif_image.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_image.cc' object='box_fuzzer-heif_image.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_image.obj `if test -f 'heif_image.cc'; then $(CYGPATH_W) 'heif_image.cc'; else $(CYGPATH_W) '$(srcdir)/heif_image.cc'; fi` box_fuzzer-heif.o: heif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif.Tpo -c -o box_fuzzer-heif.o `test -f 'heif.cc' || echo '$(srcdir)/'`heif.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif.Tpo $(DEPDIR)/box_fuzzer-heif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif.cc' object='box_fuzzer-heif.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif.o `test -f 'heif.cc' || echo '$(srcdir)/'`heif.cc box_fuzzer-heif.obj: heif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif.Tpo -c -o box_fuzzer-heif.obj `if test -f 'heif.cc'; then $(CYGPATH_W) 'heif.cc'; else $(CYGPATH_W) '$(srcdir)/heif.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif.Tpo $(DEPDIR)/box_fuzzer-heif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif.cc' object='box_fuzzer-heif.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif.obj `if test -f 'heif.cc'; then $(CYGPATH_W) 'heif.cc'; else $(CYGPATH_W) '$(srcdir)/heif.cc'; fi` box_fuzzer-heif_context.o: heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_context.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_context.Tpo -c -o box_fuzzer-heif_context.o `test -f 'heif_context.cc' || echo '$(srcdir)/'`heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_context.Tpo $(DEPDIR)/box_fuzzer-heif_context.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_context.cc' object='box_fuzzer-heif_context.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_context.o `test -f 'heif_context.cc' || echo '$(srcdir)/'`heif_context.cc box_fuzzer-heif_context.obj: heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_context.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_context.Tpo -c -o box_fuzzer-heif_context.obj `if test -f 'heif_context.cc'; then $(CYGPATH_W) 'heif_context.cc'; else $(CYGPATH_W) '$(srcdir)/heif_context.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_context.Tpo $(DEPDIR)/box_fuzzer-heif_context.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_context.cc' object='box_fuzzer-heif_context.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_context.obj `if test -f 'heif_context.cc'; then $(CYGPATH_W) 'heif_context.cc'; else $(CYGPATH_W) '$(srcdir)/heif_context.cc'; fi` box_fuzzer-heif_hevc.o: heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_hevc.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_hevc.Tpo -c -o box_fuzzer-heif_hevc.o `test -f 'heif_hevc.cc' || echo '$(srcdir)/'`heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_hevc.Tpo $(DEPDIR)/box_fuzzer-heif_hevc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_hevc.cc' object='box_fuzzer-heif_hevc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_hevc.o `test -f 'heif_hevc.cc' || echo '$(srcdir)/'`heif_hevc.cc box_fuzzer-heif_hevc.obj: heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_hevc.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_hevc.Tpo -c -o box_fuzzer-heif_hevc.obj `if test -f 'heif_hevc.cc'; then $(CYGPATH_W) 'heif_hevc.cc'; else $(CYGPATH_W) '$(srcdir)/heif_hevc.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_hevc.Tpo $(DEPDIR)/box_fuzzer-heif_hevc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_hevc.cc' object='box_fuzzer-heif_hevc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_hevc.obj `if test -f 'heif_hevc.cc'; then $(CYGPATH_W) 'heif_hevc.cc'; else $(CYGPATH_W) '$(srcdir)/heif_hevc.cc'; fi` box_fuzzer-heif_avif.o: heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_avif.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_avif.Tpo -c -o box_fuzzer-heif_avif.o `test -f 'heif_avif.cc' || echo '$(srcdir)/'`heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_avif.Tpo $(DEPDIR)/box_fuzzer-heif_avif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_avif.cc' object='box_fuzzer-heif_avif.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_avif.o `test -f 'heif_avif.cc' || echo '$(srcdir)/'`heif_avif.cc box_fuzzer-heif_avif.obj: heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_avif.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_avif.Tpo -c -o box_fuzzer-heif_avif.obj `if test -f 'heif_avif.cc'; then $(CYGPATH_W) 'heif_avif.cc'; else $(CYGPATH_W) '$(srcdir)/heif_avif.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_avif.Tpo $(DEPDIR)/box_fuzzer-heif_avif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_avif.cc' object='box_fuzzer-heif_avif.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_avif.obj `if test -f 'heif_avif.cc'; then $(CYGPATH_W) 'heif_avif.cc'; else $(CYGPATH_W) '$(srcdir)/heif_avif.cc'; fi` box_fuzzer-heif_plugin_registry.o: heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_plugin_registry.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_plugin_registry.Tpo -c -o box_fuzzer-heif_plugin_registry.o `test -f 'heif_plugin_registry.cc' || echo '$(srcdir)/'`heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_plugin_registry.Tpo $(DEPDIR)/box_fuzzer-heif_plugin_registry.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin_registry.cc' object='box_fuzzer-heif_plugin_registry.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_plugin_registry.o `test -f 'heif_plugin_registry.cc' || echo '$(srcdir)/'`heif_plugin_registry.cc box_fuzzer-heif_plugin_registry.obj: heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_plugin_registry.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_plugin_registry.Tpo -c -o box_fuzzer-heif_plugin_registry.obj `if test -f 'heif_plugin_registry.cc'; then $(CYGPATH_W) 'heif_plugin_registry.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin_registry.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_plugin_registry.Tpo $(DEPDIR)/box_fuzzer-heif_plugin_registry.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin_registry.cc' object='box_fuzzer-heif_plugin_registry.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_plugin_registry.obj `if test -f 'heif_plugin_registry.cc'; then $(CYGPATH_W) 'heif_plugin_registry.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin_registry.cc'; fi` box_fuzzer-heif_plugin.o: heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_plugin.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_plugin.Tpo -c -o box_fuzzer-heif_plugin.o `test -f 'heif_plugin.cc' || echo '$(srcdir)/'`heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_plugin.Tpo $(DEPDIR)/box_fuzzer-heif_plugin.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin.cc' object='box_fuzzer-heif_plugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_plugin.o `test -f 'heif_plugin.cc' || echo '$(srcdir)/'`heif_plugin.cc box_fuzzer-heif_plugin.obj: heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_plugin.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_plugin.Tpo -c -o box_fuzzer-heif_plugin.obj `if test -f 'heif_plugin.cc'; then $(CYGPATH_W) 'heif_plugin.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_plugin.Tpo $(DEPDIR)/box_fuzzer-heif_plugin.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin.cc' object='box_fuzzer-heif_plugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_plugin.obj `if test -f 'heif_plugin.cc'; then $(CYGPATH_W) 'heif_plugin.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin.cc'; fi` box_fuzzer-heif_colorconversion.o: heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_colorconversion.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_colorconversion.Tpo -c -o box_fuzzer-heif_colorconversion.o `test -f 'heif_colorconversion.cc' || echo '$(srcdir)/'`heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_colorconversion.Tpo $(DEPDIR)/box_fuzzer-heif_colorconversion.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_colorconversion.cc' object='box_fuzzer-heif_colorconversion.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_colorconversion.o `test -f 'heif_colorconversion.cc' || echo '$(srcdir)/'`heif_colorconversion.cc box_fuzzer-heif_colorconversion.obj: heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_colorconversion.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_colorconversion.Tpo -c -o box_fuzzer-heif_colorconversion.obj `if test -f 'heif_colorconversion.cc'; then $(CYGPATH_W) 'heif_colorconversion.cc'; else $(CYGPATH_W) '$(srcdir)/heif_colorconversion.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_colorconversion.Tpo $(DEPDIR)/box_fuzzer-heif_colorconversion.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_colorconversion.cc' object='box_fuzzer-heif_colorconversion.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_colorconversion.obj `if test -f 'heif_colorconversion.cc'; then $(CYGPATH_W) 'heif_colorconversion.cc'; else $(CYGPATH_W) '$(srcdir)/heif_colorconversion.cc'; fi` box_fuzzer-nclx.o: nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-nclx.o -MD -MP -MF $(DEPDIR)/box_fuzzer-nclx.Tpo -c -o box_fuzzer-nclx.o `test -f 'nclx.cc' || echo '$(srcdir)/'`nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-nclx.Tpo $(DEPDIR)/box_fuzzer-nclx.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nclx.cc' object='box_fuzzer-nclx.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-nclx.o `test -f 'nclx.cc' || echo '$(srcdir)/'`nclx.cc box_fuzzer-nclx.obj: nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-nclx.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-nclx.Tpo -c -o box_fuzzer-nclx.obj `if test -f 'nclx.cc'; then $(CYGPATH_W) 'nclx.cc'; else $(CYGPATH_W) '$(srcdir)/nclx.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-nclx.Tpo $(DEPDIR)/box_fuzzer-nclx.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nclx.cc' object='box_fuzzer-nclx.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-nclx.obj `if test -f 'nclx.cc'; then $(CYGPATH_W) 'nclx.cc'; else $(CYGPATH_W) '$(srcdir)/nclx.cc'; fi` box_fuzzer-heif_decoder_aom.o: heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_decoder_aom.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_decoder_aom.Tpo -c -o box_fuzzer-heif_decoder_aom.o `test -f 'heif_decoder_aom.cc' || echo '$(srcdir)/'`heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_decoder_aom.Tpo $(DEPDIR)/box_fuzzer-heif_decoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_aom.cc' object='box_fuzzer-heif_decoder_aom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_decoder_aom.o `test -f 'heif_decoder_aom.cc' || echo '$(srcdir)/'`heif_decoder_aom.cc box_fuzzer-heif_decoder_aom.obj: heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_decoder_aom.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_decoder_aom.Tpo -c -o box_fuzzer-heif_decoder_aom.obj `if test -f 'heif_decoder_aom.cc'; then $(CYGPATH_W) 'heif_decoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_aom.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_decoder_aom.Tpo $(DEPDIR)/box_fuzzer-heif_decoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_aom.cc' object='box_fuzzer-heif_decoder_aom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_decoder_aom.obj `if test -f 'heif_decoder_aom.cc'; then $(CYGPATH_W) 'heif_decoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_aom.cc'; fi` box_fuzzer-heif_encoder_aom.o: heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_encoder_aom.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_encoder_aom.Tpo -c -o box_fuzzer-heif_encoder_aom.o `test -f 'heif_encoder_aom.cc' || echo '$(srcdir)/'`heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_encoder_aom.Tpo $(DEPDIR)/box_fuzzer-heif_encoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_aom.cc' object='box_fuzzer-heif_encoder_aom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_encoder_aom.o `test -f 'heif_encoder_aom.cc' || echo '$(srcdir)/'`heif_encoder_aom.cc box_fuzzer-heif_encoder_aom.obj: heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_encoder_aom.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_encoder_aom.Tpo -c -o box_fuzzer-heif_encoder_aom.obj `if test -f 'heif_encoder_aom.cc'; then $(CYGPATH_W) 'heif_encoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_aom.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_encoder_aom.Tpo $(DEPDIR)/box_fuzzer-heif_encoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_aom.cc' object='box_fuzzer-heif_encoder_aom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_encoder_aom.obj `if test -f 'heif_encoder_aom.cc'; then $(CYGPATH_W) 'heif_encoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_aom.cc'; fi` box_fuzzer-heif_decoder_libde265.o: heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_decoder_libde265.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_decoder_libde265.Tpo -c -o box_fuzzer-heif_decoder_libde265.o `test -f 'heif_decoder_libde265.cc' || echo '$(srcdir)/'`heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_decoder_libde265.Tpo $(DEPDIR)/box_fuzzer-heif_decoder_libde265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_libde265.cc' object='box_fuzzer-heif_decoder_libde265.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_decoder_libde265.o `test -f 'heif_decoder_libde265.cc' || echo '$(srcdir)/'`heif_decoder_libde265.cc box_fuzzer-heif_decoder_libde265.obj: heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_decoder_libde265.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_decoder_libde265.Tpo -c -o box_fuzzer-heif_decoder_libde265.obj `if test -f 'heif_decoder_libde265.cc'; then $(CYGPATH_W) 'heif_decoder_libde265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_libde265.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_decoder_libde265.Tpo $(DEPDIR)/box_fuzzer-heif_decoder_libde265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_libde265.cc' object='box_fuzzer-heif_decoder_libde265.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_decoder_libde265.obj `if test -f 'heif_decoder_libde265.cc'; then $(CYGPATH_W) 'heif_decoder_libde265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_libde265.cc'; fi` box_fuzzer-heif_encoder_rav1e.o: heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_encoder_rav1e.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_encoder_rav1e.Tpo -c -o box_fuzzer-heif_encoder_rav1e.o `test -f 'heif_encoder_rav1e.cc' || echo '$(srcdir)/'`heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_encoder_rav1e.Tpo $(DEPDIR)/box_fuzzer-heif_encoder_rav1e.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_rav1e.cc' object='box_fuzzer-heif_encoder_rav1e.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_encoder_rav1e.o `test -f 'heif_encoder_rav1e.cc' || echo '$(srcdir)/'`heif_encoder_rav1e.cc box_fuzzer-heif_encoder_rav1e.obj: heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_encoder_rav1e.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_encoder_rav1e.Tpo -c -o box_fuzzer-heif_encoder_rav1e.obj `if test -f 'heif_encoder_rav1e.cc'; then $(CYGPATH_W) 'heif_encoder_rav1e.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_rav1e.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_encoder_rav1e.Tpo $(DEPDIR)/box_fuzzer-heif_encoder_rav1e.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_rav1e.cc' object='box_fuzzer-heif_encoder_rav1e.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_encoder_rav1e.obj `if test -f 'heif_encoder_rav1e.cc'; then $(CYGPATH_W) 'heif_encoder_rav1e.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_rav1e.cc'; fi` box_fuzzer-heif_decoder_dav1d.o: heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_decoder_dav1d.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_decoder_dav1d.Tpo -c -o box_fuzzer-heif_decoder_dav1d.o `test -f 'heif_decoder_dav1d.cc' || echo '$(srcdir)/'`heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_decoder_dav1d.Tpo $(DEPDIR)/box_fuzzer-heif_decoder_dav1d.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_dav1d.cc' object='box_fuzzer-heif_decoder_dav1d.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_decoder_dav1d.o `test -f 'heif_decoder_dav1d.cc' || echo '$(srcdir)/'`heif_decoder_dav1d.cc box_fuzzer-heif_decoder_dav1d.obj: heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_decoder_dav1d.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_decoder_dav1d.Tpo -c -o box_fuzzer-heif_decoder_dav1d.obj `if test -f 'heif_decoder_dav1d.cc'; then $(CYGPATH_W) 'heif_decoder_dav1d.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_dav1d.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_decoder_dav1d.Tpo $(DEPDIR)/box_fuzzer-heif_decoder_dav1d.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_dav1d.cc' object='box_fuzzer-heif_decoder_dav1d.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_decoder_dav1d.obj `if test -f 'heif_decoder_dav1d.cc'; then $(CYGPATH_W) 'heif_decoder_dav1d.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_dav1d.cc'; fi` box_fuzzer-heif_encoder_x265.o: heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_encoder_x265.o -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_encoder_x265.Tpo -c -o box_fuzzer-heif_encoder_x265.o `test -f 'heif_encoder_x265.cc' || echo '$(srcdir)/'`heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_encoder_x265.Tpo $(DEPDIR)/box_fuzzer-heif_encoder_x265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_x265.cc' object='box_fuzzer-heif_encoder_x265.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_encoder_x265.o `test -f 'heif_encoder_x265.cc' || echo '$(srcdir)/'`heif_encoder_x265.cc box_fuzzer-heif_encoder_x265.obj: heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-heif_encoder_x265.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-heif_encoder_x265.Tpo -c -o box_fuzzer-heif_encoder_x265.obj `if test -f 'heif_encoder_x265.cc'; then $(CYGPATH_W) 'heif_encoder_x265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_x265.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-heif_encoder_x265.Tpo $(DEPDIR)/box_fuzzer-heif_encoder_x265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_x265.cc' object='box_fuzzer-heif_encoder_x265.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-heif_encoder_x265.obj `if test -f 'heif_encoder_x265.cc'; then $(CYGPATH_W) 'heif_encoder_x265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_x265.cc'; fi` box_fuzzer-box_fuzzer.o: box_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-box_fuzzer.o -MD -MP -MF $(DEPDIR)/box_fuzzer-box_fuzzer.Tpo -c -o box_fuzzer-box_fuzzer.o `test -f 'box_fuzzer.cc' || echo '$(srcdir)/'`box_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-box_fuzzer.Tpo $(DEPDIR)/box_fuzzer-box_fuzzer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box_fuzzer.cc' object='box_fuzzer-box_fuzzer.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-box_fuzzer.o `test -f 'box_fuzzer.cc' || echo '$(srcdir)/'`box_fuzzer.cc box_fuzzer-box_fuzzer.obj: box_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT box_fuzzer-box_fuzzer.obj -MD -MP -MF $(DEPDIR)/box_fuzzer-box_fuzzer.Tpo -c -o box_fuzzer-box_fuzzer.obj `if test -f 'box_fuzzer.cc'; then $(CYGPATH_W) 'box_fuzzer.cc'; else $(CYGPATH_W) '$(srcdir)/box_fuzzer.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/box_fuzzer-box_fuzzer.Tpo $(DEPDIR)/box_fuzzer-box_fuzzer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box_fuzzer.cc' object='box_fuzzer-box_fuzzer.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(box_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o box_fuzzer-box_fuzzer.obj `if test -f 'box_fuzzer.cc'; then $(CYGPATH_W) 'box_fuzzer.cc'; else $(CYGPATH_W) '$(srcdir)/box_fuzzer.cc'; fi` color_conversion_fuzzer-bitstream.o: bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-bitstream.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-bitstream.Tpo -c -o color_conversion_fuzzer-bitstream.o `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-bitstream.Tpo $(DEPDIR)/color_conversion_fuzzer-bitstream.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bitstream.cc' object='color_conversion_fuzzer-bitstream.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-bitstream.o `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc color_conversion_fuzzer-bitstream.obj: bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-bitstream.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-bitstream.Tpo -c -o color_conversion_fuzzer-bitstream.obj `if test -f 'bitstream.cc'; then $(CYGPATH_W) 'bitstream.cc'; else $(CYGPATH_W) '$(srcdir)/bitstream.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-bitstream.Tpo $(DEPDIR)/color_conversion_fuzzer-bitstream.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bitstream.cc' object='color_conversion_fuzzer-bitstream.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-bitstream.obj `if test -f 'bitstream.cc'; then $(CYGPATH_W) 'bitstream.cc'; else $(CYGPATH_W) '$(srcdir)/bitstream.cc'; fi` color_conversion_fuzzer-box.o: box.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-box.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-box.Tpo -c -o color_conversion_fuzzer-box.o `test -f 'box.cc' || echo '$(srcdir)/'`box.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-box.Tpo $(DEPDIR)/color_conversion_fuzzer-box.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box.cc' object='color_conversion_fuzzer-box.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-box.o `test -f 'box.cc' || echo '$(srcdir)/'`box.cc color_conversion_fuzzer-box.obj: box.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-box.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-box.Tpo -c -o color_conversion_fuzzer-box.obj `if test -f 'box.cc'; then $(CYGPATH_W) 'box.cc'; else $(CYGPATH_W) '$(srcdir)/box.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-box.Tpo $(DEPDIR)/color_conversion_fuzzer-box.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box.cc' object='color_conversion_fuzzer-box.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-box.obj `if test -f 'box.cc'; then $(CYGPATH_W) 'box.cc'; else $(CYGPATH_W) '$(srcdir)/box.cc'; fi` color_conversion_fuzzer-error.o: error.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-error.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-error.Tpo -c -o color_conversion_fuzzer-error.o `test -f 'error.cc' || echo '$(srcdir)/'`error.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-error.Tpo $(DEPDIR)/color_conversion_fuzzer-error.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='error.cc' object='color_conversion_fuzzer-error.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-error.o `test -f 'error.cc' || echo '$(srcdir)/'`error.cc color_conversion_fuzzer-error.obj: error.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-error.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-error.Tpo -c -o color_conversion_fuzzer-error.obj `if test -f 'error.cc'; then $(CYGPATH_W) 'error.cc'; else $(CYGPATH_W) '$(srcdir)/error.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-error.Tpo $(DEPDIR)/color_conversion_fuzzer-error.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='error.cc' object='color_conversion_fuzzer-error.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-error.obj `if test -f 'error.cc'; then $(CYGPATH_W) 'error.cc'; else $(CYGPATH_W) '$(srcdir)/error.cc'; fi` color_conversion_fuzzer-heif_file.o: heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_file.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_file.Tpo -c -o color_conversion_fuzzer-heif_file.o `test -f 'heif_file.cc' || echo '$(srcdir)/'`heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_file.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_file.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_file.cc' object='color_conversion_fuzzer-heif_file.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_file.o `test -f 'heif_file.cc' || echo '$(srcdir)/'`heif_file.cc color_conversion_fuzzer-heif_file.obj: heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_file.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_file.Tpo -c -o color_conversion_fuzzer-heif_file.obj `if test -f 'heif_file.cc'; then $(CYGPATH_W) 'heif_file.cc'; else $(CYGPATH_W) '$(srcdir)/heif_file.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_file.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_file.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_file.cc' object='color_conversion_fuzzer-heif_file.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_file.obj `if test -f 'heif_file.cc'; then $(CYGPATH_W) 'heif_file.cc'; else $(CYGPATH_W) '$(srcdir)/heif_file.cc'; fi` color_conversion_fuzzer-heif_image.o: heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_image.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_image.Tpo -c -o color_conversion_fuzzer-heif_image.o `test -f 'heif_image.cc' || echo '$(srcdir)/'`heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_image.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_image.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_image.cc' object='color_conversion_fuzzer-heif_image.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_image.o `test -f 'heif_image.cc' || echo '$(srcdir)/'`heif_image.cc color_conversion_fuzzer-heif_image.obj: heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_image.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_image.Tpo -c -o color_conversion_fuzzer-heif_image.obj `if test -f 'heif_image.cc'; then $(CYGPATH_W) 'heif_image.cc'; else $(CYGPATH_W) '$(srcdir)/heif_image.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_image.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_image.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_image.cc' object='color_conversion_fuzzer-heif_image.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_image.obj `if test -f 'heif_image.cc'; then $(CYGPATH_W) 'heif_image.cc'; else $(CYGPATH_W) '$(srcdir)/heif_image.cc'; fi` color_conversion_fuzzer-heif.o: heif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif.Tpo -c -o color_conversion_fuzzer-heif.o `test -f 'heif.cc' || echo '$(srcdir)/'`heif.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif.Tpo $(DEPDIR)/color_conversion_fuzzer-heif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif.cc' object='color_conversion_fuzzer-heif.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif.o `test -f 'heif.cc' || echo '$(srcdir)/'`heif.cc color_conversion_fuzzer-heif.obj: heif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif.Tpo -c -o color_conversion_fuzzer-heif.obj `if test -f 'heif.cc'; then $(CYGPATH_W) 'heif.cc'; else $(CYGPATH_W) '$(srcdir)/heif.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif.Tpo $(DEPDIR)/color_conversion_fuzzer-heif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif.cc' object='color_conversion_fuzzer-heif.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif.obj `if test -f 'heif.cc'; then $(CYGPATH_W) 'heif.cc'; else $(CYGPATH_W) '$(srcdir)/heif.cc'; fi` color_conversion_fuzzer-heif_context.o: heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_context.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_context.Tpo -c -o color_conversion_fuzzer-heif_context.o `test -f 'heif_context.cc' || echo '$(srcdir)/'`heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_context.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_context.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_context.cc' object='color_conversion_fuzzer-heif_context.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_context.o `test -f 'heif_context.cc' || echo '$(srcdir)/'`heif_context.cc color_conversion_fuzzer-heif_context.obj: heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_context.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_context.Tpo -c -o color_conversion_fuzzer-heif_context.obj `if test -f 'heif_context.cc'; then $(CYGPATH_W) 'heif_context.cc'; else $(CYGPATH_W) '$(srcdir)/heif_context.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_context.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_context.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_context.cc' object='color_conversion_fuzzer-heif_context.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_context.obj `if test -f 'heif_context.cc'; then $(CYGPATH_W) 'heif_context.cc'; else $(CYGPATH_W) '$(srcdir)/heif_context.cc'; fi` color_conversion_fuzzer-heif_hevc.o: heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_hevc.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_hevc.Tpo -c -o color_conversion_fuzzer-heif_hevc.o `test -f 'heif_hevc.cc' || echo '$(srcdir)/'`heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_hevc.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_hevc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_hevc.cc' object='color_conversion_fuzzer-heif_hevc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_hevc.o `test -f 'heif_hevc.cc' || echo '$(srcdir)/'`heif_hevc.cc color_conversion_fuzzer-heif_hevc.obj: heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_hevc.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_hevc.Tpo -c -o color_conversion_fuzzer-heif_hevc.obj `if test -f 'heif_hevc.cc'; then $(CYGPATH_W) 'heif_hevc.cc'; else $(CYGPATH_W) '$(srcdir)/heif_hevc.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_hevc.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_hevc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_hevc.cc' object='color_conversion_fuzzer-heif_hevc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_hevc.obj `if test -f 'heif_hevc.cc'; then $(CYGPATH_W) 'heif_hevc.cc'; else $(CYGPATH_W) '$(srcdir)/heif_hevc.cc'; fi` color_conversion_fuzzer-heif_avif.o: heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_avif.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_avif.Tpo -c -o color_conversion_fuzzer-heif_avif.o `test -f 'heif_avif.cc' || echo '$(srcdir)/'`heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_avif.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_avif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_avif.cc' object='color_conversion_fuzzer-heif_avif.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_avif.o `test -f 'heif_avif.cc' || echo '$(srcdir)/'`heif_avif.cc color_conversion_fuzzer-heif_avif.obj: heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_avif.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_avif.Tpo -c -o color_conversion_fuzzer-heif_avif.obj `if test -f 'heif_avif.cc'; then $(CYGPATH_W) 'heif_avif.cc'; else $(CYGPATH_W) '$(srcdir)/heif_avif.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_avif.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_avif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_avif.cc' object='color_conversion_fuzzer-heif_avif.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_avif.obj `if test -f 'heif_avif.cc'; then $(CYGPATH_W) 'heif_avif.cc'; else $(CYGPATH_W) '$(srcdir)/heif_avif.cc'; fi` color_conversion_fuzzer-heif_plugin_registry.o: heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_plugin_registry.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_plugin_registry.Tpo -c -o color_conversion_fuzzer-heif_plugin_registry.o `test -f 'heif_plugin_registry.cc' || echo '$(srcdir)/'`heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_plugin_registry.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_plugin_registry.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin_registry.cc' object='color_conversion_fuzzer-heif_plugin_registry.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_plugin_registry.o `test -f 'heif_plugin_registry.cc' || echo '$(srcdir)/'`heif_plugin_registry.cc color_conversion_fuzzer-heif_plugin_registry.obj: heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_plugin_registry.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_plugin_registry.Tpo -c -o color_conversion_fuzzer-heif_plugin_registry.obj `if test -f 'heif_plugin_registry.cc'; then $(CYGPATH_W) 'heif_plugin_registry.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin_registry.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_plugin_registry.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_plugin_registry.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin_registry.cc' object='color_conversion_fuzzer-heif_plugin_registry.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_plugin_registry.obj `if test -f 'heif_plugin_registry.cc'; then $(CYGPATH_W) 'heif_plugin_registry.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin_registry.cc'; fi` color_conversion_fuzzer-heif_plugin.o: heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_plugin.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_plugin.Tpo -c -o color_conversion_fuzzer-heif_plugin.o `test -f 'heif_plugin.cc' || echo '$(srcdir)/'`heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_plugin.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_plugin.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin.cc' object='color_conversion_fuzzer-heif_plugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_plugin.o `test -f 'heif_plugin.cc' || echo '$(srcdir)/'`heif_plugin.cc color_conversion_fuzzer-heif_plugin.obj: heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_plugin.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_plugin.Tpo -c -o color_conversion_fuzzer-heif_plugin.obj `if test -f 'heif_plugin.cc'; then $(CYGPATH_W) 'heif_plugin.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_plugin.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_plugin.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin.cc' object='color_conversion_fuzzer-heif_plugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_plugin.obj `if test -f 'heif_plugin.cc'; then $(CYGPATH_W) 'heif_plugin.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin.cc'; fi` color_conversion_fuzzer-heif_colorconversion.o: heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_colorconversion.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_colorconversion.Tpo -c -o color_conversion_fuzzer-heif_colorconversion.o `test -f 'heif_colorconversion.cc' || echo '$(srcdir)/'`heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_colorconversion.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_colorconversion.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_colorconversion.cc' object='color_conversion_fuzzer-heif_colorconversion.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_colorconversion.o `test -f 'heif_colorconversion.cc' || echo '$(srcdir)/'`heif_colorconversion.cc color_conversion_fuzzer-heif_colorconversion.obj: heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_colorconversion.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_colorconversion.Tpo -c -o color_conversion_fuzzer-heif_colorconversion.obj `if test -f 'heif_colorconversion.cc'; then $(CYGPATH_W) 'heif_colorconversion.cc'; else $(CYGPATH_W) '$(srcdir)/heif_colorconversion.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_colorconversion.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_colorconversion.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_colorconversion.cc' object='color_conversion_fuzzer-heif_colorconversion.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_colorconversion.obj `if test -f 'heif_colorconversion.cc'; then $(CYGPATH_W) 'heif_colorconversion.cc'; else $(CYGPATH_W) '$(srcdir)/heif_colorconversion.cc'; fi` color_conversion_fuzzer-nclx.o: nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-nclx.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-nclx.Tpo -c -o color_conversion_fuzzer-nclx.o `test -f 'nclx.cc' || echo '$(srcdir)/'`nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-nclx.Tpo $(DEPDIR)/color_conversion_fuzzer-nclx.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nclx.cc' object='color_conversion_fuzzer-nclx.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-nclx.o `test -f 'nclx.cc' || echo '$(srcdir)/'`nclx.cc color_conversion_fuzzer-nclx.obj: nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-nclx.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-nclx.Tpo -c -o color_conversion_fuzzer-nclx.obj `if test -f 'nclx.cc'; then $(CYGPATH_W) 'nclx.cc'; else $(CYGPATH_W) '$(srcdir)/nclx.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-nclx.Tpo $(DEPDIR)/color_conversion_fuzzer-nclx.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nclx.cc' object='color_conversion_fuzzer-nclx.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-nclx.obj `if test -f 'nclx.cc'; then $(CYGPATH_W) 'nclx.cc'; else $(CYGPATH_W) '$(srcdir)/nclx.cc'; fi` color_conversion_fuzzer-heif_decoder_aom.o: heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_decoder_aom.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_decoder_aom.Tpo -c -o color_conversion_fuzzer-heif_decoder_aom.o `test -f 'heif_decoder_aom.cc' || echo '$(srcdir)/'`heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_decoder_aom.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_decoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_aom.cc' object='color_conversion_fuzzer-heif_decoder_aom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_decoder_aom.o `test -f 'heif_decoder_aom.cc' || echo '$(srcdir)/'`heif_decoder_aom.cc color_conversion_fuzzer-heif_decoder_aom.obj: heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_decoder_aom.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_decoder_aom.Tpo -c -o color_conversion_fuzzer-heif_decoder_aom.obj `if test -f 'heif_decoder_aom.cc'; then $(CYGPATH_W) 'heif_decoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_aom.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_decoder_aom.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_decoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_aom.cc' object='color_conversion_fuzzer-heif_decoder_aom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_decoder_aom.obj `if test -f 'heif_decoder_aom.cc'; then $(CYGPATH_W) 'heif_decoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_aom.cc'; fi` color_conversion_fuzzer-heif_encoder_aom.o: heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_encoder_aom.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_encoder_aom.Tpo -c -o color_conversion_fuzzer-heif_encoder_aom.o `test -f 'heif_encoder_aom.cc' || echo '$(srcdir)/'`heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_encoder_aom.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_encoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_aom.cc' object='color_conversion_fuzzer-heif_encoder_aom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_encoder_aom.o `test -f 'heif_encoder_aom.cc' || echo '$(srcdir)/'`heif_encoder_aom.cc color_conversion_fuzzer-heif_encoder_aom.obj: heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_encoder_aom.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_encoder_aom.Tpo -c -o color_conversion_fuzzer-heif_encoder_aom.obj `if test -f 'heif_encoder_aom.cc'; then $(CYGPATH_W) 'heif_encoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_aom.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_encoder_aom.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_encoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_aom.cc' object='color_conversion_fuzzer-heif_encoder_aom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_encoder_aom.obj `if test -f 'heif_encoder_aom.cc'; then $(CYGPATH_W) 'heif_encoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_aom.cc'; fi` color_conversion_fuzzer-heif_decoder_libde265.o: heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_decoder_libde265.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_decoder_libde265.Tpo -c -o color_conversion_fuzzer-heif_decoder_libde265.o `test -f 'heif_decoder_libde265.cc' || echo '$(srcdir)/'`heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_decoder_libde265.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_decoder_libde265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_libde265.cc' object='color_conversion_fuzzer-heif_decoder_libde265.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_decoder_libde265.o `test -f 'heif_decoder_libde265.cc' || echo '$(srcdir)/'`heif_decoder_libde265.cc color_conversion_fuzzer-heif_decoder_libde265.obj: heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_decoder_libde265.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_decoder_libde265.Tpo -c -o color_conversion_fuzzer-heif_decoder_libde265.obj `if test -f 'heif_decoder_libde265.cc'; then $(CYGPATH_W) 'heif_decoder_libde265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_libde265.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_decoder_libde265.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_decoder_libde265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_libde265.cc' object='color_conversion_fuzzer-heif_decoder_libde265.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_decoder_libde265.obj `if test -f 'heif_decoder_libde265.cc'; then $(CYGPATH_W) 'heif_decoder_libde265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_libde265.cc'; fi` color_conversion_fuzzer-heif_encoder_rav1e.o: heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_encoder_rav1e.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_encoder_rav1e.Tpo -c -o color_conversion_fuzzer-heif_encoder_rav1e.o `test -f 'heif_encoder_rav1e.cc' || echo '$(srcdir)/'`heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_encoder_rav1e.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_encoder_rav1e.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_rav1e.cc' object='color_conversion_fuzzer-heif_encoder_rav1e.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_encoder_rav1e.o `test -f 'heif_encoder_rav1e.cc' || echo '$(srcdir)/'`heif_encoder_rav1e.cc color_conversion_fuzzer-heif_encoder_rav1e.obj: heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_encoder_rav1e.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_encoder_rav1e.Tpo -c -o color_conversion_fuzzer-heif_encoder_rav1e.obj `if test -f 'heif_encoder_rav1e.cc'; then $(CYGPATH_W) 'heif_encoder_rav1e.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_rav1e.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_encoder_rav1e.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_encoder_rav1e.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_rav1e.cc' object='color_conversion_fuzzer-heif_encoder_rav1e.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_encoder_rav1e.obj `if test -f 'heif_encoder_rav1e.cc'; then $(CYGPATH_W) 'heif_encoder_rav1e.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_rav1e.cc'; fi` color_conversion_fuzzer-heif_decoder_dav1d.o: heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_decoder_dav1d.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_decoder_dav1d.Tpo -c -o color_conversion_fuzzer-heif_decoder_dav1d.o `test -f 'heif_decoder_dav1d.cc' || echo '$(srcdir)/'`heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_decoder_dav1d.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_decoder_dav1d.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_dav1d.cc' object='color_conversion_fuzzer-heif_decoder_dav1d.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_decoder_dav1d.o `test -f 'heif_decoder_dav1d.cc' || echo '$(srcdir)/'`heif_decoder_dav1d.cc color_conversion_fuzzer-heif_decoder_dav1d.obj: heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_decoder_dav1d.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_decoder_dav1d.Tpo -c -o color_conversion_fuzzer-heif_decoder_dav1d.obj `if test -f 'heif_decoder_dav1d.cc'; then $(CYGPATH_W) 'heif_decoder_dav1d.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_dav1d.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_decoder_dav1d.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_decoder_dav1d.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_dav1d.cc' object='color_conversion_fuzzer-heif_decoder_dav1d.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_decoder_dav1d.obj `if test -f 'heif_decoder_dav1d.cc'; then $(CYGPATH_W) 'heif_decoder_dav1d.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_dav1d.cc'; fi` color_conversion_fuzzer-heif_encoder_x265.o: heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_encoder_x265.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_encoder_x265.Tpo -c -o color_conversion_fuzzer-heif_encoder_x265.o `test -f 'heif_encoder_x265.cc' || echo '$(srcdir)/'`heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_encoder_x265.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_encoder_x265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_x265.cc' object='color_conversion_fuzzer-heif_encoder_x265.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_encoder_x265.o `test -f 'heif_encoder_x265.cc' || echo '$(srcdir)/'`heif_encoder_x265.cc color_conversion_fuzzer-heif_encoder_x265.obj: heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-heif_encoder_x265.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-heif_encoder_x265.Tpo -c -o color_conversion_fuzzer-heif_encoder_x265.obj `if test -f 'heif_encoder_x265.cc'; then $(CYGPATH_W) 'heif_encoder_x265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_x265.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-heif_encoder_x265.Tpo $(DEPDIR)/color_conversion_fuzzer-heif_encoder_x265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_x265.cc' object='color_conversion_fuzzer-heif_encoder_x265.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-heif_encoder_x265.obj `if test -f 'heif_encoder_x265.cc'; then $(CYGPATH_W) 'heif_encoder_x265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_x265.cc'; fi` color_conversion_fuzzer-color_conversion_fuzzer.o: color_conversion_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-color_conversion_fuzzer.o -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-color_conversion_fuzzer.Tpo -c -o color_conversion_fuzzer-color_conversion_fuzzer.o `test -f 'color_conversion_fuzzer.cc' || echo '$(srcdir)/'`color_conversion_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-color_conversion_fuzzer.Tpo $(DEPDIR)/color_conversion_fuzzer-color_conversion_fuzzer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='color_conversion_fuzzer.cc' object='color_conversion_fuzzer-color_conversion_fuzzer.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-color_conversion_fuzzer.o `test -f 'color_conversion_fuzzer.cc' || echo '$(srcdir)/'`color_conversion_fuzzer.cc color_conversion_fuzzer-color_conversion_fuzzer.obj: color_conversion_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT color_conversion_fuzzer-color_conversion_fuzzer.obj -MD -MP -MF $(DEPDIR)/color_conversion_fuzzer-color_conversion_fuzzer.Tpo -c -o color_conversion_fuzzer-color_conversion_fuzzer.obj `if test -f 'color_conversion_fuzzer.cc'; then $(CYGPATH_W) 'color_conversion_fuzzer.cc'; else $(CYGPATH_W) '$(srcdir)/color_conversion_fuzzer.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/color_conversion_fuzzer-color_conversion_fuzzer.Tpo $(DEPDIR)/color_conversion_fuzzer-color_conversion_fuzzer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='color_conversion_fuzzer.cc' object='color_conversion_fuzzer-color_conversion_fuzzer.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(color_conversion_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o color_conversion_fuzzer-color_conversion_fuzzer.obj `if test -f 'color_conversion_fuzzer.cc'; then $(CYGPATH_W) 'color_conversion_fuzzer.cc'; else $(CYGPATH_W) '$(srcdir)/color_conversion_fuzzer.cc'; fi` encoder_fuzzer-bitstream.o: bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-bitstream.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-bitstream.Tpo -c -o encoder_fuzzer-bitstream.o `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-bitstream.Tpo $(DEPDIR)/encoder_fuzzer-bitstream.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bitstream.cc' object='encoder_fuzzer-bitstream.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-bitstream.o `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc encoder_fuzzer-bitstream.obj: bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-bitstream.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-bitstream.Tpo -c -o encoder_fuzzer-bitstream.obj `if test -f 'bitstream.cc'; then $(CYGPATH_W) 'bitstream.cc'; else $(CYGPATH_W) '$(srcdir)/bitstream.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-bitstream.Tpo $(DEPDIR)/encoder_fuzzer-bitstream.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bitstream.cc' object='encoder_fuzzer-bitstream.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-bitstream.obj `if test -f 'bitstream.cc'; then $(CYGPATH_W) 'bitstream.cc'; else $(CYGPATH_W) '$(srcdir)/bitstream.cc'; fi` encoder_fuzzer-box.o: box.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-box.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-box.Tpo -c -o encoder_fuzzer-box.o `test -f 'box.cc' || echo '$(srcdir)/'`box.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-box.Tpo $(DEPDIR)/encoder_fuzzer-box.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box.cc' object='encoder_fuzzer-box.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-box.o `test -f 'box.cc' || echo '$(srcdir)/'`box.cc encoder_fuzzer-box.obj: box.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-box.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-box.Tpo -c -o encoder_fuzzer-box.obj `if test -f 'box.cc'; then $(CYGPATH_W) 'box.cc'; else $(CYGPATH_W) '$(srcdir)/box.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-box.Tpo $(DEPDIR)/encoder_fuzzer-box.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box.cc' object='encoder_fuzzer-box.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-box.obj `if test -f 'box.cc'; then $(CYGPATH_W) 'box.cc'; else $(CYGPATH_W) '$(srcdir)/box.cc'; fi` encoder_fuzzer-error.o: error.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-error.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-error.Tpo -c -o encoder_fuzzer-error.o `test -f 'error.cc' || echo '$(srcdir)/'`error.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-error.Tpo $(DEPDIR)/encoder_fuzzer-error.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='error.cc' object='encoder_fuzzer-error.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-error.o `test -f 'error.cc' || echo '$(srcdir)/'`error.cc encoder_fuzzer-error.obj: error.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-error.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-error.Tpo -c -o encoder_fuzzer-error.obj `if test -f 'error.cc'; then $(CYGPATH_W) 'error.cc'; else $(CYGPATH_W) '$(srcdir)/error.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-error.Tpo $(DEPDIR)/encoder_fuzzer-error.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='error.cc' object='encoder_fuzzer-error.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-error.obj `if test -f 'error.cc'; then $(CYGPATH_W) 'error.cc'; else $(CYGPATH_W) '$(srcdir)/error.cc'; fi` encoder_fuzzer-heif_file.o: heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_file.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_file.Tpo -c -o encoder_fuzzer-heif_file.o `test -f 'heif_file.cc' || echo '$(srcdir)/'`heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_file.Tpo $(DEPDIR)/encoder_fuzzer-heif_file.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_file.cc' object='encoder_fuzzer-heif_file.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_file.o `test -f 'heif_file.cc' || echo '$(srcdir)/'`heif_file.cc encoder_fuzzer-heif_file.obj: heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_file.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_file.Tpo -c -o encoder_fuzzer-heif_file.obj `if test -f 'heif_file.cc'; then $(CYGPATH_W) 'heif_file.cc'; else $(CYGPATH_W) '$(srcdir)/heif_file.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_file.Tpo $(DEPDIR)/encoder_fuzzer-heif_file.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_file.cc' object='encoder_fuzzer-heif_file.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_file.obj `if test -f 'heif_file.cc'; then $(CYGPATH_W) 'heif_file.cc'; else $(CYGPATH_W) '$(srcdir)/heif_file.cc'; fi` encoder_fuzzer-heif_image.o: heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_image.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_image.Tpo -c -o encoder_fuzzer-heif_image.o `test -f 'heif_image.cc' || echo '$(srcdir)/'`heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_image.Tpo $(DEPDIR)/encoder_fuzzer-heif_image.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_image.cc' object='encoder_fuzzer-heif_image.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_image.o `test -f 'heif_image.cc' || echo '$(srcdir)/'`heif_image.cc encoder_fuzzer-heif_image.obj: heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_image.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_image.Tpo -c -o encoder_fuzzer-heif_image.obj `if test -f 'heif_image.cc'; then $(CYGPATH_W) 'heif_image.cc'; else $(CYGPATH_W) '$(srcdir)/heif_image.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_image.Tpo $(DEPDIR)/encoder_fuzzer-heif_image.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_image.cc' object='encoder_fuzzer-heif_image.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_image.obj `if test -f 'heif_image.cc'; then $(CYGPATH_W) 'heif_image.cc'; else $(CYGPATH_W) '$(srcdir)/heif_image.cc'; fi` encoder_fuzzer-heif.o: heif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif.Tpo -c -o encoder_fuzzer-heif.o `test -f 'heif.cc' || echo '$(srcdir)/'`heif.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif.Tpo $(DEPDIR)/encoder_fuzzer-heif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif.cc' object='encoder_fuzzer-heif.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif.o `test -f 'heif.cc' || echo '$(srcdir)/'`heif.cc encoder_fuzzer-heif.obj: heif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif.Tpo -c -o encoder_fuzzer-heif.obj `if test -f 'heif.cc'; then $(CYGPATH_W) 'heif.cc'; else $(CYGPATH_W) '$(srcdir)/heif.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif.Tpo $(DEPDIR)/encoder_fuzzer-heif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif.cc' object='encoder_fuzzer-heif.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif.obj `if test -f 'heif.cc'; then $(CYGPATH_W) 'heif.cc'; else $(CYGPATH_W) '$(srcdir)/heif.cc'; fi` encoder_fuzzer-heif_context.o: heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_context.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_context.Tpo -c -o encoder_fuzzer-heif_context.o `test -f 'heif_context.cc' || echo '$(srcdir)/'`heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_context.Tpo $(DEPDIR)/encoder_fuzzer-heif_context.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_context.cc' object='encoder_fuzzer-heif_context.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_context.o `test -f 'heif_context.cc' || echo '$(srcdir)/'`heif_context.cc encoder_fuzzer-heif_context.obj: heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_context.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_context.Tpo -c -o encoder_fuzzer-heif_context.obj `if test -f 'heif_context.cc'; then $(CYGPATH_W) 'heif_context.cc'; else $(CYGPATH_W) '$(srcdir)/heif_context.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_context.Tpo $(DEPDIR)/encoder_fuzzer-heif_context.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_context.cc' object='encoder_fuzzer-heif_context.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_context.obj `if test -f 'heif_context.cc'; then $(CYGPATH_W) 'heif_context.cc'; else $(CYGPATH_W) '$(srcdir)/heif_context.cc'; fi` encoder_fuzzer-heif_hevc.o: heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_hevc.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_hevc.Tpo -c -o encoder_fuzzer-heif_hevc.o `test -f 'heif_hevc.cc' || echo '$(srcdir)/'`heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_hevc.Tpo $(DEPDIR)/encoder_fuzzer-heif_hevc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_hevc.cc' object='encoder_fuzzer-heif_hevc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_hevc.o `test -f 'heif_hevc.cc' || echo '$(srcdir)/'`heif_hevc.cc encoder_fuzzer-heif_hevc.obj: heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_hevc.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_hevc.Tpo -c -o encoder_fuzzer-heif_hevc.obj `if test -f 'heif_hevc.cc'; then $(CYGPATH_W) 'heif_hevc.cc'; else $(CYGPATH_W) '$(srcdir)/heif_hevc.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_hevc.Tpo $(DEPDIR)/encoder_fuzzer-heif_hevc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_hevc.cc' object='encoder_fuzzer-heif_hevc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_hevc.obj `if test -f 'heif_hevc.cc'; then $(CYGPATH_W) 'heif_hevc.cc'; else $(CYGPATH_W) '$(srcdir)/heif_hevc.cc'; fi` encoder_fuzzer-heif_avif.o: heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_avif.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_avif.Tpo -c -o encoder_fuzzer-heif_avif.o `test -f 'heif_avif.cc' || echo '$(srcdir)/'`heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_avif.Tpo $(DEPDIR)/encoder_fuzzer-heif_avif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_avif.cc' object='encoder_fuzzer-heif_avif.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_avif.o `test -f 'heif_avif.cc' || echo '$(srcdir)/'`heif_avif.cc encoder_fuzzer-heif_avif.obj: heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_avif.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_avif.Tpo -c -o encoder_fuzzer-heif_avif.obj `if test -f 'heif_avif.cc'; then $(CYGPATH_W) 'heif_avif.cc'; else $(CYGPATH_W) '$(srcdir)/heif_avif.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_avif.Tpo $(DEPDIR)/encoder_fuzzer-heif_avif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_avif.cc' object='encoder_fuzzer-heif_avif.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_avif.obj `if test -f 'heif_avif.cc'; then $(CYGPATH_W) 'heif_avif.cc'; else $(CYGPATH_W) '$(srcdir)/heif_avif.cc'; fi` encoder_fuzzer-heif_plugin_registry.o: heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_plugin_registry.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_plugin_registry.Tpo -c -o encoder_fuzzer-heif_plugin_registry.o `test -f 'heif_plugin_registry.cc' || echo '$(srcdir)/'`heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_plugin_registry.Tpo $(DEPDIR)/encoder_fuzzer-heif_plugin_registry.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin_registry.cc' object='encoder_fuzzer-heif_plugin_registry.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_plugin_registry.o `test -f 'heif_plugin_registry.cc' || echo '$(srcdir)/'`heif_plugin_registry.cc encoder_fuzzer-heif_plugin_registry.obj: heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_plugin_registry.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_plugin_registry.Tpo -c -o encoder_fuzzer-heif_plugin_registry.obj `if test -f 'heif_plugin_registry.cc'; then $(CYGPATH_W) 'heif_plugin_registry.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin_registry.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_plugin_registry.Tpo $(DEPDIR)/encoder_fuzzer-heif_plugin_registry.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin_registry.cc' object='encoder_fuzzer-heif_plugin_registry.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_plugin_registry.obj `if test -f 'heif_plugin_registry.cc'; then $(CYGPATH_W) 'heif_plugin_registry.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin_registry.cc'; fi` encoder_fuzzer-heif_plugin.o: heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_plugin.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_plugin.Tpo -c -o encoder_fuzzer-heif_plugin.o `test -f 'heif_plugin.cc' || echo '$(srcdir)/'`heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_plugin.Tpo $(DEPDIR)/encoder_fuzzer-heif_plugin.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin.cc' object='encoder_fuzzer-heif_plugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_plugin.o `test -f 'heif_plugin.cc' || echo '$(srcdir)/'`heif_plugin.cc encoder_fuzzer-heif_plugin.obj: heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_plugin.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_plugin.Tpo -c -o encoder_fuzzer-heif_plugin.obj `if test -f 'heif_plugin.cc'; then $(CYGPATH_W) 'heif_plugin.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_plugin.Tpo $(DEPDIR)/encoder_fuzzer-heif_plugin.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin.cc' object='encoder_fuzzer-heif_plugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_plugin.obj `if test -f 'heif_plugin.cc'; then $(CYGPATH_W) 'heif_plugin.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin.cc'; fi` encoder_fuzzer-heif_colorconversion.o: heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_colorconversion.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_colorconversion.Tpo -c -o encoder_fuzzer-heif_colorconversion.o `test -f 'heif_colorconversion.cc' || echo '$(srcdir)/'`heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_colorconversion.Tpo $(DEPDIR)/encoder_fuzzer-heif_colorconversion.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_colorconversion.cc' object='encoder_fuzzer-heif_colorconversion.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_colorconversion.o `test -f 'heif_colorconversion.cc' || echo '$(srcdir)/'`heif_colorconversion.cc encoder_fuzzer-heif_colorconversion.obj: heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_colorconversion.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_colorconversion.Tpo -c -o encoder_fuzzer-heif_colorconversion.obj `if test -f 'heif_colorconversion.cc'; then $(CYGPATH_W) 'heif_colorconversion.cc'; else $(CYGPATH_W) '$(srcdir)/heif_colorconversion.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_colorconversion.Tpo $(DEPDIR)/encoder_fuzzer-heif_colorconversion.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_colorconversion.cc' object='encoder_fuzzer-heif_colorconversion.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_colorconversion.obj `if test -f 'heif_colorconversion.cc'; then $(CYGPATH_W) 'heif_colorconversion.cc'; else $(CYGPATH_W) '$(srcdir)/heif_colorconversion.cc'; fi` encoder_fuzzer-nclx.o: nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-nclx.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-nclx.Tpo -c -o encoder_fuzzer-nclx.o `test -f 'nclx.cc' || echo '$(srcdir)/'`nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-nclx.Tpo $(DEPDIR)/encoder_fuzzer-nclx.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nclx.cc' object='encoder_fuzzer-nclx.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-nclx.o `test -f 'nclx.cc' || echo '$(srcdir)/'`nclx.cc encoder_fuzzer-nclx.obj: nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-nclx.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-nclx.Tpo -c -o encoder_fuzzer-nclx.obj `if test -f 'nclx.cc'; then $(CYGPATH_W) 'nclx.cc'; else $(CYGPATH_W) '$(srcdir)/nclx.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-nclx.Tpo $(DEPDIR)/encoder_fuzzer-nclx.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nclx.cc' object='encoder_fuzzer-nclx.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-nclx.obj `if test -f 'nclx.cc'; then $(CYGPATH_W) 'nclx.cc'; else $(CYGPATH_W) '$(srcdir)/nclx.cc'; fi` encoder_fuzzer-heif_decoder_aom.o: heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_decoder_aom.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_decoder_aom.Tpo -c -o encoder_fuzzer-heif_decoder_aom.o `test -f 'heif_decoder_aom.cc' || echo '$(srcdir)/'`heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_decoder_aom.Tpo $(DEPDIR)/encoder_fuzzer-heif_decoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_aom.cc' object='encoder_fuzzer-heif_decoder_aom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_decoder_aom.o `test -f 'heif_decoder_aom.cc' || echo '$(srcdir)/'`heif_decoder_aom.cc encoder_fuzzer-heif_decoder_aom.obj: heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_decoder_aom.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_decoder_aom.Tpo -c -o encoder_fuzzer-heif_decoder_aom.obj `if test -f 'heif_decoder_aom.cc'; then $(CYGPATH_W) 'heif_decoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_aom.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_decoder_aom.Tpo $(DEPDIR)/encoder_fuzzer-heif_decoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_aom.cc' object='encoder_fuzzer-heif_decoder_aom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_decoder_aom.obj `if test -f 'heif_decoder_aom.cc'; then $(CYGPATH_W) 'heif_decoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_aom.cc'; fi` encoder_fuzzer-heif_encoder_aom.o: heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_encoder_aom.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_encoder_aom.Tpo -c -o encoder_fuzzer-heif_encoder_aom.o `test -f 'heif_encoder_aom.cc' || echo '$(srcdir)/'`heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_encoder_aom.Tpo $(DEPDIR)/encoder_fuzzer-heif_encoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_aom.cc' object='encoder_fuzzer-heif_encoder_aom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_encoder_aom.o `test -f 'heif_encoder_aom.cc' || echo '$(srcdir)/'`heif_encoder_aom.cc encoder_fuzzer-heif_encoder_aom.obj: heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_encoder_aom.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_encoder_aom.Tpo -c -o encoder_fuzzer-heif_encoder_aom.obj `if test -f 'heif_encoder_aom.cc'; then $(CYGPATH_W) 'heif_encoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_aom.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_encoder_aom.Tpo $(DEPDIR)/encoder_fuzzer-heif_encoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_aom.cc' object='encoder_fuzzer-heif_encoder_aom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_encoder_aom.obj `if test -f 'heif_encoder_aom.cc'; then $(CYGPATH_W) 'heif_encoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_aom.cc'; fi` encoder_fuzzer-heif_decoder_libde265.o: heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_decoder_libde265.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_decoder_libde265.Tpo -c -o encoder_fuzzer-heif_decoder_libde265.o `test -f 'heif_decoder_libde265.cc' || echo '$(srcdir)/'`heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_decoder_libde265.Tpo $(DEPDIR)/encoder_fuzzer-heif_decoder_libde265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_libde265.cc' object='encoder_fuzzer-heif_decoder_libde265.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_decoder_libde265.o `test -f 'heif_decoder_libde265.cc' || echo '$(srcdir)/'`heif_decoder_libde265.cc encoder_fuzzer-heif_decoder_libde265.obj: heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_decoder_libde265.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_decoder_libde265.Tpo -c -o encoder_fuzzer-heif_decoder_libde265.obj `if test -f 'heif_decoder_libde265.cc'; then $(CYGPATH_W) 'heif_decoder_libde265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_libde265.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_decoder_libde265.Tpo $(DEPDIR)/encoder_fuzzer-heif_decoder_libde265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_libde265.cc' object='encoder_fuzzer-heif_decoder_libde265.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_decoder_libde265.obj `if test -f 'heif_decoder_libde265.cc'; then $(CYGPATH_W) 'heif_decoder_libde265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_libde265.cc'; fi` encoder_fuzzer-heif_encoder_rav1e.o: heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_encoder_rav1e.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_encoder_rav1e.Tpo -c -o encoder_fuzzer-heif_encoder_rav1e.o `test -f 'heif_encoder_rav1e.cc' || echo '$(srcdir)/'`heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_encoder_rav1e.Tpo $(DEPDIR)/encoder_fuzzer-heif_encoder_rav1e.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_rav1e.cc' object='encoder_fuzzer-heif_encoder_rav1e.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_encoder_rav1e.o `test -f 'heif_encoder_rav1e.cc' || echo '$(srcdir)/'`heif_encoder_rav1e.cc encoder_fuzzer-heif_encoder_rav1e.obj: heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_encoder_rav1e.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_encoder_rav1e.Tpo -c -o encoder_fuzzer-heif_encoder_rav1e.obj `if test -f 'heif_encoder_rav1e.cc'; then $(CYGPATH_W) 'heif_encoder_rav1e.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_rav1e.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_encoder_rav1e.Tpo $(DEPDIR)/encoder_fuzzer-heif_encoder_rav1e.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_rav1e.cc' object='encoder_fuzzer-heif_encoder_rav1e.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_encoder_rav1e.obj `if test -f 'heif_encoder_rav1e.cc'; then $(CYGPATH_W) 'heif_encoder_rav1e.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_rav1e.cc'; fi` encoder_fuzzer-heif_decoder_dav1d.o: heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_decoder_dav1d.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_decoder_dav1d.Tpo -c -o encoder_fuzzer-heif_decoder_dav1d.o `test -f 'heif_decoder_dav1d.cc' || echo '$(srcdir)/'`heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_decoder_dav1d.Tpo $(DEPDIR)/encoder_fuzzer-heif_decoder_dav1d.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_dav1d.cc' object='encoder_fuzzer-heif_decoder_dav1d.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_decoder_dav1d.o `test -f 'heif_decoder_dav1d.cc' || echo '$(srcdir)/'`heif_decoder_dav1d.cc encoder_fuzzer-heif_decoder_dav1d.obj: heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_decoder_dav1d.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_decoder_dav1d.Tpo -c -o encoder_fuzzer-heif_decoder_dav1d.obj `if test -f 'heif_decoder_dav1d.cc'; then $(CYGPATH_W) 'heif_decoder_dav1d.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_dav1d.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_decoder_dav1d.Tpo $(DEPDIR)/encoder_fuzzer-heif_decoder_dav1d.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_dav1d.cc' object='encoder_fuzzer-heif_decoder_dav1d.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_decoder_dav1d.obj `if test -f 'heif_decoder_dav1d.cc'; then $(CYGPATH_W) 'heif_decoder_dav1d.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_dav1d.cc'; fi` encoder_fuzzer-heif_encoder_x265.o: heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_encoder_x265.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_encoder_x265.Tpo -c -o encoder_fuzzer-heif_encoder_x265.o `test -f 'heif_encoder_x265.cc' || echo '$(srcdir)/'`heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_encoder_x265.Tpo $(DEPDIR)/encoder_fuzzer-heif_encoder_x265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_x265.cc' object='encoder_fuzzer-heif_encoder_x265.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_encoder_x265.o `test -f 'heif_encoder_x265.cc' || echo '$(srcdir)/'`heif_encoder_x265.cc encoder_fuzzer-heif_encoder_x265.obj: heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-heif_encoder_x265.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-heif_encoder_x265.Tpo -c -o encoder_fuzzer-heif_encoder_x265.obj `if test -f 'heif_encoder_x265.cc'; then $(CYGPATH_W) 'heif_encoder_x265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_x265.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-heif_encoder_x265.Tpo $(DEPDIR)/encoder_fuzzer-heif_encoder_x265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_x265.cc' object='encoder_fuzzer-heif_encoder_x265.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-heif_encoder_x265.obj `if test -f 'heif_encoder_x265.cc'; then $(CYGPATH_W) 'heif_encoder_x265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_x265.cc'; fi` encoder_fuzzer-encoder_fuzzer.o: encoder_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-encoder_fuzzer.o -MD -MP -MF $(DEPDIR)/encoder_fuzzer-encoder_fuzzer.Tpo -c -o encoder_fuzzer-encoder_fuzzer.o `test -f 'encoder_fuzzer.cc' || echo '$(srcdir)/'`encoder_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-encoder_fuzzer.Tpo $(DEPDIR)/encoder_fuzzer-encoder_fuzzer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder_fuzzer.cc' object='encoder_fuzzer-encoder_fuzzer.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-encoder_fuzzer.o `test -f 'encoder_fuzzer.cc' || echo '$(srcdir)/'`encoder_fuzzer.cc encoder_fuzzer-encoder_fuzzer.obj: encoder_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT encoder_fuzzer-encoder_fuzzer.obj -MD -MP -MF $(DEPDIR)/encoder_fuzzer-encoder_fuzzer.Tpo -c -o encoder_fuzzer-encoder_fuzzer.obj `if test -f 'encoder_fuzzer.cc'; then $(CYGPATH_W) 'encoder_fuzzer.cc'; else $(CYGPATH_W) '$(srcdir)/encoder_fuzzer.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/encoder_fuzzer-encoder_fuzzer.Tpo $(DEPDIR)/encoder_fuzzer-encoder_fuzzer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder_fuzzer.cc' object='encoder_fuzzer-encoder_fuzzer.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(encoder_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o encoder_fuzzer-encoder_fuzzer.obj `if test -f 'encoder_fuzzer.cc'; then $(CYGPATH_W) 'encoder_fuzzer.cc'; else $(CYGPATH_W) '$(srcdir)/encoder_fuzzer.cc'; fi` file_fuzzer-bitstream.o: bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-bitstream.o -MD -MP -MF $(DEPDIR)/file_fuzzer-bitstream.Tpo -c -o file_fuzzer-bitstream.o `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-bitstream.Tpo $(DEPDIR)/file_fuzzer-bitstream.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bitstream.cc' object='file_fuzzer-bitstream.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-bitstream.o `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc file_fuzzer-bitstream.obj: bitstream.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-bitstream.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-bitstream.Tpo -c -o file_fuzzer-bitstream.obj `if test -f 'bitstream.cc'; then $(CYGPATH_W) 'bitstream.cc'; else $(CYGPATH_W) '$(srcdir)/bitstream.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-bitstream.Tpo $(DEPDIR)/file_fuzzer-bitstream.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bitstream.cc' object='file_fuzzer-bitstream.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-bitstream.obj `if test -f 'bitstream.cc'; then $(CYGPATH_W) 'bitstream.cc'; else $(CYGPATH_W) '$(srcdir)/bitstream.cc'; fi` file_fuzzer-box.o: box.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-box.o -MD -MP -MF $(DEPDIR)/file_fuzzer-box.Tpo -c -o file_fuzzer-box.o `test -f 'box.cc' || echo '$(srcdir)/'`box.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-box.Tpo $(DEPDIR)/file_fuzzer-box.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box.cc' object='file_fuzzer-box.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-box.o `test -f 'box.cc' || echo '$(srcdir)/'`box.cc file_fuzzer-box.obj: box.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-box.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-box.Tpo -c -o file_fuzzer-box.obj `if test -f 'box.cc'; then $(CYGPATH_W) 'box.cc'; else $(CYGPATH_W) '$(srcdir)/box.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-box.Tpo $(DEPDIR)/file_fuzzer-box.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='box.cc' object='file_fuzzer-box.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-box.obj `if test -f 'box.cc'; then $(CYGPATH_W) 'box.cc'; else $(CYGPATH_W) '$(srcdir)/box.cc'; fi` file_fuzzer-error.o: error.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-error.o -MD -MP -MF $(DEPDIR)/file_fuzzer-error.Tpo -c -o file_fuzzer-error.o `test -f 'error.cc' || echo '$(srcdir)/'`error.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-error.Tpo $(DEPDIR)/file_fuzzer-error.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='error.cc' object='file_fuzzer-error.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-error.o `test -f 'error.cc' || echo '$(srcdir)/'`error.cc file_fuzzer-error.obj: error.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-error.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-error.Tpo -c -o file_fuzzer-error.obj `if test -f 'error.cc'; then $(CYGPATH_W) 'error.cc'; else $(CYGPATH_W) '$(srcdir)/error.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-error.Tpo $(DEPDIR)/file_fuzzer-error.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='error.cc' object='file_fuzzer-error.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-error.obj `if test -f 'error.cc'; then $(CYGPATH_W) 'error.cc'; else $(CYGPATH_W) '$(srcdir)/error.cc'; fi` file_fuzzer-heif_file.o: heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_file.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_file.Tpo -c -o file_fuzzer-heif_file.o `test -f 'heif_file.cc' || echo '$(srcdir)/'`heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_file.Tpo $(DEPDIR)/file_fuzzer-heif_file.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_file.cc' object='file_fuzzer-heif_file.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_file.o `test -f 'heif_file.cc' || echo '$(srcdir)/'`heif_file.cc file_fuzzer-heif_file.obj: heif_file.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_file.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_file.Tpo -c -o file_fuzzer-heif_file.obj `if test -f 'heif_file.cc'; then $(CYGPATH_W) 'heif_file.cc'; else $(CYGPATH_W) '$(srcdir)/heif_file.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_file.Tpo $(DEPDIR)/file_fuzzer-heif_file.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_file.cc' object='file_fuzzer-heif_file.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_file.obj `if test -f 'heif_file.cc'; then $(CYGPATH_W) 'heif_file.cc'; else $(CYGPATH_W) '$(srcdir)/heif_file.cc'; fi` file_fuzzer-heif_image.o: heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_image.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_image.Tpo -c -o file_fuzzer-heif_image.o `test -f 'heif_image.cc' || echo '$(srcdir)/'`heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_image.Tpo $(DEPDIR)/file_fuzzer-heif_image.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_image.cc' object='file_fuzzer-heif_image.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_image.o `test -f 'heif_image.cc' || echo '$(srcdir)/'`heif_image.cc file_fuzzer-heif_image.obj: heif_image.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_image.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_image.Tpo -c -o file_fuzzer-heif_image.obj `if test -f 'heif_image.cc'; then $(CYGPATH_W) 'heif_image.cc'; else $(CYGPATH_W) '$(srcdir)/heif_image.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_image.Tpo $(DEPDIR)/file_fuzzer-heif_image.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_image.cc' object='file_fuzzer-heif_image.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_image.obj `if test -f 'heif_image.cc'; then $(CYGPATH_W) 'heif_image.cc'; else $(CYGPATH_W) '$(srcdir)/heif_image.cc'; fi` file_fuzzer-heif.o: heif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif.Tpo -c -o file_fuzzer-heif.o `test -f 'heif.cc' || echo '$(srcdir)/'`heif.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif.Tpo $(DEPDIR)/file_fuzzer-heif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif.cc' object='file_fuzzer-heif.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif.o `test -f 'heif.cc' || echo '$(srcdir)/'`heif.cc file_fuzzer-heif.obj: heif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif.Tpo -c -o file_fuzzer-heif.obj `if test -f 'heif.cc'; then $(CYGPATH_W) 'heif.cc'; else $(CYGPATH_W) '$(srcdir)/heif.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif.Tpo $(DEPDIR)/file_fuzzer-heif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif.cc' object='file_fuzzer-heif.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif.obj `if test -f 'heif.cc'; then $(CYGPATH_W) 'heif.cc'; else $(CYGPATH_W) '$(srcdir)/heif.cc'; fi` file_fuzzer-heif_context.o: heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_context.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_context.Tpo -c -o file_fuzzer-heif_context.o `test -f 'heif_context.cc' || echo '$(srcdir)/'`heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_context.Tpo $(DEPDIR)/file_fuzzer-heif_context.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_context.cc' object='file_fuzzer-heif_context.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_context.o `test -f 'heif_context.cc' || echo '$(srcdir)/'`heif_context.cc file_fuzzer-heif_context.obj: heif_context.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_context.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_context.Tpo -c -o file_fuzzer-heif_context.obj `if test -f 'heif_context.cc'; then $(CYGPATH_W) 'heif_context.cc'; else $(CYGPATH_W) '$(srcdir)/heif_context.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_context.Tpo $(DEPDIR)/file_fuzzer-heif_context.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_context.cc' object='file_fuzzer-heif_context.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_context.obj `if test -f 'heif_context.cc'; then $(CYGPATH_W) 'heif_context.cc'; else $(CYGPATH_W) '$(srcdir)/heif_context.cc'; fi` file_fuzzer-heif_hevc.o: heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_hevc.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_hevc.Tpo -c -o file_fuzzer-heif_hevc.o `test -f 'heif_hevc.cc' || echo '$(srcdir)/'`heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_hevc.Tpo $(DEPDIR)/file_fuzzer-heif_hevc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_hevc.cc' object='file_fuzzer-heif_hevc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_hevc.o `test -f 'heif_hevc.cc' || echo '$(srcdir)/'`heif_hevc.cc file_fuzzer-heif_hevc.obj: heif_hevc.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_hevc.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_hevc.Tpo -c -o file_fuzzer-heif_hevc.obj `if test -f 'heif_hevc.cc'; then $(CYGPATH_W) 'heif_hevc.cc'; else $(CYGPATH_W) '$(srcdir)/heif_hevc.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_hevc.Tpo $(DEPDIR)/file_fuzzer-heif_hevc.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_hevc.cc' object='file_fuzzer-heif_hevc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_hevc.obj `if test -f 'heif_hevc.cc'; then $(CYGPATH_W) 'heif_hevc.cc'; else $(CYGPATH_W) '$(srcdir)/heif_hevc.cc'; fi` file_fuzzer-heif_avif.o: heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_avif.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_avif.Tpo -c -o file_fuzzer-heif_avif.o `test -f 'heif_avif.cc' || echo '$(srcdir)/'`heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_avif.Tpo $(DEPDIR)/file_fuzzer-heif_avif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_avif.cc' object='file_fuzzer-heif_avif.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_avif.o `test -f 'heif_avif.cc' || echo '$(srcdir)/'`heif_avif.cc file_fuzzer-heif_avif.obj: heif_avif.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_avif.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_avif.Tpo -c -o file_fuzzer-heif_avif.obj `if test -f 'heif_avif.cc'; then $(CYGPATH_W) 'heif_avif.cc'; else $(CYGPATH_W) '$(srcdir)/heif_avif.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_avif.Tpo $(DEPDIR)/file_fuzzer-heif_avif.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_avif.cc' object='file_fuzzer-heif_avif.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_avif.obj `if test -f 'heif_avif.cc'; then $(CYGPATH_W) 'heif_avif.cc'; else $(CYGPATH_W) '$(srcdir)/heif_avif.cc'; fi` file_fuzzer-heif_plugin_registry.o: heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_plugin_registry.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_plugin_registry.Tpo -c -o file_fuzzer-heif_plugin_registry.o `test -f 'heif_plugin_registry.cc' || echo '$(srcdir)/'`heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_plugin_registry.Tpo $(DEPDIR)/file_fuzzer-heif_plugin_registry.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin_registry.cc' object='file_fuzzer-heif_plugin_registry.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_plugin_registry.o `test -f 'heif_plugin_registry.cc' || echo '$(srcdir)/'`heif_plugin_registry.cc file_fuzzer-heif_plugin_registry.obj: heif_plugin_registry.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_plugin_registry.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_plugin_registry.Tpo -c -o file_fuzzer-heif_plugin_registry.obj `if test -f 'heif_plugin_registry.cc'; then $(CYGPATH_W) 'heif_plugin_registry.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin_registry.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_plugin_registry.Tpo $(DEPDIR)/file_fuzzer-heif_plugin_registry.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin_registry.cc' object='file_fuzzer-heif_plugin_registry.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_plugin_registry.obj `if test -f 'heif_plugin_registry.cc'; then $(CYGPATH_W) 'heif_plugin_registry.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin_registry.cc'; fi` file_fuzzer-heif_plugin.o: heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_plugin.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_plugin.Tpo -c -o file_fuzzer-heif_plugin.o `test -f 'heif_plugin.cc' || echo '$(srcdir)/'`heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_plugin.Tpo $(DEPDIR)/file_fuzzer-heif_plugin.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin.cc' object='file_fuzzer-heif_plugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_plugin.o `test -f 'heif_plugin.cc' || echo '$(srcdir)/'`heif_plugin.cc file_fuzzer-heif_plugin.obj: heif_plugin.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_plugin.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_plugin.Tpo -c -o file_fuzzer-heif_plugin.obj `if test -f 'heif_plugin.cc'; then $(CYGPATH_W) 'heif_plugin.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_plugin.Tpo $(DEPDIR)/file_fuzzer-heif_plugin.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_plugin.cc' object='file_fuzzer-heif_plugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_plugin.obj `if test -f 'heif_plugin.cc'; then $(CYGPATH_W) 'heif_plugin.cc'; else $(CYGPATH_W) '$(srcdir)/heif_plugin.cc'; fi` file_fuzzer-heif_colorconversion.o: heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_colorconversion.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_colorconversion.Tpo -c -o file_fuzzer-heif_colorconversion.o `test -f 'heif_colorconversion.cc' || echo '$(srcdir)/'`heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_colorconversion.Tpo $(DEPDIR)/file_fuzzer-heif_colorconversion.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_colorconversion.cc' object='file_fuzzer-heif_colorconversion.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_colorconversion.o `test -f 'heif_colorconversion.cc' || echo '$(srcdir)/'`heif_colorconversion.cc file_fuzzer-heif_colorconversion.obj: heif_colorconversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_colorconversion.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_colorconversion.Tpo -c -o file_fuzzer-heif_colorconversion.obj `if test -f 'heif_colorconversion.cc'; then $(CYGPATH_W) 'heif_colorconversion.cc'; else $(CYGPATH_W) '$(srcdir)/heif_colorconversion.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_colorconversion.Tpo $(DEPDIR)/file_fuzzer-heif_colorconversion.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_colorconversion.cc' object='file_fuzzer-heif_colorconversion.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_colorconversion.obj `if test -f 'heif_colorconversion.cc'; then $(CYGPATH_W) 'heif_colorconversion.cc'; else $(CYGPATH_W) '$(srcdir)/heif_colorconversion.cc'; fi` file_fuzzer-nclx.o: nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-nclx.o -MD -MP -MF $(DEPDIR)/file_fuzzer-nclx.Tpo -c -o file_fuzzer-nclx.o `test -f 'nclx.cc' || echo '$(srcdir)/'`nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-nclx.Tpo $(DEPDIR)/file_fuzzer-nclx.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nclx.cc' object='file_fuzzer-nclx.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-nclx.o `test -f 'nclx.cc' || echo '$(srcdir)/'`nclx.cc file_fuzzer-nclx.obj: nclx.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-nclx.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-nclx.Tpo -c -o file_fuzzer-nclx.obj `if test -f 'nclx.cc'; then $(CYGPATH_W) 'nclx.cc'; else $(CYGPATH_W) '$(srcdir)/nclx.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-nclx.Tpo $(DEPDIR)/file_fuzzer-nclx.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nclx.cc' object='file_fuzzer-nclx.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-nclx.obj `if test -f 'nclx.cc'; then $(CYGPATH_W) 'nclx.cc'; else $(CYGPATH_W) '$(srcdir)/nclx.cc'; fi` file_fuzzer-heif_decoder_aom.o: heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_decoder_aom.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_decoder_aom.Tpo -c -o file_fuzzer-heif_decoder_aom.o `test -f 'heif_decoder_aom.cc' || echo '$(srcdir)/'`heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_decoder_aom.Tpo $(DEPDIR)/file_fuzzer-heif_decoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_aom.cc' object='file_fuzzer-heif_decoder_aom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_decoder_aom.o `test -f 'heif_decoder_aom.cc' || echo '$(srcdir)/'`heif_decoder_aom.cc file_fuzzer-heif_decoder_aom.obj: heif_decoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_decoder_aom.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_decoder_aom.Tpo -c -o file_fuzzer-heif_decoder_aom.obj `if test -f 'heif_decoder_aom.cc'; then $(CYGPATH_W) 'heif_decoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_aom.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_decoder_aom.Tpo $(DEPDIR)/file_fuzzer-heif_decoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_aom.cc' object='file_fuzzer-heif_decoder_aom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_decoder_aom.obj `if test -f 'heif_decoder_aom.cc'; then $(CYGPATH_W) 'heif_decoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_aom.cc'; fi` file_fuzzer-heif_encoder_aom.o: heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_encoder_aom.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_encoder_aom.Tpo -c -o file_fuzzer-heif_encoder_aom.o `test -f 'heif_encoder_aom.cc' || echo '$(srcdir)/'`heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_encoder_aom.Tpo $(DEPDIR)/file_fuzzer-heif_encoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_aom.cc' object='file_fuzzer-heif_encoder_aom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_encoder_aom.o `test -f 'heif_encoder_aom.cc' || echo '$(srcdir)/'`heif_encoder_aom.cc file_fuzzer-heif_encoder_aom.obj: heif_encoder_aom.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_encoder_aom.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_encoder_aom.Tpo -c -o file_fuzzer-heif_encoder_aom.obj `if test -f 'heif_encoder_aom.cc'; then $(CYGPATH_W) 'heif_encoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_aom.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_encoder_aom.Tpo $(DEPDIR)/file_fuzzer-heif_encoder_aom.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_aom.cc' object='file_fuzzer-heif_encoder_aom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_encoder_aom.obj `if test -f 'heif_encoder_aom.cc'; then $(CYGPATH_W) 'heif_encoder_aom.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_aom.cc'; fi` file_fuzzer-heif_decoder_libde265.o: heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_decoder_libde265.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_decoder_libde265.Tpo -c -o file_fuzzer-heif_decoder_libde265.o `test -f 'heif_decoder_libde265.cc' || echo '$(srcdir)/'`heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_decoder_libde265.Tpo $(DEPDIR)/file_fuzzer-heif_decoder_libde265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_libde265.cc' object='file_fuzzer-heif_decoder_libde265.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_decoder_libde265.o `test -f 'heif_decoder_libde265.cc' || echo '$(srcdir)/'`heif_decoder_libde265.cc file_fuzzer-heif_decoder_libde265.obj: heif_decoder_libde265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_decoder_libde265.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_decoder_libde265.Tpo -c -o file_fuzzer-heif_decoder_libde265.obj `if test -f 'heif_decoder_libde265.cc'; then $(CYGPATH_W) 'heif_decoder_libde265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_libde265.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_decoder_libde265.Tpo $(DEPDIR)/file_fuzzer-heif_decoder_libde265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_libde265.cc' object='file_fuzzer-heif_decoder_libde265.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_decoder_libde265.obj `if test -f 'heif_decoder_libde265.cc'; then $(CYGPATH_W) 'heif_decoder_libde265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_libde265.cc'; fi` file_fuzzer-heif_encoder_rav1e.o: heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_encoder_rav1e.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_encoder_rav1e.Tpo -c -o file_fuzzer-heif_encoder_rav1e.o `test -f 'heif_encoder_rav1e.cc' || echo '$(srcdir)/'`heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_encoder_rav1e.Tpo $(DEPDIR)/file_fuzzer-heif_encoder_rav1e.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_rav1e.cc' object='file_fuzzer-heif_encoder_rav1e.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_encoder_rav1e.o `test -f 'heif_encoder_rav1e.cc' || echo '$(srcdir)/'`heif_encoder_rav1e.cc file_fuzzer-heif_encoder_rav1e.obj: heif_encoder_rav1e.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_encoder_rav1e.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_encoder_rav1e.Tpo -c -o file_fuzzer-heif_encoder_rav1e.obj `if test -f 'heif_encoder_rav1e.cc'; then $(CYGPATH_W) 'heif_encoder_rav1e.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_rav1e.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_encoder_rav1e.Tpo $(DEPDIR)/file_fuzzer-heif_encoder_rav1e.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_rav1e.cc' object='file_fuzzer-heif_encoder_rav1e.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_encoder_rav1e.obj `if test -f 'heif_encoder_rav1e.cc'; then $(CYGPATH_W) 'heif_encoder_rav1e.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_rav1e.cc'; fi` file_fuzzer-heif_decoder_dav1d.o: heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_decoder_dav1d.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_decoder_dav1d.Tpo -c -o file_fuzzer-heif_decoder_dav1d.o `test -f 'heif_decoder_dav1d.cc' || echo '$(srcdir)/'`heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_decoder_dav1d.Tpo $(DEPDIR)/file_fuzzer-heif_decoder_dav1d.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_dav1d.cc' object='file_fuzzer-heif_decoder_dav1d.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_decoder_dav1d.o `test -f 'heif_decoder_dav1d.cc' || echo '$(srcdir)/'`heif_decoder_dav1d.cc file_fuzzer-heif_decoder_dav1d.obj: heif_decoder_dav1d.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_decoder_dav1d.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_decoder_dav1d.Tpo -c -o file_fuzzer-heif_decoder_dav1d.obj `if test -f 'heif_decoder_dav1d.cc'; then $(CYGPATH_W) 'heif_decoder_dav1d.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_dav1d.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_decoder_dav1d.Tpo $(DEPDIR)/file_fuzzer-heif_decoder_dav1d.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_decoder_dav1d.cc' object='file_fuzzer-heif_decoder_dav1d.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_decoder_dav1d.obj `if test -f 'heif_decoder_dav1d.cc'; then $(CYGPATH_W) 'heif_decoder_dav1d.cc'; else $(CYGPATH_W) '$(srcdir)/heif_decoder_dav1d.cc'; fi` file_fuzzer-heif_encoder_x265.o: heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_encoder_x265.o -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_encoder_x265.Tpo -c -o file_fuzzer-heif_encoder_x265.o `test -f 'heif_encoder_x265.cc' || echo '$(srcdir)/'`heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_encoder_x265.Tpo $(DEPDIR)/file_fuzzer-heif_encoder_x265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_x265.cc' object='file_fuzzer-heif_encoder_x265.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_encoder_x265.o `test -f 'heif_encoder_x265.cc' || echo '$(srcdir)/'`heif_encoder_x265.cc file_fuzzer-heif_encoder_x265.obj: heif_encoder_x265.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-heif_encoder_x265.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-heif_encoder_x265.Tpo -c -o file_fuzzer-heif_encoder_x265.obj `if test -f 'heif_encoder_x265.cc'; then $(CYGPATH_W) 'heif_encoder_x265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_x265.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-heif_encoder_x265.Tpo $(DEPDIR)/file_fuzzer-heif_encoder_x265.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='heif_encoder_x265.cc' object='file_fuzzer-heif_encoder_x265.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-heif_encoder_x265.obj `if test -f 'heif_encoder_x265.cc'; then $(CYGPATH_W) 'heif_encoder_x265.cc'; else $(CYGPATH_W) '$(srcdir)/heif_encoder_x265.cc'; fi` file_fuzzer-file_fuzzer.o: file_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-file_fuzzer.o -MD -MP -MF $(DEPDIR)/file_fuzzer-file_fuzzer.Tpo -c -o file_fuzzer-file_fuzzer.o `test -f 'file_fuzzer.cc' || echo '$(srcdir)/'`file_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-file_fuzzer.Tpo $(DEPDIR)/file_fuzzer-file_fuzzer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='file_fuzzer.cc' object='file_fuzzer-file_fuzzer.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-file_fuzzer.o `test -f 'file_fuzzer.cc' || echo '$(srcdir)/'`file_fuzzer.cc file_fuzzer-file_fuzzer.obj: file_fuzzer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -MT file_fuzzer-file_fuzzer.obj -MD -MP -MF $(DEPDIR)/file_fuzzer-file_fuzzer.Tpo -c -o file_fuzzer-file_fuzzer.obj `if test -f 'file_fuzzer.cc'; then $(CYGPATH_W) 'file_fuzzer.cc'; else $(CYGPATH_W) '$(srcdir)/file_fuzzer.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/file_fuzzer-file_fuzzer.Tpo $(DEPDIR)/file_fuzzer-file_fuzzer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='file_fuzzer.cc' object='file_fuzzer-file_fuzzer.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(file_fuzzer_CXXFLAGS) $(CXXFLAGS) -c -o file_fuzzer-file_fuzzer.obj `if test -f 'file_fuzzer.cc'; then $(CYGPATH_W) 'file_fuzzer.cc'; else $(CYGPATH_W) '$(srcdir)/file_fuzzer.cc'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-libheif_laHEADERS: $(libheif_la_HEADERS) @$(NORMAL_INSTALL) @list='$(libheif_la_HEADERS)'; test -n "$(libheif_ladir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(libheif_ladir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libheif_ladir)" || 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)$(libheif_ladir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(libheif_ladir)" || exit $$?; \ done uninstall-libheif_laHEADERS: @$(NORMAL_UNINSTALL) @list='$(libheif_la_HEADERS)'; test -n "$(libheif_ladir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(libheif_ladir)'; $(am__uninstall_files_from_dir) format-local: test-local: ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(LIBRARIES) $(LTLIBRARIES) $(HEADERS) install-binPROGRAMS: install-libLTLIBRARIES installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libheif_ladir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ clean-libtool clean-noinstLIBRARIES mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/box_fuzzer-bitstream.Po -rm -f ./$(DEPDIR)/box_fuzzer-box.Po -rm -f ./$(DEPDIR)/box_fuzzer-box_fuzzer.Po -rm -f ./$(DEPDIR)/box_fuzzer-error.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_avif.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_colorconversion.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_context.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_decoder_aom.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_decoder_dav1d.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_decoder_libde265.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_encoder_aom.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_encoder_rav1e.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_encoder_x265.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_file.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_hevc.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_image.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_plugin.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_plugin_registry.Po -rm -f ./$(DEPDIR)/box_fuzzer-nclx.Po -rm -f ./$(DEPDIR)/box_fuzzer.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-bitstream.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-box.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-color_conversion_fuzzer.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-error.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_avif.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_colorconversion.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_context.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_aom.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_dav1d.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_libde265.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_aom.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_rav1e.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_x265.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_file.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_hevc.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_image.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_plugin.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_plugin_registry.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-nclx.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-bitstream.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-box.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-encoder_fuzzer.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-error.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_avif.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_colorconversion.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_context.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_decoder_aom.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_decoder_dav1d.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_decoder_libde265.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_encoder_aom.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_encoder_rav1e.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_encoder_x265.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_file.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_hevc.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_image.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_plugin.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_plugin_registry.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-nclx.Po -rm -f ./$(DEPDIR)/encoder_fuzzer.Po -rm -f ./$(DEPDIR)/file_fuzzer-bitstream.Po -rm -f ./$(DEPDIR)/file_fuzzer-box.Po -rm -f ./$(DEPDIR)/file_fuzzer-error.Po -rm -f ./$(DEPDIR)/file_fuzzer-file_fuzzer.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_avif.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_colorconversion.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_context.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_decoder_aom.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_decoder_dav1d.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_decoder_libde265.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_encoder_aom.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_encoder_rav1e.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_encoder_x265.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_file.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_hevc.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_image.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_plugin.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_plugin_registry.Po -rm -f ./$(DEPDIR)/file_fuzzer-nclx.Po -rm -f ./$(DEPDIR)/file_fuzzer.Po -rm -f ./$(DEPDIR)/libheif_la-bitstream.Plo -rm -f ./$(DEPDIR)/libheif_la-box.Plo -rm -f ./$(DEPDIR)/libheif_la-error.Plo -rm -f ./$(DEPDIR)/libheif_la-heif.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_avif.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_colorconversion.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_context.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_decoder_aom.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_decoder_dav1d.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_decoder_libde265.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_encoder_aom.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_encoder_rav1e.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_encoder_x265.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_file.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_hevc.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_image.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_plugin.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_plugin_registry.Plo -rm -f ./$(DEPDIR)/libheif_la-nclx.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: format: format-am format-am: format-local html: html-am html-am: info: info-am info-am: install-data-am: install-libheif_laHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/box_fuzzer-bitstream.Po -rm -f ./$(DEPDIR)/box_fuzzer-box.Po -rm -f ./$(DEPDIR)/box_fuzzer-box_fuzzer.Po -rm -f ./$(DEPDIR)/box_fuzzer-error.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_avif.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_colorconversion.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_context.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_decoder_aom.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_decoder_dav1d.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_decoder_libde265.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_encoder_aom.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_encoder_rav1e.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_encoder_x265.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_file.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_hevc.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_image.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_plugin.Po -rm -f ./$(DEPDIR)/box_fuzzer-heif_plugin_registry.Po -rm -f ./$(DEPDIR)/box_fuzzer-nclx.Po -rm -f ./$(DEPDIR)/box_fuzzer.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-bitstream.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-box.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-color_conversion_fuzzer.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-error.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_avif.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_colorconversion.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_context.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_aom.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_dav1d.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_decoder_libde265.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_aom.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_rav1e.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_encoder_x265.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_file.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_hevc.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_image.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_plugin.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-heif_plugin_registry.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer-nclx.Po -rm -f ./$(DEPDIR)/color_conversion_fuzzer.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-bitstream.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-box.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-encoder_fuzzer.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-error.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_avif.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_colorconversion.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_context.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_decoder_aom.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_decoder_dav1d.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_decoder_libde265.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_encoder_aom.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_encoder_rav1e.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_encoder_x265.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_file.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_hevc.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_image.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_plugin.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-heif_plugin_registry.Po -rm -f ./$(DEPDIR)/encoder_fuzzer-nclx.Po -rm -f ./$(DEPDIR)/encoder_fuzzer.Po -rm -f ./$(DEPDIR)/file_fuzzer-bitstream.Po -rm -f ./$(DEPDIR)/file_fuzzer-box.Po -rm -f ./$(DEPDIR)/file_fuzzer-error.Po -rm -f ./$(DEPDIR)/file_fuzzer-file_fuzzer.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_avif.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_colorconversion.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_context.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_decoder_aom.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_decoder_dav1d.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_decoder_libde265.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_encoder_aom.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_encoder_rav1e.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_encoder_x265.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_file.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_hevc.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_image.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_plugin.Po -rm -f ./$(DEPDIR)/file_fuzzer-heif_plugin_registry.Po -rm -f ./$(DEPDIR)/file_fuzzer-nclx.Po -rm -f ./$(DEPDIR)/file_fuzzer.Po -rm -f ./$(DEPDIR)/libheif_la-bitstream.Plo -rm -f ./$(DEPDIR)/libheif_la-box.Plo -rm -f ./$(DEPDIR)/libheif_la-error.Plo -rm -f ./$(DEPDIR)/libheif_la-heif.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_avif.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_colorconversion.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_context.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_decoder_aom.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_decoder_dav1d.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_decoder_libde265.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_encoder_aom.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_encoder_rav1e.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_encoder_x265.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_file.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_hevc.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_image.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_plugin.Plo -rm -f ./$(DEPDIR)/libheif_la-heif_plugin_registry.Plo -rm -f ./$(DEPDIR)/libheif_la-nclx.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: test: test-am test-am: test-local uninstall-am: uninstall-binPROGRAMS uninstall-libLTLIBRARIES \ uninstall-libheif_laHEADERS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ clean-libtool clean-noinstLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am format-am \ format-local html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-libLTLIBRARIES install-libheif_laHEADERS 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 test-am test-local uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-libLTLIBRARIES \ uninstall-libheif_laHEADERS .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libheif-1.12.0/libheif/heif_file.cc0000664000175000017500000005713114043747772013771 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif_file.h" #include #include #include #include #include #include #ifdef _MSC_VER #ifndef NOMINMAX #define NOMINMAX 1 #endif #include #endif using namespace heif; // TODO: make this a decoder option #define STRICT_PARSING false HeifFile::HeifFile() { } HeifFile::~HeifFile() { } std::vector HeifFile::get_item_IDs() const { std::vector IDs; for (const auto& infe : m_infe_boxes) { IDs.push_back(infe.second->get_item_ID()); } return IDs; } Error HeifFile::read_from_file(const char* input_filename) { #ifdef _MSC_VER auto input_stream_istr = std::unique_ptr(new std::ifstream(convert_utf8_path_to_utf16(input_filename).c_str(), std::ios_base::binary)); #else auto input_stream_istr = std::unique_ptr(new std::ifstream(input_filename, std::ios_base::binary)); #endif if (!input_stream_istr->good()) { std::stringstream sstr; sstr << "Error opening file: " << strerror(errno) << " (" << errno << ")\n"; return Error(heif_error_Input_does_not_exist, heif_suberror_Unspecified, sstr.str()); } auto input_stream = std::make_shared(std::move(input_stream_istr)); return read(input_stream); } Error HeifFile::read_from_memory(const void* data, size_t size, bool copy) { auto input_stream = std::make_shared((const uint8_t*) data, size, copy); return read(input_stream); } Error HeifFile::read(std::shared_ptr reader) { m_input_stream = reader; uint64_t maxSize = std::numeric_limits::max(); heif::BitstreamRange range(m_input_stream, maxSize); Error error = parse_heif_file(range); return error; } void HeifFile::new_empty_file() { m_input_stream.reset(); m_top_level_boxes.clear(); m_ftyp_box = std::make_shared(); m_hdlr_box = std::make_shared(); m_meta_box = std::make_shared(); m_ipco_box = std::make_shared(); m_ipma_box = std::make_shared(); m_iloc_box = std::make_shared(); m_iinf_box = std::make_shared(); m_iprp_box = std::make_shared(); m_pitm_box = std::make_shared(); m_meta_box->append_child_box(m_hdlr_box); m_meta_box->append_child_box(m_pitm_box); m_meta_box->append_child_box(m_iloc_box); m_meta_box->append_child_box(m_iinf_box); m_meta_box->append_child_box(m_iprp_box); m_iprp_box->append_child_box(m_ipco_box); m_iprp_box->append_child_box(m_ipma_box); m_infe_boxes.clear(); m_top_level_boxes.push_back(m_ftyp_box); m_top_level_boxes.push_back(m_meta_box); } void HeifFile::set_brand(heif_compression_format format, bool miaf_compatible) { // Note: major brand should be repeated in the compatible brands, according to this: // ISOBMFF (ISO/IEC 14496-12:2020) § K.4: // NOTE This document requires that the major brand be repeated in the compatible-brands, // but this requirement is relaxed in the 'profiles' parameter for compactness. // See https://github.com/strukturag/libheif/issues/478 switch (format) { case heif_compression_HEVC: m_ftyp_box->set_major_brand(fourcc("heic")); m_ftyp_box->set_minor_version(0); m_ftyp_box->add_compatible_brand(fourcc("mif1")); m_ftyp_box->add_compatible_brand(fourcc("heic")); break; case heif_compression_AV1: m_ftyp_box->set_major_brand(fourcc("avif")); m_ftyp_box->set_minor_version(0); m_ftyp_box->add_compatible_brand(fourcc("avif")); m_ftyp_box->add_compatible_brand(fourcc("mif1")); break; default: break; } if (miaf_compatible) { m_ftyp_box->add_compatible_brand(fourcc("miaf")); } } void HeifFile::write(StreamWriter& writer) { for (auto& box : m_top_level_boxes) { box->derive_box_version_recursive(); box->write(writer); } m_iloc_box->write_mdat_after_iloc(writer); } std::string HeifFile::debug_dump_boxes() const { std::stringstream sstr; bool first = true; for (const auto& box : m_top_level_boxes) { // dump box content for debugging if (first) { first = false; } else { sstr << "\n"; } heif::Indent indent; sstr << box->dump(indent); } return sstr.str(); } Error HeifFile::parse_heif_file(BitstreamRange& range) { // --- read all top-level boxes for (;;) { std::shared_ptr box; Error error = Box::read(range, &box); // When an EOF error is returned, this is not really a fatal exception, // but simply the indication that we reached the end of the file. if (error != Error::Ok || range.error() || range.eof()) { break; } m_top_level_boxes.push_back(box); // extract relevant boxes (ftyp, meta) if (box->get_short_type() == fourcc("meta")) { m_meta_box = std::dynamic_pointer_cast(box); } if (box->get_short_type() == fourcc("ftyp")) { m_ftyp_box = std::dynamic_pointer_cast(box); } } // --- check whether this is a HEIF file and its structural format if (!m_ftyp_box) { return Error(heif_error_Invalid_input, heif_suberror_No_ftyp_box); } if (!m_ftyp_box->has_compatible_brand(fourcc("heic")) && !m_ftyp_box->has_compatible_brand(fourcc("heix")) && !m_ftyp_box->has_compatible_brand(fourcc("mif1")) && !m_ftyp_box->has_compatible_brand(fourcc("avif"))) { std::stringstream sstr; sstr << "File does not include any supported brands.\n"; return Error(heif_error_Unsupported_filetype, heif_suberror_Unspecified, sstr.str()); } if (!m_meta_box) { return Error(heif_error_Invalid_input, heif_suberror_No_meta_box); } m_hdlr_box = std::dynamic_pointer_cast(m_meta_box->get_child_box(fourcc("hdlr"))); if (STRICT_PARSING && !m_hdlr_box) { return Error(heif_error_Invalid_input, heif_suberror_No_hdlr_box); } if (m_hdlr_box && m_hdlr_box->get_handler_type() != fourcc("pict")) { return Error(heif_error_Invalid_input, heif_suberror_No_pict_handler); } // --- find mandatory boxes needed for image decoding m_pitm_box = std::dynamic_pointer_cast(m_meta_box->get_child_box(fourcc("pitm"))); if (!m_pitm_box) { return Error(heif_error_Invalid_input, heif_suberror_No_pitm_box); } m_iprp_box = std::dynamic_pointer_cast(m_meta_box->get_child_box(fourcc("iprp"))); if (!m_iprp_box) { return Error(heif_error_Invalid_input, heif_suberror_No_iprp_box); } m_ipco_box = std::dynamic_pointer_cast(m_iprp_box->get_child_box(fourcc("ipco"))); if (!m_ipco_box) { return Error(heif_error_Invalid_input, heif_suberror_No_ipco_box); } m_ipma_box = std::dynamic_pointer_cast(m_iprp_box->get_child_box(fourcc("ipma"))); if (!m_ipma_box) { return Error(heif_error_Invalid_input, heif_suberror_No_ipma_box); } m_iloc_box = std::dynamic_pointer_cast(m_meta_box->get_child_box(fourcc("iloc"))); if (!m_iloc_box) { return Error(heif_error_Invalid_input, heif_suberror_No_iloc_box); } m_idat_box = std::dynamic_pointer_cast(m_meta_box->get_child_box(fourcc("idat"))); m_iref_box = std::dynamic_pointer_cast(m_meta_box->get_child_box(fourcc("iref"))); m_iinf_box = std::dynamic_pointer_cast(m_meta_box->get_child_box(fourcc("iinf"))); if (!m_iinf_box) { return Error(heif_error_Invalid_input, heif_suberror_No_iinf_box); } // --- build list of images std::vector> infe_boxes = m_iinf_box->get_child_boxes(fourcc("infe")); for (auto& box : infe_boxes) { std::shared_ptr infe_box = std::dynamic_pointer_cast(box); if (!infe_box) { return Error(heif_error_Invalid_input, heif_suberror_No_infe_box); } m_infe_boxes.insert(std::make_pair(infe_box->get_item_ID(), infe_box)); } return Error::Ok; } bool HeifFile::image_exists(heif_item_id ID) const { auto image_iter = m_infe_boxes.find(ID); return image_iter != m_infe_boxes.end(); } std::shared_ptr HeifFile::get_infe(heif_item_id ID) const { // --- get the image from the list of all images auto image_iter = m_infe_boxes.find(ID); if (image_iter == m_infe_boxes.end()) { return nullptr; } return image_iter->second; } std::string HeifFile::get_item_type(heif_item_id ID) const { auto infe_box = get_infe(ID); if (!infe_box) { return ""; } return infe_box->get_item_type(); } std::string HeifFile::get_content_type(heif_item_id ID) const { auto infe_box = get_infe(ID); if (!infe_box) { return ""; } return infe_box->get_content_type(); } Error HeifFile::get_properties(heif_item_id imageID, std::vector& properties) const { if (!m_ipco_box) { return Error(heif_error_Invalid_input, heif_suberror_No_ipco_box); } else if (!m_ipma_box) { return Error(heif_error_Invalid_input, heif_suberror_No_ipma_box); } return m_ipco_box->get_properties_for_item_ID(imageID, m_ipma_box, properties); } heif_chroma HeifFile::get_image_chroma_from_configuration(heif_item_id imageID) const { // HEVC auto box = m_ipco_box->get_property_for_item_ID(imageID, m_ipma_box, fourcc("hvcC")); std::shared_ptr hvcC_box = std::dynamic_pointer_cast(box); if (hvcC_box) { return (heif_chroma) (hvcC_box->get_configuration().chroma_format); } // AV1 box = m_ipco_box->get_property_for_item_ID(imageID, m_ipma_box, fourcc("av1C")); std::shared_ptr av1C_box = std::dynamic_pointer_cast(box); if (av1C_box) { Box_av1C::configuration config = av1C_box->get_configuration(); if (config.chroma_subsampling_x == 1 && config.chroma_subsampling_y == 1) { return heif_chroma_420; } else if (config.chroma_subsampling_x == 1 && config.chroma_subsampling_y == 0) { return heif_chroma_422; } else if (config.chroma_subsampling_x == 0 && config.chroma_subsampling_y == 0) { return heif_chroma_444; } else { return heif_chroma_undefined; } } assert(false); return heif_chroma_undefined; } int HeifFile::get_luma_bits_per_pixel_from_configuration(heif_item_id imageID) const { std::string image_type = get_item_type(imageID); // HEVC if (image_type == "hvc1") { auto box = m_ipco_box->get_property_for_item_ID(imageID, m_ipma_box, fourcc("hvcC")); std::shared_ptr hvcC_box = std::dynamic_pointer_cast(box); if (hvcC_box) { return hvcC_box->get_configuration().bit_depth_luma; } } // AV1 if (image_type == "av01") { auto box = m_ipco_box->get_property_for_item_ID(imageID, m_ipma_box, fourcc("av1C")); std::shared_ptr av1C_box = std::dynamic_pointer_cast(box); if (av1C_box) { Box_av1C::configuration config = av1C_box->get_configuration(); if (!config.high_bitdepth) { return 8; } else if (config.twelve_bit) { return 12; } else { return 10; } } } return -1; } int HeifFile::get_chroma_bits_per_pixel_from_configuration(heif_item_id imageID) const { std::string image_type = get_item_type(imageID); // HEVC if (image_type == "hvc1") { auto box = m_ipco_box->get_property_for_item_ID(imageID, m_ipma_box, fourcc("hvcC")); std::shared_ptr hvcC_box = std::dynamic_pointer_cast(box); if (hvcC_box) { return hvcC_box->get_configuration().bit_depth_chroma; } } // AV1 if (image_type == "av01") { auto box = m_ipco_box->get_property_for_item_ID(imageID, m_ipma_box, fourcc("av1C")); std::shared_ptr av1C_box = std::dynamic_pointer_cast(box); if (av1C_box) { Box_av1C::configuration config = av1C_box->get_configuration(); if (!config.high_bitdepth) { return 8; } else if (config.twelve_bit) { return 12; } else { return 10; } } } return -1; } Error HeifFile::get_compressed_image_data(heif_item_id ID, std::vector* data) const { #if ENABLE_PARALLEL_TILE_DECODING std::lock_guard guard(m_read_mutex); #endif if (!image_exists(ID)) { return Error(heif_error_Usage_error, heif_suberror_Nonexisting_item_referenced); } auto infe_box = get_infe(ID); if (!infe_box) { return Error(heif_error_Usage_error, heif_suberror_Nonexisting_item_referenced); } std::string item_type = infe_box->get_item_type(); std::string content_type = infe_box->get_content_type(); // --- get coded image data pointers auto items = m_iloc_box->get_items(); const Box_iloc::Item* item = nullptr; for (const auto& i : items) { if (i.item_ID == ID) { item = &i; break; } } if (!item) { std::stringstream sstr; sstr << "Item with ID " << ID << " has no compressed data"; return Error(heif_error_Invalid_input, heif_suberror_No_item_data, sstr.str()); } Error error = Error(heif_error_Unsupported_feature, heif_suberror_Unsupported_codec); if (item_type == "hvc1") { // --- --- --- HEVC // --- get properties for this image std::vector properties; Error err = m_ipco_box->get_properties_for_item_ID(ID, m_ipma_box, properties); if (err) { return err; } // --- get codec configuration std::shared_ptr hvcC_box; for (auto& prop : properties) { if (prop.property->get_short_type() == fourcc("hvcC")) { hvcC_box = std::dynamic_pointer_cast(prop.property); if (hvcC_box) { break; } } } if (!hvcC_box) { // Should always have an hvcC box, because we are checking this in // heif_context::interpret_heif_file() assert(false); return Error(heif_error_Invalid_input, heif_suberror_No_hvcC_box); } else if (!hvcC_box->get_headers(data)) { return Error(heif_error_Invalid_input, heif_suberror_No_item_data); } error = m_iloc_box->read_data(*item, m_input_stream, m_idat_box, data); } else if (item_type == "av01") { // --- --- --- AV1 // --- get properties for this image std::vector properties; Error err = m_ipco_box->get_properties_for_item_ID(ID, m_ipma_box, properties); if (err) { return err; } // --- get codec configuration std::shared_ptr av1C_box; for (auto& prop : properties) { if (prop.property->get_short_type() == fourcc("av1C")) { av1C_box = std::dynamic_pointer_cast(prop.property); if (av1C_box) { break; } } } if (!av1C_box) { // Should always have an hvcC box, because we are checking this in // heif_context::interpret_heif_file() return Error(heif_error_Invalid_input, heif_suberror_No_av1C_box); } else if (!av1C_box->get_headers(data)) { return Error(heif_error_Invalid_input, heif_suberror_No_item_data); } error = m_iloc_box->read_data(*item, m_input_stream, m_idat_box, data); } else if (true || // fallback case for all kinds of generic metadata (e.g. 'iptc') item_type == "grid" || item_type == "iovl" || item_type == "Exif" || (item_type == "mime" && content_type == "application/rdf+xml")) { error = m_iloc_box->read_data(*item, m_input_stream, m_idat_box, data); } if (error != Error::Ok) { return error; } return Error::Ok; } heif_item_id HeifFile::get_unused_item_id() const { for (heif_item_id id = 1;; id++) { bool id_exists = false; for (const auto& infe : m_infe_boxes) { if (infe.second->get_item_ID() == id) { id_exists = true; break; } } if (!id_exists) { return id; } } assert(false); // should never be reached return 0; } heif_item_id HeifFile::add_new_image(const char* item_type) { auto box = add_new_infe_box(item_type); return box->get_item_ID(); } std::shared_ptr HeifFile::add_new_infe_box(const char* item_type) { heif_item_id id = get_unused_item_id(); auto infe = std::make_shared(); infe->set_item_ID(id); infe->set_hidden_item(false); infe->set_item_type(item_type); m_infe_boxes[id] = infe; m_iinf_box->append_child_box(infe); return infe; } void HeifFile::add_ispe_property(heif_item_id id, uint32_t width, uint32_t height) { auto ispe = std::make_shared(); ispe->set_size(width, height); int index = m_ipco_box->append_child_box(ispe); m_ipma_box->add_property_for_item_ID(id, Box_ipma::PropertyAssociation{false, uint16_t(index + 1)}); } void HeifFile::add_clap_property(heif_item_id id, uint32_t clap_width, uint32_t clap_height, uint32_t image_width, uint32_t image_height) { auto clap = std::make_shared(); clap->set(clap_width, clap_height, image_width, image_height); int index = m_ipco_box->append_child_box(clap); m_ipma_box->add_property_for_item_ID(id, Box_ipma::PropertyAssociation{true, uint16_t(index + 1)}); } void HeifFile::add_pixi_property(heif_item_id id, uint8_t c1, uint8_t c2, uint8_t c3) { auto pixi = std::make_shared(); pixi->add_channel_bits(c1); if (c2 || c3) { pixi->add_channel_bits(c2); pixi->add_channel_bits(c3); } int index = m_ipco_box->append_child_box(pixi); m_ipma_box->add_property_for_item_ID(id, Box_ipma::PropertyAssociation{true, uint16_t(index + 1)}); } void HeifFile::add_hvcC_property(heif_item_id id) { auto hvcC = std::make_shared(); int index = m_ipco_box->append_child_box(hvcC); m_ipma_box->add_property_for_item_ID(id, Box_ipma::PropertyAssociation{true, uint16_t(index + 1)}); } Error HeifFile::append_hvcC_nal_data(heif_item_id id, const std::vector& nal_data) { auto hvcC = std::dynamic_pointer_cast(m_ipco_box->get_property_for_item_ID(id, m_ipma_box, fourcc("hvcC"))); if (hvcC) { hvcC->append_nal_data(nal_data); return Error::Ok; } else { // Should always have an hvcC box, because we are checking this in // heif_context::interpret_heif_file() assert(false); return Error(heif_error_Usage_error, heif_suberror_No_hvcC_box); } } Error HeifFile::set_hvcC_configuration(heif_item_id id, const Box_hvcC::configuration& config) { auto hvcC = std::dynamic_pointer_cast(m_ipco_box->get_property_for_item_ID(id, m_ipma_box, fourcc("hvcC"))); if (hvcC) { hvcC->set_configuration(config); return Error::Ok; } else { return Error(heif_error_Usage_error, heif_suberror_No_hvcC_box); } } Error HeifFile::append_hvcC_nal_data(heif_item_id id, const uint8_t* data, size_t size) { std::vector properties; auto hvcC = std::dynamic_pointer_cast(m_ipco_box->get_property_for_item_ID(id, m_ipma_box, fourcc("hvcC"))); if (hvcC) { hvcC->append_nal_data(data, size); return Error::Ok; } else { return Error(heif_error_Usage_error, heif_suberror_No_hvcC_box); } } void HeifFile::add_av1C_property(heif_item_id id) { auto av1C = std::make_shared(); int index = m_ipco_box->append_child_box(av1C); m_ipma_box->add_property_for_item_ID(id, Box_ipma::PropertyAssociation{true, uint16_t(index + 1)}); } Error HeifFile::set_av1C_configuration(heif_item_id id, const Box_av1C::configuration& config) { auto av1C = std::dynamic_pointer_cast(m_ipco_box->get_property_for_item_ID(id, m_ipma_box, fourcc("av1C"))); if (av1C) { av1C->set_configuration(config); return Error::Ok; } else { return Error(heif_error_Usage_error, heif_suberror_No_av1C_box); } } void HeifFile::append_iloc_data(heif_item_id id, const std::vector& nal_packets, uint8_t construction_method) { m_iloc_box->append_data(id, nal_packets, construction_method); } void HeifFile::append_iloc_data_with_4byte_size(heif_item_id id, const uint8_t* data, size_t size) { std::vector nal; nal.resize(size + 4); nal[0] = (uint8_t) ((size >> 24) & 0xFF); nal[1] = (uint8_t) ((size >> 16) & 0xFF); nal[2] = (uint8_t) ((size >> 8) & 0xFF); nal[3] = (uint8_t) ((size >> 0) & 0xFF); memcpy(nal.data() + 4, data, size); append_iloc_data(id, nal); } void HeifFile::set_primary_item_id(heif_item_id id) { m_pitm_box->set_item_ID(id); } void HeifFile::add_iref_reference(uint32_t type, heif_item_id from, std::vector to) { if (!m_iref_box) { m_iref_box = std::make_shared(); m_meta_box->append_child_box(m_iref_box); } m_iref_box->add_reference(type, from, to); } void HeifFile::set_auxC_property(heif_item_id id, std::string type) { auto auxC = std::make_shared(); auxC->set_aux_type(type); int index = m_ipco_box->append_child_box(auxC); m_ipma_box->add_property_for_item_ID(id, Box_ipma::PropertyAssociation{true, uint16_t(index + 1)}); } void HeifFile::set_color_profile(heif_item_id id, const std::shared_ptr profile) { auto colr = std::make_shared(); colr->set_color_profile(profile); int index = m_ipco_box->append_child_box(colr); m_ipma_box->add_property_for_item_ID(id, Box_ipma::PropertyAssociation{true, uint16_t(index + 1)}); } // TODO: the hdlr box is probably not the right place for this. Into which box should we write comments? void HeifFile::set_hdlr_library_info(std::string encoder_plugin_version) { std::stringstream sstr; sstr << "libheif (" << LIBHEIF_VERSION << ") / " << encoder_plugin_version; m_hdlr_box->set_name(sstr.str()); } #ifdef _MSC_VER std::wstring HeifFile::convert_utf8_path_to_utf16(std::string str) { std::wstring ret; int len = MultiByteToWideChar(CP_UTF8, 0, str.c_str(), str.length(), NULL, 0); if (len > 0) { ret.resize(len); MultiByteToWideChar(CP_UTF8, 0, str.c_str(), str.length(), &ret[0], len); } return ret; } #endif libheif-1.12.0/libheif/bitstream.cc0000664000175000017500000002750314043747772014051 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "bitstream.h" #include #include #include #define MAX_UVLC_LEADING_ZEROS 20 using namespace heif; StreamReader_istream::StreamReader_istream(std::unique_ptr&& istr) : m_istr(std::move(istr)) { m_istr->seekg(0, std::ios_base::end); m_length = m_istr->tellg(); m_istr->seekg(0, std::ios_base::beg); } int64_t StreamReader_istream::get_position() const { return m_istr->tellg(); } StreamReader::grow_status StreamReader_istream::wait_for_file_size(int64_t target_size) { return (target_size > m_length) ? size_beyond_eof : size_reached; } bool StreamReader_istream::read(void* data, size_t size) { int64_t end_pos = get_position() + size; if (end_pos > m_length) { return false; } m_istr->read((char*) data, size); return true; } bool StreamReader_istream::seek(int64_t position) { if (position > m_length) return false; m_istr->seekg(position, std::ios_base::beg); return true; } StreamReader_memory::StreamReader_memory(const uint8_t* data, int64_t size, bool copy) : m_length(size), m_position(0) { if (copy) { m_owned_data = new uint8_t[m_length]; memcpy(m_owned_data, data, m_length); m_data = m_owned_data; } else { m_data = data; } } StreamReader_memory::~StreamReader_memory() { if (m_owned_data) { delete[] m_owned_data; } } int64_t StreamReader_memory::get_position() const { return m_position; } StreamReader::grow_status StreamReader_memory::wait_for_file_size(int64_t target_size) { return (target_size > m_length) ? size_beyond_eof : size_reached; } bool StreamReader_memory::read(void* data, size_t size) { int64_t end_pos = m_position + size; if (end_pos > m_length) { return false; } memcpy(data, &m_data[m_position], size); m_position += size; return true; } bool StreamReader_memory::seek(int64_t position) { if (position > m_length || position < 0) return false; m_position = position; return true; } StreamReader_CApi::StreamReader_CApi(const heif_reader* func_table, void* userdata) : m_func_table(func_table), m_userdata(userdata) { } StreamReader::grow_status StreamReader_CApi::wait_for_file_size(int64_t target_size) { heif_reader_grow_status status = m_func_table->wait_for_file_size(target_size, m_userdata); switch (status) { case heif_reader_grow_status_size_reached: return size_reached; case heif_reader_grow_status_timeout: return timeout; case heif_reader_grow_status_size_beyond_eof: return size_beyond_eof; default: assert(0); return size_beyond_eof; } } BitstreamRange::BitstreamRange(std::shared_ptr istr, uint64_t length, BitstreamRange* parent) { m_remaining = length; m_istr = istr; m_parent_range = parent; if (parent) { m_nesting_level = parent->m_nesting_level + 1; } } StreamReader::grow_status BitstreamRange::wait_until_range_is_available() { return m_istr->wait_for_file_size(m_istr->get_position() + m_remaining); } uint8_t BitstreamRange::read8() { if (!prepare_read(1)) { return 0; } uint8_t buf; auto istr = get_istream(); bool success = istr->read((char*) &buf, 1); if (!success) { set_eof_while_reading(); return 0; } return buf; } uint16_t BitstreamRange::read16() { if (!prepare_read(2)) { return 0; } uint8_t buf[2]; auto istr = get_istream(); bool success = istr->read((char*) buf, 2); if (!success) { set_eof_while_reading(); return 0; } return static_cast((buf[0] << 8) | (buf[1])); } uint32_t BitstreamRange::read32() { if (!prepare_read(4)) { return 0; } uint8_t buf[4]; auto istr = get_istream(); bool success = istr->read((char*) buf, 4); if (!success) { set_eof_while_reading(); return 0; } return ((buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | (buf[3])); } std::string BitstreamRange::read_string() { std::string str; // Reading a string when no more data is available, returns an empty string. // Such a case happens, for example, when reading a 'url' box without content. if (eof()) { return std::string(); } for (;;) { if (!prepare_read(1)) { return std::string(); } auto istr = get_istream(); char c; bool success = istr->read(&c, 1); if (!success) { set_eof_while_reading(); return std::string(); } if (c == 0) { break; } else { str += (char) c; } } return str; } bool BitstreamRange::read(uint8_t* data, int64_t n) { if (!prepare_read(n)) { return false; } auto istr = get_istream(); bool success = istr->read(data, n); if (!success) { set_eof_while_reading(); } return success; } bool BitstreamRange::prepare_read(int64_t nBytes) { if (nBytes < 0) { // --- we cannot read negative amounts of bytes assert(false); return false; } else if (m_remaining < nBytes) { // --- not enough data left in box -> move to end of box and set error flag skip_to_end_of_box(); m_error = true; return false; } else { // --- this is the normal case (m_remaining >= nBytes) if (m_parent_range) { if (!m_parent_range->prepare_read(nBytes)) { return false; } } m_remaining -= nBytes; return true; } } StreamReader::grow_status BitstreamRange::wait_for_available_bytes(int64_t nBytes) { int64_t target_size = m_istr->get_position() + nBytes; return m_istr->wait_for_file_size(target_size); } void BitstreamRange::skip_without_advancing_file_pos(int64_t n) { assert(n <= m_remaining); m_remaining -= n; if (m_parent_range) { m_parent_range->skip_without_advancing_file_pos(n); } } BitReader::BitReader(const uint8_t* buffer, int len) { data = buffer; data_length = len; bytes_remaining = len; nextbits = 0; nextbits_cnt = 0; refill(); } int BitReader::get_bits(int n) { if (nextbits_cnt < n) { refill(); } uint64_t val = nextbits; val >>= 64 - n; nextbits <<= n; nextbits_cnt -= n; return (int) val; } int BitReader::get_bits_fast(int n) { assert(nextbits_cnt >= n); uint64_t val = nextbits; val >>= 64 - n; nextbits <<= n; nextbits_cnt -= n; return (int) val; } int BitReader::peek_bits(int n) { if (nextbits_cnt < n) { refill(); } uint64_t val = nextbits; val >>= 64 - n; return (int) val; } void BitReader::skip_bytes(int nBytes) { // TODO: this is slow while (nBytes--) { skip_bits(8); } } void BitReader::skip_bits(int n) { if (nextbits_cnt < n) { refill(); } nextbits <<= n; nextbits_cnt -= n; } void BitReader::skip_bits_fast(int n) { nextbits <<= n; nextbits_cnt -= n; } void BitReader::skip_to_byte_boundary() { int nskip = (nextbits_cnt & 7); nextbits <<= nskip; nextbits_cnt -= nskip; } bool BitReader::get_uvlc(int* value) { int num_zeros = 0; while (get_bits(1) == 0) { num_zeros++; if (num_zeros > MAX_UVLC_LEADING_ZEROS) { return false; } } int offset = 0; if (num_zeros != 0) { offset = (int) get_bits(num_zeros); *value = offset + (1 << num_zeros) - 1; assert(*value > 0); return true; } else { *value = 0; return true; } } bool BitReader::get_svlc(int* value) { int v; if (!get_uvlc(&v)) { return false; } else if (v == 0) { *value = v; return true; } bool negative = ((v & 1) == 0); *value = negative ? -v / 2 : (v + 1) / 2; return true; } void BitReader::refill() { #if 0 // TODO: activate me once I'm sure this works while (nextbits_cnt <= 64-8 && bytes_remaining) { uint64_t newval = *data++; bytes_remaining--; nextbits_cnt += 8; newval <<= 64-nextbits_cnt; nextbits |= newval; } #else int shift = 64 - nextbits_cnt; while (shift >= 8 && bytes_remaining) { uint64_t newval = *data++; bytes_remaining--; shift -= 8; newval <<= shift; nextbits |= newval; } nextbits_cnt = 64 - shift; #endif } void StreamWriter::write8(uint8_t v) { if (m_position == m_data.size()) { m_data.push_back(v); m_position++; } else { m_data[m_position++] = v; } } void StreamWriter::write16(uint16_t v) { size_t required_size = m_position + 2; if (required_size > m_data.size()) { m_data.resize(required_size); } m_data[m_position++] = uint8_t((v >> 8) & 0xFF); m_data[m_position++] = uint8_t(v & 0xFF); } void StreamWriter::write32(uint32_t v) { size_t required_size = m_position + 4; if (required_size > m_data.size()) { m_data.resize(required_size); } m_data[m_position++] = uint8_t((v >> 24) & 0xFF); m_data[m_position++] = uint8_t((v >> 16) & 0xFF); m_data[m_position++] = uint8_t((v >> 8) & 0xFF); m_data[m_position++] = uint8_t(v & 0xFF); } void StreamWriter::write64(uint64_t v) { size_t required_size = m_position + 8; if (required_size > m_data.size()) { m_data.resize(required_size); } m_data[m_position++] = uint8_t((v >> 56) & 0xFF); m_data[m_position++] = uint8_t((v >> 48) & 0xFF); m_data[m_position++] = uint8_t((v >> 40) & 0xFF); m_data[m_position++] = uint8_t((v >> 32) & 0xFF); m_data[m_position++] = uint8_t((v >> 24) & 0xFF); m_data[m_position++] = uint8_t((v >> 16) & 0xFF); m_data[m_position++] = uint8_t((v >> 8) & 0xFF); m_data[m_position++] = uint8_t(v & 0xFF); } void StreamWriter::write(int size, uint64_t value) { if (size == 1) { assert(value <= 0xFF); write8((uint8_t) value); } else if (size == 2) { assert(value <= 0xFFFF); write16((uint16_t) value); } else if (size == 4) { assert(value <= 0xFFFFFFFF); write32((uint32_t) value); } else if (size == 8) { write64((uint64_t) value); } else { assert(false); // unimplemented size } } void StreamWriter::write(const std::string& str) { size_t required_size = m_position + str.size() + 1; if (required_size > m_data.size()) { m_data.resize(required_size); } for (size_t i = 0; i < str.size(); i++) { m_data[m_position++] = str[i]; } m_data[m_position++] = 0; } void StreamWriter::write(const std::vector& vec) { size_t required_size = m_position + vec.size(); if (required_size > m_data.size()) { m_data.resize(required_size); } memcpy(m_data.data() + m_position, vec.data(), vec.size()); m_position += vec.size(); } void StreamWriter::write(const StreamWriter& writer) { size_t required_size = m_position + writer.get_data().size(); if (required_size > m_data.size()) { m_data.resize(required_size); } const auto& data = writer.get_data(); memcpy(m_data.data() + m_position, data.data(), data.size()); m_position += data.size(); } void StreamWriter::skip(int n) { assert(m_position == m_data.size()); m_data.resize(m_data.size() + n); m_position += n; } void StreamWriter::insert(int nBytes) { assert(nBytes >= 0); if (nBytes == 0) { return; } m_data.resize(m_data.size() + nBytes); if (m_position < m_data.size() - nBytes) { memmove(m_data.data() + m_position + nBytes, m_data.data() + m_position, m_data.size() - nBytes - m_position); } } libheif-1.12.0/libheif/heif_file.h0000664000175000017500000001277714043747772013642 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_FILE_H #define LIBHEIF_HEIF_FILE_H #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include "box.h" #include #include #include #include #include #if ENABLE_PARALLEL_TILE_DECODING #include #endif namespace heif { class HeifPixelImage; class HeifImage; class HeifFile { public: HeifFile(); ~HeifFile(); Error read(std::shared_ptr reader); Error read_from_file(const char* input_filename); Error read_from_memory(const void* data, size_t size, bool copy); void new_empty_file(); void set_brand(heif_compression_format format, bool miaf_compatible); void write(StreamWriter& writer); int get_num_images() const { return static_cast(m_infe_boxes.size()); } heif_item_id get_primary_image_ID() const { return m_pitm_box->get_item_ID(); } std::vector get_item_IDs() const; bool image_exists(heif_item_id ID) const; std::string get_item_type(heif_item_id ID) const; std::string get_content_type(heif_item_id ID) const; Error get_compressed_image_data(heif_item_id ID, std::vector* out_data) const; std::shared_ptr get_infe_box(heif_item_id imageID) { auto iter = m_infe_boxes.find(imageID); if (iter == m_infe_boxes.end()) { return nullptr; } return iter->second; } std::shared_ptr get_iref_box() { return m_iref_box; } std::shared_ptr get_ipco_box() { return m_ipco_box; } std::shared_ptr get_ipma_box() { return m_ipma_box; } Error get_properties(heif_item_id imageID, std::vector& properties) const; heif_chroma get_image_chroma_from_configuration(heif_item_id imageID) const; int get_luma_bits_per_pixel_from_configuration(heif_item_id imageID) const; int get_chroma_bits_per_pixel_from_configuration(heif_item_id imageID) const; std::string debug_dump_boxes() const; // --- writing --- heif_item_id get_unused_item_id() const; heif_item_id add_new_image(const char* item_type); std::shared_ptr add_new_infe_box(const char* item_type); void add_hvcC_property(heif_item_id id); Error append_hvcC_nal_data(heif_item_id id, const std::vector& data); Error append_hvcC_nal_data(heif_item_id id, const uint8_t* data, size_t size); Error set_hvcC_configuration(heif_item_id id, const Box_hvcC::configuration& config); void add_av1C_property(heif_item_id id); Error set_av1C_configuration(heif_item_id id, const Box_av1C::configuration& config); void add_ispe_property(heif_item_id id, uint32_t width, uint32_t height); void add_clap_property(heif_item_id id, uint32_t clap_width, uint32_t clap_height, uint32_t image_width, uint32_t image_height); void add_pixi_property(heif_item_id id, uint8_t c1, uint8_t c2=0, uint8_t c3=0); void append_iloc_data(heif_item_id id, const std::vector& nal_packets, uint8_t construction_method = 0); void append_iloc_data_with_4byte_size(heif_item_id id, const uint8_t* data, size_t size); void set_primary_item_id(heif_item_id id); void add_iref_reference(heif_item_id from, uint32_t type, std::vector to); void set_auxC_property(heif_item_id id, std::string type); void set_color_profile(heif_item_id id, const std::shared_ptr profile); // TODO: the hdlr box is probably not the right place for this. Into which box should we write comments? void set_hdlr_library_info(std::string encoder_plugin_version); #ifdef _MSC_VER static std::wstring convert_utf8_path_to_utf16(std::string pathutf8); #endif private: #if ENABLE_PARALLEL_TILE_DECODING mutable std::mutex m_read_mutex; #endif std::shared_ptr m_input_stream; std::vector > m_top_level_boxes; std::shared_ptr m_ftyp_box; std::shared_ptr m_hdlr_box; std::shared_ptr m_meta_box; std::shared_ptr m_ipco_box; std::shared_ptr m_ipma_box; std::shared_ptr m_iloc_box; std::shared_ptr m_idat_box; std::shared_ptr m_iref_box; std::shared_ptr m_pitm_box; std::shared_ptr m_iinf_box; std::shared_ptr m_iprp_box; std::map > m_infe_boxes; // list of image items (does not include hidden images or Exif data) //std::vector m_valid_image_IDs; Error parse_heif_file(BitstreamRange& bitstream); std::shared_ptr get_infe(heif_item_id ID) const; }; } #endif libheif-1.12.0/libheif/nclx.cc0000644000175000017500000001306314003350415012771 00000000000000/* * HEIF codec. * Copyright (c) 2020 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "nclx.h" heif::primaries::primaries(float gx, float gy, float bx, float by, float rx, float ry, float wx, float wy) { defined = true; redX = rx; redY = ry; greenX = gx; greenY = gy; blueX = bx; blueY = by; whiteX = wx; whiteY = wy; } heif::primaries heif::get_colour_primaries(uint16_t primaries_idx) { switch (primaries_idx) { case 1: return {0.300f, 0.600f, 0.150f, 0.060f, 0.640f, 0.330f, 0.3127f, 0.3290f}; case 4: return {0.21f, 0.71f, 0.14f, 0.08f, 0.67f, 0.33f, 0.310f, 0.316f}; case 5: return {0.29f, 0.60f, 0.15f, 0.06f, 0.64f, 0.33f, 0.3127f, 0.3290f}; case 6: case 7: return {0.310f, 0.595f, 0.155f, 0.070f, 0.630f, 0.340f, 0.3127f, 0.3290f}; case 8: return {0.243f, 0.692f, 0.145f, 0.049f, 0.681f, 0.319f, 0.310f, 0.316f}; case 9: return {0.170f, 0.797f, 0.131f, 0.046f, 0.708f, 0.292f, 0.3127f, 0.3290f}; case 10: return {0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.333333f, 0.33333f}; case 11: return {0.265f, 0.690f, 0.150f, 0.060f, 0.680f, 0.320f, 0.314f, 0.351f}; case 12: return {0.265f, 0.690f, 0.150f, 0.060f, 0.680f, 0.320f, 0.3127f, 0.3290f}; case 22: return {0.295f, 0.605f, 0.155f, 0.077f, 0.630f, 0.340f, 0.3127f, 0.3290f}; default: return {}; } } heif::Kr_Kb heif::get_Kr_Kb(uint16_t matrix_coefficients_idx, uint16_t primaries_idx) { Kr_Kb result; if (matrix_coefficients_idx == 12 || matrix_coefficients_idx == 13) { primaries p = get_colour_primaries(primaries_idx); float zr = 1 - (p.redX + p.redY); float zg = 1 - (p.greenX + p.greenY); float zb = 1 - (p.blueX + p.blueY); float zw = 1 - (p.whiteX + p.whiteY); float denom = p.whiteY * (p.redX * (p.greenY * zb - p.blueY * zg) + p.greenX * (p.blueY * zr - p.redY * zb) + p.blueX * (p.redY * zg - p.greenY * zr)); result.Kr = (p.redY * (p.whiteX * (p.greenY * zb - p.blueY * zg) + p.whiteY * (p.blueX * zg - p.greenX * zb) + zw * (p.greenX * p.blueY - p.blueX * p.greenY))) / denom; result.Kb = (p.blueY * (p.whiteX * (p.redY * zg - p.greenY * zr) + p.whiteY * (p.greenX * zr - p.redX * zg) + zw * (p.redX * p.greenY - p.greenX * p.redY))) / denom; } else switch (matrix_coefficients_idx) { case 1: result.Kr = 0.2126f; result.Kb = 0.0722f; break; case 4: result.Kr = 0.30f; result.Kb = 0.11f; break; case 5: case 6: result.Kr = 0.299f; result.Kb = 0.114f; break; case 7: result.Kr = 0.212f; result.Kb = 0.087f; break; case 9: case 10: result.Kr = 0.2627f; result.Kb = 0.0593f; break; default:; } return result; } heif::YCbCr_to_RGB_coefficients heif::YCbCr_to_RGB_coefficients::defaults() { YCbCr_to_RGB_coefficients coeffs; coeffs.defined = true; coeffs.r_cr = 1.402f; coeffs.g_cb = -0.344136f; coeffs.g_cr = -0.714136f; coeffs.b_cb = 1.772f; return coeffs; } heif::YCbCr_to_RGB_coefficients heif::get_YCbCr_to_RGB_coefficients(uint16_t matrix_coefficients_idx, uint16_t primaries_idx) { YCbCr_to_RGB_coefficients coeffs; Kr_Kb k = get_Kr_Kb(matrix_coefficients_idx, primaries_idx); if (k.Kb != 0 || k.Kr != 0) { // both will be != 0 when valid coeffs.defined = true; coeffs.r_cr = 2 * (-k.Kr + 1); coeffs.g_cb = 2 * k.Kb * (-k.Kb + 1) / (k.Kb + k.Kr - 1); coeffs.g_cr = 2 * k.Kr * (-k.Kr + 1) / (k.Kb + k.Kr - 1); coeffs.b_cb = 2 * (-k.Kb + 1); } else { coeffs = YCbCr_to_RGB_coefficients::defaults(); } return coeffs; } heif::RGB_to_YCbCr_coefficients heif::get_RGB_to_YCbCr_coefficients(uint16_t matrix_coefficients_idx, uint16_t primaries_idx) { RGB_to_YCbCr_coefficients coeffs; Kr_Kb k = get_Kr_Kb(matrix_coefficients_idx, primaries_idx); if (k.Kb != 0 || k.Kr != 0) { // both will be != 0 when valid coeffs.defined = true; coeffs.c[0][0] = k.Kr; coeffs.c[0][1] = 1 - k.Kr - k.Kb; coeffs.c[0][2] = k.Kb; coeffs.c[1][0] = -k.Kr / (1 - k.Kb) / 2; coeffs.c[1][1] = -(1 - k.Kr - k.Kb) / (1 - k.Kb) / 2; coeffs.c[1][2] = 0.5f; coeffs.c[2][0] = 0.5f; coeffs.c[2][1] = -(1 - k.Kr - k.Kb) / (1 - k.Kr) / 2; coeffs.c[2][2] = -k.Kb / (1 - k.Kr) / 2; } else { coeffs = RGB_to_YCbCr_coefficients::defaults(); } return coeffs; } heif::RGB_to_YCbCr_coefficients heif::RGB_to_YCbCr_coefficients::defaults() { RGB_to_YCbCr_coefficients coeffs; coeffs.defined = true; coeffs.c[0][0] = 0.299f; coeffs.c[0][1] = 0.587f; coeffs.c[0][2] = 0.114f; coeffs.c[1][0] = -0.168735f; coeffs.c[1][1] = -0.331264f; coeffs.c[1][2] = 0.5f; coeffs.c[2][0] = 0.5f; coeffs.c[2][1] = -0.418688f; coeffs.c[2][2] = -0.081312f; return coeffs; } libheif-1.12.0/libheif/error.h0000644000175000017500000000476214003350412013023 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_ERROR_H #define LIBHEIF_ERROR_H #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include #include #include #include #include #include "heif.h" static constexpr char kSuccess[] = "Success"; namespace heif { class ErrorBuffer { public: ErrorBuffer() {} void set_success() { m_error_message = c_success; } void set_error(std::string err) { m_buffer = err; m_error_message = m_buffer.c_str(); } const char* get_error() const { return m_error_message; } private: constexpr static const char* c_success = "Success"; std::string m_buffer; const char* m_error_message = c_success; }; class Error { public: enum heif_error_code error_code; enum heif_suberror_code sub_error_code; std::string message; Error(); Error(heif_error_code c, heif_suberror_code sc = heif_suberror_Unspecified, std::string msg = ""); static Error Ok; static const char kSuccess[]; bool operator==(const Error& other) const { return error_code == other.error_code; } bool operator!=(const Error& other) const { return !(*this == other); } operator bool() const { return error_code != heif_error_Ok; } static const char* get_error_string(heif_error_code err); static const char* get_error_string(heif_suberror_code err); heif_error error_struct(ErrorBuffer* error_buffer) const; }; inline std::ostream& operator<<(std::ostream& ostr, const Error& err) { ostr << err.error_code << "/" << err.sub_error_code; return ostr; } } #endif libheif-1.12.0/libheif/nclx.h0000644000175000017500000000432514003350415012634 00000000000000/* * HEIF codec. * Copyright (c) 2020 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_NCLX_H #define LIBHEIF_NCLX_H #include namespace heif { struct primaries { primaries() = default; primaries(float gx, float gy, float bx, float by, float rx, float ry, float wx, float wy); bool defined = false; float greenX=0, greenY=0; float blueX=0, blueY=0; float redX=0, redY=0; float whiteX=0, whiteY=0; }; primaries get_colour_primaries(uint16_t primaries_idx); struct Kr_Kb { float Kr = 0, Kb = 0; }; Kr_Kb get_Kr_Kb(uint16_t matrix_coefficients_idx, uint16_t primaries_idx); struct YCbCr_to_RGB_coefficients { bool defined = false; float r_cr = 0; float g_cb = 0; float g_cr = 0; float b_cb = 0; static YCbCr_to_RGB_coefficients defaults(); }; YCbCr_to_RGB_coefficients get_YCbCr_to_RGB_coefficients(uint16_t matrix_coefficients_idx, uint16_t primaries_idx); struct RGB_to_YCbCr_coefficients { bool defined = false; float c[3][3] = {{0,0,0},{0,0,0},{0,0,0}}; // e.g. y = c[0][0]*r + c[0][1]*g + c[0][2]*b static RGB_to_YCbCr_coefficients defaults(); }; RGB_to_YCbCr_coefficients get_RGB_to_YCbCr_coefficients(uint16_t matrix_coefficients_idx, uint16_t primaries_idx); // uint16_t get_transfer_characteristics() const {return m_transfer_characteristics;} // uint16_t get_matrix_coefficients() const {return m_matrix_coefficients;} // bool get_full_range_flag() const {return m_full_range_flag;} } #endif //LIBHEIF_NCLX_H libheif-1.12.0/libheif/Makefile.am0000644000175000017500000000665314003350411013555 00000000000000AUTOMAKE_OPTIONS = subdir-objects bin_PROGRAMS = lib_LTLIBRARIES = lib_LTLIBRARIES += libheif.la libheif_ladir = \ $(includedir)/libheif ADDITIONAL_LIBS = if HAVE_AOM ADDITIONAL_LIBS += $(aom_LIBS) endif if HAVE_LIBDE265 ADDITIONAL_LIBS += $(libde265_LIBS) endif if HAVE_X265 ADDITIONAL_LIBS += $(x265_LIBS) endif if HAVE_RAV1E ADDITIONAL_LIBS += $(rav1e_LIBS) endif if HAVE_DAV1D ADDITIONAL_LIBS += $(dav1d_LIBS) endif libheif_la_CPPFLAGS = libheif_la_CFLAGS = \ $(CFLAG_VISIBILITY) \ -DLIBHEIF_EXPORTS libheif_la_CXXFLAGS = \ $(CFLAG_VISIBILITY) \ $(aom_CFLAGS) \ $(libde265_CFLAGS) \ $(x265_CFLAGS) \ $(dav1d_CFLAGS) \ $(rav1e_CFLAGS) \ -DLIBHEIF_EXPORTS -I$(top_srcdir) libheif_la_LIBADD = $(ADDITIONAL_LIBS) libheif_la_LDFLAGS = -version-info $(LIBHEIF_CURRENT):$(LIBHEIF_REVISION):$(LIBHEIF_AGE) if MINGW libheif_la_LDFLAGS += -no-undefined endif libheif_la_SOURCES = \ bitstream.h \ bitstream.cc \ box.h \ box.cc \ error.h \ error.cc \ heif_api_structs.h \ heif_file.h \ heif_file.cc \ heif_image.h \ heif_image.cc \ heif_limits.h \ heif.h \ heif.cc \ heif_context.h \ heif_context.cc \ heif_hevc.h \ heif_hevc.cc \ heif_avif.h \ heif_avif.cc \ heif_plugin_registry.h \ heif_plugin_registry.cc \ heif_plugin.h \ heif_plugin.cc \ heif_colorconversion.h \ heif_colorconversion.cc \ logging.h \ nclx.cc \ nclx.h if HAVE_AOM_DECODER libheif_la_SOURCES += \ heif_decoder_aom.cc \ heif_decoder_aom.h endif if HAVE_AOM_ENCODER libheif_la_SOURCES += \ heif_encoder_aom.cc \ heif_encoder_aom.h endif if HAVE_LIBDE265 libheif_la_SOURCES += \ heif_decoder_libde265.cc \ heif_decoder_libde265.h endif if HAVE_RAV1E libheif_la_SOURCES += \ heif_encoder_rav1e.cc \ heif_encoder_rav1e.h endif if HAVE_DAV1D libheif_la_SOURCES += \ heif_decoder_dav1d.cc \ heif_decoder_dav1d.h endif if HAVE_X265 libheif_la_SOURCES += \ heif_encoder_x265.cc \ heif_encoder_x265.h endif libheif_la_HEADERS = \ heif.h \ heif_plugin.h \ heif_version.h \ heif_cxx.h noinst_HEADERS = \ heif_emscripten.h if HAVE_VISIBILITY libheif_la_CFLAGS += -DHAVE_VISIBILITY libheif_la_CXXFLAGS += -DHAVE_VISIBILITY endif if ENABLE_LIBFUZZER bin_PROGRAMS += box-fuzzer \ color-conversion-fuzzer if HAVE_LIBDE265 bin_PROGRAMS += file-fuzzer endif if HAVE_X265 bin_PROGRAMS += encoder-fuzzer endif else noinst_LIBRARIES = libfuzzers.a libfuzzers_a_SOURCES = \ box_fuzzer.cc \ color_conversion_fuzzer.cc \ encoder_fuzzer.cc \ file_fuzzer.cc endif box_fuzzer_DEPENDENCIES = box_fuzzer_CXXFLAGS = $(libde265_CFLAGS) box_fuzzer_LDFLAGS = $(FUZZING_ENGINE) box_fuzzer_LDADD = $(ADDITIONAL_LIBS) box_fuzzer_SOURCES = $(libheif_la_SOURCES) box_fuzzer.cc color_conversion_fuzzer_DEPENDENCIES = color_conversion_fuzzer_CXXFLAGS = $(libde265_CFLAGS) color_conversion_fuzzer_LDFLAGS = $(FUZZING_ENGINE) color_conversion_fuzzer_LDADD = $(ADDITIONAL_LIBS) color_conversion_fuzzer_SOURCES = $(libheif_la_SOURCES) color_conversion_fuzzer.cc encoder_fuzzer_DEPENDENCIES = encoder_fuzzer_CXXFLAGS = $(libde265_CFLAGS) encoder_fuzzer_LDFLAGS = $(FUZZING_ENGINE) encoder_fuzzer_LDADD = $(ADDITIONAL_LIBS) encoder_fuzzer_SOURCES = $(libheif_la_SOURCES) encoder_fuzzer.cc file_fuzzer_DEPENDENCIES = file_fuzzer_CXXFLAGS = $(libde265_CFLAGS) file_fuzzer_LDFLAGS = $(FUZZING_ENGINE) file_fuzzer_LDADD = $(ADDITIONAL_LIBS) file_fuzzer_SOURCES = $(libheif_la_SOURCES) file_fuzzer.cc EXTRA_DIST = \ CMakeLists.txt libheif-1.12.0/libheif/CMakeLists.txt0000644000175000017500000001232414003350411014251 00000000000000include(CMakePackageConfigHelpers) configure_file(heif_version.h.in ${CMAKE_CURRENT_BINARY_DIR}/heif_version.h) set(libheif_headers bitstream.h box.h error.h heif_api_structs.h heif_context.h heif_cxx.h heif_file.h heif.h heif_image.h heif_hevc.h heif_avif.h heif_colorconversion.h heif_plugin_registry.h heif_limits.h heif_plugin.h nclx.h logging.h ${CMAKE_CURRENT_BINARY_DIR}/heif_version.h) add_library(heif bitstream.cc box.cc error.cc heif.cc heif_context.cc heif_file.cc heif_image.cc heif_hevc.cc heif_avif.cc heif_colorconversion.cc heif_plugin_registry.cc heif_plugin.cc nclx.cc ${libheif_headers} ) # Needed to find libheif/heif_version.h while compiling the library target_include_directories(heif PRIVATE ${libheif_BINARY_DIR} ${libheif_SOURCE_DIR}) # Propagate include/libheif to consume the headers from other projects target_include_directories(heif PUBLIC $ $ $) set_target_properties(heif PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) target_compile_definitions(heif PUBLIC LIBHEIF_EXPORTS HAVE_VISIBILITY) if(LIBDE265_FOUND) target_compile_definitions(heif PRIVATE HAVE_LIBDE265=1) target_sources(heif PRIVATE heif_decoder_libde265.cc heif_decoder_libde265.h) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBDE265_CFLAGS}") if (NOT "${LIBDE265_LIBRARY_DIRS}" STREQUAL "") set(LIBDE265_LINKDIR "-L${LIBDE265_LIBRARY_DIRS}") endif() include_directories(SYSTEM ${LIBDE265_INCLUDE_DIR}) target_link_libraries(heif PRIVATE ${LIBDE265_LIBRARIES} ${LIBDE265_LINKDIR}) install(FILES heif_decoder_libde265.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}) endif() if(X265_FOUND) target_compile_definitions(heif PRIVATE HAVE_X265=1) target_sources(heif PRIVATE heif_encoder_x265.cc heif_encoder_x265.h ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${X265_CFLAGS}") if (NOT "${X265_LIBRARY_DIRS}" STREQUAL "") set(X265_LINKDIR "-L${X265_LIBRARY_DIRS}") endif() include_directories(SYSTEM ${X265_INCLUDE_DIR}) target_link_libraries(heif PRIVATE ${X265_LIBRARIES} ${X265_LINKDIR}) install(FILES heif_encoder_x265.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}) endif() if(AOM_ENCODER_FOUND OR AOM_DECODER_FOUND) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${AOM_CFLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${AOM_CFLAGS}") if (NOT "${AOM_LIBRARY_DIRS}" STREQUAL "") set(AOM_LINKDIR "-L${AOM_LIBRARY_DIRS}") endif() include_directories(SYSTEM ${AOM_INCLUDE_DIR}) target_link_libraries(heif PRIVATE ${AOM_LIBRARIES} ${AOM_LINKDIR}) endif() if(AOM_ENCODER_FOUND) target_compile_definitions(heif PRIVATE HAVE_AOM_ENCODER=1) target_sources(heif PRIVATE heif_encoder_aom.cc heif_encoder_aom.h ) endif() if(AOM_DECODER_FOUND) target_compile_definitions(heif PRIVATE HAVE_AOM_DECODER=1) target_sources(heif PRIVATE heif_decoder_aom.cc heif_decoder_aom.h ) endif() if(RAV1E_FOUND) target_compile_definitions(heif PRIVATE HAVE_RAV1E=1) target_sources(heif PRIVATE heif_encoder_rav1e.cc heif_encoder_rav1e.h ) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${RAV1E_CFLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RAV1E_CFLAGS}") if (NOT "${RAV1E_LIBRARY_DIRS}" STREQUAL "") set(RAV1E_LINKDIR "-L${RAV1E_LIBRARY_DIRS}") endif() include_directories(SYSTEM ${RAV1E_INCLUDE_DIR}) target_link_libraries(heif PRIVATE ${RAV1E_LIBRARIES} ${RAV1E_LINKDIR}) endif() if(DAV1D_FOUND) target_compile_definitions(heif PRIVATE HAVE_DAV1D=1) target_sources(heif PRIVATE heif_decoder_dav1d.cc heif_decoder_dav1d.h ) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${DAV1D_CFLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DAV1D_CFLAGS}") if (NOT "${DAV1D_LIBRARY_DIRS}" STREQUAL "") set(DAV1D_LINKDIR "-L${DAV1D_LIBRARY_DIRS}") endif() include_directories(SYSTEM ${DAV1D_INCLUDE_DIR}) target_link_libraries(heif PRIVATE ${DAV1D_LIBRARIES} ${DAV1D_LINKDIR}) endif () write_basic_package_version_file(${PROJECT_NAME}-config-version.cmake COMPATIBILITY ExactVersion) install(TARGETS heif EXPORT ${PROJECT_NAME}-config RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) install(FILES ${libheif_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}) install(EXPORT ${PROJECT_NAME}-config DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") libheif-1.12.0/libheif/heif_plugin_registry.h0000644000175000017500000000347014003350413016107 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_PLUGIN_REGISTRY_H #define LIBHEIF_HEIF_PLUGIN_REGISTRY_H #include #include #include #include #include #include "error.h" #include "heif.h" #include "heif_plugin.h" struct heif_encoder_descriptor { const struct heif_encoder_plugin* plugin; const char* get_name() const { return plugin->get_plugin_name(); } enum heif_compression_format get_compression_format() const { return plugin->compression_format; } }; namespace heif { extern std::set s_decoder_plugins; void register_decoder(const heif_decoder_plugin* decoder_plugin); void register_encoder(const heif_encoder_plugin* encoder_plugin); const struct heif_decoder_plugin* get_decoder(enum heif_compression_format type); const struct heif_encoder_plugin* get_encoder(enum heif_compression_format type); std::vector get_filtered_encoder_descriptors(enum heif_compression_format, const char* name); } #endif libheif-1.12.0/libheif/heif_avif.cc0000664000175000017500000002331314044230470013751 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif_image.h" #include "heif_avif.h" #include "bitstream.h" #include using namespace heif; // https://aomediacodec.github.io/av1-spec/av1-spec.pdf Error heif::fill_av1C_configuration(Box_av1C::configuration* inout_config, std::shared_ptr image) { int bpp = image->get_bits_per_pixel(heif_channel_Y); heif_chroma chroma = image->get_chroma_format(); uint8_t profile; if (bpp <= 10 && (chroma == heif_chroma_420 || chroma == heif_chroma_monochrome)) { profile = 0; } else if (bpp <= 10 && chroma == heif_chroma_444) { profile = 1; } else { profile = 2; } int width = image->get_width(heif_channel_Y); int height = image->get_height(heif_channel_Y); uint8_t level; if (width <= 8192 && height <= 4352 && (width * height) <= 8912896) { level = 13; // 5.1 } else if (width <= 16384 && height <= 8704 && (width * height) <= 35651584) { level = 17; // 6.1 } else { level = 31; // maximum } inout_config->seq_profile = profile; inout_config->seq_level_idx_0 = level; inout_config->high_bitdepth = (bpp > 8) ? 1 : 0; inout_config->twelve_bit = (bpp >= 12) ? 1 : 0; inout_config->monochrome = (chroma == heif_chroma_monochrome) ? 1 : 0; inout_config->chroma_subsampling_x = uint8_t(chroma_h_subsampling(chroma) >> 1); inout_config->chroma_subsampling_y = uint8_t(chroma_v_subsampling(chroma) >> 1); // 0 - CSP_UNKNOWN // 1 - CSP_VERTICAL // 2 - CSP_COLOCATED // 3 - CSP_RESERVED inout_config->chroma_sample_position = 0; return Error::Ok; } static uint64_t leb128(BitReader& reader) { uint64_t val = 0; for (int i = 0; i < 8; i++) { int v = reader.get_bits(8); val |= (v & 0x7F) << (i * 7); if (!(v & 0x80)) { break; } } return val; } struct obu_header_info { int type; bool has_size; uint64_t size = 0; }; static obu_header_info read_obu_header_type(BitReader& reader) { obu_header_info info; reader.skip_bits(1); info.type = reader.get_bits(4); bool has_extension = reader.get_bits(1); info.has_size = reader.get_bits(1); reader.skip_bits(1); if (has_extension) { reader.skip_bits(8); } if (info.has_size) { info.size = leb128(reader); } return info; } const static int HEIF_OBU_SEQUENCE_HEADER = 1; const static int CP_UNSPECIFIED = 2; const static int TC_UNSPECIFIED = 2; const static int MC_UNSPECIFIED = 2; const static int CP_BT_709 = 1; const static int TC_SRGB = 13; const static int MC_IDENTITY = 0; const static int HEIF_CSP_UNKNOWN = 0; // 1 - CSP_VERTICAL // 2 - CSP_COLOCATED // 3 - CSP_RESERVED bool heif::fill_av1C_configuration_from_stream(Box_av1C::configuration* out_config, const uint8_t* data, int dataSize) { BitReader reader(data, dataSize); // --- find OBU_SEQUENCE_HEADER bool seq_header_found = false; while (reader.get_bits_remaining() > 0) { obu_header_info header_info = read_obu_header_type(reader); if (header_info.type == HEIF_OBU_SEQUENCE_HEADER) { seq_header_found = true; break; } else if (header_info.has_size) { if (header_info.size > (uint64_t)std::numeric_limits::max()) { return false; } reader.skip_bytes((int)header_info.size); } else { return false; } } if (!seq_header_found) { return false; } // --- read sequence header int dummy; // throw away value bool decoder_model_info_present = false; int buffer_delay_length_minus1 = 0; out_config->seq_profile = (uint8_t)reader.get_bits(3); bool still_picture = reader.get_bits(1); (void) still_picture; bool reduced_still_picture = reader.get_bits(1); if (reduced_still_picture) { out_config->seq_level_idx_0 = (uint8_t)reader.get_bits(5); out_config->seq_tier_0 = 0; } else { bool timing_info_present_flag = reader.get_bits(1); if (timing_info_present_flag) { // --- skip timing info reader.skip_bytes(2 * 4); bool equal_picture_interval = reader.get_bits(1); if (equal_picture_interval) { reader.get_uvlc(&dummy); } // --- skip decoder_model_info decoder_model_info_present = reader.get_bits(1); if (decoder_model_info_present) { buffer_delay_length_minus1 = reader.get_bits(5); reader.skip_bits(32); reader.skip_bits(10); } } bool initial_display_delay_present_flag = reader.get_bits(1); int operating_points_cnt_minus1 = reader.get_bits(5); for (int i = 0; i <= operating_points_cnt_minus1; i++) { reader.skip_bits(12); auto level = (uint8_t) reader.get_bits(5); if (i == 0) { out_config->seq_level_idx_0 = level; } if (level > 7) { auto tier = (uint8_t) reader.get_bits(1); if (i == 0) { out_config->seq_tier_0 = tier; } } if (decoder_model_info_present) { bool decoder_model_present_for_this = reader.get_bits(1); if (decoder_model_present_for_this) { int n = buffer_delay_length_minus1 + 1; reader.skip_bits(n); reader.skip_bits(n); reader.skip_bits(1); } } if (initial_display_delay_present_flag) { bool initial_display_delay_present_for_this = reader.get_bits(1); if (i==0) { out_config->initial_presentation_delay_present = initial_display_delay_present_for_this; } if (initial_display_delay_present_for_this) { auto delay = (uint8_t)reader.get_bits(4); if (i==0) { out_config->initial_presentation_delay_minus_one = delay; } } } } } int frame_width_bits_minus1 = reader.get_bits(4); int frame_height_bits_minus1 = reader.get_bits(4); int max_frame_width_minus1 = reader.get_bits(frame_width_bits_minus1 + 1); int max_frame_height_minus1 = reader.get_bits(frame_height_bits_minus1 + 1); (void)max_frame_width_minus1; (void)max_frame_height_minus1; // printf("max size: %d x %d\n", max_frame_width_minus1+1, max_frame_height_minus1+1); int frame_id_numbers_present_flag = 0; if (!reduced_still_picture) { frame_id_numbers_present_flag = reader.get_bits(1); } if (frame_id_numbers_present_flag) { reader.skip_bits(7); } reader.skip_bits(3); if (!reduced_still_picture) { reader.skip_bits(4); // order hint bool enable_order_hint = reader.get_bits(1); if (enable_order_hint) { reader.skip_bits(2); } // screen content int force_screen_content_tools = 0; if (reader.get_bits(1)) { force_screen_content_tools = reader.get_bits(1); } if (force_screen_content_tools > 0) { // integer mv if (reader.get_bits(1) == 0) { reader.skip_bits(1); } } if (enable_order_hint) { reader.skip_bits(3); } } reader.skip_bits(3); // --- color config out_config->high_bitdepth = (uint8_t)reader.get_bits(1); if (out_config->seq_profile == 2 && out_config->high_bitdepth) { out_config->twelve_bit = (uint8_t)reader.get_bits(1); } else { out_config->twelve_bit = 0; } if (out_config->seq_profile == 1) { out_config->monochrome = 0; } else { out_config->monochrome = (uint8_t)reader.get_bits(1); } int color_primaries = CP_UNSPECIFIED; int transfer_characteristics = TC_UNSPECIFIED; int matrix_coefficients = MC_UNSPECIFIED; bool color_description_preset_flag = reader.get_bits(1); if (color_description_preset_flag) { color_primaries = reader.get_bits(8); transfer_characteristics = reader.get_bits(8); matrix_coefficients = reader.get_bits(8); } else { // color description unspecified } if (out_config->monochrome) { reader.skip_bits(1); out_config->chroma_subsampling_x = 1; out_config->chroma_subsampling_y = 1; out_config->chroma_sample_position = HEIF_CSP_UNKNOWN; } else if (color_primaries == CP_BT_709 && transfer_characteristics == TC_SRGB && matrix_coefficients == MC_IDENTITY) { out_config->chroma_subsampling_x = 0; out_config->chroma_subsampling_y = 0; } else { reader.skip_bits(1); if (out_config->seq_profile == 0) { out_config->chroma_subsampling_x = 1; out_config->chroma_subsampling_y = 1; } else if (out_config->seq_profile == 1) { out_config->chroma_subsampling_x = 0; out_config->chroma_subsampling_y = 0; } else { if (out_config->twelve_bit) { out_config->chroma_subsampling_x = (uint8_t)reader.get_bits(1); if (out_config->chroma_subsampling_x) { out_config->chroma_subsampling_y = (uint8_t)reader.get_bits(1); } else { out_config->chroma_subsampling_y = 0; } } else { out_config->chroma_subsampling_x = 1; out_config->chroma_subsampling_y = 0; } } if (out_config->chroma_subsampling_x && out_config->chroma_subsampling_y) { out_config->chroma_sample_position = (uint8_t)reader.get_bits(2); } } reader.skip_bits(1); // separate_uv_delta return true; } libheif-1.12.0/libheif/box_fuzzer.cc0000644000175000017500000000251414003350412014216 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Joachim Bauch * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include #include "box.h" #include "bitstream.h" #include "logging.h" extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { auto reader = std::make_shared(data, size, false); heif::BitstreamRange range(reader, size); for (;;) { std::shared_ptr box; heif::Error error = heif::Box::read(range, &box); if (error != heif::Error::Ok || range.error()) { break; } box->get_type(); box->get_type_string(); heif::Indent indent; box->dump(indent); } return 0; } libheif-1.12.0/libheif/heif_encoder_x265.cc0000664000175000017500000006661614043747772015265 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif.h" #include "heif_plugin.h" #include "heif_api_structs.h" #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include extern "C" { #include } static const char* kError_unsupported_bit_depth = "Bit depth not supported by x265"; static const char* kError_unsupported_image_size = "Images smaller than 16 pixels are not supported"; static const char* kError_out_of_memory = "Out of memory"; enum parameter_type { UndefinedType, Int, Bool, String }; struct parameter { parameter_type type = UndefinedType; std::string name; int value_int = 0; // also used for boolean std::string value_string; }; struct encoder_struct_x265 { x265_encoder* encoder = nullptr; x265_nal* nals = nullptr; uint32_t num_nals = 0; uint32_t nal_output_counter = 0; int bit_depth = 0; heif_chroma chroma; // --- parameters std::vector parameters; void add_param(const parameter&); void add_param(std::string name, int value); void add_param(std::string name, bool value); void add_param(std::string name, std::string value); parameter get_param(std::string name) const; std::string preset; std::string tune; int logLevel = X265_LOG_NONE; }; void encoder_struct_x265::add_param(const parameter& p) { // if there is already a parameter of that name, remove it from list for (size_t i = 0; i < parameters.size(); i++) { if (parameters[i].name == p.name) { for (size_t k = i + 1; k < parameters.size(); k++) { parameters[k - 1] = parameters[k]; } parameters.pop_back(); break; } } // and add the new parameter at the end of the list parameters.push_back(p); } void encoder_struct_x265::add_param(std::string name, int value) { parameter p; p.type = Int; p.name = name; p.value_int = value; add_param(p); } void encoder_struct_x265::add_param(std::string name, bool value) { parameter p; p.type = Bool; p.name = name; p.value_int = value; add_param(p); } void encoder_struct_x265::add_param(std::string name, std::string value) { parameter p; p.type = String; p.name = name; p.value_string = value; add_param(p); } parameter encoder_struct_x265::get_param(std::string name) const { for (size_t i = 0; i < parameters.size(); i++) { if (parameters[i].name == name) { return parameters[i]; } } return parameter(); } static const char* kParam_preset = "preset"; static const char* kParam_tune = "tune"; static const char* kParam_TU_intra_depth = "tu-intra-depth"; static const char* kParam_complexity = "complexity"; static const char* const kParam_preset_valid_values[] = { "ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo", nullptr }; static const char* const kParam_tune_valid_values[] = { "psnr", "ssim", "grain", "fastdecode", nullptr // note: zerolatency is missing, because we do not need it for single images }; static const char* kParam_chroma = "chroma"; static const char* const kParam_chroma_valid_values[] = { "420", "422", "444", nullptr }; static const int X265_PLUGIN_PRIORITY = 100; #define MAX_PLUGIN_NAME_LENGTH 80 static char plugin_name[MAX_PLUGIN_NAME_LENGTH]; static void x265_set_default_parameters(void* encoder); static const char* x265_plugin_name() { strcpy(plugin_name, "x265 HEVC encoder"); const char* x265_version = (x265_version_str != nullptr ? x265_version_str : "null"); if (strlen(x265_version) + strlen(plugin_name) + 4 < MAX_PLUGIN_NAME_LENGTH) { strcat(plugin_name, " ("); strcat(plugin_name, x265_version); strcat(plugin_name, ")"); } return plugin_name; } #define MAX_NPARAMETERS 10 static struct heif_encoder_parameter x265_encoder_params[MAX_NPARAMETERS]; static const struct heif_encoder_parameter* x265_encoder_parameter_ptrs[MAX_NPARAMETERS + 1]; static void x265_init_parameters() { struct heif_encoder_parameter* p = x265_encoder_params; const struct heif_encoder_parameter** d = x265_encoder_parameter_ptrs; int i = 0; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = heif_encoder_parameter_name_quality; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 50; p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 0; p->integer.maximum = 100; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = heif_encoder_parameter_name_lossless; p->type = heif_encoder_parameter_type_boolean; p->boolean.default_value = false; p->has_default = true; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_preset; p->type = heif_encoder_parameter_type_string; p->string.default_value = "slow"; // increases computation time p->has_default = true; p->string.valid_values = kParam_preset_valid_values; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_tune; p->type = heif_encoder_parameter_type_string; p->string.default_value = "ssim"; p->has_default = true; p->string.valid_values = kParam_tune_valid_values; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_TU_intra_depth; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 2; // increases computation time p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 1; p->integer.maximum = 4; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_complexity; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 50; p->has_default = false; p->integer.have_minimum_maximum = true; p->integer.minimum = 0; p->integer.maximum = 100; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_chroma; p->type = heif_encoder_parameter_type_string; p->string.default_value = "420"; p->has_default = true; p->string.valid_values = kParam_chroma_valid_values; d[i++] = p++; d[i++] = nullptr; } const struct heif_encoder_parameter** x265_list_parameters(void* encoder) { return x265_encoder_parameter_ptrs; } static void x265_init_plugin() { x265_init_parameters(); } static void x265_cleanup_plugin() { } static struct heif_error x265_new_encoder(void** enc) { struct encoder_struct_x265* encoder = new encoder_struct_x265(); struct heif_error err = heif_error_ok; // encoder has to be allocated in x265_encode_image, because it needs to know the image size encoder->encoder = nullptr; encoder->nals = nullptr; encoder->num_nals = 0; encoder->nal_output_counter = 0; encoder->bit_depth = 8; *enc = encoder; // set default parameters x265_set_default_parameters(encoder); return err; } static void x265_free_encoder(void* encoder_raw) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; if (encoder->encoder) { const x265_api* api = x265_api_get(encoder->bit_depth); api->encoder_close(encoder->encoder); } delete encoder; } static struct heif_error x265_set_parameter_quality(void* encoder_raw, int quality) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; if (quality < 0 || quality > 100) { return heif_error_invalid_parameter_value; } encoder->add_param(heif_encoder_parameter_name_quality, quality); return heif_error_ok; } static struct heif_error x265_get_parameter_quality(void* encoder_raw, int* quality) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; parameter p = encoder->get_param(heif_encoder_parameter_name_quality); *quality = p.value_int; return heif_error_ok; } static struct heif_error x265_set_parameter_lossless(void* encoder_raw, int enable) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; encoder->add_param(heif_encoder_parameter_name_lossless, (bool) enable); return heif_error_ok; } static struct heif_error x265_get_parameter_lossless(void* encoder_raw, int* enable) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; parameter p = encoder->get_param(heif_encoder_parameter_name_lossless); *enable = p.value_int; return heif_error_ok; } static struct heif_error x265_set_parameter_logging_level(void* encoder_raw, int logging) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; if (logging < 0 || logging > 4) { return heif_error_invalid_parameter_value; } encoder->logLevel = logging; return heif_error_ok; } static struct heif_error x265_get_parameter_logging_level(void* encoder_raw, int* loglevel) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; *loglevel = encoder->logLevel; return heif_error_ok; } static struct heif_error x265_set_parameter_integer(void* encoder_raw, const char* name, int value) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; if (strcmp(name, heif_encoder_parameter_name_quality) == 0) { return x265_set_parameter_quality(encoder, value); } else if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return x265_set_parameter_lossless(encoder, value); } else if (strcmp(name, kParam_TU_intra_depth) == 0) { if (value < 1 || value > 4) { return heif_error_invalid_parameter_value; } encoder->add_param(name, value); return heif_error_ok; } else if (strcmp(name, kParam_complexity) == 0) { if (value < 0 || value > 100) { return heif_error_invalid_parameter_value; } encoder->add_param(name, value); return heif_error_ok; } return heif_error_unsupported_parameter; } static struct heif_error x265_get_parameter_integer(void* encoder_raw, const char* name, int* value) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; if (strcmp(name, heif_encoder_parameter_name_quality) == 0) { return x265_get_parameter_quality(encoder, value); } else if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return x265_get_parameter_lossless(encoder, value); } else if (strcmp(name, kParam_TU_intra_depth) == 0) { *value = encoder->get_param(name).value_int; return heif_error_ok; } else if (strcmp(name, kParam_complexity) == 0) { *value = encoder->get_param(name).value_int; return heif_error_ok; } return heif_error_unsupported_parameter; } static struct heif_error x265_set_parameter_boolean(void* encoder, const char* name, int value) { if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return x265_set_parameter_lossless(encoder, value); } return heif_error_unsupported_parameter; } // Unused, will use "x265_get_parameter_integer" instead. /* static struct heif_error x265_get_parameter_boolean(void* encoder, const char* name, int* value) { if (strcmp(name, heif_encoder_parameter_name_lossless)==0) { return x265_get_parameter_lossless(encoder,value); } return heif_error_unsupported_parameter; } */ static bool string_list_contains(const char* const* values_list, const char* value) { for (int i = 0; values_list[i]; i++) { if (strcmp(values_list[i], value) == 0) { return true; } } return false; } static struct heif_error x265_set_parameter_string(void* encoder_raw, const char* name, const char* value) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; if (strcmp(name, kParam_preset) == 0) { if (!string_list_contains(kParam_preset_valid_values, value)) { return heif_error_invalid_parameter_value; } encoder->preset = value; return heif_error_ok; } else if (strcmp(name, kParam_tune) == 0) { if (!string_list_contains(kParam_tune_valid_values, value)) { return heif_error_invalid_parameter_value; } encoder->tune = value; return heif_error_ok; } else if (strncmp(name, "x265:", 5) == 0) { encoder->add_param(name, std::string(value)); return heif_error_ok; } else if (strcmp(name, kParam_chroma) == 0) { if (strcmp(value, "420") == 0) { encoder->chroma = heif_chroma_420; return heif_error_ok; } else if (strcmp(value, "422") == 0) { encoder->chroma = heif_chroma_422; return heif_error_ok; } else if (strcmp(value, "444") == 0) { encoder->chroma = heif_chroma_444; return heif_error_ok; } else { return heif_error_invalid_parameter_value; } } return heif_error_unsupported_parameter; } static void save_strcpy(char* dst, int dst_size, const char* src) { strncpy(dst, src, dst_size - 1); dst[dst_size - 1] = 0; } static struct heif_error x265_get_parameter_string(void* encoder_raw, const char* name, char* value, int value_size) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; if (strcmp(name, kParam_preset) == 0) { save_strcpy(value, value_size, encoder->preset.c_str()); return heif_error_ok; } else if (strcmp(name, kParam_tune) == 0) { save_strcpy(value, value_size, encoder->tune.c_str()); return heif_error_ok; } else if (strcmp(name, kParam_chroma) == 0) { switch (encoder->chroma) { case heif_chroma_420: save_strcpy(value, value_size, "420"); break; case heif_chroma_422: save_strcpy(value, value_size, "422"); break; case heif_chroma_444: save_strcpy(value, value_size, "444"); break; default: assert(false); return heif_error_invalid_parameter_value; } } return heif_error_unsupported_parameter; } static void x265_set_default_parameters(void* encoder) { for (const struct heif_encoder_parameter** p = x265_encoder_parameter_ptrs; *p; p++) { const struct heif_encoder_parameter* param = *p; if (param->has_default) { switch (param->type) { case heif_encoder_parameter_type_integer: x265_set_parameter_integer(encoder, param->name, param->integer.default_value); break; case heif_encoder_parameter_type_boolean: x265_set_parameter_boolean(encoder, param->name, param->boolean.default_value); break; case heif_encoder_parameter_type_string: x265_set_parameter_string(encoder, param->name, param->string.default_value); break; } } } } static void x265_query_input_colorspace(heif_colorspace* colorspace, heif_chroma* chroma) { if (*colorspace == heif_colorspace_monochrome) { *colorspace = heif_colorspace_monochrome; *chroma = heif_chroma_monochrome; } else { *colorspace = heif_colorspace_YCbCr; *chroma = heif_chroma_420; } } static void x265_query_input_colorspace2(void* encoder_raw, heif_colorspace* colorspace, heif_chroma* chroma) { auto* encoder = (struct encoder_struct_x265*) encoder_raw; if (*colorspace == heif_colorspace_monochrome) { *colorspace = heif_colorspace_monochrome; *chroma = heif_chroma_monochrome; } else { *colorspace = heif_colorspace_YCbCr; *chroma = encoder->chroma; } } static int rounded_size(int s) { s = (s + 1) & ~1; if (s < 64) { s = 64; } return s; } static struct heif_error x265_encode_image(void* encoder_raw, const struct heif_image* image, heif_image_input_class input_class) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; // close previous encoder if there is still one hanging around if (encoder->encoder) { const x265_api* api = x265_api_get(encoder->bit_depth); api->encoder_close(encoder->encoder); encoder->encoder = nullptr; } int bit_depth = heif_image_get_bits_per_pixel_range(image, heif_channel_Y); bool isGreyscale = (heif_image_get_colorspace(image) == heif_colorspace_monochrome); heif_chroma chroma = heif_image_get_chroma_format(image); const x265_api* api = x265_api_get(bit_depth); if (api == nullptr) { struct heif_error err = { heif_error_Encoder_plugin_error, heif_suberror_Unsupported_bit_depth, kError_unsupported_bit_depth }; return err; } x265_param* param = api->param_alloc(); api->param_default_preset(param, encoder->preset.c_str(), encoder->tune.c_str()); if (bit_depth == 8) api->param_apply_profile(param, "mainstillpicture"); else if (bit_depth == 10) api->param_apply_profile(param, "main10-intra"); else if (bit_depth == 12) api->param_apply_profile(param, "main12-intra"); else { api->param_free(param); return heif_error_unsupported_parameter; } param->fpsNum = 1; param->fpsDenom = 1; // x265 cannot encode images smaller than one CTU size // https://bitbucket.org/multicoreware/x265/issues/475/x265-does-not-allow-image-sizes-smaller // -> use smaller CTU sizes for very small images const char* ctu = NULL; int ctuSize = 64; #if 1 while (ctuSize > 16 && (heif_image_get_width(image, heif_channel_Y) < ctuSize || heif_image_get_height(image, heif_channel_Y) < ctuSize)) { ctuSize /= 2; } if (ctuSize < 16) { api->param_free(param); struct heif_error err = { heif_error_Encoder_plugin_error, heif_suberror_Invalid_parameter_value, kError_unsupported_image_size }; return err; } #else // TODO: There seems to be a bug in x265 where increasing the CTU size between // multiple encoding jobs causes a segmentation fault. E.g. encoding multiple // times with a CTU of 16 works, the next encoding with a CTU of 32 crashes. // Use hardcoded value of 64 and reject images that are too small. if (heif_image_get_width(image, heif_channel_Y) < ctuSize || heif_image_get_height(image, heif_channel_Y) < ctuSize) { api->param_free(param); struct heif_error err = { heif_error_Encoder_plugin_error, heif_suberror_Invalid_parameter_value, kError_unsupported_image_size }; return err; } #endif // ctuSize should be a power of 2 in [16;64] switch (ctuSize) { case 64: ctu = "64"; break; case 32: ctu = "32"; break; case 16: ctu = "16"; break; default: struct heif_error err = { heif_error_Encoder_plugin_error, heif_suberror_Invalid_parameter_value, kError_unsupported_image_size }; return err; } // BPG uses CQP. It does not seem to be better though. // param->rc.rateControlMode = X265_RC_CQP; // param->rc.qp = (100 - encoder->quality)/2; param->totalFrames = 1; if (isGreyscale) { param->internalCsp = X265_CSP_I400; } else if (chroma == heif_chroma_420) { param->internalCsp = X265_CSP_I420; } else if (chroma == heif_chroma_422) { param->internalCsp = X265_CSP_I422; } else if (chroma == heif_chroma_444) { param->internalCsp = X265_CSP_I444; } if (chroma != heif_chroma_monochrome) { int w = heif_image_get_width(image, heif_channel_Y); int h = heif_image_get_height(image, heif_channel_Y); if (chroma != heif_chroma_444) { w = (w + 1) / 2; } if (chroma == heif_chroma_420) { h = (h + 1) / 2; } assert(heif_image_get_width(image, heif_channel_Cb)==w); assert(heif_image_get_width(image, heif_channel_Cr)==w); assert(heif_image_get_height(image, heif_channel_Cb)==h); assert(heif_image_get_height(image, heif_channel_Cr)==h); } api->param_parse(param, "info", "0"); api->param_parse(param, "limit-modes", "0"); api->param_parse(param, "limit-refs", "0"); api->param_parse(param, "ctu", ctu); api->param_parse(param, "rskip", "0"); api->param_parse(param, "rect", "1"); api->param_parse(param, "amp", "1"); api->param_parse(param, "aq-mode", "1"); api->param_parse(param, "psy-rd", "1.0"); api->param_parse(param, "psy-rdoq", "1.0"); auto nclx = image->image->get_color_profile_nclx(); if (nclx) { api->param_parse(param, "range", nclx->get_full_range_flag() ? "full" : "limited"); } else { api->param_parse(param, "range", "full"); } if (nclx && (input_class == heif_image_input_class_normal || input_class == heif_image_input_class_thumbnail)) { { std::stringstream sstr; sstr << nclx->get_colour_primaries(); api->param_parse(param, "colorprim", sstr.str().c_str()); } { std::stringstream sstr; sstr << nclx->get_transfer_characteristics(); api->param_parse(param, "transfer", sstr.str().c_str()); } { std::stringstream sstr; sstr << nclx->get_matrix_coefficients(); api->param_parse(param, "colormatrix", sstr.str().c_str()); } } for (const auto& p : encoder->parameters) { if (p.name == heif_encoder_parameter_name_quality) { // quality=0 -> crf=50 // quality=50 -> crf=25 // quality=100 -> crf=0 param->rc.rfConstant = (100 - p.value_int) / 2.0; } else if (p.name == heif_encoder_parameter_name_lossless) { param->bLossless = p.value_int; } else if (p.name == kParam_TU_intra_depth) { char buf[100]; sprintf(buf, "%d", p.value_int); api->param_parse(param, "tu-intra-depth", buf); } else if (p.name == kParam_complexity) { const int complexity = p.value_int; if (complexity >= 60) { api->param_parse(param, "rd-refine", "1"); // increases computation time api->param_parse(param, "rd", "6"); } if (complexity >= 70) { api->param_parse(param, "cu-lossless", "1"); // increases computation time } if (complexity >= 90) { api->param_parse(param, "wpp", "0"); // setting to 0 significantly increases computation time } } else if (strncmp(p.name.c_str(), "x265:", 5) == 0) { std::string x265p = p.name.substr(5); api->param_parse(param, x265p.c_str(), p.value_string.c_str()); } } param->logLevel = encoder->logLevel; param->sourceWidth = heif_image_get_width(image, heif_channel_Y); param->sourceHeight = heif_image_get_height(image, heif_channel_Y); param->internalBitDepth = bit_depth; param->sourceWidth = rounded_size(param->sourceWidth); param->sourceHeight = rounded_size(param->sourceHeight); bool success = image->image->extend_padding_to_size(param->sourceWidth, param->sourceHeight); if (!success) { struct heif_error err = { heif_error_Memory_allocation_error, heif_suberror_Unspecified, kError_out_of_memory }; return err; } x265_picture* pic = api->picture_alloc(); api->picture_init(param, pic); if (isGreyscale) { pic->planes[0] = (void*) heif_image_get_plane_readonly(image, heif_channel_Y, &pic->stride[0]); } else { pic->planes[0] = (void*) heif_image_get_plane_readonly(image, heif_channel_Y, &pic->stride[0]); pic->planes[1] = (void*) heif_image_get_plane_readonly(image, heif_channel_Cb, &pic->stride[1]); pic->planes[2] = (void*) heif_image_get_plane_readonly(image, heif_channel_Cr, &pic->stride[2]); } pic->bitDepth = bit_depth; encoder->bit_depth = bit_depth; encoder->encoder = api->encoder_open(param); api->encoder_encode(encoder->encoder, &encoder->nals, &encoder->num_nals, pic, NULL); api->picture_free(pic); api->param_free(param); encoder->nal_output_counter = 0; return heif_error_ok; } static struct heif_error x265_get_compressed_data(void* encoder_raw, uint8_t** data, int* size, enum heif_encoded_data_type* type) { struct encoder_struct_x265* encoder = (struct encoder_struct_x265*) encoder_raw; if (encoder->encoder == nullptr) { *data = nullptr; *size = 0; return heif_error_ok; } const x265_api* api = x265_api_get(encoder->bit_depth); for (;;) { while (encoder->nal_output_counter < encoder->num_nals) { *data = encoder->nals[encoder->nal_output_counter].payload; *size = encoder->nals[encoder->nal_output_counter].sizeBytes; encoder->nal_output_counter++; // --- skip start code --- // skip '0' bytes while (**data == 0 && *size > 0) { (*data)++; (*size)--; } // skip '1' byte (*data)++; (*size)--; // --- skip NALs with irrelevant data --- if (*size >= 3 && (*data)[0] == 0x4e && (*data)[2] == 5) { // skip "unregistered user data SEI" } else { // output NAL return heif_error_ok; } } encoder->nal_output_counter = 0; int result = api->encoder_encode(encoder->encoder, &encoder->nals, &encoder->num_nals, NULL, NULL); if (result <= 0) { *data = nullptr; *size = 0; return heif_error_ok; } } } static const struct heif_encoder_plugin encoder_plugin_x265 { /* plugin_api_version */ 2, /* compression_format */ heif_compression_HEVC, /* id_name */ "x265", /* priority */ X265_PLUGIN_PRIORITY, /* supports_lossy_compression */ true, /* supports_lossless_compression */ true, /* get_plugin_name */ x265_plugin_name, /* init_plugin */ x265_init_plugin, /* cleanup_plugin */ x265_cleanup_plugin, /* new_encoder */ x265_new_encoder, /* free_encoder */ x265_free_encoder, /* set_parameter_quality */ x265_set_parameter_quality, /* get_parameter_quality */ x265_get_parameter_quality, /* set_parameter_lossless */ x265_set_parameter_lossless, /* get_parameter_lossless */ x265_get_parameter_lossless, /* set_parameter_logging_level */ x265_set_parameter_logging_level, /* get_parameter_logging_level */ x265_get_parameter_logging_level, /* list_parameters */ x265_list_parameters, /* set_parameter_integer */ x265_set_parameter_integer, /* get_parameter_integer */ x265_get_parameter_integer, /* set_parameter_boolean */ x265_set_parameter_integer, // boolean also maps to integer function /* get_parameter_boolean */ x265_get_parameter_integer, // boolean also maps to integer function /* set_parameter_string */ x265_set_parameter_string, /* get_parameter_string */ x265_get_parameter_string, /* query_input_colorspace */ x265_query_input_colorspace, /* encode_image */ x265_encode_image, /* get_compressed_data */ x265_get_compressed_data, /* query_input_colorspace (v2) */ x265_query_input_colorspace2 }; const struct heif_encoder_plugin* get_encoder_plugin_x265() { return &encoder_plugin_x265; } libheif-1.12.0/libheif/error.cc0000664000175000017500000001630514043747772013206 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "error.h" #include // static const char heif::Error::kSuccess[] = "Success"; const char* cUnknownError = "Unknown error"; heif::Error::Error() : error_code(heif_error_Ok), sub_error_code(heif_suberror_Unspecified) { } heif::Error::Error(heif_error_code c, heif_suberror_code sc, std::string msg) : error_code(c), sub_error_code(sc), message(msg) { } const char* heif::Error::get_error_string(heif_error_code err) { switch (err) { case heif_error_Ok: return "Success"; case heif_error_Input_does_not_exist: return "Input file does not exist"; case heif_error_Invalid_input: return "Invalid input"; case heif_error_Unsupported_filetype: return "Unsupported file-type"; case heif_error_Unsupported_feature: return "Unsupported feature"; case heif_error_Usage_error: return "Usage error"; case heif_error_Memory_allocation_error: return "Memory allocation error"; case heif_error_Decoder_plugin_error: return "Decoder plugin generated an error"; case heif_error_Encoder_plugin_error: return "Encoder plugin generated an error"; case heif_error_Encoding_error: return "Error during encoding or writing output file"; case heif_error_Color_profile_does_not_exist: return "Color profile does not exist"; } assert(false); return "Unknown error"; } const char* heif::Error::get_error_string(heif_suberror_code err) { switch (err) { case heif_suberror_Unspecified: return "Unspecified"; // --- Invalid_input --- case heif_suberror_End_of_data: return "Unexpected end of file"; case heif_suberror_Invalid_box_size: return "Invalid box size"; case heif_suberror_Invalid_grid_data: return "Invalid grid data"; case heif_suberror_Missing_grid_images: return "Missing grid images"; case heif_suberror_No_ftyp_box: return "No 'ftyp' box"; case heif_suberror_No_idat_box: return "No 'idat' box"; case heif_suberror_No_meta_box: return "No 'meta' box"; case heif_suberror_No_hdlr_box: return "No 'hdlr' box"; case heif_suberror_No_hvcC_box: return "No 'hvcC' box"; case heif_suberror_No_av1C_box: return "No 'av1C' box"; case heif_suberror_No_pitm_box: return "No 'pitm' box"; case heif_suberror_No_ipco_box: return "No 'ipco' box"; case heif_suberror_No_ipma_box: return "No 'ipma' box"; case heif_suberror_No_iloc_box: return "No 'iloc' box"; case heif_suberror_No_iinf_box: return "No 'iinf' box"; case heif_suberror_No_iprp_box: return "No 'iprp' box"; case heif_suberror_No_iref_box: return "No 'iref' box"; case heif_suberror_No_infe_box: return "No 'infe' box"; case heif_suberror_No_pict_handler: return "Not a 'pict' handler"; case heif_suberror_Ipma_box_references_nonexisting_property: return "'ipma' box references a non-existing property"; case heif_suberror_No_properties_assigned_to_item: return "No properties assigned to item"; case heif_suberror_No_item_data: return "Item has no data"; case heif_suberror_Invalid_clean_aperture: return "Invalid clean-aperture specification"; case heif_suberror_Invalid_overlay_data: return "Invalid overlay data"; case heif_suberror_Overlay_image_outside_of_canvas: return "Overlay image outside of canvas area"; case heif_suberror_Auxiliary_image_type_unspecified: return "Type of auxiliary image unspecified"; case heif_suberror_No_or_invalid_primary_item: return "No or invalid primary item"; case heif_suberror_Unknown_color_profile_type: return "Unknown color profile type"; case heif_suberror_Wrong_tile_image_chroma_format: return "Wrong tile image chroma format"; case heif_suberror_Invalid_fractional_number: return "Invalid fractional number"; case heif_suberror_Invalid_image_size: return "Invalid image size"; case heif_suberror_Invalid_pixi_box: return "Invalid pixi box"; case heif_suberror_Wrong_tile_image_pixel_depth: return "Wrong tile image pixel depth"; // --- Memory_allocation_error --- case heif_suberror_Security_limit_exceeded: return "Security limit exceeded"; // --- Usage_error --- case heif_suberror_Nonexisting_item_referenced: return "Non-existing item ID referenced"; case heif_suberror_Null_pointer_argument: return "NULL argument received"; case heif_suberror_Nonexisting_image_channel_referenced: return "Non-existing image channel referenced"; case heif_suberror_Unsupported_plugin_version: return "The version of the passed plugin is not supported"; case heif_suberror_Unsupported_writer_version: return "The version of the passed writer is not supported"; case heif_suberror_Unsupported_parameter: return "Unsupported parameter"; case heif_suberror_Invalid_parameter_value: return "Invalid parameter value"; // --- Unsupported_feature --- case heif_suberror_Unsupported_codec: return "Unsupported codec"; case heif_suberror_Unsupported_image_type: return "Unsupported image type"; case heif_suberror_Unsupported_data_version: return "Unsupported data version"; case heif_suberror_Unsupported_color_conversion: return "Unsupported color conversion"; case heif_suberror_Unsupported_item_construction_method: return "Unsupported item construction method"; // --- Encoder_plugin_error -- case heif_suberror_Unsupported_bit_depth: return "Unsupported bit depth"; // --- Encoding_error -- case heif_suberror_Cannot_write_output_data: return "Cannot write output data"; } assert(false); return cUnknownError; } heif_error heif::Error::error_struct(ErrorBuffer* error_buffer) const { if (error_buffer) { if (error_code == heif_error_Ok) { error_buffer->set_success(); } else { std::stringstream sstr; sstr << get_error_string(error_code) << ": " << get_error_string(sub_error_code); if (!message.empty()) { sstr << ": " << message; } error_buffer->set_error(sstr.str()); } } heif_error err; err.code = error_code; err.subcode = sub_error_code; if (error_buffer) { err.message = error_buffer->get_error(); } else { err.message = cUnknownError; } return err; } libheif-1.12.0/libheif/heif_hevc.cc0000644000175000017500000002022314003350413013737 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif_hevc.h" #include "bitstream.h" #include using namespace heif; static double read_depth_rep_info_element(BitReader& reader) { int sign_flag = reader.get_bits(1); int exponent = reader.get_bits(7); int mantissa_len = reader.get_bits(5) + 1; if (mantissa_len < 1 || mantissa_len > 32) { // TODO err } if (exponent == 127) { // TODO value unspecified } int mantissa = reader.get_bits(mantissa_len); double value; //printf("sign:%d exponent:%d mantissa_len:%d mantissa:%d\n",sign_flag,exponent,mantissa_len,mantissa); if (exponent > 0) { value = pow(2, exponent - 31) * (1.0 + mantissa / pow(2, mantissa_len)); } else { value = pow(2, -(30 + mantissa_len)) * mantissa; } if (sign_flag) { value = -value; } return value; } static std::shared_ptr read_depth_representation_info(BitReader& reader) { auto msg = std::make_shared(); // default values msg->version = 1; msg->disparity_reference_view = 0; msg->depth_nonlinear_representation_model_size = 0; msg->depth_nonlinear_representation_model = nullptr; // read header msg->has_z_near = (uint8_t) reader.get_bits(1); msg->has_z_far = (uint8_t) reader.get_bits(1); msg->has_d_min = (uint8_t) reader.get_bits(1); msg->has_d_max = (uint8_t) reader.get_bits(1); int rep_type; if (!reader.get_uvlc(&rep_type)) { // TODO error } // TODO: check rep_type range msg->depth_representation_type = (enum heif_depth_representation_type) rep_type; //printf("flags: %d %d %d %d\n",msg->has_z_near,msg->has_z_far,msg->has_d_min,msg->has_d_max); //printf("type: %d\n",rep_type); if (msg->has_d_min || msg->has_d_max) { int ref_view; if (!reader.get_uvlc(&ref_view)) { // TODO error } msg->disparity_reference_view = ref_view; //printf("ref_view: %d\n",msg->disparity_reference_view); } if (msg->has_z_near) msg->z_near = read_depth_rep_info_element(reader); if (msg->has_z_far) msg->z_far = read_depth_rep_info_element(reader); if (msg->has_d_min) msg->d_min = read_depth_rep_info_element(reader); if (msg->has_d_max) msg->d_max = read_depth_rep_info_element(reader); /* printf("z_near: %f\n",msg->z_near); printf("z_far: %f\n",msg->z_far); printf("dmin: %f\n",msg->d_min); printf("dmax: %f\n",msg->d_max); */ if (msg->depth_representation_type == heif_depth_representation_type_nonuniform_disparity) { // TODO: load non-uniform response curve } return msg; } // aux subtypes: 00 00 00 11 / 00 00 00 0d / 4e 01 / b1 09 / 35 1e 78 c8 01 03 c5 d0 20 Error heif::decode_hevc_aux_sei_messages(const std::vector& data, std::vector>& msgs) { // TODO: we probably do not need a full BitReader just for the array size. // Read this and the NAL size directly on the array data. BitReader reader(data.data(), (int) data.size()); uint32_t len = (uint32_t) reader.get_bits(32); if (len > data.size() - 4) { // ERROR: read past end of data } while (reader.get_current_byte_index() < (int) len) { int currPos = reader.get_current_byte_index(); BitReader sei_reader(data.data() + currPos, (int) data.size() - currPos); uint32_t nal_size = (uint32_t) sei_reader.get_bits(32); (void) nal_size; uint8_t nal_type = (uint8_t) (sei_reader.get_bits(8) >> 1); sei_reader.skip_bits(8); // SEI if (nal_type == 39 || nal_type == 40) { // TODO: loading of multi-byte sei headers uint8_t payload_id = (uint8_t) (sei_reader.get_bits(8)); uint8_t payload_size = (uint8_t) (sei_reader.get_bits(8)); (void) payload_size; switch (payload_id) { case 177: // depth_representation_info std::shared_ptr sei = read_depth_representation_info(sei_reader); msgs.push_back(sei); break; } } break; // TODO: read next SEI } return Error::Ok; } static std::vector remove_start_code_emulation(const uint8_t* sps, size_t size) { std::vector out_data; for (size_t i = 0; i < size; i++) { if (i + 2 < size && sps[i] == 0 && sps[i + 1] == 0 && sps[i + 2] == 3) { out_data.push_back(0); out_data.push_back(0); i += 2; } else { out_data.push_back(sps[i]); } } return out_data; } Error heif::parse_sps_for_hvcC_configuration(const uint8_t* sps, size_t size, Box_hvcC::configuration* config, int* width, int* height) { // remove start-code emulation bytes from SPS header stream std::vector sps_no_emul = remove_start_code_emulation(sps, size); sps = sps_no_emul.data(); size = sps_no_emul.size(); BitReader reader(sps, (int) size); // skip NAL header reader.skip_bits(2 * 8); // skip VPS ID reader.skip_bits(4); int nMaxSubLayersMinus1 = reader.get_bits(3); config->temporal_id_nested = (uint8_t) reader.get_bits(1); // --- profile_tier_level --- config->general_profile_space = (uint8_t) reader.get_bits(2); config->general_tier_flag = (uint8_t) reader.get_bits(1); config->general_profile_idc = (uint8_t) reader.get_bits(5); config->general_profile_compatibility_flags = reader.get_bits(32); reader.skip_bits(16); // skip reserved bits reader.skip_bits(16); // skip reserved bits reader.skip_bits(16); // skip reserved bits config->general_level_idc = (uint8_t) reader.get_bits(8); std::vector layer_profile_present(nMaxSubLayersMinus1); std::vector layer_level_present(nMaxSubLayersMinus1); for (int i = 0; i < nMaxSubLayersMinus1; i++) { layer_profile_present[i] = reader.get_bits(1); layer_level_present[i] = reader.get_bits(1); } for (int i = 0; i < nMaxSubLayersMinus1; i++) { if (layer_profile_present[i]) { reader.skip_bits(2 + 1 + 5); reader.skip_bits(32); reader.skip_bits(16); } if (layer_level_present[i]) { reader.skip_bits(8); } } // --- SPS continued --- int dummy, value; reader.get_uvlc(&dummy); // skip seq_parameter_seq_id reader.get_uvlc(&value); config->chroma_format = (uint8_t) value; if (config->chroma_format == 3) { reader.skip_bits(1); } reader.get_uvlc(width); reader.get_uvlc(height); bool conformance_window = reader.get_bits(1); if (conformance_window) { int left, right, top, bottom; reader.get_uvlc(&left); reader.get_uvlc(&right); reader.get_uvlc(&top); reader.get_uvlc(&bottom); //printf("conformance borders: %d %d %d %d\n",left,right,top,bottom); int subH=1, subV=1; if (config->chroma_format == 1) { subV=2; subH=2; } if (config->chroma_format == 2) { subH=2; } *width -= subH * (left + right); *height -= subV * (top + bottom); } reader.get_uvlc(&value); config->bit_depth_luma = (uint8_t) (value + 8); reader.get_uvlc(&value); config->bit_depth_chroma = (uint8_t) (value + 8); // --- init static configuration fields --- config->configuration_version = 1; config->min_spatial_segmentation_idc = 0; // TODO: get this value from the VUI, 0 should be safe config->parallelism_type = 0; // TODO, 0 should be safe config->avg_frame_rate = 0; // makes no sense for HEIF config->constant_frame_rate = 0; // makes no sense for HEIF config->num_temporal_layers = 1; // makes no sense for HEIF return Error::Ok; } libheif-1.12.0/libheif/bitstream.h0000664000175000017500000001664114043747772013714 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_BITSTREAM_H #define LIBHEIF_BITSTREAM_H #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include #include #include #include #include "error.h" namespace heif { class StreamReader { public: virtual ~StreamReader() {} virtual int64_t get_position() const = 0; enum grow_status { size_reached, // requested size has been reached timeout, // size has not been reached yet, but it may still grow further size_beyond_eof // size has not been reached and never will. The file has grown to its full size }; // a StreamReader can maintain a timeout for waiting for new data virtual grow_status wait_for_file_size(int64_t target_size) = 0; // returns 'false' when we read out of the available file size virtual bool read(void* data, size_t size) = 0; virtual bool seek(int64_t position) = 0; bool seek_cur(int64_t position_offset) { return seek(get_position() + position_offset); } }; class StreamReader_istream : public StreamReader { public: StreamReader_istream(std::unique_ptr&& istr); int64_t get_position() const override; grow_status wait_for_file_size(int64_t target_size) override; bool read(void* data, size_t size) override; bool seek(int64_t position) override; private: std::unique_ptr m_istr; int64_t m_length; }; class StreamReader_memory : public StreamReader { public: StreamReader_memory(const uint8_t* data, int64_t size, bool copy); ~StreamReader_memory(); int64_t get_position() const override; grow_status wait_for_file_size(int64_t target_size) override; bool read(void* data, size_t size) override; bool seek(int64_t position) override; private: const uint8_t* m_data; int64_t m_length; int64_t m_position; // if we made a copy of the data, we store a pointer to the owned memory area here uint8_t* m_owned_data = nullptr; }; class StreamReader_CApi : public StreamReader { public: StreamReader_CApi(const heif_reader* func_table, void* userdata); int64_t get_position() const override { return m_func_table->get_position(m_userdata); } StreamReader::grow_status wait_for_file_size(int64_t target_size) override; bool read(void* data, size_t size) override { return !m_func_table->read(data, size, m_userdata); } bool seek(int64_t position) override { return !m_func_table->seek(position, m_userdata); } private: const heif_reader* m_func_table; void* m_userdata; }; // This class simplifies safely reading part of a file (e.g. a box). // It makes sure that we do not read past the boundaries of a box. class BitstreamRange { public: BitstreamRange(std::shared_ptr istr, uint64_t length, BitstreamRange* parent = nullptr); // This function tries to make sure that the full data of this range is // available. You should call this before starting reading the range. // If you don't, you have to make sure that you do not read past the available data. StreamReader::grow_status wait_until_range_is_available(); uint8_t read8(); uint16_t read16(); uint32_t read32(); std::string read_string(); bool read(uint8_t* data, int64_t n); bool prepare_read(int64_t nBytes); StreamReader::grow_status wait_for_available_bytes(int64_t nBytes); void skip_to_end_of_file() { // we do not actually move the file position here (because the stream may still be incomplete), // but we set all m_remaining to zero m_remaining = 0; if (m_parent_range) { m_parent_range->skip_to_end_of_file(); } } void skip_to_end_of_box() { if (m_remaining > 0) { if (m_parent_range) { // also advance position in parent range m_parent_range->skip_without_advancing_file_pos(m_remaining); } m_istr->seek_cur(m_remaining); m_remaining = 0; } } void set_eof_while_reading() { m_remaining = 0; if (m_parent_range) { m_parent_range->set_eof_while_reading(); } m_error = true; } bool eof() const { return m_remaining == 0; } bool error() const { return m_error; } Error get_error() const { if (m_error) { return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } else { return Error::Ok; } } std::shared_ptr get_istream() { return m_istr; } int get_nesting_level() const { return m_nesting_level; } int64_t get_remaining_bytes() const { return m_remaining; } private: std::shared_ptr m_istr; BitstreamRange* m_parent_range = nullptr; int m_nesting_level = 0; int64_t m_remaining; bool m_error = false; // Note: 'nBytes' may not be larger than the number of remaining bytes void skip_without_advancing_file_pos(int64_t nBytes); }; class BitReader { public: BitReader(const uint8_t* buffer, int len); int get_bits(int n); int get_bits_fast(int n); int peek_bits(int n); void skip_bytes(int nBytes); void skip_bits(int n); void skip_bits_fast(int n); void skip_to_byte_boundary(); bool get_uvlc(int* value); bool get_svlc(int* value); int get_current_byte_index() const { return data_length - bytes_remaining - nextbits_cnt / 8; } int64_t get_bits_remaining() const { return bytes_remaining*8 + nextbits_cnt; } private: const uint8_t* data; int data_length; int bytes_remaining; uint64_t nextbits; // left-aligned bits int nextbits_cnt; void refill(); // refill to at least 56+1 bits }; class StreamWriter { public: void write8(uint8_t); void write16(uint16_t); void write32(uint32_t); void write64(uint64_t); void write(int size, uint64_t value); void write(const std::string&); void write(const std::vector&); void write(const StreamWriter&); void skip(int n); void insert(int nBytes); size_t data_size() const { return m_data.size(); } size_t get_position() const { return m_position; } void set_position(size_t pos) { m_position = pos; } void set_position_to_end() { m_position = m_data.size(); } const std::vector get_data() const { return m_data; } private: std::vector m_data; size_t m_position = 0; }; } #endif libheif-1.12.0/libheif/heif_version.h0000664000175000017500000000221014044446305014352 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ /* heif_version.h * * This file was generated by autoconf when libheif was built. * * DO NOT EDIT THIS FILE. */ #ifndef LIBHEIF_HEIF_VERSION_H #define LIBHEIF_HEIF_VERSION_H /* Numeric representation of the version */ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (12<<16) | (0<<8) | 0) /* Version string */ #define LIBHEIF_VERSION "1.12.0" #endif // LIBHEIF_HEIF_VERSION_H libheif-1.12.0/libheif/heif_colorconversion.cc0000664000175000017500000030110514044446243016255 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif_colorconversion.h" #include "nclx.h" #include #include #include #include #include #include #include using namespace heif; #define DEBUG_ME 0 #define DEBUG_PIPELINE_CREATION 0 std::ostream& operator<<(std::ostream& ostr, heif_colorspace c) { switch (c) { case heif_colorspace_RGB: ostr << "RGB"; break; case heif_colorspace_YCbCr: ostr << "YCbCr"; break; case heif_colorspace_monochrome: ostr << "mono"; break; case heif_colorspace_undefined: ostr << "undefined"; break; default: assert(false); } return ostr; } std::ostream& operator<<(std::ostream& ostr, heif_chroma c) { switch (c) { case heif_chroma_420: ostr << "420"; break; case heif_chroma_422: ostr << "422"; break; case heif_chroma_444: ostr << "444"; break; case heif_chroma_monochrome: ostr << "mono"; break; case heif_chroma_interleaved_RGB: ostr << "RGB"; break; case heif_chroma_interleaved_RGBA: ostr << "RGBA"; break; case heif_chroma_interleaved_RRGGBB_BE: ostr << "RRGGBB_BE"; break; case heif_chroma_interleaved_RRGGBB_LE: ostr << "RRGGBBB_LE"; break; case heif_chroma_interleaved_RRGGBBAA_BE: ostr << "RRGGBBAA_BE"; break; case heif_chroma_interleaved_RRGGBBAA_LE: ostr << "RRGGBBBAA_LE"; break; case heif_chroma_undefined: ostr << "undefined"; break; default: assert(false); } return ostr; } #if DEBUG_ME static void __attribute__ ((unused)) print_spec(std::ostream& ostr, const std::shared_ptr& img) { ostr << "colorspace=" << img->get_colorspace() << " chroma=" << img->get_chroma_format(); if (img->get_colorspace() == heif_colorspace_RGB) { if (img->get_chroma_format() == heif_chroma_444) { ostr << " bpp(R)=" << ((int) img->get_bits_per_pixel(heif_channel_R)); } else { ostr << " bpp(interleaved)=" << ((int) img->get_bits_per_pixel(heif_channel_interleaved)); } } else if (img->get_colorspace() == heif_colorspace_YCbCr || img->get_colorspace() == heif_colorspace_monochrome) { ostr << " bpp(Y)=" << ((int) img->get_bits_per_pixel(heif_channel_Y)); } ostr << "\n"; } static void __attribute__ ((unused)) print_state(std::ostream& ostr, const ColorState& state) { ostr << "colorspace=" << state.colorspace << " chroma=" << state.chroma; ostr << " bpp(R)=" << state.bits_per_pixel; ostr << " alpha=" << (state.has_alpha ? "yes" : "no"); ostr << " nclx=" << (state.nclx_profile ? "yes" : "no"); ostr << "\n"; } #endif bool ColorState::operator==(const ColorState& b) const { return (colorspace == b.colorspace && chroma == b.chroma && has_alpha == b.has_alpha && bits_per_pixel == b.bits_per_pixel); } class Op_RGB_to_RGB24_32 : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_RGB_to_RGB24_32::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { if (input_state.colorspace != heif_colorspace_RGB || input_state.chroma != heif_chroma_444 || input_state.bits_per_pixel != 8) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to RGBA (with alpha) output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_interleaved_RGBA; output_state.has_alpha = true; output_state.bits_per_pixel = 8; if (input_state.has_alpha == false && target_state.has_alpha == false) { costs = ColorConversionCosts(0.1f, 0.0f, 0.25f); } else { costs = ColorConversionCosts(0.1f, 0.0f, 0.0f); } states.push_back({output_state, costs}); // --- convert to RGB (without alpha) output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_interleaved_RGB; output_state.has_alpha = false; output_state.bits_per_pixel = 8; if (input_state.has_alpha == true && target_state.has_alpha == true) { // do not use this conversion because we would lose the alpha channel } else { costs = ColorConversionCosts(0.2f, 0.0f, 0.0f); } states.push_back({output_state, costs}); return states; } std::shared_ptr Op_RGB_to_RGB24_32::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { bool has_alpha = input->has_channel(heif_channel_Alpha); bool want_alpha = target_state.has_alpha; if (input->get_bits_per_pixel(heif_channel_R) != 8 || input->get_bits_per_pixel(heif_channel_G) != 8 || input->get_bits_per_pixel(heif_channel_B) != 8) { return nullptr; } if (has_alpha && input->get_bits_per_pixel(heif_channel_Alpha) != 8) { return nullptr; } auto outimg = std::make_shared(); int width = input->get_width(); int height = input->get_height(); outimg->create(width, height, heif_colorspace_RGB, want_alpha ? heif_chroma_interleaved_32bit : heif_chroma_interleaved_24bit); outimg->add_plane(heif_channel_interleaved, width, height, 8); const uint8_t* in_r, * in_g, * in_b, * in_a = nullptr; int in_r_stride = 0, in_g_stride = 0, in_b_stride = 0, in_a_stride = 0; uint8_t* out_p; int out_p_stride = 0; in_r = input->get_plane(heif_channel_R, &in_r_stride); in_g = input->get_plane(heif_channel_G, &in_g_stride); in_b = input->get_plane(heif_channel_B, &in_b_stride); out_p = outimg->get_plane(heif_channel_interleaved, &out_p_stride); if (has_alpha) { in_a = input->get_plane(heif_channel_Alpha, &in_a_stride); } int x, y; for (y = 0; y < height; y++) { if (has_alpha && want_alpha) { for (x = 0; x < width; x++) { out_p[y * out_p_stride + 4 * x + 0] = in_r[x + y * in_r_stride]; out_p[y * out_p_stride + 4 * x + 1] = in_g[x + y * in_g_stride]; out_p[y * out_p_stride + 4 * x + 2] = in_b[x + y * in_b_stride]; out_p[y * out_p_stride + 4 * x + 3] = in_a[x + y * in_a_stride]; } } else if (!want_alpha) { for (x = 0; x < width; x++) { out_p[y * out_p_stride + 3 * x + 0] = in_r[x + y * in_r_stride]; out_p[y * out_p_stride + 3 * x + 1] = in_g[x + y * in_g_stride]; out_p[y * out_p_stride + 3 * x + 2] = in_b[x + y * in_b_stride]; } } else { assert(want_alpha && !has_alpha); for (x = 0; x < width; x++) { out_p[y * out_p_stride + 4 * x + 0] = in_r[x + y * in_r_stride]; out_p[y * out_p_stride + 4 * x + 1] = in_g[x + y * in_g_stride]; out_p[y * out_p_stride + 4 * x + 2] = in_b[x + y * in_b_stride]; out_p[y * out_p_stride + 4 * x + 3] = 0xFF; } } } return outimg; } static inline uint8_t clip_int_u8(int x) { if (x < 0) return 0; if (x > 255) return 255; return static_cast(x); } static inline uint16_t clip_f_u16(float fx, int32_t maxi) { long x = lroundf(fx); if (x < 0) return 0; if (x > maxi) return (uint16_t) maxi; return static_cast(x); } template class Op_YCbCr_to_RGB : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; template std::vector Op_YCbCr_to_RGB::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { bool hdr = !std::is_same::value; if ((input_state.bits_per_pixel != 8) != hdr) { return {}; } if (input_state.colorspace != heif_colorspace_YCbCr) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to RGB output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_444; output_state.has_alpha = input_state.has_alpha; // we simply keep the old alpha plane output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.5f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } template std::shared_ptr Op_YCbCr_to_RGB::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { bool hdr = !std::is_same::value; heif_chroma chroma = input->get_chroma_format(); int bpp_y = input->get_bits_per_pixel(heif_channel_Y); int bpp_cb = input->get_bits_per_pixel(heif_channel_Cb); int bpp_cr = input->get_bits_per_pixel(heif_channel_Cr); int bpp_a = 0; bool has_alpha = input->has_channel(heif_channel_Alpha); if (has_alpha) { bpp_a = input->get_bits_per_pixel(heif_channel_Alpha); } if (!hdr) { if (bpp_y != 8 || bpp_cb != 8 || bpp_cr != 8) { return nullptr; } } else { if (bpp_y == 8 || bpp_cb == 8 || bpp_cr == 8) { return nullptr; } } if (bpp_y != bpp_cb || bpp_y != bpp_cr) { // TODO: test with varying bit depths when we have a test image return nullptr; } auto colorProfile = input->get_color_profile_nclx(); int width = input->get_width(); int height = input->get_height(); auto outimg = std::make_shared(); outimg->create(width, height, heif_colorspace_RGB, heif_chroma_444); outimg->add_plane(heif_channel_R, width, height, bpp_y); outimg->add_plane(heif_channel_G, width, height, bpp_y); outimg->add_plane(heif_channel_B, width, height, bpp_y); if (has_alpha) { outimg->add_plane(heif_channel_Alpha, width, height, bpp_a); } const Pixel* in_y, * in_cb, * in_cr, * in_a; int in_y_stride = 0, in_cb_stride = 0, in_cr_stride = 0, in_a_stride = 0; Pixel* out_r, * out_g, * out_b, * out_a; int out_r_stride = 0, out_g_stride = 0, out_b_stride = 0, out_a_stride = 0; in_y = (const Pixel*) input->get_plane(heif_channel_Y, &in_y_stride); in_cb = (const Pixel*) input->get_plane(heif_channel_Cb, &in_cb_stride); in_cr = (const Pixel*) input->get_plane(heif_channel_Cr, &in_cr_stride); out_r = (Pixel*) outimg->get_plane(heif_channel_R, &out_r_stride); out_g = (Pixel*) outimg->get_plane(heif_channel_G, &out_g_stride); out_b = (Pixel*) outimg->get_plane(heif_channel_B, &out_b_stride); if (has_alpha) { in_a = (const Pixel*) input->get_plane(heif_channel_Alpha, &in_a_stride); out_a = (Pixel*) outimg->get_plane(heif_channel_Alpha, &out_a_stride); } else { in_a = nullptr; out_a = nullptr; } uint16_t halfRange = (uint16_t) (1 << (bpp_y - 1)); int32_t fullRange = (1 << bpp_y) - 1; int shiftH = chroma_h_subsampling(chroma) - 1; int shiftV = chroma_v_subsampling(chroma) - 1; if (hdr) { in_y_stride /= 2; in_cb_stride /= 2; in_cr_stride /= 2; in_a_stride /= 2; out_r_stride /= 2; out_g_stride /= 2; out_b_stride /= 2; out_a_stride /= 2; } int matrix_coeffs = 2; bool full_range_flag = true; YCbCr_to_RGB_coefficients coeffs = YCbCr_to_RGB_coefficients::defaults(); if (colorProfile) { matrix_coeffs = colorProfile->get_matrix_coefficients(); full_range_flag = colorProfile->get_full_range_flag(); coeffs = heif::get_YCbCr_to_RGB_coefficients(colorProfile->get_matrix_coefficients(), colorProfile->get_colour_primaries()); } int x, y; for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { int cx = (x >> shiftH); int cy = (y >> shiftV); if (matrix_coeffs == 0) { if (full_range_flag) { out_r[y * out_r_stride + x] = in_cr[cy * in_cr_stride + cx]; out_g[y * out_g_stride + x] = in_y[y * in_y_stride + x]; out_b[y * out_b_stride + x] = in_cb[cy * in_cb_stride + cx]; } else { out_r[y * out_r_stride + x] = Pixel(((in_cr[cy * in_cr_stride + cx] * 219 + 128) >> 8) + 16); out_g[y * out_g_stride + x] = Pixel(((in_y[y * in_y_stride + x] * 219 + 128) >> 8) + 16); out_b[y * out_b_stride + x] = Pixel(((in_cb[cy * in_cb_stride + cx] * 219 + 128) >> 8) + 16); } } else if (matrix_coeffs == 8) { // TODO: check this. I have no input image yet which is known to be correct. // TODO: is there a coeff=8 with full_range=false ? int yv = in_y[y * in_y_stride + x]; int cb = in_cb[cy * in_cb_stride + cx] - halfRange; int cr = in_cr[cy * in_cr_stride + cx] - halfRange; out_r[y * out_r_stride + x] = (Pixel) (clip_int_u8(yv - cb + cr)); out_g[y * out_g_stride + x] = (Pixel) (clip_int_u8(yv + cb)); out_b[y * out_b_stride + x] = (Pixel) (clip_int_u8(yv - cb - cr)); } else { // TODO: matrix_coefficients = 10,11,13,14 float yv, cb, cr; yv = static_cast(in_y[y * in_y_stride + x] ); cb = static_cast(in_cb[cy * in_cb_stride + cx] - halfRange); cr = static_cast(in_cr[cy * in_cr_stride + cx] - halfRange); if (!full_range_flag) { yv = (yv - 16) * 1.1689f; cb = cb * 1.1429f; cr = cr * 1.1429f; } out_r[y * out_r_stride + x] = (Pixel) (clip_f_u16(yv + coeffs.r_cr * cr, fullRange)); out_g[y * out_g_stride + x] = (Pixel) (clip_f_u16(yv + coeffs.g_cb * cb + coeffs.g_cr * cr, fullRange)); out_b[y * out_b_stride + x] = (Pixel) (clip_f_u16(yv + coeffs.b_cb * cb, fullRange)); } } if (has_alpha) { memcpy(&out_a[y * out_a_stride], &in_a[y * in_a_stride], width * 2); } } return outimg; } template class Op_RGB_to_YCbCr : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; template std::vector Op_RGB_to_YCbCr::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { bool hdr = !std::is_same::value; if ((input_state.bits_per_pixel != 8) != hdr) { return {}; } if (input_state.colorspace != heif_colorspace_RGB || input_state.chroma != heif_chroma_444) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to YCbCr output_state.colorspace = heif_colorspace_YCbCr; output_state.chroma = target_state.chroma; output_state.has_alpha = input_state.has_alpha; // we simply keep the old alpha plane output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.75f, 0.5f, 0.0f}; states.push_back({output_state, costs}); return states; } template std::shared_ptr Op_RGB_to_YCbCr::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { bool hdr = !std::is_same::value; int width = input->get_width(); int height = input->get_height(); heif_chroma chroma = target_state.chroma; int subH = chroma_h_subsampling(chroma); int subV = chroma_v_subsampling(chroma); int bpp = input->get_bits_per_pixel(heif_channel_R); if ((bpp != 8) != hdr) { return nullptr; } bool has_alpha = input->has_channel(heif_channel_Alpha); if (has_alpha && input->get_bits_per_pixel(heif_channel_Alpha) != bpp) { return nullptr; } auto outimg = std::make_shared(); outimg->create(width, height, heif_colorspace_YCbCr, chroma); int cwidth = (width + subH - 1) / subH; int cheight = (height + subV - 1) / subV; outimg->add_plane(heif_channel_Y, width, height, bpp); outimg->add_plane(heif_channel_Cb, cwidth, cheight, bpp); outimg->add_plane(heif_channel_Cr, cwidth, cheight, bpp); if (has_alpha) { outimg->add_plane(heif_channel_Alpha, width, height, bpp); } const Pixel* in_r, * in_g, * in_b, * in_a; int in_r_stride = 0, in_g_stride = 0, in_b_stride = 0, in_a_stride = 0; Pixel* out_y, * out_cb, * out_cr, * out_a; int out_y_stride = 0, out_cb_stride = 0, out_cr_stride = 0, out_a_stride = 0; in_r = (const Pixel*) input->get_plane(heif_channel_R, &in_r_stride); in_g = (const Pixel*) input->get_plane(heif_channel_G, &in_g_stride); in_b = (const Pixel*) input->get_plane(heif_channel_B, &in_b_stride); out_y = (Pixel*) outimg->get_plane(heif_channel_Y, &out_y_stride); out_cb = (Pixel*) outimg->get_plane(heif_channel_Cb, &out_cb_stride); out_cr = (Pixel*) outimg->get_plane(heif_channel_Cr, &out_cr_stride); if (has_alpha) { in_a = (const Pixel*) input->get_plane(heif_channel_Alpha, &in_a_stride); out_a = (Pixel*) outimg->get_plane(heif_channel_Alpha, &out_a_stride); } else { in_a = nullptr; out_a = nullptr; } if (hdr) { in_r_stride /= 2; in_g_stride /= 2; in_b_stride /= 2; in_a_stride /= 2; out_y_stride /= 2; out_cb_stride /= 2; out_cr_stride /= 2; out_a_stride /= 2; } uint16_t halfRange = (uint16_t) (1 << (bpp - 1)); int32_t fullRange = (1 << bpp) - 1; int matrix_coeffs = 2; RGB_to_YCbCr_coefficients coeffs = RGB_to_YCbCr_coefficients::defaults(); bool full_range_flag = true; if (target_state.nclx_profile) { full_range_flag = target_state.nclx_profile->get_full_range_flag(); matrix_coeffs = target_state.nclx_profile->get_matrix_coefficients(); coeffs = heif::get_RGB_to_YCbCr_coefficients(target_state.nclx_profile->get_matrix_coefficients(), target_state.nclx_profile->get_colour_primaries()); } int x, y; for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { if (matrix_coeffs == 0) { if (full_range_flag) { out_y[y * out_y_stride + x] = in_g[y * in_g_stride + x]; } else { float v = (((in_g[y * in_g_stride + x] * 219.0f) / 256) + 16); out_y[y * out_y_stride + x] = (Pixel) clip_f_u16(v, fullRange); } } else { float r = in_r[y * in_r_stride + x]; float g = in_g[y * in_g_stride + x]; float b = in_b[y * in_b_stride + x]; float v = r * coeffs.c[0][0] + g * coeffs.c[0][1] + b * coeffs.c[0][2]; if (!full_range_flag) { v = (((v * 219) / 256) + 16); } Pixel pix = (Pixel) clip_f_u16(v, fullRange); out_y[y * out_y_stride + x] = pix; } } } for (y = 0; y < height; y += subV) { for (x = 0; x < width; x += subH) { if (matrix_coeffs == 0) { if (full_range_flag) { out_cb[(y / subV) * out_cb_stride + (x / subH)] = in_b[y * in_b_stride + x]; out_cr[(y / subV) * out_cb_stride + (x / subH)] = in_r[y * in_b_stride + x]; } else { out_cb[(y / subV) * out_cb_stride + (x / subH)] = (Pixel) clip_f_u16( ((in_b[y * in_b_stride + x] * 219.0f) / 256) + 16, fullRange); out_cr[(y / subV) * out_cb_stride + (x / subH)] = (Pixel) clip_f_u16( ((in_r[y * in_b_stride + x] * 219.0f) / 256) + 16, fullRange); } } else { float r = in_r[y * in_r_stride + x]; float g = in_g[y * in_g_stride + x]; float b = in_b[y * in_b_stride + x]; float cb, cr; cb = r * coeffs.c[1][0] + g * coeffs.c[1][1] + b * coeffs.c[1][2]; cr = r * coeffs.c[2][0] + g * coeffs.c[2][1] + b * coeffs.c[2][2]; if (!full_range_flag) { cb = (cb * 224) / 256; cr = (cr * 224) / 256; } out_cb[(y / subV) * out_cb_stride + (x / subH)] = (Pixel) clip_f_u16(cb + halfRange, fullRange); out_cr[(y / subV) * out_cr_stride + (x / subH)] = (Pixel) clip_f_u16(cr + halfRange, fullRange); } } } if (has_alpha) { int copyWidth = (hdr ? width * 2 : width); for (y = 0; y < height; y++) { memcpy(&out_a[y * out_a_stride], &in_a[y * in_a_stride], copyWidth); } } return outimg; } class Op_YCbCr420_to_RGB24 : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_YCbCr420_to_RGB24::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { if (input_state.colorspace != heif_colorspace_YCbCr || input_state.chroma != heif_chroma_420 || input_state.bits_per_pixel != 8 || input_state.has_alpha == true) { return {}; } if (input_state.nclx_profile) { int matrix = input_state.nclx_profile->get_matrix_coefficients(); if (matrix == 0 || matrix == 8 || matrix == 11 || matrix == 14) { return {}; } if (!input_state.nclx_profile->get_full_range_flag()) { return {}; } } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to RGB output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_interleaved_RGB; output_state.has_alpha = false; output_state.bits_per_pixel = 8; costs = {0.5f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_YCbCr420_to_RGB24::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { if (input->get_bits_per_pixel(heif_channel_Y) != 8 || input->get_bits_per_pixel(heif_channel_Cb) != 8 || input->get_bits_per_pixel(heif_channel_Cr) != 8) { return nullptr; } auto outimg = std::make_shared(); int width = input->get_width(); int height = input->get_height(); outimg->create(width, height, heif_colorspace_RGB, heif_chroma_interleaved_24bit); outimg->add_plane(heif_channel_interleaved, width, height, 8); auto colorProfile = input->get_color_profile_nclx(); YCbCr_to_RGB_coefficients coeffs = YCbCr_to_RGB_coefficients::defaults(); if (colorProfile) { coeffs = heif::get_YCbCr_to_RGB_coefficients(colorProfile->get_matrix_coefficients(), colorProfile->get_colour_primaries()); } int r_cr = static_cast(lround(256 * coeffs.r_cr)); int g_cr = static_cast(lround(256 * coeffs.g_cr)); int g_cb = static_cast(lround(256 * coeffs.g_cb)); int b_cb = static_cast(lround(256 * coeffs.b_cb)); const uint8_t* in_y, * in_cb, * in_cr; int in_y_stride = 0, in_cb_stride = 0, in_cr_stride = 0; uint8_t* out_p; int out_p_stride = 0; in_y = input->get_plane(heif_channel_Y, &in_y_stride); in_cb = input->get_plane(heif_channel_Cb, &in_cb_stride); in_cr = input->get_plane(heif_channel_Cr, &in_cr_stride); out_p = outimg->get_plane(heif_channel_interleaved, &out_p_stride); int x, y; for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { int yv = (in_y[y * in_y_stride + x]); int cb = (in_cb[y / 2 * in_cb_stride + x / 2] - 128); int cr = (in_cr[y / 2 * in_cr_stride + x / 2] - 128); out_p[y * out_p_stride + 3 * x + 0] = clip_int_u8(yv + ((r_cr * cr + 128) >> 8)); out_p[y * out_p_stride + 3 * x + 1] = clip_int_u8(yv + ((g_cb * cb + g_cr * cr + 128) >> 8)); out_p[y * out_p_stride + 3 * x + 2] = clip_int_u8(yv + ((b_cb * cb + 128) >> 8)); } } return outimg; } class Op_YCbCr420_to_RGB32 : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_YCbCr420_to_RGB32::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { // Note: no input alpha channel required. It will be filled up with 0xFF. if (input_state.colorspace != heif_colorspace_YCbCr || input_state.chroma != heif_chroma_420 || input_state.bits_per_pixel != 8) { return {}; } if (input_state.nclx_profile) { int matrix = input_state.nclx_profile->get_matrix_coefficients(); if (matrix == 0 || matrix == 8 || matrix == 11 || matrix == 14) { return {}; } if (!input_state.nclx_profile->get_full_range_flag()) { return {}; } } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to RGB output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_interleaved_RGBA; output_state.has_alpha = true; output_state.bits_per_pixel = 8; costs = {0.5f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_YCbCr420_to_RGB32::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { if (input->get_bits_per_pixel(heif_channel_Y) != 8 || input->get_bits_per_pixel(heif_channel_Cb) != 8 || input->get_bits_per_pixel(heif_channel_Cr) != 8) { return nullptr; } auto outimg = std::make_shared(); int width = input->get_width(); int height = input->get_height(); outimg->create(width, height, heif_colorspace_RGB, heif_chroma_interleaved_32bit); outimg->add_plane(heif_channel_interleaved, width, height, 8); // --- get conversion coefficients auto colorProfile = input->get_color_profile_nclx(); YCbCr_to_RGB_coefficients coeffs = YCbCr_to_RGB_coefficients::defaults(); if (colorProfile) { coeffs = heif::get_YCbCr_to_RGB_coefficients(colorProfile->get_matrix_coefficients(), colorProfile->get_colour_primaries()); } int r_cr = static_cast(lround(256 * coeffs.r_cr)); int g_cr = static_cast(lround(256 * coeffs.g_cr)); int g_cb = static_cast(lround(256 * coeffs.g_cb)); int b_cb = static_cast(lround(256 * coeffs.b_cb)); const bool with_alpha = input->has_channel(heif_channel_Alpha); const uint8_t* in_y, * in_cb, * in_cr, * in_a = nullptr; int in_y_stride = 0, in_cb_stride = 0, in_cr_stride = 0, in_a_stride = 0; uint8_t* out_p; int out_p_stride = 0; in_y = input->get_plane(heif_channel_Y, &in_y_stride); in_cb = input->get_plane(heif_channel_Cb, &in_cb_stride); in_cr = input->get_plane(heif_channel_Cr, &in_cr_stride); if (with_alpha) { in_a = input->get_plane(heif_channel_Alpha, &in_a_stride); } out_p = outimg->get_plane(heif_channel_interleaved, &out_p_stride); int x, y; for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { int yv = (in_y[y * in_y_stride + x]); int cb = (in_cb[y / 2 * in_cb_stride + x / 2] - 128); int cr = (in_cr[y / 2 * in_cr_stride + x / 2] - 128); out_p[y * out_p_stride + 4 * x + 0] = clip_int_u8(yv + ((r_cr * cr + 128) >> 8)); out_p[y * out_p_stride + 4 * x + 1] = clip_int_u8(yv + ((g_cb * cb + g_cr * cr + 128) >> 8)); out_p[y * out_p_stride + 4 * x + 2] = clip_int_u8(yv + ((b_cb * cb + 128) >> 8)); if (with_alpha) { out_p[y * out_p_stride + 4 * x + 3] = in_a[y * in_a_stride + x]; } else { out_p[y * out_p_stride + 4 * x + 3] = 0xFF; } } } return outimg; } class Op_RGB_HDR_to_RRGGBBaa_BE : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_RGB_HDR_to_RRGGBBaa_BE::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { // Note: no input alpha channel required. It will be filled up with 0xFF. if (input_state.colorspace != heif_colorspace_RGB || input_state.chroma != heif_chroma_444 || input_state.bits_per_pixel == 8) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to RRGGBB_BE if (input_state.has_alpha == false) { output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_interleaved_RRGGBB_BE; output_state.has_alpha = false; output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.5f, 0.0f, 0.0f}; states.push_back({output_state, costs}); } // --- convert to RRGGBBAA_BE output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_interleaved_RRGGBBAA_BE; output_state.has_alpha = true; output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.5f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_RGB_HDR_to_RRGGBBaa_BE::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { if (input->get_bits_per_pixel(heif_channel_R) == 8 || input->get_bits_per_pixel(heif_channel_G) == 8 || input->get_bits_per_pixel(heif_channel_B) == 8) { return nullptr; } //int bpp = input->get_bits_per_pixel(heif_channel_R); bool input_has_alpha = input->has_channel(heif_channel_Alpha); bool output_has_alpha = input_has_alpha || target_state.has_alpha; if (input_has_alpha) { if (input->get_bits_per_pixel(heif_channel_Alpha) == 8) { return nullptr; } if (input->get_width(heif_channel_Alpha) != input->get_width(heif_channel_G) || input->get_height(heif_channel_Alpha) != input->get_height(heif_channel_G)) { return nullptr; } } auto outimg = std::make_shared(); int width = input->get_width(); int height = input->get_height(); outimg->create(width, height, heif_colorspace_RGB, output_has_alpha ? heif_chroma_interleaved_RRGGBBAA_BE : heif_chroma_interleaved_RRGGBB_BE); outimg->add_plane(heif_channel_interleaved, width, height, input->get_bits_per_pixel(heif_channel_R)); const uint16_t* in_r, * in_g, * in_b, * in_a = nullptr; int in_r_stride = 0, in_g_stride = 0, in_b_stride = 0, in_a_stride = 0; uint8_t* out_p; int out_p_stride = 0; in_r = (uint16_t*) input->get_plane(heif_channel_R, &in_r_stride); in_g = (uint16_t*) input->get_plane(heif_channel_G, &in_g_stride); in_b = (uint16_t*) input->get_plane(heif_channel_B, &in_b_stride); out_p = outimg->get_plane(heif_channel_interleaved, &out_p_stride); if (input_has_alpha) { in_a = (uint16_t*) input->get_plane(heif_channel_Alpha, &in_a_stride); } in_r_stride /= 2; in_g_stride /= 2; in_b_stride /= 2; in_a_stride /= 2; const int pixelsize = (output_has_alpha ? 8 : 6); int x, y; for (y = 0; y < height; y++) { if (input_has_alpha) { for (x = 0; x < width; x++) { uint16_t r = in_r[x + y * in_r_stride]; uint16_t g = in_g[x + y * in_g_stride]; uint16_t b = in_b[x + y * in_b_stride]; uint16_t a = in_a[x + y * in_a_stride]; out_p[y * out_p_stride + 8 * x + 0] = (uint8_t) (r >> 8); out_p[y * out_p_stride + 8 * x + 1] = (uint8_t) (r & 0xFF); out_p[y * out_p_stride + 8 * x + 2] = (uint8_t) (g >> 8); out_p[y * out_p_stride + 8 * x + 3] = (uint8_t) (g & 0xFF); out_p[y * out_p_stride + 8 * x + 4] = (uint8_t) (b >> 8); out_p[y * out_p_stride + 8 * x + 5] = (uint8_t) (b & 0xFF); out_p[y * out_p_stride + 8 * x + 6] = (uint8_t) (a >> 8); out_p[y * out_p_stride + 8 * x + 7] = (uint8_t) (a & 0xFF); } } else { for (x = 0; x < width; x++) { uint16_t r = in_r[x + y * in_r_stride]; uint16_t g = in_g[x + y * in_g_stride]; uint16_t b = in_b[x + y * in_b_stride]; out_p[y * out_p_stride + pixelsize * x + 0] = (uint8_t) (r >> 8); out_p[y * out_p_stride + pixelsize * x + 1] = (uint8_t) (r & 0xFF); out_p[y * out_p_stride + pixelsize * x + 2] = (uint8_t) (g >> 8); out_p[y * out_p_stride + pixelsize * x + 3] = (uint8_t) (g & 0xFF); out_p[y * out_p_stride + pixelsize * x + 4] = (uint8_t) (b >> 8); out_p[y * out_p_stride + pixelsize * x + 5] = (uint8_t) (b & 0xFF); if (output_has_alpha) { out_p[y * out_p_stride + pixelsize * x + 6] = 0xFF; out_p[y * out_p_stride + pixelsize * x + 7] = 0xFF; } } } } return outimg; } class Op_RGB_to_RRGGBBaa_BE : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_RGB_to_RRGGBBaa_BE::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { // Note: no input alpha channel required. It will be filled up with 0xFF. if (input_state.colorspace != heif_colorspace_RGB || input_state.chroma != heif_chroma_444 || input_state.bits_per_pixel != 8) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to RRGGBB_BE if (input_state.has_alpha == false) { output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_interleaved_RRGGBB_BE; output_state.has_alpha = false; output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.5f, 0.0f, 0.0f}; states.push_back({output_state, costs}); } // --- convert to RRGGBBAA_BE output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_interleaved_RRGGBBAA_BE; output_state.has_alpha = true; output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.5f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_RGB_to_RRGGBBaa_BE::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { if (input->get_bits_per_pixel(heif_channel_R) != 8 || input->get_bits_per_pixel(heif_channel_G) != 8 || input->get_bits_per_pixel(heif_channel_B) != 8) { return nullptr; } //int bpp = input->get_bits_per_pixel(heif_channel_R); bool input_has_alpha = input->has_channel(heif_channel_Alpha); bool output_has_alpha = input_has_alpha || target_state.has_alpha; if (input_has_alpha && input->get_bits_per_pixel(heif_channel_Alpha) != 8) { return nullptr; } auto outimg = std::make_shared(); int width = input->get_width(); int height = input->get_height(); outimg->create(width, height, heif_colorspace_RGB, output_has_alpha ? heif_chroma_interleaved_RRGGBBAA_BE : heif_chroma_interleaved_RRGGBB_BE); outimg->add_plane(heif_channel_interleaved, width, height, input->get_bits_per_pixel(heif_channel_R)); const uint8_t* in_r, * in_g, * in_b, * in_a = nullptr; int in_r_stride = 0, in_g_stride = 0, in_b_stride = 0, in_a_stride = 0; uint8_t* out_p; int out_p_stride = 0; in_r = input->get_plane(heif_channel_R, &in_r_stride); in_g = input->get_plane(heif_channel_G, &in_g_stride); in_b = input->get_plane(heif_channel_B, &in_b_stride); out_p = outimg->get_plane(heif_channel_interleaved, &out_p_stride); if (input_has_alpha) { in_a = input->get_plane(heif_channel_Alpha, &in_a_stride); } const int pixelsize = (output_has_alpha ? 8 : 6); int x, y; for (y = 0; y < height; y++) { if (input_has_alpha) { for (x = 0; x < width; x++) { out_p[y * out_p_stride + 8 * x + 0] = 0; out_p[y * out_p_stride + 8 * x + 1] = in_r[x + y * in_r_stride]; out_p[y * out_p_stride + 8 * x + 2] = 0; out_p[y * out_p_stride + 8 * x + 3] = in_g[x + y * in_g_stride]; out_p[y * out_p_stride + 8 * x + 4] = 0; out_p[y * out_p_stride + 8 * x + 5] = in_b[x + y * in_b_stride]; out_p[y * out_p_stride + 8 * x + 6] = 0; out_p[y * out_p_stride + 8 * x + 7] = in_a[x + y * in_a_stride]; } } else { for (x = 0; x < width; x++) { out_p[y * out_p_stride + pixelsize * x + 0] = 0; out_p[y * out_p_stride + pixelsize * x + 1] = in_r[x + y * in_r_stride]; out_p[y * out_p_stride + pixelsize * x + 2] = 0; out_p[y * out_p_stride + pixelsize * x + 3] = in_g[x + y * in_g_stride]; out_p[y * out_p_stride + pixelsize * x + 4] = 0; out_p[y * out_p_stride + pixelsize * x + 5] = in_b[x + y * in_b_stride]; if (output_has_alpha) { out_p[y * out_p_stride + pixelsize * x + 6] = 0; out_p[y * out_p_stride + pixelsize * x + 7] = 0xFF; } } } } return outimg; } class Op_RRGGBBaa_BE_to_RGB_HDR : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_RRGGBBaa_BE_to_RGB_HDR::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { // Note: no input alpha channel required. It will be filled up with 0xFF. if (input_state.colorspace != heif_colorspace_RGB || (input_state.chroma != heif_chroma_interleaved_RRGGBB_BE && input_state.chroma != heif_chroma_interleaved_RRGGBBAA_BE) || input_state.bits_per_pixel == 8) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to RRGGBB_BE output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_444; output_state.has_alpha = (input_state.chroma == heif_chroma_interleaved_RRGGBBAA_LE || input_state.chroma == heif_chroma_interleaved_RRGGBBAA_BE); output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.2f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_RRGGBBaa_BE_to_RGB_HDR::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { bool has_alpha = (input->get_chroma_format() == heif_chroma_interleaved_RRGGBBAA_LE || input->get_chroma_format() == heif_chroma_interleaved_RRGGBBAA_BE); auto outimg = std::make_shared(); int width = input->get_width(); int height = input->get_height(); outimg->create(width, height, heif_colorspace_RGB, heif_chroma_444); outimg->add_plane(heif_channel_R, width, height, input->get_bits_per_pixel(heif_channel_interleaved)); outimg->add_plane(heif_channel_G, width, height, input->get_bits_per_pixel(heif_channel_interleaved)); outimg->add_plane(heif_channel_B, width, height, input->get_bits_per_pixel(heif_channel_interleaved)); if (has_alpha) { outimg->add_plane(heif_channel_Alpha, width, height, input->get_bits_per_pixel(heif_channel_interleaved)); } const uint8_t* in_p; int in_p_stride = 0; int in_pix_size = has_alpha ? 8 : 6; uint16_t* out_r, * out_g, * out_b, * out_a = nullptr; int out_r_stride = 0, out_g_stride = 0, out_b_stride = 0, out_a_stride = 0; in_p = input->get_plane(heif_channel_interleaved, &in_p_stride); out_r = (uint16_t*) outimg->get_plane(heif_channel_R, &out_r_stride); out_g = (uint16_t*) outimg->get_plane(heif_channel_G, &out_g_stride); out_b = (uint16_t*) outimg->get_plane(heif_channel_B, &out_b_stride); if (has_alpha) { out_a = (uint16_t*) outimg->get_plane(heif_channel_Alpha, &out_a_stride); } out_r_stride /= 2; out_g_stride /= 2; out_b_stride /= 2; out_a_stride /= 2; int x, y; for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { uint16_t r = (uint16_t) ((in_p[y * in_p_stride + in_pix_size * x + 0] << 8) | in_p[y * in_p_stride + in_pix_size * x + 1]); uint16_t g = (uint16_t) ((in_p[y * in_p_stride + in_pix_size * x + 2] << 8) | in_p[y * in_p_stride + in_pix_size * x + 3]); uint16_t b = (uint16_t) ((in_p[y * in_p_stride + in_pix_size * x + 4] << 8) | in_p[y * in_p_stride + in_pix_size * x + 5]); out_r[x + y * out_r_stride] = r; out_g[x + y * out_g_stride] = g; out_b[x + y * out_b_stride] = b; if (has_alpha) { // in_pix_size is always 8 when we have alpha channel uint16_t a = (uint16_t) ((in_p[y * in_p_stride + 8 * x + 6] << 8) | in_p[y * in_p_stride + 8 * x + 7]); out_a[x + y * out_a_stride] = a; } } } return outimg; } class Op_RRGGBBaa_swap_endianness : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_RRGGBBaa_swap_endianness::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { // Note: no input alpha channel required. It will be filled up with 0xFF. if (input_state.colorspace != heif_colorspace_RGB || (input_state.chroma != heif_chroma_interleaved_RRGGBB_LE && input_state.chroma != heif_chroma_interleaved_RRGGBB_BE && input_state.chroma != heif_chroma_interleaved_RRGGBBAA_LE && input_state.chroma != heif_chroma_interleaved_RRGGBBAA_BE)) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- swap RRGGBB if (input_state.chroma == heif_chroma_interleaved_RRGGBB_LE || input_state.chroma == heif_chroma_interleaved_RRGGBB_BE) { output_state.colorspace = heif_colorspace_RGB; if (input_state.chroma == heif_chroma_interleaved_RRGGBB_LE) { output_state.chroma = heif_chroma_interleaved_RRGGBB_BE; } else { output_state.chroma = heif_chroma_interleaved_RRGGBB_LE; } output_state.has_alpha = false; output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.1f, 0.0f, 0.0f}; states.push_back({output_state, costs}); } // --- swap RRGGBBAA if (input_state.chroma == heif_chroma_interleaved_RRGGBBAA_LE || input_state.chroma == heif_chroma_interleaved_RRGGBBAA_BE) { output_state.colorspace = heif_colorspace_RGB; if (input_state.chroma == heif_chroma_interleaved_RRGGBBAA_LE) { output_state.chroma = heif_chroma_interleaved_RRGGBBAA_BE; } else { output_state.chroma = heif_chroma_interleaved_RRGGBBAA_LE; } output_state.has_alpha = true; output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.1f, 0.0f, 0.0f}; states.push_back({output_state, costs}); } return states; } std::shared_ptr Op_RRGGBBaa_swap_endianness::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { auto outimg = std::make_shared(); int width = input->get_width(); int height = input->get_height(); switch (input->get_chroma_format()) { case heif_chroma_interleaved_RRGGBB_LE: outimg->create(width, height, heif_colorspace_RGB, heif_chroma_interleaved_RRGGBB_BE); break; case heif_chroma_interleaved_RRGGBB_BE: outimg->create(width, height, heif_colorspace_RGB, heif_chroma_interleaved_RRGGBB_LE); break; case heif_chroma_interleaved_RRGGBBAA_LE: outimg->create(width, height, heif_colorspace_RGB, heif_chroma_interleaved_RRGGBBAA_BE); break; case heif_chroma_interleaved_RRGGBBAA_BE: outimg->create(width, height, heif_colorspace_RGB, heif_chroma_interleaved_RRGGBBAA_LE); break; default: return nullptr; } outimg->add_plane(heif_channel_interleaved, width, height, input->get_bits_per_pixel(heif_channel_interleaved)); const uint8_t* in_p = nullptr; int in_p_stride = 0; uint8_t* out_p; int out_p_stride = 0; in_p = input->get_plane(heif_channel_interleaved, &in_p_stride); out_p = outimg->get_plane(heif_channel_interleaved, &out_p_stride); int n_bytes = std::min(in_p_stride, out_p_stride); int x, y; for (y = 0; y < height; y++) { for (x = 0; x < n_bytes; x += 2) { out_p[y * out_p_stride + x + 0] = in_p[y * in_p_stride + x + 1]; out_p[y * out_p_stride + x + 1] = in_p[y * in_p_stride + x + 0]; } } return outimg; } class Op_mono_to_YCbCr420 : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_mono_to_YCbCr420::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { // Note: no input alpha channel required. It will be filled up with 0xFF. if (input_state.colorspace != heif_colorspace_monochrome || input_state.chroma != heif_chroma_monochrome) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to YCbCr420 output_state.colorspace = heif_colorspace_YCbCr; output_state.chroma = heif_chroma_420; output_state.has_alpha = input_state.has_alpha; output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.1f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_mono_to_YCbCr420::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { auto outimg = std::make_shared(); int width = input->get_width(); int height = input->get_height(); outimg->create(width, height, heif_colorspace_YCbCr, heif_chroma_420); int input_bpp = input->get_bits_per_pixel(heif_channel_Y); int chroma_width = (width + 1) / 2; int chroma_height = (height + 1) / 2; outimg->add_plane(heif_channel_Y, width, height, input_bpp); outimg->add_plane(heif_channel_Cb, chroma_width, chroma_height, input_bpp); outimg->add_plane(heif_channel_Cr, chroma_width, chroma_height, input_bpp); int alpha_bpp = 0; bool has_alpha = input->has_channel(heif_channel_Alpha); if (has_alpha) { alpha_bpp = input->get_bits_per_pixel(heif_channel_Alpha); outimg->add_plane(heif_channel_Alpha, width, height, alpha_bpp); } if (input_bpp == 8) { uint8_t* out_cb, * out_cr, * out_y; int out_cb_stride = 0, out_cr_stride = 0, out_y_stride = 0; const uint8_t* in_y; int in_y_stride = 0; in_y = input->get_plane(heif_channel_Y, &in_y_stride); out_y = outimg->get_plane(heif_channel_Y, &out_y_stride); out_cb = outimg->get_plane(heif_channel_Cb, &out_cb_stride); out_cr = outimg->get_plane(heif_channel_Cr, &out_cr_stride); memset(out_cb, 128, out_cb_stride * chroma_height); memset(out_cr, 128, out_cr_stride * chroma_height); for (int y = 0; y < height; y++) { memcpy(out_y + y * out_y_stride, in_y + y * in_y_stride, width); } } else { uint16_t* out_cb, * out_cr, * out_y; int out_cb_stride = 0, out_cr_stride = 0, out_y_stride = 0; const uint16_t* in_y; int in_y_stride = 0; in_y = (const uint16_t*) input->get_plane(heif_channel_Y, &in_y_stride); out_y = (uint16_t*) outimg->get_plane(heif_channel_Y, &out_y_stride); out_cb = (uint16_t*) outimg->get_plane(heif_channel_Cb, &out_cb_stride); out_cr = (uint16_t*) outimg->get_plane(heif_channel_Cr, &out_cr_stride); in_y_stride /= 2; out_y_stride /= 2; out_cb_stride /= 2; out_cr_stride /= 2; for (int y = 0; y < chroma_height; y++) for (int x = 0; x < chroma_width; x++) { out_cb[x + y * out_cb_stride] = (uint16_t) (128 << (input_bpp - 8)); out_cr[x + y * out_cr_stride] = (uint16_t) (128 << (input_bpp - 8)); } for (int y = 0; y < height; y++) { memcpy(out_y + y * out_y_stride, in_y + y * in_y_stride, width * 2); } } if (has_alpha) { const uint8_t* in_a; uint8_t* out_a; int in_a_stride = 0; int out_a_stride = 0; in_a = input->get_plane(heif_channel_Alpha, &in_a_stride); out_a = outimg->get_plane(heif_channel_Alpha, &out_a_stride); int memory_width = (alpha_bpp > 8 ? width * 2 : width); for (int y = 0; y < height; y++) { memcpy(&out_a[y * out_a_stride], &in_a[y * in_a_stride], memory_width); } } return outimg; } class Op_mono_to_RGB24_32 : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_mono_to_RGB24_32::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { // Note: no input alpha channel required. It will be filled up with 0xFF. if ((input_state.colorspace != heif_colorspace_monochrome && input_state.colorspace != heif_colorspace_YCbCr) || input_state.chroma != heif_chroma_monochrome || input_state.bits_per_pixel != 8) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to RGB24 if (input_state.has_alpha == false) { output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_interleaved_RGB; output_state.has_alpha = false; output_state.bits_per_pixel = 8; costs = {0.1f, 0.0f, 0.0f}; states.push_back({output_state, costs}); } // --- convert to RGB32 output_state.colorspace = heif_colorspace_RGB; output_state.chroma = heif_chroma_interleaved_RGBA; output_state.has_alpha = true; output_state.bits_per_pixel = 8; costs = {0.15f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_mono_to_RGB24_32::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { int width = input->get_width(); int height = input->get_height(); if (input->get_bits_per_pixel(heif_channel_Y) != 8) { return nullptr; } auto outimg = std::make_shared(); bool has_alpha = input->has_channel(heif_channel_Alpha); if (target_state.has_alpha) { outimg->create(width, height, heif_colorspace_RGB, heif_chroma_interleaved_32bit); } else { outimg->create(width, height, heif_colorspace_RGB, heif_chroma_interleaved_24bit); } outimg->add_plane(heif_channel_interleaved, width, height, 8); const uint8_t* in_y, * in_a; int in_y_stride = 0, in_a_stride; uint8_t* out_p; int out_p_stride = 0; in_y = input->get_plane(heif_channel_Y, &in_y_stride); if (has_alpha) { in_a = input->get_plane(heif_channel_Alpha, &in_a_stride); } out_p = outimg->get_plane(heif_channel_interleaved, &out_p_stride); int x, y; for (y = 0; y < height; y++) { if (target_state.has_alpha == false) { for (x = 0; x < width; x++) { uint8_t v = in_y[x + y * in_y_stride]; out_p[y * out_p_stride + 3 * x + 0] = v; out_p[y * out_p_stride + 3 * x + 1] = v; out_p[y * out_p_stride + 3 * x + 2] = v; } } else if (has_alpha) { for (x = 0; x < width; x++) { uint8_t v = in_y[x + y * in_y_stride]; out_p[y * out_p_stride + 4 * x + 0] = v; out_p[y * out_p_stride + 4 * x + 1] = v; out_p[y * out_p_stride + 4 * x + 2] = v; out_p[y * out_p_stride + 4 * x + 3] = in_a[x + y * in_a_stride]; } } else { for (x = 0; x < width; x++) { uint8_t v = in_y[x + y * in_y_stride]; out_p[y * out_p_stride + 4 * x + 0] = v; out_p[y * out_p_stride + 4 * x + 1] = v; out_p[y * out_p_stride + 4 * x + 2] = v; out_p[y * out_p_stride + 4 * x + 3] = 0xFF; } } } return outimg; } class Op_RGB24_32_to_YCbCr : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_RGB24_32_to_YCbCr::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { // Note: no input alpha channel required. It will be filled up with 0xFF. if (input_state.colorspace != heif_colorspace_RGB || (input_state.chroma != heif_chroma_interleaved_RGB && input_state.chroma != heif_chroma_interleaved_RGBA)) { return {}; } if (target_state.chroma != heif_chroma_420 && target_state.chroma != heif_chroma_422 && target_state.chroma != heif_chroma_444) { return {}; } if (target_state.nclx_profile) { if (target_state.nclx_profile->get_matrix_coefficients() == 0) { return {}; } } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert RGB24 if (input_state.chroma == heif_chroma_interleaved_RGB) { output_state.colorspace = heif_colorspace_YCbCr; output_state.chroma = target_state.chroma; output_state.has_alpha = false; output_state.bits_per_pixel = 8; costs = {0.75f, 0.5f, 0.0f}; // quality not good since we subsample chroma without filtering states.push_back({output_state, costs}); } // --- convert RGB32 if (input_state.chroma == heif_chroma_interleaved_RGBA) { output_state.colorspace = heif_colorspace_YCbCr; output_state.chroma = target_state.chroma; output_state.has_alpha = true; output_state.bits_per_pixel = 8; costs = {0.75f, 0.5f, 0.0f}; // quality not good since we subsample chroma without filtering states.push_back({output_state, costs}); } return states; } static inline uint8_t clip_f_u8(float fx) { long x = lroundf(fx); if (x < 0) return 0; if (x > 255) return 255; return static_cast(x); } std::shared_ptr Op_RGB24_32_to_YCbCr::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { int width = input->get_width(); int height = input->get_height(); auto outimg = std::make_shared(); auto chroma = target_state.chroma; uint8_t chromaSubH = chroma_h_subsampling(chroma); uint8_t chromaSubV = chroma_v_subsampling(chroma); outimg->create(width, height, heif_colorspace_YCbCr, chroma); int chroma_width = (width + chromaSubH - 1) / chromaSubH; int chroma_height = (height + chromaSubV - 1) / chromaSubV; const bool has_alpha = (input->get_chroma_format() == heif_chroma_interleaved_32bit); outimg->add_plane(heif_channel_Y, width, height, 8); outimg->add_plane(heif_channel_Cb, chroma_width, chroma_height, 8); outimg->add_plane(heif_channel_Cr, chroma_width, chroma_height, 8); if (has_alpha) { outimg->add_plane(heif_channel_Alpha, width, height, 8); } uint8_t* out_cb, * out_cr, * out_y, * out_a; int out_cb_stride = 0, out_cr_stride = 0, out_y_stride = 0, out_a_stride = 0; const uint8_t* in_p; int in_stride = 0; in_p = input->get_plane(heif_channel_interleaved, &in_stride); out_y = outimg->get_plane(heif_channel_Y, &out_y_stride); out_cb = outimg->get_plane(heif_channel_Cb, &out_cb_stride); out_cr = outimg->get_plane(heif_channel_Cr, &out_cr_stride); if (has_alpha) { out_a = outimg->get_plane(heif_channel_Alpha, &out_a_stride); } else { out_a = nullptr; } RGB_to_YCbCr_coefficients coeffs = RGB_to_YCbCr_coefficients::defaults(); bool full_range_flag = true; if (target_state.nclx_profile) { full_range_flag = target_state.nclx_profile->get_full_range_flag(); coeffs = heif::get_RGB_to_YCbCr_coefficients(target_state.nclx_profile->get_matrix_coefficients(), target_state.nclx_profile->get_colour_primaries()); } int bytes_per_pixel = (has_alpha ? 4 : 3); for (int y = 0; y < height; y++) { const uint8_t* p = &in_p[y * in_stride]; for (int x = 0; x < width; x++) { uint8_t r = p[0]; uint8_t g = p[1]; uint8_t b = p[2]; p += bytes_per_pixel; float yv = r * coeffs.c[0][0] + g * coeffs.c[0][1] + b * coeffs.c[0][2]; if (full_range_flag) { out_y[y * out_y_stride + x] = clip_f_u8(yv); } else { out_y[y * out_y_stride + x] = (uint8_t) (clip_f_u16(yv * 0.85547f, 219) + 16); } } } for (int y = 0; y < height; y += chromaSubV) { const uint8_t* p = &in_p[y * in_stride]; for (int x = 0; x < width; x += chromaSubH) { uint8_t r = p[0]; uint8_t g = p[1]; uint8_t b = p[2]; p += bytes_per_pixel * chromaSubH; float cb = r * coeffs.c[1][0] + g * coeffs.c[1][1] + b * coeffs.c[1][2]; float cr = r * coeffs.c[2][0] + g * coeffs.c[2][1] + b * coeffs.c[2][2]; if (full_range_flag) { out_cb[(y / chromaSubV) * out_cb_stride + (x / chromaSubH)] = clip_f_u8(cb + 128); out_cr[(y / chromaSubV) * out_cr_stride + (x / chromaSubH)] = clip_f_u8(cr + 128); } else { out_cb[(y / chromaSubV) * out_cb_stride + (x / chromaSubH)] = (uint8_t) clip_f_u8(cb * 0.875f + 128.0f); out_cr[(y / chromaSubV) * out_cr_stride + (x / chromaSubH)] = (uint8_t) clip_f_u8(cr * 0.875f + 128.0f); } } } if (has_alpha) { for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { uint8_t a = in_p[y * in_stride + x * 4 + 3]; // alpha out_a[y * out_a_stride + x] = a; } } } return outimg; } class Op_RGB24_32_to_YCbCr444_GBR : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_RGB24_32_to_YCbCr444_GBR::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { // Note: no input alpha channel required. It will be filled up with 0xFF. if (input_state.colorspace != heif_colorspace_RGB || (input_state.chroma != heif_chroma_interleaved_RGB && input_state.chroma != heif_chroma_interleaved_RGBA)) { return {}; } if (!target_state.nclx_profile) { return {}; } if (target_state.nclx_profile->get_matrix_coefficients() != 0) { return {}; } if (input_state.nclx_profile && !input_state.nclx_profile->get_full_range_flag()) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert RGB24 if (input_state.chroma == heif_chroma_interleaved_RGB) { output_state.colorspace = heif_colorspace_YCbCr; output_state.chroma = heif_chroma_444; output_state.has_alpha = false; output_state.bits_per_pixel = 8; costs = {0.75f, 0.5f, 0.0f}; // quality not good since we subsample chroma without filtering states.push_back({output_state, costs}); } // --- convert RGB32 if (input_state.chroma == heif_chroma_interleaved_RGBA) { output_state.colorspace = heif_colorspace_YCbCr; output_state.chroma = heif_chroma_444; output_state.has_alpha = true; output_state.bits_per_pixel = 8; costs = {0.75f, 0.5f, 0.0f}; // quality not good since we subsample chroma without filtering states.push_back({output_state, costs}); } return states; } std::shared_ptr Op_RGB24_32_to_YCbCr444_GBR::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { int width = input->get_width(); int height = input->get_height(); auto outimg = std::make_shared(); outimg->create(width, height, heif_colorspace_YCbCr, heif_chroma_444); const bool has_alpha = (input->get_chroma_format() == heif_chroma_interleaved_32bit); outimg->add_plane(heif_channel_Y, width, height, 8); outimg->add_plane(heif_channel_Cb, width, height, 8); outimg->add_plane(heif_channel_Cr, width, height, 8); if (has_alpha) { outimg->add_plane(heif_channel_Alpha, width, height, 8); } uint8_t* out_cb, * out_cr, * out_y, * out_a; int out_cb_stride = 0, out_cr_stride = 0, out_y_stride = 0, out_a_stride = 0; const uint8_t* in_p; int in_stride = 0; in_p = input->get_plane(heif_channel_interleaved, &in_stride); out_y = outimg->get_plane(heif_channel_Y, &out_y_stride); out_cb = outimg->get_plane(heif_channel_Cb, &out_cb_stride); out_cr = outimg->get_plane(heif_channel_Cr, &out_cr_stride); if (has_alpha) { out_a = outimg->get_plane(heif_channel_Alpha, &out_a_stride); } assert(target_state.nclx_profile); assert(target_state.nclx_profile->get_matrix_coefficients() == 0); if (!has_alpha) { for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { uint8_t r = in_p[y * in_stride + x * 3 + 0]; uint8_t g = in_p[y * in_stride + x * 3 + 1]; uint8_t b = in_p[y * in_stride + x * 3 + 2]; out_y[y * out_y_stride + x] = g; out_cb[y * out_cb_stride + x] = b; out_cr[y * out_cr_stride + x] = r; } } } else { for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { uint8_t r = in_p[y * in_stride + x * 4 + 0]; uint8_t g = in_p[y * in_stride + x * 4 + 1]; uint8_t b = in_p[y * in_stride + x * 4 + 2]; uint8_t a = in_p[y * in_stride + x * 4 + 3]; out_y[y * out_y_stride + x] = g; out_cb[y * out_cb_stride + x] = b; out_cr[y * out_cr_stride + x] = r; // alpha out_a[y * out_a_stride + x] = a; } } } return outimg; } class Op_drop_alpha_plane : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_drop_alpha_plane::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { // only drop alpha plane if it is not needed in output if ((input_state.chroma != heif_chroma_monochrome && input_state.chroma != heif_chroma_420 && input_state.chroma != heif_chroma_422 && input_state.chroma != heif_chroma_444) || input_state.has_alpha == false || target_state.has_alpha == true) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- drop alpha plane output_state = input_state; output_state.has_alpha = false; costs = {0.1f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_drop_alpha_plane::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { int width = input->get_width(); int height = input->get_height(); auto outimg = std::make_shared(); outimg->create(width, height, input->get_colorspace(), input->get_chroma_format()); for (heif_channel channel : {heif_channel_Y, heif_channel_Cb, heif_channel_Cr, heif_channel_R, heif_channel_G, heif_channel_B}) { if (input->has_channel(channel)) { outimg->copy_new_plane_from(input, channel, channel); } } return outimg; } class Op_to_hdr_planes : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_to_hdr_planes::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { if ((input_state.chroma != heif_chroma_monochrome && input_state.chroma != heif_chroma_420 && input_state.chroma != heif_chroma_422 && input_state.chroma != heif_chroma_444) || input_state.bits_per_pixel != 8) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- increase bit depth output_state = input_state; output_state.bits_per_pixel = target_state.bits_per_pixel; costs = {0.2f, 0.0f, 0.5f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_to_hdr_planes::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { auto outimg = std::make_shared(); outimg->create(input->get_width(), input->get_height(), input->get_colorspace(), input->get_chroma_format()); for (heif_channel channel : {heif_channel_Y, heif_channel_Cb, heif_channel_Cr, heif_channel_R, heif_channel_G, heif_channel_B, heif_channel_Alpha}) { if (input->has_channel(channel)) { int width = input->get_width(channel); int height = input->get_height(channel); outimg->add_plane(channel, width, height, target_state.bits_per_pixel); int input_bits = input->get_bits_per_pixel(channel); int output_bits = target_state.bits_per_pixel; int shift1 = output_bits - input_bits; int shift2 = 8 - shift1; const uint8_t* p_in; int stride_in; p_in = input->get_plane(channel, &stride_in); uint16_t* p_out; int stride_out; p_out = (uint16_t*) outimg->get_plane(channel, &stride_out); stride_out /= 2; for (int y = 0; y < height; y++) for (int x = 0; x < width; x++) { int in = p_in[y * stride_in + x]; p_out[y * stride_out + x] = (uint16_t) ((in << shift1) | (in >> shift2)); } } } return outimg; } class Op_to_sdr_planes : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_to_sdr_planes::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { if ((input_state.chroma != heif_chroma_monochrome && input_state.chroma != heif_chroma_420 && input_state.chroma != heif_chroma_422 && input_state.chroma != heif_chroma_444) || input_state.bits_per_pixel == 8) { return {}; } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- decrease bit depth output_state = input_state; output_state.bits_per_pixel = 8; costs = {0.2f, 0.0f, 0.5f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_to_sdr_planes::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { auto outimg = std::make_shared(); outimg->create(input->get_width(), input->get_height(), input->get_colorspace(), input->get_chroma_format()); for (heif_channel channel : {heif_channel_Y, heif_channel_Cb, heif_channel_Cr, heif_channel_R, heif_channel_G, heif_channel_B, heif_channel_Alpha}) { if (input->has_channel(channel)) { int input_bits = input->get_bits_per_pixel(channel); if (input_bits>8) { int width = input->get_width(channel); int height = input->get_height(channel); outimg->add_plane(channel, width, height, 8); int shift = input_bits - 8; const uint16_t* p_in; int stride_in; p_in = (uint16_t*) input->get_plane(channel, &stride_in); stride_in /= 2; uint8_t* p_out; int stride_out; p_out = outimg->get_plane(channel, &stride_out); for (int y = 0; y < height; y++) for (int x = 0; x < width; x++) { int in = p_in[y * stride_in + x]; p_out[y * stride_out + x] = (uint8_t) (in >> shift); // TODO: I think no rounding here, but am not sure. } } else { outimg->copy_new_plane_from(input, channel, channel); } } } return outimg; } class Op_RRGGBBxx_HDR_to_YCbCr420 : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_RRGGBBxx_HDR_to_YCbCr420::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { if (input_state.colorspace != heif_colorspace_RGB || !(input_state.chroma == heif_chroma_interleaved_RRGGBB_BE || input_state.chroma == heif_chroma_interleaved_RRGGBB_LE || input_state.chroma == heif_chroma_interleaved_RRGGBBAA_BE || input_state.chroma == heif_chroma_interleaved_RRGGBBAA_LE) || input_state.bits_per_pixel == 8) { return {}; } if (input_state.nclx_profile) { int matrix = input_state.nclx_profile->get_matrix_coefficients(); if (matrix == 0 || matrix == 8 || matrix == 11 || matrix == 14) { return {}; } if (!input_state.nclx_profile->get_full_range_flag()) { return {}; } } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to YCbCr output_state.colorspace = heif_colorspace_YCbCr; output_state.chroma = heif_chroma_420; output_state.has_alpha = input_state.has_alpha; // we generate an alpha plane if the source contains data output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.5f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_RRGGBBxx_HDR_to_YCbCr420::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { int width = input->get_width(); int height = input->get_height(); int bpp = input->get_bits_per_pixel(heif_channel_interleaved); bool has_alpha = (input->get_chroma_format() == heif_chroma_interleaved_RRGGBBAA_BE || input->get_chroma_format() == heif_chroma_interleaved_RRGGBBAA_LE); auto outimg = std::make_shared(); outimg->create(width, height, heif_colorspace_YCbCr, heif_chroma_420); int bytesPerPixel = has_alpha ? 8 : 6; int cwidth = (width + 1) / 2; int cheight = (height + 1) / 2; outimg->add_plane(heif_channel_Y, width, height, bpp); outimg->add_plane(heif_channel_Cb, cwidth, cheight, bpp); outimg->add_plane(heif_channel_Cr, cwidth, cheight, bpp); if (has_alpha) { outimg->add_plane(heif_channel_Alpha, width, height, bpp); } const uint8_t* in_p; int in_p_stride = 0; uint16_t* out_y, * out_cb, * out_cr, * out_a = nullptr; int out_y_stride = 0, out_cb_stride = 0, out_cr_stride = 0, out_a_stride = 0; in_p = input->get_plane(heif_channel_interleaved, &in_p_stride); out_y = (uint16_t*) outimg->get_plane(heif_channel_Y, &out_y_stride); out_cb = (uint16_t*) outimg->get_plane(heif_channel_Cb, &out_cb_stride); out_cr = (uint16_t*) outimg->get_plane(heif_channel_Cr, &out_cr_stride); if (has_alpha) { out_a = (uint16_t*) outimg->get_plane(heif_channel_Alpha, &out_a_stride); } // adapt stride as we are pointing to 16bit integers out_y_stride /= 2; out_cb_stride /= 2; out_cr_stride /= 2; out_a_stride /= 2; uint16_t halfRange = (uint16_t) (1 << (bpp - 1)); int32_t fullRange = (1 << bpp) - 1; // le=1 for little endian, le=0 for big endian int le = (input->get_chroma_format() == heif_chroma_interleaved_RRGGBBAA_LE || input->get_chroma_format() == heif_chroma_interleaved_RRGGBB_LE) ? 1 : 0; auto colorProfile = input->get_color_profile_nclx(); RGB_to_YCbCr_coefficients coeffs = RGB_to_YCbCr_coefficients::defaults(); bool full_range_flag = true; if (colorProfile) { full_range_flag = target_state.nclx_profile->get_full_range_flag(); coeffs = heif::get_RGB_to_YCbCr_coefficients(colorProfile->get_matrix_coefficients(), colorProfile->get_colour_primaries()); } for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { const uint8_t* in = &in_p[y * in_p_stride + bytesPerPixel * x]; float r = static_cast((in[0 + le] << 8) | in[1 - le]); float g = static_cast((in[2 + le] << 8) | in[3 - le]); float b = static_cast((in[4 + le] << 8) | in[5 - le]); float v = r * coeffs.c[0][0] + g * coeffs.c[0][1] + b * coeffs.c[0][2]; if (!full_range_flag) { v = v * 0.85547f + 16; // 0.85547 = 219/256 } out_y[y * out_y_stride + x] = clip_f_u16(v, fullRange); if (has_alpha) { uint16_t a = (uint16_t) ((in[6 + le] << 8) | in[7 - le]); out_a[y * out_a_stride + x] = a; } } } for (int y = 0; y < height; y += 2) { for (int x = 0; x < width; x += 2) { const uint8_t* in = &in_p[y * in_p_stride + bytesPerPixel * x]; float r = static_cast((in[0 + le] << 8) | in[1 - le]); float g = static_cast((in[2 + le] << 8) | in[3 - le]); float b = static_cast((in[4 + le] << 8) | in[5 - le]); float cb = r * coeffs.c[1][0] + g * coeffs.c[1][1] + b * coeffs.c[1][2]; float cr = r * coeffs.c[2][0] + g * coeffs.c[2][1] + b * coeffs.c[2][2]; if (!full_range_flag) { cb = cb * 0.85547f; // 0.85547 = 219/256 cr = cr * 0.85547f; // 0.85547 = 219/256 } out_cb[(y / 2) * out_cb_stride + (x / 2)] = clip_f_u16(halfRange + cb, fullRange); out_cr[(y / 2) * out_cr_stride + (x / 2)] = clip_f_u16(halfRange + cr, fullRange); } } return outimg; } class Op_YCbCr420_to_RRGGBBaa : public ColorConversionOperation { public: std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) override; std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) override; }; std::vector Op_YCbCr420_to_RRGGBBaa::state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options) { if (input_state.colorspace != heif_colorspace_YCbCr || input_state.chroma != heif_chroma_420 || input_state.bits_per_pixel == 8) { return {}; } if (input_state.nclx_profile) { int matrix = input_state.nclx_profile->get_matrix_coefficients(); if (matrix == 0 || matrix == 8 || matrix == 11 || matrix == 14) { return {}; } } std::vector states; ColorState output_state; ColorConversionCosts costs; // --- convert to YCbCr output_state.colorspace = heif_colorspace_RGB; output_state.chroma = (input_state.has_alpha ? heif_chroma_interleaved_RRGGBBAA_LE : heif_chroma_interleaved_RRGGBB_LE); output_state.has_alpha = input_state.has_alpha; output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.5f, 0.0f, 0.0f}; states.push_back({output_state, costs}); output_state.colorspace = heif_colorspace_RGB; output_state.chroma = (input_state.has_alpha ? heif_chroma_interleaved_RRGGBBAA_BE : heif_chroma_interleaved_RRGGBB_BE); output_state.has_alpha = input_state.has_alpha; output_state.bits_per_pixel = input_state.bits_per_pixel; costs = {0.5f, 0.0f, 0.0f}; states.push_back({output_state, costs}); return states; } std::shared_ptr Op_YCbCr420_to_RRGGBBaa::convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options) { int width = input->get_width(); int height = input->get_height(); int bpp = input->get_bits_per_pixel(heif_channel_Y); bool has_alpha = input->has_channel(heif_channel_Alpha); int le = (target_state.chroma == heif_chroma_interleaved_RRGGBB_LE || target_state.chroma == heif_chroma_interleaved_RRGGBBAA_LE) ? 1 : 0; auto outimg = std::make_shared(); outimg->create(width, height, heif_colorspace_RGB, target_state.chroma); int bytesPerPixel = has_alpha ? 8 : 6; outimg->add_plane(heif_channel_interleaved, width, height, bpp); if (has_alpha) { outimg->add_plane(heif_channel_Alpha, width, height, bpp); } uint8_t* out_p; int out_p_stride = 0; const uint16_t* in_y, * in_cb, * in_cr, * in_a = nullptr; int in_y_stride = 0, in_cb_stride = 0, in_cr_stride = 0, in_a_stride = 0; out_p = outimg->get_plane(heif_channel_interleaved, &out_p_stride); in_y = (uint16_t*) input->get_plane(heif_channel_Y, &in_y_stride); in_cb = (uint16_t*) input->get_plane(heif_channel_Cb, &in_cb_stride); in_cr = (uint16_t*) input->get_plane(heif_channel_Cr, &in_cr_stride); if (has_alpha) { in_a = (uint16_t*) input->get_plane(heif_channel_Alpha, &in_a_stride); } int maxval = (1 << bpp) - 1; bool full_range_flag = true; YCbCr_to_RGB_coefficients coeffs = YCbCr_to_RGB_coefficients::defaults(); auto colorProfile = input->get_color_profile_nclx(); if (colorProfile) { full_range_flag = colorProfile->get_full_range_flag(); coeffs = heif::get_YCbCr_to_RGB_coefficients(colorProfile->get_matrix_coefficients(), colorProfile->get_colour_primaries()); } for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { float y_ = in_y[y * in_y_stride / 2 + x]; float cb = static_cast(in_cb[y / 2 * in_cb_stride / 2 + x / 2] - (1 << (bpp - 1))); float cr = static_cast(in_cr[y / 2 * in_cr_stride / 2 + x / 2] - (1 << (bpp - 1))); if (!full_range_flag) { y_ = (y_ - 16) * 1.1689f; cb = cb * 1.1429f; cr = cr * 1.1429f; } int r = clip_f_u16(y_ + coeffs.r_cr * cr, maxval); int g = clip_f_u16(y_ + coeffs.g_cb * cb - coeffs.g_cr * cr, maxval); int b = clip_f_u16(y_ + coeffs.b_cb * cb, maxval); out_p[y * out_p_stride + bytesPerPixel * x + 0 + le] = (uint8_t) (r >> 8); out_p[y * out_p_stride + bytesPerPixel * x + 2 + le] = (uint8_t) (g >> 8); out_p[y * out_p_stride + bytesPerPixel * x + 4 + le] = (uint8_t) (b >> 8); out_p[y * out_p_stride + bytesPerPixel * x + 1 - le] = (uint8_t) (r & 0xff); out_p[y * out_p_stride + bytesPerPixel * x + 3 - le] = (uint8_t) (g & 0xff); out_p[y * out_p_stride + bytesPerPixel * x + 5 - le] = (uint8_t) (b & 0xff); if (has_alpha) { out_p[y * out_p_stride + 8 * x + 6 + le] = (uint8_t) (in_a[y * in_a_stride / 2 + x] >> 8); out_p[y * out_p_stride + 8 * x + 7 - le] = (uint8_t) (in_a[y * in_a_stride / 2 + x] & 0xff); } } } return outimg; } struct Node { Node() = default; Node(int prev, const std::shared_ptr& _op, ColorStateWithCost state) { prev_processed_idx = prev; op = _op; color_state = state; } int prev_processed_idx = -1; std::shared_ptr op; ColorStateWithCost color_state; }; bool ColorConversionPipeline::construct_pipeline(ColorState input_state, ColorState target_state, ColorConversionOptions options) { m_operations.clear(); m_target_state = target_state; m_options = options; if (input_state == target_state) { return true; } #if DEBUG_ME std::cerr << "--- construct_pipeline\n"; std::cerr << "from: "; print_state(std::cerr, input_state); std::cerr << "to: "; print_state(std::cerr, target_state); #endif std::vector> ops; ops.push_back(std::make_shared()); ops.push_back(std::make_shared>()); ops.push_back(std::make_shared>()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared>()); ops.push_back(std::make_shared>()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); ops.push_back(std::make_shared()); // --- Dijkstra search for the minimum-cost conversion pipeline std::vector processed_states; std::vector border_states; border_states.push_back({-1, nullptr, {input_state, ColorConversionCosts()}}); while (!border_states.empty()) { size_t minIdx = -1; float minCost; for (size_t i = 0; i < border_states.size(); i++) { float cost = border_states[i].color_state.costs.total(options.criterion); if (i == 0 || cost < minCost) { minIdx = i; minCost = cost; } } assert(minIdx >= 0); // move minimum-cost border_state into processed_states processed_states.push_back(border_states[minIdx]); border_states[minIdx] = border_states.back(); border_states.pop_back(); #if DEBUG_PIPELINE_CREATION std::cerr << "- expand node: "; print_state(std::cerr, processed_states.back().color_state.color_state); #endif if (processed_states.back().color_state.color_state == target_state) { // end-state found, backtrack path to find conversion pipeline size_t idx = processed_states.size() - 1; int len = 0; while (idx > 0) { idx = processed_states[idx].prev_processed_idx; len++; } m_operations.resize(len); idx = processed_states.size() - 1; int step = 0; while (idx > 0) { m_operations[len - 1 - step] = processed_states[idx].op; //printf("cost: %f\n",processed_states[idx].color_state.costs.total(options.criterion)); idx = processed_states[idx].prev_processed_idx; step++; } #if DEBUG_ME debug_dump_pipeline(); #endif return true; } // expand the node with minimum cost for (const auto& op_ptr : ops) { #if DEBUG_PIPELINE_CREATION auto& op = *op_ptr; std::cerr << "-- apply op: " << typeid(op).name() << "\n"; #endif auto out_states = op_ptr->state_after_conversion(processed_states.back().color_state.color_state, target_state, options); for (const auto& out_state : out_states) { #if DEBUG_PIPELINE_CREATION std::cerr << "--- "; print_state(std::cerr, out_state.color_state); #endif bool state_exists = false; for (const auto& s : processed_states) { if (s.color_state.color_state == out_state.color_state) { state_exists = true; break; } } if (!state_exists) { for (auto& s : border_states) { if (s.color_state.color_state == out_state.color_state) { state_exists = true; // if we reached the same border node with a lower cost, replace the border node ColorConversionCosts new_op_costs = out_state.costs + processed_states.back().color_state.costs; if (s.color_state.costs.total(options.criterion) > new_op_costs.total(options.criterion)) { s = {(int) (processed_states.size() - 1), op_ptr, out_state}; s.color_state.costs = new_op_costs; } break; } } } // enter the new output state into the list of border states if (!state_exists) { ColorStateWithCost s = out_state; s.costs = s.costs + processed_states.back().color_state.costs; border_states.push_back({(int) (processed_states.size() - 1), op_ptr, s}); } } } } return false; } void ColorConversionPipeline::debug_dump_pipeline() const { for (const auto& op_ptr : m_operations) { auto& op = *op_ptr; std::cerr << "> " << typeid(op).name() << "\n"; } } std::shared_ptr ColorConversionPipeline::convert_image(const std::shared_ptr& input) { std::shared_ptr in = input; std::shared_ptr out = in; for (const auto& op_ptr : m_operations) { #if DEBUG_ME std::cerr << "input spec: "; print_spec(std::cerr, in); #endif out = op_ptr->convert_colorspace(in, m_target_state, m_options); if (!out) { return nullptr; // TODO: we should return a proper error } // --- pass the color profiles to the new image out->set_color_profile_nclx(m_target_state.nclx_profile); out->set_color_profile_icc(in->get_color_profile_icc()); out->set_premultiplied_alpha(in->is_premultiplied_alpha()); in = out; } return out; } std::shared_ptr heif::convert_colorspace(const std::shared_ptr& input, heif_colorspace target_colorspace, heif_chroma target_chroma, std::shared_ptr target_profile, int output_bpp) { // --- check that input image is valid int width = input->get_width(); int height = input->get_height(); // alpha image should have full image resolution if (input->has_channel(heif_channel_Alpha)) { if (input->get_width(heif_channel_Alpha) != width || input->get_height(heif_channel_Alpha) != height) { return nullptr; } } // check for valid target YCbCr chroma formats if (target_colorspace == heif_colorspace_YCbCr) { if (target_chroma != heif_chroma_monochrome && target_chroma != heif_chroma_420 && target_chroma != heif_chroma_422 && target_chroma != heif_chroma_444) { return nullptr; } } // --- prepare conversion ColorState input_state; input_state.colorspace = input->get_colorspace(); input_state.chroma = input->get_chroma_format(); input_state.has_alpha = input->has_channel(heif_channel_Alpha) || is_chroma_with_alpha(input->get_chroma_format()); input_state.nclx_profile = input->get_color_profile_nclx(); std::set channels = input->get_channel_set(); assert(!channels.empty()); input_state.bits_per_pixel = input->get_bits_per_pixel(*(channels.begin())); ColorState output_state = input_state; output_state.colorspace = target_colorspace; output_state.chroma = target_chroma; output_state.nclx_profile = target_profile; // If we convert to an interleaved format, we want alpha only if present in the // interleaved output format. // For planar formats, we include an alpha plane when included in the input. if (num_interleaved_pixels_per_plane(target_chroma) > 1) { output_state.has_alpha = is_chroma_with_alpha(target_chroma); } else { output_state.has_alpha = input_state.has_alpha; } if (output_bpp) { output_state.bits_per_pixel = output_bpp; } // interleaved RGB formats always have to be 8-bit if (target_chroma == heif_chroma_interleaved_RGB || target_chroma == heif_chroma_interleaved_RGBA) { output_state.bits_per_pixel = 8; } // interleaved RRGGBB formats have to be >8-bit. // If we don't know a target bit-depth, use 10 bit. if ((target_chroma == heif_chroma_interleaved_RRGGBB_LE || target_chroma == heif_chroma_interleaved_RRGGBB_BE || target_chroma == heif_chroma_interleaved_RRGGBBAA_LE || target_chroma == heif_chroma_interleaved_RRGGBBAA_BE) && output_state.bits_per_pixel <= 8) { output_state.bits_per_pixel = 10; } ColorConversionPipeline pipeline; bool success = pipeline.construct_pipeline(input_state, output_state); if (!success) { return nullptr; } return pipeline.convert_image(input); } libheif-1.12.0/libheif/heif_version.h.in0000644000175000017500000000244014003350413014747 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ /* heif_version.h * * This file was generated by autoconf when libheif was built. * * DO NOT EDIT THIS FILE. */ #ifndef LIBHEIF_HEIF_VERSION_H #define LIBHEIF_HEIF_VERSION_H /* Numeric representation of the version */ #define LIBHEIF_NUMERIC_VERSION ((@PROJECT_VERSION_MAJOR@<<24) | (@PROJECT_VERSION_MINOR@<<16) | (@PROJECT_VERSION_PATCH@<<8) | @PROJECT_VERSION_TWEAK@) /* Version string */ #define LIBHEIF_VERSION "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@" #endif // LIBHEIF_HEIF_VERSION_H libheif-1.12.0/libheif/heif_cxx.h0000664000175000017500000011373514043747772013521 00000000000000/* * C++ interface to libheif * Copyright (c) 2018 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_CXX_H #define LIBHEIF_HEIF_CXX_H #include #include #include extern "C" { #include } namespace heif { class Error { public: Error() { m_code = heif_error_Ok; m_subcode = heif_suberror_Unspecified; m_message = "Ok"; } Error(const heif_error& err) { m_code = err.code; m_subcode = err.subcode; m_message = err.message; } Error(heif_error_code code, heif_suberror_code subcode, const std::string& msg) { m_code = code; m_subcode = subcode; m_message = msg; } std::string get_message() const { return m_message; } heif_error_code get_code() const { return m_code; } heif_suberror_code get_subcode() const { return m_subcode; } operator bool() const { return m_code != heif_error_Ok; } private: heif_error_code m_code; heif_suberror_code m_subcode; std::string m_message; }; class ImageHandle; class Image; class Encoder; class EncoderParameter; class EncoderDescriptor; class Context { public: Context(); class ReadingOptions { }; // throws Error void read_from_file(std::string filename, const ReadingOptions& opts = ReadingOptions()); // DEPRECATED. Use read_from_memory_without_copy() instead. // throws Error void read_from_memory(const void* mem, size_t size, const ReadingOptions& opts = ReadingOptions()); // throws Error void read_from_memory_without_copy(const void* mem, size_t size, const ReadingOptions& opts = ReadingOptions()); class Reader { public: virtual ~Reader() {} virtual int64_t get_position() const = 0; virtual int read(void* data, size_t size) = 0; virtual int seek(int64_t position) = 0; virtual heif_reader_grow_status wait_for_file_size(int64_t target_size) = 0; }; // throws Error void read_from_reader(Reader&, const ReadingOptions& opts = ReadingOptions()); int get_number_of_top_level_images() const noexcept; bool is_top_level_image_ID(heif_item_id id) const noexcept; std::vector get_list_of_top_level_image_IDs() const noexcept; // throws Error heif_item_id get_primary_image_ID() const; // throws Error ImageHandle get_primary_image_handle() const; ImageHandle get_image_handle(heif_item_id id) const; class EncodingOptions : public heif_encoding_options { public: EncodingOptions(); }; // throws Error ImageHandle encode_image(const Image& img, Encoder& encoder, const EncodingOptions& options = EncodingOptions()); // throws Error void set_primary_image(ImageHandle& new_primary_image_handle); // throws Error ImageHandle encode_thumbnail(const Image& image, const ImageHandle& master_image, Encoder& encoder, const EncodingOptions&, int bbox_size); // throws Error void assign_thumbnail(const ImageHandle& thumbnail_image, const ImageHandle& master_image); // throws Error void add_exif_metadata(const ImageHandle& master_image, const void* data, int size); // throws Error void add_XMP_metadata(const ImageHandle& master_image, const void* data, int size); class Writer { public: virtual ~Writer() {} virtual heif_error write(const void* data, size_t size) = 0; }; // throws Error void write(Writer&); // throws Error void write_to_file(std::string filename) const; private: std::shared_ptr m_context; friend struct ::heif_error heif_writer_trampoline_write(struct heif_context* ctx, const void* data, size_t size, void* userdata); //static Context wrap_without_releasing(heif_context*); // internal use in friend function only }; class ImageHandle { public: ImageHandle() {} ImageHandle(heif_image_handle* handle); bool empty() const noexcept { return !m_image_handle; } bool is_primary_image() const noexcept; int get_width() const noexcept; int get_height() const noexcept; bool has_alpha_channel() const noexcept; bool is_premultiplied_alpha() const noexcept; int get_luma_bits_per_pixel() const noexcept; int get_chroma_bits_per_pixel() const noexcept; int get_ispe_width() const noexcept; int get_ispe_height() const noexcept; // ------------------------- depth images ------------------------- // TODO // ------------------------- thumbnails ------------------------- int get_number_of_thumbnails() const noexcept; std::vector get_list_of_thumbnail_IDs() const noexcept; // throws Error ImageHandle get_thumbnail(heif_item_id id); // ------------------------- metadata (Exif / XMP) ------------------------- // Can optionally be filtered by type ("Exif" / "XMP") std::vector get_list_of_metadata_block_IDs(const char* type_filter = nullptr) const noexcept; std::string get_metadata_type(heif_item_id metadata_id) const noexcept; std::string get_metadata_content_type(heif_item_id metadata_id) const noexcept; // throws error std::vector get_metadata(heif_item_id) const; class DecodingOptions { }; // throws Error Image decode_image(heif_colorspace colorspace, heif_chroma chroma, const DecodingOptions& options = DecodingOptions()); heif_image_handle* get_raw_image_handle() noexcept { return m_image_handle.get(); } const heif_image_handle* get_raw_image_handle() const noexcept { return m_image_handle.get(); } private: std::shared_ptr m_image_handle; }; class ColorProfile_nclx { public: ColorProfile_nclx(); ~ColorProfile_nclx(); heif_color_primaries get_color_primaries() const; heif_transfer_characteristics get_transfer_characteristics() const; heif_matrix_coefficients get_matrix_coefficients() const; bool is_full_range() const; void set_color_primaties(heif_color_primaries cp); void set_transfer_characteristics(heif_transfer_characteristics tc); void set_matrix_coefficients(heif_matrix_coefficients mc); void set_full_range_flag(bool is_full_range); private: ColorProfile_nclx(heif_color_profile_nclx* nclx) { mProfile = nclx; } heif_color_profile_nclx* mProfile; friend class Image; }; class Image { public: Image() {} Image(heif_image* image); // throws Error void create(int width, int height, enum heif_colorspace colorspace, enum heif_chroma chroma); // throws Error void add_plane(enum heif_channel channel, int width, int height, int bit_depth); heif_colorspace get_colorspace() const noexcept; heif_chroma get_chroma_format() const noexcept; int get_width(enum heif_channel channel) const noexcept; int get_height(enum heif_channel channel) const noexcept; int get_bits_per_pixel(enum heif_channel channel) const noexcept; int get_bits_per_pixel_range(enum heif_channel channel) const noexcept; bool has_channel(enum heif_channel channel) const noexcept; const uint8_t* get_plane(enum heif_channel channel, int* out_stride) const noexcept; uint8_t* get_plane(enum heif_channel channel, int* out_stride) noexcept; // throws Error void set_nclx_color_profile(const ColorProfile_nclx&); // throws Error ColorProfile_nclx get_nclx_color_profile() const; heif_color_profile_type get_color_profile_type() const; // throws Error std::vector get_raw_color_profile() const; void set_raw_color_profile(heif_color_profile_type type, const std::vector& data); bool is_premultiplied_alpha() const noexcept; void set_premultiplied_alpha(bool is_premultiplied_alpha) noexcept; class ScalingOptions { }; // throws Error Image scale_image(int width, int height, const ScalingOptions& options = ScalingOptions()) const; private: std::shared_ptr m_image; friend class Context; }; class EncoderDescriptor { public: static std::vector get_encoder_descriptors(enum heif_compression_format format_filter, const char* name_filter) noexcept; std::string get_name() const noexcept; std::string get_id_name() const noexcept; enum heif_compression_format get_compression_format() const noexcept; bool supportes_lossy_compression() const noexcept; bool supportes_lossless_compression() const noexcept; // throws Error Encoder get_encoder() const; private: EncoderDescriptor(const struct heif_encoder_descriptor* descr) : m_descriptor(descr) {} const struct heif_encoder_descriptor* m_descriptor = nullptr; }; class EncoderParameter { public: std::string get_name() const noexcept; enum heif_encoder_parameter_type get_type() const noexcept; bool is_integer() const noexcept; // Returns 'true' if the integer range is limited. bool get_valid_integer_range(int& out_minimum, int& out_maximum); bool is_boolean() const noexcept; bool is_string() const noexcept; std::vector get_valid_string_values() const; private: EncoderParameter(const heif_encoder_parameter*); const struct heif_encoder_parameter* m_parameter; friend class Encoder; }; class Encoder { public: // throws Error Encoder(enum heif_compression_format format); // throws Error void set_lossy_quality(int quality); // throws Error void set_lossless(bool enable_lossless); std::vector list_parameters() const noexcept; void set_integer_parameter(std::string parameter_name, int value); int get_integer_parameter(std::string parameter_name) const; void set_boolean_parameter(std::string parameter_name, bool value); bool get_boolean_parameter(std::string parameter_name) const; void set_string_parameter(std::string parameter_name, std::string value); std::string get_string_parameter(std::string parameter_name) const; void set_parameter(std::string parameter_name, std::string parameter_value); std::string get_parameter(std::string parameter_name) const; private: Encoder(struct heif_encoder*) noexcept; std::shared_ptr m_encoder; friend class EncoderDescriptor; friend class Context; }; // ========================================================================================== // IMPLEMENTATION // ========================================================================================== inline Context::Context() { heif_context* ctx = heif_context_alloc(); m_context = std::shared_ptr(ctx, [](heif_context* c) { heif_context_free(c); }); } inline void Context::read_from_file(std::string filename, const ReadingOptions& /*opts*/) { Error err = Error(heif_context_read_from_file(m_context.get(), filename.c_str(), NULL)); if (err) { throw err; } } inline void Context::read_from_memory(const void* mem, size_t size, const ReadingOptions& /*opts*/) { Error err = Error(heif_context_read_from_memory(m_context.get(), mem, size, NULL)); if (err) { throw err; } } inline void Context::read_from_memory_without_copy(const void* mem, size_t size, const ReadingOptions& /*opts*/) { Error err = Error(heif_context_read_from_memory_without_copy(m_context.get(), mem, size, NULL)); if (err) { throw err; } } inline int64_t heif_reader_trampoline_get_position(void* userdata) { Context::Reader* reader = (Context::Reader*) userdata; return reader->get_position(); } inline int heif_reader_trampoline_read(void* data, size_t size, void* userdata) { Context::Reader* reader = (Context::Reader*) userdata; return reader->read(data, size); } inline int heif_reader_trampoline_seek(int64_t position, void* userdata) { Context::Reader* reader = (Context::Reader*) userdata; return reader->seek(position); } inline heif_reader_grow_status heif_reader_trampoline_wait_for_file_size(int64_t target_size, void* userdata) { Context::Reader* reader = (Context::Reader*) userdata; return reader->wait_for_file_size(target_size); } static struct heif_reader heif_reader_trampoline = { 1, heif_reader_trampoline_get_position, heif_reader_trampoline_read, heif_reader_trampoline_seek, heif_reader_trampoline_wait_for_file_size }; inline void Context::read_from_reader(Reader& reader, const ReadingOptions& /*opts*/) { Error err = Error(heif_context_read_from_reader(m_context.get(), &heif_reader_trampoline, &reader, NULL)); if (err) { throw err; } } inline int Context::get_number_of_top_level_images() const noexcept { return heif_context_get_number_of_top_level_images(m_context.get()); } inline bool Context::is_top_level_image_ID(heif_item_id id) const noexcept { return heif_context_is_top_level_image_ID(m_context.get(), id); } inline std::vector Context::get_list_of_top_level_image_IDs() const noexcept { int num = get_number_of_top_level_images(); std::vector IDs(num); heif_context_get_list_of_top_level_image_IDs(m_context.get(), IDs.data(), num); return IDs; } inline heif_item_id Context::get_primary_image_ID() const { heif_item_id id; Error err = Error(heif_context_get_primary_image_ID(m_context.get(), &id)); if (err) { throw err; } return id; } inline ImageHandle Context::get_primary_image_handle() const { heif_image_handle* handle; Error err = Error(heif_context_get_primary_image_handle(m_context.get(), &handle)); if (err) { throw err; } return ImageHandle(handle); } inline ImageHandle Context::get_image_handle(heif_item_id id) const { struct heif_image_handle* handle; Error err = Error(heif_context_get_image_handle(m_context.get(), id, &handle)); if (err) { throw err; } return ImageHandle(handle); } #if 0 inline Context Context::wrap_without_releasing(heif_context* ctx) { Context context; context.m_context = std::shared_ptr(ctx, [] (heif_context*) { /* NOP */ }); return context; } #endif inline struct ::heif_error heif_writer_trampoline_write(struct heif_context* ctx, const void* data, size_t size, void* userdata) { Context::Writer* writer = (Context::Writer*) userdata; (void) ctx; //Context context = Context::wrap_without_releasing(ctx); //return writer->write(context, data, size); return writer->write(data, size); } static struct heif_writer heif_writer_trampoline = { 1, &heif_writer_trampoline_write }; inline void Context::write(Writer& writer) { Error err = Error(heif_context_write(m_context.get(), &heif_writer_trampoline, &writer)); if (err) { throw err; } } inline void Context::write_to_file(std::string filename) const { Error err = Error(heif_context_write_to_file(m_context.get(), filename.c_str())); if (err) { throw err; } } inline ImageHandle::ImageHandle(heif_image_handle* handle) { if (handle != nullptr) { m_image_handle = std::shared_ptr(handle, [](heif_image_handle* h) { heif_image_handle_release(h); }); } } inline bool ImageHandle::is_primary_image() const noexcept { return heif_image_handle_is_primary_image(m_image_handle.get()) != 0; } inline int ImageHandle::get_width() const noexcept { return heif_image_handle_get_width(m_image_handle.get()); } inline int ImageHandle::get_height() const noexcept { return heif_image_handle_get_height(m_image_handle.get()); } inline bool ImageHandle::has_alpha_channel() const noexcept { return heif_image_handle_has_alpha_channel(m_image_handle.get()) != 0; } inline bool ImageHandle::is_premultiplied_alpha() const noexcept { return heif_image_handle_is_premultiplied_alpha(m_image_handle.get()) != 0; } inline int ImageHandle::get_luma_bits_per_pixel() const noexcept { return heif_image_handle_get_luma_bits_per_pixel(m_image_handle.get()); } inline int ImageHandle::get_chroma_bits_per_pixel() const noexcept { return heif_image_handle_get_chroma_bits_per_pixel(m_image_handle.get()); } inline int ImageHandle::get_ispe_width() const noexcept { return heif_image_handle_get_ispe_width(m_image_handle.get()); } inline int ImageHandle::get_ispe_height() const noexcept { return heif_image_handle_get_ispe_height(m_image_handle.get()); } // ------------------------- depth images ------------------------- // TODO // ------------------------- thumbnails ------------------------- inline int ImageHandle::get_number_of_thumbnails() const noexcept { return heif_image_handle_get_number_of_thumbnails(m_image_handle.get()); } inline std::vector ImageHandle::get_list_of_thumbnail_IDs() const noexcept { int num = get_number_of_thumbnails(); std::vector IDs(num); heif_image_handle_get_list_of_thumbnail_IDs(m_image_handle.get(), IDs.data(), num); return IDs; } inline ImageHandle ImageHandle::get_thumbnail(heif_item_id id) { heif_image_handle* handle; Error err = Error(heif_image_handle_get_thumbnail(m_image_handle.get(), id, &handle)); if (err) { throw err; } return ImageHandle(handle); } inline Image ImageHandle::decode_image(heif_colorspace colorspace, heif_chroma chroma, const DecodingOptions& /*options*/) { heif_image* out_img; Error err = Error(heif_decode_image(m_image_handle.get(), &out_img, colorspace, chroma, nullptr)); //const struct heif_decoding_options* options); if (err) { throw err; } return Image(out_img); } inline std::vector ImageHandle::get_list_of_metadata_block_IDs(const char* type_filter) const noexcept { int nBlocks = heif_image_handle_get_number_of_metadata_blocks(m_image_handle.get(), type_filter); std::vector ids(nBlocks); int n = heif_image_handle_get_list_of_metadata_block_IDs(m_image_handle.get(), type_filter, ids.data(), nBlocks); (void) n; //assert(n==nBlocks); return ids; } inline std::string ImageHandle::get_metadata_type(heif_item_id metadata_id) const noexcept { return heif_image_handle_get_metadata_type(m_image_handle.get(), metadata_id); } inline std::string ImageHandle::get_metadata_content_type(heif_item_id metadata_id) const noexcept { return heif_image_handle_get_metadata_content_type(m_image_handle.get(), metadata_id); } inline std::vector ImageHandle::get_metadata(heif_item_id metadata_id) const { size_t data_size = heif_image_handle_get_metadata_size(m_image_handle.get(), metadata_id); std::vector data(data_size); Error err = Error(heif_image_handle_get_metadata(m_image_handle.get(), metadata_id, data.data())); if (err) { throw err; } return data; } inline ColorProfile_nclx::ColorProfile_nclx() { mProfile = heif_nclx_color_profile_alloc(); } inline ColorProfile_nclx::~ColorProfile_nclx() { delete mProfile; } inline heif_color_primaries ColorProfile_nclx::get_color_primaries() const { return mProfile->color_primaries; } inline heif_transfer_characteristics ColorProfile_nclx::get_transfer_characteristics() const { return mProfile->transfer_characteristics; } inline heif_matrix_coefficients ColorProfile_nclx::get_matrix_coefficients() const { return mProfile->matrix_coefficients; } inline bool ColorProfile_nclx::is_full_range() const { return mProfile->full_range_flag; } inline void ColorProfile_nclx::set_color_primaties(heif_color_primaries cp) { mProfile->color_primaries = cp; } inline void ColorProfile_nclx::set_transfer_characteristics(heif_transfer_characteristics tc) { mProfile->transfer_characteristics = tc; } inline void ColorProfile_nclx::set_matrix_coefficients(heif_matrix_coefficients mc) { mProfile->matrix_coefficients = mc; } inline void ColorProfile_nclx::set_full_range_flag(bool is_full_range) { mProfile->full_range_flag = is_full_range; } inline Image::Image(heif_image* image) { m_image = std::shared_ptr(image, [](heif_image* h) { heif_image_release(h); }); } inline void Image::create(int width, int height, enum heif_colorspace colorspace, enum heif_chroma chroma) { heif_image* image; Error err = Error(heif_image_create(width, height, colorspace, chroma, &image)); if (err) { m_image.reset(); throw err; } else { m_image = std::shared_ptr(image, [](heif_image* h) { heif_image_release(h); }); } } inline void Image::add_plane(enum heif_channel channel, int width, int height, int bit_depth) { Error err = Error(heif_image_add_plane(m_image.get(), channel, width, height, bit_depth)); if (err) { throw err; } } inline heif_colorspace Image::get_colorspace() const noexcept { return heif_image_get_colorspace(m_image.get()); } inline heif_chroma Image::get_chroma_format() const noexcept { return heif_image_get_chroma_format(m_image.get()); } inline int Image::get_width(enum heif_channel channel) const noexcept { return heif_image_get_width(m_image.get(), channel); } inline int Image::get_height(enum heif_channel channel) const noexcept { return heif_image_get_height(m_image.get(), channel); } inline int Image::get_bits_per_pixel(enum heif_channel channel) const noexcept { return heif_image_get_bits_per_pixel(m_image.get(), channel); } inline int Image::get_bits_per_pixel_range(enum heif_channel channel) const noexcept { return heif_image_get_bits_per_pixel_range(m_image.get(), channel); } inline bool Image::has_channel(enum heif_channel channel) const noexcept { return heif_image_has_channel(m_image.get(), channel); } inline const uint8_t* Image::get_plane(enum heif_channel channel, int* out_stride) const noexcept { return heif_image_get_plane_readonly(m_image.get(), channel, out_stride); } inline uint8_t* Image::get_plane(enum heif_channel channel, int* out_stride) noexcept { return heif_image_get_plane(m_image.get(), channel, out_stride); } inline void Image::set_nclx_color_profile(const ColorProfile_nclx& nclx) { Error err = Error(heif_image_set_nclx_color_profile(m_image.get(), nclx.mProfile)); if (err) { throw err; } } // throws Error inline ColorProfile_nclx Image::get_nclx_color_profile() const { heif_color_profile_nclx* nclx = nullptr; Error err = Error(heif_image_get_nclx_color_profile(m_image.get(), &nclx)); if (err) { throw err; } return ColorProfile_nclx(nclx); } inline heif_color_profile_type Image::get_color_profile_type() const { return heif_image_get_color_profile_type(m_image.get()); } // throws Error inline std::vector Image::get_raw_color_profile() const { auto size = heif_image_get_raw_color_profile_size(m_image.get()); std::vector profile(size); heif_image_get_raw_color_profile(m_image.get(), profile.data()); return profile; } inline void Image::set_raw_color_profile(heif_color_profile_type type, const std::vector& data) { const char* profile_type = nullptr; switch (type) { case heif_color_profile_type_prof: profile_type = "prof"; break; case heif_color_profile_type_rICC: profile_type = "rICC"; break; default: throw Error(heif_error_code::heif_error_Usage_error, heif_suberror_Unspecified, "invalid raw color profile type"); break; } Error err = Error(heif_image_set_raw_color_profile(m_image.get(), profile_type, data.data(), data.size())); if (err) { throw err; } } inline bool Image::is_premultiplied_alpha() const noexcept { return heif_image_is_premultiplied_alpha(m_image.get()) != 0; } inline void Image::set_premultiplied_alpha(bool is_premultiplied_alpha) noexcept { heif_image_set_premultiplied_alpha(m_image.get(), is_premultiplied_alpha); } inline Image Image::scale_image(int width, int height, const ScalingOptions&) const { heif_image* img; Error err = Error(heif_image_scale_image(m_image.get(), &img, width, height, nullptr)); // TODO: scaling options not defined yet if (err) { throw err; } return Image(img); } inline std::vector EncoderDescriptor::get_encoder_descriptors(enum heif_compression_format format_filter, const char* name_filter) noexcept { int maxDescriptors = 10; int nDescriptors; for (;;) { const struct heif_encoder_descriptor** descriptors; descriptors = new const heif_encoder_descriptor* [maxDescriptors]; nDescriptors = heif_context_get_encoder_descriptors(nullptr, format_filter, name_filter, descriptors, maxDescriptors); if (nDescriptors < maxDescriptors) { std::vector outDescriptors; for (int i = 0; i < nDescriptors; i++) { outDescriptors.push_back(EncoderDescriptor(descriptors[i])); } delete[] descriptors; return outDescriptors; } else { delete[] descriptors; maxDescriptors *= 2; } } } inline std::string EncoderDescriptor::get_name() const noexcept { return heif_encoder_descriptor_get_name(m_descriptor); } inline std::string EncoderDescriptor::get_id_name() const noexcept { return heif_encoder_descriptor_get_id_name(m_descriptor); } inline enum heif_compression_format EncoderDescriptor::get_compression_format() const noexcept { return heif_encoder_descriptor_get_compression_format(m_descriptor); } inline bool EncoderDescriptor::supportes_lossy_compression() const noexcept { return heif_encoder_descriptor_supportes_lossy_compression(m_descriptor); } inline bool EncoderDescriptor::supportes_lossless_compression() const noexcept { return heif_encoder_descriptor_supportes_lossless_compression(m_descriptor); } inline Encoder EncoderDescriptor::get_encoder() const { heif_encoder* encoder; Error err = Error(heif_context_get_encoder(nullptr, m_descriptor, &encoder)); if (err) { throw err; } return Encoder(encoder); } inline Encoder::Encoder(enum heif_compression_format format) { heif_encoder* encoder; Error err = Error(heif_context_get_encoder_for_format(nullptr, format, &encoder)); if (err) { throw err; } m_encoder = std::shared_ptr(encoder, [](heif_encoder* e) { heif_encoder_release(e); }); } inline Encoder::Encoder(struct heif_encoder* encoder) noexcept { m_encoder = std::shared_ptr(encoder, [](heif_encoder* e) { heif_encoder_release(e); }); } inline EncoderParameter::EncoderParameter(const heif_encoder_parameter* param) : m_parameter(param) { } inline std::string EncoderParameter::get_name() const noexcept { return heif_encoder_parameter_get_name(m_parameter); } inline enum heif_encoder_parameter_type EncoderParameter::get_type() const noexcept { return heif_encoder_parameter_get_type(m_parameter); } inline bool EncoderParameter::is_integer() const noexcept { return get_type() == heif_encoder_parameter_type_integer; } inline bool EncoderParameter::get_valid_integer_range(int& out_minimum, int& out_maximum) { int have_minimum_maximum; Error err = Error(heif_encoder_parameter_get_valid_integer_range(m_parameter, &have_minimum_maximum, &out_minimum, &out_maximum)); if (err) { throw err; } return have_minimum_maximum; } inline bool EncoderParameter::is_boolean() const noexcept { return get_type() == heif_encoder_parameter_type_boolean; } inline bool EncoderParameter::is_string() const noexcept { return get_type() == heif_encoder_parameter_type_string; } inline std::vector EncoderParameter::get_valid_string_values() const { const char* const* stringarray; Error err = Error(heif_encoder_parameter_get_valid_string_values(m_parameter, &stringarray)); if (err) { throw err; } std::vector values; for (int i = 0; stringarray[i]; i++) { values.push_back(stringarray[i]); } return values; } inline std::vector Encoder::list_parameters() const noexcept { std::vector parameters; for (const struct heif_encoder_parameter* const* params = heif_encoder_list_parameters(m_encoder.get()); *params; params++) { parameters.push_back(EncoderParameter(*params)); } return parameters; } inline void Encoder::set_lossy_quality(int quality) { Error err = Error(heif_encoder_set_lossy_quality(m_encoder.get(), quality)); if (err) { throw err; } } inline void Encoder::set_lossless(bool enable_lossless) { Error err = Error(heif_encoder_set_lossless(m_encoder.get(), enable_lossless)); if (err) { throw err; } } inline void Encoder::set_integer_parameter(std::string parameter_name, int value) { Error err = Error(heif_encoder_set_parameter_integer(m_encoder.get(), parameter_name.c_str(), value)); if (err) { throw err; } } inline int Encoder::get_integer_parameter(std::string parameter_name) const { int value; Error err = Error(heif_encoder_get_parameter_integer(m_encoder.get(), parameter_name.c_str(), &value)); if (err) { throw err; } return value; } inline void Encoder::set_boolean_parameter(std::string parameter_name, bool value) { Error err = Error(heif_encoder_set_parameter_boolean(m_encoder.get(), parameter_name.c_str(), value)); if (err) { throw err; } } inline bool Encoder::get_boolean_parameter(std::string parameter_name) const { int value; Error err = Error(heif_encoder_get_parameter_boolean(m_encoder.get(), parameter_name.c_str(), &value)); if (err) { throw err; } return value; } inline void Encoder::set_string_parameter(std::string parameter_name, std::string value) { Error err = Error(heif_encoder_set_parameter_string(m_encoder.get(), parameter_name.c_str(), value.c_str())); if (err) { throw err; } } inline std::string Encoder::get_string_parameter(std::string parameter_name) const { const int max_size = 250; char value[max_size]; Error err = Error(heif_encoder_get_parameter_string(m_encoder.get(), parameter_name.c_str(), value, max_size)); if (err) { throw err; } return value; } inline void Encoder::set_parameter(std::string parameter_name, std::string parameter_value) { Error err = Error(heif_encoder_set_parameter(m_encoder.get(), parameter_name.c_str(), parameter_value.c_str())); if (err) { throw err; } } inline std::string Encoder::get_parameter(std::string parameter_name) const { const int max_size = 250; char value[max_size]; Error err = Error(heif_encoder_get_parameter(m_encoder.get(), parameter_name.c_str(), value, max_size)); if (err) { throw err; } return value; } inline void Context::set_primary_image(ImageHandle& new_primary_image_handle) { Error err = Error(heif_context_set_primary_image(m_context.get(), new_primary_image_handle.get_raw_image_handle())); if (err) { throw err; } } inline Context::EncodingOptions::EncodingOptions() { // TODO: this is a bit hacky. It would be better to have an API function to set // the options to default values. But I do not see any reason for that apart from // this use-case. struct heif_encoding_options* default_options = heif_encoding_options_alloc(); *static_cast(this) = *default_options; // copy over all options heif_encoding_options_free(default_options); } inline ImageHandle Context::encode_image(const Image& img, Encoder& encoder, const EncodingOptions& options) { struct heif_image_handle* image_handle; Error err = Error(heif_context_encode_image(m_context.get(), img.m_image.get(), encoder.m_encoder.get(), &options, &image_handle)); if (err) { throw err; } return ImageHandle(image_handle); } inline ImageHandle Context::encode_thumbnail(const Image& image, const ImageHandle& master_image_handle, Encoder& encoder, const EncodingOptions& options, int bbox_size) { struct heif_image_handle* thumb_image_handle; Error err = Error(heif_context_encode_thumbnail(m_context.get(), image.m_image.get(), master_image_handle.get_raw_image_handle(), encoder.m_encoder.get(), &options, bbox_size, &thumb_image_handle)); if (err) { throw err; } return ImageHandle(thumb_image_handle); } inline void Context::assign_thumbnail(const ImageHandle& thumbnail_image, const ImageHandle& master_image) { Error err = Error(heif_context_assign_thumbnail(m_context.get(), thumbnail_image.get_raw_image_handle(), master_image.get_raw_image_handle())); if (err) { throw err; } } inline void Context::add_exif_metadata(const ImageHandle& master_image, const void* data, int size) { Error err = Error(heif_context_add_exif_metadata(m_context.get(), master_image.get_raw_image_handle(), data, size)); if (err) { throw err; } } inline void Context::add_XMP_metadata(const ImageHandle& master_image, const void* data, int size) { Error err = Error(heif_context_add_XMP_metadata(m_context.get(), master_image.get_raw_image_handle(), data, size)); if (err) { throw err; } } } #endif libheif-1.12.0/libheif/file_fuzzer.cc0000644000175000017500000001176414003350412014354 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Joachim Bauch * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include #include #include #include "heif.h" static const enum heif_colorspace kFuzzColorSpace = heif_colorspace_YCbCr; static const enum heif_chroma kFuzzChroma = heif_chroma_420; static void TestDecodeImage(struct heif_context* ctx, const struct heif_image_handle* handle, size_t filesize) { struct heif_image* image; struct heif_error err; heif_image_handle_is_primary_image(handle); int width = heif_image_handle_get_width(handle); int height = heif_image_handle_get_height(handle); assert(width >= 0); assert(height >= 0); int metadata_count = heif_image_handle_get_number_of_metadata_blocks(handle, nullptr); assert(metadata_count >= 0); assert(static_cast(metadata_count) < filesize / sizeof(heif_item_id)); heif_item_id* metadata_ids = static_cast(malloc(metadata_count * sizeof(heif_item_id))); assert(metadata_ids); int metadata_ids_count = heif_image_handle_get_list_of_metadata_block_IDs(handle, nullptr, metadata_ids, metadata_count); assert(metadata_count == metadata_ids_count); for (int i = 0; i < metadata_count; i++) { heif_image_handle_get_metadata_type(handle, metadata_ids[i]); heif_image_handle_get_metadata_content_type(handle, metadata_ids[i]); size_t metadata_size = heif_image_handle_get_metadata_size(handle, metadata_ids[i]); assert(metadata_size < filesize); uint8_t* metadata_data = static_cast(malloc(metadata_size)); assert(metadata_data); heif_image_handle_get_metadata(handle, metadata_ids[i], metadata_data); free(metadata_data); } free(metadata_ids); err = heif_decode_image(handle, &image, kFuzzColorSpace, kFuzzChroma, nullptr); if (err.code != heif_error_Ok) { return; } assert(heif_image_get_colorspace(image) == kFuzzColorSpace); assert(heif_image_get_chroma_format(image) == kFuzzChroma); // TODO(fancycode): Should we also check the planes? heif_image_release(image); } static int clip_int(size_t size) { return size > INT_MAX ? INT_MAX : static_cast(size); } extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { struct heif_context* ctx; struct heif_error err; struct heif_image_handle* primary_handle; int images_count; heif_item_id* image_IDs = NULL; heif_check_filetype(data, clip_int(size)); heif_main_brand(data, clip_int(size)); heif_get_file_mime_type(data, clip_int(size)); ctx = heif_context_alloc(); assert(ctx); err = heif_context_read_from_memory(ctx, data, size, nullptr); if (err.code != heif_error_Ok) { // Not a valid HEIF file passed (which is most likely while fuzzing). goto quit; } err = heif_context_get_primary_image_handle(ctx, &primary_handle); if (err.code == heif_error_Ok) { assert(heif_image_handle_is_primary_image(primary_handle)); TestDecodeImage(ctx, primary_handle, size); heif_image_handle_release(primary_handle); } images_count = heif_context_get_number_of_top_level_images(ctx); if (!images_count) { // File doesn't contain any images. goto quit; } image_IDs = (heif_item_id*) malloc(images_count * sizeof(heif_item_id)); assert(image_IDs); images_count = heif_context_get_list_of_top_level_image_IDs(ctx, image_IDs, images_count); if (!images_count) { // Could not get list of image ids. goto quit; } for (int i = 0; i < images_count; ++i) { struct heif_image_handle* image_handle; err = heif_context_get_image_handle(ctx, image_IDs[i], &image_handle); if (err.code != heif_error_Ok) { // Ignore, we are only interested in crashes here. continue; } TestDecodeImage(ctx, image_handle, size); int num_thumbnails = heif_image_handle_get_number_of_thumbnails(image_handle); for (int t = 0; t < num_thumbnails; ++t) { struct heif_image_handle* thumbnail_handle = nullptr; heif_image_handle_get_thumbnail(image_handle, t, &thumbnail_handle); if (thumbnail_handle) { TestDecodeImage(ctx, thumbnail_handle, size); heif_image_handle_release(thumbnail_handle); } } heif_image_handle_release(image_handle); } quit: heif_context_free(ctx); free(image_IDs); return 0; } libheif-1.12.0/libheif/heif_decoder_dav1d.h0000644000175000017500000000163514003350413015346 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_DECODER_DAV1D_H #define LIBHEIF_HEIF_DECODER_DAV1D_H const struct heif_decoder_plugin* get_decoder_plugin_dav1d(); #endif libheif-1.12.0/libheif/heif_plugin.h0000644000175000017500000002203714003350413014157 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_PLUGIN_H #define LIBHEIF_HEIF_PLUGIN_H #ifdef __cplusplus extern "C" { #endif #include // ==================================================================================================== // This file is for codec plugin developers only. // ==================================================================================================== // API versions table // // release decoder encoder enc.params // ----------------------------------------- // 1.0 1 N/A N/A // 1.1 1 1 1 // 1.4 1 1 2 // 1.8 1 2 2 // ==================================================================================================== // Decoder plugin API // In order to decode images in other formats than HEVC, additional compression codecs can be // added as plugins. A plugin has to implement the functions specified in heif_decoder_plugin // and the plugin has to be registered to the libheif library using heif_register_decoder(). struct heif_decoder_plugin { // API version supported by this plugin int plugin_api_version; // current version: 1 // --- version 1 functions --- // Human-readable name of the plugin const char* (* get_plugin_name)(); // Global plugin initialization (may be NULL) void (* init_plugin)(); // Global plugin deinitialization (may be NULL) void (* deinit_plugin)(); // Query whether the plugin supports decoding of the given format // Result is a priority value. The plugin with the largest value wins. // Default priority is 100. int (* does_support_format)(enum heif_compression_format format); // Create a new decoder context for decoding an image struct heif_error (* new_decoder)(void** decoder); // Free the decoder context (heif_image can still be used after destruction) void (* free_decoder)(void* decoder); // Push more data into the decoder. This can be called multiple times. // This may not be called after any decode_*() function has been called. struct heif_error (* push_data)(void* decoder, const void* data, size_t size); // --- After pushing the data into the decoder, the decode functions may be called only once. struct heif_error (* decode_image)(void* decoder, struct heif_image** out_img); // --- version 2 functions will follow below ... --- // If not NULL, this can provide a specialized function to convert YCbCr to sRGB, because // only the codec itself knows how to interpret the chroma samples and their locations. /* struct heif_error (*convert_YCbCr_to_sRGB)(void* decoder, struct heif_image* in_YCbCr_img, struct heif_image** out_sRGB_img); */ // Reset decoder, such that we can feed in new data for another image. // void (*reset_image)(void* decoder); }; enum heif_encoded_data_type { heif_encoded_data_type_HEVC_header = 1, heif_encoded_data_type_HEVC_image = 2, heif_encoded_data_type_HEVC_depth_SEI = 3 }; // Specifies the class of the input image content. // The encoder may want to encode different classes with different parameters // (e.g. always encode alpha lossless) enum heif_image_input_class { heif_image_input_class_normal = 1, heif_image_input_class_alpha = 2, heif_image_input_class_depth = 3, heif_image_input_class_thumbnail = 4 }; struct heif_encoder_plugin { // API version supported by this plugin int plugin_api_version; // current version: 2 // --- version 1 functions --- // The compression format generated by this plugin. enum heif_compression_format compression_format; // Short name of the encoder that can be used as command line parameter when selecting an encoder. // Hence, it should stay stable and not contain any version numbers that will change. const char* id_name; // Default priority is 100. int priority; // Feature support int supports_lossy_compression; int supports_lossless_compression; // Human-readable name of the plugin const char* (* get_plugin_name)(); // Global plugin initialization (may be NULL) void (* init_plugin)(); // Global plugin cleanup (may be NULL). // Free data that was allocated in init_plugin() void (* cleanup_plugin)(); // Create a new decoder context for decoding an image struct heif_error (* new_encoder)(void** encoder); // Free the decoder context (heif_image can still be used after destruction) void (* free_encoder)(void* encoder); struct heif_error (* set_parameter_quality)(void* encoder, int quality); struct heif_error (* get_parameter_quality)(void* encoder, int* quality); struct heif_error (* set_parameter_lossless)(void* encoder, int lossless); struct heif_error (* get_parameter_lossless)(void* encoder, int* lossless); struct heif_error (* set_parameter_logging_level)(void* encoder, int logging); struct heif_error (* get_parameter_logging_level)(void* encoder, int* logging); const struct heif_encoder_parameter** (* list_parameters)(void* encoder); struct heif_error (* set_parameter_integer)(void* encoder, const char* name, int value); struct heif_error (* get_parameter_integer)(void* encoder, const char* name, int* value); struct heif_error (* set_parameter_boolean)(void* encoder, const char* name, int value); struct heif_error (* get_parameter_boolean)(void* encoder, const char* name, int* value); struct heif_error (* set_parameter_string)(void* encoder, const char* name, const char* value); struct heif_error (* get_parameter_string)(void* encoder, const char* name, char* value, int value_size); // Replace the input colorspace/chroma with the one that is supported by the encoder and that // comes as close to the input colorspace/chroma as possible. void (* query_input_colorspace)(enum heif_colorspace* inout_colorspace, enum heif_chroma* inout_chroma); // Encode an image. // After pushing an image into the encoder, you should call get_compressed_data() to // get compressed data until it returns a NULL data pointer. struct heif_error (* encode_image)(void* encoder, const struct heif_image* image, enum heif_image_input_class image_class); // Get a packet of decoded data. The data format depends on the codec. // For HEVC, each packet shall contain exactly one NAL, starting with the NAL header without startcode. struct heif_error (* get_compressed_data)(void* encoder, uint8_t** data, int* size, enum heif_encoded_data_type* type); // --- version 2 --- void (* query_input_colorspace2)(void* encoder, enum heif_colorspace* inout_colorspace, enum heif_chroma* inout_chroma); // --- version 3 --- // The encoded image size may be different from the input frame size, e.g. because // of required rounding, or a required minimum size. Use this function to return // the encoded size for a given input image size. void (* query_encoded_size)(void* encoder, uint32_t input_width, uint32_t input_height, uint32_t* encoded_width, uint32_t* encoded_height); // --- version 4 functions will follow below ... --- }; // Names for standard parameters. These should only be used by the encoder plugins. #define heif_encoder_parameter_name_quality "quality" #define heif_encoder_parameter_name_lossless "lossless" // For use only by the encoder plugins. // Application programs should use the access functions. struct heif_encoder_parameter { int version; // current version: 2 // --- version 1 fields --- const char* name; enum heif_encoder_parameter_type type; union { struct { int default_value; uint8_t have_minimum_maximum; // bool int minimum; int maximum; int* valid_values; int num_valid_values; } integer; struct { const char* default_value; const char* const* valid_values; } string; // NOLINT struct { int default_value; } boolean; }; // --- version 2 fields int has_default; }; extern struct heif_error heif_error_ok; extern struct heif_error heif_error_unsupported_parameter; extern struct heif_error heif_error_invalid_parameter_value; #ifdef __cplusplus } #endif #endif libheif-1.12.0/libheif/encoder_fuzzer.cc0000644000175000017500000001255714003350412015055 00000000000000/* * HEIF codec. * Copyright (c) 2018 struktur AG, Joachim Bauch * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include #include #include #include #include "heif.h" static void generate_plane(int width, int height, uint8_t* output, int stride) { // TODO(fancycode): Fill with random data. if (width == stride) { memset(output, 0, width * height); } else { for (int y = 0; y < height; y++) { memset(output, 0, width); output += stride; } } } static size_t create_image(const uint8_t* data, size_t size, struct heif_image** image) { if (size < 2) { return 0; } int width = data[0] + 16; int height = data[1] + 16; data += 2; size -= 2; // TODO(fancycode): Get colorspace/chroma from fuzzing input. heif_colorspace colorspace = heif_colorspace_YCbCr; heif_chroma chroma = heif_chroma_420; struct heif_error err = heif_image_create(width, height, colorspace, chroma, image); if (err.code != heif_error_Ok) { return 0; } int chroma_width = (width+1)/2; int chroma_height = (height+1)/2; err = heif_image_add_plane(*image, heif_channel_Y, width, height, 8); assert(err.code == heif_error_Ok); err = heif_image_add_plane(*image, heif_channel_Cb, chroma_width, chroma_height, 8); assert(err.code == heif_error_Ok); err = heif_image_add_plane(*image, heif_channel_Cr, chroma_width, chroma_height, 8); assert(err.code == heif_error_Ok); int stride; uint8_t* plane; plane = heif_image_get_plane(*image, heif_channel_Y, &stride); generate_plane(width, height, plane, stride); plane = heif_image_get_plane(*image, heif_channel_Cb, &stride); generate_plane(chroma_width, chroma_height, plane, stride); plane = heif_image_get_plane(*image, heif_channel_Cr, &stride); generate_plane(chroma_width, chroma_height, plane, stride); return 2; } class MemoryWriter { public: MemoryWriter() : data_(nullptr), size_(0), capacity_(0) {} ~MemoryWriter() { free(data_); } const uint8_t* data() const { return data_; } size_t size() const { return size_; } void write(const void* data, size_t size) { if (capacity_ - size_ < size) { size_t new_capacity = capacity_ + size; uint8_t* new_data = static_cast(malloc(new_capacity)); assert(new_data); if (data_) { memcpy(new_data, data_, size_); free(data_); } data_ = new_data; capacity_ = new_capacity; } memcpy(&data_[size_], data, size); size_ += size; } public: uint8_t* data_; size_t size_; size_t capacity_; }; static struct heif_error writer_write(struct heif_context* ctx, const void* data, size_t size, void* userdata) { MemoryWriter* writer = static_cast(userdata); writer->write(data, size); struct heif_error err{heif_error_Ok, heif_suberror_Unspecified, nullptr}; return err; } extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { struct heif_error err; std::shared_ptr context(heif_context_alloc(), [](heif_context* c) { heif_context_free(c); }); assert(context); if (size < 2) { return 0; } int quality = (data[0] & 0x7F) % 101; bool lossless = (data[1] & 0x80); bool use_avif = (data[1] & 0x40); data += 2; size -= 2; static const size_t kMaxEncoders = 5; const heif_encoder_descriptor* encoder_descriptors[kMaxEncoders]; int count = heif_context_get_encoder_descriptors(context.get(), use_avif ? heif_compression_AV1 : heif_compression_HEVC, nullptr, encoder_descriptors, kMaxEncoders); assert(count >= 0); if (count == 0) { return 0; } heif_encoder* encoder; err = heif_context_get_encoder(context.get(), encoder_descriptors[0], &encoder); if (err.code != heif_error_Ok) { return 0; } heif_encoder_set_lossy_quality(encoder, quality); heif_encoder_set_lossless(encoder, lossless); struct heif_image* image = nullptr; size_t read = create_image(data, size, &image); assert(read <= size); if (!read) { heif_image_release(image); heif_encoder_release(encoder); return 0; } data += read; size -= read; struct heif_image_handle* img; err = heif_context_encode_image(context.get(), image, encoder, nullptr, &img); heif_image_release(image); heif_encoder_release(encoder); if (err.code != heif_error_Ok) { return 0; } heif_image_handle_release(img); MemoryWriter writer; struct heif_writer w; w.writer_api_version = 1; w.write = writer_write; heif_context_write(context.get(), &w, &writer); assert(writer.size() > 0); return 0; } libheif-1.12.0/libheif/heif_encoder_aom.h0000644000175000017500000000163014003350413015130 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_ENCODER_AOM_H #define LIBHEIF_HEIF_ENCODER_AOM_H const struct heif_encoder_plugin* get_encoder_plugin_aom(); #endif libheif-1.12.0/libheif/heif_encoder_aom.cc0000664000175000017500000006160514043747772015326 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif.h" #include "heif_plugin.h" #include "heif_avif.h" #include "heif_api_structs.h" #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include #include struct encoder_struct_aom { // --- parameters bool realtime_mode; int cpu_used; // = parameter 'speed'. I guess this is a better name than 'cpu_used'. int quality; int min_q; int max_q; int threads; aom_tune_metric tune; heif_chroma chroma = heif_chroma_420; // --- output std::vector compressedData; bool data_read = false; }; static const char* kError_out_of_memory = "Out of memory"; static const char* kError_encode_frame = "Failed to encode frame"; static const char* kParam_min_q = "min-q"; static const char* kParam_max_q = "max-q"; static const char* kParam_threads = "threads"; static const char* kParam_realtime = "realtime"; static const char* kParam_speed = "speed"; static const char* kParam_chroma = "chroma"; static const char* const kParam_chroma_valid_values[] = { "420", "422", "444", nullptr }; static const char* kParam_tune = "tune"; static const char* const kParam_tune_valid_values[] = { "psnr", "ssim", nullptr }; static const int AOM_PLUGIN_PRIORITY = 40; #define MAX_PLUGIN_NAME_LENGTH 80 static char plugin_name[MAX_PLUGIN_NAME_LENGTH]; static void aom_set_default_parameters(void* encoder); static const char* aom_plugin_name() { if (strlen(aom_codec_iface_name(aom_codec_av1_cx())) < MAX_PLUGIN_NAME_LENGTH) { strcpy(plugin_name, aom_codec_iface_name(aom_codec_av1_cx())); } else { strcpy(plugin_name, "AOMedia AV1 encoder"); } return plugin_name; } #define MAX_NPARAMETERS 10 static struct heif_encoder_parameter aom_encoder_params[MAX_NPARAMETERS]; static const struct heif_encoder_parameter* aom_encoder_parameter_ptrs[MAX_NPARAMETERS + 1]; static void aom_init_parameters() { struct heif_encoder_parameter* p = aom_encoder_params; const struct heif_encoder_parameter** d = aom_encoder_parameter_ptrs; int i = 0; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_realtime; p->type = heif_encoder_parameter_type_boolean; p->boolean.default_value = false; p->has_default = true; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_speed; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 5; p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 0; if (aom_codec_version_major() >= 3) { p->integer.maximum = 9; } else { p->integer.maximum = 8; } p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_threads; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 4; p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 1; p->integer.maximum = 16; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = heif_encoder_parameter_name_quality; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 50; p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 0; p->integer.maximum = 100; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = heif_encoder_parameter_name_lossless; p->type = heif_encoder_parameter_type_boolean; p->boolean.default_value = false; p->has_default = true; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_chroma; p->type = heif_encoder_parameter_type_string; p->string.default_value = "420"; p->has_default = true; p->string.valid_values = kParam_chroma_valid_values; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_tune; p->type = heif_encoder_parameter_type_string; p->string.default_value = "ssim"; p->has_default = true; p->string.valid_values = kParam_tune_valid_values; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_min_q; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 1; p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 1; p->integer.maximum = 62; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; assert(i < MAX_NPARAMETERS); p->version = 2; p->name = kParam_max_q; p->type = heif_encoder_parameter_type_integer; p->integer.default_value = 63; p->has_default = true; p->integer.have_minimum_maximum = true; p->integer.minimum = 0; p->integer.maximum = 63; p->integer.valid_values = NULL; p->integer.num_valid_values = 0; d[i++] = p++; d[i++] = nullptr; } const struct heif_encoder_parameter** aom_list_parameters(void* encoder) { return aom_encoder_parameter_ptrs; } static void aom_init_plugin() { aom_init_parameters(); } static void aom_cleanup_plugin() { } struct heif_error aom_new_encoder(void** enc) { struct encoder_struct_aom* encoder = new encoder_struct_aom(); struct heif_error err = heif_error_ok; *enc = encoder; // set default parameters aom_set_default_parameters(encoder); return err; } void aom_free_encoder(void* encoder_raw) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; delete encoder; } struct heif_error aom_set_parameter_quality(void* encoder_raw, int quality) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; if (quality < 0 || quality > 100) { return heif_error_invalid_parameter_value; } encoder->quality = quality; return heif_error_ok; } struct heif_error aom_get_parameter_quality(void* encoder_raw, int* quality) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; *quality = encoder->quality; return heif_error_ok; } struct heif_error aom_set_parameter_lossless(void* encoder_raw, int enable) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; if (enable) { encoder->min_q = 0; encoder->max_q = 0; } return heif_error_ok; } struct heif_error aom_get_parameter_lossless(void* encoder_raw, int* enable) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; *enable = (encoder->min_q == 0 && encoder->max_q == 0); return heif_error_ok; } struct heif_error aom_set_parameter_logging_level(void* encoder_raw, int logging) { #if 0 struct encoder_struct_x265* encoder = (struct encoder_struct_x265*)encoder_raw; if (logging<0 || logging>4) { return heif_error_invalid_parameter_value; } encoder->logLevel = logging; #endif return heif_error_ok; } struct heif_error aom_get_parameter_logging_level(void* encoder_raw, int* loglevel) { #if 0 struct encoder_struct_x265* encoder = (struct encoder_struct_x265*)encoder_raw; *loglevel = encoder->logLevel; #else *loglevel = 0; #endif return heif_error_ok; } #define set_value(paramname, paramvar) if (strcmp(name, paramname)==0) { encoder->paramvar = value; return heif_error_ok; } #define get_value(paramname, paramvar) if (strcmp(name, paramname)==0) { *value = encoder->paramvar; return heif_error_ok; } struct heif_error aom_set_parameter_integer(void* encoder_raw, const char* name, int value) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; if (strcmp(name, heif_encoder_parameter_name_quality) == 0) { return aom_set_parameter_quality(encoder, value); } else if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return aom_set_parameter_lossless(encoder, value); } set_value(kParam_min_q, min_q); set_value(kParam_max_q, max_q); set_value(kParam_threads, threads); set_value(kParam_speed, cpu_used); return heif_error_unsupported_parameter; } struct heif_error aom_get_parameter_integer(void* encoder_raw, const char* name, int* value) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; if (strcmp(name, heif_encoder_parameter_name_quality) == 0) { return aom_get_parameter_quality(encoder, value); } else if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return aom_get_parameter_lossless(encoder, value); } get_value(kParam_min_q, min_q); get_value(kParam_max_q, max_q); get_value(kParam_threads, threads); get_value(kParam_speed, cpu_used); return heif_error_unsupported_parameter; } struct heif_error aom_set_parameter_boolean(void* encoder_raw, const char* name, int value) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return aom_set_parameter_lossless(encoder, value); } set_value(kParam_realtime, realtime_mode); return heif_error_unsupported_parameter; } struct heif_error aom_get_parameter_boolean(void* encoder_raw, const char* name, int* value) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; if (strcmp(name, heif_encoder_parameter_name_lossless) == 0) { return aom_get_parameter_lossless(encoder, value); } get_value(kParam_realtime, realtime_mode); return heif_error_unsupported_parameter; } struct heif_error aom_set_parameter_string(void* encoder_raw, const char* name, const char* value) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; if (strcmp(name, kParam_chroma) == 0) { if (strcmp(value, "420") == 0) { encoder->chroma = heif_chroma_420; return heif_error_ok; } else if (strcmp(value, "422") == 0) { encoder->chroma = heif_chroma_422; return heif_error_ok; } else if (strcmp(value, "444") == 0) { encoder->chroma = heif_chroma_444; return heif_error_ok; } else { return heif_error_invalid_parameter_value; } } if (strcmp(name, kParam_tune) == 0) { if (strcmp(value, "psnr") == 0) { encoder->tune = AOM_TUNE_PSNR; return heif_error_ok; } else if (strcmp(value, "ssim") == 0) { encoder->tune = AOM_TUNE_SSIM; return heif_error_ok; } else { return heif_error_invalid_parameter_value; } } return heif_error_unsupported_parameter; } static void save_strcpy(char* dst, int dst_size, const char* src) { strncpy(dst, src, dst_size - 1); dst[dst_size - 1] = 0; } struct heif_error aom_get_parameter_string(void* encoder_raw, const char* name, char* value, int value_size) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; if (strcmp(name, kParam_chroma) == 0) { switch (encoder->chroma) { case heif_chroma_420: save_strcpy(value, value_size, "420"); break; case heif_chroma_422: save_strcpy(value, value_size, "422"); break; case heif_chroma_444: save_strcpy(value, value_size, "444"); break; default: assert(false); return heif_error_invalid_parameter_value; } } else if (strcmp(name, kParam_tune) == 0) { switch (encoder->tune) { case AOM_TUNE_PSNR: save_strcpy(value, value_size, "psnr"); break; case AOM_TUNE_SSIM: save_strcpy(value, value_size, "ssim"); break; default: assert(false); return heif_error_invalid_parameter_value; } } return heif_error_unsupported_parameter; } static void aom_set_default_parameters(void* encoder) { for (const struct heif_encoder_parameter** p = aom_encoder_parameter_ptrs; *p; p++) { const struct heif_encoder_parameter* param = *p; if (param->has_default) { switch (param->type) { case heif_encoder_parameter_type_integer: aom_set_parameter_integer(encoder, param->name, param->integer.default_value); break; case heif_encoder_parameter_type_boolean: aom_set_parameter_boolean(encoder, param->name, param->boolean.default_value); break; case heif_encoder_parameter_type_string: aom_set_parameter_string(encoder, param->name, param->string.default_value); break; } } } } void aom_query_input_colorspace(heif_colorspace* colorspace, heif_chroma* chroma) { *colorspace = heif_colorspace_YCbCr; *chroma = heif_chroma_420; } void aom_query_input_colorspace2(void* encoder_raw, heif_colorspace* colorspace, heif_chroma* chroma) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; if (*colorspace == heif_colorspace_monochrome) { // keep the monochrome colorspace } else { *colorspace = heif_colorspace_YCbCr; *chroma = encoder->chroma; } } void aom_query_encoded_size(void* encoder, uint32_t input_width, uint32_t input_height, uint32_t* encoded_width, uint32_t* encoded_height) { *encoded_width = std::max(input_width, 16U); *encoded_height = std::max(input_height, 16U); } static heif_error encode_frame(aom_codec_ctx_t* codec, aom_image_t* img) { //aom_codec_iter_t iter = NULL; int frame_index = 0; // only encoding a single frame int flags = 0; // no flags //const aom_codec_cx_pkt_t *pkt = NULL; const aom_codec_err_t res = aom_codec_encode(codec, img, frame_index, 1, flags); if (res != AOM_CODEC_OK) { struct heif_error err = { heif_error_Encoder_plugin_error, heif_suberror_Unspecified, kError_encode_frame }; return err; } return heif_error_ok; } struct heif_error aom_encode_image(void* encoder_raw, const struct heif_image* image, heif_image_input_class input_class) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; struct heif_error err; // --- round image size to minimum size uint32_t rounded_width, rounded_height; aom_query_encoded_size(encoder, image->image->get_width(), image->image->get_height(), &rounded_width, &rounded_height); bool success = image->image->extend_padding_to_size(rounded_width, rounded_height); if (!success) { err = {heif_error_Memory_allocation_error, heif_suberror_Unspecified, kError_out_of_memory}; return err; } const int source_width = heif_image_get_width(image, heif_channel_Y); const int source_height = heif_image_get_height(image, heif_channel_Y); const heif_chroma chroma = heif_image_get_chroma_format(image); int bpp_y = heif_image_get_bits_per_pixel_range(image, heif_channel_Y); // --- copy libheif image to aom image aom_image_t input_image; aom_img_fmt_t img_format = AOM_IMG_FMT_NONE; int chroma_height = 0; switch (chroma) { case heif_chroma_420: case heif_chroma_monochrome: img_format = AOM_IMG_FMT_I420; chroma_height = (source_height+1)/2; break; case heif_chroma_422: img_format = AOM_IMG_FMT_I422; chroma_height = (source_height+1)/2; break; case heif_chroma_444: img_format = AOM_IMG_FMT_I444; chroma_height = source_height; break; default: img_format = AOM_IMG_FMT_NONE; assert(false); break; } if (bpp_y > 8) { img_format = (aom_img_fmt_t) (img_format | AOM_IMG_FMT_HIGHBITDEPTH); } if (!aom_img_alloc(&input_image, img_format, source_width, source_height, 1)) { err = {heif_error_Memory_allocation_error, heif_suberror_Unspecified, "Failed to allocate image"}; return err; } for (int plane = 0; plane < 3; plane++) { unsigned char* buf = input_image.planes[plane]; const int stride = input_image.stride[plane]; if (chroma == heif_chroma_monochrome && plane != 0) { if (bpp_y == 8) { memset(buf, 128, chroma_height * stride); } else { uint16_t* buf16 = (uint16_t*) buf; uint16_t half_range = (uint16_t) (1 << (bpp_y - 1)); for (int i = 0; i < chroma_height * stride / 2; i++) { buf16[i] = half_range; } } continue; } /* const int w = aom_img_plane_width(img, plane) * ((img->fmt & AOM_IMG_FMT_HIGHBITDEPTH) ? 2 : 1); const int h = aom_img_plane_height(img, plane); */ int in_stride = 0; const uint8_t* in_p = heif_image_get_plane_readonly(image, (heif_channel) plane, &in_stride); int w = source_width; int h = source_height; if (plane != 0) { if (chroma != heif_chroma_444) { w = (w + 1) / 2; } if (chroma == heif_chroma_420) { h = (h + 1) / 2; } assert(w == heif_image_get_width(image, (heif_channel) plane)); assert(h == heif_image_get_height(image, (heif_channel) plane)); } if (bpp_y > 8) { w *= 2; } for (int y = 0; y < h; y++) { memcpy(buf, &in_p[y * in_stride], w); buf += stride; } } // --- configure codec aom_codec_iface_t* iface; aom_codec_ctx_t codec; iface = aom_codec_av1_cx(); //encoder->encoder = get_aom_encoder_by_name("av1"); if (!iface) { err = {heif_error_Unsupported_feature, heif_suberror_Unsupported_codec, "Unsupported codec: AOMedia Project AV1 Encoder"}; return err; } unsigned int aomUsage = 0; #if defined(AOM_USAGE_REALTIME) // aom 2.0 aomUsage = (encoder->realtime_mode ? AOM_USAGE_REALTIME : AOM_USAGE_GOOD_QUALITY); #endif aom_codec_enc_cfg_t cfg; aom_codec_err_t res = aom_codec_enc_config_default(iface, &cfg, aomUsage); if (res) { err = {heif_error_Encoder_plugin_error, heif_suberror_Unspecified, "Failed to get default codec config"}; return err; } heif::Box_av1C::configuration inout_config; heif::fill_av1C_configuration(&inout_config, image->image); cfg.g_w = source_width; cfg.g_h = source_height; // Set the max number of frames to encode to 1. This makes the libaom encoder // set still_picture and reduced_still_picture_header to 1 in the AV1 sequence // header OBU. cfg.g_limit = 1; cfg.g_profile = inout_config.seq_profile; cfg.g_bit_depth = (aom_bit_depth_t) bpp_y; cfg.g_input_bit_depth = bpp_y; cfg.rc_end_usage = AOM_Q; cfg.rc_min_quantizer = encoder->min_q; cfg.rc_max_quantizer = encoder->max_q; cfg.g_error_resilient = 0; cfg.g_threads = encoder->threads; if (chroma == heif_chroma_monochrome) { cfg.monochrome = 1; } // --- initialize codec aom_codec_flags_t encoder_flags = 0; if (bpp_y > 8) { encoder_flags = (aom_codec_flags_t) (encoder_flags | AOM_CODEC_USE_HIGHBITDEPTH); } if (aom_codec_enc_init(&codec, iface, &cfg, encoder_flags)) { err = {heif_error_Encoder_plugin_error, heif_suberror_Unspecified, "Failed to initialize encoder"}; return err; } aom_codec_control(&codec, AOME_SET_CPUUSED, encoder->cpu_used); int cq_level = ((100 - encoder->quality) * 63 + 50) / 100; aom_codec_control(&codec, AOME_SET_CQ_LEVEL, cq_level); if (encoder->threads > 1) { #if defined(AV1E_SET_ROW_MT) // aom 2.0 aom_codec_control(&encoder->codec, AV1E_SET_ROW_MT, 1); #endif } auto nclx = image->image->get_color_profile_nclx(); // In aom, color_range defaults to limited range (0). Set it to full range (1). aom_codec_control(&codec, AV1E_SET_COLOR_RANGE, nclx ? nclx->get_full_range_flag() : 1); if (nclx && (input_class == heif_image_input_class_normal || input_class == heif_image_input_class_thumbnail)) { aom_codec_control(&codec, AV1E_SET_COLOR_PRIMARIES, nclx->get_colour_primaries()); aom_codec_control(&codec, AV1E_SET_MATRIX_COEFFICIENTS, nclx->get_matrix_coefficients()); aom_codec_control(&codec, AV1E_SET_TRANSFER_CHARACTERISTICS, nclx->get_transfer_characteristics()); } aom_codec_control(&codec, AOME_SET_TUNING, encoder->tune); // --- encode frame err = encode_frame(&codec, &input_image); //, frame_count++, flags, writer); if (err.code != heif_error_Ok) { return err; } encoder->compressedData.clear(); const aom_codec_cx_pkt_t* pkt = NULL; aom_codec_iter_t iter = NULL; // for extracting the compressed packets while ((pkt = aom_codec_get_cx_data(&codec, &iter)) != NULL) { if (pkt->kind == AOM_CODEC_CX_FRAME_PKT) { //std::cerr.write((char*)pkt->data.frame.buf, pkt->data.frame.sz); //printf("packet of size: %d\n",(int)pkt->data.frame.sz); // TODO: split the received data into separate OBUs // This allows libheif to easily extract the sequence header for the av1C header size_t n = pkt->data.frame.sz; size_t oldSize = encoder->compressedData.size(); encoder->compressedData.resize(oldSize + n); memcpy(encoder->compressedData.data() + oldSize, pkt->data.frame.buf, n); encoder->data_read = false; } } int flags = 0; res = aom_codec_encode(&codec, NULL, -1, 0, flags); if (res != AOM_CODEC_OK) { err = {heif_error_Encoder_plugin_error, heif_suberror_Unspecified, kError_encode_frame}; return err; } iter = NULL; while ((pkt = aom_codec_get_cx_data(&codec, &iter)) != NULL) { if (pkt->kind == AOM_CODEC_CX_FRAME_PKT) { //std::cerr.write((char*)pkt->data.frame.buf, pkt->data.frame.sz); //printf("packet of size: %d\n",(int)pkt->data.frame.sz); // TODO: split the received data into separate OBUs // This allows libheif to easily extract the sequence header for the av1C header size_t n = pkt->data.frame.sz; size_t oldSize = encoder->compressedData.size(); encoder->compressedData.resize(oldSize + n); memcpy(encoder->compressedData.data() + oldSize, pkt->data.frame.buf, n); encoder->data_read = false; } } // --- clean up aom_img_free(&input_image); if (aom_codec_destroy(&codec)) { err = {heif_error_Encoder_plugin_error, heif_suberror_Unspecified, "Failed to destroy codec"}; return err; } return heif_error_ok; } struct heif_error aom_get_compressed_data(void* encoder_raw, uint8_t** data, int* size, enum heif_encoded_data_type* type) { struct encoder_struct_aom* encoder = (struct encoder_struct_aom*) encoder_raw; if (encoder->data_read) { *size = 0; *data = nullptr; } else { *size = (int) encoder->compressedData.size(); *data = encoder->compressedData.data(); encoder->data_read = true; } return heif_error_ok; } static const struct heif_encoder_plugin encoder_plugin_aom { /* plugin_api_version */ 3, /* compression_format */ heif_compression_AV1, /* id_name */ "aom", /* priority */ AOM_PLUGIN_PRIORITY, /* supports_lossy_compression */ true, /* supports_lossless_compression */ true, /* get_plugin_name */ aom_plugin_name, /* init_plugin */ aom_init_plugin, /* cleanup_plugin */ aom_cleanup_plugin, /* new_encoder */ aom_new_encoder, /* free_encoder */ aom_free_encoder, /* set_parameter_quality */ aom_set_parameter_quality, /* get_parameter_quality */ aom_get_parameter_quality, /* set_parameter_lossless */ aom_set_parameter_lossless, /* get_parameter_lossless */ aom_get_parameter_lossless, /* set_parameter_logging_level */ aom_set_parameter_logging_level, /* get_parameter_logging_level */ aom_get_parameter_logging_level, /* list_parameters */ aom_list_parameters, /* set_parameter_integer */ aom_set_parameter_integer, /* get_parameter_integer */ aom_get_parameter_integer, /* set_parameter_boolean */ aom_set_parameter_boolean, /* get_parameter_boolean */ aom_get_parameter_boolean, /* set_parameter_string */ aom_set_parameter_string, /* get_parameter_string */ aom_get_parameter_string, /* query_input_colorspace */ aom_query_input_colorspace, /* encode_image */ aom_encode_image, /* get_compressed_data */ aom_get_compressed_data, /* query_input_colorspace (v2) */ aom_query_input_colorspace2, /* query_encoded_size (v3) */ aom_query_encoded_size }; const struct heif_encoder_plugin* get_encoder_plugin_aom() { return &encoder_plugin_aom; } libheif-1.12.0/libheif/box.cc0000664000175000017500000022351314043747772012646 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include "box.h" #include "heif_limits.h" #include "nclx.h" #include #include #include #include #include #include using namespace heif; heif::Error heif::Error::Ok(heif_error_Ok); Fraction::Fraction(int32_t num, int32_t den) { // Reduce resolution of fraction until we are in a safe range. // We need this as adding fractions may lead to very large denominators // (e.g. 0x10000 * 0x10000 > 0x100000000 -> overflow, leading to integer 0) numerator = num; denominator = den; while (denominator > MAX_FRACTION_VALUE || denominator < -MAX_FRACTION_VALUE) { numerator /= 2; denominator /= 2; } while (numerator > MAX_FRACTION_VALUE || numerator < -MAX_FRACTION_VALUE) { numerator /= 2; denominator /= 2; } } Fraction Fraction::operator+(const Fraction& b) const { if (denominator == b.denominator) { return Fraction{numerator + b.numerator, denominator}; } else { return Fraction{numerator * b.denominator + b.numerator * denominator, denominator * b.denominator}; } } Fraction Fraction::operator-(const Fraction& b) const { if (denominator == b.denominator) { return Fraction{numerator - b.numerator, denominator}; } else { return Fraction{numerator * b.denominator - b.numerator * denominator, denominator * b.denominator}; } } Fraction Fraction::operator+(int v) const { return Fraction{numerator + v * denominator, denominator}; } Fraction Fraction::operator-(int v) const { return Fraction{numerator - v * denominator, denominator}; } Fraction Fraction::operator/(int v) const { return Fraction{numerator, denominator * v}; } int Fraction::round_down() const { return numerator / denominator; } int Fraction::round_up() const { return (numerator + denominator - 1) / denominator; } int Fraction::round() const { return (numerator + denominator / 2) / denominator; } bool Fraction::is_valid() const { return denominator != 0; } uint32_t from_fourcc(const char* string) { return ((string[0] << 24) | (string[1] << 16) | (string[2] << 8) | (string[3])); } static std::string to_fourcc(uint32_t code) { std::string str(" "); str[0] = static_cast((code >> 24) & 0xFF); str[1] = static_cast((code >> 16) & 0xFF); str[2] = static_cast((code >> 8) & 0xFF); str[3] = static_cast((code >> 0) & 0xFF); return str; } heif::BoxHeader::BoxHeader() { } std::vector heif::BoxHeader::get_type() const { if (m_type == fourcc("uuid")) { return m_uuid_type; } else { std::vector type(4); type[0] = static_cast((m_type >> 24) & 0xFF); type[1] = static_cast((m_type >> 16) & 0xFF); type[2] = static_cast((m_type >> 8) & 0xFF); type[3] = static_cast((m_type >> 0) & 0xFF); return type; } } std::string heif::BoxHeader::get_type_string() const { if (m_type == fourcc("uuid")) { // 8-4-4-4-12 std::ostringstream sstr; sstr << std::hex; sstr << std::setfill('0'); sstr << std::setw(2); for (int i = 0; i < 16; i++) { if (i == 4 || i == 6 || i == 8 || i == 10) { sstr << '-'; } sstr << ((int) m_uuid_type[i]); } return sstr.str(); } else { return to_fourcc(m_type); } } heif::Error heif::BoxHeader::parse(BitstreamRange& range) { StreamReader::grow_status status; status = range.wait_for_available_bytes(8); if (status != StreamReader::size_reached) { // TODO: return recoverable error at timeout return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } m_size = range.read32(); m_type = range.read32(); m_header_size = 8; if (m_size == 1) { status = range.wait_for_available_bytes(8); if (status != StreamReader::size_reached) { // TODO: return recoverable error at timeout return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } uint64_t high = range.read32(); uint64_t low = range.read32(); m_size = (high << 32) | low; m_header_size += 8; std::stringstream sstr; sstr << "Box size " << m_size << " exceeds security limit."; if (m_size > MAX_LARGE_BOX_SIZE) { return Error(heif_error_Memory_allocation_error, heif_suberror_Security_limit_exceeded, sstr.str()); } } if (m_type == fourcc("uuid")) { status = range.wait_for_available_bytes(16); if (status != StreamReader::size_reached) { // TODO: return recoverable error at timeout return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } if (range.prepare_read(16)) { m_uuid_type.resize(16); range.get_istream()->read((char*) m_uuid_type.data(), 16); } m_header_size += 16; } return range.get_error(); } size_t heif::BoxHeader::reserve_box_header_space(StreamWriter& writer) const { size_t start_pos = writer.get_position(); int header_size = is_full_box_header() ? (8 + 4) : 8; writer.skip(header_size); return start_pos; } heif::Error heif::BoxHeader::prepend_header(StreamWriter& writer, size_t box_start) const { const int reserved_header_size = is_full_box_header() ? (8 + 4) : 8; // determine header size int header_size = 0; header_size += 8; // normal header size if (is_full_box_header()) { header_size += 4; } if (m_type == fourcc("uuid")) { header_size += 16; } bool large_size = false; size_t data_size = writer.data_size() - box_start - reserved_header_size; if (data_size + header_size > 0xFFFFFFFF) { header_size += 8; large_size = true; } size_t box_size = data_size + header_size; // --- write header writer.set_position(box_start); assert(header_size >= reserved_header_size); writer.insert(header_size - reserved_header_size); if (large_size) { writer.write32(1); } else { assert(box_size <= 0xFFFFFFFF); writer.write32((uint32_t) box_size); } writer.write32(m_type); if (large_size) { writer.write64(box_size); } if (m_type == fourcc("uuid")) { assert(m_uuid_type.size() == 16); writer.write(m_uuid_type); } if (is_full_box_header()) { assert((m_flags & ~0x00FFFFFF) == 0); writer.write32((m_version << 24) | m_flags); } writer.set_position_to_end(); // Note: should we move to the end of the box after writing the header? return Error::Ok; } std::string BoxHeader::dump(Indent& indent) const { std::ostringstream sstr; sstr << indent << "Box: " << get_type_string() << " -----\n"; sstr << indent << "size: " << get_box_size() << " (header size: " << get_header_size() << ")\n"; if (m_is_full_box) { sstr << indent << "version: " << ((int) m_version) << "\n" << indent << "flags: " << std::hex << m_flags << "\n"; } return sstr.str(); } Error Box::parse(BitstreamRange& range) { // skip box if (get_box_size() == size_until_end_of_file) { range.skip_to_end_of_file(); } else { uint64_t content_size = get_box_size() - get_header_size(); if (range.prepare_read(content_size)) { if (content_size > MAX_BOX_SIZE) { return Error(heif_error_Invalid_input, heif_suberror_Invalid_box_size); } range.get_istream()->seek_cur(get_box_size() - get_header_size()); } } // Note: seekg() clears the eof flag and it will not be set again afterwards, // hence we have to test for the fail flag. return range.get_error(); } Error BoxHeader::parse_full_box_header(BitstreamRange& range) { uint32_t data = range.read32(); m_version = static_cast(data >> 24); m_flags = data & 0x00FFFFFF; m_is_full_box = true; m_header_size += 4; return range.get_error(); } Error Box::read(BitstreamRange& range, std::shared_ptr* result) { BoxHeader hdr; Error err = hdr.parse(range); if (err) { return err; } if (range.error()) { return range.get_error(); } std::shared_ptr box; switch (hdr.get_short_type()) { case fourcc("ftyp"): box = std::make_shared(hdr); break; case fourcc("meta"): box = std::make_shared(hdr); break; case fourcc("hdlr"): box = std::make_shared(hdr); break; case fourcc("pitm"): box = std::make_shared(hdr); break; case fourcc("iloc"): box = std::make_shared(hdr); break; case fourcc("iinf"): box = std::make_shared(hdr); break; case fourcc("infe"): box = std::make_shared(hdr); break; case fourcc("iprp"): box = std::make_shared(hdr); break; case fourcc("ipco"): box = std::make_shared(hdr); break; case fourcc("ipma"): box = std::make_shared(hdr); break; case fourcc("ispe"): box = std::make_shared(hdr); break; case fourcc("auxC"): box = std::make_shared(hdr); break; case fourcc("irot"): box = std::make_shared(hdr); break; case fourcc("imir"): box = std::make_shared(hdr); break; case fourcc("clap"): box = std::make_shared(hdr); break; case fourcc("iref"): box = std::make_shared(hdr); break; case fourcc("hvcC"): box = std::make_shared(hdr); break; case fourcc("av1C"): box = std::make_shared(hdr); break; case fourcc("idat"): box = std::make_shared(hdr); break; case fourcc("grpl"): box = std::make_shared(hdr); break; case fourcc("dinf"): box = std::make_shared(hdr); break; case fourcc("dref"): box = std::make_shared(hdr); break; case fourcc("url "): box = std::make_shared(hdr); break; case fourcc("colr"): box = std::make_shared(hdr); break; case fourcc("pixi"): box = std::make_shared(hdr); break; default: box = std::make_shared(hdr); break; } if (hdr.get_box_size() < hdr.get_header_size()) { std::stringstream sstr; sstr << "Box size (" << hdr.get_box_size() << " bytes) smaller than header size (" << hdr.get_header_size() << " bytes)"; // Sanity check. return Error(heif_error_Invalid_input, heif_suberror_Invalid_box_size, sstr.str()); } if (range.get_nesting_level() > MAX_BOX_NESTING_LEVEL) { return Error(heif_error_Memory_allocation_error, heif_suberror_Security_limit_exceeded, "Security limit for maximum nesting of boxes has been exceeded"); } auto status = range.wait_for_available_bytes(hdr.get_box_size() - hdr.get_header_size()); if (status != StreamReader::size_reached) { // TODO: return recoverable error at timeout return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } // Security check: make sure that box size does not exceed int64 size. if (hdr.get_box_size() > (uint64_t) std::numeric_limits::max()) { return Error(heif_error_Invalid_input, heif_suberror_Invalid_box_size); } int64_t box_size = static_cast(hdr.get_box_size()); int64_t box_size_without_header = box_size - hdr.get_header_size(); // Box size may not be larger than remaining bytes in parent box. if (range.get_remaining_bytes() < box_size_without_header) { return Error(heif_error_Invalid_input, heif_suberror_Invalid_box_size); } // Create child bitstream range and read box from that range. BitstreamRange boxrange(range.get_istream(), box_size_without_header, &range); err = box->parse(boxrange); if (err == Error::Ok) { *result = std::move(box); } boxrange.skip_to_end_of_box(); return err; } std::string Box::dump(Indent& indent) const { std::ostringstream sstr; sstr << BoxHeader::dump(indent); return sstr.str(); } Error Box::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); Error err = write_children(writer); prepend_header(writer, box_start); return err; } std::shared_ptr Box::get_child_box(uint32_t short_type) const { for (auto& box : m_children) { if (box->get_short_type() == short_type) { return box; } } return nullptr; } std::vector> Box::get_child_boxes(uint32_t short_type) const { std::vector> result; for (auto& box : m_children) { if (box->get_short_type() == short_type) { result.push_back(box); } } return result; } Error Box::read_children(BitstreamRange& range, int max_number) { int count = 0; while (!range.eof() && !range.error()) { std::shared_ptr box; Error error = Box::read(range, &box); if (error != Error::Ok) { return error; } if (m_children.size() > MAX_CHILDREN_PER_BOX) { std::stringstream sstr; sstr << "Maximum number of child boxes " << MAX_CHILDREN_PER_BOX << " exceeded."; // Sanity check. return Error(heif_error_Memory_allocation_error, heif_suberror_Security_limit_exceeded, sstr.str()); } m_children.push_back(std::move(box)); // count the new child and end reading new children when we reached the expected number count++; if (max_number != READ_CHILDREN_ALL && count == max_number) { break; } } return range.get_error(); } Error Box::write_children(StreamWriter& writer) const { for (const auto& child : m_children) { Error err = child->write(writer); if (err) { return err; } } return Error::Ok; } std::string Box::dump_children(Indent& indent) const { std::ostringstream sstr; bool first = true; indent++; for (const auto& childBox : m_children) { if (first) { first = false; } else { sstr << indent << "\n"; } sstr << childBox->dump(indent); } indent--; return sstr.str(); } void Box::derive_box_version_recursive() { derive_box_version(); for (auto& child : m_children) { child->derive_box_version_recursive(); } } Error Box_ftyp::parse(BitstreamRange& range) { m_major_brand = range.read32(); m_minor_version = range.read32(); if (get_box_size() <= get_header_size() + 8) { // Sanity check. return Error(heif_error_Invalid_input, heif_suberror_Invalid_box_size, "ftyp box too small (less than 8 bytes)"); } uint64_t n_minor_brands = (get_box_size() - get_header_size() - 8) / 4; for (uint64_t i = 0; i < n_minor_brands && !range.error(); i++) { m_compatible_brands.push_back(range.read32()); } return range.get_error(); } bool Box_ftyp::has_compatible_brand(uint32_t brand) const { for (uint32_t b : m_compatible_brands) { if (b == brand) { return true; } } return false; } std::string Box_ftyp::dump(Indent& indent) const { std::ostringstream sstr; sstr << BoxHeader::dump(indent); sstr << indent << "major brand: " << to_fourcc(m_major_brand) << "\n" << indent << "minor version: " << m_minor_version << "\n" << indent << "compatible brands: "; bool first = true; for (uint32_t brand : m_compatible_brands) { if (first) { first = false; } else { sstr << ','; } sstr << to_fourcc(brand); } sstr << "\n"; return sstr.str(); } void Box_ftyp::add_compatible_brand(uint32_t brand) { // TODO: check whether brand already exists in the list m_compatible_brands.push_back(brand); } Error Box_ftyp::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); writer.write32(m_major_brand); writer.write32(m_minor_version); for (uint32_t b : m_compatible_brands) { writer.write32(b); } prepend_header(writer, box_start); return Error::Ok; } Error Box_meta::parse(BitstreamRange& range) { parse_full_box_header(range); /* uint64_t boxSizeLimit; if (get_box_size() == BoxHeader::size_until_end_of_file) { boxSizeLimit = sizeLimit; } else { boxSizeLimit = get_box_size() - get_header_size(); } */ return read_children(range); } std::string Box_meta::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << dump_children(indent); return sstr.str(); } Error Box_hdlr::parse(BitstreamRange& range) { parse_full_box_header(range); m_pre_defined = range.read32(); m_handler_type = range.read32(); for (int i = 0; i < 3; i++) { m_reserved[i] = range.read32(); } m_name = range.read_string(); return range.get_error(); } std::string Box_hdlr::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "pre_defined: " << m_pre_defined << "\n" << indent << "handler_type: " << to_fourcc(m_handler_type) << "\n" << indent << "name: " << m_name << "\n"; return sstr.str(); } Error Box_hdlr::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); writer.write32(m_pre_defined); writer.write32(m_handler_type); for (int i = 0; i < 3; i++) { writer.write32(m_reserved[i]); } writer.write(m_name); prepend_header(writer, box_start); return Error::Ok; } Error Box_pitm::parse(BitstreamRange& range) { parse_full_box_header(range); if (get_version() == 0) { m_item_ID = range.read16(); } else { m_item_ID = range.read32(); } return range.get_error(); } std::string Box_pitm::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "item_ID: " << m_item_ID << "\n"; return sstr.str(); } void Box_pitm::derive_box_version() { if (m_item_ID <= 0xFFFF) { set_version(0); } else { set_version(1); } } Error Box_pitm::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); if (get_version() == 0) { assert(m_item_ID <= 0xFFFF); writer.write16((uint16_t) m_item_ID); } else { writer.write32(m_item_ID); } prepend_header(writer, box_start); return Error::Ok; } Error Box_iloc::parse(BitstreamRange& range) { /* printf("box size: %d\n",get_box_size()); printf("header size: %d\n",get_header_size()); printf("start limit: %d\n",sizeLimit); */ parse_full_box_header(range); uint16_t values4 = range.read16(); int offset_size = (values4 >> 12) & 0xF; int length_size = (values4 >> 8) & 0xF; int base_offset_size = (values4 >> 4) & 0xF; int index_size = 0; if (get_version() > 1) { index_size = (values4 & 0xF); } int item_count; if (get_version() < 2) { item_count = range.read16(); } else { item_count = range.read32(); } // Sanity check. if (item_count > MAX_ILOC_ITEMS) { std::stringstream sstr; sstr << "iloc box contains " << item_count << " items, which exceeds the security limit of " << MAX_ILOC_ITEMS << " items."; return Error(heif_error_Memory_allocation_error, heif_suberror_Security_limit_exceeded, sstr.str()); } for (int i = 0; i < item_count; i++) { Item item; if (get_version() < 2) { item.item_ID = range.read16(); } else { item.item_ID = range.read32(); } if (get_version() >= 1) { values4 = range.read16(); item.construction_method = (values4 & 0xF); } item.data_reference_index = range.read16(); item.base_offset = 0; if (base_offset_size == 4) { item.base_offset = range.read32(); } else if (base_offset_size == 8) { item.base_offset = ((uint64_t) range.read32()) << 32; item.base_offset |= range.read32(); } int extent_count = range.read16(); // Sanity check. if (extent_count > MAX_ILOC_EXTENTS_PER_ITEM) { std::stringstream sstr; sstr << "Number of extents in iloc box (" << extent_count << ") exceeds security limit (" << MAX_ILOC_EXTENTS_PER_ITEM << ")\n"; return Error(heif_error_Memory_allocation_error, heif_suberror_Security_limit_exceeded, sstr.str()); } for (int e = 0; e < extent_count; e++) { Extent extent; if (get_version() > 1 && index_size > 0) { if (index_size == 4) { extent.index = range.read32(); } else if (index_size == 8) { extent.index = ((uint64_t) range.read32()) << 32; extent.index |= range.read32(); } } extent.offset = 0; if (offset_size == 4) { extent.offset = range.read32(); } else if (offset_size == 8) { extent.offset = ((uint64_t) range.read32()) << 32; extent.offset |= range.read32(); } extent.length = 0; if (length_size == 4) { extent.length = range.read32(); } else if (length_size == 8) { extent.length = ((uint64_t) range.read32()) << 32; extent.length |= range.read32(); } item.extents.push_back(extent); } if (!range.error()) { m_items.push_back(item); } } //printf("end limit: %d\n",sizeLimit); return range.get_error(); } std::string Box_iloc::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); for (const Item& item : m_items) { sstr << indent << "item ID: " << item.item_ID << "\n" << indent << " construction method: " << ((int) item.construction_method) << "\n" << indent << " data_reference_index: " << std::hex << item.data_reference_index << std::dec << "\n" << indent << " base_offset: " << item.base_offset << "\n"; sstr << indent << " extents: "; for (const Extent& extent : item.extents) { sstr << extent.offset << "," << extent.length; if (extent.index != 0) { sstr << ";index=" << extent.index; } sstr << " "; } sstr << "\n"; } return sstr.str(); } Error Box_iloc::read_data(const Item& item, std::shared_ptr istr, const std::shared_ptr& idat, std::vector* dest) const { //istr.clear(); for (const auto& extent : item.extents) { if (item.construction_method == 0) { // --- security check that we do not allocate too much memory size_t old_size = dest->size(); if (MAX_MEMORY_BLOCK_SIZE - old_size < extent.length) { std::stringstream sstr; sstr << "iloc box contained " << extent.length << " bytes, total memory size would be " << (old_size + extent.length) << " bytes, exceeding the security limit of " << MAX_MEMORY_BLOCK_SIZE << " bytes"; return Error(heif_error_Memory_allocation_error, heif_suberror_Security_limit_exceeded, sstr.str()); } // --- make sure that all data is available if (extent.offset > MAX_FILE_POS || item.base_offset > MAX_FILE_POS || extent.length > MAX_FILE_POS) { return Error(heif_error_Invalid_input, heif_suberror_Security_limit_exceeded, "iloc data pointers out of allowed range"); } StreamReader::grow_status status = istr->wait_for_file_size(extent.offset + item.base_offset + extent.length); if (status == StreamReader::size_beyond_eof) { // Out-of-bounds // TODO: I think we should not clear this. Maybe we want to try reading again later and // hence should not lose the data already read. dest->clear(); std::stringstream sstr; sstr << "Extent in iloc box references data outside of file bounds " << "(points to file position " << extent.offset + item.base_offset << ")\n"; return Error(heif_error_Invalid_input, heif_suberror_End_of_data, sstr.str()); } else if (status == StreamReader::timeout) { // TODO: maybe we should introduce some 'Recoverable error' instead of 'Invalid input' return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } // --- move file pointer to start of data bool success = istr->seek(extent.offset + item.base_offset); assert(success); (void) success; // --- read data dest->resize(static_cast(old_size + extent.length)); success = istr->read((char*) dest->data() + old_size, static_cast(extent.length)); assert(success); } else if (item.construction_method == 1) { if (!idat) { return Error(heif_error_Invalid_input, heif_suberror_No_idat_box, "idat box referenced in iref box is not present in file"); } idat->read_data(istr, extent.offset + item.base_offset, extent.length, *dest); } else { std::stringstream sstr; sstr << "Item construction method " << item.construction_method << " not implemented"; return Error(heif_error_Unsupported_feature, heif_suberror_No_idat_box, sstr.str()); } } return Error::Ok; } Error Box_iloc::append_data(heif_item_id item_ID, const std::vector& data, uint8_t construction_method) { // check whether this item ID already exists size_t idx; for (idx = 0; idx < m_items.size(); idx++) { if (m_items[idx].item_ID == item_ID) { break; } } // item does not exist -> add a new one to the end if (idx == m_items.size()) { Item item; item.item_ID = item_ID; item.construction_method = construction_method; m_items.push_back(item); } if (m_items[idx].construction_method != construction_method) { // TODO: return error: construction methods do not match } Extent extent; extent.data = data; if (construction_method==1) { extent.offset = m_idat_offset; extent.length = data.size(); m_idat_offset += (int)data.size(); } m_items[idx].extents.push_back(std::move(extent)); return Error::Ok; } void Box_iloc::derive_box_version() { int min_version = m_user_defined_min_version; if (m_items.size() > 0xFFFF) { min_version = std::max(min_version, 2); } m_offset_size = 0; m_length_size = 0; m_base_offset_size = 0; m_index_size = 0; for (const auto& item : m_items) { // check item_ID size if (item.item_ID > 0xFFFF) { min_version = std::max(min_version, 2); } // check construction method if (item.construction_method != 0) { min_version = std::max(min_version, 1); } // base offset size /* if (item.base_offset > 0xFFFFFFFF) { m_base_offset_size = 8; } else if (item.base_offset > 0) { m_base_offset_size = 4; } */ /* for (const auto& extent : item.extents) { // extent index size if (extent.index != 0) { min_version = std::max(min_version, 1); m_index_size = 4; } if (extent.index > 0xFFFFFFFF) { m_index_size = 8; } // extent offset size if (extent.offset > 0xFFFFFFFF) { m_offset_size = 8; } else { m_offset_size = 4; } // extent length size if (extent.length > 0xFFFFFFFF) { m_length_size = 8; } else { m_length_size = 4; } } */ } m_offset_size = 4; m_length_size = 4; m_base_offset_size = 4; // TODO: or could be 8 if we write >4GB files m_index_size = 0; set_version((uint8_t) min_version); } Error Box_iloc::write(StreamWriter& writer) const { // --- write idat size_t sum_idat_size = 0; for (const auto& item : m_items) { if (item.construction_method == 1) { for (const auto& extent : item.extents) { sum_idat_size += extent.data.size(); } } } if (sum_idat_size > 0) { writer.write32((uint32_t) (sum_idat_size + 8)); writer.write32(fourcc("idat")); for (auto& item : m_items) { if (item.construction_method == 1) { for (auto& extent : item.extents) { writer.write(extent.data); } } } } // --- write iloc box size_t box_start = reserve_box_header_space(writer); m_iloc_box_start = writer.get_position(); int nSkip = 0; nSkip += 2; nSkip += (get_version() < 2) ? 2 : 4; // item_count for (const auto& item : m_items) { nSkip += (get_version() < 2) ? 2 : 4; // item_ID nSkip += (get_version() >= 1) ? 2 : 0; // construction method nSkip += 4 + m_base_offset_size; for (const auto& extent : item.extents) { (void) extent; if (get_version() >= 1) { nSkip += m_index_size; } nSkip += m_offset_size + m_length_size; } } writer.skip(nSkip); prepend_header(writer, box_start); return Error::Ok; } Error Box_iloc::write_mdat_after_iloc(StreamWriter& writer) { // --- compute sum of all mdat data size_t sum_mdat_size = 0; for (const auto& item : m_items) { if (item.construction_method == 0) { for (const auto& extent : item.extents) { sum_mdat_size += extent.data.size(); } } } if (sum_mdat_size > 0xFFFFFFFF) { // TODO: box size > 4 GB } // --- write mdat box writer.write32((uint32_t) (sum_mdat_size + 8)); writer.write32(fourcc("mdat")); for (auto& item : m_items) { if (item.construction_method == 0) { item.base_offset = writer.get_position(); for (auto& extent : item.extents) { extent.offset = writer.get_position() - item.base_offset; extent.length = extent.data.size(); writer.write(extent.data); } } } // --- patch iloc box patch_iloc_header(writer); return Error::Ok; } void Box_iloc::patch_iloc_header(StreamWriter& writer) const { size_t old_pos = writer.get_position(); writer.set_position(m_iloc_box_start); writer.write8((uint8_t) ((m_offset_size << 4) | (m_length_size))); writer.write8((uint8_t) ((m_base_offset_size << 4) | (m_index_size))); if (get_version() < 2) { writer.write16((uint16_t) m_items.size()); } else { writer.write32((uint32_t) m_items.size()); } for (const auto& item : m_items) { if (get_version() < 2) { writer.write16((uint16_t) item.item_ID); } else { writer.write32((uint32_t) item.item_ID); } if (get_version() >= 1) { writer.write16(item.construction_method); } writer.write16(item.data_reference_index); writer.write(m_base_offset_size, item.base_offset); writer.write16((uint16_t) item.extents.size()); for (const auto& extent : item.extents) { if (get_version() >= 1 && m_index_size > 0) { writer.write(m_index_size, extent.index); } writer.write(m_offset_size, extent.offset); writer.write(m_length_size, extent.length); } } writer.set_position(old_pos); } Error Box_infe::parse(BitstreamRange& range) { parse_full_box_header(range); if (get_version() <= 1) { m_item_ID = range.read16(); m_item_protection_index = range.read16(); m_item_name = range.read_string(); m_content_type = range.read_string(); m_content_encoding = range.read_string(); } if (get_version() >= 2) { m_hidden_item = (get_flags() & 1); if (get_version() == 2) { m_item_ID = range.read16(); } else { m_item_ID = range.read32(); } m_item_protection_index = range.read16(); uint32_t item_type = range.read32(); if (item_type != 0) { m_item_type = to_fourcc(item_type); } m_item_name = range.read_string(); if (item_type == fourcc("mime")) { m_content_type = range.read_string(); m_content_encoding = range.read_string(); } else if (item_type == fourcc("uri ")) { m_item_uri_type = range.read_string(); } } return range.get_error(); } void Box_infe::derive_box_version() { int min_version = 0; if (m_hidden_item) { min_version = std::max(min_version, 2); } if (m_item_ID > 0xFFFF) { min_version = std::max(min_version, 3); } if (m_item_type != "") { min_version = std::max(min_version, 2); } set_version((uint8_t) min_version); } void Box_infe::set_hidden_item(bool hidden) { m_hidden_item = hidden; if (m_hidden_item) { set_flags(get_flags() | 1); } else { set_flags(get_flags() & ~1); } } Error Box_infe::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); if (get_version() <= 1) { writer.write16((uint16_t) m_item_ID); writer.write16(m_item_protection_index); writer.write(m_item_name); writer.write(m_content_type); writer.write(m_content_encoding); } if (get_version() >= 2) { if (get_version() == 2) { writer.write16((uint16_t) m_item_ID); } else if (get_version() == 3) { writer.write32(m_item_ID); } writer.write16(m_item_protection_index); if (m_item_type.empty()) { writer.write32(0); } else { writer.write32(from_fourcc(m_item_type.c_str())); } writer.write(m_item_name); if (m_item_type == "mime") { writer.write(m_content_type); writer.write(m_content_encoding); } else if (m_item_type == "uri ") { writer.write(m_item_uri_type); } } prepend_header(writer, box_start); return Error::Ok; } std::string Box_infe::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "item_ID: " << m_item_ID << "\n" << indent << "item_protection_index: " << m_item_protection_index << "\n" << indent << "item_type: " << m_item_type << "\n" << indent << "item_name: " << m_item_name << "\n" << indent << "content_type: " << m_content_type << "\n" << indent << "content_encoding: " << m_content_encoding << "\n" << indent << "item uri type: " << m_item_uri_type << "\n" << indent << "hidden item: " << std::boolalpha << m_hidden_item << "\n"; return sstr.str(); } Error Box_iinf::parse(BitstreamRange& range) { parse_full_box_header(range); int nEntries_size = (get_version() > 0) ? 4 : 2; int item_count; if (nEntries_size == 2) { item_count = range.read16(); } else { item_count = range.read32(); } if (item_count == 0) { return Error::Ok; } // TODO: Only try to read "item_count" children. return read_children(range); } std::string Box_iinf::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << dump_children(indent); return sstr.str(); } Error Box_iprp::parse(BitstreamRange& range) { //parse_full_box_header(range); return read_children(range); } void Box_iinf::derive_box_version() { if (m_children.size() > 0xFFFF) { set_version(1); } else { set_version(0); } } Error Box_iinf::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); int nEntries_size = (get_version() > 0) ? 4 : 2; writer.write(nEntries_size, m_children.size()); Error err = write_children(writer); prepend_header(writer, box_start); return err; } std::string Box_iprp::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << dump_children(indent); return sstr.str(); } Error Box_ipco::parse(BitstreamRange& range) { //parse_full_box_header(range); return read_children(range); } std::string Box_ipco::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << dump_children(indent); return sstr.str(); } Error color_profile_nclx::parse(BitstreamRange& range) { StreamReader::grow_status status; status = range.wait_for_available_bytes(7); if (status != StreamReader::size_reached) { // TODO: return recoverable error at timeout return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } m_colour_primaries = range.read16(); m_transfer_characteristics = range.read16(); m_matrix_coefficients = range.read16(); m_full_range_flag = (range.read8() & 0x80 ? true : false); return Error::Ok; } Error color_profile_nclx::get_nclx_color_profile(struct heif_color_profile_nclx** out_data) const { *out_data = alloc_nclx_color_profile(); if (*out_data == nullptr) { return Error(heif_error_Memory_allocation_error, heif_suberror_Unspecified); } struct heif_color_profile_nclx* nclx = *out_data; nclx->version = 1; nclx->color_primaries = (enum heif_color_primaries) get_colour_primaries(); nclx->transfer_characteristics = (enum heif_transfer_characteristics) get_transfer_characteristics(); nclx->matrix_coefficients = (enum heif_matrix_coefficients) get_matrix_coefficients(); nclx->full_range_flag = get_full_range_flag(); // fill color primaries auto primaries = ::get_colour_primaries(nclx->color_primaries); nclx->color_primary_red_x = primaries.redX; nclx->color_primary_red_y = primaries.redY; nclx->color_primary_green_x = primaries.greenX; nclx->color_primary_green_y = primaries.greenY; nclx->color_primary_blue_x = primaries.blueX; nclx->color_primary_blue_y = primaries.blueY; nclx->color_primary_white_x = primaries.whiteX; nclx->color_primary_white_y = primaries.whiteY; return Error::Ok; } struct heif_color_profile_nclx* color_profile_nclx::alloc_nclx_color_profile() { auto profile = (heif_color_profile_nclx*) malloc(sizeof(struct heif_color_profile_nclx)); if (profile) { profile->version = 1; profile->color_primaries = heif_color_primaries_unspecified; profile->transfer_characteristics = heif_transfer_characteristic_unspecified; profile->matrix_coefficients = heif_matrix_coefficients_ITU_R_BT_601_6; profile->full_range_flag = true; } return profile; } void color_profile_nclx::free_nclx_color_profile(struct heif_color_profile_nclx* profile) { free(profile); } void color_profile_nclx::set_default() { m_colour_primaries = 2; m_transfer_characteristics = 2; m_matrix_coefficients = 6; m_full_range_flag = true; } void color_profile_nclx::set_undefined() { m_colour_primaries = 2; m_transfer_characteristics = 2; m_matrix_coefficients = 2; m_full_range_flag = true; } void color_profile_nclx::set_from_heif_color_profile_nclx(const struct heif_color_profile_nclx* nclx) { m_colour_primaries = nclx->color_primaries; m_transfer_characteristics = nclx->transfer_characteristics; m_matrix_coefficients = nclx->matrix_coefficients; m_full_range_flag = nclx->full_range_flag; } Error Box_colr::parse(BitstreamRange& range) { StreamReader::grow_status status; uint32_t colour_type = range.read32(); if (colour_type == fourcc("nclx")) { auto color_profile = std::make_shared(); m_color_profile = color_profile; Error err = color_profile->parse(range); if (err) { return err; } } else if (colour_type == fourcc("prof") || colour_type == fourcc("rICC")) { auto profile_size = get_box_size() - get_header_size() - 4; status = range.wait_for_available_bytes(profile_size); if (status != StreamReader::size_reached) { // TODO: return recoverable error at timeout return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } std::vector rawData(profile_size); for (size_t i = 0; i < profile_size; i++) { rawData[i] = range.read8(); } m_color_profile = std::make_shared(colour_type, rawData); } else { return Error(heif_error_Invalid_input, heif_suberror_Unknown_color_profile_type); } return range.get_error(); } std::string Box_colr::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "colour_type: " << to_fourcc(get_color_profile_type()) << "\n"; if (m_color_profile) { sstr << m_color_profile->dump(indent); } else { sstr << "no color profile\n"; } return sstr.str(); } std::string color_profile_raw::dump(Indent& indent) const { std::ostringstream sstr; sstr << indent << "profile size: " << m_data.size() << "\n"; return sstr.str(); } std::string color_profile_nclx::dump(Indent& indent) const { std::ostringstream sstr; sstr << indent << "colour_primaries: " << m_colour_primaries << "\n" << indent << "transfer_characteristics: " << m_transfer_characteristics << "\n" << indent << "matrix_coefficients: " << m_matrix_coefficients << "\n" << indent << "full_range_flag: " << m_full_range_flag << "\n"; return sstr.str(); } Error color_profile_nclx::write(StreamWriter& writer) const { writer.write16(m_colour_primaries); writer.write16(m_transfer_characteristics); writer.write16(m_matrix_coefficients); writer.write8(m_full_range_flag ? 0x80 : 0x00); return Error::Ok; } Error color_profile_raw::write(StreamWriter& writer) const { writer.write(m_data); return Error::Ok; } Error Box_colr::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); assert(m_color_profile); writer.write32(m_color_profile->get_type()); Error err = m_color_profile->write(writer); if (err) { return err; } prepend_header(writer, box_start); return Error::Ok; } Error Box_pixi::parse(BitstreamRange& range) { parse_full_box_header(range); StreamReader::grow_status status; uint8_t num_channels = range.read8(); status = range.wait_for_available_bytes(num_channels); if (status != StreamReader::size_reached) { // TODO: return recoverable error at timeout return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } m_bits_per_channel.resize(num_channels); for (int i = 0; i < num_channels; i++) { m_bits_per_channel[i] = range.read8(); } return range.get_error(); } std::string Box_pixi::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "bits_per_channel: "; for (size_t i = 0; i < m_bits_per_channel.size(); i++) { if (i > 0) sstr << ","; sstr << ((int) m_bits_per_channel[i]); } sstr << "\n"; return sstr.str(); } Error Box_pixi::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); if (m_bits_per_channel.size() > 255 || m_bits_per_channel.empty()) { // TODO: error assert(false); } writer.write8((uint8_t) (m_bits_per_channel.size())); for (size_t i = 0; i < m_bits_per_channel.size(); i++) { writer.write8(m_bits_per_channel[i]); } prepend_header(writer, box_start); return Error::Ok; } Error Box_ipco::get_properties_for_item_ID(uint32_t itemID, const std::shared_ptr& ipma, std::vector& out_properties) const { const std::vector* property_assoc = ipma->get_properties_for_item_ID(itemID); if (property_assoc == nullptr) { std::stringstream sstr; sstr << "Item (ID=" << itemID << ") has no properties assigned to it in ipma box"; return Error(heif_error_Invalid_input, heif_suberror_No_properties_assigned_to_item, sstr.str()); } const auto& allProperties = get_all_child_boxes(); for (const Box_ipma::PropertyAssociation& assoc : *property_assoc) { if (assoc.property_index > allProperties.size()) { std::stringstream sstr; sstr << "Nonexisting property (index=" << assoc.property_index << ") for item " << " ID=" << itemID << " referenced in ipma box"; return Error(heif_error_Invalid_input, heif_suberror_Ipma_box_references_nonexisting_property, sstr.str()); } Property prop; prop.essential = assoc.essential; if (assoc.property_index > 0) { prop.property = allProperties[assoc.property_index - 1]; out_properties.push_back(prop); } } return Error::Ok; } std::shared_ptr Box_ipco::get_property_for_item_ID(heif_item_id itemID, const std::shared_ptr& ipma, uint32_t box_type) const { const std::vector* property_assoc = ipma->get_properties_for_item_ID(itemID); if (property_assoc == nullptr) { return nullptr; } const auto& allProperties = get_all_child_boxes(); for (const Box_ipma::PropertyAssociation& assoc : *property_assoc) { if (assoc.property_index > allProperties.size() || assoc.property_index == 0) { return nullptr; } const auto& property = allProperties[assoc.property_index - 1]; if (property->get_short_type() == box_type) { return property; } } return nullptr; } Error Box_ispe::parse(BitstreamRange& range) { parse_full_box_header(range); m_image_width = range.read32(); m_image_height = range.read32(); return range.get_error(); } std::string Box_ispe::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "image width: " << m_image_width << "\n" << indent << "image height: " << m_image_height << "\n"; return sstr.str(); } Error Box_ispe::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); writer.write32(m_image_width); writer.write32(m_image_height); prepend_header(writer, box_start); return Error::Ok; } Error Box_ipma::parse(BitstreamRange& range) { parse_full_box_header(range); int entry_cnt = range.read32(); for (int i = 0; i < entry_cnt && !range.error() && !range.eof(); i++) { Entry entry; if (get_version() < 1) { entry.item_ID = range.read16(); } else { entry.item_ID = range.read32(); } int assoc_cnt = range.read8(); for (int k = 0; k < assoc_cnt; k++) { PropertyAssociation association; uint16_t index; if (get_flags() & 1) { index = range.read16(); association.essential = !!(index & 0x8000); association.property_index = (index & 0x7fff); } else { index = range.read8(); association.essential = !!(index & 0x80); association.property_index = (index & 0x7f); } entry.associations.push_back(association); } m_entries.push_back(entry); } return range.get_error(); } const std::vector* Box_ipma::get_properties_for_item_ID(uint32_t itemID) const { for (const auto& entry : m_entries) { if (entry.item_ID == itemID) { return &entry.associations; } } return nullptr; } void Box_ipma::add_property_for_item_ID(heif_item_id itemID, PropertyAssociation assoc) { size_t idx; for (idx = 0; idx < m_entries.size(); idx++) { if (m_entries[idx].item_ID == itemID) { break; } } // if itemID does not exist, add a new entry if (idx == m_entries.size()) { Entry entry; entry.item_ID = itemID; m_entries.push_back(entry); } // add the property association m_entries[idx].associations.push_back(assoc); } std::string Box_ipma::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); for (const Entry& entry : m_entries) { sstr << indent << "associations for item ID: " << entry.item_ID << "\n"; indent++; for (const auto& assoc : entry.associations) { sstr << indent << "property index: " << assoc.property_index << " (essential: " << std::boolalpha << assoc.essential << ")\n"; } indent--; } return sstr.str(); } void Box_ipma::derive_box_version() { int version = 0; bool large_property_indices = false; for (const Entry& entry : m_entries) { if (entry.item_ID > 0xFFFF) { version = 1; } for (const auto& assoc : entry.associations) { if (assoc.property_index > 0x7F) { large_property_indices = true; } } } set_version((uint8_t) version); set_flags(large_property_indices ? 1 : 0); } Error Box_ipma::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); size_t entry_cnt = m_entries.size(); writer.write32((uint32_t) entry_cnt); for (const Entry& entry : m_entries) { if (get_version() < 1) { writer.write16((uint16_t) entry.item_ID); } else { writer.write32(entry.item_ID); } size_t assoc_cnt = entry.associations.size(); if (assoc_cnt > 0xFF) { // TODO: error, too many associations } writer.write8((uint8_t) assoc_cnt); for (const PropertyAssociation& association : entry.associations) { if (get_flags() & 1) { writer.write16((uint16_t) ((association.essential ? 0x8000 : 0) | (association.property_index & 0x7FFF))); } else { writer.write8((uint8_t) ((association.essential ? 0x80 : 0) | (association.property_index & 0x7F))); } } } prepend_header(writer, box_start); return Error::Ok; } Error Box_auxC::parse(BitstreamRange& range) { parse_full_box_header(range); m_aux_type = range.read_string(); while (!range.eof()) { m_aux_subtypes.push_back(range.read8()); } return range.get_error(); } Error Box_auxC::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); writer.write(m_aux_type); for (uint8_t subtype : m_aux_subtypes) { writer.write8(subtype); } prepend_header(writer, box_start); return Error::Ok; } std::string Box_auxC::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "aux type: " << m_aux_type << "\n" << indent << "aux subtypes: "; for (uint8_t subtype : m_aux_subtypes) { sstr << std::hex << std::setw(2) << std::setfill('0') << ((int) subtype) << " "; } sstr << "\n"; return sstr.str(); } Error Box_irot::parse(BitstreamRange& range) { //parse_full_box_header(range); uint16_t rotation = range.read8(); rotation &= 0x03; m_rotation = rotation * 90; return range.get_error(); } std::string Box_irot::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "rotation: " << m_rotation << " degrees (CCW)\n"; return sstr.str(); } Error Box_imir::parse(BitstreamRange& range) { //parse_full_box_header(range); uint16_t axis = range.read8(); if (axis & 1) { m_axis = MirrorAxis::Horizontal; } else { m_axis = MirrorAxis::Vertical; } return range.get_error(); } std::string Box_imir::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "mirror axis: "; switch (m_axis) { case MirrorAxis::Vertical: sstr << "vertical\n"; break; case MirrorAxis::Horizontal: sstr << "horizontal\n"; break; } return sstr.str(); } Error Box_clap::parse(BitstreamRange& range) { //parse_full_box_header(range); int32_t clean_aperture_width_num = range.read32(); int32_t clean_aperture_width_den = range.read32(); int32_t clean_aperture_height_num = range.read32(); int32_t clean_aperture_height_den = range.read32(); int32_t horizontal_offset_num = range.read32(); int32_t horizontal_offset_den = range.read32(); int32_t vertical_offset_num = range.read32(); int32_t vertical_offset_den = range.read32(); m_clean_aperture_width = Fraction(clean_aperture_width_num, clean_aperture_width_den); m_clean_aperture_height = Fraction(clean_aperture_height_num, clean_aperture_height_den); m_horizontal_offset = Fraction(horizontal_offset_num, horizontal_offset_den); m_vertical_offset = Fraction(vertical_offset_num, vertical_offset_den); if (!m_clean_aperture_width.is_valid() || !m_clean_aperture_height.is_valid() || !m_horizontal_offset.is_valid() || !m_vertical_offset.is_valid()) { return Error(heif_error_Invalid_input, heif_suberror_Invalid_fractional_number); } return range.get_error(); } Error Box_clap::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); writer.write32(m_clean_aperture_width.numerator); writer.write32(m_clean_aperture_width.denominator); writer.write32(m_clean_aperture_height.numerator); writer.write32(m_clean_aperture_height.denominator); writer.write32(m_horizontal_offset.numerator); writer.write32(m_horizontal_offset.denominator); writer.write32(m_vertical_offset.numerator); writer.write32(m_vertical_offset.denominator); prepend_header(writer, box_start); return Error::Ok; } std::string Box_clap::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "clean_aperture: " << m_clean_aperture_width.numerator << "/" << m_clean_aperture_width.denominator << " x " << m_clean_aperture_height.numerator << "/" << m_clean_aperture_height.denominator << "\n"; sstr << indent << "offset: " << m_horizontal_offset.numerator << "/" << m_horizontal_offset.denominator << " ; " << m_vertical_offset.numerator << "/" << m_vertical_offset.denominator << "\n"; return sstr.str(); } int Box_clap::left_rounded(int image_width) const { // pcX = horizOff + (width - 1)/2 // pcX ± (cleanApertureWidth - 1)/2 // left = horizOff + (width-1)/2 - (clapWidth-1)/2 Fraction pcX = m_horizontal_offset + Fraction(image_width - 1, 2); Fraction left = pcX - (m_clean_aperture_width - 1) / 2; return left.round_down(); } int Box_clap::right_rounded(int image_width) const { Fraction right = m_clean_aperture_width - 1 + left_rounded(image_width); return right.round(); } int Box_clap::top_rounded(int image_height) const { Fraction pcY = m_vertical_offset + Fraction(image_height - 1, 2); Fraction top = pcY - (m_clean_aperture_height - 1) / 2; return top.round(); } int Box_clap::bottom_rounded(int image_height) const { Fraction bottom = m_clean_aperture_height - 1 + top_rounded(image_height); return bottom.round(); } int Box_clap::get_width_rounded() const { int left = (Fraction(0, 1) - (m_clean_aperture_width - 1) / 2).round(); int right = ((m_clean_aperture_width - 1) / 2).round(); return right + 1 - left; } int Box_clap::get_height_rounded() const { int top = (Fraction(0, 1) - (m_clean_aperture_height - 1) / 2).round(); int bottom = ((m_clean_aperture_height - 1) / 2).round(); return bottom + 1 - top; } void Box_clap::set(uint32_t clap_width, uint32_t clap_height, uint32_t image_width, uint32_t image_height) { assert(image_width >= clap_width); assert(image_height >= clap_height); m_clean_aperture_width = Fraction(clap_width, 1); m_clean_aperture_height = Fraction(clap_height, 1); m_horizontal_offset = Fraction(-(int32_t) (image_width - clap_width), 2); m_vertical_offset = Fraction(-(int32_t) (image_height - clap_height), 2); } Error Box_iref::parse(BitstreamRange& range) { parse_full_box_header(range); while (!range.eof()) { Reference ref; Error err = ref.header.parse(range); if (err != Error::Ok) { return err; } if (get_version() == 0) { ref.from_item_ID = range.read16(); int nRefs = range.read16(); for (int i = 0; i < nRefs; i++) { ref.to_item_ID.push_back(range.read16()); if (range.eof()) { break; } } } else { ref.from_item_ID = range.read32(); int nRefs = range.read16(); for (int i = 0; i < nRefs; i++) { ref.to_item_ID.push_back(range.read32()); if (range.eof()) { break; } } } m_references.push_back(ref); } return range.get_error(); } void Box_iref::derive_box_version() { uint8_t version = 0; for (const auto& ref : m_references) { if (ref.from_item_ID > 0xFFFF) { version = 1; break; } for (uint32_t r : ref.to_item_ID) { if (r > 0xFFFF) { version = 1; break; } } } set_version(version); } Error Box_iref::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); int id_size = ((get_version() == 0) ? 2 : 4); for (const auto& ref : m_references) { uint32_t box_size = uint32_t(4 + 4 + 2 + id_size * (1 + ref.to_item_ID.size())); // we write the BoxHeader ourselves since it is very simple writer.write32(box_size); writer.write32(ref.header.get_short_type()); writer.write(id_size, ref.from_item_ID); writer.write16((uint16_t) ref.to_item_ID.size()); for (uint32_t r : ref.to_item_ID) { writer.write(id_size, r); } } prepend_header(writer, box_start); return Error::Ok; } std::string Box_iref::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); for (const auto& ref : m_references) { sstr << indent << "reference with type '" << ref.header.get_type_string() << "'" << " from ID: " << ref.from_item_ID << " to IDs: "; for (uint32_t id : ref.to_item_ID) { sstr << id << " "; } sstr << "\n"; } return sstr.str(); } bool Box_iref::has_references(uint32_t itemID) const { for (const Reference& ref : m_references) { if (ref.from_item_ID == itemID) { return true; } } return false; } std::vector Box_iref::get_references_from(heif_item_id itemID) const { std::vector references; for (const Reference& ref : m_references) { if (ref.from_item_ID == itemID) { references.push_back(ref); } } return references; } std::vector Box_iref::get_references(uint32_t itemID, uint32_t ref_type) const { for (const Reference& ref : m_references) { if (ref.from_item_ID == itemID && ref.header.get_short_type() == ref_type) { return ref.to_item_ID; } } return std::vector(); } void Box_iref::add_reference(heif_item_id from_id, uint32_t type, std::vector to_ids) { Reference ref; ref.header.set_short_type(type); ref.from_item_ID = from_id; ref.to_item_ID = to_ids; m_references.push_back(ref); } Error Box_hvcC::parse(BitstreamRange& range) { //parse_full_box_header(range); uint8_t byte; auto& c = m_configuration; // abbreviation c.configuration_version = range.read8(); byte = range.read8(); c.general_profile_space = (byte >> 6) & 3; c.general_tier_flag = (byte >> 5) & 1; c.general_profile_idc = (byte & 0x1F); c.general_profile_compatibility_flags = range.read32(); for (int i = 0; i < 6; i++) { byte = range.read8(); for (int b = 0; b < 8; b++) { c.general_constraint_indicator_flags[i * 8 + b] = (byte >> (7 - b)) & 1; } } c.general_level_idc = range.read8(); c.min_spatial_segmentation_idc = range.read16() & 0x0FFF; c.parallelism_type = range.read8() & 0x03; c.chroma_format = range.read8() & 0x03; c.bit_depth_luma = static_cast((range.read8() & 0x07) + 8); c.bit_depth_chroma = static_cast((range.read8() & 0x07) + 8); c.avg_frame_rate = range.read16(); byte = range.read8(); c.constant_frame_rate = (byte >> 6) & 0x03; c.num_temporal_layers = (byte >> 3) & 0x07; c.temporal_id_nested = (byte >> 2) & 1; m_length_size = static_cast((byte & 0x03) + 1); int nArrays = range.read8(); for (int i = 0; i < nArrays && !range.error(); i++) { byte = range.read8(); NalArray array; array.m_array_completeness = (byte >> 6) & 1; array.m_NAL_unit_type = (byte & 0x3F); int nUnits = range.read16(); for (int u = 0; u < nUnits && !range.error(); u++) { std::vector nal_unit; int size = range.read16(); if (!size) { // Ignore empty NAL units. continue; } if (range.prepare_read(size)) { nal_unit.resize(size); range.get_istream()->read((char*) nal_unit.data(), size); } array.m_nal_units.push_back(std::move(nal_unit)); } m_nal_array.push_back(std::move(array)); } range.skip_to_end_of_box(); return range.get_error(); } std::string Box_hvcC::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); const auto& c = m_configuration; // abbreviation sstr << indent << "configuration_version: " << ((int) c.configuration_version) << "\n" << indent << "general_profile_space: " << ((int) c.general_profile_space) << "\n" << indent << "general_tier_flag: " << c.general_tier_flag << "\n" << indent << "general_profile_idc: " << ((int) c.general_profile_idc) << "\n"; sstr << indent << "general_profile_compatibility_flags: "; for (int i = 0; i < 32; i++) { sstr << ((c.general_profile_compatibility_flags >> (31 - i)) & 1); if ((i % 8) == 7) sstr << ' '; else if ((i % 4) == 3) sstr << '.'; } sstr << "\n"; sstr << indent << "general_constraint_indicator_flags: "; int cnt = 0; for (int i = 0; i < configuration::NUM_CONSTRAINT_INDICATOR_FLAGS; i++) { bool b = c.general_constraint_indicator_flags[i]; sstr << (b ? 1 : 0); cnt++; if ((cnt % 8) == 0) sstr << ' '; } sstr << "\n"; sstr << indent << "general_level_idc: " << ((int) c.general_level_idc) << "\n" << indent << "min_spatial_segmentation_idc: " << c.min_spatial_segmentation_idc << "\n" << indent << "parallelism_type: " << ((int) c.parallelism_type) << "\n" << indent << "chroma_format: " << ((int) c.chroma_format) << "\n" << indent << "bit_depth_luma: " << ((int) c.bit_depth_luma) << "\n" << indent << "bit_depth_chroma: " << ((int) c.bit_depth_chroma) << "\n" << indent << "avg_frame_rate: " << c.avg_frame_rate << "\n" << indent << "constant_frame_rate: " << ((int) c.constant_frame_rate) << "\n" << indent << "num_temporal_layers: " << ((int) c.num_temporal_layers) << "\n" << indent << "temporal_id_nested: " << ((int) c.temporal_id_nested) << "\n" << indent << "length_size: " << ((int) m_length_size) << "\n"; for (const auto& array : m_nal_array) { sstr << indent << "\n"; indent++; sstr << indent << "array_completeness: " << ((int) array.m_array_completeness) << "\n" << indent << "NAL_unit_type: " << ((int) array.m_NAL_unit_type) << "\n"; for (const auto& unit : array.m_nal_units) { //sstr << " unit with " << unit.size() << " bytes of data\n"; sstr << indent; for (uint8_t b : unit) { sstr << std::setfill('0') << std::setw(2) << std::hex << ((int) b) << " "; } sstr << "\n"; sstr << std::dec; } indent--; } return sstr.str(); } bool Box_hvcC::get_headers(std::vector* dest) const { for (const auto& array : m_nal_array) { for (const auto& unit : array.m_nal_units) { dest->push_back((unit.size() >> 24) & 0xFF); dest->push_back((unit.size() >> 16) & 0xFF); dest->push_back((unit.size() >> 8) & 0xFF); dest->push_back((unit.size() >> 0) & 0xFF); /* dest->push_back(0); dest->push_back(0); dest->push_back(1); */ dest->insert(dest->end(), unit.begin(), unit.end()); } } return true; } void Box_hvcC::append_nal_data(const std::vector& nal) { NalArray array; array.m_array_completeness = 0; array.m_NAL_unit_type = uint8_t(nal[0] >> 1); array.m_nal_units.push_back(nal); m_nal_array.push_back(array); } void Box_hvcC::append_nal_data(const uint8_t* data, size_t size) { std::vector nal; nal.resize(size); memcpy(nal.data(), data, size); NalArray array; array.m_array_completeness = 0; array.m_NAL_unit_type = uint8_t(nal[0] >> 1); array.m_nal_units.push_back(std::move(nal)); m_nal_array.push_back(array); } Error Box_hvcC::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); const auto& c = m_configuration; // abbreviation writer.write8(c.configuration_version); writer.write8((uint8_t) (((c.general_profile_space & 3) << 6) | ((c.general_tier_flag & 1) << 5) | (c.general_profile_idc & 0x1F))); writer.write32(c.general_profile_compatibility_flags); for (int i = 0; i < 6; i++) { uint8_t byte = 0; for (int b = 0; b < 8; b++) { if (c.general_constraint_indicator_flags[i * 8 + b]) { byte |= 1; } byte = (uint8_t) (byte << 1); } writer.write8(byte); } writer.write8(c.general_level_idc); writer.write16((c.min_spatial_segmentation_idc & 0x0FFF) | 0xF000); writer.write8(c.parallelism_type | 0xFC); writer.write8(c.chroma_format | 0xFC); writer.write8((uint8_t) ((c.bit_depth_luma - 8) | 0xF8)); writer.write8((uint8_t) ((c.bit_depth_chroma - 8) | 0xF8)); writer.write16(c.avg_frame_rate); writer.write8((uint8_t) (((c.constant_frame_rate & 0x03) << 6) | ((c.num_temporal_layers & 0x07) << 3) | ((c.temporal_id_nested & 1) << 2) | ((m_length_size - 1) & 0x03))); size_t nArrays = m_nal_array.size(); if (nArrays > 0xFF) { // TODO: error: too many NAL units } writer.write8((uint8_t) nArrays); for (const NalArray& array : m_nal_array) { writer.write8((uint8_t) (((array.m_array_completeness & 1) << 6) | (array.m_NAL_unit_type & 0x3F))); size_t nUnits = array.m_nal_units.size(); if (nUnits > 0xFFFF) { // TODO: error: too many NAL units } writer.write16((uint16_t) nUnits); for (const std::vector& nal_unit : array.m_nal_units) { writer.write16((uint16_t) nal_unit.size()); writer.write(nal_unit); } } prepend_header(writer, box_start); return Error::Ok; } Error Box_av1C::parse(BitstreamRange& range) { //parse_full_box_header(range); uint8_t byte; auto& c = m_configuration; // abbreviation byte = range.read8(); if ((byte & 0x80) == 0) { // error: marker bit not set } c.version = byte & 0x7F; byte = range.read8(); c.seq_profile = (byte >> 5) & 0x7; c.seq_level_idx_0 = byte & 0x1f; byte = range.read8(); c.seq_tier_0 = (byte >> 7) & 1; c.high_bitdepth = (byte >> 6) & 1; c.twelve_bit = (byte >> 5) & 1; c.monochrome = (byte >> 4) & 1; c.chroma_subsampling_x = (byte >> 3) & 1; c.chroma_subsampling_y = (byte >> 2) & 1; c.chroma_sample_position = byte & 3; byte = range.read8(); c.initial_presentation_delay_present = (byte >> 4) & 1; if (c.initial_presentation_delay_present) { c.initial_presentation_delay_minus_one = byte & 0x0F; } const int64_t configOBUs_bytes = range.get_remaining_bytes(); m_config_OBUs.resize(configOBUs_bytes); if (!range.read(m_config_OBUs.data(), configOBUs_bytes)) { // error } return range.get_error(); } Error Box_av1C::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); const auto& c = m_configuration; // abbreviation writer.write8(c.version | 0x80); writer.write8((uint8_t) (((c.seq_profile & 0x7) << 5) | (c.seq_level_idx_0 & 0x1f))); writer.write8((uint8_t) ((c.seq_tier_0 ? 0x80 : 0) | (c.high_bitdepth ? 0x40 : 0) | (c.twelve_bit ? 0x20 : 0) | (c.monochrome ? 0x10 : 0) | (c.chroma_subsampling_x ? 0x08 : 0) | (c.chroma_subsampling_y ? 0x04 : 0) | (c.chroma_sample_position & 0x03))); writer.write8(0); // TODO initial_presentation_delay prepend_header(writer, box_start); return Error::Ok; } std::string Box_av1C::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); const auto& c = m_configuration; // abbreviation sstr << indent << "version: " << ((int) c.version) << "\n" << indent << "seq_profile: " << ((int) c.seq_profile) << "\n" << indent << "seq_level_idx_0: " << ((int) c.seq_level_idx_0) << "\n" << indent << "high_bitdepth: " << ((int) c.high_bitdepth) << "\n" << indent << "twelve_bit: " << ((int) c.twelve_bit) << "\n" << indent << "chroma_subsampling_x: " << ((int) c.chroma_subsampling_x) << "\n" << indent << "chroma_subsampling_y: " << ((int) c.chroma_subsampling_y) << "\n" << indent << "chroma_sample_position: " << ((int) c.chroma_sample_position) << "\n" << indent << "initial_presentation_delay: "; if (c.initial_presentation_delay_present) { sstr << c.initial_presentation_delay_minus_one + 1 << "\n"; } else { sstr << "not present\n"; } sstr << indent << "config OBUs:"; for (size_t i = 0; i < m_config_OBUs.size(); i++) { sstr << " " << std::hex << std::setfill('0') << std::setw(2) << ((int) m_config_OBUs[i]); } sstr << std::dec << "\n"; return sstr.str(); } Error Box_idat::parse(BitstreamRange& range) { //parse_full_box_header(range); m_data_start_pos = range.get_istream()->get_position(); return range.get_error(); } Error Box_idat::write(StreamWriter& writer) const { size_t box_start = reserve_box_header_space(writer); writer.write(m_data_for_writing); prepend_header(writer, box_start); return Error::Ok; } std::string Box_idat::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "number of data bytes: " << get_box_size() - get_header_size() << "\n"; return sstr.str(); } Error Box_idat::read_data(std::shared_ptr istr, uint64_t start, uint64_t length, std::vector& out_data) const { // --- security check that we do not allocate too much data auto curr_size = out_data.size(); if (MAX_MEMORY_BLOCK_SIZE - curr_size < length) { std::stringstream sstr; sstr << "idat box contained " << length << " bytes, total memory size would be " << (curr_size + length) << " bytes, exceeding the security limit of " << MAX_MEMORY_BLOCK_SIZE << " bytes"; return Error(heif_error_Memory_allocation_error, heif_suberror_Security_limit_exceeded, sstr.str()); } // move to start of data if (start > (uint64_t) m_data_start_pos + get_box_size()) { return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } else if (length > get_box_size() || start + length > get_box_size()) { return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } StreamReader::grow_status status = istr->wait_for_file_size((int64_t) m_data_start_pos + start + length); if (status == StreamReader::size_beyond_eof || status == StreamReader::timeout) { // TODO: maybe we should introduce some 'Recoverable error' instead of 'Invalid input' return Error(heif_error_Invalid_input, heif_suberror_End_of_data); } bool success; success = istr->seek(m_data_start_pos + (std::streampos) start); assert(success); (void) success; if (length > 0) { // reserve space for the data in the output array out_data.resize(static_cast(curr_size + length)); uint8_t* data = &out_data[curr_size]; success = istr->read((char*) data, static_cast(length)); assert(success); } return Error::Ok; } Error Box_grpl::parse(BitstreamRange& range) { //parse_full_box_header(range); //return read_children(range); while (!range.eof()) { EntityGroup group; Error err = group.header.parse(range); if (err != Error::Ok) { return err; } err = group.header.parse_full_box_header(range); if (err != Error::Ok) { return err; } group.group_id = range.read32(); int nEntities = range.read32(); for (int i = 0; i < nEntities; i++) { if (range.eof()) { break; } group.entity_ids.push_back(range.read32()); } m_entity_groups.push_back(group); } return range.get_error(); } std::string Box_grpl::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); for (const auto& group : m_entity_groups) { sstr << indent << "group type: " << group.header.get_type_string() << "\n" << indent << "| group id: " << group.group_id << "\n" << indent << "| entity IDs: "; for (uint32_t id : group.entity_ids) { sstr << id << " "; } sstr << "\n"; } return sstr.str(); } Error Box_dinf::parse(BitstreamRange& range) { //parse_full_box_header(range); return read_children(range); } std::string Box_dinf::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << dump_children(indent); return sstr.str(); } Error Box_dref::parse(BitstreamRange& range) { parse_full_box_header(range); int nEntities = range.read32(); /* for (int i=0;i * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef HEIF_AVIF_H #define HEIF_AVIF_H #include #include #include #include "heif.h" #include "box.h" #include "error.h" namespace heif { class HeifPixelImage; Error fill_av1C_configuration(Box_av1C::configuration* inout_config, std::shared_ptr); bool fill_av1C_configuration_from_stream(Box_av1C::configuration* out_config, const uint8_t* data, int dataSize); } #endif libheif-1.12.0/libheif/heif_context.h0000664000175000017500000003252514043747772014400 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_CONTEXT_H #define LIBHEIF_HEIF_CONTEXT_H #include #include #include #include #include #include #include "error.h" #include "heif.h" #include "heif_plugin.h" #include "bitstream.h" #include "box.h" // only for color_profile, TODO: maybe move the color_profiles to its own header namespace heif { class HeifContext; } namespace heif { class HeifFile; class HeifPixelImage; class StreamWriter; class ImageMetadata { public: heif_item_id item_id; std::string item_type; // e.g. "Exif" std::string content_type; std::vector m_data; }; // This is a higher-level view than HeifFile. // Images are grouped logically into main images and their thumbnails. // The class also handles automatic color-space conversion. class HeifContext : public ErrorBuffer { public: HeifContext(); ~HeifContext(); void set_max_decoding_threads(int max_threads) { m_max_decoding_threads = max_threads; } void set_maximum_image_size_limit(int maximum_size) { m_maximum_image_width_limit = maximum_size; m_maximum_image_height_limit = maximum_size; } Error read(std::shared_ptr reader); Error read_from_file(const char* input_filename); Error read_from_memory(const void* data, size_t size, bool copy); class Image : public ErrorBuffer { public: Image(HeifContext* file, heif_item_id id); ~Image(); void clear() { m_thumbnails.clear(); m_alpha_channel.reset(); m_depth_channel.reset(); m_aux_images.clear(); } void set_resolution(int w, int h) { m_width = w; m_height = h; } void set_ispe_resolution(int w, int h) { m_ispe_width = w; m_ispe_height = h; } void set_primary(bool flag = true) { m_is_primary = flag; } heif_item_id get_id() const { return m_id; } //void set_id(heif_item_id id) { m_id=id; } (already set in constructor) int get_width() const { return m_width; } int get_height() const { return m_height; } int get_ispe_width() const { return m_ispe_width; } int get_ispe_height() const { return m_ispe_height; } int get_luma_bits_per_pixel() const; int get_chroma_bits_per_pixel() const; bool is_primary() const { return m_is_primary; } void set_size(int w, int h) { m_width = w; m_height = h; } // -- thumbnails void set_is_thumbnail_of(heif_item_id id) { m_is_thumbnail = true; m_thumbnail_ref_id = id; } void add_thumbnail(const std::shared_ptr& img) { m_thumbnails.push_back(img); } bool is_thumbnail() const { return m_is_thumbnail; } const std::vector>& get_thumbnails() const { return m_thumbnails; } // --- alpha channel void set_is_alpha_channel_of(heif_item_id id, bool consumed) { m_is_alpha_channel = true; m_alpha_channel_ref_id = id; m_implicitly_consumed_alpha = consumed; } void set_alpha_channel(std::shared_ptr img) { m_alpha_channel = std::move(img); } bool is_alpha_channel() const { return m_is_alpha_channel; } const std::shared_ptr& get_alpha_channel() const { return m_alpha_channel; } void set_is_premultiplied_alpha(bool flag) { m_premultiplied_alpha = flag; } bool is_premultiplied_alpha() const { return m_premultiplied_alpha; } // --- depth channel void set_is_depth_channel_of(heif_item_id id) { m_is_depth_channel = true; m_depth_channel_ref_id = id; } void set_depth_channel(std::shared_ptr img) { m_depth_channel = std::move(img); } bool is_depth_channel() const { return m_is_depth_channel; } const std::shared_ptr& get_depth_channel() const { return m_depth_channel; } void set_depth_representation_info(struct heif_depth_representation_info& info) { m_has_depth_representation_info = true; m_depth_representation_info = info; } bool has_depth_representation_info() const { return m_has_depth_representation_info; } const struct heif_depth_representation_info& get_depth_representation_info() const { return m_depth_representation_info; } // --- generic aux image void set_is_aux_image_of(heif_item_id id, const std::string& aux_type) { m_is_aux_image = true; m_aux_image_ref_id = id; m_aux_image_type = aux_type; } void add_aux_image(std::shared_ptr img) { m_aux_images.push_back(std::move(img)); } bool is_aux_image() const { return m_is_aux_image; } const std::string& get_aux_type() const { return m_aux_image_type; } std::vector> get_aux_images(int aux_image_filter = 0) const { if (aux_image_filter == 0) { return m_aux_images; } else { std::vector> auxImgs; for (auto aux : m_aux_images) { if ((aux_image_filter & LIBHEIF_AUX_IMAGE_FILTER_OMIT_ALPHA) && aux->is_alpha_channel() && aux->m_implicitly_consumed_alpha) { continue; } if ((aux_image_filter & LIBHEIF_AUX_IMAGE_FILTER_OMIT_DEPTH) && aux->is_depth_channel()) { continue; } auxImgs.push_back(aux); } return auxImgs; } } // --- metadata void add_metadata(std::shared_ptr metadata) { m_metadata.push_back(std::move(metadata)); } const std::vector>& get_metadata() const { return m_metadata; } // --- miaf void mark_not_miaf_compatible() { m_miaf_compatible = false; } bool is_miaf_compatible() const { return m_miaf_compatible; } // === writing === void set_preencoded_hevc_image(const std::vector& data); const std::shared_ptr& get_color_profile_nclx() const { return m_color_profile_nclx; } const std::shared_ptr& get_color_profile_icc() const { return m_color_profile_icc; } void set_color_profile(std::shared_ptr profile) { auto icc = std::dynamic_pointer_cast(profile); if (icc) { m_color_profile_icc = std::move(icc); } auto nclx = std::dynamic_pointer_cast(profile); if (nclx) { m_color_profile_nclx = std::move(nclx); } }; private: HeifContext* m_heif_context; heif_item_id m_id = 0; uint32_t m_width = 0, m_height = 0; uint32_t m_ispe_width = 0, m_ispe_height = 0; // original image resolution bool m_is_primary = false; bool m_is_thumbnail = false; heif_item_id m_thumbnail_ref_id = 0; std::vector> m_thumbnails; bool m_is_alpha_channel = false; bool m_premultiplied_alpha = false; bool m_implicitly_consumed_alpha = false; // alpha data was integrated into main color image heif_item_id m_alpha_channel_ref_id = 0; std::shared_ptr m_alpha_channel; bool m_is_depth_channel = false; heif_item_id m_depth_channel_ref_id = 0; std::shared_ptr m_depth_channel; bool m_has_depth_representation_info = false; struct heif_depth_representation_info m_depth_representation_info; heif_item_id m_aux_image_ref_id = 0; bool m_is_aux_image = false; std::string m_aux_image_type; std::vector> m_aux_images; std::vector> m_metadata; std::shared_ptr m_color_profile_nclx; std::shared_ptr m_color_profile_icc; bool m_miaf_compatible = true; }; std::vector> get_top_level_images() { return m_top_level_images; } std::shared_ptr get_primary_image() { return m_primary_image; } void register_decoder(const heif_decoder_plugin* decoder_plugin); bool is_image(heif_item_id ID) const; Error decode_image_user(heif_item_id ID, std::shared_ptr& img, heif_colorspace out_colorspace, heif_chroma out_chroma, const struct heif_decoding_options* options = nullptr) const; Error decode_image_planar(heif_item_id ID, std::shared_ptr& img, heif_colorspace out_colorspace, const struct heif_decoding_options* options = nullptr) const; std::string debug_dump_boxes() const; // === writing === // Create all boxes necessary for an empty HEIF file. // Note that this is no valid HEIF file, since some boxes (e.g. pitm) are generated, but // contain no valid data yet. void reset_to_empty_heif(); Error encode_image(std::shared_ptr image, struct heif_encoder* encoder, const struct heif_encoding_options* options, enum heif_image_input_class input_class, std::shared_ptr& out_image); Error encode_image_as_hevc(std::shared_ptr image, struct heif_encoder* encoder, const struct heif_encoding_options* options, enum heif_image_input_class input_class, std::shared_ptr& out_image); Error encode_image_as_av1(std::shared_ptr image, struct heif_encoder* encoder, const struct heif_encoding_options* options, enum heif_image_input_class input_class, std::shared_ptr& out_image); void set_primary_image(std::shared_ptr image); Error set_primary_item(heif_item_id id); bool is_primary_image_set() const { return m_primary_image != nullptr; } Error assign_thumbnail(std::shared_ptr master_image, std::shared_ptr thumbnail_image); Error encode_thumbnail(std::shared_ptr image, struct heif_encoder* encoder, const struct heif_encoding_options* options, int bbox_size, std::shared_ptr& out_image_handle); Error add_exif_metadata(std::shared_ptr master_image, const void* data, int size); Error add_XMP_metadata(std::shared_ptr master_image, const void* data, int size); Error add_generic_metadata(std::shared_ptr master_image, const void* data, int size, const char* item_type, const char* content_type); void write(StreamWriter& writer); private: const struct heif_decoder_plugin* get_decoder(enum heif_compression_format type) const; std::set m_decoder_plugins; std::map> m_all_images; // We store this in a vector because we need stable indices for the C API. // TODO: stable indices are obsolet now... std::vector> m_top_level_images; std::shared_ptr m_primary_image; // shortcut to primary image std::shared_ptr m_heif_file; int m_max_decoding_threads = 4; uint32_t m_maximum_image_width_limit; uint32_t m_maximum_image_height_limit; Error interpret_heif_file(); void remove_top_level_image(std::shared_ptr image); Error decode_full_grid_image(heif_item_id ID, std::shared_ptr& img, const std::vector& grid_data) const; Error decode_and_paste_tile_image(heif_item_id tileID, std::shared_ptr out_image, int x0, int y0) const; Error decode_derived_image(heif_item_id ID, std::shared_ptr& img) const; Error decode_overlay_image(heif_item_id ID, std::shared_ptr& img, const std::vector& overlay_data) const; Error get_id_of_non_virtual_child_image(heif_item_id in, heif_item_id& out) const; }; } #endif libheif-1.12.0/libheif/heif_image.h0000664000175000017500000001271514043747772013775 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_IMAGE_H #define LIBHEIF_HEIF_IMAGE_H #include "heif.h" #include "error.h" #include "box.h" // only for color_profile, TODO: maybe move the color_profiles to its own header #include #include #include #include namespace heif { uint8_t chroma_h_subsampling(heif_chroma c); uint8_t chroma_v_subsampling(heif_chroma c); heif_chroma chroma_from_subsampling(int h, int v); void get_subsampled_size(int width, int height, heif_channel channel, heif_chroma chroma, int* subsampled_width, int* subsampled_height); bool is_chroma_with_alpha(heif_chroma chroma); int num_interleaved_pixels_per_plane(heif_chroma chroma); bool is_integer_multiple_of_chroma_size(int width, int height, heif_chroma chroma); class HeifPixelImage : public std::enable_shared_from_this, public ErrorBuffer { public: explicit HeifPixelImage() = default; ~HeifPixelImage(); void create(int width, int height, heif_colorspace colorspace, heif_chroma chroma); bool add_plane(heif_channel channel, int width, int height, int bit_depth); bool has_channel(heif_channel channel) const; // Has alpha information either as a separate channel or in the interleaved format. bool has_alpha() const; bool is_premultiplied_alpha() const { return m_premultiplied_alpha; } void set_premultiplied_alpha(bool flag) { m_premultiplied_alpha = flag; } int get_width() const { return m_width; } int get_height() const { return m_height; } int get_width(enum heif_channel channel) const; int get_height(enum heif_channel channel) const; heif_chroma get_chroma_format() const { return m_chroma; } heif_colorspace get_colorspace() const { return m_colorspace; } std::set get_channel_set() const; uint8_t get_storage_bits_per_pixel(enum heif_channel channel) const; uint8_t get_bits_per_pixel(enum heif_channel channel) const; uint8_t* get_plane(enum heif_channel channel, int* out_stride); const uint8_t* get_plane(enum heif_channel channel, int* out_stride) const; void copy_new_plane_from(const std::shared_ptr& src_image, heif_channel src_channel, heif_channel dst_channel); void fill_new_plane(heif_channel dst_channel, uint16_t value, int width, int height, int bpp); void transfer_plane_from_image_as(const std::shared_ptr& source, heif_channel src_channel, heif_channel dst_channel); Error rotate_ccw(int angle_degrees, std::shared_ptr& out_img); Error mirror_inplace(bool horizontal); Error crop(int left, int right, int top, int bottom, std::shared_ptr& out_img) const; Error fill_RGB_16bit(uint16_t r, uint16_t g, uint16_t b, uint16_t a); Error overlay(std::shared_ptr& overlay, int dx, int dy); Error scale_nearest_neighbor(std::shared_ptr& output, int width, int height) const; void set_color_profile_nclx(std::shared_ptr profile) { m_color_profile_nclx = profile; } std::shared_ptr get_color_profile_nclx() const { return m_color_profile_nclx; } void set_color_profile_icc(std::shared_ptr profile) { m_color_profile_icc = profile; } std::shared_ptr get_color_profile_icc() const { return m_color_profile_icc; } void debug_dump() const; bool extend_padding_to_size(int width, int height); private: struct ImagePlane { bool alloc(int width, int height, int bit_depth, heif_chroma chroma); uint8_t m_bit_depth = 0; // the "visible" area of the plane int m_width = 0; int m_height = 0; // the allocated memory size int m_mem_width = 0; int m_mem_height = 0; uint8_t* mem = nullptr; // aligned memory start uint8_t* allocated_mem = nullptr; // unaligned memory we allocated uint32_t stride = 0; // bytes per line }; int m_width = 0; int m_height = 0; heif_colorspace m_colorspace = heif_colorspace_undefined; heif_chroma m_chroma = heif_chroma_undefined; bool m_premultiplied_alpha = false; std::shared_ptr m_color_profile_nclx; std::shared_ptr m_color_profile_icc; std::map m_planes; }; } #endif libheif-1.12.0/libheif/heif_decoder_libde265.h0000644000175000017500000000164014003350413015657 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_DECODER_DE265_H #define LIBHEIF_HEIF_DECODER_DE265_H const struct heif_decoder_plugin* get_decoder_plugin_libde265(); #endif libheif-1.12.0/libheif/heif_decoder_aom.h0000644000175000017500000000162714003350413015124 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_HEIF_DECODER_AOM_H #define LIBHEIF_HEIF_DECODER_AOM_H const struct heif_decoder_plugin* get_decoder_plugin_aom(); #endif libheif-1.12.0/libheif/heif_hevc.h0000644000175000017500000000304414003350413013603 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef HEIF_HEVC_H #define HEIF_HEVC_H #include "heif.h" #include "box.h" #include "error.h" #include #include namespace heif { class SEIMessage { public: virtual ~SEIMessage() = default; }; class SEIMessage_depth_representation_info : public SEIMessage, public heif_depth_representation_info { public: }; Error decode_hevc_aux_sei_messages(const std::vector& data, std::vector>& msgs); Error parse_sps_for_hvcC_configuration(const uint8_t* sps, size_t size, Box_hvcC::configuration* inout_config, int* width, int* height); } #endif libheif-1.12.0/libheif/box.h0000644000175000017500000006346014003350412012462 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #ifndef LIBHEIF_BOX_H #define LIBHEIF_BOX_H #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include #include #include #include #include #include "error.h" #include "heif.h" #include "logging.h" #include "bitstream.h" #if !defined(__EMSCRIPTEN__) && !defined(_MSC_VER) // std::array is not supported on some older compilers. #define HAS_BOOL_ARRAY 1 #endif namespace heif { #define fourcc(id) (((uint32_t)(id[0])<<24) | (id[1]<<16) | (id[2]<<8) | (id[3])) /* constexpr uint32_t fourcc(const char* string) { return ((string[0]<<24) | (string[1]<<16) | (string[2]<< 8) | (string[3])); } */ class Fraction { public: Fraction() {} Fraction(int32_t num, int32_t den); Fraction operator+(const Fraction&) const; Fraction operator-(const Fraction&) const; Fraction operator+(int) const; Fraction operator-(int) const; Fraction operator/(int) const; int32_t round_down() const; int32_t round_up() const; int32_t round() const; bool is_valid() const; int32_t numerator = 0; int32_t denominator = 1; }; inline std::ostream& operator<<(std::ostream& str, const Fraction& f) { str << f.numerator << "/" << f.denominator; return str; } class BoxHeader { public: BoxHeader(); virtual ~BoxHeader() {} constexpr static uint64_t size_until_end_of_file = 0; uint64_t get_box_size() const { return m_size; } uint32_t get_header_size() const { return m_header_size; } uint32_t get_short_type() const { return m_type; } std::vector get_type() const; std::string get_type_string() const; void set_short_type(uint32_t type) { m_type = type; } Error parse(BitstreamRange& range); virtual std::string dump(Indent&) const; // --- full box Error parse_full_box_header(BitstreamRange& range); uint8_t get_version() const { return m_version; } void set_version(uint8_t version) { m_version = version; } uint32_t get_flags() const { return m_flags; } void set_flags(uint32_t flags) { m_flags = flags; } void set_is_full_box(bool flag = true) { m_is_full_box = flag; } bool is_full_box_header() const { return m_is_full_box; } // --- writing size_t reserve_box_header_space(StreamWriter& writer) const; Error prepend_header(StreamWriter&, size_t box_start) const; private: uint64_t m_size = 0; uint32_t m_header_size = 0; uint32_t m_type = 0; std::vector m_uuid_type; bool m_is_full_box = false; uint8_t m_version = 0; uint32_t m_flags = 0; }; class Box : public BoxHeader { public: Box() {} Box(const BoxHeader& hdr) : BoxHeader(hdr) {} static Error read(BitstreamRange& range, std::shared_ptr* box); virtual Error write(StreamWriter& writer) const; // check, which box version is required and set this in the (full) box header virtual void derive_box_version() { set_version(0); } void derive_box_version_recursive(); virtual std::string dump(Indent&) const; std::shared_ptr get_child_box(uint32_t short_type) const; std::vector> get_child_boxes(uint32_t short_type) const; const std::vector>& get_all_child_boxes() const { return m_children; } int append_child_box(std::shared_ptr box) { m_children.push_back(box); return (int) m_children.size() - 1; } protected: virtual Error parse(BitstreamRange& range); std::vector> m_children; const static int READ_CHILDREN_ALL = -1; Error read_children(BitstreamRange& range, int number = READ_CHILDREN_ALL); Error write_children(StreamWriter& writer) const; std::string dump_children(Indent&) const; }; class Box_ftyp : public Box { public: Box_ftyp() { set_short_type(fourcc("ftyp")); set_is_full_box(false); } Box_ftyp(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; bool has_compatible_brand(uint32_t brand) const; std::vector list_brands() const { return m_compatible_brands; } void set_major_brand(uint32_t major_brand) { m_major_brand = major_brand; } void set_minor_version(uint32_t minor_version) { m_minor_version = minor_version; } void clear_compatible_brands() { m_compatible_brands.clear(); } void add_compatible_brand(uint32_t brand); Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; private: uint32_t m_major_brand = 0; uint32_t m_minor_version = 0; std::vector m_compatible_brands; }; class Box_meta : public Box { public: Box_meta() { set_short_type(fourcc("meta")); set_is_full_box(true); } Box_meta(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; protected: Error parse(BitstreamRange& range) override; }; class Box_hdlr : public Box { public: Box_hdlr() { set_short_type(fourcc("hdlr")); set_is_full_box(true); } Box_hdlr(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; uint32_t get_handler_type() const { return m_handler_type; } void set_handler_type(uint32_t handler) { m_handler_type = handler; } Error write(StreamWriter& writer) const override; void set_name(std::string name) { m_name = std::move(name); } protected: Error parse(BitstreamRange& range) override; private: uint32_t m_pre_defined = 0; uint32_t m_handler_type = fourcc("pict"); uint32_t m_reserved[3] = {0,}; std::string m_name; }; class Box_pitm : public Box { public: Box_pitm() { set_short_type(fourcc("pitm")); set_is_full_box(true); } Box_pitm(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; heif_item_id get_item_ID() const { return m_item_ID; } void set_item_ID(heif_item_id id) { m_item_ID = id; } void derive_box_version() override; Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; private: heif_item_id m_item_ID = 0; }; class Box_iloc : public Box { public: Box_iloc() { set_short_type(fourcc("iloc")); set_is_full_box(true); } Box_iloc(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; struct Extent { uint64_t index = 0; uint64_t offset = 0; uint64_t length = 0; std::vector data; // only used when writing data }; struct Item { heif_item_id item_ID = 0; uint8_t construction_method = 0; // >= version 1 uint16_t data_reference_index = 0; uint64_t base_offset = 0; std::vector extents; }; const std::vector& get_items() const { return m_items; } Error read_data(const Item& item, std::shared_ptr istr, const std::shared_ptr&, std::vector* dest) const; void set_min_version(uint8_t min_version) { m_user_defined_min_version = min_version; } // append bitstream data that will be written later (after iloc box) Error append_data(heif_item_id item_ID, const std::vector& data, uint8_t construction_method = 0); // append bitstream data that already has been written (before iloc box) // Error write_mdat_before_iloc(heif_image_id item_ID, // std::vector& data) // reserve data entry that will be written later // Error reserve_mdat_item(heif_image_id item_ID, // uint8_t construction_method, // uint32_t* slot_ID); // void patch_mdat_slot(uint32_t slot_ID, size_t start, size_t length); void derive_box_version() override; Error write(StreamWriter& writer) const override; Error write_mdat_after_iloc(StreamWriter& writer); protected: Error parse(BitstreamRange& range) override; private: std::vector m_items; mutable size_t m_iloc_box_start = 0; uint8_t m_user_defined_min_version = 0; uint8_t m_offset_size = 0; uint8_t m_length_size = 0; uint8_t m_base_offset_size = 0; uint8_t m_index_size = 0; void patch_iloc_header(StreamWriter& writer) const; int m_idat_offset = 0; // only for writing: offset of next data array }; class Box_infe : public Box { public: Box_infe() { set_short_type(fourcc("infe")); set_is_full_box(true); } Box_infe(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; bool is_hidden_item() const { return m_hidden_item; } void set_hidden_item(bool hidden); heif_item_id get_item_ID() const { return m_item_ID; } void set_item_ID(heif_item_id id) { m_item_ID = id; } std::string get_item_type() const { return m_item_type; } void set_item_type(std::string type) { m_item_type = type; } void set_item_name(std::string name) { m_item_name = name; } std::string get_content_type() const { return m_content_type; } void set_content_type(std::string content_type) { m_content_type = content_type; } void derive_box_version() override; Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; private: heif_item_id m_item_ID = 0; uint16_t m_item_protection_index = 0; std::string m_item_type; std::string m_item_name; std::string m_content_type; std::string m_content_encoding; std::string m_item_uri_type; // if set, this item should not be part of the presentation (i.e. hidden) bool m_hidden_item = false; }; class Box_iinf : public Box { public: Box_iinf() { set_short_type(fourcc("iinf")); set_is_full_box(true); } Box_iinf(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; void derive_box_version() override; Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; private: //std::vector< std::shared_ptr > m_iteminfos; }; class Box_iprp : public Box { public: Box_iprp() { set_short_type(fourcc("iprp")); set_is_full_box(false); } Box_iprp(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; protected: Error parse(BitstreamRange& range) override; }; class Box_ipco : public Box { public: Box_ipco() { set_short_type(fourcc("ipco")); set_is_full_box(false); } Box_ipco(const BoxHeader& hdr) : Box(hdr) {} struct Property { bool essential; std::shared_ptr property; }; Error get_properties_for_item_ID(heif_item_id itemID, const std::shared_ptr&, std::vector& out_properties) const; std::shared_ptr get_property_for_item_ID(heif_item_id itemID, const std::shared_ptr&, uint32_t property_box_type) const; std::string dump(Indent&) const override; protected: Error parse(BitstreamRange& range) override; }; class Box_ispe : public Box { public: Box_ispe() { set_short_type(fourcc("ispe")); set_is_full_box(true); } Box_ispe(const BoxHeader& hdr) : Box(hdr) {} uint32_t get_width() const { return m_image_width; } uint32_t get_height() const { return m_image_height; } void set_size(uint32_t width, uint32_t height) { m_image_width = width; m_image_height = height; } std::string dump(Indent&) const override; Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; private: uint32_t m_image_width = 0; uint32_t m_image_height = 0; }; class Box_ipma : public Box { public: Box_ipma() { set_short_type(fourcc("ipma")); set_is_full_box(true); } Box_ipma(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; struct PropertyAssociation { bool essential; uint16_t property_index; }; const std::vector* get_properties_for_item_ID(heif_item_id itemID) const; void add_property_for_item_ID(heif_item_id itemID, PropertyAssociation assoc); void derive_box_version() override; Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; struct Entry { heif_item_id item_ID; std::vector associations; }; std::vector m_entries; }; class Box_auxC : public Box { public: Box_auxC() { set_short_type(fourcc("auxC")); set_is_full_box(true); } Box_auxC(const BoxHeader& hdr) : Box(hdr) {} std::string get_aux_type() const { return m_aux_type; } void set_aux_type(std::string type) { m_aux_type = type; } std::vector get_subtypes() const { return m_aux_subtypes; } std::string dump(Indent&) const override; protected: Error parse(BitstreamRange& range) override; Error write(StreamWriter& writer) const override; private: std::string m_aux_type; std::vector m_aux_subtypes; }; class Box_irot : public Box { public: Box_irot(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; int get_rotation() const { return m_rotation; } protected: Error parse(BitstreamRange& range) override; private: int m_rotation = 0; // in degrees (CCW) }; class Box_imir : public Box { public: Box_imir(const BoxHeader& hdr) : Box(hdr) {} enum class MirrorAxis : uint8_t { Vertical = 0, Horizontal = 1 }; MirrorAxis get_mirror_axis() const { return m_axis; } std::string dump(Indent&) const override; protected: Error parse(BitstreamRange& range) override; private: MirrorAxis m_axis = MirrorAxis::Vertical; }; class Box_clap : public Box { public: Box_clap() { set_short_type(fourcc("clap")); set_is_full_box(false); } Box_clap(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; int left_rounded(int image_width) const; // first column int right_rounded(int image_width) const; // last column that is part of the cropped image int top_rounded(int image_height) const; // first row int bottom_rounded(int image_height) const; // last row included in the cropped image int get_width_rounded() const; int get_height_rounded() const; void set(uint32_t clap_width, uint32_t clap_height, uint32_t image_width, uint32_t image_height); protected: Error parse(BitstreamRange& range) override; Error write(StreamWriter& writer) const override; private: Fraction m_clean_aperture_width; Fraction m_clean_aperture_height; Fraction m_horizontal_offset; Fraction m_vertical_offset; }; class Box_iref : public Box { public: Box_iref() { set_short_type(fourcc("iref")); set_is_full_box(true); } Box_iref(const BoxHeader& hdr) : Box(hdr) {} struct Reference { BoxHeader header; heif_item_id from_item_ID; std::vector to_item_ID; }; std::string dump(Indent&) const override; bool has_references(heif_item_id itemID) const; std::vector get_references(heif_item_id itemID, uint32_t ref_type) const; std::vector get_references_from(heif_item_id itemID) const; void add_reference(heif_item_id from_id, uint32_t type, std::vector to_ids); protected: Error parse(BitstreamRange& range) override; Error write(StreamWriter& writer) const override; void derive_box_version() override; private: std::vector m_references; }; class Box_hvcC : public Box { public: Box_hvcC() { set_short_type(fourcc("hvcC")); set_is_full_box(false); } Box_hvcC(const BoxHeader& hdr) : Box(hdr) {} struct configuration { uint8_t configuration_version; uint8_t general_profile_space; bool general_tier_flag; uint8_t general_profile_idc; uint32_t general_profile_compatibility_flags; static const int NUM_CONSTRAINT_INDICATOR_FLAGS = 48; std::bitset general_constraint_indicator_flags; uint8_t general_level_idc; uint16_t min_spatial_segmentation_idc; uint8_t parallelism_type; uint8_t chroma_format; uint8_t bit_depth_luma; uint8_t bit_depth_chroma; uint16_t avg_frame_rate; uint8_t constant_frame_rate; uint8_t num_temporal_layers; uint8_t temporal_id_nested; }; std::string dump(Indent&) const override; bool get_headers(std::vector* dest) const; void set_configuration(const configuration& config) { m_configuration = config; } configuration get_configuration() const { return m_configuration; } void append_nal_data(const std::vector& nal); void append_nal_data(const uint8_t* data, size_t size); Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; private: struct NalArray { uint8_t m_array_completeness; uint8_t m_NAL_unit_type; std::vector > m_nal_units; }; configuration m_configuration; uint8_t m_length_size = 4; // default: 4 bytes for NAL unit lengths std::vector m_nal_array; }; class Box_av1C : public Box { public: Box_av1C() { set_short_type(fourcc("av1C")); set_is_full_box(false); } Box_av1C(const BoxHeader& hdr) : Box(hdr) {} struct configuration { //unsigned int (1) marker = 1; uint8_t version = 1; uint8_t seq_profile = 0; uint8_t seq_level_idx_0 = 0; uint8_t seq_tier_0 = 0; uint8_t high_bitdepth = 0; uint8_t twelve_bit = 0; uint8_t monochrome = 0; uint8_t chroma_subsampling_x = 0; uint8_t chroma_subsampling_y = 0; uint8_t chroma_sample_position = 0; //uint8_t reserved = 0; uint8_t initial_presentation_delay_present = 0; uint8_t initial_presentation_delay_minus_one = 0; //unsigned int (8)[] configOBUs; }; std::string dump(Indent&) const override; bool get_headers(std::vector* dest) const { *dest = m_config_OBUs; return true; } void set_configuration(const configuration& config) { m_configuration = config; } configuration get_configuration() const { return m_configuration; } //void append_nal_data(const std::vector& nal); //void append_nal_data(const uint8_t* data, size_t size); Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; private: configuration m_configuration; std::vector m_config_OBUs; }; class Box_idat : public Box { public: Box_idat(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; Error read_data(std::shared_ptr istr, uint64_t start, uint64_t length, std::vector& out_data) const; int append_data(const std::vector& data) { auto pos = m_data_for_writing.size(); m_data_for_writing.insert(m_data_for_writing.end(), data.begin(), data.end()); return (int)pos; } Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; std::streampos m_data_start_pos; std::vector m_data_for_writing; }; class Box_grpl : public Box { public: Box_grpl(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; protected: Error parse(BitstreamRange& range) override; struct EntityGroup { BoxHeader header; uint32_t group_id; std::vector entity_ids; }; std::vector m_entity_groups; }; class Box_dinf : public Box { public: Box_dinf(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; protected: Error parse(BitstreamRange& range) override; }; class Box_dref : public Box { public: Box_dref(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; protected: Error parse(BitstreamRange& range) override; }; class Box_url : public Box { public: Box_url(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; protected: Error parse(BitstreamRange& range) override; std::string m_location; }; class Box_pixi : public Box { public: Box_pixi() { set_short_type(fourcc("pixi")); set_is_full_box(true); } Box_pixi(const BoxHeader& hdr) : Box(hdr) {} int get_num_channels() const { return (int) m_bits_per_channel.size(); } int get_bits_per_channel(int channel) const { return m_bits_per_channel[channel]; } void add_channel_bits(uint8_t c){ m_bits_per_channel.push_back(c); } std::string dump(Indent&) const override; Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; private: std::vector m_bits_per_channel; }; class color_profile { public: virtual ~color_profile() {} virtual uint32_t get_type() const = 0; virtual std::string dump(Indent&) const = 0; virtual Error write(StreamWriter& writer) const = 0; }; class color_profile_raw : public color_profile { public: color_profile_raw(uint32_t type, std::vector data) : m_type(type), m_data(data) {} uint32_t get_type() const override { return m_type; } std::vector get_data() const { return m_data; } std::string dump(Indent&) const override; Error write(StreamWriter& writer) const override; private: uint32_t m_type; std::vector m_data; }; class color_profile_nclx : public color_profile { public: color_profile_nclx() { set_default(); } uint32_t get_type() const override { return fourcc("nclx"); } std::string dump(Indent&) const override; Error parse(BitstreamRange& range); Error write(StreamWriter& writer) const override; uint16_t get_colour_primaries() const { return m_colour_primaries; } uint16_t get_transfer_characteristics() const { return m_transfer_characteristics; } uint16_t get_matrix_coefficients() const { return m_matrix_coefficients; } bool get_full_range_flag() const { return m_full_range_flag; } void set_colour_primaries(uint16_t primaries) { m_colour_primaries = primaries; } void set_transfer_characteristics(uint16_t characteristics) { m_transfer_characteristics = characteristics; } void set_matrix_coefficients(uint16_t coefficients) { m_matrix_coefficients = coefficients; } void set_full_range_flag(bool full_range) { m_full_range_flag = full_range; } void set_default(); void set_undefined(); Error get_nclx_color_profile(struct heif_color_profile_nclx** out_data) const; static struct heif_color_profile_nclx* alloc_nclx_color_profile(); static void free_nclx_color_profile(struct heif_color_profile_nclx* profile); void set_from_heif_color_profile_nclx(const struct heif_color_profile_nclx* nclx); private: uint16_t m_colour_primaries = 0; uint16_t m_transfer_characteristics = 0; uint16_t m_matrix_coefficients = 0; bool m_full_range_flag = true; }; class Box_colr : public Box { public: Box_colr() { set_short_type(fourcc("colr")); set_is_full_box(false); } Box_colr(const BoxHeader& hdr) : Box(hdr) {} std::string dump(Indent&) const override; uint32_t get_color_profile_type() const { return m_color_profile->get_type(); } std::shared_ptr get_color_profile() const { return m_color_profile; } void set_color_profile(std::shared_ptr prof) { m_color_profile = prof; } Error write(StreamWriter& writer) const override; protected: Error parse(BitstreamRange& range) override; private: std::shared_ptr m_color_profile; }; } #endif libheif-1.12.0/libheif/heif_plugin_registry.cc0000644000175000017500000001041614003350413016243 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include "heif_plugin_registry.h" #if HAVE_LIBDE265 #include "heif_decoder_libde265.h" #endif #if HAVE_X265 #include "heif_encoder_x265.h" #endif #if HAVE_AOM_ENCODER #include "heif_encoder_aom.h" #endif #if HAVE_AOM_DECODER #include "heif_decoder_aom.h" #endif #if HAVE_RAV1E #include "heif_encoder_rav1e.h" #endif #if HAVE_DAV1D #include "heif_decoder_dav1d.h" #endif using namespace heif; std::set heif::s_decoder_plugins; struct encoder_descriptor_priority_order { bool operator()(const std::unique_ptr& a, const std::unique_ptr& b) const { return a->plugin->priority > b->plugin->priority; // highest priority first } }; std::set, encoder_descriptor_priority_order> s_encoder_descriptors; static class Register_Default_Plugins { public: Register_Default_Plugins() { #if HAVE_LIBDE265 heif::register_decoder(get_decoder_plugin_libde265()); #endif #if HAVE_X265 heif::register_encoder(get_encoder_plugin_x265()); #endif #if HAVE_AOM_ENCODER heif::register_encoder(get_encoder_plugin_aom()); #endif #if HAVE_AOM_DECODER heif::register_decoder(get_decoder_plugin_aom()); #endif #if HAVE_RAV1E heif::register_encoder(get_encoder_plugin_rav1e()); #endif #if HAVE_DAV1D heif::register_decoder(get_decoder_plugin_dav1d()); #endif } } dummy; void heif::register_decoder(const heif_decoder_plugin* decoder_plugin) { if (decoder_plugin->init_plugin) { (*decoder_plugin->init_plugin)(); } s_decoder_plugins.insert(decoder_plugin); } const struct heif_decoder_plugin* heif::get_decoder(enum heif_compression_format type) { int highest_priority = 0; const struct heif_decoder_plugin* best_plugin = nullptr; for (const auto* plugin : s_decoder_plugins) { int priority = plugin->does_support_format(type); if (priority > highest_priority) { highest_priority = priority; best_plugin = plugin; } } return best_plugin; } void heif::register_encoder(const heif_encoder_plugin* encoder_plugin) { if (encoder_plugin->init_plugin) { (*encoder_plugin->init_plugin)(); } auto descriptor = std::unique_ptr(new heif_encoder_descriptor); descriptor->plugin = encoder_plugin; s_encoder_descriptors.insert(std::move(descriptor)); } const struct heif_encoder_plugin* heif::get_encoder(enum heif_compression_format type) { auto filtered_encoder_descriptors = get_filtered_encoder_descriptors(type, nullptr); if (filtered_encoder_descriptors.size() > 0) { return filtered_encoder_descriptors[0]->plugin; } else { return nullptr; } } std::vector heif::get_filtered_encoder_descriptors(enum heif_compression_format format, const char* name) { std::vector filtered_descriptors; for (const auto& descr : s_encoder_descriptors) { const struct heif_encoder_plugin* plugin = descr->plugin; if (plugin->compression_format == format || format == heif_compression_undefined) { if (name == nullptr || strcmp(name, plugin->id_name) == 0) { filtered_descriptors.push_back(descr.get()); } } } // Note: since our std::set<> is ordered by priority, we do not have to sort our output return filtered_descriptors; } libheif-1.12.0/libheif/heif_decoder_dav1d.cc0000644000175000017500000001613514003350413015505 00000000000000/* * AVIF codec. * Copyright (c) 2020 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif.h" #include "heif_plugin.h" #include "heif_limits.h" #include "heif_image.h" #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include struct dav1d_decoder { Dav1dSettings settings; Dav1dContext* context; Dav1dData data; }; static const char kEmptyString[] = ""; static const int DAV1D_PLUGIN_PRIORITY = 150; #define MAX_PLUGIN_NAME_LENGTH 80 static char plugin_name[MAX_PLUGIN_NAME_LENGTH]; static const char* dav1d_plugin_name() { snprintf(plugin_name, MAX_PLUGIN_NAME_LENGTH, "dav1d v%d.%d.%d", DAV1D_API_VERSION_MAJOR, DAV1D_API_VERSION_MINOR, DAV1D_API_VERSION_PATCH); // make sure that the string is null-terminated plugin_name[MAX_PLUGIN_NAME_LENGTH - 1] = 0; return plugin_name; } static void dav1d_init_plugin() { } static void dav1d_deinit_plugin() { } static int dav1d_does_support_format(enum heif_compression_format format) { if (format == heif_compression_AV1) { return DAV1D_PLUGIN_PRIORITY; } else { return 0; } } struct heif_error dav1d_new_decoder(void** dec) { auto* decoder = new dav1d_decoder(); dav1d_default_settings(&decoder->settings); decoder->settings.frame_size_limit = MAX_IMAGE_WIDTH * MAX_IMAGE_HEIGHT; decoder->settings.all_layers = 0; if (dav1d_open(&decoder->context, &decoder->settings) != 0) { struct heif_error err = {heif_error_Decoder_plugin_error, heif_suberror_Unspecified, kSuccess}; return err; } memset(&decoder->data, 0, sizeof(Dav1dData)); *dec = decoder; struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; return err; } void dav1d_free_decoder(void* decoder_raw) { auto* decoder = (dav1d_decoder*) decoder_raw; if (!decoder) { return; } if (decoder->data.sz) { dav1d_data_unref(&decoder->data); } if (decoder->context) { dav1d_close(&decoder->context); } delete decoder; } struct heif_error dav1d_push_data(void* decoder_raw, const void* frame_data, size_t frame_size) { auto* decoder = (struct dav1d_decoder*) decoder_raw; assert(decoder->data.sz == 0); uint8_t* d = dav1d_data_create(&decoder->data, frame_size); if (d == nullptr) { struct heif_error err = {heif_error_Memory_allocation_error, heif_suberror_Unspecified, kSuccess}; return err; } memcpy(d, frame_data, frame_size); struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; return err; } struct heif_error dav1d_decode_image(void* decoder_raw, struct heif_image** out_img) { auto* decoder = (struct dav1d_decoder*) decoder_raw; struct heif_error err; Dav1dPicture frame; memset(&frame, 0, sizeof(Dav1dPicture)); for (;;) { int res = dav1d_send_data(decoder->context, &decoder->data); if ((res < 0) && (res != DAV1D_ERR(EAGAIN))) { err = {heif_error_Decoder_plugin_error, heif_suberror_Unspecified, kEmptyString}; return err; } res = dav1d_get_picture(decoder->context, &frame); if (res == DAV1D_ERR(EAGAIN)) { err = {heif_error_Decoder_plugin_error, heif_suberror_Unspecified, kEmptyString}; return err; } else if (res < 0) { err = {heif_error_Decoder_plugin_error, heif_suberror_Unspecified, kEmptyString}; return err; } else { break; } } heif_chroma chroma; heif_colorspace colorspace; switch (frame.p.layout) { case DAV1D_PIXEL_LAYOUT_I420: chroma = heif_chroma_420; colorspace = heif_colorspace_YCbCr; break; case DAV1D_PIXEL_LAYOUT_I422: chroma = heif_chroma_422; colorspace = heif_colorspace_YCbCr; break; case DAV1D_PIXEL_LAYOUT_I444: chroma = heif_chroma_444; colorspace = heif_colorspace_YCbCr; break; case DAV1D_PIXEL_LAYOUT_I400: chroma = heif_chroma_monochrome; colorspace = heif_colorspace_monochrome; break; default: { err = {heif_error_Decoder_plugin_error, heif_suberror_Unspecified, kEmptyString}; return err; } } struct heif_image* heif_img = nullptr; err = heif_image_create(frame.p.w, frame.p.h, colorspace, chroma, &heif_img); if (err.code != heif_error_Ok) { assert(heif_img == nullptr); return err; } // --- read nclx parameters from decoded AV1 bitstream heif_color_profile_nclx nclx; nclx.color_primaries = (heif_color_primaries) frame.seq_hdr->pri; nclx.transfer_characteristics = (heif_transfer_characteristics) frame.seq_hdr->trc; nclx.matrix_coefficients = (heif_matrix_coefficients) frame.seq_hdr->mtrx; nclx.full_range_flag = (frame.seq_hdr->color_range != 0); heif_image_set_nclx_color_profile(heif_img, &nclx); // --- transfer data from aom_image_t to HeifPixelImage heif_channel channel2plane[3] = { heif_channel_Y, heif_channel_Cb, heif_channel_Cr }; // --- copy image data for (int c = 0; c < 3; c++) { if (chroma == heif_chroma_monochrome && c > 0) { break; } int bpp = frame.p.bpc; const uint8_t* data = (uint8_t*) frame.data[c]; int stride = (int) frame.stride[c > 0 ? 1 : 0]; int w, h; heif::get_subsampled_size(frame.p.w, frame.p.h, channel2plane[c], chroma, &w, &h); err = heif_image_add_plane(heif_img, channel2plane[c], w, h, bpp); if (err.code != heif_error_Ok) { heif_image_release(heif_img); return err; } int dst_stride; uint8_t* dst_mem = heif_image_get_plane(heif_img, channel2plane[c], &dst_stride); int bytes_per_pixel = (bpp + 7) / 8; for (int y = 0; y < h; y++) { memcpy(dst_mem + y * dst_stride, data + y * stride, w * bytes_per_pixel); } } dav1d_picture_unref(&frame); *out_img = heif_img; err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; return err; } static const struct heif_decoder_plugin decoder_dav1d { 1, dav1d_plugin_name, dav1d_init_plugin, dav1d_deinit_plugin, dav1d_does_support_format, dav1d_new_decoder, dav1d_free_decoder, dav1d_push_data, dav1d_decode_image }; const struct heif_decoder_plugin* get_decoder_plugin_dav1d() { return &decoder_dav1d; } libheif-1.12.0/libheif/heif_colorconversion.h0000644000175000017500000001012314003350412016075 00000000000000/* * HEIF codec. * Copyright (c) 2017 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif_image.h" #include #include namespace heif { struct ColorState { heif_colorspace colorspace = heif_colorspace_undefined; heif_chroma chroma = heif_chroma_undefined; bool has_alpha = false; int bits_per_pixel = 8; std::shared_ptr nclx_profile; ColorState() = default; ColorState(heif_colorspace colorspace, heif_chroma chroma, bool has_alpha, int bits_per_pixel) : colorspace(colorspace), chroma(chroma), has_alpha(has_alpha), bits_per_pixel(bits_per_pixel) {} bool operator==(const ColorState&) const; }; enum class ColorConversionCriterion { Speed, Quality, Memory, Balanced }; struct ColorConversionCosts { ColorConversionCosts() = default; ColorConversionCosts(float _speed, float _quality, float _memory) { speed = _speed; quality = _quality; memory = _memory; } float speed = 0; float quality = 0; float memory = 0; ColorConversionCosts operator+(const ColorConversionCosts& b) const { return {speed + b.speed, quality + b.quality, memory + b.memory}; } float total(ColorConversionCriterion) const { return speed * 0.3f + quality * 0.6f + memory * 0.1f; } }; struct ColorConversionOptions { ColorConversionCriterion criterion = ColorConversionCriterion::Balanced; }; struct ColorStateWithCost { ColorState color_state; ColorConversionCosts costs; }; class ColorConversionOperation { public: virtual ~ColorConversionOperation() = default; // We specify the target state to control the conversion into a direction that is most // suitable for reaching the target state. That allows one conversion operation to // provide a range of conversion options. // Also returns the cost for this conversion. virtual std::vector state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options = ColorConversionOptions()) = 0; virtual std::shared_ptr convert_colorspace(const std::shared_ptr& input, ColorState target_state, ColorConversionOptions options = ColorConversionOptions()) = 0; }; class ColorConversionPipeline { public: bool construct_pipeline(ColorState input_state, ColorState target_state, ColorConversionOptions options = ColorConversionOptions()); std::shared_ptr convert_image(const std::shared_ptr& input); void debug_dump_pipeline() const; private: std::vector> m_operations; ColorState m_target_state; ColorConversionOptions m_options; }; std::shared_ptr convert_colorspace(const std::shared_ptr& input, heif_colorspace colorspace, heif_chroma chroma, std::shared_ptr target_profile, int output_bpp = 0); } libheif-1.12.0/libheif/heif_decoder_aom.cc0000644000175000017500000001464614003350413015267 00000000000000/* * AVIF codec. * Copyright (c) 2019 struktur AG, Dirk Farin * * This file is part of libheif. * * libheif is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libheif 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 libheif. If not, see . */ #include "heif.h" #include "heif_plugin.h" #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include #include #include #include #include struct aom_decoder { aom_codec_ctx_t codec; bool codec_initialized = false; aom_codec_iface_t* iface; }; static const char kSuccess[] = "Success"; static const char kEmptyString[] = ""; static const int AOM_PLUGIN_PRIORITY = 100; #define MAX_PLUGIN_NAME_LENGTH 80 static char plugin_name[MAX_PLUGIN_NAME_LENGTH]; static const char* aom_plugin_name() { if (strlen(aom_codec_iface_name(aom_codec_av1_dx())) < MAX_PLUGIN_NAME_LENGTH) { strcpy(plugin_name, aom_codec_iface_name(aom_codec_av1_dx())); } else { strcpy(plugin_name, "AOMedia AV1 decoder"); } return plugin_name; } static void aom_init_plugin() { } static void aom_deinit_plugin() { } static int aom_does_support_format(enum heif_compression_format format) { if (format == heif_compression_AV1) { return AOM_PLUGIN_PRIORITY; } else { return 0; } } struct heif_error aom_new_decoder(void** dec) { struct aom_decoder* decoder = new aom_decoder(); decoder->iface = aom_codec_av1_dx(); aom_codec_err_t aomerr = aom_codec_dec_init(&decoder->codec, decoder->iface, NULL, 0); if (aomerr) { *dec = NULL; delete decoder; struct heif_error err = {heif_error_Decoder_plugin_error, heif_suberror_Unspecified, kSuccess}; return err; } decoder->codec_initialized = true; *dec = decoder; struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; return err; } void aom_free_decoder(void* decoder_raw) { struct aom_decoder* decoder = (aom_decoder*) decoder_raw; if (!decoder) { return; } if (decoder->codec_initialized) { aom_codec_destroy(&decoder->codec); decoder->codec_initialized = false; } delete decoder; } struct heif_error aom_push_data(void* decoder_raw, const void* frame_data, size_t frame_size) { struct aom_decoder* decoder = (struct aom_decoder*) decoder_raw; aom_codec_err_t aomerr; aomerr = aom_codec_decode(&decoder->codec, (const uint8_t*) frame_data, frame_size, NULL); if (aomerr) { struct heif_error err = {heif_error_Invalid_input, heif_suberror_Unspecified, kSuccess}; return err; } struct heif_error err = {heif_error_Ok, heif_suberror_Unspecified, kSuccess}; return err; } struct heif_error aom_decode_image(void* decoder_raw, struct heif_image** out_img) { struct aom_decoder* decoder = (struct aom_decoder*) decoder_raw; aom_codec_iter_t iter = NULL; aom_image_t* img = NULL; img = aom_codec_get_frame(&decoder->codec, &iter); if (img == NULL) { struct heif_error err = {heif_error_Decoder_plugin_error, heif_suberror_Unspecified, kEmptyString}; return err; } if (img->fmt != AOM_IMG_FMT_I420 && img->fmt != AOM_IMG_FMT_I42016 && img->fmt != AOM_IMG_FMT_I422 && img->fmt != AOM_IMG_FMT_I42216 && img->fmt != AOM_IMG_FMT_I444 && img->fmt != AOM_IMG_FMT_I44416) { struct heif_error err = {heif_error_Decoder_plugin_error, heif_suberror_Unsupported_image_type, kEmptyString}; return err; } heif_chroma chroma; if (img->fmt == AOM_IMG_FMT_I444 || img->fmt == AOM_IMG_FMT_I44416) { chroma = heif_chroma_444; } else if (img->fmt == AOM_IMG_FMT_I422 || img->fmt == AOM_IMG_FMT_I42216) { chroma = heif_chroma_422; } else { chroma = heif_chroma_420; } struct heif_image* heif_img = nullptr; struct heif_error err = heif_image_create(img->d_w, img->d_h, heif_colorspace_YCbCr, chroma, &heif_img); if (err.code != heif_error_Ok) { assert(heif_img==nullptr); return err; } // --- read nclx parameters from decoded AV1 bitstream heif_color_profile_nclx nclx; nclx.color_primaries = (heif_color_primaries) img->cp; nclx.transfer_characteristics = (heif_transfer_characteristics) img->tc; nclx.matrix_coefficients = (heif_matrix_coefficients) img->mc; nclx.full_range_flag = (img->range == AOM_CR_FULL_RANGE); heif_image_set_nclx_color_profile(heif_img, &nclx); // --- transfer data from aom_image_t to HeifPixelImage heif_channel channel2plane[3] = { heif_channel_Y, heif_channel_Cb, heif_channel_Cr }; for (int c = 0; c < 3; c++) { int bpp = img->bit_depth; const uint8_t* data = img->planes[c]; int stride = img->stride[c]; int w = img->d_w; int h = img->d_h; if (c > 0 && chroma == heif_chroma_420) { w = (w + 1) / 2; h = (h + 1) / 2; } else if (c > 0 && chroma == heif_chroma_422) { w = (w + 1) / 2; } err = heif_image_add_plane(heif_img, channel2plane[c], w, h, bpp); if (err.code != heif_error_Ok) { heif_image_release(heif_img); return err; } int dst_stride; uint8_t* dst_mem = heif_image_get_plane(heif_img, channel2plane[c], &dst_stride); int bytes_per_pixel = (bpp + 7) / 8; for (int y = 0; y < h; y++) { memcpy(dst_mem + y * dst_stride, data + y * stride, w * bytes_per_pixel); } } *out_img = heif_img; return err; } static const struct heif_decoder_plugin decoder_aom { 1, aom_plugin_name, aom_init_plugin, aom_deinit_plugin, aom_does_support_format, aom_new_decoder, aom_free_decoder, aom_push_data, aom_decode_image }; const struct heif_decoder_plugin* get_decoder_plugin_aom() { return &decoder_aom; } libheif-1.12.0/README.md0000664000175000017500000001737714043747772011435 00000000000000# libheif [![Build Status](https://github.com/strukturag/libheif/workflows/build/badge.svg)](https://github.com/strukturag/libheif/actions) [![Build Status](https://ci.appveyor.com/api/projects/status/github/strukturag/libheif?svg=true)](https://ci.appveyor.com/project/strukturag/libheif) [![Coverity Scan Build Status](https://scan.coverity.com/projects/16641/badge.svg)](https://scan.coverity.com/projects/strukturag-libheif) libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File Format) file format decoder and encoder. HEIF and AVIF are new image file formats employing HEVC (h.265) or AV1 image coding, respectively, for the best compression ratios currently possible. libheif makes use of [libde265](https://github.com/strukturag/libde265) for HEIF image decoding and x265 for encoding. For AVIF, libaom, dav1d, or rav1e are used as codecs. ## Supported features libheif has support for decoding * tiled images * alpha channels * thumbnails * reading EXIF and XMP metadata * reading the depth channel * multiple images in a file * image transformations (crop, mirror, rotate) * overlay images * plugin interface to add alternative codecs for additional formats (AVC, JPEG) * decoding of files while downloading (e.g. extract image size before file has been completely downloaded) * reading color profiles * heix images (10 and 12 bit, chroma 4:2:2) The encoder supports: * lossy compression with adjustable quality * lossless compression * alpha channels * thumbnails * save multiple images to a file * save EXIF and XMP metadata * writing color profiles * 10 and 12 bit images * monochrome images ## API The library has a C API for easy integration and wide language support. Note that the API is still work in progress and may still change. The decoder automatically supports both HEIF and AVIF through the same API. No changes are required to existing code to support AVIF. The encoder can be switched between HEIF and AVIF simply by setting `heif_compression_HEVC` or `heif_compression_AV1` to `heif_context_get_encoder_for_format()`. Loading the primary image in an HEIF file is as easy as this: ```C heif_context* ctx = heif_context_alloc(); heif_context_read_from_file(ctx, input_filename, nullptr); // get a handle to the primary image heif_image_handle* handle; heif_context_get_primary_image_handle(ctx, &handle); // decode the image and convert colorspace to RGB, saved as 24bit interleaved heif_image* img; heif_decode_image(handle, &img, heif_colorspace_RGB, heif_chroma_interleaved_RGB, nullptr); int stride; const uint8_t* data = heif_image_get_plane_readonly(img, heif_channel_interleaved, &stride); ``` Writing an HEIF file can be done like this: ```C heif_context* ctx = heif_context_alloc(); // get the default encoder heif_encoder* encoder; heif_context_get_encoder_for_format(ctx, heif_compression_HEVC, &encoder); // set the encoder parameters heif_encoder_set_lossy_quality(encoder, 50); // encode the image heif_image* image; // code to fill in the image omitted in this example heif_context_encode_image(ctx, image, encoder, nullptr, nullptr); heif_encoder_release(encoder); heif_context_write_to_file(context, "output.heic"); ``` See the header file `heif.h` for the complete C API. There is also a C++ API which is a header-only wrapper to the C API. Hence, you can use the C++ API and still be binary compatible. Code using the C++ API is much less verbose than using the C API directly. There is also an experimental Go API, but this is not stable yet. ## Compiling This library uses either a standard autoconf/automake build system or CMake. When using autoconf, run `./autogen.sh` to build the configuration scripts, then call `./configure` and `make`. Make sure that you compile and install [libde265](https://github.com/strukturag/libde265) first, so that the configuration script will find this. Preferably, download the `frame-parallel` branch of libde265, as this uses a more recent API than the version in the `master` branch. Also install x265 and its development files if you want to use HEIF encoding. For AVIF support, make sure that libaom is installed. ### macOS 1. Install dependencies with Homebrew ``` brew install automake make pkg-config x265 libde265 libjpeg ``` 1. Configure and build project ``` ./autogen.sh ./configure make ``` ### Windows Libheif is included in [Vcpkg](https://github.com/Microsoft/vcpkg/). ### Adding rav1e encoder for AVIF * Install `cargo`. * Install `cargo-c` by executing ``` cargo install --force cargo-c ``` * Run the `rav1e.cmd` script in directory `third-party` to download rav1e and compile it. When running `cmake` or `configure`, make sure that the environment variable `PKG_CONFIG_PATH` includes the absolute path to `third-party/rav1e/dist/lib/pkgconfig`. ### Adding dav1d decoder for AVIF * Install [`meson`](https://mesonbuild.com/). * Run the `dav1d.cmd` script in directory `third-party` to download dav1d and compile it. When running `cmake` or `configure`, make sure that the environment variable `PKG_CONFIG_PATH` includes the absolute path to `third-party/dav1d/dist/lib/x86_64-linux-gnu/pkgconfig`. ## Language bindings * .NET Platform (C#, F#, and other languages): [libheif-sharp](https://github.com/0xC0000054/libheif-sharp) * C++: part of libheif * Go: part of libheif * JavaScript: by compilation with emscripten (see below) * NodeJS module: [libheif-js](https://www.npmjs.com/package/libheif-js) * Python: [pyheif](https://pypi.org/project/pyheif/) * Rust: [libheif-sys](https://github.com/Cykooz/libheif-sys) Languages that can directly interface with C libraries (e.g., Swift, C#) should work out of the box. ## Compiling to JavaScript libheif can also be compiled to JavaScript using [emscripten](http://kripken.github.io/emscripten-site/). See the `build-emscripten.sh` for further information. ## Online demo Check out this [online demo](https://strukturag.github.io/libheif/). This is `libheif` running in JavaScript in your browser. ## Example programs Some example programs are provided in the `examples` directory. The program `heif-convert` converts all images stored in an HEIF/AVIF file to JPEG or PNG. `heif-enc` lets you convert JPEG files to HEIF/AVIF. The program `heif-info` is a simple, minimal decoder that dumps the file structure to the console. For example convert `example.heic` to JPEGs and one of the JPEGs back to HEIF: ``` cd examples/ ./heif-convert example.heic example.jpeg ./heif-enc example-1.jpeg -o example.heif ``` In order to convert `example-1.jpeg` to AVIF use: ``` ./heif-enc example-1.jpeg -A -o example.avif ``` There is also a GIMP plugin using libheif [here](https://github.com/strukturag/heif-gimp-plugin). ## HEIF/AVIF thumbnails for the Gnome desktop The program `heif-thumbnailer` can be used as an HEIF/AVIF thumbnailer for the Gnome desktop. The matching Gnome configuration files are in the `gnome` directory. Place the files `heif.xml` and `avif.xml` into `/usr/share/mime/packages` and `heif.thumbnailer` into `/usr/share/thumbnailers`. You may have to run `update-mime-database /usr/share/mime` to update the list of known MIME types. ## gdk-pixbuf loader libheif also includes a gdk-pixbuf loader for HEIF/AVIF images. 'make install' will copy the plugin into the system directories. However, you will still have to run `gdk-pixbuf-query-loaders --update-cache` to update the gdk-pixbuf loader database. ## Software using libheif * GIMP * Krita * ImageMagick * digiKam 7.0.0 * libvips * [Kodi HEIF image decoder plugin](https://kodi.wiki/view/Add-on:HEIF_image_decoder) ## License The libheif is distributed under the terms of the GNU Lesser General Public License. The sample applications are distributed under the terms of the MIT License. See COPYING for more details. Copyright (c) 2017-2020 Struktur AG Contact: Dirk Farin libheif-1.12.0/go/0000775000175000017500000000000014044446310010605 500000000000000libheif-1.12.0/go/Makefile.in0000664000175000017500000003540714044226076012610 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = go ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_c_cxx_compile_flags.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.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/visibility.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__extra_recursive_targets = format-recursive test-recursive am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_LIBFUZZER = @ENABLE_LIBFUZZER@ ENABLE_PARALLEL_TILE_DECODING = @ENABLE_PARALLEL_TILE_DECODING@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FUZZING_ENGINE = @FUZZING_ENGINE@ GO = @GO@ GREP = @GREP@ HAVE_CXX11 = @HAVE_CXX11@ HAVE_GO = @HAVE_GO@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBHEIF_AGE = @LIBHEIF_AGE@ LIBHEIF_CURRENT = @LIBHEIF_CURRENT@ LIBHEIF_REVISION = @LIBHEIF_REVISION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PROJECT_VERSION_MAJOR = @PROJECT_VERSION_MAJOR@ PROJECT_VERSION_MINOR = @PROJECT_VERSION_MINOR@ PROJECT_VERSION_PATCH = @PROJECT_VERSION_PATCH@ PROJECT_VERSION_TWEAK = @PROJECT_VERSION_TWEAK@ RANLIB = @RANLIB@ REQUIRES_PRIVATE = @REQUIRES_PRIVATE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WITH_EXAMPLES = @WITH_EXAMPLES@ 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_CXX = @ac_ct_CXX@ 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@ aom_CFLAGS = @aom_CFLAGS@ aom_LIBS = @aom_LIBS@ 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@ dav1d_CFLAGS = @dav1d_CFLAGS@ dav1d_LIBS = @dav1d_LIBS@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gdk_pixbuf_binary_version = @gdk_pixbuf_binary_version@ gdk_pixbuf_binarydir = @gdk_pixbuf_binarydir@ gdk_pixbuf_cache_file = @gdk_pixbuf_cache_file@ gdk_pixbuf_moduledir = @gdk_pixbuf_moduledir@ gdkpixbuf_CFLAGS = @gdkpixbuf_CFLAGS@ gdkpixbuf_LIBS = @gdkpixbuf_LIBS@ have_aom = @have_aom@ have_aom_decoder = @have_aom_decoder@ have_aom_encoder = @have_aom_encoder@ have_avif_decoder = @have_avif_decoder@ have_avif_encoder = @have_avif_encoder@ have_libde265 = @have_libde265@ have_rav1e = @have_rav1e@ have_x265 = @have_x265@ 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@ libde265_CFLAGS = @libde265_CFLAGS@ libde265_LIBS = @libde265_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libjpeg_CFLAGS = @libjpeg_CFLAGS@ libjpeg_LIBS = @libjpeg_LIBS@ libpng_CFLAGS = @libpng_CFLAGS@ libpng_LIBS = @libpng_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rav1e_CFLAGS = @rav1e_CFLAGS@ rav1e_LIBS = @rav1e_LIBS@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ x265_CFLAGS = @x265_CFLAGS@ x265_LIBS = @x265_LIBS@ EXTRA_DIST = \ heif/heif.go \ heif/heif_test.go \ heif/keepalive_16.go \ heif/keepalive_17.go 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) --foreign go/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign go/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(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 format-local: test-local: tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile 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 mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: format: format-am format-am: format-local html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f 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: test: test-am test-am: test-local uninstall-am: .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 format-am format-local \ html html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am test-am \ test-local uninstall uninstall-am .PRECIOUS: Makefile gopath: ln -sf ${CURDIR} ${CURDIR}/src @HAVE_GO_TRUE@test-go: gopath $(top_builddir)/libheif/libheif.la $(top_builddir)/libheif.pc @HAVE_GO_TRUE@ GOPATH=${CURDIR} PKG_CONFIG_PATH=$(abs_top_builddir):$(abs_top_builddir)/libde265/dist/lib/pkgconfig/ CGO_CFLAGS="-I$(abs_top_builddir)" CGO_LDFLAGS="-L$(abs_top_builddir)/libheif/.libs" LD_LIBRARY_PATH=$(abs_top_builddir)/libheif/.libs $(GO) test -v heif @HAVE_GO_TRUE@format-go: gopath @HAVE_GO_TRUE@ GOPATH=${CURDIR} $(GO) fmt heif @HAVE_GO_FALSE@test-go: @HAVE_GO_FALSE@ echo ""go" not present in "${PATH}", skipping tests" @HAVE_GO_FALSE@format-go: @HAVE_GO_FALSE@ echo ""go" not present in "${PATH}", skipping formatting" test-local: test-go format-local: format-go # 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: libheif-1.12.0/go/Makefile.am0000644000175000017500000000133114003350405012547 00000000000000EXTRA_DIST = \ heif/heif.go \ heif/heif_test.go \ heif/keepalive_16.go \ heif/keepalive_17.go gopath: ln -sf ${CURDIR} ${CURDIR}/src if HAVE_GO test-go: gopath $(top_builddir)/libheif/libheif.la $(top_builddir)/libheif.pc GOPATH=${CURDIR} PKG_CONFIG_PATH=$(abs_top_builddir):$(abs_top_builddir)/libde265/dist/lib/pkgconfig/ CGO_CFLAGS="-I$(abs_top_builddir)" CGO_LDFLAGS="-L$(abs_top_builddir)/libheif/.libs" LD_LIBRARY_PATH=$(abs_top_builddir)/libheif/.libs $(GO) test -v heif format-go: gopath GOPATH=${CURDIR} $(GO) fmt heif else test-go: echo ""go" not present in "${PATH}", skipping tests" format-go: echo ""go" not present in "${PATH}", skipping formatting" endif test-local: test-go format-local: format-go libheif-1.12.0/go/heif/0000775000175000017500000000000014044446311011521 500000000000000libheif-1.12.0/go/heif/heif_test.go0000644000175000017500000001217314003350405013735 00000000000000/* * GO interface to libheif * Copyright (c) 2018 struktur AG, Joachim Bauch * * This file is part of heif, an example application using libheif. * * heif 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. * * heif 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 heif. If not, see . */ package heif import ( "fmt" "image" "io/ioutil" "os" "path" "testing" ) func TestGetVersion(t *testing.T) { version := GetVersion() if version == "" { t.Fatal("Version is missing") } } type decodeTest struct { colorspace Colorspace chroma Chroma } func CheckHeifImage(t *testing.T, handle *ImageHandle, thumbnail bool) { handle.GetWidth() handle.GetHeight() handle.HasAlphaChannel() handle.HasDepthImage() count := handle.GetNumberOfDepthImages() if ids := handle.GetListOfDepthImageIDs(); len(ids) != count { t.Errorf("Expected %d depth image ids, got %d", count, len(ids)) } if !thumbnail { count = handle.GetNumberOfThumbnails() ids := handle.GetListOfThumbnailIDs() if len(ids) != count { t.Errorf("Expected %d thumbnail image ids, got %d", count, len(ids)) } for _, id := range ids { if thumb, err := handle.GetThumbnail(id); err != nil { t.Errorf("Could not get thumbnail %d: %s", id, err) } else { CheckHeifImage(t, thumb, true) } } } if img, err := handle.DecodeImage(ColorspaceUndefined, ChromaUndefined, nil); err != nil { t.Errorf("Could not decode image: %s", err) } else { img.GetColorspace() img.GetChromaFormat() } decodeTests := []decodeTest{ decodeTest{ColorspaceYCbCr, Chroma420}, decodeTest{ColorspaceYCbCr, Chroma422}, decodeTest{ColorspaceYCbCr, Chroma444}, decodeTest{ColorspaceRGB, Chroma444}, decodeTest{ColorspaceRGB, ChromaInterleavedRGB}, decodeTest{ColorspaceRGB, ChromaInterleavedRGBA}, decodeTest{ColorspaceRGB, ChromaInterleavedRRGGBB_BE}, decodeTest{ColorspaceRGB, ChromaInterleavedRRGGBBAA_BE}, } for _, test := range decodeTests { if img, err := handle.DecodeImage(test.colorspace, test.chroma, nil); err != nil { t.Errorf("Could not decode image with %v / %v: %s", test.colorspace, test.chroma, err) } else { img.GetColorspace() img.GetChromaFormat() if _, err := img.GetImage(); err != nil { t.Errorf("Could not get image with %v /%v: %s", test.colorspace, test.chroma, err) continue } } } } func CheckHeifFile(t *testing.T, ctx *Context) { if count := ctx.GetNumberOfTopLevelImages(); count != 2 { t.Errorf("Expected %d top level images, got %d", 2, count) } if ids := ctx.GetListOfTopLevelImageIDs(); len(ids) != 2 { t.Errorf("Expected %d top level image ids, got %+v", 2, ids) } if _, err := ctx.GetPrimaryImageID(); err != nil { t.Errorf("Expected a primary image, got %s", err) } if handle, err := ctx.GetPrimaryImageHandle(); err != nil { t.Errorf("Could not get primary image handle: %s", err) } else { if !handle.IsPrimaryImage() { t.Error("Expected primary image") } CheckHeifImage(t, handle, false) } } func TestReadFromFile(t *testing.T) { ctx, err := NewContext() if err != nil { t.Fatalf("Can't create context: %s", err) } filename := path.Join("..", "..", "examples", "example.heic") if err := ctx.ReadFromFile(filename); err != nil { t.Fatalf("Can't read from %s: %s", filename, err) } CheckHeifFile(t, ctx) } func TestReadFromMemory(t *testing.T) { ctx, err := NewContext() if err != nil { t.Fatalf("Can't create context: %s", err) } filename := path.Join("..", "..", "examples", "example.heic") data, err := ioutil.ReadFile(filename) if err != nil { t.Fatalf("Can't read file %s: %s", filename, err) } if err := ctx.ReadFromMemory(data); err != nil { t.Fatalf("Can't read from memory: %s", err) } data = nil // Make sure future processing works if "data" is GC'd CheckHeifFile(t, ctx) } func TestReadImage(t *testing.T) { filename := path.Join("..", "..", "examples", "example.heic") fp, err := os.Open(filename) if err != nil { t.Fatalf("Could not open %s: %s", filename, err) } defer fp.Close() config, format1, err := image.DecodeConfig(fp) if err != nil { t.Fatalf("Could not load image config from %s: %s", filename, err) } if format1 != "heif" { t.Errorf("Expected format heif, got %s", format1) } if _, err := fp.Seek(0, 0); err != nil { t.Fatalf("Could not seek to start of %s: %s", filename, err) } img, format2, err := image.Decode(fp) if err != nil { t.Fatalf("Could not load image from %s: %s", filename, err) } if format2 != "heif" { t.Errorf("Expected format heif, got %s", format2) } r := img.Bounds() if config.Width != (r.Max.X-r.Min.X) || config.Height != (r.Max.Y-r.Min.Y) { fmt.Printf("Image size %+v does not match config %+v\n", r, config) } } libheif-1.12.0/go/heif/heif.go0000664000175000017500000011424714043747772012732 00000000000000/* * GO interface to libheif * Copyright (c) 2018 struktur AG, Dirk Farin * * This file is part of heif, an example application using libheif. * * heif 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. * * heif 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 heif. If not, see . */ package heif /* #cgo pkg-config: libheif #include #include // We use 'memcpy' #include */ import "C" import ( "fmt" "image" "image/color" "io" "io/ioutil" "runtime" "unsafe" ) func GetVersion() string { return C.GoString(C.heif_get_version()) } type Compression C.enum_heif_compression_format const ( CompressionUndefined = C.heif_compression_undefined CompressionHEVC = C.heif_compression_HEVC CompressionAV1 = C.heif_compression_AV1 CompressionAVC = C.heif_compression_AVC CompressionJPEG = C.heif_compression_JPEG ) type Chroma C.enum_heif_chroma const ( ChromaUndefined = C.heif_chroma_undefined ChromaMonochrome = C.heif_chroma_monochrome Chroma420 = C.heif_chroma_420 Chroma422 = C.heif_chroma_422 Chroma444 = C.heif_chroma_444 ChromaInterleavedRGB = C.heif_chroma_interleaved_RGB ChromaInterleavedRGBA = C.heif_chroma_interleaved_RGBA ChromaInterleavedRRGGBBAA_BE = C.heif_chroma_interleaved_RRGGBBAA_BE ChromaInterleavedRRGGBBAA_LE = C.heif_chroma_interleaved_RRGGBBAA_LE ChromaInterleavedRRGGBB_BE = C.heif_chroma_interleaved_RRGGBB_BE ChromaInterleavedRRGGBB_LE = C.heif_chroma_interleaved_RRGGBB_LE ChromaInterleaved24Bit = C.heif_chroma_interleaved_24bit ChromaInterleaved32Bit = C.heif_chroma_interleaved_32bit ) type Colorspace C.enum_heif_colorspace const ( ColorspaceUndefined = C.heif_colorspace_undefined ColorspaceYCbCr = C.heif_colorspace_YCbCr ColorspaceRGB = C.heif_colorspace_RGB ColorspaceMonochrome = C.heif_colorspace_monochrome ) type Channel C.enum_heif_channel const ( ChannelY = C.heif_channel_Y ChannelCb = C.heif_channel_Cb ChannelCr = C.heif_channel_Cr ChannelR = C.heif_channel_R ChannelG = C.heif_channel_G ChannelB = C.heif_channel_B ChannelAlpha = C.heif_channel_Alpha ChannelInterleaved = C.heif_channel_interleaved ) type ProgressStep C.enum_heif_progress_step const ( ProgressStepTotal = C.heif_progress_step_total ProgressStepLoadTile = C.heif_progress_step_load_tile ) type LosslessMode int const ( LosslessModeDisabled LosslessMode = iota LosslessModeEnabled ) type LoggingLevel int const ( LoggingLevelNone LoggingLevel = iota LoggingLevelBasic LoggingLevelAdvanced LoggingLevelFull ) // --- HeifError type ErrorCode C.enum_heif_error_code const ( ErrorOK = C.heif_error_Ok // Input file does not exist. ErrorInputDoesNotExist = C.heif_error_Input_does_not_exist // Error in input file. Corrupted or invalid content. errorInvalidInput = C.heif_error_Invalid_input // Input file type is not supported. ErrorUnsupportedFiletype = C.heif_error_Unsupported_filetype // Image requires an unsupported decoder feature. ErrorUnsupportedFeature = C.heif_error_Unsupported_feature // Library API has been used in an invalid way. ErrorUsage = C.heif_error_Usage_error // Could not allocate enough memory. ErrorMemoryAllocation = C.heif_error_Memory_allocation_error // The decoder plugin generated an error ErrorDecoderPlugin = C.heif_error_Decoder_plugin_error // The decoder plugin generated an error ErrorEncoderPlugin = C.heif_error_Encoder_plugin_error // Error during encoding or when writing to the output ErrorEncoding = C.heif_error_Encoding_error // Application has asked for a color profile type that does not exist ErrorColorProfileDoesNotExist = C.heif_error_Color_profile_does_not_exist ) type ErrorSubcode C.enum_heif_suberror_code const ( // no further information available SuberrorUnspecified = C.heif_suberror_Unspecified // --- Invalid_input --- // End of data reached unexpectedly. SuberrorEndOfData = C.heif_suberror_End_of_data // Size of box (defined in header) is wrong SuberrorInvalidBoxSize = C.heif_suberror_Invalid_box_size // Mandatory 'ftyp' box is missing SuberrorNoFtypBox = C.heif_suberror_No_ftyp_box SuberrorNoIdatBox = C.heif_suberror_No_idat_box SuberrorNoMetaBox = C.heif_suberror_No_meta_box SuberrorNoHdlrBox = C.heif_suberror_No_hdlr_box SuberrorNoHvcCBox = C.heif_suberror_No_hvcC_box SuberrorNoPitmBox = C.heif_suberror_No_pitm_box SuberrorNoIpcoBox = C.heif_suberror_No_ipco_box SuberrorNoIpmaBox = C.heif_suberror_No_ipma_box SuberrorNoIlocBox = C.heif_suberror_No_iloc_box SuberrorNoIinfBox = C.heif_suberror_No_iinf_box SuberrorNoIprpBox = C.heif_suberror_No_iprp_box SuberrorNoIrefBox = C.heif_suberror_No_iref_box SuberrorNoPictHandler = C.heif_suberror_No_pict_handler // An item property referenced in the 'ipma' box is not existing in the 'ipco' container. SuberrorIpmaBoxReferencesNonexistingProperty = C.heif_suberror_Ipma_box_references_nonexisting_property // No properties have been assigned to an item. SuberrorNoPropertiesAssignedToItem = C.heif_suberror_No_properties_assigned_to_item // Image has no (compressed) data SuberrorNoItemData = C.heif_suberror_No_item_data // Invalid specification of image grid (tiled image) SuberrorInvalidGridData = C.heif_suberror_Invalid_grid_data // Tile-images in a grid image are missing SuberrorMissingGridImages = C.heif_suberror_Missing_grid_images SuberrorNoAV1CBox = C.heif_suberror_No_av1C_box SuberrorInvalidCleanAperture = C.heif_suberror_Invalid_clean_aperture // Invalid specification of overlay image SuberrorInvalidOverlayData = C.heif_suberror_Invalid_overlay_data // Overlay image completely outside of visible canvas area SuberrorOverlayImageOutsideOfCanvas = C.heif_suberror_Overlay_image_outside_of_canvas SuberrorAuxiliaryImageTypeUnspecified = C.heif_suberror_Auxiliary_image_type_unspecified SuberrorNoOrInvalidPrimaryItem = C.heif_suberror_No_or_invalid_primary_item SuberrorNoInfeBox = C.heif_suberror_No_infe_box SuberrorUnknownColorProfileType = C.heif_suberror_Unknown_color_profile_type SuberrorWrongTileImageChromaFormat = C.heif_suberror_Wrong_tile_image_chroma_format SuberrorInvalidFractionalNumber = C.heif_suberror_Invalid_fractional_number SuberrorInvalidImageSize = C.heif_suberror_Invalid_image_size // --- Memory_allocation_error --- // A security limit preventing unreasonable memory allocations was exceeded by the input file. // Please check whether the file is valid. If it is, contact us so that we could increase the // security limits further. SuberrorSecurityLimitExceeded = C.heif_suberror_Security_limit_exceeded // --- Usage_error --- // An item ID was used that is not present in the file. SuberrorNonexistingItemReferenced = C.heif_suberror_Nonexisting_item_referenced // also used for Invalid_input // An API argument was given a NULL pointer, which is not allowed for that function. SuberrorNullPointerArgument = C.heif_suberror_Null_pointer_argument // Image channel referenced that does not exist in the image SuberrorNonexistingImageChannelReferenced = C.heif_suberror_Nonexisting_image_channel_referenced // The version of the passed plugin is not supported. SuberrorUnsupportedPluginVersion = C.heif_suberror_Unsupported_plugin_version // The version of the passed writer is not supported. SuberrorUnsupportedWriterVersion = C.heif_suberror_Unsupported_writer_version // The given (encoder) parameter name does not exist. SuberrorUnsupportedParameter = C.heif_suberror_Unsupported_parameter // The value for the given parameter is not in the valid range. SuberrorInvalidParameterValue = C.heif_suberror_Invalid_parameter_value SuberrorInvalidPixiBox = C.heif_suberror_Invalid_pixi_box SuberrorWrongTileImagePixelDepth = C.heif_suberror_Wrong_tile_image_pixel_depth // --- Unsupported_feature --- // Image was coded with an unsupported compression method. SuberrorUnsupportedCodec = C.heif_suberror_Unsupported_codec // Image is specified in an unknown way, e.g. as tiled grid image (which is supported) SuberrorUnsupportedImageType = C.heif_suberror_Unsupported_image_type SuberrorUnsupportedDataVersion = C.heif_suberror_Unsupported_data_version // The conversion of the source image to the requested chroma / colorspace is not supported. SuberrorUnsupportedColorConversion = C.heif_suberror_Unsupported_color_conversion SuberrorUnsupportedItemConstructionMethod = C.heif_suberror_Unsupported_item_construction_method // --- Encoder_plugin_error --- SuberrorUnsupportedBitDepth = C.heif_suberror_Unsupported_bit_depth // --- Encoding_error --- SuberrorCannotWriteOutputData = C.heif_suberror_Cannot_write_output_data ) type HeifError struct { Code ErrorCode Subcode ErrorSubcode Message string } func (e *HeifError) Error() string { return e.Message } func convertHeifError(cerror C.struct_heif_error) error { if cerror.code == ErrorOK { return nil } return &HeifError{ Code: ErrorCode(cerror.code), Subcode: ErrorSubcode(cerror.subcode), Message: C.GoString(cerror.message), } } func convertItemIDs(ids []C.heif_item_id, count int) []int { result := make([]int, count) for i := 0; i < count; i++ { result[i] = int(ids[i]) } return result } // --- Context type Context struct { context *C.struct_heif_context } func NewContext() (*Context, error) { ctx := &Context{ context: C.heif_context_alloc(), } if ctx.context == nil { return nil, fmt.Errorf("Could not allocate context") } runtime.SetFinalizer(ctx, freeHeifContext) return ctx, nil } func freeHeifContext(c *Context) { C.heif_context_free(c.context) c.context = nil } func (c *Context) ReadFromFile(filename string) error { c_filename := C.CString(filename) defer C.free(unsafe.Pointer(c_filename)) err := C.heif_context_read_from_file(c.context, c_filename, nil) keepAlive(c) return convertHeifError(err) } func (c *Context) ReadFromMemory(data []byte) error { // TODO: Use reader API internally. err := C.heif_context_read_from_memory(c.context, unsafe.Pointer(&data[0]), C.size_t(len(data)), nil) keepAlive(c) return convertHeifError(err) } type Encoder struct { encoder *C.struct_heif_encoder id string name string } func (e *Encoder) ID() string { return e.id } func (e *Encoder) Name() string { return e.name } func (e *Encoder) SetQuality(q int) error { err := C.heif_encoder_set_lossy_quality(e.encoder, C.int(q)) keepAlive(e) return convertHeifError(err) } func (e *Encoder) SetLossless(l LosslessMode) error { err := C.heif_encoder_set_lossless(e.encoder, C.int(l)) keepAlive(e) return convertHeifError(err) } func (e *Encoder) SetLoggingLevel(l LoggingLevel) error { err := C.heif_encoder_set_logging_level(e.encoder, C.int(l)) keepAlive(e) return convertHeifError(err) } func freeHeifEncoder(enc *Encoder) { C.heif_encoder_release(enc.encoder) enc.encoder = nil } func (c *Context) convertEncoderDescriptor(d *C.struct_heif_encoder_descriptor) (*Encoder, error) { cid := C.heif_encoder_descriptor_get_id_name(d) cname := C.heif_encoder_descriptor_get_name(d) enc := &Encoder{ id: C.GoString(cid), name: C.GoString(cname), } err := C.heif_context_get_encoder(c.context, d, &enc.encoder) keepAlive(c) if err := convertHeifError(err); err != nil { return nil, err } runtime.SetFinalizer(enc, freeHeifEncoder) return enc, nil } func (c *Context) NewEncoder(compression Compression) (*Encoder, error) { const max = 1 descriptors := make([]*C.struct_heif_encoder_descriptor, max) num := int(C.heif_context_get_encoder_descriptors(c.context, uint32(compression), nil, &descriptors[0], C.int(max))) keepAlive(c) if num == 0 { return nil, fmt.Errorf("no encoder for compression %v", compression) } return c.convertEncoderDescriptor(descriptors[0]) } func (c *Context) WriteToFile(filename string) error { err := C.heif_context_write_to_file(c.context, C.CString(filename)) keepAlive(c) return convertHeifError(err) } func (c *Context) GetNumberOfTopLevelImages() int { i := int(C.heif_context_get_number_of_top_level_images(c.context)) keepAlive(c) return i } func (c *Context) IsTopLevelImageID(ID int) bool { ok := C.heif_context_is_top_level_image_ID(c.context, C.heif_item_id(ID)) != 0 keepAlive(c) return ok } func (c *Context) GetListOfTopLevelImageIDs() []int { num := int(C.heif_context_get_number_of_top_level_images(c.context)) keepAlive(c) if num == 0 { return []int{} } origIDs := make([]C.heif_item_id, num) C.heif_context_get_list_of_top_level_image_IDs(c.context, &origIDs[0], C.int(num)) keepAlive(c) return convertItemIDs(origIDs, num) } func (c *Context) GetPrimaryImageID() (int, error) { var id C.heif_item_id err := C.heif_context_get_primary_image_ID(c.context, &id) keepAlive(c) if err := convertHeifError(err); err != nil { return 0, err } return int(id), nil } // --- ImageHandle type ImageHandle struct { handle *C.struct_heif_image_handle } func freeHeifImageHandle(c *ImageHandle) { C.heif_image_handle_release(c.handle) c.handle = nil } func (c *Context) GetPrimaryImageHandle() (*ImageHandle, error) { var handle ImageHandle err := C.heif_context_get_primary_image_handle(c.context, &handle.handle) keepAlive(c) if err := convertHeifError(err); err != nil { return nil, err } runtime.SetFinalizer(&handle, freeHeifImageHandle) return &handle, convertHeifError(err) } func (c *Context) GetImageHandle(id int) (*ImageHandle, error) { var handle ImageHandle err := C.heif_context_get_image_handle(c.context, C.heif_item_id(id), &handle.handle) keepAlive(c) if err := convertHeifError(err); err != nil { return nil, err } runtime.SetFinalizer(&handle, freeHeifImageHandle) return &handle, nil } func (h *ImageHandle) IsPrimaryImage() bool { ok := C.heif_image_handle_is_primary_image(h.handle) != 0 keepAlive(h) return ok } func (h *ImageHandle) GetWidth() int { i := int(C.heif_image_handle_get_width(h.handle)) keepAlive(h) return i } func (h *ImageHandle) GetHeight() int { i := int(C.heif_image_handle_get_height(h.handle)) keepAlive(h) return i } func (h *ImageHandle) HasAlphaChannel() bool { ok := C.heif_image_handle_has_alpha_channel(h.handle) != 0 keepAlive(h) return ok } func (h *ImageHandle) HasDepthImage() bool { ok := C.heif_image_handle_has_depth_image(h.handle) != 0 keepAlive(h) return ok } func (h *ImageHandle) GetNumberOfDepthImages() int { i := int(C.heif_image_handle_get_number_of_depth_images(h.handle)) keepAlive(h) return i } func (h *ImageHandle) GetListOfDepthImageIDs() []int { num := int(C.heif_image_handle_get_number_of_depth_images(h.handle)) keepAlive(h) if num == 0 { return []int{} } origIDs := make([]C.heif_item_id, num) C.heif_image_handle_get_list_of_depth_image_IDs(h.handle, &origIDs[0], C.int(num)) keepAlive(h) return convertItemIDs(origIDs, num) } func (h *ImageHandle) GetDepthImageHandle(depth_image_id int) (*ImageHandle, error) { var handle ImageHandle err := C.heif_image_handle_get_depth_image_handle(h.handle, C.heif_item_id(depth_image_id), &handle.handle) keepAlive(h) if err := convertHeifError(err); err != nil { return nil, err } runtime.SetFinalizer(&handle, freeHeifImageHandle) return &handle, nil } func (h *ImageHandle) GetNumberOfThumbnails() int { i := int(C.heif_image_handle_get_number_of_thumbnails(h.handle)) keepAlive(h) return i } func (h *ImageHandle) GetListOfThumbnailIDs() []int { num := int(C.heif_image_handle_get_number_of_thumbnails(h.handle)) keepAlive(h) if num == 0 { return []int{} } origIDs := make([]C.heif_item_id, num) C.heif_image_handle_get_list_of_thumbnail_IDs(h.handle, &origIDs[0], C.int(num)) keepAlive(h) return convertItemIDs(origIDs, num) } func (h *ImageHandle) GetThumbnail(thumbnail_id int) (*ImageHandle, error) { var handle ImageHandle err := C.heif_image_handle_get_thumbnail(h.handle, C.heif_item_id(thumbnail_id), &handle.handle) keepAlive(h) runtime.SetFinalizer(&handle, freeHeifImageHandle) return &handle, convertHeifError(err) } // TODO: EXIF metadata // --- Image type DecodingOptions struct { options *C.struct_heif_decoding_options } func NewDecodingOptions() (*DecodingOptions, error) { options := &DecodingOptions{ options: C.heif_decoding_options_alloc(), } if options.options == nil { return nil, fmt.Errorf("Could not allocate decoding options") } runtime.SetFinalizer(options, freeHeifDecodingOptions) return options, nil } func freeHeifDecodingOptions(options *DecodingOptions) { C.heif_decoding_options_free(options.options) options.options = nil } type Image struct { image *C.struct_heif_image } func NewImage(width, height int, colorspace Colorspace, chroma Chroma) (*Image, error) { var image Image err := C.heif_image_create(C.int(width), C.int(height), uint32(colorspace), uint32(chroma), &image.image) if err := convertHeifError(err); err != nil { return nil, err } runtime.SetFinalizer(&image, freeHeifImage) return &image, nil } func freeHeifImage(image *Image) { C.heif_image_release(image.image) image.image = nil } func (h *ImageHandle) DecodeImage(colorspace Colorspace, chroma Chroma, options *DecodingOptions) (*Image, error) { var image Image var opt *C.struct_heif_decoding_options if options != nil { opt = options.options } err := C.heif_decode_image(h.handle, &image.image, uint32(colorspace), uint32(chroma), opt) keepAlive(h) if err := convertHeifError(err); err != nil { return nil, err } runtime.SetFinalizer(&image, freeHeifImage) return &image, nil } func (img *Image) GetColorspace() Colorspace { cs := Colorspace(C.heif_image_get_colorspace(img.image)) keepAlive(img) return cs } func (img *Image) GetChromaFormat() Chroma { c := Chroma(C.heif_image_get_chroma_format(img.image)) keepAlive(img) return c } func (img *Image) GetWidth(channel Channel) int { i := int(C.heif_image_get_width(img.image, uint32(channel))) keepAlive(img) return i } func (img *Image) GetHeight(channel Channel) int { i := int(C.heif_image_get_height(img.image, uint32(channel))) keepAlive(img) return i } func (img *Image) GetBitsPerPixel(channel Channel) int { i := int(C.heif_image_get_bits_per_pixel(img.image, uint32(channel))) keepAlive(img) return i } func (img *Image) GetBitsPerPixelRange(channel Channel) int { i := int(C.heif_image_get_bits_per_pixel_range(img.image, uint32(channel))) keepAlive(img) return i } func (img *Image) GetImage() (image.Image, error) { var i image.Image cf := img.GetChromaFormat() switch cs := img.GetColorspace(); cs { case ColorspaceYCbCr: var subsample image.YCbCrSubsampleRatio switch cf { case Chroma420: subsample = image.YCbCrSubsampleRatio420 case Chroma422: subsample = image.YCbCrSubsampleRatio422 case Chroma444: subsample = image.YCbCrSubsampleRatio444 default: return nil, fmt.Errorf("Unsupported YCbCr chroma format: %v", cf) } y, err := img.GetPlane(ChannelY) if err != nil { return nil, err } cb, err := img.GetPlane(ChannelCb) if err != nil { return nil, err } cr, err := img.GetPlane(ChannelCr) if err != nil { return nil, err } i = &image.YCbCr{ Y: y.Plane, Cb: cb.Plane, Cr: cr.Plane, YStride: y.Stride, CStride: cb.Stride, SubsampleRatio: subsample, Rect: image.Rectangle{ Min: image.Point{ X: 0, Y: 0, }, Max: image.Point{ X: img.GetWidth(ChannelY), Y: img.GetHeight(ChannelY), }, }, } case ColorspaceRGB: switch cf { case Chroma444: r, err := img.GetPlane(ChannelR) if err != nil { return nil, err } g, err := img.GetPlane(ChannelG) if err != nil { return nil, err } b, err := img.GetPlane(ChannelB) if err != nil { return nil, err } width := img.GetWidth(ChannelR) height := img.GetHeight(ChannelR) read_pos_r := 0 read_pos_g := 0 read_pos_b := 0 write_pos := 0 var rgba []byte var stride int if bpp := img.GetBitsPerPixelRange(ChannelR); bpp > 8 { // NOTE: We only support the same bits per pixel on all components. stride = width * 8 rgba = make([]byte, height*stride) stride_add_r := r.Stride - width*2 stride_add_g := g.Stride - width*2 stride_add_b := b.Stride - width*2 if bpp == 16 { for y := 0; y < height; y++ { for x := 0; x < width; x++ { rgba[write_pos] = r.Plane[read_pos_r] rgba[write_pos+1] = r.Plane[read_pos_r+1] rgba[write_pos+2] = g.Plane[read_pos_g] rgba[write_pos+3] = g.Plane[read_pos_g+1] rgba[write_pos+4] = b.Plane[read_pos_b] rgba[write_pos+5] = b.Plane[read_pos_b+1] rgba[write_pos+6] = 0xff rgba[write_pos+7] = 0xff read_pos_r += 2 read_pos_g += 2 read_pos_b += 2 write_pos += 8 } read_pos_r += stride_add_r read_pos_g += stride_add_g read_pos_b += stride_add_b } } else { for y := 0; y < height; y++ { for x := 0; x < width; x++ { r_value := (int16(r.Plane[read_pos_r+1]) << 8) | int16(r.Plane[read_pos_r]) r_value = (r_value << (16 - uint(bpp))) | (r_value >> (2*uint(bpp) - 16)) rgba[write_pos] = byte(r_value >> 8) rgba[write_pos+1] = byte(r_value & 0xff) g_value := (int16(g.Plane[read_pos_g+1]) << 8) | int16(g.Plane[read_pos_g]) g_value = (g_value << (16 - uint(bpp))) | (g_value >> (2*uint(bpp) - 16)) rgba[write_pos+2] = byte(g_value >> 8) rgba[write_pos+3] = byte(g_value & 0xff) b_value := (int16(b.Plane[read_pos_b+1]) << 8) | int16(b.Plane[read_pos_b]) b_value = (b_value << (16 - uint(bpp))) | (b_value >> (2*uint(bpp) - 16)) rgba[write_pos+4] = byte(b_value >> 8) rgba[write_pos+5] = byte(b_value & 0xff) rgba[write_pos+6] = 0xff rgba[write_pos+7] = 0xff read_pos_r += 2 read_pos_g += 2 read_pos_b += 2 write_pos += 8 } read_pos_r += stride_add_r read_pos_g += stride_add_g read_pos_b += stride_add_b } } i = &image.RGBA64{ Pix: rgba, Stride: stride, Rect: image.Rectangle{ Min: image.Point{ X: 0, Y: 0, }, Max: image.Point{ X: width, Y: height, }, }, } } else { stride = width * 4 rgba = make([]byte, height*stride) stride_add_r := r.Stride - width stride_add_g := g.Stride - width stride_add_b := b.Stride - width for y := 0; y < height; y++ { for x := 0; x < width; x++ { rgba[write_pos] = r.Plane[read_pos_r] rgba[write_pos+1] = g.Plane[read_pos_g] rgba[write_pos+2] = b.Plane[read_pos_b] rgba[write_pos+3] = 0xff read_pos_r++ read_pos_g++ read_pos_b++ write_pos += 4 } read_pos_r += stride_add_r read_pos_g += stride_add_g read_pos_b += stride_add_b } i = &image.RGBA{ Pix: rgba, Stride: stride, Rect: image.Rectangle{ Min: image.Point{ X: 0, Y: 0, }, Max: image.Point{ X: width, Y: height, }, }, } } case ChromaInterleavedRGB: rgb, err := img.GetPlane(ChannelInterleaved) if err != nil { return nil, err } width := img.GetWidth(ChannelInterleaved) height := img.GetHeight(ChannelInterleaved) rgba := make([]byte, width*height*4) read_pos := 0 write_pos := 0 stride_add := rgb.Stride - width*3 for y := 0; y < height; y++ { for x := 0; x < width; x++ { rgba[write_pos] = rgb.Plane[read_pos] rgba[write_pos+1] = rgb.Plane[read_pos+1] rgba[write_pos+2] = rgb.Plane[read_pos+2] rgba[write_pos+3] = 0xff read_pos += 3 write_pos += 4 } read_pos += stride_add } i = &image.RGBA{ Pix: rgba, Stride: width * 4, Rect: image.Rectangle{ Min: image.Point{ X: 0, Y: 0, }, Max: image.Point{ X: width, Y: height, }, }, } case ChromaInterleavedRGBA: rgba, err := img.GetPlane(ChannelInterleaved) if err != nil { return nil, err } i = &image.RGBA{ Pix: rgba.Plane, Stride: rgba.Stride, Rect: image.Rectangle{ Min: image.Point{ X: 0, Y: 0, }, Max: image.Point{ X: img.GetWidth(ChannelInterleaved), Y: img.GetHeight(ChannelInterleaved), }, }, } case ChromaInterleavedRRGGBB_BE: rgb, err := img.GetPlane(ChannelInterleaved) if err != nil { return nil, err } width := img.GetWidth(ChannelInterleaved) height := img.GetHeight(ChannelInterleaved) rgba := make([]byte, width*height*8) read_pos := 0 write_pos := 0 stride_add := rgb.Stride - width*6 if bpp := img.GetBitsPerPixelRange(ChannelInterleaved); bpp != 16 { for y := 0; y < height; y++ { for x := 0; x < width; x++ { r_value := (int16(rgb.Plane[read_pos]) << 8) | int16(rgb.Plane[read_pos+1]) r_value = (r_value << (16 - uint(bpp))) | (r_value >> (2*uint(bpp) - 16)) rgba[write_pos] = byte(r_value >> 8) rgba[write_pos+1] = byte(r_value & 0xff) g_value := (int16(rgb.Plane[read_pos+2]) << 8) | int16(rgb.Plane[read_pos+3]) g_value = (g_value << (16 - uint(bpp))) | (g_value >> (2*uint(bpp) - 16)) rgba[write_pos+2] = byte(g_value >> 8) rgba[write_pos+3] = byte(g_value & 0xff) b_value := (int16(rgb.Plane[read_pos+4]) << 8) | int16(rgb.Plane[read_pos+5]) b_value = (b_value << (16 - uint(bpp))) | (b_value >> (2*uint(bpp) - 16)) rgba[write_pos+4] = byte(b_value >> 8) rgba[write_pos+5] = byte(b_value & 0xff) rgba[write_pos+6] = 0xff rgba[write_pos+7] = 0xff read_pos += 6 write_pos += 8 } read_pos += stride_add } } else { for y := 0; y < height; y++ { for x := 0; x < width; x++ { rgba[write_pos] = rgb.Plane[read_pos] rgba[write_pos+1] = rgb.Plane[read_pos+1] rgba[write_pos+2] = rgb.Plane[read_pos+2] rgba[write_pos+3] = rgb.Plane[read_pos+3] rgba[write_pos+4] = rgb.Plane[read_pos+4] rgba[write_pos+5] = rgb.Plane[read_pos+5] rgba[write_pos+6] = 0xff rgba[write_pos+7] = 0xff read_pos += 6 write_pos += 8 } read_pos += stride_add } } i = &image.RGBA64{ Pix: rgba, Stride: width * 4, Rect: image.Rectangle{ Min: image.Point{ X: 0, Y: 0, }, Max: image.Point{ X: width, Y: height, }, }, } case ChromaInterleavedRRGGBBAA_BE: rgba, err := img.GetPlane(ChannelInterleaved) if err != nil { return nil, err } width := img.GetWidth(ChannelInterleaved) height := img.GetHeight(ChannelInterleaved) var plane []byte if bpp := img.GetBitsPerPixelRange(ChannelInterleaved); bpp != 16 { read_pos := 0 write_pos := 0 stride_add := rgba.Stride - width*8 plane = make([]byte, width*height*8) for y := 0; y < height; y++ { for x := 0; x < width; x++ { r_value := (int16(rgba.Plane[read_pos]) << 8) | int16(rgba.Plane[read_pos+1]) r_value = (r_value << (16 - uint(bpp))) | (r_value >> (2*uint(bpp) - 16)) plane[write_pos] = byte(r_value >> 8) plane[write_pos+1] = byte(r_value & 0xff) g_value := (int16(rgba.Plane[read_pos+2]) << 8) | int16(rgba.Plane[read_pos+3]) g_value = (g_value << (16 - uint(bpp))) | (g_value >> (2*uint(bpp) - 16)) plane[write_pos+2] = byte(g_value >> 8) plane[write_pos+3] = byte(g_value & 0xff) b_value := (int16(rgba.Plane[read_pos+4]) << 8) | int16(rgba.Plane[read_pos+5]) b_value = (b_value << (16 - uint(bpp))) | (b_value >> (2*uint(bpp) - 16)) plane[write_pos+4] = byte(b_value >> 8) plane[write_pos+5] = byte(b_value & 0xff) a_value := (int16(rgba.Plane[read_pos+6]) << 8) | int16(rgba.Plane[read_pos+7]) a_value = (a_value << (16 - uint(bpp))) | (a_value >> (2*uint(bpp) - 16)) plane[write_pos+6] = byte(a_value >> 8) plane[write_pos+7] = byte(a_value & 0xff) read_pos += 8 write_pos += 8 } read_pos += stride_add } } else { plane = rgba.Plane } i = &image.RGBA64{ Pix: plane, Stride: rgba.Stride, Rect: image.Rectangle{ Min: image.Point{ X: 0, Y: 0, }, Max: image.Point{ X: width, Y: height, }, }, } default: return nil, fmt.Errorf("Unsupported RGB chroma format: %v", cf) } default: return nil, fmt.Errorf("Unsupported colorspace: %v", cs) } return i, nil } type ImageAccess struct { Plane []byte planePtr unsafe.Pointer Stride int height int image *Image // need this reference to make sure the image is not GC'ed while we access it } func (i *ImageAccess) setData(data []byte, stride int) { // Handle common case directly if stride == i.Stride { dstP := uintptr(i.planePtr) srcP := uintptr(unsafe.Pointer(&data[0])) C.memcpy(unsafe.Pointer(dstP), unsafe.Pointer(srcP), C.size_t(i.height*stride)) } else { for y := 0; y < i.height; y++ { dstP := uintptr(i.planePtr) + uintptr(y*i.Stride) srcP := uintptr(unsafe.Pointer(&data[0])) + uintptr(y*stride) C.memcpy(unsafe.Pointer(dstP), unsafe.Pointer(srcP), C.size_t(stride)) } } i.Plane = C.GoBytes(i.planePtr, C.int(i.height*i.Stride)) } func (img *Image) GetPlane(channel Channel) (*ImageAccess, error) { height := C.heif_image_get_height(img.image, uint32(channel)) keepAlive(img) if height == -1 { return nil, fmt.Errorf("No such channel %v", channel) } var stride C.int plane := C.heif_image_get_plane(img.image, uint32(channel), &stride) keepAlive(img) if plane == nil { return nil, fmt.Errorf("No such channel %v", channel) } ptr := unsafe.Pointer(plane) size := stride * height access := &ImageAccess{ Plane: C.GoBytes(ptr, size), planePtr: ptr, Stride: int(stride), height: int(height), image: img, } return access, nil } func (img *Image) NewPlane(channel Channel, width, height, depth int) (*ImageAccess, error) { err := C.heif_image_add_plane(img.image, uint32(channel), C.int(width), C.int(height), C.int(depth)) keepAlive(img) if err := convertHeifError(err); err != nil { return nil, err } return img.GetPlane(channel) } func (img *Image) ScaleImage(width int, height int) (*Image, error) { var scaled_image Image err := C.heif_image_scale_image(img.image, &scaled_image.image, C.int(width), C.int(height), nil) keepAlive(img) if err := convertHeifError(err); err != nil { return nil, err } runtime.SetFinalizer(&scaled_image, freeHeifImage) return &scaled_image, nil } // --- High-level encoding API. type EncodingOptions struct { options *C.struct_heif_encoding_options } func NewEncodingOptions() (*EncodingOptions, error) { options := &EncodingOptions{ options: C.heif_encoding_options_alloc(), } if options.options == nil { return nil, fmt.Errorf("Could not allocate encoding options") } runtime.SetFinalizer(options, freeHeifEncodingOptions) return options, nil } func freeHeifEncodingOptions(options *EncodingOptions) { C.heif_encoding_options_free(options.options) options.options = nil } func imageFromRGBA(i *image.RGBA) (*Image, error) { min := i.Bounds().Min max := i.Bounds().Max w := max.X - min.X h := max.Y - min.Y out, err := NewImage(w, h, ColorspaceRGB, ChromaInterleavedRGBA) if err != nil { return nil, fmt.Errorf("failed to create image: %v", err) } p, err := out.NewPlane(ChannelInterleaved, w, h, 8) if err != nil { return nil, fmt.Errorf("failed to add plane: %v", err) } p.setData([]byte(i.Pix), w*4) return out, nil } func imageFromRGBA64(i *image.RGBA64) (*Image, error) { min := i.Bounds().Min max := i.Bounds().Max w := max.X - min.X h := max.Y - min.Y out, err := NewImage(w, h, ColorspaceRGB, ChromaInterleavedRRGGBBAA_BE) if err != nil { return nil, fmt.Errorf("failed to create image: %v", err) } p, err := out.NewPlane(ChannelInterleaved, w, h, 10) if err != nil { return nil, fmt.Errorf("failed to add plane: %v", err) } pix := make([]byte, w*h*8) read_pos := 0 write_pos := 0 for y := 0; y < h; y++ { for x := 0; x < w; x++ { r := (uint16(i.Pix[read_pos]) << 8) | uint16(i.Pix[read_pos+1]) r = r >> 6 pix[write_pos] = byte(r >> 8) pix[write_pos+1] = byte(r & 0xff) read_pos += 2 g := (uint16(i.Pix[read_pos]) << 8) | uint16(i.Pix[read_pos+1]) g = g >> 6 pix[write_pos+2] = byte(g >> 8) pix[write_pos+3] = byte(g & 0xff) read_pos += 2 b := (uint16(i.Pix[read_pos]) << 8) | uint16(i.Pix[read_pos+1]) b = b >> 6 pix[write_pos+4] = byte(b >> 8) pix[write_pos+5] = byte(b & 0xff) read_pos += 2 a := (uint16(i.Pix[read_pos]) << 8) | uint16(i.Pix[read_pos+1]) a = a >> 6 pix[write_pos+6] = byte(a >> 8) pix[write_pos+7] = byte(a & 0xff) pix[write_pos+6] = byte(a >> 8) pix[write_pos+7] = byte(a & 0xff) read_pos += 2 write_pos += 8 } } p.setData(pix, w*8) return out, nil } func imageFromGray(i *image.Gray) (*Image, error) { min := i.Bounds().Min max := i.Bounds().Max w := max.X - min.X h := max.Y - min.Y out, err := NewImage(w, h, ColorspaceYCbCr, ChromaMonochrome) if err != nil { return nil, fmt.Errorf("failed to create image: %v", err) } const depth = 8 pY, err := out.NewPlane(ChannelY, w, h, depth) if err != nil { return nil, fmt.Errorf("failed to add Y plane: %v", err) } pY.setData([]byte(i.Pix), i.Stride) return out, nil } func imageFromYCbCr(i *image.YCbCr) (*Image, error) { min := i.Bounds().Min max := i.Bounds().Max w := max.X - min.X h := max.Y - min.Y var cm Chroma switch sr := i.SubsampleRatio; sr { case image.YCbCrSubsampleRatio420: cm = Chroma420 default: return nil, fmt.Errorf("unsupported subsample ratio: %s", sr.String()) } out, err := NewImage(w, h, ColorspaceYCbCr, cm) if err != nil { return nil, fmt.Errorf("failed to create image: %v", err) } const depth = 8 pY, err := out.NewPlane(ChannelY, w, h, depth) if err != nil { return nil, fmt.Errorf("failed to add Y plane: %v", err) } pY.setData([]byte(i.Y), i.YStride) // TODO: Might need to be updated for other SubsampleRatio values. halfW, halfH := (w+1)/2, (h+1)/2 pCb, err := out.NewPlane(ChannelCb, halfW, halfH, depth) if err != nil { return nil, fmt.Errorf("failed to add Cb plane: %v", err) } pCb.setData([]byte(i.Cb), i.CStride) pCr, err := out.NewPlane(ChannelCr, halfW, halfH, depth) if err != nil { return nil, fmt.Errorf("failed to add Cr plane: %v", err) } pCr.setData([]byte(i.Cr), i.CStride) return out, nil } func EncodeFromImage(img image.Image, compression Compression, quality int, lossless LosslessMode, logging LoggingLevel) (*Context, error) { var out *Image switch i := img.(type) { default: return nil, fmt.Errorf("unsupported image type: %T", i) case *image.RGBA: tmp, err := imageFromRGBA(i) if err != nil { return nil, fmt.Errorf("failed to create image: %v", err) } out = tmp case *image.RGBA64: tmp, err := imageFromRGBA64(i) if err != nil { return nil, fmt.Errorf("failed to create image: %v", err) } out = tmp case *image.Gray: tmp, err := imageFromGray(i) if err != nil { return nil, fmt.Errorf("failed to create image: %v", err) } out = tmp case *image.YCbCr: tmp, err := imageFromYCbCr(i) if err != nil { return nil, fmt.Errorf("failed to create image: %v", err) } out = tmp } ctx, err := NewContext() if err != nil { return nil, fmt.Errorf("failed to create HEIF context: %v", err) } enc, err := ctx.NewEncoder(compression) if err != nil { return nil, fmt.Errorf("failed to create encoder: %v", err) } if err := enc.SetQuality(quality); err != nil { return nil, fmt.Errorf("failed to set quality: %v", err) } if err := enc.SetLossless(lossless); err != nil { return nil, fmt.Errorf("failed to set lossless mode: %v", err) } if err := enc.SetLoggingLevel(logging); err != nil { return nil, fmt.Errorf("failed to set logging level: %v", err) } encOpts, err := NewEncodingOptions() if err != nil { return nil, fmt.Errorf("failed to get encoding options: %v", err) } var handle ImageHandle err2 := C.heif_context_encode_image(ctx.context, out.image, enc.encoder, encOpts.options, &handle.handle) keepAlive(ctx) keepAlive(out) keepAlive(enc) keepAlive(encOpts) if err := convertHeifError(err2); err != nil { return nil, fmt.Errorf("failed to encode image: %v", err) } runtime.SetFinalizer(&handle, freeHeifImageHandle) return ctx, nil } // --- High-level decoding API, always decodes primary image (if present). func decodePrimaryImageFromReader(r io.Reader) (*ImageHandle, error) { ctx, err := NewContext() if err != nil { return nil, err } data, err := ioutil.ReadAll(r) if err != nil { return nil, err } if err := ctx.ReadFromMemory(data); err != nil { return nil, err } handle, err := ctx.GetPrimaryImageHandle() if err != nil { return nil, err } return handle, nil } func decodeImage(r io.Reader) (image.Image, error) { handle, err := decodePrimaryImageFromReader(r) if err != nil { return nil, err } img, err := handle.DecodeImage(ColorspaceUndefined, ChromaUndefined, nil) if err != nil { return nil, err } return img.GetImage() } func decodeConfig(r io.Reader) (image.Config, error) { var config image.Config handle, err := decodePrimaryImageFromReader(r) if err != nil { return config, err } config = image.Config{ ColorModel: color.YCbCrModel, Width: handle.GetWidth(), Height: handle.GetHeight(), } return config, nil } func init() { image.RegisterFormat("heif", "????ftypheic", decodeImage, decodeConfig) image.RegisterFormat("heif", "????ftypheim", decodeImage, decodeConfig) image.RegisterFormat("heif", "????ftypheis", decodeImage, decodeConfig) image.RegisterFormat("heif", "????ftypheix", decodeImage, decodeConfig) image.RegisterFormat("heif", "????ftyphevc", decodeImage, decodeConfig) image.RegisterFormat("heif", "????ftyphevm", decodeImage, decodeConfig) image.RegisterFormat("heif", "????ftyphevs", decodeImage, decodeConfig) image.RegisterFormat("heif", "????ftypmif1", decodeImage, decodeConfig) image.RegisterFormat("avif", "????ftypavif", decodeImage, decodeConfig) image.RegisterFormat("avif", "????ftypavis", decodeImage, decodeConfig) } libheif-1.12.0/go/heif/keepalive_16.go0000644000175000017500000000162614003350405014237 00000000000000// +build !go1.7 /* * GO interface to libheif * Copyright (c) 2019 struktur AG, Dirk Farin * * This file is part of heif, an example application using libheif. * * heif 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. * * heif 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 heif. If not, see . */ package heif //go:noinline func keepAlive(x interface{}) { if _Cgo_always_false { _Cgo_use(x) } } libheif-1.12.0/go/heif/keepalive_17.go0000644000175000017500000000161314003350405014234 00000000000000// +build go1.7 /* * GO interface to libheif * Copyright (c) 2019 struktur AG, Dirk Farin * * This file is part of heif, an example application using libheif. * * heif 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. * * heif 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 heif. If not, see . */ package heif import ( "runtime" ) func keepAlive(x interface{}) { runtime.KeepAlive(x) } libheif-1.12.0/tests/0000775000175000017500000000000014044446311011343 500000000000000libheif-1.12.0/tests/encode.cc0000644000175000017500000000550314003350421013017 00000000000000/* libheif unit tests MIT License Copyright (c) 2019 struktur AG, Dirk Farin 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "catch.hpp" #include "libheif/heif.h" struct heif_image* createImage_RRGGBB_BE() { struct heif_image* image; struct heif_error err; err = heif_image_create(256,256, heif_colorspace_RGB, heif_chroma_interleaved_RRGGBB_BE, &image); if (err.code) { return nullptr; } err = heif_image_add_plane(image, heif_channel_interleaved, 256,256, 10); if (err.code) { heif_image_release(image); return nullptr; } return image; } struct heif_error encode_image(struct heif_image* img) { struct heif_context* ctx = heif_context_alloc(); struct heif_encoder* enc; struct heif_error err { heif_error_Ok }; err = heif_context_get_encoder_for_format(ctx, heif_compression_HEVC, &enc); if (err.code) { heif_context_free(ctx); return err; } struct heif_image_handle* hdl; err = heif_context_encode_image(ctx, img, enc, nullptr, &hdl); if (err.code) { heif_encoder_release(enc); heif_context_free(ctx); return err; } return err; } #if 0 TEST_CASE( "Create images", "[heif_image]" ) { auto img = createImage_RRGGBB_BE(); REQUIRE( img != nullptr ); heif_image_release(img); } TEST_CASE( "Encode HDR", "[heif_encoder]" ) { auto img = createImage_RRGGBB_BE(); REQUIRE( img != nullptr ); REQUIRE( encode_image(img).code == heif_error_Ok ); heif_image_release(img); } #endif libheif-1.12.0/tests/test-race.go0000644000175000017500000000523414003350421013472 00000000000000/** * Go race detector * * MIT License * * Copyright (c) 2019 struktur AG, Joachim Bauch * * 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 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * Based on an example by "Hans Duedal" (hans.duedal@gmail.com) to reproduce * https://github.com/strukturag/libheif/issues/147 * */ package main import ( "fmt" "image" "io/ioutil" "os" "sync" "github.com/strukturag/libheif/go/heif" ) func decodeImage(data []byte) (image.Image, int, int, error) { ctx, err := heif.NewContext() if err != nil { return nil, 0, 0, err } err = ctx.ReadFromMemory(data) if err != nil { return nil, 0, 0, err } imgh, err := ctx.GetPrimaryImageHandle() if err != nil { return nil, 0, 0, err } width := imgh.GetWidth() height := imgh.GetHeight() img, err := imgh.DecodeImage(heif.ColorspaceUndefined, heif.ChromaUndefined, nil) if err != nil { return nil, 0, 0, err } img, err = img.ScaleImage(width/2, height/2) if err != nil { return nil, 0, 0, err } goimg, err := img.GetImage() if err != nil { return nil, 0, 0, err } return goimg, width / 2, height / 2, nil } func main() { if len(os.Args) != 2 { fmt.Printf("USAGE: %s \n", os.Args[0]) os.Exit(1) } filename := os.Args[1] imgbytes, err := ioutil.ReadFile(filename) if err != nil { panic(err) } count := 100 var ready sync.WaitGroup var done sync.WaitGroup fmt.Printf("Decoding in %d goroutines ...", count) ready.Add(count) done.Add(count) for i := 0; i < count; i++ { go func() { defer done.Done() ready.Done() ready.Wait() _, _, _, err := decodeImage(imgbytes) if err != nil { panic(err) } }() } done.Wait() fmt.Println("ok") } libheif-1.12.0/tests/Makefile.in0000664000175000017500000007204514044227430013337 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ noinst_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) @HAVE_TESTS_TRUE@am__append_1 = \ @HAVE_TESTS_TRUE@ heif-unit-tests @HAVE_GO_TRUE@am__append_2 = \ @HAVE_GO_TRUE@ test-race subdir = tests ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_c_cxx_compile_flags.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.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/visibility.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = @HAVE_TESTS_TRUE@am__EXEEXT_1 = heif-unit-tests$(EXEEXT) @HAVE_GO_TRUE@am__EXEEXT_2 = test-race$(EXEEXT) PROGRAMS = $(noinst_PROGRAMS) am__heif_unit_tests_SOURCES_DIST = main.cc encode.cc catch.hpp \ conversion.cc @HAVE_TESTS_TRUE@am_heif_unit_tests_OBJECTS = \ @HAVE_TESTS_TRUE@ heif_unit_tests-main.$(OBJEXT) \ @HAVE_TESTS_TRUE@ heif_unit_tests-encode.$(OBJEXT) \ @HAVE_TESTS_TRUE@ heif_unit_tests-conversion.$(OBJEXT) heif_unit_tests_OBJECTS = $(am_heif_unit_tests_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 = heif_unit_tests_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) \ $(heif_unit_tests_LDFLAGS) $(LDFLAGS) -o $@ am__test_race_SOURCES_DIST = test-race.go am_test_race_OBJECTS = test_race_OBJECTS = $(am_test_race_OBJECTS) test_race_LDADD = $(LDADD) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/heif_unit_tests-conversion.Po \ ./$(DEPDIR)/heif_unit_tests-encode.Po \ ./$(DEPDIR)/heif_unit_tests-main.Po am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = 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 = $(heif_unit_tests_SOURCES) $(test_race_SOURCES) DIST_SOURCES = $(am__heif_unit_tests_SOURCES_DIST) \ $(am__test_race_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__extra_recursive_targets = format-recursive test-recursive 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__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ CCASDEPMODE = @CCASDEPMODE@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_LIBFUZZER = @ENABLE_LIBFUZZER@ ENABLE_PARALLEL_TILE_DECODING = @ENABLE_PARALLEL_TILE_DECODING@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FUZZING_ENGINE = @FUZZING_ENGINE@ GO = @GO@ GREP = @GREP@ HAVE_CXX11 = @HAVE_CXX11@ HAVE_GO = @HAVE_GO@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBHEIF_AGE = @LIBHEIF_AGE@ LIBHEIF_CURRENT = @LIBHEIF_CURRENT@ LIBHEIF_REVISION = @LIBHEIF_REVISION@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PROJECT_VERSION_MAJOR = @PROJECT_VERSION_MAJOR@ PROJECT_VERSION_MINOR = @PROJECT_VERSION_MINOR@ PROJECT_VERSION_PATCH = @PROJECT_VERSION_PATCH@ PROJECT_VERSION_TWEAK = @PROJECT_VERSION_TWEAK@ RANLIB = @RANLIB@ REQUIRES_PRIVATE = @REQUIRES_PRIVATE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WITH_EXAMPLES = @WITH_EXAMPLES@ 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_CXX = @ac_ct_CXX@ 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@ aom_CFLAGS = @aom_CFLAGS@ aom_LIBS = @aom_LIBS@ 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@ dav1d_CFLAGS = @dav1d_CFLAGS@ dav1d_LIBS = @dav1d_LIBS@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gdk_pixbuf_binary_version = @gdk_pixbuf_binary_version@ gdk_pixbuf_binarydir = @gdk_pixbuf_binarydir@ gdk_pixbuf_cache_file = @gdk_pixbuf_cache_file@ gdk_pixbuf_moduledir = @gdk_pixbuf_moduledir@ gdkpixbuf_CFLAGS = @gdkpixbuf_CFLAGS@ gdkpixbuf_LIBS = @gdkpixbuf_LIBS@ have_aom = @have_aom@ have_aom_decoder = @have_aom_decoder@ have_aom_encoder = @have_aom_encoder@ have_avif_decoder = @have_avif_decoder@ have_avif_encoder = @have_avif_encoder@ have_libde265 = @have_libde265@ have_rav1e = @have_rav1e@ have_x265 = @have_x265@ 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@ libde265_CFLAGS = @libde265_CFLAGS@ libde265_LIBS = @libde265_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libjpeg_CFLAGS = @libjpeg_CFLAGS@ libjpeg_LIBS = @libjpeg_LIBS@ libpng_CFLAGS = @libpng_CFLAGS@ libpng_LIBS = @libpng_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rav1e_CFLAGS = @rav1e_CFLAGS@ rav1e_LIBS = @rav1e_LIBS@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ x265_CFLAGS = @x265_CFLAGS@ x265_LIBS = @x265_LIBS@ @HAVE_TESTS_TRUE@heif_unit_tests_DEPENDENCIES = ../libheif/libheif.la @HAVE_TESTS_TRUE@heif_unit_tests_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir)/. @HAVE_TESTS_TRUE@heif_unit_tests_LDFLAGS = @HAVE_TESTS_TRUE@heif_unit_tests_LDADD = ../libheif/libheif.la @HAVE_TESTS_TRUE@heif_unit_tests_SOURCES = main.cc encode.cc catch.hpp conversion.cc @HAVE_GO_TRUE@test_race_SOURCES = test-race.go all: all-am .SUFFIXES: .SUFFIXES: .cc .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) --foreign tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign tests/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(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-noinstPROGRAMS: @list='$(noinst_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 heif-unit-tests$(EXEEXT): $(heif_unit_tests_OBJECTS) $(heif_unit_tests_DEPENDENCIES) $(EXTRA_heif_unit_tests_DEPENDENCIES) @rm -f heif-unit-tests$(EXEEXT) $(AM_V_CXXLD)$(heif_unit_tests_LINK) $(heif_unit_tests_OBJECTS) $(heif_unit_tests_LDADD) $(LIBS) @HAVE_GO_FALSE@test-race$(EXEEXT): $(test_race_OBJECTS) $(test_race_DEPENDENCIES) $(EXTRA_test_race_DEPENDENCIES) @HAVE_GO_FALSE@ @rm -f test-race$(EXEEXT) @HAVE_GO_FALSE@ $(AM_V_CCLD)$(LINK) $(test_race_OBJECTS) $(test_race_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_unit_tests-conversion.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_unit_tests-encode.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heif_unit_tests-main.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< heif_unit_tests-main.o: main.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -MT heif_unit_tests-main.o -MD -MP -MF $(DEPDIR)/heif_unit_tests-main.Tpo -c -o heif_unit_tests-main.o `test -f 'main.cc' || echo '$(srcdir)/'`main.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_unit_tests-main.Tpo $(DEPDIR)/heif_unit_tests-main.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='main.cc' object='heif_unit_tests-main.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -c -o heif_unit_tests-main.o `test -f 'main.cc' || echo '$(srcdir)/'`main.cc heif_unit_tests-main.obj: main.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -MT heif_unit_tests-main.obj -MD -MP -MF $(DEPDIR)/heif_unit_tests-main.Tpo -c -o heif_unit_tests-main.obj `if test -f 'main.cc'; then $(CYGPATH_W) 'main.cc'; else $(CYGPATH_W) '$(srcdir)/main.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_unit_tests-main.Tpo $(DEPDIR)/heif_unit_tests-main.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='main.cc' object='heif_unit_tests-main.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -c -o heif_unit_tests-main.obj `if test -f 'main.cc'; then $(CYGPATH_W) 'main.cc'; else $(CYGPATH_W) '$(srcdir)/main.cc'; fi` heif_unit_tests-encode.o: encode.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -MT heif_unit_tests-encode.o -MD -MP -MF $(DEPDIR)/heif_unit_tests-encode.Tpo -c -o heif_unit_tests-encode.o `test -f 'encode.cc' || echo '$(srcdir)/'`encode.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_unit_tests-encode.Tpo $(DEPDIR)/heif_unit_tests-encode.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encode.cc' object='heif_unit_tests-encode.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -c -o heif_unit_tests-encode.o `test -f 'encode.cc' || echo '$(srcdir)/'`encode.cc heif_unit_tests-encode.obj: encode.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -MT heif_unit_tests-encode.obj -MD -MP -MF $(DEPDIR)/heif_unit_tests-encode.Tpo -c -o heif_unit_tests-encode.obj `if test -f 'encode.cc'; then $(CYGPATH_W) 'encode.cc'; else $(CYGPATH_W) '$(srcdir)/encode.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_unit_tests-encode.Tpo $(DEPDIR)/heif_unit_tests-encode.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encode.cc' object='heif_unit_tests-encode.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -c -o heif_unit_tests-encode.obj `if test -f 'encode.cc'; then $(CYGPATH_W) 'encode.cc'; else $(CYGPATH_W) '$(srcdir)/encode.cc'; fi` heif_unit_tests-conversion.o: conversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -MT heif_unit_tests-conversion.o -MD -MP -MF $(DEPDIR)/heif_unit_tests-conversion.Tpo -c -o heif_unit_tests-conversion.o `test -f 'conversion.cc' || echo '$(srcdir)/'`conversion.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_unit_tests-conversion.Tpo $(DEPDIR)/heif_unit_tests-conversion.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='conversion.cc' object='heif_unit_tests-conversion.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -c -o heif_unit_tests-conversion.o `test -f 'conversion.cc' || echo '$(srcdir)/'`conversion.cc heif_unit_tests-conversion.obj: conversion.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -MT heif_unit_tests-conversion.obj -MD -MP -MF $(DEPDIR)/heif_unit_tests-conversion.Tpo -c -o heif_unit_tests-conversion.obj `if test -f 'conversion.cc'; then $(CYGPATH_W) 'conversion.cc'; else $(CYGPATH_W) '$(srcdir)/conversion.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/heif_unit_tests-conversion.Tpo $(DEPDIR)/heif_unit_tests-conversion.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='conversion.cc' object='heif_unit_tests-conversion.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(heif_unit_tests_CXXFLAGS) $(CXXFLAGS) -c -o heif_unit_tests-conversion.obj `if test -f 'conversion.cc'; then $(CYGPATH_W) 'conversion.cc'; else $(CYGPATH_W) '$(srcdir)/conversion.cc'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs format-local: test-local: ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) 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." @HAVE_TESTS_FALSE@test-local: clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/heif_unit_tests-conversion.Po -rm -f ./$(DEPDIR)/heif_unit_tests-encode.Po -rm -f ./$(DEPDIR)/heif_unit_tests-main.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: format: format-am format-am: format-local html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/heif_unit_tests-conversion.Po -rm -f ./$(DEPDIR)/heif_unit_tests-encode.Po -rm -f ./$(DEPDIR)/heif_unit_tests-main.Po -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: test: test-am test-am: test-local uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstPROGRAMS cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am format-am \ format-local 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 test-am test-local uninstall uninstall-am .PRECIOUS: Makefile @HAVE_TESTS_TRUE@test-local: heif-unit-tests @HAVE_TESTS_TRUE@ ./heif-unit-tests @HAVE_GO_TRUE@gopath: @HAVE_GO_TRUE@ mkdir -p ${CURDIR}/src/github.com/strukturag/libheif @HAVE_GO_TRUE@ ln -sf ${CURDIR}/../go ${CURDIR}/src/github.com/strukturag/libheif/ @HAVE_GO_TRUE@test-race: gopath $(top_builddir)/libheif/libheif.la $(top_builddir)/libheif.pc test-race.go @HAVE_GO_TRUE@ GOPATH=${CURDIR} PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:$(abs_top_builddir):$(abs_top_builddir)/libde265/dist/lib/pkgconfig/ CGO_CFLAGS="-I$(abs_top_builddir)" CGO_LDFLAGS="-L$(abs_top_builddir)/libheif/.libs" LD_LIBRARY_PATH=$(abs_top_builddir)/libheif/.libs $(GO) build -o test-race ${test_race_SOURCES} @HAVE_GO_TRUE@format-go: ${test_race_SOURCES} @HAVE_GO_TRUE@ $(GO) fmt ${test_race_SOURCES} @HAVE_GO_FALSE@format-go: @HAVE_GO_FALSE@ echo ""go" not present in "${PATH}", skipping formatting" format-local: format-go # 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: libheif-1.12.0/tests/conversion.cc0000644000175000017500000001244014003350421013745 00000000000000/* libheif unit tests MIT License Copyright (c) 2019 struktur AG, Dirk Farin 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "catch.hpp" #include "libheif/heif_colorconversion.h" using namespace heif; TEST_CASE( "Color conversion", "[heif_image]" ) { ColorConversionPipeline pipeline; bool success; printf("--- color conversions ---\n"); success = pipeline.construct_pipeline( { heif_colorspace_RGB, heif_chroma_444, false, 8 }, { heif_colorspace_RGB, heif_chroma_interleaved_RGB, false, 8 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_YCbCr, heif_chroma_420, false, 8 }, { heif_colorspace_RGB, heif_chroma_interleaved_RGB, false, 8 } ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_YCbCr, heif_chroma_420, false, 8 }, { heif_colorspace_RGB, heif_chroma_interleaved_RGBA, true, 8 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_YCbCr, heif_chroma_420, false, 10 }, { heif_colorspace_RGB, heif_chroma_444, false, 10 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_RGB, heif_chroma_444, false, 10 }, { heif_colorspace_RGB, heif_chroma_interleaved_RRGGBBAA_BE, true, 10 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_RGB, heif_chroma_444, false, 10 }, { heif_colorspace_RGB, heif_chroma_interleaved_RRGGBBAA_LE, true, 10 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_monochrome, heif_chroma_monochrome, false, 8 }, { heif_colorspace_RGB, heif_chroma_interleaved_RGB, false, 8 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_monochrome, heif_chroma_monochrome, false, 8 }, { heif_colorspace_RGB, heif_chroma_interleaved_RGBA, true, 8 } ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_RGB, heif_chroma_interleaved_RGBA, true, 8 }, { heif_colorspace_YCbCr, heif_chroma_420, false, 8 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_RGB, heif_chroma_444, false, 10 }, { heif_colorspace_RGB, heif_chroma_interleaved_RRGGBB_LE, false, 10 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_RGB, heif_chroma_interleaved_RRGGBB_LE, false, 12 }, { heif_colorspace_RGB, heif_chroma_444, false, 12 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_RGB, heif_chroma_444, false, 12 }, { heif_colorspace_YCbCr, heif_chroma_420, false, 12 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_RGB, heif_chroma_interleaved_RRGGBB_BE, false, 12 }, { heif_colorspace_YCbCr, heif_chroma_420, false, 12 } ); REQUIRE( success ); printf("---\n"); success = pipeline.construct_pipeline( { heif_colorspace_RGB, heif_chroma_interleaved_RRGGBB_LE, false, 12 }, { heif_colorspace_YCbCr, heif_chroma_420, false, 12 } ); REQUIRE( success ); printf("--- monochrome colorspace -> interleaved RGB\n"); success = pipeline.construct_pipeline( { heif_colorspace_monochrome, heif_chroma_monochrome, false, 8 }, { heif_colorspace_RGB, heif_chroma_interleaved_RGB, false, 8 } ); REQUIRE( success ); printf("--- monochrome YCbCr -> interleaved RGB\n"); success = pipeline.construct_pipeline( { heif_colorspace_YCbCr, heif_chroma_monochrome, false, 8 }, { heif_colorspace_RGB, heif_chroma_interleaved_RGB, false, 8 } ); REQUIRE( success ); } libheif-1.12.0/tests/Makefile.am0000644000175000017500000000221214044227140013307 00000000000000noinst_PROGRAMS = if HAVE_TESTS noinst_PROGRAMS += \ heif-unit-tests heif_unit_tests_DEPENDENCIES = ../libheif/libheif.la heif_unit_tests_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir)/. heif_unit_tests_LDFLAGS = heif_unit_tests_LDADD = ../libheif/libheif.la heif_unit_tests_SOURCES = main.cc encode.cc catch.hpp conversion.cc test-local: heif-unit-tests ./heif-unit-tests endif if HAVE_GO noinst_PROGRAMS += \ test-race test_race_SOURCES = test-race.go gopath: mkdir -p ${CURDIR}/src/github.com/strukturag/libheif ln -sf ${CURDIR}/../go ${CURDIR}/src/github.com/strukturag/libheif/ test-race: gopath $(top_builddir)/libheif/libheif.la $(top_builddir)/libheif.pc test-race.go GOPATH=${CURDIR} PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:$(abs_top_builddir):$(abs_top_builddir)/libde265/dist/lib/pkgconfig/ CGO_CFLAGS="-I$(abs_top_builddir)" CGO_LDFLAGS="-L$(abs_top_builddir)/libheif/.libs" LD_LIBRARY_PATH=$(abs_top_builddir)/libheif/.libs $(GO) build -o test-race ${test_race_SOURCES} format-go: ${test_race_SOURCES} $(GO) fmt ${test_race_SOURCES} else format-go: echo ""go" not present in "${PATH}", skipping formatting" endif format-local: format-go libheif-1.12.0/tests/catch.hpp0000644000175000017500000225451414003350421013060 00000000000000/* * Catch v2.9.1 * Generated: 2019-06-17 11:59:24.363643 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2019 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED #define TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED // start catch.hpp #define CATCH_VERSION_MAJOR 2 #define CATCH_VERSION_MINOR 9 #define CATCH_VERSION_PATCH 1 #ifdef __clang__ # pragma clang system_header #elif defined __GNUC__ # pragma GCC system_header #endif // start catch_suppress_warnings.h #ifdef __clang__ # ifdef __ICC // icpc defines the __clang__ macro # pragma warning(push) # pragma warning(disable: 161 1682) # else // __ICC # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wpadded" # pragma clang diagnostic ignored "-Wswitch-enum" # pragma clang diagnostic ignored "-Wcovered-switch-default" # endif #elif defined __GNUC__ // Because REQUIREs trigger GCC's -Wparentheses, and because still // supported version of g++ have only buggy support for _Pragmas, // Wparentheses have to be suppressed globally. # pragma GCC diagnostic ignored "-Wparentheses" // See #674 for details # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wunused-variable" # pragma GCC diagnostic ignored "-Wpadded" #endif // end catch_suppress_warnings.h #if defined(CATCH_CONFIG_MAIN) || defined(CATCH_CONFIG_RUNNER) # define CATCH_IMPL # define CATCH_CONFIG_ALL_PARTS #endif // In the impl file, we want to have access to all parts of the headers // Can also be used to sanely support PCHs #if defined(CATCH_CONFIG_ALL_PARTS) # define CATCH_CONFIG_EXTERNAL_INTERFACES # if defined(CATCH_CONFIG_DISABLE_MATCHERS) # undef CATCH_CONFIG_DISABLE_MATCHERS # endif # if !defined(CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER) # define CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER # endif #endif #if !defined(CATCH_CONFIG_IMPL_ONLY) // start catch_platform.h #ifdef __APPLE__ # include # if TARGET_OS_OSX == 1 # define CATCH_PLATFORM_MAC # elif TARGET_OS_IPHONE == 1 # define CATCH_PLATFORM_IPHONE # endif #elif defined(linux) || defined(__linux) || defined(__linux__) # define CATCH_PLATFORM_LINUX #elif defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) || defined(__MINGW32__) # define CATCH_PLATFORM_WINDOWS #endif // end catch_platform.h #ifdef CATCH_IMPL # ifndef CLARA_CONFIG_MAIN # define CLARA_CONFIG_MAIN_NOT_DEFINED # define CLARA_CONFIG_MAIN # endif #endif // start catch_user_interfaces.h namespace Catch { unsigned int rngSeed(); } // end catch_user_interfaces.h // start catch_tag_alias_autoregistrar.h // start catch_common.h // start catch_compiler_capabilities.h // Detect a number of compiler features - by compiler // The following features are defined: // // CATCH_CONFIG_COUNTER : is the __COUNTER__ macro supported? // CATCH_CONFIG_WINDOWS_SEH : is Windows SEH supported? // CATCH_CONFIG_POSIX_SIGNALS : are POSIX signals supported? // CATCH_CONFIG_DISABLE_EXCEPTIONS : Are exceptions enabled? // **************** // Note to maintainers: if new toggles are added please document them // in configuration.md, too // **************** // In general each macro has a _NO_ form // (e.g. CATCH_CONFIG_NO_POSIX_SIGNALS) which disables the feature. // Many features, at point of detection, define an _INTERNAL_ macro, so they // can be combined, en-mass, with the _NO_ forms later. #ifdef __cplusplus # if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L) # define CATCH_CPP14_OR_GREATER # endif # if (__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) # define CATCH_CPP17_OR_GREATER # endif #endif #if defined(CATCH_CPP17_OR_GREATER) # define CATCH_INTERNAL_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS #endif #ifdef __clang__ # define CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \ _Pragma( "clang diagnostic push" ) \ _Pragma( "clang diagnostic ignored \"-Wexit-time-destructors\"" ) \ _Pragma( "clang diagnostic ignored \"-Wglobal-constructors\"") # define CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS \ _Pragma( "clang diagnostic pop" ) # define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \ _Pragma( "clang diagnostic push" ) \ _Pragma( "clang diagnostic ignored \"-Wparentheses\"" ) # define CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS \ _Pragma( "clang diagnostic pop" ) # define CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS \ _Pragma( "clang diagnostic push" ) \ _Pragma( "clang diagnostic ignored \"-Wunused-variable\"" ) # define CATCH_INTERNAL_UNSUPPRESS_UNUSED_WARNINGS \ _Pragma( "clang diagnostic pop" ) # define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \ _Pragma( "clang diagnostic push" ) \ _Pragma( "clang diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"" ) # define CATCH_INTERNAL_UNSUPPRESS_ZERO_VARIADIC_WARNINGS \ _Pragma( "clang diagnostic pop" ) #endif // __clang__ //////////////////////////////////////////////////////////////////////////////// // Assume that non-Windows platforms support posix signals by default #if !defined(CATCH_PLATFORM_WINDOWS) #define CATCH_INTERNAL_CONFIG_POSIX_SIGNALS #endif //////////////////////////////////////////////////////////////////////////////// // We know some environments not to support full POSIX signals #if defined(__CYGWIN__) || defined(__QNX__) || defined(__EMSCRIPTEN__) || defined(__DJGPP__) #define CATCH_INTERNAL_CONFIG_NO_POSIX_SIGNALS #endif #ifdef __OS400__ # define CATCH_INTERNAL_CONFIG_NO_POSIX_SIGNALS # define CATCH_CONFIG_COLOUR_NONE #endif //////////////////////////////////////////////////////////////////////////////// // Android somehow still does not support std::to_string #if defined(__ANDROID__) # define CATCH_INTERNAL_CONFIG_NO_CPP11_TO_STRING #endif //////////////////////////////////////////////////////////////////////////////// // Not all Windows environments support SEH properly #if defined(__MINGW32__) # define CATCH_INTERNAL_CONFIG_NO_WINDOWS_SEH #endif //////////////////////////////////////////////////////////////////////////////// // PS4 #if defined(__ORBIS__) # define CATCH_INTERNAL_CONFIG_NO_NEW_CAPTURE #endif //////////////////////////////////////////////////////////////////////////////// // Cygwin #ifdef __CYGWIN__ // Required for some versions of Cygwin to declare gettimeofday // see: http://stackoverflow.com/questions/36901803/gettimeofday-not-declared-in-this-scope-cygwin # define _BSD_SOURCE // some versions of cygwin (most) do not support std::to_string. Use the libstd check. // https://gcc.gnu.org/onlinedocs/gcc-4.8.2/libstdc++/api/a01053_source.html line 2812-2813 # if !((__cplusplus >= 201103L) && defined(_GLIBCXX_USE_C99) \ && !defined(_GLIBCXX_HAVE_BROKEN_VSWPRINTF)) # define CATCH_INTERNAL_CONFIG_NO_CPP11_TO_STRING # endif #endif // __CYGWIN__ //////////////////////////////////////////////////////////////////////////////// // Visual C++ #ifdef _MSC_VER # if _MSC_VER >= 1900 // Visual Studio 2015 or newer # define CATCH_INTERNAL_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS # endif // Universal Windows platform does not support SEH // Or console colours (or console at all...) # if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) # define CATCH_CONFIG_COLOUR_NONE # else # define CATCH_INTERNAL_CONFIG_WINDOWS_SEH # endif // MSVC traditional preprocessor needs some workaround for __VA_ARGS__ // _MSVC_TRADITIONAL == 0 means new conformant preprocessor // _MSVC_TRADITIONAL == 1 means old traditional non-conformant preprocessor # if !defined(_MSVC_TRADITIONAL) || (defined(_MSVC_TRADITIONAL) && _MSVC_TRADITIONAL) # define CATCH_INTERNAL_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR # endif #endif // _MSC_VER #if defined(_REENTRANT) || defined(_MSC_VER) // Enable async processing, as -pthread is specified or no additional linking is required # define CATCH_INTERNAL_CONFIG_USE_ASYNC #endif // _MSC_VER //////////////////////////////////////////////////////////////////////////////// // Check if we are compiled with -fno-exceptions or equivalent #if defined(__EXCEPTIONS) || defined(__cpp_exceptions) || defined(_CPPUNWIND) # define CATCH_INTERNAL_CONFIG_EXCEPTIONS_ENABLED #endif //////////////////////////////////////////////////////////////////////////////// // DJGPP #ifdef __DJGPP__ # define CATCH_INTERNAL_CONFIG_NO_WCHAR #endif // __DJGPP__ //////////////////////////////////////////////////////////////////////////////// // Embarcadero C++Build #if defined(__BORLANDC__) #define CATCH_INTERNAL_CONFIG_POLYFILL_ISNAN #endif //////////////////////////////////////////////////////////////////////////////// // Use of __COUNTER__ is suppressed during code analysis in // CLion/AppCode 2017.2.x and former, because __COUNTER__ is not properly // handled by it. // Otherwise all supported compilers support COUNTER macro, // but user still might want to turn it off #if ( !defined(__JETBRAINS_IDE__) || __JETBRAINS_IDE__ >= 20170300L ) #define CATCH_INTERNAL_CONFIG_COUNTER #endif //////////////////////////////////////////////////////////////////////////////// // Check if string_view is available and usable // The check is split apart to work around v140 (VS2015) preprocessor issue... #if defined(__has_include) #if __has_include() && defined(CATCH_CPP17_OR_GREATER) # define CATCH_INTERNAL_CONFIG_CPP17_STRING_VIEW #endif #endif //////////////////////////////////////////////////////////////////////////////// // Check if optional is available and usable #if defined(__has_include) # if __has_include() && defined(CATCH_CPP17_OR_GREATER) # define CATCH_INTERNAL_CONFIG_CPP17_OPTIONAL # endif // __has_include() && defined(CATCH_CPP17_OR_GREATER) #endif // __has_include //////////////////////////////////////////////////////////////////////////////// // Check if variant is available and usable #if defined(__has_include) # if __has_include() && defined(CATCH_CPP17_OR_GREATER) # if defined(__clang__) && (__clang_major__ < 8) // work around clang bug with libstdc++ https://bugs.llvm.org/show_bug.cgi?id=31852 // fix should be in clang 8, workaround in libstdc++ 8.2 # include # if defined(__GLIBCXX__) && defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE < 9) # define CATCH_CONFIG_NO_CPP17_VARIANT # else # define CATCH_INTERNAL_CONFIG_CPP17_VARIANT # endif // defined(__GLIBCXX__) && defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE < 9) # else # define CATCH_INTERNAL_CONFIG_CPP17_VARIANT # endif // defined(__clang__) && (__clang_major__ < 8) # endif // __has_include() && defined(CATCH_CPP17_OR_GREATER) #endif // __has_include #if defined(CATCH_INTERNAL_CONFIG_COUNTER) && !defined(CATCH_CONFIG_NO_COUNTER) && !defined(CATCH_CONFIG_COUNTER) # define CATCH_CONFIG_COUNTER #endif #if defined(CATCH_INTERNAL_CONFIG_WINDOWS_SEH) && !defined(CATCH_CONFIG_NO_WINDOWS_SEH) && !defined(CATCH_CONFIG_WINDOWS_SEH) && !defined(CATCH_INTERNAL_CONFIG_NO_WINDOWS_SEH) # define CATCH_CONFIG_WINDOWS_SEH #endif // This is set by default, because we assume that unix compilers are posix-signal-compatible by default. #if defined(CATCH_INTERNAL_CONFIG_POSIX_SIGNALS) && !defined(CATCH_INTERNAL_CONFIG_NO_POSIX_SIGNALS) && !defined(CATCH_CONFIG_NO_POSIX_SIGNALS) && !defined(CATCH_CONFIG_POSIX_SIGNALS) # define CATCH_CONFIG_POSIX_SIGNALS #endif // This is set by default, because we assume that compilers with no wchar_t support are just rare exceptions. #if !defined(CATCH_INTERNAL_CONFIG_NO_WCHAR) && !defined(CATCH_CONFIG_NO_WCHAR) && !defined(CATCH_CONFIG_WCHAR) # define CATCH_CONFIG_WCHAR #endif #if !defined(CATCH_INTERNAL_CONFIG_NO_CPP11_TO_STRING) && !defined(CATCH_CONFIG_NO_CPP11_TO_STRING) && !defined(CATCH_CONFIG_CPP11_TO_STRING) # define CATCH_CONFIG_CPP11_TO_STRING #endif #if defined(CATCH_INTERNAL_CONFIG_CPP17_OPTIONAL) && !defined(CATCH_CONFIG_NO_CPP17_OPTIONAL) && !defined(CATCH_CONFIG_CPP17_OPTIONAL) # define CATCH_CONFIG_CPP17_OPTIONAL #endif #if defined(CATCH_INTERNAL_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS) && !defined(CATCH_CONFIG_NO_CPP17_UNCAUGHT_EXCEPTIONS) && !defined(CATCH_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS) # define CATCH_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS #endif #if defined(CATCH_INTERNAL_CONFIG_CPP17_STRING_VIEW) && !defined(CATCH_CONFIG_NO_CPP17_STRING_VIEW) && !defined(CATCH_CONFIG_CPP17_STRING_VIEW) # define CATCH_CONFIG_CPP17_STRING_VIEW #endif #if defined(CATCH_INTERNAL_CONFIG_CPP17_VARIANT) && !defined(CATCH_CONFIG_NO_CPP17_VARIANT) && !defined(CATCH_CONFIG_CPP17_VARIANT) # define CATCH_CONFIG_CPP17_VARIANT #endif #if defined(CATCH_CONFIG_EXPERIMENTAL_REDIRECT) # define CATCH_INTERNAL_CONFIG_NEW_CAPTURE #endif #if defined(CATCH_INTERNAL_CONFIG_NEW_CAPTURE) && !defined(CATCH_INTERNAL_CONFIG_NO_NEW_CAPTURE) && !defined(CATCH_CONFIG_NO_NEW_CAPTURE) && !defined(CATCH_CONFIG_NEW_CAPTURE) # define CATCH_CONFIG_NEW_CAPTURE #endif #if !defined(CATCH_INTERNAL_CONFIG_EXCEPTIONS_ENABLED) && !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) # define CATCH_CONFIG_DISABLE_EXCEPTIONS #endif #if defined(CATCH_INTERNAL_CONFIG_POLYFILL_ISNAN) && !defined(CATCH_CONFIG_NO_POLYFILL_ISNAN) && !defined(CATCH_CONFIG_POLYFILL_ISNAN) # define CATCH_CONFIG_POLYFILL_ISNAN #endif #if defined(CATCH_INTERNAL_CONFIG_USE_ASYNC) && !defined(CATCH_CONFIG_NO_USE_ASYNC) && !defined(CATCH_CONFIG_USE_ASYNC) # define CATCH_CONFIG_USE_ASYNC #endif #if !defined(CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS) # define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS # define CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS #endif #if !defined(CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS) # define CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS # define CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS #endif #if !defined(CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS) # define CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS # define CATCH_INTERNAL_UNSUPPRESS_UNUSED_WARNINGS #endif #if !defined(CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS) # define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS # define CATCH_INTERNAL_UNSUPPRESS_ZERO_VARIADIC_WARNINGS #endif #if defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) #define CATCH_TRY if ((true)) #define CATCH_CATCH_ALL if ((false)) #define CATCH_CATCH_ANON(type) if ((false)) #else #define CATCH_TRY try #define CATCH_CATCH_ALL catch (...) #define CATCH_CATCH_ANON(type) catch (type) #endif #if defined(CATCH_INTERNAL_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR) && !defined(CATCH_CONFIG_NO_TRADITIONAL_MSVC_PREPROCESSOR) && !defined(CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR) #define CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR #endif // end catch_compiler_capabilities.h #define INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line ) name##line #define INTERNAL_CATCH_UNIQUE_NAME_LINE( name, line ) INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line ) #ifdef CATCH_CONFIG_COUNTER # define INTERNAL_CATCH_UNIQUE_NAME( name ) INTERNAL_CATCH_UNIQUE_NAME_LINE( name, __COUNTER__ ) #else # define INTERNAL_CATCH_UNIQUE_NAME( name ) INTERNAL_CATCH_UNIQUE_NAME_LINE( name, __LINE__ ) #endif #include #include #include // We need a dummy global operator<< so we can bring it into Catch namespace later struct Catch_global_namespace_dummy {}; std::ostream& operator<<(std::ostream&, Catch_global_namespace_dummy); namespace Catch { struct CaseSensitive { enum Choice { Yes, No }; }; class NonCopyable { NonCopyable( NonCopyable const& ) = delete; NonCopyable( NonCopyable && ) = delete; NonCopyable& operator = ( NonCopyable const& ) = delete; NonCopyable& operator = ( NonCopyable && ) = delete; protected: NonCopyable(); virtual ~NonCopyable(); }; struct SourceLineInfo { SourceLineInfo() = delete; SourceLineInfo( char const* _file, std::size_t _line ) noexcept : file( _file ), line( _line ) {} SourceLineInfo( SourceLineInfo const& other ) = default; SourceLineInfo& operator = ( SourceLineInfo const& ) = default; SourceLineInfo( SourceLineInfo&& ) noexcept = default; SourceLineInfo& operator = ( SourceLineInfo&& ) noexcept = default; bool empty() const noexcept; bool operator == ( SourceLineInfo const& other ) const noexcept; bool operator < ( SourceLineInfo const& other ) const noexcept; char const* file; std::size_t line; }; std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info ); // Bring in operator<< from global namespace into Catch namespace // This is necessary because the overload of operator<< above makes // lookup stop at namespace Catch using ::operator<<; // Use this in variadic streaming macros to allow // >> +StreamEndStop // as well as // >> stuff +StreamEndStop struct StreamEndStop { std::string operator+() const; }; template T const& operator + ( T const& value, StreamEndStop ) { return value; } } #define CATCH_INTERNAL_LINEINFO \ ::Catch::SourceLineInfo( __FILE__, static_cast( __LINE__ ) ) // end catch_common.h namespace Catch { struct RegistrarForTagAliases { RegistrarForTagAliases( char const* alias, char const* tag, SourceLineInfo const& lineInfo ); }; } // end namespace Catch #define CATCH_REGISTER_TAG_ALIAS( alias, spec ) \ CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \ namespace{ Catch::RegistrarForTagAliases INTERNAL_CATCH_UNIQUE_NAME( AutoRegisterTagAlias )( alias, spec, CATCH_INTERNAL_LINEINFO ); } \ CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS // end catch_tag_alias_autoregistrar.h // start catch_test_registry.h // start catch_interfaces_testcase.h #include namespace Catch { class TestSpec; struct ITestInvoker { virtual void invoke () const = 0; virtual ~ITestInvoker(); }; class TestCase; struct IConfig; struct ITestCaseRegistry { virtual ~ITestCaseRegistry(); virtual std::vector const& getAllTests() const = 0; virtual std::vector const& getAllTestsSorted( IConfig const& config ) const = 0; }; bool matchTest( TestCase const& testCase, TestSpec const& testSpec, IConfig const& config ); std::vector filterTests( std::vector const& testCases, TestSpec const& testSpec, IConfig const& config ); std::vector const& getAllTestCasesSorted( IConfig const& config ); } // end catch_interfaces_testcase.h // start catch_stringref.h #include #include #include namespace Catch { /// A non-owning string class (similar to the forthcoming std::string_view) /// Note that, because a StringRef may be a substring of another string, /// it may not be null terminated. c_str() must return a null terminated /// string, however, and so the StringRef will internally take ownership /// (taking a copy), if necessary. In theory this ownership is not externally /// visible - but it does mean (substring) StringRefs should not be shared between /// threads. class StringRef { public: using size_type = std::size_t; private: friend struct StringRefTestAccess; char const* m_start; size_type m_size; char* m_data = nullptr; void takeOwnership(); static constexpr char const* const s_empty = ""; public: // construction/ assignment StringRef() noexcept : StringRef( s_empty, 0 ) {} StringRef( StringRef const& other ) noexcept : m_start( other.m_start ), m_size( other.m_size ) {} StringRef( StringRef&& other ) noexcept : m_start( other.m_start ), m_size( other.m_size ), m_data( other.m_data ) { other.m_data = nullptr; } StringRef( char const* rawChars ) noexcept; StringRef( char const* rawChars, size_type size ) noexcept : m_start( rawChars ), m_size( size ) {} StringRef( std::string const& stdString ) noexcept : m_start( stdString.c_str() ), m_size( stdString.size() ) {} ~StringRef() noexcept { delete[] m_data; } auto operator = ( StringRef const &other ) noexcept -> StringRef& { delete[] m_data; m_data = nullptr; m_start = other.m_start; m_size = other.m_size; return *this; } operator std::string() const; void swap( StringRef& other ) noexcept; public: // operators auto operator == ( StringRef const& other ) const noexcept -> bool; auto operator != ( StringRef const& other ) const noexcept -> bool; auto operator[] ( size_type index ) const noexcept -> char; public: // named queries auto empty() const noexcept -> bool { return m_size == 0; } auto size() const noexcept -> size_type { return m_size; } auto numberOfCharacters() const noexcept -> size_type; auto c_str() const -> char const*; public: // substrings and searches auto substr( size_type start, size_type size ) const noexcept -> StringRef; // Returns the current start pointer. // Note that the pointer can change when if the StringRef is a substring auto currentData() const noexcept -> char const*; private: // ownership queries - may not be consistent between calls auto isOwned() const noexcept -> bool; auto isSubstring() const noexcept -> bool; }; auto operator + ( StringRef const& lhs, StringRef const& rhs ) -> std::string; auto operator + ( StringRef const& lhs, char const* rhs ) -> std::string; auto operator + ( char const* lhs, StringRef const& rhs ) -> std::string; auto operator += ( std::string& lhs, StringRef const& sr ) -> std::string&; auto operator << ( std::ostream& os, StringRef const& sr ) -> std::ostream&; inline auto operator "" _sr( char const* rawChars, std::size_t size ) noexcept -> StringRef { return StringRef( rawChars, size ); } } // namespace Catch inline auto operator "" _catch_sr( char const* rawChars, std::size_t size ) noexcept -> Catch::StringRef { return Catch::StringRef( rawChars, size ); } // end catch_stringref.h // start catch_type_traits.hpp #include namespace Catch{ #ifdef CATCH_CPP17_OR_GREATER template inline constexpr auto is_unique = std::true_type{}; template inline constexpr auto is_unique = std::bool_constant< (!std::is_same_v && ...) && is_unique >{}; #else template struct is_unique : std::true_type{}; template struct is_unique : std::integral_constant ::value && is_unique::value && is_unique::value >{}; #endif } // end catch_type_traits.hpp // start catch_preprocessor.hpp #define CATCH_RECURSION_LEVEL0(...) __VA_ARGS__ #define CATCH_RECURSION_LEVEL1(...) CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(__VA_ARGS__))) #define CATCH_RECURSION_LEVEL2(...) CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(__VA_ARGS__))) #define CATCH_RECURSION_LEVEL3(...) CATCH_RECURSION_LEVEL2(CATCH_RECURSION_LEVEL2(CATCH_RECURSION_LEVEL2(__VA_ARGS__))) #define CATCH_RECURSION_LEVEL4(...) CATCH_RECURSION_LEVEL3(CATCH_RECURSION_LEVEL3(CATCH_RECURSION_LEVEL3(__VA_ARGS__))) #define CATCH_RECURSION_LEVEL5(...) CATCH_RECURSION_LEVEL4(CATCH_RECURSION_LEVEL4(CATCH_RECURSION_LEVEL4(__VA_ARGS__))) #ifdef CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR #define INTERNAL_CATCH_EXPAND_VARGS(...) __VA_ARGS__ // MSVC needs more evaluations #define CATCH_RECURSION_LEVEL6(...) CATCH_RECURSION_LEVEL5(CATCH_RECURSION_LEVEL5(CATCH_RECURSION_LEVEL5(__VA_ARGS__))) #define CATCH_RECURSE(...) CATCH_RECURSION_LEVEL6(CATCH_RECURSION_LEVEL6(__VA_ARGS__)) #else #define CATCH_RECURSE(...) CATCH_RECURSION_LEVEL5(__VA_ARGS__) #endif #define CATCH_REC_END(...) #define CATCH_REC_OUT #define CATCH_EMPTY() #define CATCH_DEFER(id) id CATCH_EMPTY() #define CATCH_REC_GET_END2() 0, CATCH_REC_END #define CATCH_REC_GET_END1(...) CATCH_REC_GET_END2 #define CATCH_REC_GET_END(...) CATCH_REC_GET_END1 #define CATCH_REC_NEXT0(test, next, ...) next CATCH_REC_OUT #define CATCH_REC_NEXT1(test, next) CATCH_DEFER ( CATCH_REC_NEXT0 ) ( test, next, 0) #define CATCH_REC_NEXT(test, next) CATCH_REC_NEXT1(CATCH_REC_GET_END test, next) #define CATCH_REC_LIST0(f, x, peek, ...) , f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1) ) ( f, peek, __VA_ARGS__ ) #define CATCH_REC_LIST1(f, x, peek, ...) , f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST0) ) ( f, peek, __VA_ARGS__ ) #define CATCH_REC_LIST2(f, x, peek, ...) f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1) ) ( f, peek, __VA_ARGS__ ) #define CATCH_REC_LIST0_UD(f, userdata, x, peek, ...) , f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1_UD) ) ( f, userdata, peek, __VA_ARGS__ ) #define CATCH_REC_LIST1_UD(f, userdata, x, peek, ...) , f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST0_UD) ) ( f, userdata, peek, __VA_ARGS__ ) #define CATCH_REC_LIST2_UD(f, userdata, x, peek, ...) f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1_UD) ) ( f, userdata, peek, __VA_ARGS__ ) // Applies the function macro `f` to each of the remaining parameters, inserts commas between the results, // and passes userdata as the first parameter to each invocation, // e.g. CATCH_REC_LIST_UD(f, x, a, b, c) evaluates to f(x, a), f(x, b), f(x, c) #define CATCH_REC_LIST_UD(f, userdata, ...) CATCH_RECURSE(CATCH_REC_LIST2_UD(f, userdata, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) #define CATCH_REC_LIST(f, ...) CATCH_RECURSE(CATCH_REC_LIST2(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) #define INTERNAL_CATCH_EXPAND1(param) INTERNAL_CATCH_EXPAND2(param) #define INTERNAL_CATCH_EXPAND2(...) INTERNAL_CATCH_NO## __VA_ARGS__ #define INTERNAL_CATCH_DEF(...) INTERNAL_CATCH_DEF __VA_ARGS__ #define INTERNAL_CATCH_NOINTERNAL_CATCH_DEF #define INTERNAL_CATCH_STRINGIZE(...) INTERNAL_CATCH_STRINGIZE2(__VA_ARGS__) #ifndef CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR #define INTERNAL_CATCH_STRINGIZE2(...) #__VA_ARGS__ #define INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS(param) INTERNAL_CATCH_STRINGIZE(INTERNAL_CATCH_REMOVE_PARENS(param)) #else // MSVC is adding extra space and needs another indirection to expand INTERNAL_CATCH_NOINTERNAL_CATCH_DEF #define INTERNAL_CATCH_STRINGIZE2(...) INTERNAL_CATCH_STRINGIZE3(__VA_ARGS__) #define INTERNAL_CATCH_STRINGIZE3(...) #__VA_ARGS__ #define INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS(param) (INTERNAL_CATCH_STRINGIZE(INTERNAL_CATCH_REMOVE_PARENS(param)) + 1) #endif #define INTERNAL_CATCH_MAKE_NAMESPACE2(...) ns_##__VA_ARGS__ #define INTERNAL_CATCH_MAKE_NAMESPACE(name) INTERNAL_CATCH_MAKE_NAMESPACE2(name) #define INTERNAL_CATCH_REMOVE_PARENS(...) INTERNAL_CATCH_EXPAND1(INTERNAL_CATCH_DEF __VA_ARGS__) #ifndef CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR #define INTERNAL_CATCH_MAKE_TYPE_LIST2(...) decltype(get_wrapper()) #define INTERNAL_CATCH_MAKE_TYPE_LIST(...) INTERNAL_CATCH_MAKE_TYPE_LIST2(INTERNAL_CATCH_REMOVE_PARENS(__VA_ARGS__)) #else #define INTERNAL_CATCH_MAKE_TYPE_LIST2(...) INTERNAL_CATCH_EXPAND_VARGS(decltype(get_wrapper())) #define INTERNAL_CATCH_MAKE_TYPE_LIST(...) INTERNAL_CATCH_EXPAND_VARGS(INTERNAL_CATCH_MAKE_TYPE_LIST2(INTERNAL_CATCH_REMOVE_PARENS(__VA_ARGS__))) #endif #define INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES(...)\ CATCH_REC_LIST(INTERNAL_CATCH_MAKE_TYPE_LIST,__VA_ARGS__) #define INTERNAL_CATCH_REMOVE_PARENS_1_ARG(_0) INTERNAL_CATCH_REMOVE_PARENS(_0) #define INTERNAL_CATCH_REMOVE_PARENS_2_ARG(_0, _1) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_1_ARG(_1) #define INTERNAL_CATCH_REMOVE_PARENS_3_ARG(_0, _1, _2) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_2_ARG(_1, _2) #define INTERNAL_CATCH_REMOVE_PARENS_4_ARG(_0, _1, _2, _3) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_3_ARG(_1, _2, _3) #define INTERNAL_CATCH_REMOVE_PARENS_5_ARG(_0, _1, _2, _3, _4) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_4_ARG(_1, _2, _3, _4) #define INTERNAL_CATCH_REMOVE_PARENS_6_ARG(_0, _1, _2, _3, _4, _5) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_5_ARG(_1, _2, _3, _4, _5) #define INTERNAL_CATCH_REMOVE_PARENS_7_ARG(_0, _1, _2, _3, _4, _5, _6) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_6_ARG(_1, _2, _4, _5, _6) #define INTERNAL_CATCH_REMOVE_PARENS_8_ARG(_0, _1, _2, _3, _4, _5, _6, _7) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_7_ARG(_1, _2, _3, _4, _5, _6, _7) #define INTERNAL_CATCH_REMOVE_PARENS_9_ARG(_0, _1, _2, _3, _4, _5, _6, _7, _8) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_8_ARG(_1, _2, _3, _4, _5, _6, _7, _8) #define INTERNAL_CATCH_REMOVE_PARENS_10_ARG(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_9_ARG(_1, _2, _3, _4, _5, _6, _7, _8, _9) #define INTERNAL_CATCH_REMOVE_PARENS_11_ARG(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_10_ARG(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10) #define INTERNAL_CATCH_VA_NARGS_IMPL(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, N, ...) N #define INTERNAL_CATCH_TYPE_GEN\ template struct TypeList {};\ template\ constexpr auto get_wrapper() noexcept -> TypeList { return {}; }\ \ template class L1, typename...E1, template class L2, typename...E2> \ constexpr auto append(L1, L2) noexcept -> L1 { return {}; }\ template< template class L1, typename...E1, template class L2, typename...E2, typename...Rest>\ constexpr auto append(L1, L2, Rest...) noexcept -> decltype(append(L1{}, Rest{}...)) { return {}; }\ template< template class L1, typename...E1, typename...Rest>\ constexpr auto append(L1, TypeList, Rest...) noexcept -> L1 { return {}; }\ \ template< template class Container, template class List, typename...elems>\ constexpr auto rewrap(List) noexcept -> TypeList> { return {}; }\ template< template class Container, template class List, class...Elems, typename...Elements>\ constexpr auto rewrap(List,Elements...) noexcept -> decltype(append(TypeList>{}, rewrap(Elements{}...))) { return {}; }\ \ template