\input texinfo @c -*-texinfo-*- @c %**start of header @setfilename librarian.info @settitle librarian @afourpaper @documentencoding UTF-8 @documentlanguage en @finalout @c %**end of header @dircategory Development @direntry * librarian: (librarian). Library to compiler flags resolver @end direntry @copying Copyright @copyright{} 2015 Mattias Andrée @quotation Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''. @end quotation @end copying @ifnottex @node Top @top librarian -- Library to compiler flags resolver @insertcopying @end ifnottex @titlepage @title librarian @subtitle Library to compiler flags resolver @author by Mattias Andrée (maandree) @page @vskip 0pt plus 1filll @insertcopying @page @end titlepage @contents @menu * Overview:: Brief overview of @command{librarian}. * Invoking:: Invocation of @command{librarian}. * Files:: @command{librarian} files. * GNU Free Documentation License:: Copying and sharing this manual. @end menu @node Overview @chapter Overview @command{librarian} is used to print flags required when compiling or linking, and want to use library that requires non-trival flags@footnote{Just @option{-l} and the library name sans `lib'}. @node Invoking @chapter Invoking Synopsis: @example librarian [OPTION]... [--] [VARIABLE]... [LIBRARY]... @end example @command{librarian} shall output the flags, required by the selected libraries, that are listed under the selected variables. @code{LIBRARY} can either be the name of the required library, the name of the required library and a version of said library, or the name of the required library and an accepted version range of said library. If the same library name is used more than once, the versions and version ranges are unioned. Recognised formats are: @table @code @item NAME Any version of the library @code{NAME} will do. @item NAME=VERSION Only version @code{VERSION} of the library @code{NAME} is acceptable. (Multiple version can be used by specifying more than once.) @item NAME<=MAX Any versions up to and including @code{MAX} of the library @code{NAME} will do. @item NAME=MIN At least version @code{MIN} of the library @code{NAME} is required. @item NAME>MIN A greater version than version @code{MIN} of the library @code{NAME} is required. @item NAME>=MIN<=MAX Combines, by intersection, @code{NAME>=MIN} and @code{NAME<=MAX}. @item NAME>=MIN=MIN} and @code{NAMEMIN<=MAX Combines, by intersection, @code{NAME>MIN} and @code{NAME<=MAX}. @item NAME>MINMIN} and @code{NAME