Lines Matching +full:- +full:- +full:disable +full:- +full:shared
1 # Helper functions for option handling. -*- Autoconf -*-
17 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
18 # ------------------------------------------
20 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
23 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
24 # ---------------------------------------
25 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
26 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
36 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
37 # ------------------------------------------------------------
38 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
43 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
44 # -------------------------------------------------------
45 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
56 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
57 # ----------------------------------------
58 # OPTION-LIST is a space-separated list of Libtool options associated
59 # with MACRO-NAME. If any OPTION has a matching handler declared with
73 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
78 dnl `shared' nor `disable-shared' was passed, we enable building of shared
80 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
81 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
82 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
83 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
89 ## --------------------------------- ##
91 ## --------------------------------- ##
93 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
94 # -----------------------------------------
96 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
99 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
100 # -----------------------------------------------
107 # ------
118 dnl aclocal-1.4 backwards compatibility:
122 # win32-dll
123 # ---------
125 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
129 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
136 test -z "$AS" && AS=as
139 test -z "$DLLTOOL" && DLLTOOL=dlltool
142 test -z "$OBJDUMP" && OBJDUMP=objdump
144 ])# win32-dll
148 _LT_SET_OPTION([LT_INIT], [win32-dll])
151 put the `win32-dll' option into LT_INIT's first parameter.])
154 dnl aclocal-1.4 backwards compatibility:
159 # ----------------------------
160 # implement the --enable-shared flag, and supports the `shared' and
161 # `disable-shared' LT_INIT options.
165 AC_ARG_ENABLE([shared], optenable
166 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
167 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
168 [p=${PACKAGE-default}
188 [Whether or not to build shared libraries])
191 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
192 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
196 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
200 [_LT_SET_OPTION([LT_INIT], [disable-shared])
206 dnl aclocal-1.4 backwards compatibility:
213 # ----------------------------
214 # implement the --enable-static flag, and support the `static' and
215 # `disable-static' LT_INIT options.
220 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
222 [p=${PACKAGE-default}
246 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
250 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
254 [_LT_SET_OPTION([LT_INIT], [disable-static])
260 dnl aclocal-1.4 backwards compatibility:
267 # ----------------------------------
268 # implement the --enable-fast-install flag, and support the `fast-install'
269 # and `disable-fast-install' LT_INIT options.
273 AC_ARG_ENABLE([fast-install],
274 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
276 [p=${PACKAGE-default}
299 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
300 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
304 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
307 the `fast-install' option into LT_INIT's first parameter.])
311 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
314 the `disable-fast-install' option into LT_INIT's first parameter.])
317 dnl aclocal-1.4 backwards compatibility:
323 # --------------------
324 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
329 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
330 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
331 [lt_p=${PACKAGE-default}
349 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
354 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
355 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
359 [_LT_SET_OPTION([LT_INIT], [pic-only])
362 put the `pic-only' option into LT_INIT's first parameter.])
365 dnl aclocal-1.4 backwards compatibility:
368 ## ----------------- ##
370 ## ----------------- ##