[BACK]Return to configure.local.example CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/configure.local.example, Revision 1.39

1.39    ! schwarze    1: # $Id: configure.local.example,v 1.38 2020/06/22 20:00:38 schwarze Exp $
1.1       schwarze    2: #
1.35      schwarze    3: # Copyright (c) 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
1.1       schwarze    4: #
                      5: # Permission to use, copy, modify, and distribute this software for any
                      6: # purpose with or without fee is hereby granted, provided that the above
                      7: # copyright notice and this permission notice appear in all copies.
                      8: #
                      9: # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     10: # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
                     11: # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     12: # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     13: # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
                     14: # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
                     15: # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
                     16:
                     17: # For all settings documented in this file, there are reasonable
                     18: # defaults and/or the ./configure script attempts autodetection.
                     19: # Consequently, you only need to create a file ./configure.local
                     20: # and put any of these settings into it if ./configure autodetection
                     21: # fails or if you want to make different choices for other reasons.
                     22:
1.33      schwarze   23: # If autodetection fails, please tell <tech@mandoc.bsd.lv>.
1.1       schwarze   24:
                     25: # We recommend that you write ./configure.local from scratch and
                     26: # only put the lines there you need.  This file contains examples.
                     27: # It is not intended as a template to be copied as a whole.
                     28:
                     29: # --- user settings relevant for all builds ----------------------------
                     30:
1.37      schwarze   31: # By default, "cc" is used as the C compiler, but it can be overridden.
                     32: # For example, the system compiler in SunOS 5.9 may not provide <stdint.h>,
                     33: # which may require this line:
                     34: CC=gcc
                     35:
                     36: # IBM AIX may need:
                     37: CC=xlc
                     38:
1.1       schwarze   39: # For -Tutf8 and -Tlocale operation, mandoc(1) requires <locale.h>
                     40: # providing setlocale(3) and <wchar.h> providing wcwidth(3) and
                     41: # putwchar(3) with a wchar_t storing UCS-4 values.  Theoretically,
                     42: # the latter should be tested with the __STDC_ISO_10646__ feature
                     43: # macro.  In practice, many <wchar.h> headers do not provide that
                     44: # macro even though they treat wchar_t as UCS-4.  So the automatic
                     45: # test only checks that wchar_t is wide enough, that is, at least
                     46: # four bytes.
                     47:
                     48: # The following line forces multi-byte support.
                     49: # If your C library does not treat wchar_t as UCS-4, the UTF-8 output
                     50: # mode will print garbage.
                     51:
                     52: HAVE_WCHAR=1
                     53:
                     54: # The following line disables multi-byte support.
                     55: # The output modes -Tutf8 and -Tlocale will be the same as -Tascii.
                     56:
                     57: HAVE_WCHAR=0
1.18      schwarze   58:
                     59: # For -Tutf8 mode, mandoc needs to set an arbitrary locale having
                     60: # a UTF-8 character set.  If autodetection of a suitable locale
                     61: # fails or selects an undesirable locale, you can manually choose
                     62: # the locale for -Tutf8 mode:
                     63:
                     64: UTF8_LOCALE=en_US.UTF-8
1.7       schwarze   65:
                     66: # When man(1) or apropos(1) is called without -m and -M options,
1.16      schwarze   67: # MANPATH is not set in the environment, and man.conf(5) is not
                     68: # available, manuals are searched for in the following directory
                     69: # trees by default.
1.7       schwarze   70:
                     71: MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
1.32      schwarze   72:
                     73: # Validation of cross references with mandoc -Tlint only looks
                     74: # for manual pages in the following directories:
                     75:
                     76: MANPATH_BASE="/usr/share/man:/usr/X11R6/man"
1.1       schwarze   77:
1.35      schwarze   78: # When man(1) is called with the -S option and no manual page is
                     79: # found matching the requested name and the requested architecture,
                     80: # it tries to figure out whether the requested architecture is valid
                     81: # for the present operating system.  Normally, ./configure detects
                     82: # the operating system using uname(1).  If that fails or is not
                     83: # desired, either of the following lines can be used:
                     84:
                     85: OSENUM=MANDOC_OS_NETBSD
                     86: OSENUM=MANDOC_OS_OPENBSD
                     87: OSENUM=MANDOC_OS_OTHER
                     88:
1.1       schwarze   89: # In manual pages written in the mdoc(7) language, the operating system
                     90: # version is displayed in the page footer line.  If an operating system
                     91: # is specified as an argument to the .Os macro, that is always used.
                     92: # If the .Os macro has no argument and an operation system is specified
                     93: # with the mandoc(1) -Ios= command line option, that is used.
                     94: # Otherwise, the uname(3) library function is called at runtime to find
                     95: # the name of the operating system.
                     96: # If you do not want uname(3) to be called but instead want a fixed
                     97: # string to be used, use the following line:
                     98:
1.35      schwarze   99: OSNAME="OpenBSD 6.5"
1.1       schwarze  100:
                    101: # The following installation directories are used.
                    102: # It is possible to set only one or a few of these variables,
                    103: # there is no need to copy the whole block.
                    104: # Even if you set PREFIX to something else, the other variables
                    105: # pick it up without copying them all over.
                    106:
                    107: PREFIX="/usr/local"
                    108: BINDIR="${PREFIX}/bin"
                    109: SBINDIR="${PREFIX}/sbin"
                    110: MANDIR="${PREFIX}/man"
1.30      schwarze  111:
                    112: # If BINDIR and SBINDIR are not subdirectories of the same parent
                    113: # directory or if the basename(1) of BINDIR differs from "bin",
                    114: # the relative path from SBINDIR to BINDIR is also needed.
                    115: # The default is:
                    116:
                    117: BIN_FROM_SBIN="../bin"
1.8       schwarze  118:
                    119: # Some distributions may want to avoid naming conflicts
                    120: # with the configuration files of other man(1) implementations.
                    121: # This changes the name of the installed section 5 manual page as well.
1.34      schwarze  122:
1.8       schwarze  123: MANM_MANCONF="mandoc.conf"     # default is "man.conf"
1.5       schwarze  124:
1.2       schwarze  125: # Some distributions may want to avoid naming conflicts among manuals.
                    126: # If you want to change the names of installed section 7 manual pages,
                    127: # the following alternative names are suggested.
                    128: # The suffix ".7" will automatically be appended.
                    129: # It is possible to set only one or a few of these variables,
                    130: # there is no need to copy the whole block.
                    131:
1.27      schwarze  132: MANM_MAN="mandoc_man"          # default is "man"
1.2       schwarze  133: MANM_MDOC="mandoc_mdoc"                # default is "mdoc"
                    134: MANM_ROFF="mandoc_roff"                # default is "roff"
                    135: MANM_EQN="mandoc_eqn"          # default is "eqn"
                    136: MANM_TBL="mandoc_tbl"          # default is "tbl"
                    137:
1.15      schwarze  138: # Some distributions may want to avoid naming conflicts with
                    139: # other man(1), apropos(1), makewhatis(8), or soelim(1) utilities.
1.9       schwarze  140: # If you want to change the names of binary programs,
                    141: # the following alternative names are suggested.
                    142: # Using different names is possible as well.
1.15      schwarze  143: # This changes the names of the installed section 1 and section 8
                    144: # manual pages as well.
                    145: # It is possible to set only one or two of these variables,
                    146: # there is no need to copy the whole block.
1.5       schwarze  147:
                    148: BINM_MAN=mman                  # default is "man"
1.15      schwarze  149: BINM_APROPOS=mapropos          # default is "apropos"
                    150: BINM_WHATIS=mwhatis            # default is "whatis"
                    151: BINM_MAKEWHATIS=mandocdb       # default is "makewhatis"
1.9       schwarze  152: BINM_SOELIM=msoelim            # default is "soelim"
1.39    ! schwarze  153:
        !           154: # If less(1) is available, it is used as the default manual pager.
        !           155: # Otherwise, more(1) is used: its existence is required by POSIX.
        !           156: # It is possible to force using a different default pager, either
        !           157: # by giving the name of a program found in the PATH, or by giving
        !           158: # an absolute path.
        !           159:
        !           160: BINM_PAGER=pg                  # default is "less" or "more"
1.28      schwarze  161:
                    162: # Some distributions do not want hardlinks
                    163: # between installed binary programs.
                    164: # Set the following variable to use symbolic links instead.
                    165: # It is also used for links between manual pages.
                    166: # It is only used by the install* targets.
                    167: # When using this, DESTDIR must be empty or an absolute path.
                    168:
                    169: LN="ln -sf"                    # default is "ln -f"
1.5       schwarze  170:
1.11      schwarze  171: # Before falling back to the bundled version of the ohash(3) hashing
                    172: # library, autoconfiguration tries the following linker flag to
                    173: # link against your system version.  If you do have ohash(3) on
                    174: # your system but it needs different linker flags, set the following
                    175: # variable to specify the required linker flags.
                    176:
                    177: LD_OHASH="-lutil"
                    178:
1.17      schwarze  179: # Some platforms may need an additional linker flag for nanosleep(2).
                    180: # If none is needed or it is -lrt, it is autodetected.
                    181: # Otherwise, set the following variable.
1.11      schwarze  182:
1.17      schwarze  183: LD_NANOSLEEP="-lrt"
1.24      schwarze  184:
                    185: # Some platforms may need an additional linker flag for recvmsg(2).
                    186: # If none is needed or it is -lsocket, it is autodetected.
                    187: # Otherwise, set the following variable.
                    188:
                    189: LD_RECVMSG="-lsocket"
1.17      schwarze  190:
                    191: # Some platforms might need additional linker flags to link against
                    192: # libmandoc that are not autodetected, though no such cases are
                    193: # currently known.
                    194:
                    195: LDADD="-lm"
1.12      schwarze  196:
                    197: # Some systems may want to set additional linker flags for all the
                    198: # binaries, not only for those using libmandoc, for example for
                    199: # hardening options.
                    200:
                    201: LDFLAGS="-Wl,-z,relro"
1.11      schwarze  202:
1.1       schwarze  203: # It is possible to change the utility program used for installation
                    204: # and the modes files are installed with.  The defaults are:
                    205:
                    206: INSTALL="install"
                    207: INSTALL_PROGRAM="${INSTALL} -m 0555"
                    208: INSTALL_LIB="${INSTALL} -m 0444"
                    209: INSTALL_MAN="${INSTALL} -m 0444"
                    210: INSTALL_DATA="${INSTALL} -m 0444"
                    211:
1.3       schwarze  212: # When using the "homebrew" package manager on Mac OS X, the actual
                    213: # manuals are located in a so-called "cellar" and only symlinked
                    214: # into the manual trees.  To allow mandoc to follow such symlinks,
                    215: # you have to specify the physical location of the cellar as returned
                    216: # by realpath(3), for example:
                    217:
1.4       schwarze  218: PREFIX="/usr/local"
                    219: HOMEBREWDIR="${PREFIX}/Cellar"
1.22      schwarze  220:
                    221: # --- user settings for the mandoc(3) library --------------------------
                    222:
                    223: # By default, libmandoc.a is not installed.  It is almost never needed
                    224: # because there is almost no non-mandoc software out there using this
                    225: # library.  The one notable exception is NetBSD apropos(1).
                    226: # So, when building for the NetBSD base system - but not for NetBSD
                    227: # ports nor for pkgsrc! - you may want the following:
                    228:
                    229: INSTALL_LIBMANDOC=1
                    230:
                    231: # The following settings are only used when INSTALL_LIBMANDOC is set.
                    232:
                    233: INCLUDEDIR="${PREFIX}/include/mandoc"
                    234: LIBDIR="${PREFIX}/lib/mandoc"
1.1       schwarze  235:
1.14      schwarze  236: # --- user settings related to man.cgi ---------------------------------
1.1       schwarze  237:
                    238: # By default, building man.cgi(8) is disabled.  To enable it, copy
                    239: # cgi.h.example to cgi.h, edit it, and use the following line.
                    240:
                    241: BUILD_CGI=1
                    242:
                    243: # The remaining settings in this section are only relevant if BUILD_CGI
                    244: # is enabled.  Otherwise, they have no effect either way.
                    245:
1.34      schwarze  246: # By default, man.cgi(8) is linked statically if the compiler supports
                    247: # the -static option.  If automatic detection fails, you can force
                    248: # static linking of man.cgi(8).
1.1       schwarze  249:
1.34      schwarze  250: STATIC="-static"
1.1       schwarze  251:
1.34      schwarze  252: # Some systems may require -pthread for static linking:
1.1       schwarze  253:
                    254: STATIC="-static -pthread"
                    255:
1.34      schwarze  256: # If static linking works in general but not with additional libraries
                    257: # like -lrt or -lz, you can force dynamic linking.  This may for
                    258: # example be required on SunOS 5.9.
                    259:
                    260: STATIC=" "
                    261:
1.1       schwarze  262: # Some directories.
                    263: # This works just like PREFIX, see above.
                    264:
                    265: WWWPREFIX="/var/www"
                    266: HTDOCDIR="${WWWPREFIX}/htdocs"
                    267: CGIBINDIR="${WWWPREFIX}/cgi-bin"
1.23      schwarze  268:
                    269: # --- user settings related to catman ----------------------------------
                    270:
                    271: # By default, building mandocd(8) and catman(8) is disabled.
                    272: # To enable it, use the following line.
1.25      schwarze  273: # It does not work on SunOS 5.10 because there is no mkdirat(2)
                    274: # nor on SunOS 5.9 which also lacks CMSG_LEN(3) and CMSG_SPACE(3).
1.23      schwarze  275:
                    276: BUILD_CATMAN=1
1.26      schwarze  277:
                    278: # Install catman(8) with a different name.
                    279: # See BINM_MAN above for details of how this works.
                    280:
1.27      schwarze  281: BINM_CATMAN=mcatman            # default is "catman"
1.1       schwarze  282:
                    283: # --- settings that rarely need to be touched --------------------------
                    284:
                    285: # Do not set these variables unless you really need to.
1.13      schwarze  286:
1.34      schwarze  287: # Normally, leave CFLAGS unset.  In that case, -g will automatically
                    288: # be used, and various -W options will be added if the compiler
                    289: # supports them.  If you define CFLAGS manually, it will be used
                    290: # unchanged, and nothing will be added.
1.13      schwarze  291:
                    292: CFLAGS="-g"
1.1       schwarze  293:
                    294: # In rare cases, it may be required to skip individual automatic tests.
                    295: # Each of the following variables can be set to 0 (test will not be run
                    296: # and will be regarded as failed) or 1 (test will not be run and will
                    297: # be regarded as successful).
                    298:
1.38      schwarze  299: HAVE_ATTRIBUTE=0
1.1       schwarze  300: HAVE_DIRENT_NAMLEN=0
1.20      schwarze  301: HAVE_ENDIAN=0
1.19      schwarze  302: HAVE_EFTYPE=0
1.11      schwarze  303: HAVE_ERR=0
1.21      schwarze  304: HAVE_FTS=0  # Setting this implies HAVE_FTS_COMPARE_CONST=0.
                    305: HAVE_FTS_COMPARE_CONST=0  # Setting this implies HAVE_FTS=1.
1.11      schwarze  306: HAVE_GETLINE=0
1.1       schwarze  307: HAVE_GETSUBOPT=0
1.11      schwarze  308: HAVE_ISBLANK=0
1.36      schwarze  309: HAVE_LESS_T=0
1.11      schwarze  310: HAVE_MKDTEMP=0
1.20      schwarze  311: HAVE_NTOHL=0
1.29      schwarze  312: HAVE_O_DIRECTORY=0
1.15      schwarze  313: HAVE_OHASH=0
1.19      schwarze  314: HAVE_PATH_MAX=0
1.11      schwarze  315: HAVE_PLEDGE=0
                    316: HAVE_PROGNAME=0
1.1       schwarze  317: HAVE_REALLOCARRAY=0
1.31      schwarze  318: HAVE_RECALLOCARRAY=0
1.11      schwarze  319: HAVE_REWB_BSD=0
                    320: HAVE_REWB_SYSV=0
1.1       schwarze  321: HAVE_STRCASESTR=0
1.11      schwarze  322: HAVE_STRINGLIST=0
1.1       schwarze  323: HAVE_STRLCAT=0
                    324: HAVE_STRLCPY=0
                    325: HAVE_STRPTIME=0
                    326: HAVE_STRSEP=0
1.6       schwarze  327: HAVE_STRTONUM=0
1.20      schwarze  328: HAVE_SYS_ENDIAN=0
1.11      schwarze  329: HAVE_VASPRINTF=0
                    330: HAVE_WCHAR=0

CVSweb