ltoptions.m4 revision 316069
189051Sjake# Helper functions for option handling.                    -*- Autoconf -*-
289051Sjake#
389051Sjake#   Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
489051Sjake#   Foundation, Inc.
589051Sjake#   Written by Gary V. Vaughan, 2004
689051Sjake#
789051Sjake# This file is free software; the Free Software Foundation gives
889051Sjake# unlimited permission to copy and/or distribute it, with or without
989051Sjake# modifications, as long as this notice is preserved.
1089051Sjake
1189051Sjake# serial 8 ltoptions.m4
1289051Sjake
1389051Sjake# This is to help aclocal find these macros, as it can't see m4_define.
1489051SjakeAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
1589051Sjake
1689051Sjake
1789051Sjake# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
1889051Sjake# ------------------------------------------
1989051Sjakem4_define([_LT_MANGLE_OPTION],
2089051Sjake[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
2189051Sjake
2289051Sjake
2389051Sjake# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
2489051Sjake# ---------------------------------------
2589051Sjake# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
2689051Sjake# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
2789051Sjake# saved as a flag.
2889051Sjakem4_define([_LT_SET_OPTION],
2989051Sjake[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
3089051Sjakem4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
3189051Sjake        _LT_MANGLE_DEFUN([$1], [$2]),
32211050Smarius    [m4_warning([Unknown $1 option '$2'])])[]dnl
3389051Sjake])
3489051Sjake
3589051Sjake
3689051Sjake# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3789051Sjake# ------------------------------------------------------------
3889051Sjake# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3989051Sjakem4_define([_LT_IF_OPTION],
4089051Sjake[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
4189051Sjake
4289051Sjake
4389051Sjake# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
4489051Sjake# -------------------------------------------------------
4589051Sjake# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
4689051Sjake# are set.
4789051Sjakem4_define([_LT_UNLESS_OPTIONS],
4889051Sjake[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
4989051Sjake	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
5089051Sjake		      [m4_define([$0_found])])])[]dnl
5189051Sjakem4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
5289051Sjake])[]dnl
5389051Sjake])
5489051Sjake
5589051Sjake
5689051Sjake# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
57145150Smarius# ----------------------------------------
58145150Smarius# OPTION-LIST is a space-separated list of Libtool options associated
59145150Smarius# with MACRO-NAME.  If any OPTION has a matching handler declared with
6089051Sjake# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
6189051Sjake# the unknown option and exit.
6289051Sjakem4_defun([_LT_SET_OPTIONS],
63131950Smarcel[# Set options
6489051Sjakem4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
6589051Sjake    [_LT_SET_OPTION([$1], _LT_Option)])
6689051Sjake
6789051Sjakem4_if([$1],[LT_INIT],[
6889051Sjake  dnl
69170846Smarius  dnl Simply set some default values (i.e off) if boolean options were not
7089051Sjake  dnl specified:
7189051Sjake  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7289051Sjake  ])
7389051Sjake  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7489051Sjake  ])
7589051Sjake  dnl
7689051Sjake  dnl If no reference was made to various pairs of opposing options, then
7789051Sjake  dnl we run the default mode handler for the pair.  For example, if neither
7889051Sjake  dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
7989051Sjake  dnl archives by default:
8089051Sjake  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8189051Sjake  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8292205Sjake  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
83119696Smarcel  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
84182730Smarius		   [_LT_ENABLE_FAST_INSTALL])
85285839Smarius  _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
8689051Sjake		   [_LT_WITH_AIX_SONAME([aix])])
8797511Sjake  ])
8892205Sjake])# _LT_SET_OPTIONS
89152022Sjhb
9089051Sjake
9195132Sjake## --------------------------------- ##
9291617Sjake## Macros to handle LT_INIT options. ##
93216803Smarius## --------------------------------- ##
9489051Sjake
95170846Smarius# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
9689051Sjake# -----------------------------------------
97183142Smariusm4_define([_LT_MANGLE_DEFUN],
98183142Smarius[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
99183142Smarius
10089051Sjake
101210601Smav# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
102178048Smarius# -----------------------------------------------
10389051Sjakem4_define([LT_OPTION_DEFINE],
10489051Sjake[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
10589051Sjake])# LT_OPTION_DEFINE
10689051Sjake
107169796Smarius
108169796Smarius# dlopen
10989051Sjake# ------
11089051SjakeLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
111182730Smarius])
11297001Sjake
113211071SmariusAU_DEFUN([AC_LIBTOOL_DLOPEN],
11491783Sjake[_LT_SET_OPTION([LT_INIT], [dlopen])
115152022SjhbAC_DIAGNOSE([obsolete],
11689051Sjake[$0: Remove this warning and the call to _LT_SET_OPTION when you
117285839Smariusput the 'dlopen' option into LT_INIT's first parameter.])
118285839Smarius])
119170846Smarius
120211050Smariusdnl aclocal-1.4 backwards compatibility:
12191617Sjakednl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
122170846Smarius
123291121Smarius
124222813Sattilio# win32-dll
125291121Smarius# ---------
126291121Smarius# Declare package support for building win32 dll's.
12792205SjakeLT_OPTION_DEFINE([LT_INIT], [win32-dll],
128204152Smarius[enable_win32_dll=yes
129204152Smarius
130169796Smariuscase $host in
131203838Smarius*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
132204152Smarius  AC_CHECK_TOOL(AS, as, false)
133169796Smarius  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
134169796Smarius  AC_CHECK_TOOL(OBJDUMP, objdump, false)
135170846Smarius  ;;
136211050Smariusesac
137211050Smarius
138211050Smariustest -z "$AS" && AS=as
139170846Smarius_LT_DECL([], [AS],      [1], [Assembler program])dnl
140211050Smarius
141170846Smariustest -z "$DLLTOOL" && DLLTOOL=dlltool
14291617Sjake_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
14391617Sjake
144170846Smariustest -z "$OBJDUMP" && OBJDUMP=objdump
145285839Smarius_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
14691617Sjake])# win32-dll
14791617Sjake
14891617SjakeAU_DEFUN([AC_LIBTOOL_WIN32_DLL],
14991617Sjake[AC_REQUIRE([AC_CANONICAL_HOST])dnl
150170846Smarius_LT_SET_OPTION([LT_INIT], [win32-dll])
151170846SmariusAC_DIAGNOSE([obsolete],
152169796Smarius[$0: Remove this warning and the call to _LT_SET_OPTION when you
153170846Smariusput the 'win32-dll' option into LT_INIT's first parameter.])
154170846Smarius])
155170846Smarius
156170846Smariusdnl aclocal-1.4 backwards compatibility:
15797511Sjakednl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
158102042Sjake
15997511Sjake
16097511Sjake# _LT_ENABLE_SHARED([DEFAULT])
16197511Sjake# ----------------------------
162170846Smarius# implement the --enable-shared flag, and supports the 'shared' and
163170846Smarius# 'disable-shared' LT_INIT options.
16491617Sjake# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
16591617Sjakem4_define([_LT_ENABLE_SHARED],
166203838Smarius[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
167204152SmariusAC_ARG_ENABLE([shared],
168204152Smarius    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
169203838Smarius	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
170291121Smarius    [p=${PACKAGE-default}
171203838Smarius    case $enableval in
172291121Smarius    yes) enable_shared=yes ;;
173211050Smarius    no) enable_shared=no ;;
174203838Smarius    *)
175291121Smarius      enable_shared=no
176203838Smarius      # Look at the argument we got.  We use all the common list separators.
177203838Smarius      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
178203838Smarius      for pkg in $enableval; do
179203838Smarius	IFS=$lt_save_ifs
180203838Smarius	if test "X$pkg" = "X$p"; then
181203838Smarius	  enable_shared=yes
182203838Smarius	fi
183203838Smarius      done
184203838Smarius      IFS=$lt_save_ifs
185203838Smarius      ;;
186203838Smarius    esac],
187203838Smarius    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
188204152Smarius
189204152Smarius    _LT_DECL([build_libtool_libs], [enable_shared], [0],
190204152Smarius	[Whether or not to build shared libraries])
191204152Smarius])# _LT_ENABLE_SHARED
192291121Smarius
193291121SmariusLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
194291121SmariusLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
195204152Smarius
196291121Smarius# Old names:
197203838SmariusAC_DEFUN([AC_ENABLE_SHARED],
198291121Smarius[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
199203838Smarius])
200203838Smarius
201203838SmariusAC_DEFUN([AC_DISABLE_SHARED],
202203838Smarius[_LT_SET_OPTION([LT_INIT], [disable-shared])
20389051Sjake])
204169796Smarius
20589051SjakeAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
206122947SjhbAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
207285839Smarius
20889051Sjakednl aclocal-1.4 backwards compatibility:
20989051Sjakednl AC_DEFUN([AM_ENABLE_SHARED], [])
210222813Sattiliodnl AC_DEFUN([AM_DISABLE_SHARED], [])
21189051Sjake
21289051Sjake
213203838Smarius
214291121Smarius# _LT_ENABLE_STATIC([DEFAULT])
215291121Smarius# ----------------------------
21689051Sjake# implement the --enable-static flag, and support the 'static' and
21789051Sjake# 'disable-static' LT_INIT options.
218203838Smarius# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
219204152Smariusm4_define([_LT_ENABLE_STATIC],
220203838Smarius[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
221203838SmariusAC_ARG_ENABLE([static],
222291121Smarius    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
223203838Smarius	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
224203838Smarius    [p=${PACKAGE-default}
225122947Sjhb    case $enableval in
226122947Sjhb    yes) enable_static=yes ;;
227122947Sjhb    no) enable_static=no ;;
228122947Sjhb    *)
229123126Sjhb     enable_static=no
230122947Sjhb      # Look at the argument we got.  We use all the common list separators.
231122947Sjhb      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
232176734Sjeff      for pkg in $enableval; do
233176734Sjeff	IFS=$lt_save_ifs
234176734Sjeff	if test "X$pkg" = "X$p"; then
235176734Sjeff	  enable_static=yes
236176994Smarius	fi
237176734Sjeff      done
238176734Sjeff      IFS=$lt_save_ifs
23991617Sjake      ;;
24091617Sjake    esac],
24191617Sjake    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
24291617Sjake
24391617Sjake    _LT_DECL([build_old_libs], [enable_static], [0],
24491617Sjake	[Whether or not to build static libraries])
24591617Sjake])# _LT_ENABLE_STATIC
24691617Sjake
24791617SjakeLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
24891617SjakeLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
24991617Sjake
250183142Smarius# Old names:
25191617SjakeAC_DEFUN([AC_ENABLE_STATIC],
25291617Sjake[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
25391617Sjake])
25491617Sjake
25591617SjakeAC_DEFUN([AC_DISABLE_STATIC],
25691617Sjake[_LT_SET_OPTION([LT_INIT], [disable-static])
257186347Snwhitehorn])
25891617Sjake
25991617SjakeAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
26089051SjakeAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
26189051Sjake
26289051Sjakednl aclocal-1.4 backwards compatibility:
26389051Sjakednl AC_DEFUN([AM_ENABLE_STATIC], [])
26489051Sjakednl AC_DEFUN([AM_DISABLE_STATIC], [])
26589051Sjake
266285839Smarius
26789051Sjake
268285839Smarius# _LT_ENABLE_FAST_INSTALL([DEFAULT])
269285839Smarius# ----------------------------------
270285839Smarius# implement the --enable-fast-install flag, and support the 'fast-install'
271285839Smarius# and 'disable-fast-install' LT_INIT options.
272285839Smarius# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
273285839Smariusm4_define([_LT_ENABLE_FAST_INSTALL],
274285839Smarius[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
275285839SmariusAC_ARG_ENABLE([fast-install],
276285839Smarius    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
277285839Smarius    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
278285839Smarius    [p=${PACKAGE-default}
279285839Smarius    case $enableval in
280285839Smarius    yes) enable_fast_install=yes ;;
281285839Smarius    no) enable_fast_install=no ;;
282285839Smarius    *)
283285839Smarius      enable_fast_install=no
284285839Smarius      # Look at the argument we got.  We use all the common list separators.
285285839Smarius      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
28689051Sjake      for pkg in $enableval; do
28789051Sjake	IFS=$lt_save_ifs
28889051Sjake	if test "X$pkg" = "X$p"; then
28989051Sjake	  enable_fast_install=yes
290178048Smarius	fi
291210601Smav      done
29289051Sjake      IFS=$lt_save_ifs
293169796Smarius      ;;
294157240Smarius    esac],
295203838Smarius    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
296203838Smarius
297203838Smarius_LT_DECL([fast_install], [enable_fast_install], [0],
298203838Smarius	 [Whether or not to optimize for fast installation])dnl
299203838Smarius])# _LT_ENABLE_FAST_INSTALL
300203838Smarius
301203838SmariusLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
302204152SmariusLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
303203838Smarius
304203838Smarius# Old names:
305203838SmariusAU_DEFUN([AC_ENABLE_FAST_INSTALL],
306203838Smarius[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
307203838SmariusAC_DIAGNOSE([obsolete],
308203838Smarius[$0: Remove this warning and the call to _LT_SET_OPTION when you put
309204152Smariusthe 'fast-install' option into LT_INIT's first parameter.])
310203838Smarius])
311291121Smarius
312203838SmariusAU_DEFUN([AC_DISABLE_FAST_INSTALL],
313203838Smarius[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
314203838SmariusAC_DIAGNOSE([obsolete],
315204152Smarius[$0: Remove this warning and the call to _LT_SET_OPTION when you put
316203838Smariusthe 'disable-fast-install' option into LT_INIT's first parameter.])
317214071Smarius])
318203838Smarius
31989051Sjakednl aclocal-1.4 backwards compatibility:
320203838Smariusdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
321203838Smariusdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
322203838Smarius
323203838Smarius
324203838Smarius# _LT_WITH_AIX_SONAME([DEFAULT])
325203838Smarius# ----------------------------------
326203838Smarius# implement the --with-aix-soname flag, and support the `aix-soname=aix'
327207537Smarius# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
328207537Smarius# is either `aix', `both' or `svr4'.  If omitted, it defaults to `aix'.
329203838Smariusm4_define([_LT_WITH_AIX_SONAME],
33091617Sjake[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
33191617Sjakeshared_archive_member_spec=
332203838Smariuscase $host,$enable_shared in
333203838Smariuspower*-*-aix[[5-9]]*,yes)
334203838Smarius  AC_MSG_CHECKING([which variant of shared library versioning to provide])
335203838Smarius  AC_ARG_WITH([aix-soname],
336203838Smarius    [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
337203838Smarius      [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
33891617Sjake    [case $withval in
339291121Smarius    aix|svr4|both)
340203838Smarius      ;;
341203838Smarius    *)
34291617Sjake      AC_MSG_ERROR([Unknown argument to --with-aix-soname])
343254025Sjeff      ;;
344254025Sjeff    esac
345203838Smarius    lt_cv_with_aix_soname=$with_aix_soname],
346203838Smarius    [AC_CACHE_VAL([lt_cv_with_aix_soname],
347254025Sjeff      [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
348254025Sjeff    with_aix_soname=$lt_cv_with_aix_soname])
349203838Smarius  AC_MSG_RESULT([$with_aix_soname])
350203838Smarius  if test aix != "$with_aix_soname"; then
351204152Smarius    # For the AIX way of multilib, we name the shared archive member
352203838Smarius    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
353203838Smarius    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
35489051Sjake    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
355203838Smarius    # the AIX toolchain works better with OBJECT_MODE set (default 32).
356182689Smarius    if test 64 = "${OBJECT_MODE-32}"; then
357222813Sattilio      shared_archive_member_spec=shr_64
358203838Smarius    else
35989051Sjake      shared_archive_member_spec=shr
36089051Sjake    fi
36189051Sjake  fi
36289051Sjake  ;;
36389051Sjake*)
364169796Smarius  with_aix_soname=aix
36589051Sjake  ;;
36689051Sjakeesac
367169796Smarius
368285839Smarius_LT_DECL([], [shared_archive_member_spec], [0],
36989051Sjake    [Shared archive member basename, for filename based shared library versioning on AIX])dnl
37091617Sjake])# _LT_WITH_AIX_SONAME
37191617Sjake
372169796SmariusLT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
37391617SjakeLT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
374113238SjakeLT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
375181701Smarius
37691617Sjake
37791617Sjake# _LT_WITH_PIC([MODE])
37889051Sjake# --------------------
37991783Sjake# implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
38091783Sjake# LT_INIT options.
38189051Sjake# MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
38291783Sjakem4_define([_LT_WITH_PIC],
383222531Snwhitehorn[AC_ARG_WITH([pic],
38491617Sjake    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
38591617Sjake	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
38691617Sjake    [lt_p=${PACKAGE-default}
38791617Sjake    case $withval in
38889051Sjake    yes|no) pic_mode=$withval ;;
389169796Smarius    *)
39091617Sjake      pic_mode=default
39191617Sjake      # Look at the argument we got.  We use all the common list separators.
392169796Smarius      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
393169796Smarius      for lt_pkg in $withval; do
39491617Sjake	IFS=$lt_save_ifs
39591617Sjake	if test "X$lt_pkg" = "X$lt_p"; then
39691617Sjake	  pic_mode=yes
39791617Sjake	fi
39891617Sjake      done
399169796Smarius      IFS=$lt_save_ifs
400102042Sjake      ;;
40191617Sjake    esac],
40291617Sjake    [pic_mode=m4_default([$1], [default])])
40391617Sjake
40491617Sjake_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
40591783Sjake])# _LT_WITH_PIC
40691617Sjake
40791617SjakeLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
40891617SjakeLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
40991617Sjake
41091617Sjake# Old name:
41191617SjakeAU_DEFUN([AC_LIBTOOL_PICMODE],
41291783Sjake[_LT_SET_OPTION([LT_INIT], [pic-only])
41391783SjakeAC_DIAGNOSE([obsolete],
414169796Smarius[$0: Remove this warning and the call to _LT_SET_OPTION when you
41591617Sjakeput the 'pic-only' option into LT_INIT's first parameter.])
41689051Sjake])
41791617Sjake
41891617Sjakednl aclocal-1.4 backwards compatibility:
41991617Sjakednl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
42091617Sjake
42189051Sjake## ----------------- ##
42291617Sjake## LTDL_INIT Options ##
423207248Smarius## ----------------- ##
424207248Smarius
425223719Smariusm4_define([_LTDL_MODE], [])
426204152SmariusLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
427223719Smarius		 [m4_define([_LTDL_MODE], [nonrecursive])])
428223719SmariusLT_OPTION_DEFINE([LTDL_INIT], [recursive],
429223719Smarius		 [m4_define([_LTDL_MODE], [recursive])])
430207248SmariusLT_OPTION_DEFINE([LTDL_INIT], [subproject],
431207248Smarius		 [m4_define([_LTDL_MODE], [subproject])])
432207248Smarius
433204152Smariusm4_define([_LTDL_TYPE], [])
434207248SmariusLT_OPTION_DEFINE([LTDL_INIT], [installable],
435213868Smarius		 [m4_define([_LTDL_TYPE], [installable])])
436213868SmariusLT_OPTION_DEFINE([LTDL_INIT], [convenience],
437213868Smarius		 [m4_define([_LTDL_TYPE], [convenience])])
438213868Smarius