annotate GEMBASSY-1.0.3/m4/ltoptions.m4 @ 0:8300eb051bea draft

Initial upload
author ktnyt
date Fri, 26 Jun 2015 05:19:29 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1 # Helper functions for option handling. -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4 # Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5 # Written by Gary V. Vaughan, 2004
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7 # This file is free software; the Free Software Foundation gives
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8 # unlimited permission to copy and/or distribute it, with or without
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
9 # modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
10
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
11 # serial 8 ltoptions.m4
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
12
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
13 # This is to help aclocal find these macros, as it can't see m4_define.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
14 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
15
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
16
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
17 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
18 # ------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
19 m4_define([_LT_MANGLE_OPTION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
20 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
21
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
22
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
23 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
24 # ---------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
25 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
26 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
27 # saved as a flag.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
28 m4_define([_LT_SET_OPTION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
29 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
30 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
31 _LT_MANGLE_DEFUN([$1], [$2]),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
32 [m4_warning([Unknown $1 option '$2'])])[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
33 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
34
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
35
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
36 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
37 # ------------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
38 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
39 m4_define([_LT_IF_OPTION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
40 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
41
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
42
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
43 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
44 # -------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
45 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
46 # are set.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
47 m4_define([_LT_UNLESS_OPTIONS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
48 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
49 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
50 [m4_define([$0_found])])])[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
51 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
52 ])[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
53 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
54
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
55
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
56 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
57 # ----------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
58 # OPTION-LIST is a space-separated list of Libtool options associated
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
59 # with MACRO-NAME. If any OPTION has a matching handler declared with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
60 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
61 # the unknown option and exit.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
62 m4_defun([_LT_SET_OPTIONS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
63 [# Set options
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
64 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
65 [_LT_SET_OPTION([$1], _LT_Option)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
66
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
67 m4_if([$1],[LT_INIT],[
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
68 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
69 dnl Simply set some default values (i.e off) if boolean options were not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
70 dnl specified:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
71 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
72 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
73 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
74 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
75 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
76 dnl If no reference was made to various pairs of opposing options, then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
77 dnl we run the default mode handler for the pair. For example, if neither
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
78 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
79 dnl archives by default:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
80 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
81 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
82 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
83 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
84 [_LT_ENABLE_FAST_INSTALL])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
85 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
86 [_LT_WITH_AIX_SONAME([aix])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
87 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
88 ])# _LT_SET_OPTIONS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
89
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
90
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
91 ## --------------------------------- ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
92 ## Macros to handle LT_INIT options. ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
93 ## --------------------------------- ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
94
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
95 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
96 # -----------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
97 m4_define([_LT_MANGLE_DEFUN],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
98 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
99
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
100
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
101 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
102 # -----------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
103 m4_define([LT_OPTION_DEFINE],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
104 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
105 ])# LT_OPTION_DEFINE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
106
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
107
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
108 # dlopen
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
109 # ------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
110 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
111 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
112
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
113 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
114 [_LT_SET_OPTION([LT_INIT], [dlopen])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
115 AC_DIAGNOSE([obsolete],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
116 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
117 put the 'dlopen' option into LT_INIT's first parameter.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
118 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
119
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
120 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
121 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
122
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
123
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
124 # win32-dll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
125 # ---------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
126 # Declare package support for building win32 dll's.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
127 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
128 [enable_win32_dll=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
129
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
130 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
131 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
132 AC_CHECK_TOOL(AS, as, false)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
133 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
134 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
135 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
136 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
137
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
138 test -z "$AS" && AS=as
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
139 _LT_DECL([], [AS], [1], [Assembler program])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
140
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
141 test -z "$DLLTOOL" && DLLTOOL=dlltool
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
142 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
143
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
144 test -z "$OBJDUMP" && OBJDUMP=objdump
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
145 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
146 ])# win32-dll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
147
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
148 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
149 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
150 _LT_SET_OPTION([LT_INIT], [win32-dll])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
151 AC_DIAGNOSE([obsolete],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
152 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
153 put the 'win32-dll' option into LT_INIT's first parameter.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
154 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
155
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
156 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
157 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
158
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
159
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
160 # _LT_ENABLE_SHARED([DEFAULT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
161 # ----------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
162 # implement the --enable-shared flag, and supports the 'shared' and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
163 # 'disable-shared' LT_INIT options.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
164 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
165 m4_define([_LT_ENABLE_SHARED],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
166 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
167 AC_ARG_ENABLE([shared],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
168 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
169 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
170 [p=${PACKAGE-default}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
171 case $enableval in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
172 yes) enable_shared=yes ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
173 no) enable_shared=no ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
174 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
175 enable_shared=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
176 # Look at the argument we got. We use all the common list separators.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
177 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
178 for pkg in $enableval; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
179 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
180 if test "X$pkg" = "X$p"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
181 enable_shared=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
182 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
183 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
184 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
185 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
186 esac],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
187 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
188
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
189 _LT_DECL([build_libtool_libs], [enable_shared], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
190 [Whether or not to build shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
191 ])# _LT_ENABLE_SHARED
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
192
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
193 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
194 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
195
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
196 # Old names:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
197 AC_DEFUN([AC_ENABLE_SHARED],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
198 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
199 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
200
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
201 AC_DEFUN([AC_DISABLE_SHARED],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
202 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
203 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
204
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
205 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
206 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
207
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
208 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
209 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
210 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
211
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
212
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
213
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
214 # _LT_ENABLE_STATIC([DEFAULT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
215 # ----------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
216 # implement the --enable-static flag, and support the 'static' and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
217 # 'disable-static' LT_INIT options.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
218 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
219 m4_define([_LT_ENABLE_STATIC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
220 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
221 AC_ARG_ENABLE([static],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
222 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
223 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
224 [p=${PACKAGE-default}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
225 case $enableval in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
226 yes) enable_static=yes ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
227 no) enable_static=no ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
228 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
229 enable_static=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
230 # Look at the argument we got. We use all the common list separators.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
231 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
232 for pkg in $enableval; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
233 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
234 if test "X$pkg" = "X$p"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
235 enable_static=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
236 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
237 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
238 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
239 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
240 esac],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
241 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
242
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
243 _LT_DECL([build_old_libs], [enable_static], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
244 [Whether or not to build static libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
245 ])# _LT_ENABLE_STATIC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
246
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
247 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
248 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
249
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
250 # Old names:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
251 AC_DEFUN([AC_ENABLE_STATIC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
252 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
253 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
254
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
255 AC_DEFUN([AC_DISABLE_STATIC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
256 [_LT_SET_OPTION([LT_INIT], [disable-static])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
257 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
258
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
259 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
260 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
261
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
262 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
263 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
264 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
265
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
266
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
267
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
268 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
269 # ----------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
270 # implement the --enable-fast-install flag, and support the 'fast-install'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
271 # and 'disable-fast-install' LT_INIT options.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
272 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
273 m4_define([_LT_ENABLE_FAST_INSTALL],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
274 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
275 AC_ARG_ENABLE([fast-install],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
276 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
277 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
278 [p=${PACKAGE-default}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
279 case $enableval in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
280 yes) enable_fast_install=yes ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
281 no) enable_fast_install=no ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
282 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
283 enable_fast_install=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
284 # Look at the argument we got. We use all the common list separators.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
285 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
286 for pkg in $enableval; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
287 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
288 if test "X$pkg" = "X$p"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
289 enable_fast_install=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
290 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
291 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
292 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
293 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
294 esac],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
295 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
296
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
297 _LT_DECL([fast_install], [enable_fast_install], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
298 [Whether or not to optimize for fast installation])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
299 ])# _LT_ENABLE_FAST_INSTALL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
300
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
301 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
302 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
303
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
304 # Old names:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
305 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
306 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
307 AC_DIAGNOSE([obsolete],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
308 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
309 the 'fast-install' option into LT_INIT's first parameter.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
310 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
311
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
312 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
313 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
314 AC_DIAGNOSE([obsolete],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
315 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
316 the 'disable-fast-install' option into LT_INIT's first parameter.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
317 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
318
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
319 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
320 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
321 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
322
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
323
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
324 # _LT_WITH_AIX_SONAME([DEFAULT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
325 # ----------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
326 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
327 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
328 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
329 m4_define([_LT_WITH_AIX_SONAME],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
330 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
331 shared_archive_member_spec=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
332 case $host,$enable_shared in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
333 power*-*-aix[[5-9]]*,yes)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
334 AC_MSG_CHECKING([which variant of shared library versioning to provide])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
335 AC_ARG_WITH([aix-soname],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
336 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
337 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
338 [case $withval in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
339 aix|svr4|both)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
340 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
341 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
342 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
343 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
344 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
345 lt_cv_with_aix_soname=$with_aix_soname],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
346 [AC_CACHE_VAL([lt_cv_with_aix_soname],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
347 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
348 with_aix_soname=$lt_cv_with_aix_soname])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
349 AC_MSG_RESULT([$with_aix_soname])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
350 if test aix != "$with_aix_soname"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
351 # For the AIX way of multilib, we name the shared archive member
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
352 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
353 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
354 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
355 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
356 if test 64 = "${OBJECT_MODE-32}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
357 shared_archive_member_spec=shr_64
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
358 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
359 shared_archive_member_spec=shr
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
360 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
361 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
362 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
363 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
364 with_aix_soname=aix
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
365 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
366 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
367
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
368 _LT_DECL([], [shared_archive_member_spec], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
369 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
370 ])# _LT_WITH_AIX_SONAME
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
371
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
374 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
375
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
376
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
377 # _LT_WITH_PIC([MODE])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
378 # --------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
379 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
380 # LT_INIT options.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
381 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
382 m4_define([_LT_WITH_PIC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
383 [AC_ARG_WITH([pic],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
384 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
385 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
386 [lt_p=${PACKAGE-default}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
387 case $withval in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
388 yes|no) pic_mode=$withval ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
389 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
390 pic_mode=default
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
391 # Look at the argument we got. We use all the common list separators.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
392 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
393 for lt_pkg in $withval; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
394 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
395 if test "X$lt_pkg" = "X$lt_p"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
396 pic_mode=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
397 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
398 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
399 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
400 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
401 esac],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
402 [pic_mode=m4_default([$1], [default])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
403
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
404 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
405 ])# _LT_WITH_PIC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
406
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
407 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
408 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
409
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
410 # Old name:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
411 AU_DEFUN([AC_LIBTOOL_PICMODE],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
412 [_LT_SET_OPTION([LT_INIT], [pic-only])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
413 AC_DIAGNOSE([obsolete],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
414 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
415 put the 'pic-only' option into LT_INIT's first parameter.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
416 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
417
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
418 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
419 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
420
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
421 ## ----------------- ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
422 ## LTDL_INIT Options ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
423 ## ----------------- ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
424
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
425 m4_define([_LTDL_MODE], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
426 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
427 [m4_define([_LTDL_MODE], [nonrecursive])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
428 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
429 [m4_define([_LTDL_MODE], [recursive])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
430 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
431 [m4_define([_LTDL_MODE], [subproject])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
432
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
433 m4_define([_LTDL_TYPE], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
434 LT_OPTION_DEFINE([LTDL_INIT], [installable],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
435 [m4_define([_LTDL_TYPE], [installable])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
436 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
437 [m4_define([_LTDL_TYPE], [convenience])])