Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Side by Side Diff: m4/libtool.m4

Issue 107243004: Updating Opus to release 1.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « m4/as-gcc-inline-assembly.m4 ('k') | m4/ltoptions.m4 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5 # Inc.
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18 [m4_warning([this file was generated for autoconf 2.68.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically `autoreconf'.]) ])
22
23 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
24 # 2 #
25 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software 4 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27 # Foundation, Inc. 5 # Foundation, Inc.
28 # Written by Gordon Matzigkeit, 1996 6 # Written by Gordon Matzigkeit, 1996
29 # 7 #
30 # This file is free software; the Free Software Foundation gives 8 # This file is free software; the Free Software Foundation gives
31 # unlimited permission to copy and/or distribute it, with or without 9 # unlimited permission to copy and/or distribute it, with or without
32 # modifications, as long as this notice is preserved. 10 # modifications, as long as this notice is preserved.
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 273 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
296 # `config.status' has no value for ac_aux_dir unless we are using Automake, 274 # `config.status' has no value for ac_aux_dir unless we are using Automake,
297 # so we pass a copy along to make sure it has a sensible value anyway. 275 # so we pass a copy along to make sure it has a sensible value anyway.
298 m4_defun([_LT_PROG_LTMAIN], 276 m4_defun([_LT_PROG_LTMAIN],
299 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 277 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
300 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 278 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
301 ltmain="$ac_aux_dir/ltmain.sh" 279 ltmain="$ac_aux_dir/ltmain.sh"
302 ])# _LT_PROG_LTMAIN 280 ])# _LT_PROG_LTMAIN
303 281
304 282
283 ## ------------------------------------- ##
284 ## Accumulate code for creating libtool. ##
285 ## ------------------------------------- ##
305 286
306 # So that we can recreate a full libtool script including additional 287 # So that we can recreate a full libtool script including additional
307 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 288 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
308 # in macros and then make a single call at the end using the `libtool' 289 # in macros and then make a single call at the end using the `libtool'
309 # label. 290 # label.
310 291
311 292
312 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 293 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
313 # ---------------------------------------- 294 # ----------------------------------------
314 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 295 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 # Add leading comment marks to the start of each line, and a trailing 329 # Add leading comment marks to the start of each line, and a trailing
349 # full-stop to the whole comment if one is not present already. 330 # full-stop to the whole comment if one is not present already.
350 m4_define([_LT_FORMAT_COMMENT], 331 m4_define([_LT_FORMAT_COMMENT],
351 [m4_ifval([$1], [ 332 [m4_ifval([$1], [
352 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 333 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
353 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 334 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
354 )]) 335 )])
355 336
356 337
357 338
339 ## ------------------------ ##
340 ## FIXME: Eliminate VARNAME ##
341 ## ------------------------ ##
358 342
359 343
360 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 344 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
361 # ------------------------------------------------------------------- 345 # -------------------------------------------------------------------
362 # CONFIGNAME is the name given to the value in the libtool script. 346 # CONFIGNAME is the name given to the value in the libtool script.
363 # VARNAME is the (base) name used in the configure script. 347 # VARNAME is the (base) name used in the configure script.
364 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on 348 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
365 # VARNAME. Any other value will be used directly. 349 # VARNAME. Any other value will be used directly.
366 m4_define([_LT_DECL], 350 m4_define([_LT_DECL],
367 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 351 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 m4_defun([_LT_LANG], 819 m4_defun([_LT_LANG],
836 [m4_ifdef([_LT_LANG_]$1[_enabled], [], 820 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
837 [LT_SUPPORTED_TAG([$1])dnl 821 [LT_SUPPORTED_TAG([$1])dnl
838 m4_append([_LT_TAGS], [$1 ])dnl 822 m4_append([_LT_TAGS], [$1 ])dnl
839 m4_define([_LT_LANG_]$1[_enabled], [])dnl 823 m4_define([_LT_LANG_]$1[_enabled], [])dnl
840 _LT_LANG_$1_CONFIG($1)])dnl 824 _LT_LANG_$1_CONFIG($1)])dnl
841 ])# _LT_LANG 825 ])# _LT_LANG
842 826
843 827
844 m4_ifndef([AC_PROG_GO], [ 828 m4_ifndef([AC_PROG_GO], [
829 ############################################################
845 # NOTE: This macro has been submitted for inclusion into # 830 # NOTE: This macro has been submitted for inclusion into #
846 # GNU Autoconf as AC_PROG_GO. When it is available in # 831 # GNU Autoconf as AC_PROG_GO. When it is available in #
847 # a released version of Autoconf we should remove this # 832 # a released version of Autoconf we should remove this #
848 # macro and use it instead. # 833 # macro and use it instead. #
834 ############################################################
849 m4_defun([AC_PROG_GO], 835 m4_defun([AC_PROG_GO],
850 [AC_LANG_PUSH(Go)dnl 836 [AC_LANG_PUSH(Go)dnl
851 AC_ARG_VAR([GOC], [Go compiler command])dnl 837 AC_ARG_VAR([GOC], [Go compiler command])dnl
852 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 838 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
853 _AC_ARG_VAR_LDFLAGS()dnl 839 _AC_ARG_VAR_LDFLAGS()dnl
854 AC_CHECK_TOOL(GOC, gccgo) 840 AC_CHECK_TOOL(GOC, gccgo)
855 if test -z "$GOC"; then 841 if test -z "$GOC"; then
856 if test -n "$ac_tool_prefix"; then 842 if test -n "$ac_tool_prefix"; then
857 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 843 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
858 fi 844 fi
(...skipping 4909 matching lines...) Expand 10 before | Expand all | Expand 10 after
5768 5754
5769 _LT_TAG_COMPILER 5755 _LT_TAG_COMPILER
5770 # Save the default compiler, since it gets overwritten when the other 5756 # Save the default compiler, since it gets overwritten when the other
5771 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 5757 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5772 compiler_DEFAULT=$CC 5758 compiler_DEFAULT=$CC
5773 5759
5774 # save warnings/boilerplate of simple test code 5760 # save warnings/boilerplate of simple test code
5775 _LT_COMPILER_BOILERPLATE 5761 _LT_COMPILER_BOILERPLATE
5776 _LT_LINKER_BOILERPLATE 5762 _LT_LINKER_BOILERPLATE
5777 5763
5764 ## CAVEAT EMPTOR:
5765 ## There is no encapsulation within the following macros, do not change
5766 ## the running order or otherwise move them around unless you know exactly
5767 ## what you are doing...
5778 if test -n "$compiler"; then 5768 if test -n "$compiler"; then
5779 _LT_COMPILER_NO_RTTI($1) 5769 _LT_COMPILER_NO_RTTI($1)
5780 _LT_COMPILER_PIC($1) 5770 _LT_COMPILER_PIC($1)
5781 _LT_COMPILER_C_O($1) 5771 _LT_COMPILER_C_O($1)
5782 _LT_COMPILER_FILE_LOCKS($1) 5772 _LT_COMPILER_FILE_LOCKS($1)
5783 _LT_LINKER_SHLIBS($1) 5773 _LT_LINKER_SHLIBS($1)
5784 _LT_SYS_DYNAMIC_LINKER($1) 5774 _LT_SYS_DYNAMIC_LINKER($1)
5785 _LT_LINKER_HARDCODE_LIBPATH($1) 5775 _LT_LINKER_HARDCODE_LIBPATH($1)
5786 LT_SYS_DLOPEN_SELF 5776 LT_SYS_DLOPEN_SELF
5787 _LT_CMD_STRIPLIB 5777 _LT_CMD_STRIPLIB
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
7477 _LT_TAGVAR(LD, $1)="$LD" 7467 _LT_TAGVAR(LD, $1)="$LD"
7478 _LT_CC_BASENAME([$compiler]) 7468 _LT_CC_BASENAME([$compiler])
7479 7469
7480 # GCJ did not exist at the time GCC didn't implicitly link libc in. 7470 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7481 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7471 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7482 7472
7483 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7473 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7484 _LT_TAGVAR(reload_flag, $1)=$reload_flag 7474 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7485 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7475 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7486 7476
7477 ## CAVEAT EMPTOR:
7478 ## There is no encapsulation within the following macros, do not change
7479 ## the running order or otherwise move them around unless you know exactly
7480 ## what you are doing...
7487 if test -n "$compiler"; then 7481 if test -n "$compiler"; then
7488 _LT_COMPILER_NO_RTTI($1) 7482 _LT_COMPILER_NO_RTTI($1)
7489 _LT_COMPILER_PIC($1) 7483 _LT_COMPILER_PIC($1)
7490 _LT_COMPILER_C_O($1) 7484 _LT_COMPILER_C_O($1)
7491 _LT_COMPILER_FILE_LOCKS($1) 7485 _LT_COMPILER_FILE_LOCKS($1)
7492 _LT_LINKER_SHLIBS($1) 7486 _LT_LINKER_SHLIBS($1)
7493 _LT_LINKER_HARDCODE_LIBPATH($1) 7487 _LT_LINKER_HARDCODE_LIBPATH($1)
7494 7488
7495 _LT_CONFIG($1) 7489 _LT_CONFIG($1)
7496 fi 7490 fi
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
7544 _LT_TAGVAR(LD, $1)="$LD" 7538 _LT_TAGVAR(LD, $1)="$LD"
7545 _LT_CC_BASENAME([$compiler]) 7539 _LT_CC_BASENAME([$compiler])
7546 7540
7547 # Go did not exist at the time GCC didn't implicitly link libc in. 7541 # Go did not exist at the time GCC didn't implicitly link libc in.
7548 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7542 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7549 7543
7550 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7544 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7551 _LT_TAGVAR(reload_flag, $1)=$reload_flag 7545 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7552 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7546 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7553 7547
7548 ## CAVEAT EMPTOR:
7549 ## There is no encapsulation within the following macros, do not change
7550 ## the running order or otherwise move them around unless you know exactly
7551 ## what you are doing...
7554 if test -n "$compiler"; then 7552 if test -n "$compiler"; then
7555 _LT_COMPILER_NO_RTTI($1) 7553 _LT_COMPILER_NO_RTTI($1)
7556 _LT_COMPILER_PIC($1) 7554 _LT_COMPILER_PIC($1)
7557 _LT_COMPILER_C_O($1) 7555 _LT_COMPILER_C_O($1)
7558 _LT_COMPILER_FILE_LOCKS($1) 7556 _LT_COMPILER_FILE_LOCKS($1)
7559 _LT_LINKER_SHLIBS($1) 7557 _LT_LINKER_SHLIBS($1)
7560 _LT_LINKER_HARDCODE_LIBPATH($1) 7558 _LT_LINKER_HARDCODE_LIBPATH($1)
7561 7559
7562 _LT_CONFIG($1) 7560 _LT_CONFIG($1)
7563 fi 7561 fi
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
7702 m4_defun([_LT_DECL_SED], 7700 m4_defun([_LT_DECL_SED],
7703 [AC_PROG_SED 7701 [AC_PROG_SED
7704 test -z "$SED" && SED=sed 7702 test -z "$SED" && SED=sed
7705 Xsed="$SED -e 1s/^X//" 7703 Xsed="$SED -e 1s/^X//"
7706 _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 7704 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7707 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 7705 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7708 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 7706 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7709 ])# _LT_DECL_SED 7707 ])# _LT_DECL_SED
7710 7708
7711 m4_ifndef([AC_PROG_SED], [ 7709 m4_ifndef([AC_PROG_SED], [
7710 ############################################################
7712 # NOTE: This macro has been submitted for inclusion into # 7711 # NOTE: This macro has been submitted for inclusion into #
7713 # GNU Autoconf as AC_PROG_SED. When it is available in # 7712 # GNU Autoconf as AC_PROG_SED. When it is available in #
7714 # a released version of Autoconf we should remove this # 7713 # a released version of Autoconf we should remove this #
7715 # macro and use it instead. # 7714 # macro and use it instead. #
7715 ############################################################
7716 7716
7717 m4_defun([AC_PROG_SED], 7717 m4_defun([AC_PROG_SED],
7718 [AC_MSG_CHECKING([for a sed that does not truncate output]) 7718 [AC_MSG_CHECKING([for a sed that does not truncate output])
7719 AC_CACHE_VAL(lt_cv_path_SED, 7719 AC_CACHE_VAL(lt_cv_path_SED,
7720 [# Loop through the user's path and test for sed and gsed. 7720 [# Loop through the user's path and test for sed and gsed.
7721 # Then use that list of sed's as ones to test for truncation. 7721 # Then use that list of sed's as ones to test for truncation.
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 for as_dir in $PATH 7723 for as_dir in $PATH
7724 do 7724 do
7725 IFS=$as_save_IFS 7725 IFS=$as_save_IFS
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
7977 ;; 7977 ;;
7978 esac 7978 esac
7979 ;; 7979 ;;
7980 esac 7980 esac
7981 ]) 7981 ])
7982 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7982 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7983 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 7983 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7984 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 7984 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7985 [0], [convert $build files to toolchain format])dnl 7985 [0], [convert $build files to toolchain format])dnl
7986 ])# _LT_PATH_CONVERSION_FUNCTIONS 7986 ])# _LT_PATH_CONVERSION_FUNCTIONS
7987
7988 # Helper functions for option handling. -*- Autoconf -*-
7989 #
7990 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7991 # Inc.
7992 # Written by Gary V. Vaughan, 2004
7993 #
7994 # This file is free software; the Free Software Foundation gives
7995 # unlimited permission to copy and/or distribute it, with or without
7996 # modifications, as long as this notice is preserved.
7997
7998 # serial 7 ltoptions.m4
7999
8000 # This is to help aclocal find these macros, as it can't see m4_define.
8001 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8002
8003
8004 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8005 # ------------------------------------------
8006 m4_define([_LT_MANGLE_OPTION],
8007 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8008
8009
8010 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8011 # ---------------------------------------
8012 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8013 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8014 # saved as a flag.
8015 m4_define([_LT_SET_OPTION],
8016 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8017 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8018 _LT_MANGLE_DEFUN([$1], [$2]),
8019 [m4_warning([Unknown $1 option `$2'])])[]dnl
8020 ])
8021
8022
8023 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8024 # ------------------------------------------------------------
8025 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8026 m4_define([_LT_IF_OPTION],
8027 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8028
8029
8030 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8031 # -------------------------------------------------------
8032 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8033 # are set.
8034 m4_define([_LT_UNLESS_OPTIONS],
8035 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8036 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8037 [m4_define([$0_found])])])[]dnl
8038 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8039 ])[]dnl
8040 ])
8041
8042
8043 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8044 # ----------------------------------------
8045 # OPTION-LIST is a space-separated list of Libtool options associated
8046 # with MACRO-NAME. If any OPTION has a matching handler declared with
8047 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8048 # the unknown option and exit.
8049 m4_defun([_LT_SET_OPTIONS],
8050 [# Set options
8051 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8052 [_LT_SET_OPTION([$1], _LT_Option)])
8053
8054 m4_if([$1],[LT_INIT],[
8055 dnl
8056 dnl Simply set some default values (i.e off) if boolean options were not
8057 dnl specified:
8058 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8059 ])
8060 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8061 ])
8062 dnl
8063 dnl If no reference was made to various pairs of opposing options, then
8064 dnl we run the default mode handler for the pair. For example, if neither
8065 dnl `shared' nor `disable-shared' was passed, we enable building of shared
8066 dnl archives by default:
8067 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8068 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8069 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8070 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8071 [_LT_ENABLE_FAST_INSTALL])
8072 ])
8073 ])# _LT_SET_OPTIONS
8074
8075
8076
8077 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8078 # -----------------------------------------
8079 m4_define([_LT_MANGLE_DEFUN],
8080 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8081
8082
8083 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8084 # -----------------------------------------------
8085 m4_define([LT_OPTION_DEFINE],
8086 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8087 ])# LT_OPTION_DEFINE
8088
8089
8090 # dlopen
8091 # ------
8092 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8093 ])
8094
8095 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8096 [_LT_SET_OPTION([LT_INIT], [dlopen])
8097 AC_DIAGNOSE([obsolete],
8098 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8099 put the `dlopen' option into LT_INIT's first parameter.])
8100 ])
8101
8102 dnl aclocal-1.4 backwards compatibility:
8103 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8104
8105
8106 # win32-dll
8107 # ---------
8108 # Declare package support for building win32 dll's.
8109 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8110 [enable_win32_dll=yes
8111
8112 case $host in
8113 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8114 AC_CHECK_TOOL(AS, as, false)
8115 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8116 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8117 ;;
8118 esac
8119
8120 test -z "$AS" && AS=as
8121 _LT_DECL([], [AS], [1], [Assembler program])dnl
8122
8123 test -z "$DLLTOOL" && DLLTOOL=dlltool
8124 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8125
8126 test -z "$OBJDUMP" && OBJDUMP=objdump
8127 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8128 ])# win32-dll
8129
8130 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8131 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8132 _LT_SET_OPTION([LT_INIT], [win32-dll])
8133 AC_DIAGNOSE([obsolete],
8134 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8135 put the `win32-dll' option into LT_INIT's first parameter.])
8136 ])
8137
8138 dnl aclocal-1.4 backwards compatibility:
8139 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8140
8141
8142 # _LT_ENABLE_SHARED([DEFAULT])
8143 # ----------------------------
8144 # implement the --enable-shared flag, and supports the `shared' and
8145 # `disable-shared' LT_INIT options.
8146 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8147 m4_define([_LT_ENABLE_SHARED],
8148 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8149 AC_ARG_ENABLE([shared],
8150 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8151 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8152 [p=${PACKAGE-default}
8153 case $enableval in
8154 yes) enable_shared=yes ;;
8155 no) enable_shared=no ;;
8156 *)
8157 enable_shared=no
8158 # Look at the argument we got. We use all the common list separators.
8159 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8160 for pkg in $enableval; do
8161 IFS="$lt_save_ifs"
8162 if test "X$pkg" = "X$p"; then
8163 enable_shared=yes
8164 fi
8165 done
8166 IFS="$lt_save_ifs"
8167 ;;
8168 esac],
8169 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8170
8171 _LT_DECL([build_libtool_libs], [enable_shared], [0],
8172 [Whether or not to build shared libraries])
8173 ])# _LT_ENABLE_SHARED
8174
8175 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8176 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8177
8178 # Old names:
8179 AC_DEFUN([AC_ENABLE_SHARED],
8180 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8181 ])
8182
8183 AC_DEFUN([AC_DISABLE_SHARED],
8184 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8185 ])
8186
8187 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8188 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8189
8190 dnl aclocal-1.4 backwards compatibility:
8191 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8192 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8193
8194
8195
8196 # _LT_ENABLE_STATIC([DEFAULT])
8197 # ----------------------------
8198 # implement the --enable-static flag, and support the `static' and
8199 # `disable-static' LT_INIT options.
8200 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8201 m4_define([_LT_ENABLE_STATIC],
8202 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8203 AC_ARG_ENABLE([static],
8204 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8205 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8206 [p=${PACKAGE-default}
8207 case $enableval in
8208 yes) enable_static=yes ;;
8209 no) enable_static=no ;;
8210 *)
8211 enable_static=no
8212 # Look at the argument we got. We use all the common list separators.
8213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8214 for pkg in $enableval; do
8215 IFS="$lt_save_ifs"
8216 if test "X$pkg" = "X$p"; then
8217 enable_static=yes
8218 fi
8219 done
8220 IFS="$lt_save_ifs"
8221 ;;
8222 esac],
8223 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8224
8225 _LT_DECL([build_old_libs], [enable_static], [0],
8226 [Whether or not to build static libraries])
8227 ])# _LT_ENABLE_STATIC
8228
8229 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8230 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8231
8232 # Old names:
8233 AC_DEFUN([AC_ENABLE_STATIC],
8234 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8235 ])
8236
8237 AC_DEFUN([AC_DISABLE_STATIC],
8238 [_LT_SET_OPTION([LT_INIT], [disable-static])
8239 ])
8240
8241 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8242 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8243
8244 dnl aclocal-1.4 backwards compatibility:
8245 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8246 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8247
8248
8249
8250 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8251 # ----------------------------------
8252 # implement the --enable-fast-install flag, and support the `fast-install'
8253 # and `disable-fast-install' LT_INIT options.
8254 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8255 m4_define([_LT_ENABLE_FAST_INSTALL],
8256 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8257 AC_ARG_ENABLE([fast-install],
8258 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8259 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT [@:>@])],
8260 [p=${PACKAGE-default}
8261 case $enableval in
8262 yes) enable_fast_install=yes ;;
8263 no) enable_fast_install=no ;;
8264 *)
8265 enable_fast_install=no
8266 # Look at the argument we got. We use all the common list separators.
8267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8268 for pkg in $enableval; do
8269 IFS="$lt_save_ifs"
8270 if test "X$pkg" = "X$p"; then
8271 enable_fast_install=yes
8272 fi
8273 done
8274 IFS="$lt_save_ifs"
8275 ;;
8276 esac],
8277 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8278
8279 _LT_DECL([fast_install], [enable_fast_install], [0],
8280 [Whether or not to optimize for fast installation])dnl
8281 ])# _LT_ENABLE_FAST_INSTALL
8282
8283 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8284 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no ])])
8285
8286 # Old names:
8287 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8288 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8289 AC_DIAGNOSE([obsolete],
8290 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8291 the `fast-install' option into LT_INIT's first parameter.])
8292 ])
8293
8294 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8295 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8296 AC_DIAGNOSE([obsolete],
8297 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8298 the `disable-fast-install' option into LT_INIT's first parameter.])
8299 ])
8300
8301 dnl aclocal-1.4 backwards compatibility:
8302 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8303 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8304
8305
8306 # _LT_WITH_PIC([MODE])
8307 # --------------------
8308 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
8309 # LT_INIT options.
8310 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8311 m4_define([_LT_WITH_PIC],
8312 [AC_ARG_WITH([pic],
8313 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8314 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8315 [lt_p=${PACKAGE-default}
8316 case $withval in
8317 yes|no) pic_mode=$withval ;;
8318 *)
8319 pic_mode=default
8320 # Look at the argument we got. We use all the common list separators.
8321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8322 for lt_pkg in $withval; do
8323 IFS="$lt_save_ifs"
8324 if test "X$lt_pkg" = "X$lt_p"; then
8325 pic_mode=yes
8326 fi
8327 done
8328 IFS="$lt_save_ifs"
8329 ;;
8330 esac],
8331 [pic_mode=default])
8332
8333 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8334
8335 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8336 ])# _LT_WITH_PIC
8337
8338 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8339 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8340
8341 # Old name:
8342 AU_DEFUN([AC_LIBTOOL_PICMODE],
8343 [_LT_SET_OPTION([LT_INIT], [pic-only])
8344 AC_DIAGNOSE([obsolete],
8345 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8346 put the `pic-only' option into LT_INIT's first parameter.])
8347 ])
8348
8349 dnl aclocal-1.4 backwards compatibility:
8350 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8351
8352
8353 m4_define([_LTDL_MODE], [])
8354 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8355 [m4_define([_LTDL_MODE], [nonrecursive])])
8356 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8357 [m4_define([_LTDL_MODE], [recursive])])
8358 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8359 [m4_define([_LTDL_MODE], [subproject])])
8360
8361 m4_define([_LTDL_TYPE], [])
8362 LT_OPTION_DEFINE([LTDL_INIT], [installable],
8363 [m4_define([_LTDL_TYPE], [installable])])
8364 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8365 [m4_define([_LTDL_TYPE], [convenience])])
8366
8367 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8368 #
8369 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8370 # Written by Gary V. Vaughan, 2004
8371 #
8372 # This file is free software; the Free Software Foundation gives
8373 # unlimited permission to copy and/or distribute it, with or without
8374 # modifications, as long as this notice is preserved.
8375
8376 # serial 6 ltsugar.m4
8377
8378 # This is to help aclocal find these macros, as it can't see m4_define.
8379 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8380
8381
8382 # lt_join(SEP, ARG1, [ARG2...])
8383 # -----------------------------
8384 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8385 # associated separator.
8386 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8387 # versions in m4sugar had bugs.
8388 m4_define([lt_join],
8389 [m4_if([$#], [1], [],
8390 [$#], [2], [[$2]],
8391 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8392 m4_define([_lt_join],
8393 [m4_if([$#$2], [2], [],
8394 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8395
8396
8397 # lt_car(LIST)
8398 # lt_cdr(LIST)
8399 # ------------
8400 # Manipulate m4 lists.
8401 # These macros are necessary as long as will still need to support
8402 # Autoconf-2.59 which quotes differently.
8403 m4_define([lt_car], [[$1]])
8404 m4_define([lt_cdr],
8405 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8406 [$#], 1, [],
8407 [m4_dquote(m4_shift($@))])])
8408 m4_define([lt_unquote], $1)
8409
8410
8411 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8412 # ------------------------------------------
8413 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8414 # Note that neither SEPARATOR nor STRING are expanded; they are appended
8415 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8416 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8417 # than defined and empty).
8418 #
8419 # This macro is needed until we can rely on Autoconf 2.62, since earlier
8420 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8421 m4_define([lt_append],
8422 [m4_define([$1],
8423 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8424
8425
8426
8427 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8428 # ----------------------------------------------------------
8429 # Produce a SEP delimited list of all paired combinations of elements of
8430 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8431 # has the form PREFIXmINFIXSUFFIXn.
8432 # Needed until we can rely on m4_combine added in Autoconf 2.62.
8433 m4_define([lt_combine],
8434 [m4_if(m4_eval([$# > 3]), [1],
8435 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8436 [[m4_foreach([_Lt_prefix], [$2],
8437 [m4_foreach([_Lt_suffix],
8438 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8439 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8440
8441
8442 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8443 # -----------------------------------------------------------------------
8444 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8445 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8446 m4_define([lt_if_append_uniq],
8447 [m4_ifdef([$1],
8448 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8449 [lt_append([$1], [$2], [$3])$4],
8450 [$5])],
8451 [lt_append([$1], [$2], [$3])$4])])
8452
8453
8454 # lt_dict_add(DICT, KEY, VALUE)
8455 # -----------------------------
8456 m4_define([lt_dict_add],
8457 [m4_define([$1($2)], [$3])])
8458
8459
8460 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8461 # --------------------------------------------
8462 m4_define([lt_dict_add_subkey],
8463 [m4_define([$1($2:$3)], [$4])])
8464
8465
8466 # lt_dict_fetch(DICT, KEY, [SUBKEY])
8467 # ----------------------------------
8468 m4_define([lt_dict_fetch],
8469 [m4_ifval([$3],
8470 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8471 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8472
8473
8474 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8475 # -----------------------------------------------------------------
8476 m4_define([lt_if_dict_fetch],
8477 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8478 [$5],
8479 [$6])])
8480
8481
8482 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8483 # --------------------------------------------------------------
8484 m4_define([lt_dict_filter],
8485 [m4_if([$5], [], [],
8486 [lt_join(m4_quote(m4_default([$4], [[, ]])),
8487 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shift n(4, $@)]),
8488 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])]) ))))])[]dnl
8489 ])
8490
8491 # ltversion.m4 -- version numbers -*- Autoconf -*-
8492 #
8493 # Copyright (C) 2004 Free Software Foundation, Inc.
8494 # Written by Scott James Remnant, 2004
8495 #
8496 # This file is free software; the Free Software Foundation gives
8497 # unlimited permission to copy and/or distribute it, with or without
8498 # modifications, as long as this notice is preserved.
8499
8500 # @configure_input@
8501
8502 # serial 3337 ltversion.m4
8503 # This file is part of GNU Libtool
8504
8505 m4_define([LT_PACKAGE_VERSION], [2.4.2])
8506 m4_define([LT_PACKAGE_REVISION], [1.3337])
8507
8508 AC_DEFUN([LTVERSION_VERSION],
8509 [macro_version='2.4.2'
8510 macro_revision='1.3337'
8511 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8512 _LT_DECL(, macro_revision, 0)
8513 ])
8514
8515 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8516 #
8517 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8518 # Written by Scott James Remnant, 2004.
8519 #
8520 # This file is free software; the Free Software Foundation gives
8521 # unlimited permission to copy and/or distribute it, with or without
8522 # modifications, as long as this notice is preserved.
8523
8524 # serial 5 lt~obsolete.m4
8525
8526 # These exist entirely to fool aclocal when bootstrapping libtool.
8527 #
8528 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8529 # which have later been changed to m4_define as they aren't part of the
8530 # exported API, or moved to Autoconf or Automake where they belong.
8531 #
8532 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8533 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8534 # using a macro with the same name in our local m4/libtool.m4 it'll
8535 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8536 # and doesn't know about Autoconf macros at all.)
8537 #
8538 # So we provide this file, which has a silly filename so it's always
8539 # included after everything else. This provides aclocal with the
8540 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8541 # because those macros already exist, or will be overwritten later.
8542 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8543 #
8544 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8545 # Yes, that means every name once taken will need to remain here until
8546 # we give up compatibility with versions before 1.7, at which point
8547 # we need to keep only those names which we still refer to.
8548
8549 # This is to help aclocal find these macros, as it can't see m4_define.
8550 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8551
8552 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8553 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8554 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])] )
8555 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8556 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8557 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8558 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8559 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8560 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8561 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8562 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8563 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])] )
8564 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8565 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8566 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_ LOCKS])])
8567 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8568 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8569 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_H ARDCODE_LIBPATH])])
8570 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8571 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8572 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8573 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8574 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8575 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILE R_NO_RTTI])])
8576 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_ SYMBOL_PIPE])])
8577 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PI C])])
8578 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8579 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8580 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8581 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8582 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8583 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8584 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8585 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8586 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8587 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8588 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMI C_LINKER])])
8589 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8590 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8591 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8592 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8593 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8594 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8595 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8596 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])] )
8597 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8598 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])] )
8599 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8600 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])] )
8601 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8602 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8603 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8604 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8605 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8606 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])] )
8607 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8608 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])] )
8609 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8610 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8611 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8612 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
8613
8614 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
8615 # Foundation, Inc.
8616 #
8617 # This file is free software; the Free Software Foundation
8618 # gives unlimited permission to copy and/or distribute it,
8619 # with or without modifications, as long as this notice is preserved.
8620
8621 # serial 1
8622
8623 # AM_AUTOMAKE_VERSION(VERSION)
8624 # ----------------------------
8625 # Automake X.Y traces this macro to ensure aclocal.m4 has been
8626 # generated from the m4 files accompanying Automake X.Y.
8627 # (This private macro should not be called outside this file.)
8628 AC_DEFUN([AM_AUTOMAKE_VERSION],
8629 [am__api_version='1.11'
8630 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8631 dnl require some minimum version. Point them to the right macro.
8632 m4_if([$1], [1.11.6], [],
8633 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8634 ])
8635
8636 # _AM_AUTOCONF_VERSION(VERSION)
8637 # -----------------------------
8638 # aclocal traces this macro to find the Autoconf version.
8639 # This is a private macro too. Using m4_define simplifies
8640 # the logic in aclocal, which can simply ignore this definition.
8641 m4_define([_AM_AUTOCONF_VERSION], [])
8642
8643 # AM_SET_CURRENT_AUTOMAKE_VERSION
8644 # -------------------------------
8645 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8646 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8647 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8648 [AM_AUTOMAKE_VERSION([1.11.6])dnl
8649 m4_ifndef([AC_AUTOCONF_VERSION],
8650 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8651 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8652
8653 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8654
8655 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8656 #
8657 # This file is free software; the Free Software Foundation
8658 # gives unlimited permission to copy and/or distribute it,
8659 # with or without modifications, as long as this notice is preserved.
8660
8661 # serial 1
8662
8663 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8664 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8665 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8666 #
8667 # Of course, Automake must honor this variable whenever it calls a
8668 # tool from the auxiliary directory. The problem is that $srcdir (and
8669 # therefore $ac_aux_dir as well) can be either absolute or relative,
8670 # depending on how configure is run. This is pretty annoying, since
8671 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
8672 # source directory, any form will work fine, but in subdirectories a
8673 # relative path needs to be adjusted first.
8674 #
8675 # $ac_aux_dir/missing
8676 # fails when called from a subdirectory if $ac_aux_dir is relative
8677 # $top_srcdir/$ac_aux_dir/missing
8678 # fails if $ac_aux_dir is absolute,
8679 # fails when called from a subdirectory in a VPATH build with
8680 # a relative $ac_aux_dir
8681 #
8682 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8683 # are both prefixed by $srcdir. In an in-source build this is usually
8684 # harmless because $srcdir is `.', but things will broke when you
8685 # start a VPATH build or use an absolute $srcdir.
8686 #
8687 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8688 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8689 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8690 # and then we would define $MISSING as
8691 # MISSING="\${SHELL} $am_aux_dir/missing"
8692 # This will work as long as MISSING is not called from configure, because
8693 # unfortunately $(top_srcdir) has no meaning in configure.
8694 # However there are other variables, like CC, which are often used in
8695 # configure, and could therefore not use this "fixed" $ac_aux_dir.
8696 #
8697 # Another solution, used here, is to always expand $ac_aux_dir to an
8698 # absolute PATH. The drawback is that using absolute paths prevent a
8699 # configured tree to be moved without reconfiguration.
8700
8701 AC_DEFUN([AM_AUX_DIR_EXPAND],
8702 [dnl Rely on autoconf to set up CDPATH properly.
8703 AC_PREREQ([2.50])dnl
8704 # expand $ac_aux_dir to an absolute path
8705 am_aux_dir=`cd $ac_aux_dir && pwd`
8706 ])
8707
8708 # AM_CONDITIONAL -*- Autoconf -*-
8709
8710 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8711 # Free Software Foundation, Inc.
8712 #
8713 # This file is free software; the Free Software Foundation
8714 # gives unlimited permission to copy and/or distribute it,
8715 # with or without modifications, as long as this notice is preserved.
8716
8717 # serial 9
8718
8719 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8720 # -------------------------------------
8721 # Define a conditional.
8722 AC_DEFUN([AM_CONDITIONAL],
8723 [AC_PREREQ(2.52)dnl
8724 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8725 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8726 AC_SUBST([$1_TRUE])dnl
8727 AC_SUBST([$1_FALSE])dnl
8728 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8729 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
8730 m4_define([_AM_COND_VALUE_$1], [$2])dnl
8731 if $2; then
8732 $1_TRUE=
8733 $1_FALSE='#'
8734 else
8735 $1_TRUE='#'
8736 $1_FALSE=
8737 fi
8738 AC_CONFIG_COMMANDS_PRE(
8739 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8740 AC_MSG_ERROR([[conditional "$1" was never defined.
8741 Usually this means the macro was only invoked conditionally.]])
8742 fi])])
8743
8744 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
8745 # 2010, 2011 Free Software Foundation, Inc.
8746 #
8747 # This file is free software; the Free Software Foundation
8748 # gives unlimited permission to copy and/or distribute it,
8749 # with or without modifications, as long as this notice is preserved.
8750
8751 # serial 12
8752
8753 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8754 # written in clear, in which case automake, when reading aclocal.m4,
8755 # will think it sees a *use*, and therefore will trigger all it's
8756 # C support machinery. Also note that it means that autoscan, seeing
8757 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8758
8759
8760 # _AM_DEPENDENCIES(NAME)
8761 # ----------------------
8762 # See how the compiler implements dependency checking.
8763 # NAME is "CC", "CXX", "GCJ", or "OBJC".
8764 # We try a few techniques and use that to set a single cache variable.
8765 #
8766 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8767 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8768 # dependency, and given that the user is not expected to run this macro,
8769 # just rely on AC_PROG_CC.
8770 AC_DEFUN([_AM_DEPENDENCIES],
8771 [AC_REQUIRE([AM_SET_DEPDIR])dnl
8772 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8773 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8774 AC_REQUIRE([AM_DEP_TRACK])dnl
8775
8776 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8777 [$1], CXX, [depcc="$CXX" am_compiler_list=],
8778 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8779 [$1], UPC, [depcc="$UPC" am_compiler_list=],
8780 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8781 [depcc="$$1" am_compiler_list=])
8782
8783 AC_CACHE_CHECK([dependency style of $depcc],
8784 [am_cv_$1_dependencies_compiler_type],
8785 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8786 # We make a subdir and do the tests there. Otherwise we can end up
8787 # making bogus files that we don't know about and never remove. For
8788 # instance it was reported that on HP-UX the gcc test will end up
8789 # making a dummy file named `D' -- because `-MD' means `put the output
8790 # in D'.
8791 rm -rf conftest.dir
8792 mkdir conftest.dir
8793 # Copy depcomp to subdir because otherwise we won't find it if we're
8794 # using a relative directory.
8795 cp "$am_depcomp" conftest.dir
8796 cd conftest.dir
8797 # We will build objects and dependencies in a subdirectory because
8798 # it helps to detect inapplicable dependency modes. For instance
8799 # both Tru64's cc and ICC support -MD to output dependencies as a
8800 # side effect of compilation, but ICC will put the dependencies in
8801 # the current directory while Tru64 will put them in the object
8802 # directory.
8803 mkdir sub
8804
8805 am_cv_$1_dependencies_compiler_type=none
8806 if test "$am_compiler_list" = ""; then
8807 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8808 fi
8809 am__universal=false
8810 m4_case([$1], [CC],
8811 [case " $depcc " in #(
8812 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8813 esac],
8814 [CXX],
8815 [case " $depcc " in #(
8816 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8817 esac])
8818
8819 for depmode in $am_compiler_list; do
8820 # Setup a source with many dependencies, because some compilers
8821 # like to wrap large dependency lists on column 80 (with \), and
8822 # we should not choose a depcomp mode which is confused by this.
8823 #
8824 # We need to recreate these files for each test, as the compiler may
8825 # overwrite some of them when testing with obscure command lines.
8826 # This happens at least with the AIX C compiler.
8827 : > sub/conftest.c
8828 for i in 1 2 3 4 5 6; do
8829 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8830 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8831 # Solaris 8's {/usr,}/bin/sh.
8832 touch sub/conftst$i.h
8833 done
8834 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8835
8836 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8837 # mode. It turns out that the SunPro C++ compiler does not properly
8838 # handle `-M -o', and we need to detect this. Also, some Intel
8839 # versions had trouble with output in subdirs
8840 am__obj=sub/conftest.${OBJEXT-o}
8841 am__minus_obj="-o $am__obj"
8842 case $depmode in
8843 gcc)
8844 # This depmode causes a compiler race in universal mode.
8845 test "$am__universal" = false || continue
8846 ;;
8847 nosideeffect)
8848 # after this tag, mechanisms are not by side-effect, so they'll
8849 # only be used when explicitly requested
8850 if test "x$enable_dependency_tracking" = xyes; then
8851 continue
8852 else
8853 break
8854 fi
8855 ;;
8856 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8857 # This compiler won't grok `-c -o', but also, the minuso test has
8858 # not run yet. These depmodes are late enough in the game, and
8859 # so weak that their functioning should not be impacted.
8860 am__obj=conftest.${OBJEXT-o}
8861 am__minus_obj=
8862 ;;
8863 none) break ;;
8864 esac
8865 if depmode=$depmode \
8866 source=sub/conftest.c object=$am__obj \
8867 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8868 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8869 >/dev/null 2>conftest.err &&
8870 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8871 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8872 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8873 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8874 # icc doesn't choke on unknown options, it will just issue warnings
8875 # or remarks (even with -Werror). So we grep stderr for any message
8876 # that says an option was ignored or not supported.
8877 # When given -MP, icc 7.0 and 7.1 complain thusly:
8878 # icc: Command line warning: ignoring option '-M'; no argument required
8879 # The diagnosis changed in icc 8.0:
8880 # icc: Command line remark: option '-MP' not supported
8881 if (grep 'ignoring option' conftest.err ||
8882 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8883 am_cv_$1_dependencies_compiler_type=$depmode
8884 break
8885 fi
8886 fi
8887 done
8888
8889 cd ..
8890 rm -rf conftest.dir
8891 else
8892 am_cv_$1_dependencies_compiler_type=none
8893 fi
8894 ])
8895 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
8896 AM_CONDITIONAL([am__fastdep$1], [
8897 test "x$enable_dependency_tracking" != xno \
8898 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
8899 ])
8900
8901
8902 # AM_SET_DEPDIR
8903 # -------------
8904 # Choose a directory name for dependency files.
8905 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
8906 AC_DEFUN([AM_SET_DEPDIR],
8907 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8908 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
8909 ])
8910
8911
8912 # AM_DEP_TRACK
8913 # ------------
8914 AC_DEFUN([AM_DEP_TRACK],
8915 [AC_ARG_ENABLE(dependency-tracking,
8916 [ --disable-dependency-tracking speeds up one-time build
8917 --enable-dependency-tracking do not reject slow dependency extractors])
8918 if test "x$enable_dependency_tracking" != xno; then
8919 am_depcomp="$ac_aux_dir/depcomp"
8920 AMDEPBACKSLASH='\'
8921 am__nodep='_no'
8922 fi
8923 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8924 AC_SUBST([AMDEPBACKSLASH])dnl
8925 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
8926 AC_SUBST([am__nodep])dnl
8927 _AM_SUBST_NOTMAKE([am__nodep])dnl
8928 ])
8929
8930 # Generate code to set up dependency tracking. -*- Autoconf -*-
8931
8932 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8933 # Free Software Foundation, Inc.
8934 #
8935 # This file is free software; the Free Software Foundation
8936 # gives unlimited permission to copy and/or distribute it,
8937 # with or without modifications, as long as this notice is preserved.
8938
8939 #serial 5
8940
8941 # _AM_OUTPUT_DEPENDENCY_COMMANDS
8942 # ------------------------------
8943 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8944 [{
8945 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8946 # are listed without --file. Let's play safe and only enable the eval
8947 # if we detect the quoting.
8948 case $CONFIG_FILES in
8949 *\'*) eval set x "$CONFIG_FILES" ;;
8950 *) set x $CONFIG_FILES ;;
8951 esac
8952 shift
8953 for mf
8954 do
8955 # Strip MF so we end up with the name of the file.
8956 mf=`echo "$mf" | sed -e 's/:.*$//'`
8957 # Check whether this is an Automake generated Makefile or not.
8958 # We used to match only the files named `Makefile.in', but
8959 # some people rename them; so instead we look at the file content.
8960 # Grep'ing the first line is not enough: some people post-process
8961 # each Makefile.in and add a new line on top of each file to say so.
8962 # Grep'ing the whole file is not good either: AIX grep has a line
8963 # limit of 2048, but all sed's we know have understand at least 4000.
8964 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1 ; then
8965 dirpart=`AS_DIRNAME("$mf")`
8966 else
8967 continue
8968 fi
8969 # Extract the definition of DEPDIR, am__include, and am__quote
8970 # from the Makefile without running `make'.
8971 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8972 test -z "$DEPDIR" && continue
8973 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8974 test -z "am__include" && continue
8975 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8976 # When using ansi2knr, U may be empty or an underscore; expand it
8977 U=`sed -n 's/^U = //p' < "$mf"`
8978 # Find all dependency output files, they are included files with
8979 # $(DEPDIR) in their names. We invoke sed twice because it is the
8980 # simplest approach to changing $(DEPDIR) to its actual value in the
8981 # expansion.
8982 for file in `sed -n "
8983 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8984 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8985 # Make sure the directory exists.
8986 test -f "$dirpart/$file" && continue
8987 fdir=`AS_DIRNAME(["$file"])`
8988 AS_MKDIR_P([$dirpart/$fdir])
8989 # echo "creating $dirpart/$file"
8990 echo '# dummy' > "$dirpart/$file"
8991 done
8992 done
8993 }
8994 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
8995
8996
8997 # AM_OUTPUT_DEPENDENCY_COMMANDS
8998 # -----------------------------
8999 # This macro should only be invoked once -- use via AC_REQUIRE.
9000 #
9001 # This code is only required when automatic dependency tracking
9002 # is enabled. FIXME. This creates each `.P' file that we will
9003 # need in order to bootstrap the dependency handling code.
9004 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9005 [AC_CONFIG_COMMANDS([depfiles],
9006 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9007 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9008 ])
9009
9010 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9011 # Free Software Foundation, Inc.
9012 #
9013 # This file is free software; the Free Software Foundation
9014 # gives unlimited permission to copy and/or distribute it,
9015 # with or without modifications, as long as this notice is preserved.
9016
9017 # serial 8
9018
9019 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
9020 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9021
9022 # Do all the work for Automake. -*- Autoconf -*-
9023
9024 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9025 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9026 #
9027 # This file is free software; the Free Software Foundation
9028 # gives unlimited permission to copy and/or distribute it,
9029 # with or without modifications, as long as this notice is preserved.
9030
9031 # serial 16
9032
9033 # This macro actually does too much. Some checks are only needed if
9034 # your package does certain things. But this isn't really a big deal.
9035
9036 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9037 # AM_INIT_AUTOMAKE([OPTIONS])
9038 # -----------------------------------------------
9039 # The call with PACKAGE and VERSION arguments is the old style
9040 # call (pre autoconf-2.50), which is being phased out. PACKAGE
9041 # and VERSION should now be passed to AC_INIT and removed from
9042 # the call to AM_INIT_AUTOMAKE.
9043 # We support both call styles for the transition. After
9044 # the next Automake release, Autoconf can make the AC_INIT
9045 # arguments mandatory, and then we can depend on a new Autoconf
9046 # release and drop the old call support.
9047 AC_DEFUN([AM_INIT_AUTOMAKE],
9048 [AC_PREREQ([2.62])dnl
9049 dnl Autoconf wants to disallow AM_ names. We explicitly allow
9050 dnl the ones we care about.
9051 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9052 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9053 AC_REQUIRE([AC_PROG_INSTALL])dnl
9054 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9055 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9056 # is not polluted with repeated "-I."
9057 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9058 # test to see if srcdir already configured
9059 if test -f $srcdir/config.status; then
9060 AC_MSG_ERROR([source directory already configured; run "make distclean" ther e first])
9061 fi
9062 fi
9063
9064 # test whether we have cygpath
9065 if test -z "$CYGPATH_W"; then
9066 if (cygpath --version) >/dev/null 2>/dev/null; then
9067 CYGPATH_W='cygpath -w'
9068 else
9069 CYGPATH_W=echo
9070 fi
9071 fi
9072 AC_SUBST([CYGPATH_W])
9073
9074 # Define the identity of the package.
9075 dnl Distinguish between old-style and new-style calls.
9076 m4_ifval([$2],
9077 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9078 AC_SUBST([PACKAGE], [$1])dnl
9079 AC_SUBST([VERSION], [$2])],
9080 [_AM_SET_OPTIONS([$1])dnl
9081 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9082 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9083 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9084 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9085 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9086
9087 _AM_IF_OPTION([no-define],,
9088 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9089 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9090
9091 # Some tools Automake needs.
9092 AC_REQUIRE([AM_SANITY_CHECK])dnl
9093 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9094 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9095 AM_MISSING_PROG(AUTOCONF, autoconf)
9096 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9097 AM_MISSING_PROG(AUTOHEADER, autoheader)
9098 AM_MISSING_PROG(MAKEINFO, makeinfo)
9099 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9100 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9101 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9102 # We need awk for the "check" target. The system "awk" is bad on
9103 # some platforms.
9104 AC_REQUIRE([AC_PROG_AWK])dnl
9105 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9106 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9107 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9108 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9109 [_AM_PROG_TAR([v7])])])
9110 _AM_IF_OPTION([no-dependencies],,
9111 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9112 [_AM_DEPENDENCIES(CC)],
9113 [define([AC_PROG_CC],
9114 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9115 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9116 [_AM_DEPENDENCIES(CXX)],
9117 [define([AC_PROG_CXX],
9118 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9119 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9120 [_AM_DEPENDENCIES(OBJC)],
9121 [define([AC_PROG_OBJC],
9122 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9123 ])
9124 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9125 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9126 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9127 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9128 AC_CONFIG_COMMANDS_PRE(dnl
9129 [m4_provide_if([_AM_COMPILER_EXEEXT],
9130 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9131 ])
9132
9133 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9134 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9135 dnl mangled by Autoconf and run in a shell conditional statement.
9136 m4_define([_AC_COMPILER_EXEEXT],
9137 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9138
9139
9140 # When config.status generates a header, we must update the stamp-h file.
9141 # This file resides in the same directory as the config header
9142 # that is generated. The stamp files are numbered to have different names.
9143
9144 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9145 # loop where config.status creates the headers, so we can generate
9146 # our stamp files there.
9147 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9148 [# Compute $1's index in $config_headers.
9149 _am_arg=$1
9150 _am_stamp_count=1
9151 for _am_header in $config_headers :; do
9152 case $_am_header in
9153 $_am_arg | $_am_arg:* )
9154 break ;;
9155 * )
9156 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9157 esac
9158 done
9159 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_co unt])
9160
9161 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
9162 # Inc.
9163 #
9164 # This file is free software; the Free Software Foundation
9165 # gives unlimited permission to copy and/or distribute it,
9166 # with or without modifications, as long as this notice is preserved.
9167
9168 # serial 1
9169
9170 # AM_PROG_INSTALL_SH
9171 # ------------------
9172 # Define $install_sh.
9173 AC_DEFUN([AM_PROG_INSTALL_SH],
9174 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9175 if test x"${install_sh}" != xset; then
9176 case $am_aux_dir in
9177 *\ * | *\ *)
9178 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9179 *)
9180 install_sh="\${SHELL} $am_aux_dir/install-sh"
9181 esac
9182 fi
9183 AC_SUBST(install_sh)])
9184
9185 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9186 #
9187 # This file is free software; the Free Software Foundation
9188 # gives unlimited permission to copy and/or distribute it,
9189 # with or without modifications, as long as this notice is preserved.
9190
9191 # serial 2
9192
9193 # Check whether the underlying file-system supports filenames
9194 # with a leading dot. For instance MS-DOS doesn't.
9195 AC_DEFUN([AM_SET_LEADING_DOT],
9196 [rm -rf .tst 2>/dev/null
9197 mkdir .tst 2>/dev/null
9198 if test -d .tst; then
9199 am__leading_dot=.
9200 else
9201 am__leading_dot=_
9202 fi
9203 rmdir .tst 2>/dev/null
9204 AC_SUBST([am__leading_dot])])
9205
9206 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9207 # From Jim Meyering
9208
9209 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
9210 # 2011 Free Software Foundation, Inc.
9211 #
9212 # This file is free software; the Free Software Foundation
9213 # gives unlimited permission to copy and/or distribute it,
9214 # with or without modifications, as long as this notice is preserved.
9215
9216 # serial 5
9217
9218 # AM_MAINTAINER_MODE([DEFAULT-MODE])
9219 # ----------------------------------
9220 # Control maintainer-specific portions of Makefiles.
9221 # Default is to disable them, unless `enable' is passed literally.
9222 # For symmetry, `disable' may be passed as well. Anyway, the user
9223 # can override the default with the --enable/--disable switch.
9224 AC_DEFUN([AM_MAINTAINER_MODE],
9225 [m4_case(m4_default([$1], [disable]),
9226 [enable], [m4_define([am_maintainer_other], [disable])],
9227 [disable], [m4_define([am_maintainer_other], [enable])],
9228 [m4_define([am_maintainer_other], [enable])
9229 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9230 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9231 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9232 AC_ARG_ENABLE([maintainer-mode],
9233 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
9234 (and sometimes confusing) to the casual installer],
9235 [USE_MAINTAINER_MODE=$enableval],
9236 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9237 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9238 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9239 MAINT=$MAINTAINER_MODE_TRUE
9240 AC_SUBST([MAINT])dnl
9241 ]
9242 )
9243
9244 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9245
9246 # Check to see how 'make' treats includes. -*- Autoconf -*-
9247
9248 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9249 #
9250 # This file is free software; the Free Software Foundation
9251 # gives unlimited permission to copy and/or distribute it,
9252 # with or without modifications, as long as this notice is preserved.
9253
9254 # serial 4
9255
9256 # AM_MAKE_INCLUDE()
9257 # -----------------
9258 # Check to see how make treats includes.
9259 AC_DEFUN([AM_MAKE_INCLUDE],
9260 [am_make=${MAKE-make}
9261 cat > confinc << 'END'
9262 am__doit:
9263 @echo this is the am__doit target
9264 .PHONY: am__doit
9265 END
9266 # If we don't find an include directive, just comment out the code.
9267 AC_MSG_CHECKING([for style of include used by $am_make])
9268 am__include="#"
9269 am__quote=
9270 _am_result=none
9271 # First try GNU make style include.
9272 echo "include confinc" > confmf
9273 # Ignore all kinds of additional output from `make'.
9274 case `$am_make -s -f confmf 2> /dev/null` in #(
9275 *the\ am__doit\ target*)
9276 am__include=include
9277 am__quote=
9278 _am_result=GNU
9279 ;;
9280 esac
9281 # Now try BSD make style include.
9282 if test "$am__include" = "#"; then
9283 echo '.include "confinc"' > confmf
9284 case `$am_make -s -f confmf 2> /dev/null` in #(
9285 *the\ am__doit\ target*)
9286 am__include=.include
9287 am__quote="\""
9288 _am_result=BSD
9289 ;;
9290 esac
9291 fi
9292 AC_SUBST([am__include])
9293 AC_SUBST([am__quote])
9294 AC_MSG_RESULT([$_am_result])
9295 rm -f confinc confmf
9296 ])
9297
9298 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
9299 # Free Software Foundation, Inc.
9300 #
9301 # This file is free software; the Free Software Foundation
9302 # gives unlimited permission to copy and/or distribute it,
9303 # with or without modifications, as long as this notice is preserved.
9304
9305 # serial 6
9306
9307 # AM_PROG_CC_C_O
9308 # --------------
9309 # Like AC_PROG_CC_C_O, but changed for automake.
9310 AC_DEFUN([AM_PROG_CC_C_O],
9311 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
9312 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9313 AC_REQUIRE_AUX_FILE([compile])dnl
9314 # FIXME: we rely on the cache variable name because
9315 # there is no other way.
9316 set dummy $CC
9317 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
9318 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
9319 if test "$am_t" != yes; then
9320 # Losing compiler, so override with the script.
9321 # FIXME: It is wrong to rewrite CC.
9322 # But if we don't then we get into trouble of one sort or another.
9323 # A longer-term fix would be to have automake use am__CC in this case,
9324 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9325 CC="$am_aux_dir/compile $CC"
9326 fi
9327 dnl Make sure AC_PROG_CC is never called again, or it will override our
9328 dnl setting of CC.
9329 m4_define([AC_PROG_CC],
9330 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
9331 ])
9332
9333 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9334
9335 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9336 # Free Software Foundation, Inc.
9337 #
9338 # This file is free software; the Free Software Foundation
9339 # gives unlimited permission to copy and/or distribute it,
9340 # with or without modifications, as long as this notice is preserved.
9341
9342 # serial 6
9343
9344 # AM_MISSING_PROG(NAME, PROGRAM)
9345 # ------------------------------
9346 AC_DEFUN([AM_MISSING_PROG],
9347 [AC_REQUIRE([AM_MISSING_HAS_RUN])
9348 $1=${$1-"${am_missing_run}$2"}
9349 AC_SUBST($1)])
9350
9351
9352 # AM_MISSING_HAS_RUN
9353 # ------------------
9354 # Define MISSING if not defined so far and test if it supports --run.
9355 # If it does, set am_missing_run to use it, otherwise, to nothing.
9356 AC_DEFUN([AM_MISSING_HAS_RUN],
9357 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9358 AC_REQUIRE_AUX_FILE([missing])dnl
9359 if test x"${MISSING+set}" != xset; then
9360 case $am_aux_dir in
9361 *\ * | *\ *)
9362 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9363 *)
9364 MISSING="\${SHELL} $am_aux_dir/missing" ;;
9365 esac
9366 fi
9367 # Use eval to expand $SHELL
9368 if eval "$MISSING --run true"; then
9369 am_missing_run="$MISSING --run "
9370 else
9371 am_missing_run=
9372 AC_MSG_WARN([`missing' script is too old or missing])
9373 fi
9374 ])
9375
9376 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
9377 # Inc.
9378 #
9379 # This file is free software; the Free Software Foundation
9380 # gives unlimited permission to copy and/or distribute it,
9381 # with or without modifications, as long as this notice is preserved.
9382
9383 # serial 1
9384
9385 # AM_PROG_MKDIR_P
9386 # ---------------
9387 # Check for `mkdir -p'.
9388 AC_DEFUN([AM_PROG_MKDIR_P],
9389 [AC_PREREQ([2.60])dnl
9390 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9391 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9392 dnl while keeping a definition of mkdir_p for backward compatibility.
9393 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9394 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9395 dnl Makefile.ins that do not define MKDIR_P, so we do our own
9396 dnl adjustment using top_builddir (which is defined more often than
9397 dnl MKDIR_P).
9398 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9399 case $mkdir_p in
9400 [[\\/$]]* | ?:[[\\/]]*) ;;
9401 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9402 esac
9403 ])
9404
9405 # Helper functions for option handling. -*- Autoconf -*-
9406
9407 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
9408 # Foundation, Inc.
9409 #
9410 # This file is free software; the Free Software Foundation
9411 # gives unlimited permission to copy and/or distribute it,
9412 # with or without modifications, as long as this notice is preserved.
9413
9414 # serial 5
9415
9416 # _AM_MANGLE_OPTION(NAME)
9417 # -----------------------
9418 AC_DEFUN([_AM_MANGLE_OPTION],
9419 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9420
9421 # _AM_SET_OPTION(NAME)
9422 # --------------------
9423 # Set option NAME. Presently that only means defining a flag for this option.
9424 AC_DEFUN([_AM_SET_OPTION],
9425 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9426
9427 # _AM_SET_OPTIONS(OPTIONS)
9428 # ------------------------
9429 # OPTIONS is a space-separated list of Automake options.
9430 AC_DEFUN([_AM_SET_OPTIONS],
9431 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9432
9433 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9434 # -------------------------------------------
9435 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9436 AC_DEFUN([_AM_IF_OPTION],
9437 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9438
9439 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9440
9441 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9442 # Free Software Foundation, Inc.
9443 #
9444 # This file is free software; the Free Software Foundation
9445 # gives unlimited permission to copy and/or distribute it,
9446 # with or without modifications, as long as this notice is preserved.
9447
9448 # serial 5
9449
9450 # AM_SANITY_CHECK
9451 # ---------------
9452 AC_DEFUN([AM_SANITY_CHECK],
9453 [AC_MSG_CHECKING([whether build environment is sane])
9454 # Just in case
9455 sleep 1
9456 echo timestamp > conftest.file
9457 # Reject unsafe characters in $srcdir or the absolute working directory
9458 # name. Accept space and tab only in the latter.
9459 am_lf='
9460 '
9461 case `pwd` in
9462 *[[\\\"\#\$\&\'\`$am_lf]]*)
9463 AC_MSG_ERROR([unsafe absolute working directory name]);;
9464 esac
9465 case $srcdir in
9466 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9467 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9468 esac
9469
9470 # Do `set' in a subshell so we don't clobber the current shell's
9471 # arguments. Must try -L first in case configure is actually a
9472 # symlink; some systems play weird games with the mod time of symlinks
9473 # (eg FreeBSD returns the mod time of the symlink's containing
9474 # directory).
9475 if (
9476 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9477 if test "$[*]" = "X"; then
9478 # -L didn't work.
9479 set X `ls -t "$srcdir/configure" conftest.file`
9480 fi
9481 rm -f conftest.file
9482 if test "$[*]" != "X $srcdir/configure conftest.file" \
9483 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9484
9485 # If neither matched, then we have a broken ls. This can happen
9486 # if, for instance, CONFIG_SHELL is bash and it inherits a
9487 # broken ls alias from the environment. This has actually
9488 # happened. Such a system could not be considered "sane".
9489 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9490 alias in your environment])
9491 fi
9492
9493 test "$[2]" = conftest.file
9494 )
9495 then
9496 # Ok.
9497 :
9498 else
9499 AC_MSG_ERROR([newly created file is older than distributed files!
9500 Check your system clock])
9501 fi
9502 AC_MSG_RESULT(yes)])
9503
9504 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
9505 #
9506 # This file is free software; the Free Software Foundation
9507 # gives unlimited permission to copy and/or distribute it,
9508 # with or without modifications, as long as this notice is preserved.
9509
9510 # serial 2
9511
9512 # AM_SILENT_RULES([DEFAULT])
9513 # --------------------------
9514 # Enable less verbose build rules; with the default set to DEFAULT
9515 # (`yes' being less verbose, `no' or empty being verbose).
9516 AC_DEFUN([AM_SILENT_RULES],
9517 [AC_ARG_ENABLE([silent-rules],
9518 [ --enable-silent-rules less verbose build output (undo: `make V=1')
9519 --disable-silent-rules verbose build output (undo: `make V=0')])
9520 case $enable_silent_rules in
9521 yes) AM_DEFAULT_VERBOSITY=0;;
9522 no) AM_DEFAULT_VERBOSITY=1;;
9523 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9524 esac
9525 dnl
9526 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
9527 dnl do not support nested variable expansions.
9528 dnl See automake bug#9928 and bug#10237.
9529 am_make=${MAKE-make}
9530 AC_CACHE_CHECK([whether $am_make supports nested variables],
9531 [am_cv_make_support_nested_variables],
9532 [if AS_ECHO([['TRUE=$(BAR$(V))
9533 BAR0=false
9534 BAR1=true
9535 V=1
9536 am__doit:
9537 @$(TRUE)
9538 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
9539 am_cv_make_support_nested_variables=yes
9540 else
9541 am_cv_make_support_nested_variables=no
9542 fi])
9543 if test $am_cv_make_support_nested_variables = yes; then
9544 dnl Using `$V' instead of `$(V)' breaks IRIX make.
9545 AM_V='$(V)'
9546 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9547 else
9548 AM_V=$AM_DEFAULT_VERBOSITY
9549 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9550 fi
9551 AC_SUBST([AM_V])dnl
9552 AM_SUBST_NOTMAKE([AM_V])dnl
9553 AC_SUBST([AM_DEFAULT_V])dnl
9554 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
9555 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9556 AM_BACKSLASH='\'
9557 AC_SUBST([AM_BACKSLASH])dnl
9558 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9559 ])
9560
9561 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9562 #
9563 # This file is free software; the Free Software Foundation
9564 # gives unlimited permission to copy and/or distribute it,
9565 # with or without modifications, as long as this notice is preserved.
9566
9567 # serial 1
9568
9569 # AM_PROG_INSTALL_STRIP
9570 # ---------------------
9571 # One issue with vendor `install' (even GNU) is that you can't
9572 # specify the program used to strip binaries. This is especially
9573 # annoying in cross-compiling environments, where the build's strip
9574 # is unlikely to handle the host's binaries.
9575 # Fortunately install-sh will honor a STRIPPROG variable, so we
9576 # always use install-sh in `make install-strip', and initialize
9577 # STRIPPROG with the value of the STRIP variable (set by the user).
9578 AC_DEFUN([AM_PROG_INSTALL_STRIP],
9579 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9580 # Installed binaries are usually stripped using `strip' when the user
9581 # run `make install-strip'. However `strip' might not be the right
9582 # tool to use in cross-compilation environments, therefore Automake
9583 # will honor the `STRIP' environment variable to overrule this program.
9584 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9585 if test "$cross_compiling" != no; then
9586 AC_CHECK_TOOL([STRIP], [strip], :)
9587 fi
9588 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9589 AC_SUBST([INSTALL_STRIP_PROGRAM])])
9590
9591 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
9592 #
9593 # This file is free software; the Free Software Foundation
9594 # gives unlimited permission to copy and/or distribute it,
9595 # with or without modifications, as long as this notice is preserved.
9596
9597 # serial 3
9598
9599 # _AM_SUBST_NOTMAKE(VARIABLE)
9600 # ---------------------------
9601 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9602 # This macro is traced by Automake.
9603 AC_DEFUN([_AM_SUBST_NOTMAKE])
9604
9605 # AM_SUBST_NOTMAKE(VARIABLE)
9606 # --------------------------
9607 # Public sister of _AM_SUBST_NOTMAKE.
9608 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9609
9610 # Check how to create a tarball. -*- Autoconf -*-
9611
9612 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
9613 #
9614 # This file is free software; the Free Software Foundation
9615 # gives unlimited permission to copy and/or distribute it,
9616 # with or without modifications, as long as this notice is preserved.
9617
9618 # serial 2
9619
9620 # _AM_PROG_TAR(FORMAT)
9621 # --------------------
9622 # Check how to create a tarball in format FORMAT.
9623 # FORMAT should be one of `v7', `ustar', or `pax'.
9624 #
9625 # Substitute a variable $(am__tar) that is a command
9626 # writing to stdout a FORMAT-tarball containing the directory
9627 # $tardir.
9628 # tardir=directory && $(am__tar) > result.tar
9629 #
9630 # Substitute a variable $(am__untar) that extract such
9631 # a tarball read from stdin.
9632 # $(am__untar) < result.tar
9633 AC_DEFUN([_AM_PROG_TAR],
9634 [# Always define AMTAR for backward compatibility. Yes, it's still used
9635 # in the wild :-( We should find a proper way to deprecate it ...
9636 AC_SUBST([AMTAR], ['$${TAR-tar}'])
9637 m4_if([$1], [v7],
9638 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9639 [m4_case([$1], [ustar],, [pax],,
9640 [m4_fatal([Unknown tar format])])
9641 AC_MSG_CHECKING([how to create a $1 tar archive])
9642 # Loop over all known methods to create a tar archive until one works.
9643 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9644 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9645 # Do not fold the above two line into one, because Tru64 sh and
9646 # Solaris sh will not grok spaces in the rhs of `-'.
9647 for _am_tool in $_am_tools
9648 do
9649 case $_am_tool in
9650 gnutar)
9651 for _am_tar in tar gnutar gtar;
9652 do
9653 AM_RUN_LOG([$_am_tar --version]) && break
9654 done
9655 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tar dir"'
9656 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tar dir"'
9657 am__untar="$_am_tar -xf -"
9658 ;;
9659 plaintar)
9660 # Must skip GNU tar: if it does not support --format= it doesn't create
9661 # ustar tarball either.
9662 (tar --version) >/dev/null 2>&1 && continue
9663 am__tar='tar chf - "$$tardir"'
9664 am__tar_='tar chf - "$tardir"'
9665 am__untar='tar xf -'
9666 ;;
9667 pax)
9668 am__tar='pax -L -x $1 -w "$$tardir"'
9669 am__tar_='pax -L -x $1 -w "$tardir"'
9670 am__untar='pax -r'
9671 ;;
9672 cpio)
9673 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9674 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9675 am__untar='cpio -i -H $1 -d'
9676 ;;
9677 none)
9678 am__tar=false
9679 am__tar_=false
9680 am__untar=false
9681 ;;
9682 esac
9683
9684 # If the value was cached, stop now. We just wanted to have am__tar
9685 # and am__untar set.
9686 test -n "${am_cv_prog_tar_$1}" && break
9687
9688 # tar/untar a dummy directory, and stop if the command works
9689 rm -rf conftest.dir
9690 mkdir conftest.dir
9691 echo GrepMe > conftest.dir/file
9692 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9693 rm -rf conftest.dir
9694 if test -s conftest.tar; then
9695 AM_RUN_LOG([$am__untar <conftest.tar])
9696 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9697 fi
9698 done
9699 rm -rf conftest.dir
9700
9701 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9702 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9703 AC_SUBST([am__tar])
9704 AC_SUBST([am__untar])
9705 ]) # _AM_PROG_TAR
9706
OLDNEW
« no previous file with comments | « m4/as-gcc-inline-assembly.m4 ('k') | m4/ltoptions.m4 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698