2585
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2586
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
2587
## 2008 Free Software Foundation, Inc.
2588
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2590
## This file is free software; the Free Software Foundation gives
2591
## unlimited permission to copy and/or distribute it, with or without
2592
## modifications, as long as this notice is preserved.
2594
# serial 52 AC_PROG_LIBTOOL
2597
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2598
# -----------------------------------------------------------
2599
# If this macro is not defined by Autoconf, define it here.
2618
# _LT_AC_SYS_COMPILER
2619
# -------------------
2620
# _LT_AC_SYS_COMPILER
2623
# _LT_CC_BASENAME(CC)
2624
# -------------------
2625
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2629
# _LT_COMPILER_BOILERPLATE
2630
# ------------------------
2631
# Check for compiler boilerplate output or warnings with
2632
# the simple compiler test code.
2633
# _LT_COMPILER_BOILERPLATE
2636
# _LT_LINKER_BOILERPLATE
2637
# ----------------------
2638
# Check for linker boilerplate output or warnings with
2639
# the simple link test code.
2640
# _LT_LINKER_BOILERPLATE
2642
# _LT_REQUIRED_DARWIN_CHECKS
2643
# --------------------------
2644
# Check for some things on darwin
2647
# _LT_AC_SYS_LIBPATH_AIX
2648
# ----------------------
2649
# Links a minimal program and checks the executable
2650
# for the system default hardcoded library path. In most cases,
2651
# this is /usr/lib:/lib, but when the MPI compilers are used
2652
# the location of the communication and MPI libs are included too.
2653
# If we don't find anything, use the default library path according
2654
# to the aix ld manual.
2655
# _LT_AC_SYS_LIBPATH_AIX
2658
# _LT_AC_SHELL_INIT(ARG)
2659
# ----------------------
2663
# _LT_AC_PROG_ECHO_BACKSLASH
2664
# --------------------------
2665
# Add some code to the start of the generated configure script which
2666
# will find an echo command which doesn't interpret backslashes.
2667
# _LT_AC_PROG_ECHO_BACKSLASH
2675
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2676
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2677
# ----------------------------------------------------------------
2678
# Check whether the given compiler option works
2679
# AC_LIBTOOL_COMPILER_OPTION
2682
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2683
# [ACTION-SUCCESS], [ACTION-FAILURE])
2684
# ------------------------------------------------------------
2685
# Check whether the given compiler option works
2686
# AC_LIBTOOL_LINKER_OPTION
2689
# AC_LIBTOOL_SYS_MAX_CMD_LEN
2690
# --------------------------
2691
# AC_LIBTOOL_SYS_MAX_CMD_LEN
2694
# _LT_AC_CHECK_DLFCN
2695
# ------------------
2696
# _LT_AC_CHECK_DLFCN
2699
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2700
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2701
# ---------------------------------------------------------------------
2702
# _LT_AC_TRY_DLOPEN_SELF
2705
# AC_LIBTOOL_DLOPEN_SELF
2706
# ----------------------
2707
# AC_LIBTOOL_DLOPEN_SELF
2710
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2711
# ---------------------------------
2712
# Check to see if options -c and -o are simultaneously supported by compiler
2713
# AC_LIBTOOL_PROG_CC_C_O
2716
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2717
# -----------------------------------------
2718
# Check to see if we can do hard links to lock some files if needed
2719
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2727
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2728
# ----------------------------------------------
2729
# Check hardcoding attributes.
2730
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2733
# AC_LIBTOOL_SYS_LIB_STRIP
2734
# ------------------------
2735
# AC_LIBTOOL_SYS_LIB_STRIP
2738
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2739
# -----------------------------
2740
# PORTME Fill in your ld.so characteristics
2741
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2751
# enable checks for dlopen support
2755
# AC_LIBTOOL_WIN32_DLL
2756
# --------------------
2757
# declare package support for building win32 DLLs
2758
# AC_LIBTOOL_WIN32_DLL
2761
# AC_ENABLE_SHARED([DEFAULT])
2762
# ---------------------------
2763
# implement the --enable-shared flag
2764
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2770
# set the default shared flag to --disable-shared
2774
# AC_ENABLE_STATIC([DEFAULT])
2775
# ---------------------------
2776
# implement the --enable-static flag
2777
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2783
# set the default static flag to --disable-static
2787
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2788
# ---------------------------------
2789
# implement the --enable-fast-install flag
2790
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2791
# AC_ENABLE_FAST_INSTALL
2794
# AC_DISABLE_FAST_INSTALL
2795
# -----------------------
2796
# set the default to --disable-fast-install
2797
# AC_DISABLE_FAST_INSTALL
2800
# AC_LIBTOOL_PICMODE([MODE])
2801
# --------------------------
2802
# implement the --with-pic flag
2803
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2804
# AC_LIBTOOL_PICMODE
2809
# This is predefined starting with Autoconf 2.54, so this conditional
2810
# definition can be removed once we require Autoconf 2.54 or later.
2814
# AC_PATH_TOOL_PREFIX
2815
# -------------------
2816
# find a file program which can recognize shared library
2817
# AC_PATH_TOOL_PREFIX
2822
# find a file program which can recognize a shared library
2828
# find the pathname to the GNU or non-GNU linker
2837
# AC_PROG_LD_RELOAD_FLAG
2838
# ----------------------
2839
# find reload flag for linker
2840
# -- PORTME Some linkers may need a different reload flag.
2841
# AC_PROG_LD_RELOAD_FLAG
2844
# AC_DEPLIBS_CHECK_METHOD
2845
# -----------------------
2846
# how to check for library dependencies
2847
# -- PORTME fill in with the dynamic library characteristics
2848
# AC_DEPLIBS_CHECK_METHOD
2853
# find the pathname to a BSD-compatible name lister
2859
# check for math library
2863
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2864
# -----------------------------------
2865
# sets LIBLTDL to the link flags for the libltdl convenience library and
2866
# LTDLINCL to the include flags for the libltdl header and adds
2867
# --enable-ltdl-convenience to the configure arguments. Note that
2868
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2869
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2870
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2871
# (note the single quotes!). If your package is not flat and you're not
2872
# using automake, define top_builddir and top_srcdir appropriately in
2874
# AC_LIBLTDL_CONVENIENCE
2877
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2878
# -----------------------------------
2879
# sets LIBLTDL to the link flags for the libltdl installable library and
2880
# LTDLINCL to the include flags for the libltdl header and adds
2881
# --enable-ltdl-install to the configure arguments. Note that
2882
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2883
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2884
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2885
# '${top_srcdir}/' (note the single quotes!). If your package is not
2886
# flat and you're not using automake, define top_builddir and top_srcdir
2887
# appropriately in the Makefiles.
2888
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2889
# AC_LIBLTDL_INSTALLABLE
2894
# enable support for C++ libraries
2902
# _LT_AC_PROG_CXXCPP
2903
# ------------------
2904
# _LT_AC_PROG_CXXCPP
2908
# enable support for Fortran 77 libraries
2919
# enable support for GCJ libraries
2930
# enable support for Windows resource files
2934
# AC_LIBTOOL_LANG_C_CONFIG
2935
# ------------------------
2936
# Ensure that the configuration vars for the C compiler are
2937
# suitably defined. Those variables are subsequently used by
2938
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2940
# AC_LIBTOOL_LANG_C_CONFIG
2943
# AC_LIBTOOL_LANG_CXX_CONFIG
2944
# --------------------------
2945
# Ensure that the configuration vars for the C compiler are
2946
# suitably defined. Those variables are subsequently used by
2947
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2949
# AC_LIBTOOL_LANG_CXX_CONFIG
2951
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
2952
# ------------------------------------
2953
# Figure out "hidden" library dependencies from verbose
2954
# compiler output when linking a shared library.
2955
# Parse the compiler output and extract the necessary
2956
# objects, libraries and library flags.
2957
# AC_LIBTOOL_POSTDEP_PREDEP
2959
# AC_LIBTOOL_LANG_F77_CONFIG
2960
# --------------------------
2961
# Ensure that the configuration vars for the C compiler are
2962
# suitably defined. Those variables are subsequently used by
2963
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2965
# AC_LIBTOOL_LANG_F77_CONFIG
2968
# AC_LIBTOOL_LANG_GCJ_CONFIG
2969
# --------------------------
2970
# Ensure that the configuration vars for the C compiler are
2971
# suitably defined. Those variables are subsequently used by
2972
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2974
# AC_LIBTOOL_LANG_GCJ_CONFIG
2977
# AC_LIBTOOL_LANG_RC_CONFIG
2978
# -------------------------
2979
# Ensure that the configuration vars for the Windows resource compiler are
2980
# suitably defined. Those variables are subsequently used by
2981
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2983
# AC_LIBTOOL_LANG_RC_CONFIG
2986
# AC_LIBTOOL_CONFIG([TAGNAME])
2987
# ----------------------------
2988
# If TAGNAME is not passed, then create an initial libtool script
2989
# with a default configuration from the untagged config vars. Otherwise
2990
# add code to config.status for appending the configuration named by
2991
# TAGNAME from the matching tagged config vars.
2995
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
2996
# -------------------------------------------
2997
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
3000
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3001
# ---------------------------------
3002
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3005
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
3006
# ---------------------------------------
3010
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
3011
# ------------------------------------
3012
# See if the linker supports building shared libraries.
3013
# AC_LIBTOOL_PROG_LD_SHLIBS
3016
# _LT_AC_FILE_LTDLL_C
3017
# -------------------
3018
# Be careful that the start marker always follows a newline.
3019
# _LT_AC_FILE_LTDLL_C
3022
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
3023
# ---------------------------------
3036
# This is just to silence aclocal about the macro not being used
3044
# Cheap backport of AS_EXECUTABLE_P and required macros
3045
# from Autoconf 2.59; we should not use $as_executable_p directly.
3053
# Check whether a file is executable.
3056
############################################################
3057
# NOTE: This macro has been submitted for inclusion into #
3058
# GNU Autoconf as AC_PROG_SED. When it is available in #
3059
# a released version of Autoconf we should remove this #
3060
# macro and use it instead. #
3061
############################################################
3064
# Check for a fully-functional sed program, that truncates
3065
# as few characters as possible. Prefer GNU sed if found.
2586
3074
# Make sure we can run config.sub.
2587
3075
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||