ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/m4/ltoptions.m4
(Generate patch)

Comparing ircd-hybrid/trunk/m4/ltoptions.m4 (file contents):
Revision 4805 by michael, Wed Oct 23 16:05:41 2013 UTC vs.
Revision 4806 by michael, Thu Oct 30 19:33:19 2014 UTC

# Line 1 | Line 1
1   # Helper functions for option handling.                    -*- Autoconf -*-
2   #
3 < #   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
4 < #   Inc.
3 > #   Copyright (C) 2004-2005, 2007-2009, 2011-2014 Free Software
4 > #   Foundation, Inc.
5   #   Written by Gary V. Vaughan, 2004
6   #
7   # This file is free software; the Free Software Foundation gives
8   # unlimited permission to copy and/or distribute it, with or without
9   # modifications, as long as this notice is preserved.
10  
11 < # serial 7 ltoptions.m4
11 > # serial 8 ltoptions.m4
12  
13   # This is to help aclocal find these macros, as it can't see m4_define.
14   AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
# Line 29 | Line 29 | m4_define([_LT_SET_OPTION],
29   [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
30   m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
31          _LT_MANGLE_DEFUN([$1], [$2]),
32 <    [m4_warning([Unknown $1 option `$2'])])[]dnl
32 >    [m4_warning([Unknown $1 option '$2'])])[]dnl
33   ])
34  
35  
# Line 75 | Line 75 | m4_if([$1],[LT_INIT],[
75    dnl
76    dnl If no reference was made to various pairs of opposing options, then
77    dnl we run the default mode handler for the pair.  For example, if neither
78 <  dnl `shared' nor `disable-shared' was passed, we enable building of shared
78 >  dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
79    dnl archives by default:
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],
84 <                   [_LT_ENABLE_FAST_INSTALL])
84 >                   [_LT_ENABLE_FAST_INSTALL])
85    ])
86   ])# _LT_SET_OPTIONS
87  
# Line 112 | Line 112 | AU_DEFUN([AC_LIBTOOL_DLOPEN],
112   [_LT_SET_OPTION([LT_INIT], [dlopen])
113   AC_DIAGNOSE([obsolete],
114   [$0: Remove this warning and the call to _LT_SET_OPTION when you
115 < put the `dlopen' option into LT_INIT's first parameter.])
115 > put the 'dlopen' option into LT_INIT's first parameter.])
116   ])
117  
118   dnl aclocal-1.4 backwards compatibility:
# Line 148 | Line 148 | AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
148   _LT_SET_OPTION([LT_INIT], [win32-dll])
149   AC_DIAGNOSE([obsolete],
150   [$0: Remove this warning and the call to _LT_SET_OPTION when you
151 < put the `win32-dll' option into LT_INIT's first parameter.])
151 > put the 'win32-dll' option into LT_INIT's first parameter.])
152   ])
153  
154   dnl aclocal-1.4 backwards compatibility:
# Line 157 | Line 157 | dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
157  
158   # _LT_ENABLE_SHARED([DEFAULT])
159   # ----------------------------
160 < # implement the --enable-shared flag, and supports the `shared' and
161 < # `disable-shared' LT_INIT options.
162 < # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
160 > # implement the --enable-shared flag, and supports the 'shared' and
161 > # 'disable-shared' LT_INIT options.
162 > # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
163   m4_define([_LT_ENABLE_SHARED],
164   [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
165   AC_ARG_ENABLE([shared],
# Line 172 | Line 172 | AC_ARG_ENABLE([shared],
172      *)
173        enable_shared=no
174        # Look at the argument we got.  We use all the common list separators.
175 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
175 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
176        for pkg in $enableval; do
177 <        IFS="$lt_save_ifs"
177 >        IFS=$lt_save_ifs
178          if test "X$pkg" = "X$p"; then
179            enable_shared=yes
180          fi
181        done
182 <      IFS="$lt_save_ifs"
182 >      IFS=$lt_save_ifs
183        ;;
184      esac],
185      [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
# Line 211 | Line 211 | dnl AC_DEFUN([AM_DISABLE_SHARED], [])
211  
212   # _LT_ENABLE_STATIC([DEFAULT])
213   # ----------------------------
214 < # implement the --enable-static flag, and support the `static' and
215 < # `disable-static' LT_INIT options.
216 < # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
214 > # implement the --enable-static flag, and support the 'static' and
215 > # 'disable-static' LT_INIT options.
216 > # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
217   m4_define([_LT_ENABLE_STATIC],
218   [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
219   AC_ARG_ENABLE([static],
# Line 226 | Line 226 | AC_ARG_ENABLE([static],
226      *)
227       enable_static=no
228        # Look at the argument we got.  We use all the common list separators.
229 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
229 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
230        for pkg in $enableval; do
231 <        IFS="$lt_save_ifs"
231 >        IFS=$lt_save_ifs
232          if test "X$pkg" = "X$p"; then
233            enable_static=yes
234          fi
235        done
236 <      IFS="$lt_save_ifs"
236 >      IFS=$lt_save_ifs
237        ;;
238      esac],
239      [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
# Line 265 | Line 265 | dnl AC_DEFUN([AM_DISABLE_STATIC], [])
265  
266   # _LT_ENABLE_FAST_INSTALL([DEFAULT])
267   # ----------------------------------
268 < # implement the --enable-fast-install flag, and support the `fast-install'
269 < # and `disable-fast-install' LT_INIT options.
270 < # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
268 > # implement the --enable-fast-install flag, and support the 'fast-install'
269 > # and 'disable-fast-install' LT_INIT options.
270 > # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
271   m4_define([_LT_ENABLE_FAST_INSTALL],
272   [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
273   AC_ARG_ENABLE([fast-install],
# Line 280 | Line 280 | AC_ARG_ENABLE([fast-install],
280      *)
281        enable_fast_install=no
282        # Look at the argument we got.  We use all the common list separators.
283 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
283 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
284        for pkg in $enableval; do
285 <        IFS="$lt_save_ifs"
285 >        IFS=$lt_save_ifs
286          if test "X$pkg" = "X$p"; then
287            enable_fast_install=yes
288          fi
289        done
290 <      IFS="$lt_save_ifs"
290 >      IFS=$lt_save_ifs
291        ;;
292      esac],
293      [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
# Line 304 | Line 304 | AU_DEFUN([AC_ENABLE_FAST_INSTALL],
304   [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
305   AC_DIAGNOSE([obsolete],
306   [$0: Remove this warning and the call to _LT_SET_OPTION when you put
307 < the `fast-install' option into LT_INIT's first parameter.])
307 > the 'fast-install' option into LT_INIT's first parameter.])
308   ])
309  
310   AU_DEFUN([AC_DISABLE_FAST_INSTALL],
311   [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
312   AC_DIAGNOSE([obsolete],
313   [$0: Remove this warning and the call to _LT_SET_OPTION when you put
314 < the `disable-fast-install' option into LT_INIT's first parameter.])
314 > the 'disable-fast-install' option into LT_INIT's first parameter.])
315   ])
316  
317   dnl aclocal-1.4 backwards compatibility:
# Line 321 | Line 321 | dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL],
321  
322   # _LT_WITH_PIC([MODE])
323   # --------------------
324 < # implement the --with-pic flag, and support the `pic-only' and `no-pic'
324 > # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
325   # LT_INIT options.
326 < # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
326 > # MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
327   m4_define([_LT_WITH_PIC],
328   [AC_ARG_WITH([pic],
329      [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
# Line 334 | Line 334 | m4_define([_LT_WITH_PIC],
334      *)
335        pic_mode=default
336        # Look at the argument we got.  We use all the common list separators.
337 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
337 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
338        for lt_pkg in $withval; do
339 <        IFS="$lt_save_ifs"
339 >        IFS=$lt_save_ifs
340          if test "X$lt_pkg" = "X$lt_p"; then
341            pic_mode=yes
342          fi
343        done
344 <      IFS="$lt_save_ifs"
344 >      IFS=$lt_save_ifs
345        ;;
346      esac],
347 <    [pic_mode=default])
348 <
349 < test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
347 >    [pic_mode=m4_default([$1], [default])])
348  
349   _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
350   ])# _LT_WITH_PIC
# Line 359 | Line 357 | AU_DEFUN([AC_LIBTOOL_PICMODE],
357   [_LT_SET_OPTION([LT_INIT], [pic-only])
358   AC_DIAGNOSE([obsolete],
359   [$0: Remove this warning and the call to _LT_SET_OPTION when you
360 < put the `pic-only' option into LT_INIT's first parameter.])
360 > put the 'pic-only' option into LT_INIT's first parameter.])
361   ])
362  
363   dnl aclocal-1.4 backwards compatibility:

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)