123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437 |
- # 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(, )
- # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
- # ------------------------------------------
- m4_define(,
- )
- # _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_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, )
- # ------------------------------------------------------------
- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
- m4_define(,
- )
- # _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_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
- ## --------------------------------- ##
- ## Macros to handle LT_INIT options. ##
- ## --------------------------------- ##
- # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
- # -----------------------------------------
- m4_define(,
- )
- # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
- # -----------------------------------------------
- m4_define(,
- )# LT_OPTION_DEFINE
- # dlopen
- # ------
- LT_OPTION_DEFINE(, ,
- )
- AU_DEFUN(,
- )
- dnl aclocal-1.4 backwards compatibility:
- dnl AC_DEFUN(, )
- # win32-dll
- # ---------
- # Declare package support for building win32 dll's.
- LT_OPTION_DEFINE(, ,
- )# win32-dll
- AU_DEFUN(,
- )
- dnl aclocal-1.4 backwards compatibility:
- dnl AC_DEFUN(, )
- # _LT_ENABLE_SHARED()
- # ----------------------------
- # 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
- LT_OPTION_DEFINE(, , )
- LT_OPTION_DEFINE(, , )
- # Old names:
- AC_DEFUN(,
- )
- AC_DEFUN(,
- )
- AU_DEFUN(, )
- AU_DEFUN(, )
- dnl aclocal-1.4 backwards compatibility:
- dnl AC_DEFUN(, )
- dnl AC_DEFUN(, )
- # _LT_ENABLE_STATIC()
- # ----------------------------
- # 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
- LT_OPTION_DEFINE(, , )
- LT_OPTION_DEFINE(, , )
- # Old names:
- AC_DEFUN(,
- )
- AC_DEFUN(,
- )
- AU_DEFUN(, )
- AU_DEFUN(, )
- dnl aclocal-1.4 backwards compatibility:
- dnl AC_DEFUN(, )
- dnl AC_DEFUN(, )
- # _LT_ENABLE_FAST_INSTALL()
- # ----------------------------------
- # 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
- LT_OPTION_DEFINE(, , )
- LT_OPTION_DEFINE(, , )
- # Old names:
- AU_DEFUN(,
- )
- AU_DEFUN(,
- )
- dnl aclocal-1.4 backwards compatibility:
- dnl AC_DEFUN(, )
- dnl AC_DEFUN(, )
- # _LT_WITH_AIX_SONAME()
- # ----------------------------------
- # 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
- LT_OPTION_DEFINE(, , )
- LT_OPTION_DEFINE(, , )
- LT_OPTION_DEFINE(, , )
- # _LT_WITH_PIC()
- # --------------------
- # 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
- LT_OPTION_DEFINE(, , )
- LT_OPTION_DEFINE(, , )
- # Old name:
- AU_DEFUN(,
- )
- dnl aclocal-1.4 backwards compatibility:
- dnl AC_DEFUN(, )
- ## ----------------- ##
- ## LTDL_INIT Options ##
- ## ----------------- ##
- m4_define(, )
- LT_OPTION_DEFINE(, ,
- )
- LT_OPTION_DEFINE(, ,
- )
- LT_OPTION_DEFINE(, ,
- )
- m4_define(, )
- LT_OPTION_DEFINE(, ,
- )
- LT_OPTION_DEFINE(, ,
- )
|