15b16253fSmrg# Helper functions for option handling. -*- Autoconf -*- 25b16253fSmrg# 35b16253fSmrg# Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free 45b16253fSmrg# Software Foundation, Inc. 55b16253fSmrg# Written by Gary V. Vaughan, 2004 65b16253fSmrg# 75b16253fSmrg# This file is free software; the Free Software Foundation gives 85b16253fSmrg# unlimited permission to copy and/or distribute it, with or without 95b16253fSmrg# modifications, as long as this notice is preserved. 105b16253fSmrg 115b16253fSmrg# serial 8 ltoptions.m4 125b16253fSmrg 135b16253fSmrg# This is to help aclocal find these macros, as it can't see m4_define. 145b16253fSmrgAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 155b16253fSmrg 165b16253fSmrg 175b16253fSmrg# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 185b16253fSmrg# ------------------------------------------ 195b16253fSmrgm4_define([_LT_MANGLE_OPTION], 205b16253fSmrg[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 215b16253fSmrg 225b16253fSmrg 235b16253fSmrg# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 245b16253fSmrg# --------------------------------------- 255b16253fSmrg# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 265b16253fSmrg# matching handler defined, dispatch to it. Other OPTION-NAMEs are 275b16253fSmrg# saved as a flag. 285b16253fSmrgm4_define([_LT_SET_OPTION], 295b16253fSmrg[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 305b16253fSmrgm4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 315b16253fSmrg _LT_MANGLE_DEFUN([$1], [$2]), 325b16253fSmrg [m4_warning([Unknown $1 option '$2'])])[]dnl 335b16253fSmrg]) 345b16253fSmrg 355b16253fSmrg 365b16253fSmrg# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 375b16253fSmrg# ------------------------------------------------------------ 385b16253fSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 395b16253fSmrgm4_define([_LT_IF_OPTION], 405b16253fSmrg[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 415b16253fSmrg 425b16253fSmrg 435b16253fSmrg# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 445b16253fSmrg# ------------------------------------------------------- 455b16253fSmrg# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 465b16253fSmrg# are set. 475b16253fSmrgm4_define([_LT_UNLESS_OPTIONS], 485b16253fSmrg[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 495b16253fSmrg [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 505b16253fSmrg [m4_define([$0_found])])])[]dnl 515b16253fSmrgm4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 525b16253fSmrg])[]dnl 535b16253fSmrg]) 545b16253fSmrg 555b16253fSmrg 565b16253fSmrg# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 575b16253fSmrg# ---------------------------------------- 585b16253fSmrg# OPTION-LIST is a space-separated list of Libtool options associated 595b16253fSmrg# with MACRO-NAME. If any OPTION has a matching handler declared with 605b16253fSmrg# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 615b16253fSmrg# the unknown option and exit. 625b16253fSmrgm4_defun([_LT_SET_OPTIONS], 635b16253fSmrg[# Set options 645b16253fSmrgm4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 655b16253fSmrg [_LT_SET_OPTION([$1], _LT_Option)]) 665b16253fSmrg 675b16253fSmrgm4_if([$1],[LT_INIT],[ 685b16253fSmrg dnl 695b16253fSmrg dnl Simply set some default values (i.e off) if boolean options were not 705b16253fSmrg dnl specified: 715b16253fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 725b16253fSmrg ]) 735b16253fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 745b16253fSmrg ]) 755b16253fSmrg dnl 765b16253fSmrg dnl If no reference was made to various pairs of opposing options, then 775b16253fSmrg dnl we run the default mode handler for the pair. For example, if neither 785b16253fSmrg dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 795b16253fSmrg dnl archives by default: 805b16253fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 815b16253fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 825b16253fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 835b16253fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 845b16253fSmrg [_LT_ENABLE_FAST_INSTALL]) 855b16253fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 865b16253fSmrg [_LT_WITH_AIX_SONAME([aix])]) 875b16253fSmrg ]) 885b16253fSmrg])# _LT_SET_OPTIONS 895b16253fSmrg 905b16253fSmrg 915b16253fSmrg## --------------------------------- ## 925b16253fSmrg## Macros to handle LT_INIT options. ## 935b16253fSmrg## --------------------------------- ## 945b16253fSmrg 955b16253fSmrg# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 965b16253fSmrg# ----------------------------------------- 975b16253fSmrgm4_define([_LT_MANGLE_DEFUN], 985b16253fSmrg[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 995b16253fSmrg 1005b16253fSmrg 1015b16253fSmrg# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 1025b16253fSmrg# ----------------------------------------------- 1035b16253fSmrgm4_define([LT_OPTION_DEFINE], 1045b16253fSmrg[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 1055b16253fSmrg])# LT_OPTION_DEFINE 1065b16253fSmrg 1075b16253fSmrg 1085b16253fSmrg# dlopen 1095b16253fSmrg# ------ 1105b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 1115b16253fSmrg]) 1125b16253fSmrg 1135b16253fSmrgAU_DEFUN([AC_LIBTOOL_DLOPEN], 1145b16253fSmrg[_LT_SET_OPTION([LT_INIT], [dlopen]) 1155b16253fSmrgAC_DIAGNOSE([obsolete], 1165b16253fSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 1175b16253fSmrgput the 'dlopen' option into LT_INIT's first parameter.]) 1185b16253fSmrg]) 1195b16253fSmrg 1205b16253fSmrgdnl aclocal-1.4 backwards compatibility: 1215b16253fSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 1225b16253fSmrg 1235b16253fSmrg 1245b16253fSmrg# win32-dll 1255b16253fSmrg# --------- 1265b16253fSmrg# Declare package support for building win32 dll's. 1275b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [win32-dll], 1285b16253fSmrg[enable_win32_dll=yes 1295b16253fSmrg 1305b16253fSmrgcase $host in 1315b16253fSmrg*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 1325b16253fSmrg AC_CHECK_TOOL(AS, as, false) 1335b16253fSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 1345b16253fSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 1355b16253fSmrg ;; 1365b16253fSmrgesac 1375b16253fSmrg 1385b16253fSmrgtest -z "$AS" && AS=as 1395b16253fSmrg_LT_DECL([], [AS], [1], [Assembler program])dnl 1405b16253fSmrg 1415b16253fSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 1425b16253fSmrg_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 1435b16253fSmrg 1445b16253fSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 1455b16253fSmrg_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 1465b16253fSmrg])# win32-dll 1475b16253fSmrg 1485b16253fSmrgAU_DEFUN([AC_LIBTOOL_WIN32_DLL], 1495b16253fSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1505b16253fSmrg_LT_SET_OPTION([LT_INIT], [win32-dll]) 1515b16253fSmrgAC_DIAGNOSE([obsolete], 1525b16253fSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 1535b16253fSmrgput the 'win32-dll' option into LT_INIT's first parameter.]) 1545b16253fSmrg]) 1555b16253fSmrg 1565b16253fSmrgdnl aclocal-1.4 backwards compatibility: 1575b16253fSmrgdnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 1585b16253fSmrg 1595b16253fSmrg 1605b16253fSmrg# _LT_ENABLE_SHARED([DEFAULT]) 1615b16253fSmrg# ---------------------------- 1625b16253fSmrg# implement the --enable-shared flag, and supports the 'shared' and 1635b16253fSmrg# 'disable-shared' LT_INIT options. 1645b16253fSmrg# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 1655b16253fSmrgm4_define([_LT_ENABLE_SHARED], 1665b16253fSmrg[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 1675b16253fSmrgAC_ARG_ENABLE([shared], 1685b16253fSmrg [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 1695b16253fSmrg [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 1705b16253fSmrg [p=${PACKAGE-default} 1715b16253fSmrg case $enableval in 1725b16253fSmrg yes) enable_shared=yes ;; 1735b16253fSmrg no) enable_shared=no ;; 1745b16253fSmrg *) 1755b16253fSmrg enable_shared=no 1765b16253fSmrg # Look at the argument we got. We use all the common list separators. 1775b16253fSmrg lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 1785b16253fSmrg for pkg in $enableval; do 1795b16253fSmrg IFS=$lt_save_ifs 1805b16253fSmrg if test "X$pkg" = "X$p"; then 1815b16253fSmrg enable_shared=yes 1825b16253fSmrg fi 1835b16253fSmrg done 1845b16253fSmrg IFS=$lt_save_ifs 1855b16253fSmrg ;; 1865b16253fSmrg esac], 1875b16253fSmrg [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 1885b16253fSmrg 1895b16253fSmrg _LT_DECL([build_libtool_libs], [enable_shared], [0], 1905b16253fSmrg [Whether or not to build shared libraries]) 1915b16253fSmrg])# _LT_ENABLE_SHARED 1925b16253fSmrg 1935b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 1945b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 1955b16253fSmrg 1965b16253fSmrg# Old names: 1975b16253fSmrgAC_DEFUN([AC_ENABLE_SHARED], 1985b16253fSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 1995b16253fSmrg]) 2005b16253fSmrg 2015b16253fSmrgAC_DEFUN([AC_DISABLE_SHARED], 2025b16253fSmrg[_LT_SET_OPTION([LT_INIT], [disable-shared]) 2035b16253fSmrg]) 2045b16253fSmrg 2055b16253fSmrgAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 2065b16253fSmrgAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 2075b16253fSmrg 2085b16253fSmrgdnl aclocal-1.4 backwards compatibility: 2095b16253fSmrgdnl AC_DEFUN([AM_ENABLE_SHARED], []) 2105b16253fSmrgdnl AC_DEFUN([AM_DISABLE_SHARED], []) 2115b16253fSmrg 2125b16253fSmrg 2135b16253fSmrg 2145b16253fSmrg# _LT_ENABLE_STATIC([DEFAULT]) 2155b16253fSmrg# ---------------------------- 2165b16253fSmrg# implement the --enable-static flag, and support the 'static' and 2175b16253fSmrg# 'disable-static' LT_INIT options. 2185b16253fSmrg# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 2195b16253fSmrgm4_define([_LT_ENABLE_STATIC], 2205b16253fSmrg[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 2215b16253fSmrgAC_ARG_ENABLE([static], 2225b16253fSmrg [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 2235b16253fSmrg [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 2245b16253fSmrg [p=${PACKAGE-default} 2255b16253fSmrg case $enableval in 2265b16253fSmrg yes) enable_static=yes ;; 2275b16253fSmrg no) enable_static=no ;; 2285b16253fSmrg *) 2295b16253fSmrg enable_static=no 2305b16253fSmrg # Look at the argument we got. We use all the common list separators. 2315b16253fSmrg lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 2325b16253fSmrg for pkg in $enableval; do 2335b16253fSmrg IFS=$lt_save_ifs 2345b16253fSmrg if test "X$pkg" = "X$p"; then 2355b16253fSmrg enable_static=yes 2365b16253fSmrg fi 2375b16253fSmrg done 2385b16253fSmrg IFS=$lt_save_ifs 2395b16253fSmrg ;; 2405b16253fSmrg esac], 2415b16253fSmrg [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 2425b16253fSmrg 2435b16253fSmrg _LT_DECL([build_old_libs], [enable_static], [0], 2445b16253fSmrg [Whether or not to build static libraries]) 2455b16253fSmrg])# _LT_ENABLE_STATIC 2465b16253fSmrg 2475b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 2485b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 2495b16253fSmrg 2505b16253fSmrg# Old names: 2515b16253fSmrgAC_DEFUN([AC_ENABLE_STATIC], 2525b16253fSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 2535b16253fSmrg]) 2545b16253fSmrg 2555b16253fSmrgAC_DEFUN([AC_DISABLE_STATIC], 2565b16253fSmrg[_LT_SET_OPTION([LT_INIT], [disable-static]) 2575b16253fSmrg]) 2585b16253fSmrg 2595b16253fSmrgAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 2605b16253fSmrgAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 2615b16253fSmrg 2625b16253fSmrgdnl aclocal-1.4 backwards compatibility: 2635b16253fSmrgdnl AC_DEFUN([AM_ENABLE_STATIC], []) 2645b16253fSmrgdnl AC_DEFUN([AM_DISABLE_STATIC], []) 2655b16253fSmrg 2665b16253fSmrg 2675b16253fSmrg 2685b16253fSmrg# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 2695b16253fSmrg# ---------------------------------- 2705b16253fSmrg# implement the --enable-fast-install flag, and support the 'fast-install' 2715b16253fSmrg# and 'disable-fast-install' LT_INIT options. 2725b16253fSmrg# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 2735b16253fSmrgm4_define([_LT_ENABLE_FAST_INSTALL], 2745b16253fSmrg[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 2755b16253fSmrgAC_ARG_ENABLE([fast-install], 2765b16253fSmrg [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 2775b16253fSmrg [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 2785b16253fSmrg [p=${PACKAGE-default} 2795b16253fSmrg case $enableval in 2805b16253fSmrg yes) enable_fast_install=yes ;; 2815b16253fSmrg no) enable_fast_install=no ;; 2825b16253fSmrg *) 2835b16253fSmrg enable_fast_install=no 2845b16253fSmrg # Look at the argument we got. We use all the common list separators. 2855b16253fSmrg lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 2865b16253fSmrg for pkg in $enableval; do 2875b16253fSmrg IFS=$lt_save_ifs 2885b16253fSmrg if test "X$pkg" = "X$p"; then 2895b16253fSmrg enable_fast_install=yes 2905b16253fSmrg fi 2915b16253fSmrg done 2925b16253fSmrg IFS=$lt_save_ifs 2935b16253fSmrg ;; 2945b16253fSmrg esac], 2955b16253fSmrg [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 2965b16253fSmrg 2975b16253fSmrg_LT_DECL([fast_install], [enable_fast_install], [0], 2985b16253fSmrg [Whether or not to optimize for fast installation])dnl 2995b16253fSmrg])# _LT_ENABLE_FAST_INSTALL 3005b16253fSmrg 3015b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 3025b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 3035b16253fSmrg 3045b16253fSmrg# Old names: 3055b16253fSmrgAU_DEFUN([AC_ENABLE_FAST_INSTALL], 3065b16253fSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 3075b16253fSmrgAC_DIAGNOSE([obsolete], 3085b16253fSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 3095b16253fSmrgthe 'fast-install' option into LT_INIT's first parameter.]) 3105b16253fSmrg]) 3115b16253fSmrg 3125b16253fSmrgAU_DEFUN([AC_DISABLE_FAST_INSTALL], 3135b16253fSmrg[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 3145b16253fSmrgAC_DIAGNOSE([obsolete], 3155b16253fSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 3165b16253fSmrgthe 'disable-fast-install' option into LT_INIT's first parameter.]) 3175b16253fSmrg]) 3185b16253fSmrg 3195b16253fSmrgdnl aclocal-1.4 backwards compatibility: 3205b16253fSmrgdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 3215b16253fSmrgdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 3225b16253fSmrg 3235b16253fSmrg 3245b16253fSmrg# _LT_WITH_AIX_SONAME([DEFAULT]) 3255b16253fSmrg# ---------------------------------- 3265b16253fSmrg# implement the --with-aix-soname flag, and support the `aix-soname=aix' 3275b16253fSmrg# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 3285b16253fSmrg# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 3295b16253fSmrgm4_define([_LT_WITH_AIX_SONAME], 3305b16253fSmrg[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 3315b16253fSmrgshared_archive_member_spec= 3325b16253fSmrgcase $host,$enable_shared in 3335b16253fSmrgpower*-*-aix[[5-9]]*,yes) 3345b16253fSmrg AC_MSG_CHECKING([which variant of shared library versioning to provide]) 3355b16253fSmrg AC_ARG_WITH([aix-soname], 3365b16253fSmrg [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 3375b16253fSmrg [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 3385b16253fSmrg [case $withval in 3395b16253fSmrg aix|svr4|both) 3405b16253fSmrg ;; 3415b16253fSmrg *) 3425b16253fSmrg AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 3435b16253fSmrg ;; 3445b16253fSmrg esac 3455b16253fSmrg lt_cv_with_aix_soname=$with_aix_soname], 3465b16253fSmrg [AC_CACHE_VAL([lt_cv_with_aix_soname], 3475b16253fSmrg [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 3485b16253fSmrg with_aix_soname=$lt_cv_with_aix_soname]) 3495b16253fSmrg AC_MSG_RESULT([$with_aix_soname]) 3505b16253fSmrg if test aix != "$with_aix_soname"; then 3515b16253fSmrg # For the AIX way of multilib, we name the shared archive member 3525b16253fSmrg # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 3535b16253fSmrg # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 3545b16253fSmrg # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 3555b16253fSmrg # the AIX toolchain works better with OBJECT_MODE set (default 32). 3565b16253fSmrg if test 64 = "${OBJECT_MODE-32}"; then 3575b16253fSmrg shared_archive_member_spec=shr_64 3585b16253fSmrg else 3595b16253fSmrg shared_archive_member_spec=shr 3605b16253fSmrg fi 3615b16253fSmrg fi 3625b16253fSmrg ;; 3635b16253fSmrg*) 3645b16253fSmrg with_aix_soname=aix 3655b16253fSmrg ;; 3665b16253fSmrgesac 3675b16253fSmrg 3685b16253fSmrg_LT_DECL([], [shared_archive_member_spec], [0], 3695b16253fSmrg [Shared archive member basename, for filename based shared library versioning on AIX])dnl 3705b16253fSmrg])# _LT_WITH_AIX_SONAME 3715b16253fSmrg 3725b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 3735b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 3745b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 3755b16253fSmrg 3765b16253fSmrg 3775b16253fSmrg# _LT_WITH_PIC([MODE]) 3785b16253fSmrg# -------------------- 3795b16253fSmrg# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 3805b16253fSmrg# LT_INIT options. 3815b16253fSmrg# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 3825b16253fSmrgm4_define([_LT_WITH_PIC], 3835b16253fSmrg[AC_ARG_WITH([pic], 3845b16253fSmrg [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 3855b16253fSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 3865b16253fSmrg [lt_p=${PACKAGE-default} 3875b16253fSmrg case $withval in 3885b16253fSmrg yes|no) pic_mode=$withval ;; 3895b16253fSmrg *) 3905b16253fSmrg pic_mode=default 3915b16253fSmrg # Look at the argument we got. We use all the common list separators. 3925b16253fSmrg lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3935b16253fSmrg for lt_pkg in $withval; do 3945b16253fSmrg IFS=$lt_save_ifs 3955b16253fSmrg if test "X$lt_pkg" = "X$lt_p"; then 3965b16253fSmrg pic_mode=yes 3975b16253fSmrg fi 3985b16253fSmrg done 3995b16253fSmrg IFS=$lt_save_ifs 4005b16253fSmrg ;; 4015b16253fSmrg esac], 4025b16253fSmrg [pic_mode=m4_default([$1], [default])]) 4035b16253fSmrg 4045b16253fSmrg_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 4055b16253fSmrg])# _LT_WITH_PIC 4065b16253fSmrg 4075b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 4085b16253fSmrgLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 4095b16253fSmrg 4105b16253fSmrg# Old name: 4115b16253fSmrgAU_DEFUN([AC_LIBTOOL_PICMODE], 4125b16253fSmrg[_LT_SET_OPTION([LT_INIT], [pic-only]) 4135b16253fSmrgAC_DIAGNOSE([obsolete], 4145b16253fSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 4155b16253fSmrgput the 'pic-only' option into LT_INIT's first parameter.]) 4165b16253fSmrg]) 4175b16253fSmrg 4185b16253fSmrgdnl aclocal-1.4 backwards compatibility: 4195b16253fSmrgdnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 4205b16253fSmrg 4215b16253fSmrg## ----------------- ## 4225b16253fSmrg## LTDL_INIT Options ## 4235b16253fSmrg## ----------------- ## 4245b16253fSmrg 4255b16253fSmrgm4_define([_LTDL_MODE], []) 4265b16253fSmrgLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 4275b16253fSmrg [m4_define([_LTDL_MODE], [nonrecursive])]) 4285b16253fSmrgLT_OPTION_DEFINE([LTDL_INIT], [recursive], 4295b16253fSmrg [m4_define([_LTDL_MODE], [recursive])]) 4305b16253fSmrgLT_OPTION_DEFINE([LTDL_INIT], [subproject], 4315b16253fSmrg [m4_define([_LTDL_MODE], [subproject])]) 4325b16253fSmrg 4335b16253fSmrgm4_define([_LTDL_TYPE], []) 4345b16253fSmrgLT_OPTION_DEFINE([LTDL_INIT], [installable], 4355b16253fSmrg [m4_define([_LTDL_TYPE], [installable])]) 4365b16253fSmrgLT_OPTION_DEFINE([LTDL_INIT], [convenience], 4375b16253fSmrg [m4_define([_LTDL_TYPE], [convenience])]) 438