Diff for /embedaddon/sudo/m4/ltoptions.m4 between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2013/07/22 10:46:12 version 1.1.1.3, 2014/06/15 16:12:54
Line 1 Line 1
 # Helper functions for option handling.                    -*- Autoconf -*-  # Helper functions for option handling.                    -*- Autoconf -*-
 #  #
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,#   Copyright (C) 2004-2005, 2007-2009, 2011-2013 Free Software
#   Inc.#   Foundation, Inc.
 #   Written by Gary V. Vaughan, 2004  #   Written by Gary V. Vaughan, 2004
 #  #
 # This file is free software; the Free Software Foundation gives  # This file is free software; the Free Software Foundation gives
 # unlimited permission to copy and/or distribute it, with or without  # unlimited permission to copy and/or distribute it, with or without
 # modifications, as long as this notice is preserved.  # modifications, as long as this notice is preserved.
   
# serial 7 ltoptions.m4# serial 8 ltoptions.m4
   
 # This is to help aclocal find these macros, as it can't see m4_define.  # This is to help aclocal find these macros, as it can't see m4_define.
 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])  AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
Line 29  m4_define([_LT_SET_OPTION], Line 29  m4_define([_LT_SET_OPTION],
 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl  [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),  m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
         _LT_MANGLE_DEFUN([$1], [$2]),          _LT_MANGLE_DEFUN([$1], [$2]),
    [m4_warning([Unknown $1 option `$2'])])[]dnl    [m4_warning([Unknown $1 option '$2'])])[]dnl
 ])  ])
   
   
Line 75  m4_if([$1],[LT_INIT],[ Line 75  m4_if([$1],[LT_INIT],[
   dnl    dnl
   dnl If no reference was made to various pairs of opposing options, then    dnl If no reference was made to various pairs of opposing options, then
   dnl we run the default mode handler for the pair.  For example, if neither    dnl we run the default mode handler for the pair.  For example, if neither
  dnl `shared' nor `disable-shared' was passed, we enable building of shared  dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
   dnl archives by default:    dnl archives by default:
   _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])    _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
   _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])    _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
   _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])    _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
   _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],    _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
                   [_LT_ENABLE_FAST_INSTALL])                   [_LT_ENABLE_FAST_INSTALL])
   ])    ])
 ])# _LT_SET_OPTIONS  ])# _LT_SET_OPTIONS
   
Line 112  AU_DEFUN([AC_LIBTOOL_DLOPEN], Line 112  AU_DEFUN([AC_LIBTOOL_DLOPEN],
 [_LT_SET_OPTION([LT_INIT], [dlopen])  [_LT_SET_OPTION([LT_INIT], [dlopen])
 AC_DIAGNOSE([obsolete],  AC_DIAGNOSE([obsolete],
 [$0: Remove this warning and the call to _LT_SET_OPTION when you  [$0: Remove this warning and the call to _LT_SET_OPTION when you
put the `dlopen' option into LT_INIT's first parameter.])put the 'dlopen' option into LT_INIT's first parameter.])
 ])  ])
   
 dnl aclocal-1.4 backwards compatibility:  dnl aclocal-1.4 backwards compatibility:
Line 148  AU_DEFUN([AC_LIBTOOL_WIN32_DLL], Line 148  AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 _LT_SET_OPTION([LT_INIT], [win32-dll])  _LT_SET_OPTION([LT_INIT], [win32-dll])
 AC_DIAGNOSE([obsolete],  AC_DIAGNOSE([obsolete],
 [$0: Remove this warning and the call to _LT_SET_OPTION when you  [$0: Remove this warning and the call to _LT_SET_OPTION when you
put the `win32-dll' option into LT_INIT's first parameter.])put the 'win32-dll' option into LT_INIT's first parameter.])
 ])  ])
   
 dnl aclocal-1.4 backwards compatibility:  dnl aclocal-1.4 backwards compatibility:
Line 157  dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) Line 157  dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
   
 # _LT_ENABLE_SHARED([DEFAULT])  # _LT_ENABLE_SHARED([DEFAULT])
 # ----------------------------  # ----------------------------
# implement the --enable-shared flag, and supports the `shared' and# implement the --enable-shared flag, and supports the 'shared' and
`disable-shared' LT_INIT options.'disable-shared' LT_INIT options.
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
 m4_define([_LT_ENABLE_SHARED],  m4_define([_LT_ENABLE_SHARED],
 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl  [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 AC_ARG_ENABLE([shared],  AC_ARG_ENABLE([shared],
Line 172  AC_ARG_ENABLE([shared], Line 172  AC_ARG_ENABLE([shared],
     *)      *)
       enable_shared=no        enable_shared=no
       # Look at the argument we got.  We use all the common list separators.        # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
       for pkg in $enableval; do        for pkg in $enableval; do
        IFS="$lt_save_ifs"        IFS=$lt_save_ifs
         if test "X$pkg" = "X$p"; then          if test "X$pkg" = "X$p"; then
           enable_shared=yes            enable_shared=yes
         fi          fi
       done        done
      IFS="$lt_save_ifs"      IFS=$lt_save_ifs
       ;;        ;;
     esac],      esac],
     [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)      [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
Line 211  dnl AC_DEFUN([AM_DISABLE_SHARED], []) Line 211  dnl AC_DEFUN([AM_DISABLE_SHARED], [])
   
 # _LT_ENABLE_STATIC([DEFAULT])  # _LT_ENABLE_STATIC([DEFAULT])
 # ----------------------------  # ----------------------------
# implement the --enable-static flag, and support the `static' and# implement the --enable-static flag, and support the 'static' and
`disable-static' LT_INIT options.'disable-static' LT_INIT options.
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
 m4_define([_LT_ENABLE_STATIC],  m4_define([_LT_ENABLE_STATIC],
 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl  [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 AC_ARG_ENABLE([static],  AC_ARG_ENABLE([static],
Line 226  AC_ARG_ENABLE([static], Line 226  AC_ARG_ENABLE([static],
     *)      *)
      enable_static=no       enable_static=no
       # Look at the argument we got.  We use all the common list separators.        # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
       for pkg in $enableval; do        for pkg in $enableval; do
        IFS="$lt_save_ifs"        IFS=$lt_save_ifs
         if test "X$pkg" = "X$p"; then          if test "X$pkg" = "X$p"; then
           enable_static=yes            enable_static=yes
         fi          fi
       done        done
      IFS="$lt_save_ifs"      IFS=$lt_save_ifs
       ;;        ;;
     esac],      esac],
     [enable_static=]_LT_ENABLE_STATIC_DEFAULT)      [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
Line 265  dnl AC_DEFUN([AM_DISABLE_STATIC], []) Line 265  dnl AC_DEFUN([AM_DISABLE_STATIC], [])
   
 # _LT_ENABLE_FAST_INSTALL([DEFAULT])  # _LT_ENABLE_FAST_INSTALL([DEFAULT])
 # ----------------------------------  # ----------------------------------
# implement the --enable-fast-install flag, and support the `fast-install'# implement the --enable-fast-install flag, and support the 'fast-install'
# and `disable-fast-install' LT_INIT options.# and 'disable-fast-install' LT_INIT options.
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
 m4_define([_LT_ENABLE_FAST_INSTALL],  m4_define([_LT_ENABLE_FAST_INSTALL],
 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl  [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 AC_ARG_ENABLE([fast-install],  AC_ARG_ENABLE([fast-install],
Line 280  AC_ARG_ENABLE([fast-install], Line 280  AC_ARG_ENABLE([fast-install],
     *)      *)
       enable_fast_install=no        enable_fast_install=no
       # Look at the argument we got.  We use all the common list separators.        # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
       for pkg in $enableval; do        for pkg in $enableval; do
        IFS="$lt_save_ifs"        IFS=$lt_save_ifs
         if test "X$pkg" = "X$p"; then          if test "X$pkg" = "X$p"; then
           enable_fast_install=yes            enable_fast_install=yes
         fi          fi
       done        done
      IFS="$lt_save_ifs"      IFS=$lt_save_ifs
       ;;        ;;
     esac],      esac],
     [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)      [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
Line 304  AU_DEFUN([AC_ENABLE_FAST_INSTALL], Line 304  AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])  [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 AC_DIAGNOSE([obsolete],  AC_DIAGNOSE([obsolete],
 [$0: Remove this warning and the call to _LT_SET_OPTION when you put  [$0: Remove this warning and the call to _LT_SET_OPTION when you put
the `fast-install' option into LT_INIT's first parameter.])the 'fast-install' option into LT_INIT's first parameter.])
 ])  ])
   
 AU_DEFUN([AC_DISABLE_FAST_INSTALL],  AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])  [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 AC_DIAGNOSE([obsolete],  AC_DIAGNOSE([obsolete],
 [$0: Remove this warning and the call to _LT_SET_OPTION when you put  [$0: Remove this warning and the call to _LT_SET_OPTION when you put
the `disable-fast-install' option into LT_INIT's first parameter.])the 'disable-fast-install' option into LT_INIT's first parameter.])
 ])  ])
   
 dnl aclocal-1.4 backwards compatibility:  dnl aclocal-1.4 backwards compatibility:
Line 321  dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) Line 321  dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
   
 # _LT_WITH_PIC([MODE])  # _LT_WITH_PIC([MODE])
 # --------------------  # --------------------
# implement the --with-pic flag, and support the `pic-only' and `no-pic'# implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
 # LT_INIT options.  # LT_INIT options.
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.# MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
 m4_define([_LT_WITH_PIC],  m4_define([_LT_WITH_PIC],
 [AC_ARG_WITH([pic],  [AC_ARG_WITH([pic],
     [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],      [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
Line 334  m4_define([_LT_WITH_PIC], Line 334  m4_define([_LT_WITH_PIC],
     *)      *)
       pic_mode=default        pic_mode=default
       # Look at the argument we got.  We use all the common list separators.        # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
       for lt_pkg in $withval; do        for lt_pkg in $withval; do
        IFS="$lt_save_ifs"        IFS=$lt_save_ifs
         if test "X$lt_pkg" = "X$lt_p"; then          if test "X$lt_pkg" = "X$lt_p"; then
           pic_mode=yes            pic_mode=yes
         fi          fi
       done        done
      IFS="$lt_save_ifs"      IFS=$lt_save_ifs
       ;;        ;;
     esac],      esac],
    [pic_mode=default])    [pic_mode=m4_default([$1], [default])])
   
 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])  
   
 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl  _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 ])# _LT_WITH_PIC  ])# _LT_WITH_PIC
   
Line 359  AU_DEFUN([AC_LIBTOOL_PICMODE], Line 357  AU_DEFUN([AC_LIBTOOL_PICMODE],
 [_LT_SET_OPTION([LT_INIT], [pic-only])  [_LT_SET_OPTION([LT_INIT], [pic-only])
 AC_DIAGNOSE([obsolete],  AC_DIAGNOSE([obsolete],
 [$0: Remove this warning and the call to _LT_SET_OPTION when you  [$0: Remove this warning and the call to _LT_SET_OPTION when you
put the `pic-only' option into LT_INIT's first parameter.])put the 'pic-only' option into LT_INIT's first parameter.])
 ])  ])
   
 dnl aclocal-1.4 backwards compatibility:  dnl aclocal-1.4 backwards compatibility:

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>