1# generated automatically by aclocal 1.13.4 -*- Autoconf -*- 2 3# Copyright (C) 1996-2013 Free Software Foundation, Inc. 4 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15m4_ifndef([AC_AUTOCONF_VERSION], 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18[m4_warning([this file was generated for autoconf 2.69. 19You have another version of autoconf. It may work, but is not guaranteed to. 20If you have problems, you may need to regenerate the build system entirely. 21To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 23# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*- 24# 25# Copyright (C) 1999-2006, 2007, 2008, 2011 Free Software Foundation, Inc. 26# Written by Thomas Tanner, 1999 27# 28# This file is free software; the Free Software Foundation gives 29# unlimited permission to copy and/or distribute it, with or without 30# modifications, as long as this notice is preserved. 31 32# serial 18 LTDL_INIT 33 34# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE]) 35# ------------------------------------------ 36# DIRECTORY contains the libltdl sources. It is okay to call this 37# function multiple times, as long as the same DIRECTORY is always given. 38AC_DEFUN([LT_CONFIG_LTDL_DIR], 39[AC_BEFORE([$0], [LTDL_INIT]) 40_$0($*) 41])# LT_CONFIG_LTDL_DIR 42 43# We break this out into a separate macro, so that we can call it safely 44# internally without being caught accidentally by the sed scan in libtoolize. 45m4_defun([_LT_CONFIG_LTDL_DIR], 46[dnl remove trailing slashes 47m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$])) 48m4_case(_LTDL_DIR, 49 [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.' 50 m4_if(_ARG_DIR, [.], 51 [], 52 [m4_define([_LTDL_DIR], _ARG_DIR) 53 _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])], 54 [m4_if(_ARG_DIR, _LTDL_DIR, 55 [], 56 [m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])]) 57m4_popdef([_ARG_DIR]) 58])# _LT_CONFIG_LTDL_DIR 59 60# Initialise: 61m4_define([_LTDL_DIR], []) 62 63 64# _LT_BUILD_PREFIX 65# ---------------- 66# If Autoconf is new enough, expand to `${top_build_prefix}', otherwise 67# to `${top_builddir}/'. 68m4_define([_LT_BUILD_PREFIX], 69[m4_ifdef([AC_AUTOCONF_VERSION], 70 [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]), 71 [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX], 72 [${top_build_prefix}], 73 [${top_builddir}/])], 74 [${top_build_prefix}])], 75 [${top_builddir}/])[]dnl 76]) 77 78 79# LTDL_CONVENIENCE 80# ---------------- 81# sets LIBLTDL to the link flags for the libltdl convenience library and 82# LTDLINCL to the include flags for the libltdl header and adds 83# --enable-ltdl-convenience to the configure arguments. Note that 84# AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with 85# '${top_build_prefix}' if available, otherwise with '${top_builddir}/', 86# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single 87# quotes!). If your package is not flat and you're not using automake, 88# define top_build_prefix, top_builddir, and top_srcdir appropriately 89# in your Makefiles. 90AC_DEFUN([LTDL_CONVENIENCE], 91[AC_BEFORE([$0], [LTDL_INIT])dnl 92dnl Although the argument is deprecated and no longer documented, 93dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one 94dnl here make sure it is the same as any other declaration of libltdl's 95dnl location! This also ensures lt_ltdl_dir is set when configure.ac is 96dnl not yet using an explicit LT_CONFIG_LTDL_DIR. 97m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl 98_$0() 99])# LTDL_CONVENIENCE 100 101# AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools, 102# now we have LT_CONFIG_LTDL_DIR: 103AU_DEFUN([AC_LIBLTDL_CONVENIENCE], 104[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) 105_LTDL_CONVENIENCE]) 106 107dnl aclocal-1.4 backwards compatibility: 108dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], []) 109 110 111# _LTDL_CONVENIENCE 112# ----------------- 113# Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]). 114m4_defun([_LTDL_CONVENIENCE], 115[case $enable_ltdl_convenience in 116 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 117 "") enable_ltdl_convenience=yes 118 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 119esac 120LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" 121LTDLDEPS=$LIBLTDL 122LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" 123 124AC_SUBST([LIBLTDL]) 125AC_SUBST([LTDLDEPS]) 126AC_SUBST([LTDLINCL]) 127 128# For backwards non-gettext consistent compatibility... 129INCLTDL="$LTDLINCL" 130AC_SUBST([INCLTDL]) 131])# _LTDL_CONVENIENCE 132 133 134# LTDL_INSTALLABLE 135# ---------------- 136# sets LIBLTDL to the link flags for the libltdl installable library 137# and LTDLINCL to the include flags for the libltdl header and adds 138# --enable-ltdl-install to the configure arguments. Note that 139# AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl 140# is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if 141# available, otherwise with '${top_builddir}/', and LTDLINCL will be 142# prefixed with '${top_srcdir}/' (note the single quotes!). If your 143# package is not flat and you're not using automake, define top_build_prefix, 144# top_builddir, and top_srcdir appropriately in your Makefiles. 145# In the future, this macro may have to be called after LT_INIT. 146AC_DEFUN([LTDL_INSTALLABLE], 147[AC_BEFORE([$0], [LTDL_INIT])dnl 148dnl Although the argument is deprecated and no longer documented, 149dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one 150dnl here make sure it is the same as any other declaration of libltdl's 151dnl location! This also ensures lt_ltdl_dir is set when configure.ac is 152dnl not yet using an explicit LT_CONFIG_LTDL_DIR. 153m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl 154_$0() 155])# LTDL_INSTALLABLE 156 157# AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools, 158# now we have LT_CONFIG_LTDL_DIR: 159AU_DEFUN([AC_LIBLTDL_INSTALLABLE], 160[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) 161_LTDL_INSTALLABLE]) 162 163dnl aclocal-1.4 backwards compatibility: 164dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], []) 165 166 167# _LTDL_INSTALLABLE 168# ----------------- 169# Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]). 170m4_defun([_LTDL_INSTALLABLE], 171[if test -f $prefix/lib/libltdl.la; then 172 lt_save_LDFLAGS="$LDFLAGS" 173 LDFLAGS="-L$prefix/lib $LDFLAGS" 174 AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes]) 175 LDFLAGS="$lt_save_LDFLAGS" 176 if test x"${lt_lib_ltdl-no}" = xyes; then 177 if test x"$enable_ltdl_install" != xyes; then 178 # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install 179 AC_MSG_WARN([not overwriting libltdl at $prefix, force with `--enable-ltdl-install']) 180 enable_ltdl_install=no 181 fi 182 elif test x"$enable_ltdl_install" = xno; then 183 AC_MSG_WARN([libltdl not installed, but installation disabled]) 184 fi 185fi 186 187# If configure.ac declared an installable ltdl, and the user didn't override 188# with --disable-ltdl-install, we will install the shipped libltdl. 189case $enable_ltdl_install in 190 no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 191 LIBLTDL="-lltdl" 192 LTDLDEPS= 193 LTDLINCL= 194 ;; 195 *) enable_ltdl_install=yes 196 ac_configure_args="$ac_configure_args --enable-ltdl-install" 197 LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" 198 LTDLDEPS=$LIBLTDL 199 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" 200 ;; 201esac 202 203AC_SUBST([LIBLTDL]) 204AC_SUBST([LTDLDEPS]) 205AC_SUBST([LTDLINCL]) 206 207# For backwards non-gettext consistent compatibility... 208INCLTDL="$LTDLINCL" 209AC_SUBST([INCLTDL]) 210])# LTDL_INSTALLABLE 211 212 213# _LTDL_MODE_DISPATCH 214# ------------------- 215m4_define([_LTDL_MODE_DISPATCH], 216[dnl If _LTDL_DIR is `.', then we are configuring libltdl itself: 217m4_if(_LTDL_DIR, [], 218 [], 219 dnl if _LTDL_MODE was not set already, the default value is `subproject': 220 [m4_case(m4_default(_LTDL_MODE, [subproject]), 221 [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR) 222 _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])], 223 [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])], 224 [recursive], [], 225 [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl 226dnl Be careful not to expand twice: 227m4_define([$0], []) 228])# _LTDL_MODE_DISPATCH 229 230 231# _LT_LIBOBJ(MODULE_NAME) 232# ----------------------- 233# Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead 234# of into LIBOBJS. 235AC_DEFUN([_LT_LIBOBJ], [ 236 m4_pattern_allow([^_LT_LIBOBJS$]) 237 _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext" 238])# _LT_LIBOBJS 239 240 241# LTDL_INIT([OPTIONS]) 242# -------------------- 243# Clients of libltdl can use this macro to allow the installer to 244# choose between a shipped copy of the ltdl sources or a preinstalled 245# version of the library. If the shipped ltdl sources are not in a 246# subdirectory named libltdl, the directory name must be given by 247# LT_CONFIG_LTDL_DIR. 248AC_DEFUN([LTDL_INIT], 249[dnl Parse OPTIONS 250_LT_SET_OPTIONS([$0], [$1]) 251 252dnl We need to keep our own list of libobjs separate from our parent project, 253dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while 254dnl we look for our own LIBOBJs. 255m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ])) 256m4_pushdef([AC_LIBSOURCES]) 257 258dnl If not otherwise defined, default to the 1.5.x compatible subproject mode: 259m4_if(_LTDL_MODE, [], 260 [m4_define([_LTDL_MODE], m4_default([$2], [subproject])) 261 m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])], 262 [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])]) 263 264AC_ARG_WITH([included_ltdl], 265 [AS_HELP_STRING([--with-included-ltdl], 266 [use the GNU ltdl sources included here])]) 267 268if test "x$with_included_ltdl" != xyes; then 269 # We are not being forced to use the included libltdl sources, so 270 # decide whether there is a useful installed version we can use. 271 AC_CHECK_HEADER([ltdl.h], 272 [AC_CHECK_DECL([lt_dlinterface_register], 273 [AC_CHECK_LIB([ltdl], [lt_dladvise_preload], 274 [with_included_ltdl=no], 275 [with_included_ltdl=yes])], 276 [with_included_ltdl=yes], 277 [AC_INCLUDES_DEFAULT 278 #include <ltdl.h>])], 279 [with_included_ltdl=yes], 280 [AC_INCLUDES_DEFAULT] 281 ) 282fi 283 284dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE 285dnl was called yet, then for old times' sake, we assume libltdl is in an 286dnl eponymous directory: 287AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])]) 288 289AC_ARG_WITH([ltdl_include], 290 [AS_HELP_STRING([--with-ltdl-include=DIR], 291 [use the ltdl headers installed in DIR])]) 292 293if test -n "$with_ltdl_include"; then 294 if test -f "$with_ltdl_include/ltdl.h"; then : 295 else 296 AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include']) 297 fi 298else 299 with_ltdl_include=no 300fi 301 302AC_ARG_WITH([ltdl_lib], 303 [AS_HELP_STRING([--with-ltdl-lib=DIR], 304 [use the libltdl.la installed in DIR])]) 305 306if test -n "$with_ltdl_lib"; then 307 if test -f "$with_ltdl_lib/libltdl.la"; then : 308 else 309 AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib']) 310 fi 311else 312 with_ltdl_lib=no 313fi 314 315case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in 316 ,yes,no,no,) 317 m4_case(m4_default(_LTDL_TYPE, [convenience]), 318 [convenience], [_LTDL_CONVENIENCE], 319 [installable], [_LTDL_INSTALLABLE], 320 [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)]) 321 ;; 322 ,no,no,no,) 323 # If the included ltdl is not to be used, then use the 324 # preinstalled libltdl we found. 325 AC_DEFINE([HAVE_LTDL], [1], 326 [Define this if a modern libltdl is already installed]) 327 LIBLTDL=-lltdl 328 LTDLDEPS= 329 LTDLINCL= 330 ;; 331 ,no*,no,*) 332 AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together]) 333 ;; 334 *) with_included_ltdl=no 335 LIBLTDL="-L$with_ltdl_lib -lltdl" 336 LTDLDEPS= 337 LTDLINCL="-I$with_ltdl_include" 338 ;; 339esac 340INCLTDL="$LTDLINCL" 341 342# Report our decision... 343AC_MSG_CHECKING([where to find libltdl headers]) 344AC_MSG_RESULT([$LTDLINCL]) 345AC_MSG_CHECKING([where to find libltdl library]) 346AC_MSG_RESULT([$LIBLTDL]) 347 348_LTDL_SETUP 349 350dnl restore autoconf definition. 351m4_popdef([AC_LIBOBJ]) 352m4_popdef([AC_LIBSOURCES]) 353 354AC_CONFIG_COMMANDS_PRE([ 355 _ltdl_libobjs= 356 _ltdl_ltlibobjs= 357 if test -n "$_LT_LIBOBJS"; then 358 # Remove the extension. 359 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' 360 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do 361 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" 362 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" 363 done 364 fi 365 AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs]) 366 AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs]) 367]) 368 369# Only expand once: 370m4_define([LTDL_INIT]) 371])# LTDL_INIT 372 373# Old names: 374AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) 375AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) 376AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) 377dnl aclocal-1.4 backwards compatibility: 378dnl AC_DEFUN([AC_LIB_LTDL], []) 379dnl AC_DEFUN([AC_WITH_LTDL], []) 380dnl AC_DEFUN([LT_WITH_LTDL], []) 381 382 383# _LTDL_SETUP 384# ----------- 385# Perform all the checks necessary for compilation of the ltdl objects 386# -- including compiler checks and header checks. This is a public 387# interface mainly for the benefit of libltdl's own configure.ac, most 388# other users should call LTDL_INIT instead. 389AC_DEFUN([_LTDL_SETUP], 390[AC_REQUIRE([AC_PROG_CC])dnl 391AC_REQUIRE([LT_SYS_MODULE_EXT])dnl 392AC_REQUIRE([LT_SYS_MODULE_PATH])dnl 393AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl 394AC_REQUIRE([LT_LIB_DLLOAD])dnl 395AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl 396AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl 397AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl 398AC_REQUIRE([gl_FUNC_ARGZ])dnl 399 400m4_require([_LT_CHECK_OBJDIR])dnl 401m4_require([_LT_HEADER_DLFCN])dnl 402m4_require([_LT_CHECK_DLPREOPEN])dnl 403m4_require([_LT_DECL_SED])dnl 404 405dnl Don't require this, or it will be expanded earlier than the code 406dnl that sets the variables it relies on: 407_LT_ENABLE_INSTALL 408 409dnl _LTDL_MODE specific code must be called at least once: 410_LTDL_MODE_DISPATCH 411 412# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS 413# the user used. This is so that ltdl.h can pick up the parent projects 414# config.h file, The first file in AC_CONFIG_HEADERS must contain the 415# definitions required by ltdl.c. 416# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). 417AC_CONFIG_COMMANDS_PRE([dnl 418m4_pattern_allow([^LT_CONFIG_H$])dnl 419m4_ifset([AH_HEADER], 420 [LT_CONFIG_H=AH_HEADER], 421 [m4_ifset([AC_LIST_HEADERS], 422 [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`], 423 [])])]) 424AC_SUBST([LT_CONFIG_H]) 425 426AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h], 427 [], [], [AC_INCLUDES_DEFAULT]) 428 429AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])]) 430AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])]) 431 432m4_pattern_allow([LT_LIBEXT])dnl 433AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension]) 434 435name= 436eval "lt_libprefix=\"$libname_spec\"" 437m4_pattern_allow([LT_LIBPREFIX])dnl 438AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix]) 439 440name=ltdl 441eval "LTDLOPEN=\"$libname_spec\"" 442AC_SUBST([LTDLOPEN]) 443])# _LTDL_SETUP 444 445 446# _LT_ENABLE_INSTALL 447# ------------------ 448m4_define([_LT_ENABLE_INSTALL], 449[AC_ARG_ENABLE([ltdl-install], 450 [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])]) 451 452case ,${enable_ltdl_install},${enable_ltdl_convenience} in 453 *yes*) ;; 454 *) enable_ltdl_convenience=yes ;; 455esac 456 457m4_ifdef([AM_CONDITIONAL], 458[AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) 459 AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)]) 460])# _LT_ENABLE_INSTALL 461 462 463# LT_SYS_DLOPEN_DEPLIBS 464# --------------------- 465AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS], 466[AC_REQUIRE([AC_CANONICAL_HOST])dnl 467AC_CACHE_CHECK([whether deplibs are loaded by dlopen], 468 [lt_cv_sys_dlopen_deplibs], 469 [# PORTME does your system automatically load deplibs for dlopen? 470 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 471 # For now, we just catch OSes we know something about -- in the 472 # future, we'll try test this programmatically. 473 lt_cv_sys_dlopen_deplibs=unknown 474 case $host_os in 475 aix3*|aix4.1.*|aix4.2.*) 476 # Unknown whether this is true for these versions of AIX, but 477 # we want this `case' here to explicitly catch those versions. 478 lt_cv_sys_dlopen_deplibs=unknown 479 ;; 480 aix[[4-9]]*) 481 lt_cv_sys_dlopen_deplibs=yes 482 ;; 483 amigaos*) 484 case $host_cpu in 485 powerpc) 486 lt_cv_sys_dlopen_deplibs=no 487 ;; 488 esac 489 ;; 490 darwin*) 491 # Assuming the user has installed a libdl from somewhere, this is true 492 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 493 lt_cv_sys_dlopen_deplibs=yes 494 ;; 495 freebsd* | dragonfly*) 496 lt_cv_sys_dlopen_deplibs=yes 497 ;; 498 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) 499 # GNU and its variants, using gnu ld.so (Glibc) 500 lt_cv_sys_dlopen_deplibs=yes 501 ;; 502 hpux10*|hpux11*) 503 lt_cv_sys_dlopen_deplibs=yes 504 ;; 505 interix*) 506 lt_cv_sys_dlopen_deplibs=yes 507 ;; 508 irix[[12345]]*|irix6.[[01]]*) 509 # Catch all versions of IRIX before 6.2, and indicate that we don't 510 # know how it worked for any of those versions. 511 lt_cv_sys_dlopen_deplibs=unknown 512 ;; 513 irix*) 514 # The case above catches anything before 6.2, and it's known that 515 # at 6.2 and later dlopen does load deplibs. 516 lt_cv_sys_dlopen_deplibs=yes 517 ;; 518 netbsd*) 519 lt_cv_sys_dlopen_deplibs=yes 520 ;; 521 openbsd*) 522 lt_cv_sys_dlopen_deplibs=yes 523 ;; 524 osf[[1234]]*) 525 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 526 # it did *not* use an RPATH in a shared library to find objects the 527 # library depends on, so we explicitly say `no'. 528 lt_cv_sys_dlopen_deplibs=no 529 ;; 530 osf5.0|osf5.0a|osf5.1) 531 # dlopen *does* load deplibs and with the right loader patch applied 532 # it even uses RPATH in a shared library to search for shared objects 533 # that the library depends on, but there's no easy way to know if that 534 # patch is installed. Since this is the case, all we can really 535 # say is unknown -- it depends on the patch being installed. If 536 # it is, this changes to `yes'. Without it, it would be `no'. 537 lt_cv_sys_dlopen_deplibs=unknown 538 ;; 539 osf*) 540 # the two cases above should catch all versions of osf <= 5.1. Read 541 # the comments above for what we know about them. 542 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 543 # is used to find them so we can finally say `yes'. 544 lt_cv_sys_dlopen_deplibs=yes 545 ;; 546 qnx*) 547 lt_cv_sys_dlopen_deplibs=yes 548 ;; 549 solaris*) 550 lt_cv_sys_dlopen_deplibs=yes 551 ;; 552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 553 libltdl_cv_sys_dlopen_deplibs=yes 554 ;; 555 esac 556 ]) 557if test "$lt_cv_sys_dlopen_deplibs" != yes; then 558 AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], 559 [Define if the OS needs help to load dependent libraries for dlopen().]) 560fi 561])# LT_SYS_DLOPEN_DEPLIBS 562 563# Old name: 564AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS]) 565dnl aclocal-1.4 backwards compatibility: 566dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], []) 567 568 569# LT_SYS_MODULE_EXT 570# ----------------- 571AC_DEFUN([LT_SYS_MODULE_EXT], 572[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl 573AC_CACHE_CHECK([which extension is used for runtime loadable modules], 574 [libltdl_cv_shlibext], 575[ 576module=yes 577eval libltdl_cv_shlibext=$shrext_cmds 578module=no 579eval libltdl_cv_shrext=$shrext_cmds 580 ]) 581if test -n "$libltdl_cv_shlibext"; then 582 m4_pattern_allow([LT_MODULE_EXT])dnl 583 AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"], 584 [Define to the extension used for runtime loadable modules, say, ".so".]) 585fi 586if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then 587 m4_pattern_allow([LT_SHARED_EXT])dnl 588 AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"], 589 [Define to the shared library suffix, say, ".dylib".]) 590fi 591])# LT_SYS_MODULE_EXT 592 593# Old name: 594AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT]) 595dnl aclocal-1.4 backwards compatibility: 596dnl AC_DEFUN([AC_LTDL_SHLIBEXT], []) 597 598 599# LT_SYS_MODULE_PATH 600# ------------------ 601AC_DEFUN([LT_SYS_MODULE_PATH], 602[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl 603AC_CACHE_CHECK([which variable specifies run-time module search path], 604 [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"]) 605if test -n "$lt_cv_module_path_var"; then 606 m4_pattern_allow([LT_MODULE_PATH_VAR])dnl 607 AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"], 608 [Define to the name of the environment variable that determines the run-time module search path.]) 609fi 610])# LT_SYS_MODULE_PATH 611 612# Old name: 613AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH]) 614dnl aclocal-1.4 backwards compatibility: 615dnl AC_DEFUN([AC_LTDL_SHLIBPATH], []) 616 617 618# LT_SYS_DLSEARCH_PATH 619# -------------------- 620AC_DEFUN([LT_SYS_DLSEARCH_PATH], 621[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl 622AC_CACHE_CHECK([for the default library search path], 623 [lt_cv_sys_dlsearch_path], 624 [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"]) 625if test -n "$lt_cv_sys_dlsearch_path"; then 626 sys_dlsearch_path= 627 for dir in $lt_cv_sys_dlsearch_path; do 628 if test -z "$sys_dlsearch_path"; then 629 sys_dlsearch_path="$dir" 630 else 631 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" 632 fi 633 done 634 m4_pattern_allow([LT_DLSEARCH_PATH])dnl 635 AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"], 636 [Define to the system default library search path.]) 637fi 638])# LT_SYS_DLSEARCH_PATH 639 640# Old name: 641AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH]) 642dnl aclocal-1.4 backwards compatibility: 643dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], []) 644 645 646# _LT_CHECK_DLPREOPEN 647# ------------------- 648m4_defun([_LT_CHECK_DLPREOPEN], 649[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 650AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen], 651 [libltdl_cv_preloaded_symbols], 652 [if test -n "$lt_cv_sys_global_symbol_pipe"; then 653 libltdl_cv_preloaded_symbols=yes 654 else 655 libltdl_cv_preloaded_symbols=no 656 fi 657 ]) 658if test x"$libltdl_cv_preloaded_symbols" = xyes; then 659 AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1], 660 [Define if libtool can extract symbol lists from object files.]) 661fi 662])# _LT_CHECK_DLPREOPEN 663 664 665# LT_LIB_DLLOAD 666# ------------- 667AC_DEFUN([LT_LIB_DLLOAD], 668[m4_pattern_allow([^LT_DLLOADERS$]) 669LT_DLLOADERS= 670AC_SUBST([LT_DLLOADERS]) 671 672AC_LANG_PUSH([C]) 673 674LIBADD_DLOPEN= 675AC_SEARCH_LIBS([dlopen], [dl], 676 [AC_DEFINE([HAVE_LIBDL], [1], 677 [Define if you have the libdl library or equivalent.]) 678 if test "$ac_cv_search_dlopen" != "none required" ; then 679 LIBADD_DLOPEN="-ldl" 680 fi 681 libltdl_cv_lib_dl_dlopen="yes" 682 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], 683 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H 684# include <dlfcn.h> 685#endif 686 ]], [[dlopen(0, 0);]])], 687 [AC_DEFINE([HAVE_LIBDL], [1], 688 [Define if you have the libdl library or equivalent.]) 689 libltdl_cv_func_dlopen="yes" 690 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], 691 [AC_CHECK_LIB([svld], [dlopen], 692 [AC_DEFINE([HAVE_LIBDL], [1], 693 [Define if you have the libdl library or equivalent.]) 694 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" 695 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])]) 696if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 697then 698 lt_save_LIBS="$LIBS" 699 LIBS="$LIBS $LIBADD_DLOPEN" 700 AC_CHECK_FUNCS([dlerror]) 701 LIBS="$lt_save_LIBS" 702fi 703AC_SUBST([LIBADD_DLOPEN]) 704 705LIBADD_SHL_LOAD= 706AC_CHECK_FUNC([shl_load], 707 [AC_DEFINE([HAVE_SHL_LOAD], [1], 708 [Define if you have the shl_load function.]) 709 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"], 710 [AC_CHECK_LIB([dld], [shl_load], 711 [AC_DEFINE([HAVE_SHL_LOAD], [1], 712 [Define if you have the shl_load function.]) 713 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 714 LIBADD_SHL_LOAD="-ldld"])]) 715AC_SUBST([LIBADD_SHL_LOAD]) 716 717case $host_os in 718darwin[[1567]].*) 719# We only want this for pre-Mac OS X 10.4. 720 AC_CHECK_FUNC([_dyld_func_lookup], 721 [AC_DEFINE([HAVE_DYLD], [1], 722 [Define if you have the _dyld_func_lookup function.]) 723 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"]) 724 ;; 725beos*) 726 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" 727 ;; 728cygwin* | mingw* | os2* | pw32*) 729 AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]]) 730 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" 731 ;; 732esac 733 734AC_CHECK_LIB([dld], [dld_link], 735 [AC_DEFINE([HAVE_DLD], [1], 736 [Define if you have the GNU dld library.]) 737 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"]) 738AC_SUBST([LIBADD_DLD_LINK]) 739 740m4_pattern_allow([^LT_DLPREOPEN$]) 741LT_DLPREOPEN= 742if test -n "$LT_DLLOADERS" 743then 744 for lt_loader in $LT_DLLOADERS; do 745 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " 746 done 747 AC_DEFINE([HAVE_LIBDLLOADER], [1], 748 [Define if libdlloader will be built on this platform]) 749fi 750AC_SUBST([LT_DLPREOPEN]) 751 752dnl This isn't used anymore, but set it for backwards compatibility 753LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" 754AC_SUBST([LIBADD_DL]) 755 756AC_LANG_POP 757])# LT_LIB_DLLOAD 758 759# Old name: 760AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD]) 761dnl aclocal-1.4 backwards compatibility: 762dnl AC_DEFUN([AC_LTDL_DLLIB], []) 763 764 765# LT_SYS_SYMBOL_USCORE 766# -------------------- 767# does the compiler prefix global symbols with an underscore? 768AC_DEFUN([LT_SYS_SYMBOL_USCORE], 769[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 770AC_CACHE_CHECK([for _ prefix in compiled symbols], 771 [lt_cv_sys_symbol_underscore], 772 [lt_cv_sys_symbol_underscore=no 773 cat > conftest.$ac_ext <<_LT_EOF 774void nm_test_func(){} 775int main(){nm_test_func;return 0;} 776_LT_EOF 777 if AC_TRY_EVAL(ac_compile); then 778 # Now try to grab the symbols. 779 ac_nlist=conftest.nm 780 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then 781 # See whether the symbols have a leading underscore. 782 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 783 lt_cv_sys_symbol_underscore=yes 784 else 785 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 786 : 787 else 788 echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD 789 fi 790 fi 791 else 792 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 793 fi 794 else 795 echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD 796 cat conftest.c >&AS_MESSAGE_LOG_FD 797 fi 798 rm -rf conftest* 799 ]) 800 sys_symbol_underscore=$lt_cv_sys_symbol_underscore 801 AC_SUBST([sys_symbol_underscore]) 802])# LT_SYS_SYMBOL_USCORE 803 804# Old name: 805AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE]) 806dnl aclocal-1.4 backwards compatibility: 807dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], []) 808 809 810# LT_FUNC_DLSYM_USCORE 811# -------------------- 812AC_DEFUN([LT_FUNC_DLSYM_USCORE], 813[AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl 814if test x"$lt_cv_sys_symbol_underscore" = xyes; then 815 if test x"$libltdl_cv_func_dlopen" = xyes || 816 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 817 AC_CACHE_CHECK([whether we have to add an underscore for dlsym], 818 [libltdl_cv_need_uscore], 819 [libltdl_cv_need_uscore=unknown 820 save_LIBS="$LIBS" 821 LIBS="$LIBS $LIBADD_DLOPEN" 822 _LT_TRY_DLOPEN_SELF( 823 [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes], 824 [], [libltdl_cv_need_uscore=cross]) 825 LIBS="$save_LIBS" 826 ]) 827 fi 828fi 829 830if test x"$libltdl_cv_need_uscore" = xyes; then 831 AC_DEFINE([NEED_USCORE], [1], 832 [Define if dlsym() requires a leading underscore in symbol names.]) 833fi 834])# LT_FUNC_DLSYM_USCORE 835 836# Old name: 837AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE]) 838dnl aclocal-1.4 backwards compatibility: 839dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], []) 840 841# Copyright (C) 2002-2013 Free Software Foundation, Inc. 842# 843# This file is free software; the Free Software Foundation 844# gives unlimited permission to copy and/or distribute it, 845# with or without modifications, as long as this notice is preserved. 846 847# AM_AUTOMAKE_VERSION(VERSION) 848# ---------------------------- 849# Automake X.Y traces this macro to ensure aclocal.m4 has been 850# generated from the m4 files accompanying Automake X.Y. 851# (This private macro should not be called outside this file.) 852AC_DEFUN([AM_AUTOMAKE_VERSION], 853[am__api_version='1.13' 854dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 855dnl require some minimum version. Point them to the right macro. 856m4_if([$1], [1.13.4], [], 857 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 858]) 859 860# _AM_AUTOCONF_VERSION(VERSION) 861# ----------------------------- 862# aclocal traces this macro to find the Autoconf version. 863# This is a private macro too. Using m4_define simplifies 864# the logic in aclocal, which can simply ignore this definition. 865m4_define([_AM_AUTOCONF_VERSION], []) 866 867# AM_SET_CURRENT_AUTOMAKE_VERSION 868# ------------------------------- 869# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 870# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 871AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 872[AM_AUTOMAKE_VERSION([1.13.4])dnl 873m4_ifndef([AC_AUTOCONF_VERSION], 874 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 875_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 876 877# Figure out how to run the assembler. -*- Autoconf -*- 878 879# Copyright (C) 2001-2013 Free Software Foundation, Inc. 880# 881# This file is free software; the Free Software Foundation 882# gives unlimited permission to copy and/or distribute it, 883# with or without modifications, as long as this notice is preserved. 884 885# AM_PROG_AS 886# ---------- 887AC_DEFUN([AM_PROG_AS], 888[# By default we simply use the C compiler to build assembly code. 889AC_REQUIRE([AC_PROG_CC]) 890test "${CCAS+set}" = set || CCAS=$CC 891test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 892AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) 893AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) 894_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl 895]) 896 897# AM_AUX_DIR_EXPAND -*- Autoconf -*- 898 899# Copyright (C) 2001-2013 Free Software Foundation, Inc. 900# 901# This file is free software; the Free Software Foundation 902# gives unlimited permission to copy and/or distribute it, 903# with or without modifications, as long as this notice is preserved. 904 905# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 906# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 907# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 908# 909# Of course, Automake must honor this variable whenever it calls a 910# tool from the auxiliary directory. The problem is that $srcdir (and 911# therefore $ac_aux_dir as well) can be either absolute or relative, 912# depending on how configure is run. This is pretty annoying, since 913# it makes $ac_aux_dir quite unusable in subdirectories: in the top 914# source directory, any form will work fine, but in subdirectories a 915# relative path needs to be adjusted first. 916# 917# $ac_aux_dir/missing 918# fails when called from a subdirectory if $ac_aux_dir is relative 919# $top_srcdir/$ac_aux_dir/missing 920# fails if $ac_aux_dir is absolute, 921# fails when called from a subdirectory in a VPATH build with 922# a relative $ac_aux_dir 923# 924# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 925# are both prefixed by $srcdir. In an in-source build this is usually 926# harmless because $srcdir is '.', but things will broke when you 927# start a VPATH build or use an absolute $srcdir. 928# 929# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 930# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 931# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 932# and then we would define $MISSING as 933# MISSING="\${SHELL} $am_aux_dir/missing" 934# This will work as long as MISSING is not called from configure, because 935# unfortunately $(top_srcdir) has no meaning in configure. 936# However there are other variables, like CC, which are often used in 937# configure, and could therefore not use this "fixed" $ac_aux_dir. 938# 939# Another solution, used here, is to always expand $ac_aux_dir to an 940# absolute PATH. The drawback is that using absolute paths prevent a 941# configured tree to be moved without reconfiguration. 942 943AC_DEFUN([AM_AUX_DIR_EXPAND], 944[dnl Rely on autoconf to set up CDPATH properly. 945AC_PREREQ([2.50])dnl 946# expand $ac_aux_dir to an absolute path 947am_aux_dir=`cd $ac_aux_dir && pwd` 948]) 949 950# AM_CONDITIONAL -*- Autoconf -*- 951 952# Copyright (C) 1997-2013 Free Software Foundation, Inc. 953# 954# This file is free software; the Free Software Foundation 955# gives unlimited permission to copy and/or distribute it, 956# with or without modifications, as long as this notice is preserved. 957 958# AM_CONDITIONAL(NAME, SHELL-CONDITION) 959# ------------------------------------- 960# Define a conditional. 961AC_DEFUN([AM_CONDITIONAL], 962[AC_PREREQ([2.52])dnl 963 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 964 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 965AC_SUBST([$1_TRUE])dnl 966AC_SUBST([$1_FALSE])dnl 967_AM_SUBST_NOTMAKE([$1_TRUE])dnl 968_AM_SUBST_NOTMAKE([$1_FALSE])dnl 969m4_define([_AM_COND_VALUE_$1], [$2])dnl 970if $2; then 971 $1_TRUE= 972 $1_FALSE='#' 973else 974 $1_TRUE='#' 975 $1_FALSE= 976fi 977AC_CONFIG_COMMANDS_PRE( 978[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 979 AC_MSG_ERROR([[conditional "$1" was never defined. 980Usually this means the macro was only invoked conditionally.]]) 981fi])]) 982 983# Copyright (C) 1999-2013 Free Software Foundation, Inc. 984# 985# This file is free software; the Free Software Foundation 986# gives unlimited permission to copy and/or distribute it, 987# with or without modifications, as long as this notice is preserved. 988 989 990# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 991# written in clear, in which case automake, when reading aclocal.m4, 992# will think it sees a *use*, and therefore will trigger all it's 993# C support machinery. Also note that it means that autoscan, seeing 994# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 995 996 997# _AM_DEPENDENCIES(NAME) 998# ---------------------- 999# See how the compiler implements dependency checking. 1000# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 1001# We try a few techniques and use that to set a single cache variable. 1002# 1003# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 1004# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 1005# dependency, and given that the user is not expected to run this macro, 1006# just rely on AC_PROG_CC. 1007AC_DEFUN([_AM_DEPENDENCIES], 1008[AC_REQUIRE([AM_SET_DEPDIR])dnl 1009AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 1010AC_REQUIRE([AM_MAKE_INCLUDE])dnl 1011AC_REQUIRE([AM_DEP_TRACK])dnl 1012 1013m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 1014 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 1015 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 1016 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 1017 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 1018 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 1019 [depcc="$$1" am_compiler_list=]) 1020 1021AC_CACHE_CHECK([dependency style of $depcc], 1022 [am_cv_$1_dependencies_compiler_type], 1023[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 1024 # We make a subdir and do the tests there. Otherwise we can end up 1025 # making bogus files that we don't know about and never remove. For 1026 # instance it was reported that on HP-UX the gcc test will end up 1027 # making a dummy file named 'D' -- because '-MD' means "put the output 1028 # in D". 1029 rm -rf conftest.dir 1030 mkdir conftest.dir 1031 # Copy depcomp to subdir because otherwise we won't find it if we're 1032 # using a relative directory. 1033 cp "$am_depcomp" conftest.dir 1034 cd conftest.dir 1035 # We will build objects and dependencies in a subdirectory because 1036 # it helps to detect inapplicable dependency modes. For instance 1037 # both Tru64's cc and ICC support -MD to output dependencies as a 1038 # side effect of compilation, but ICC will put the dependencies in 1039 # the current directory while Tru64 will put them in the object 1040 # directory. 1041 mkdir sub 1042 1043 am_cv_$1_dependencies_compiler_type=none 1044 if test "$am_compiler_list" = ""; then 1045 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 1046 fi 1047 am__universal=false 1048 m4_case([$1], [CC], 1049 [case " $depcc " in #( 1050 *\ -arch\ *\ -arch\ *) am__universal=true ;; 1051 esac], 1052 [CXX], 1053 [case " $depcc " in #( 1054 *\ -arch\ *\ -arch\ *) am__universal=true ;; 1055 esac]) 1056 1057 for depmode in $am_compiler_list; do 1058 # Setup a source with many dependencies, because some compilers 1059 # like to wrap large dependency lists on column 80 (with \), and 1060 # we should not choose a depcomp mode which is confused by this. 1061 # 1062 # We need to recreate these files for each test, as the compiler may 1063 # overwrite some of them when testing with obscure command lines. 1064 # This happens at least with the AIX C compiler. 1065 : > sub/conftest.c 1066 for i in 1 2 3 4 5 6; do 1067 echo '#include "conftst'$i'.h"' >> sub/conftest.c 1068 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 1069 # Solaris 10 /bin/sh. 1070 echo '/* dummy */' > sub/conftst$i.h 1071 done 1072 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 1073 1074 # We check with '-c' and '-o' for the sake of the "dashmstdout" 1075 # mode. It turns out that the SunPro C++ compiler does not properly 1076 # handle '-M -o', and we need to detect this. Also, some Intel 1077 # versions had trouble with output in subdirs. 1078 am__obj=sub/conftest.${OBJEXT-o} 1079 am__minus_obj="-o $am__obj" 1080 case $depmode in 1081 gcc) 1082 # This depmode causes a compiler race in universal mode. 1083 test "$am__universal" = false || continue 1084 ;; 1085 nosideeffect) 1086 # After this tag, mechanisms are not by side-effect, so they'll 1087 # only be used when explicitly requested. 1088 if test "x$enable_dependency_tracking" = xyes; then 1089 continue 1090 else 1091 break 1092 fi 1093 ;; 1094 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 1095 # This compiler won't grok '-c -o', but also, the minuso test has 1096 # not run yet. These depmodes are late enough in the game, and 1097 # so weak that their functioning should not be impacted. 1098 am__obj=conftest.${OBJEXT-o} 1099 am__minus_obj= 1100 ;; 1101 none) break ;; 1102 esac 1103 if depmode=$depmode \ 1104 source=sub/conftest.c object=$am__obj \ 1105 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 1106 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 1107 >/dev/null 2>conftest.err && 1108 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 1109 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 1110 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 1111 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 1112 # icc doesn't choke on unknown options, it will just issue warnings 1113 # or remarks (even with -Werror). So we grep stderr for any message 1114 # that says an option was ignored or not supported. 1115 # When given -MP, icc 7.0 and 7.1 complain thusly: 1116 # icc: Command line warning: ignoring option '-M'; no argument required 1117 # The diagnosis changed in icc 8.0: 1118 # icc: Command line remark: option '-MP' not supported 1119 if (grep 'ignoring option' conftest.err || 1120 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 1121 am_cv_$1_dependencies_compiler_type=$depmode 1122 break 1123 fi 1124 fi 1125 done 1126 1127 cd .. 1128 rm -rf conftest.dir 1129else 1130 am_cv_$1_dependencies_compiler_type=none 1131fi 1132]) 1133AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 1134AM_CONDITIONAL([am__fastdep$1], [ 1135 test "x$enable_dependency_tracking" != xno \ 1136 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 1137]) 1138 1139 1140# AM_SET_DEPDIR 1141# ------------- 1142# Choose a directory name for dependency files. 1143# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 1144AC_DEFUN([AM_SET_DEPDIR], 1145[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 1146AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 1147]) 1148 1149 1150# AM_DEP_TRACK 1151# ------------ 1152AC_DEFUN([AM_DEP_TRACK], 1153[AC_ARG_ENABLE([dependency-tracking], [dnl 1154AS_HELP_STRING( 1155 [--enable-dependency-tracking], 1156 [do not reject slow dependency extractors]) 1157AS_HELP_STRING( 1158 [--disable-dependency-tracking], 1159 [speeds up one-time build])]) 1160if test "x$enable_dependency_tracking" != xno; then 1161 am_depcomp="$ac_aux_dir/depcomp" 1162 AMDEPBACKSLASH='\' 1163 am__nodep='_no' 1164fi 1165AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 1166AC_SUBST([AMDEPBACKSLASH])dnl 1167_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 1168AC_SUBST([am__nodep])dnl 1169_AM_SUBST_NOTMAKE([am__nodep])dnl 1170]) 1171 1172# Generate code to set up dependency tracking. -*- Autoconf -*- 1173 1174# Copyright (C) 1999-2013 Free Software Foundation, Inc. 1175# 1176# This file is free software; the Free Software Foundation 1177# gives unlimited permission to copy and/or distribute it, 1178# with or without modifications, as long as this notice is preserved. 1179 1180 1181# _AM_OUTPUT_DEPENDENCY_COMMANDS 1182# ------------------------------ 1183AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 1184[{ 1185 # Older Autoconf quotes --file arguments for eval, but not when files 1186 # are listed without --file. Let's play safe and only enable the eval 1187 # if we detect the quoting. 1188 case $CONFIG_FILES in 1189 *\'*) eval set x "$CONFIG_FILES" ;; 1190 *) set x $CONFIG_FILES ;; 1191 esac 1192 shift 1193 for mf 1194 do 1195 # Strip MF so we end up with the name of the file. 1196 mf=`echo "$mf" | sed -e 's/:.*$//'` 1197 # Check whether this is an Automake generated Makefile or not. 1198 # We used to match only the files named 'Makefile.in', but 1199 # some people rename them; so instead we look at the file content. 1200 # Grep'ing the first line is not enough: some people post-process 1201 # each Makefile.in and add a new line on top of each file to say so. 1202 # Grep'ing the whole file is not good either: AIX grep has a line 1203 # limit of 2048, but all sed's we know have understand at least 4000. 1204 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 1205 dirpart=`AS_DIRNAME("$mf")` 1206 else 1207 continue 1208 fi 1209 # Extract the definition of DEPDIR, am__include, and am__quote 1210 # from the Makefile without running 'make'. 1211 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 1212 test -z "$DEPDIR" && continue 1213 am__include=`sed -n 's/^am__include = //p' < "$mf"` 1214 test -z "$am__include" && continue 1215 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 1216 # Find all dependency output files, they are included files with 1217 # $(DEPDIR) in their names. We invoke sed twice because it is the 1218 # simplest approach to changing $(DEPDIR) to its actual value in the 1219 # expansion. 1220 for file in `sed -n " 1221 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 1222 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 1223 # Make sure the directory exists. 1224 test -f "$dirpart/$file" && continue 1225 fdir=`AS_DIRNAME(["$file"])` 1226 AS_MKDIR_P([$dirpart/$fdir]) 1227 # echo "creating $dirpart/$file" 1228 echo '# dummy' > "$dirpart/$file" 1229 done 1230 done 1231} 1232])# _AM_OUTPUT_DEPENDENCY_COMMANDS 1233 1234 1235# AM_OUTPUT_DEPENDENCY_COMMANDS 1236# ----------------------------- 1237# This macro should only be invoked once -- use via AC_REQUIRE. 1238# 1239# This code is only required when automatic dependency tracking 1240# is enabled. FIXME. This creates each '.P' file that we will 1241# need in order to bootstrap the dependency handling code. 1242AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 1243[AC_CONFIG_COMMANDS([depfiles], 1244 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 1245 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 1246]) 1247 1248# Do all the work for Automake. -*- Autoconf -*- 1249 1250# Copyright (C) 1996-2013 Free Software Foundation, Inc. 1251# 1252# This file is free software; the Free Software Foundation 1253# gives unlimited permission to copy and/or distribute it, 1254# with or without modifications, as long as this notice is preserved. 1255 1256# This macro actually does too much. Some checks are only needed if 1257# your package does certain things. But this isn't really a big deal. 1258 1259# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 1260# AM_INIT_AUTOMAKE([OPTIONS]) 1261# ----------------------------------------------- 1262# The call with PACKAGE and VERSION arguments is the old style 1263# call (pre autoconf-2.50), which is being phased out. PACKAGE 1264# and VERSION should now be passed to AC_INIT and removed from 1265# the call to AM_INIT_AUTOMAKE. 1266# We support both call styles for the transition. After 1267# the next Automake release, Autoconf can make the AC_INIT 1268# arguments mandatory, and then we can depend on a new Autoconf 1269# release and drop the old call support. 1270AC_DEFUN([AM_INIT_AUTOMAKE], 1271[AC_PREREQ([2.65])dnl 1272dnl Autoconf wants to disallow AM_ names. We explicitly allow 1273dnl the ones we care about. 1274m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 1275AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 1276AC_REQUIRE([AC_PROG_INSTALL])dnl 1277if test "`cd $srcdir && pwd`" != "`pwd`"; then 1278 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 1279 # is not polluted with repeated "-I." 1280 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 1281 # test to see if srcdir already configured 1282 if test -f $srcdir/config.status; then 1283 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 1284 fi 1285fi 1286 1287# test whether we have cygpath 1288if test -z "$CYGPATH_W"; then 1289 if (cygpath --version) >/dev/null 2>/dev/null; then 1290 CYGPATH_W='cygpath -w' 1291 else 1292 CYGPATH_W=echo 1293 fi 1294fi 1295AC_SUBST([CYGPATH_W]) 1296 1297# Define the identity of the package. 1298dnl Distinguish between old-style and new-style calls. 1299m4_ifval([$2], 1300[AC_DIAGNOSE([obsolete], 1301 [$0: two- and three-arguments forms are deprecated.]) 1302m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 1303 AC_SUBST([PACKAGE], [$1])dnl 1304 AC_SUBST([VERSION], [$2])], 1305[_AM_SET_OPTIONS([$1])dnl 1306dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 1307m4_if( 1308 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 1309 [ok:ok],, 1310 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 1311 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 1312 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 1313 1314_AM_IF_OPTION([no-define],, 1315[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 1316 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 1317 1318# Some tools Automake needs. 1319AC_REQUIRE([AM_SANITY_CHECK])dnl 1320AC_REQUIRE([AC_ARG_PROGRAM])dnl 1321AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 1322AM_MISSING_PROG([AUTOCONF], [autoconf]) 1323AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 1324AM_MISSING_PROG([AUTOHEADER], [autoheader]) 1325AM_MISSING_PROG([MAKEINFO], [makeinfo]) 1326AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1327AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 1328AC_REQUIRE([AC_PROG_MKDIR_P])dnl 1329# For better backward compatibility. To be removed once Automake 1.9.x 1330# dies out for good. For more background, see: 1331# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 1332# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 1333AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 1334# We need awk for the "check" target. The system "awk" is bad on 1335# some platforms. 1336AC_REQUIRE([AC_PROG_AWK])dnl 1337AC_REQUIRE([AC_PROG_MAKE_SET])dnl 1338AC_REQUIRE([AM_SET_LEADING_DOT])dnl 1339_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 1340 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 1341 [_AM_PROG_TAR([v7])])]) 1342_AM_IF_OPTION([no-dependencies],, 1343[AC_PROVIDE_IFELSE([AC_PROG_CC], 1344 [_AM_DEPENDENCIES([CC])], 1345 [m4_define([AC_PROG_CC], 1346 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 1347AC_PROVIDE_IFELSE([AC_PROG_CXX], 1348 [_AM_DEPENDENCIES([CXX])], 1349 [m4_define([AC_PROG_CXX], 1350 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 1351AC_PROVIDE_IFELSE([AC_PROG_OBJC], 1352 [_AM_DEPENDENCIES([OBJC])], 1353 [m4_define([AC_PROG_OBJC], 1354 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 1355AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 1356 [_AM_DEPENDENCIES([OBJCXX])], 1357 [m4_define([AC_PROG_OBJCXX], 1358 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 1359]) 1360AC_REQUIRE([AM_SILENT_RULES])dnl 1361dnl The testsuite driver may need to know about EXEEXT, so add the 1362dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 1363dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 1364AC_CONFIG_COMMANDS_PRE(dnl 1365[m4_provide_if([_AM_COMPILER_EXEEXT], 1366 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 1367]) 1368 1369dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 1370dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 1371dnl mangled by Autoconf and run in a shell conditional statement. 1372m4_define([_AC_COMPILER_EXEEXT], 1373m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 1374 1375 1376# When config.status generates a header, we must update the stamp-h file. 1377# This file resides in the same directory as the config header 1378# that is generated. The stamp files are numbered to have different names. 1379 1380# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 1381# loop where config.status creates the headers, so we can generate 1382# our stamp files there. 1383AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 1384[# Compute $1's index in $config_headers. 1385_am_arg=$1 1386_am_stamp_count=1 1387for _am_header in $config_headers :; do 1388 case $_am_header in 1389 $_am_arg | $_am_arg:* ) 1390 break ;; 1391 * ) 1392 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 1393 esac 1394done 1395echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 1396 1397# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1398# 1399# This file is free software; the Free Software Foundation 1400# gives unlimited permission to copy and/or distribute it, 1401# with or without modifications, as long as this notice is preserved. 1402 1403# AM_PROG_INSTALL_SH 1404# ------------------ 1405# Define $install_sh. 1406AC_DEFUN([AM_PROG_INSTALL_SH], 1407[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1408if test x"${install_sh}" != xset; then 1409 case $am_aux_dir in 1410 *\ * | *\ *) 1411 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 1412 *) 1413 install_sh="\${SHELL} $am_aux_dir/install-sh" 1414 esac 1415fi 1416AC_SUBST([install_sh])]) 1417 1418# Copyright (C) 2003-2013 Free Software Foundation, Inc. 1419# 1420# This file is free software; the Free Software Foundation 1421# gives unlimited permission to copy and/or distribute it, 1422# with or without modifications, as long as this notice is preserved. 1423 1424# Check whether the underlying file-system supports filenames 1425# with a leading dot. For instance MS-DOS doesn't. 1426AC_DEFUN([AM_SET_LEADING_DOT], 1427[rm -rf .tst 2>/dev/null 1428mkdir .tst 2>/dev/null 1429if test -d .tst; then 1430 am__leading_dot=. 1431else 1432 am__leading_dot=_ 1433fi 1434rmdir .tst 2>/dev/null 1435AC_SUBST([am__leading_dot])]) 1436 1437# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 1438# From Jim Meyering 1439 1440# Copyright (C) 1996-2013 Free Software Foundation, Inc. 1441# 1442# This file is free software; the Free Software Foundation 1443# gives unlimited permission to copy and/or distribute it, 1444# with or without modifications, as long as this notice is preserved. 1445 1446# AM_MAINTAINER_MODE([DEFAULT-MODE]) 1447# ---------------------------------- 1448# Control maintainer-specific portions of Makefiles. 1449# Default is to disable them, unless 'enable' is passed literally. 1450# For symmetry, 'disable' may be passed as well. Anyway, the user 1451# can override the default with the --enable/--disable switch. 1452AC_DEFUN([AM_MAINTAINER_MODE], 1453[m4_case(m4_default([$1], [disable]), 1454 [enable], [m4_define([am_maintainer_other], [disable])], 1455 [disable], [m4_define([am_maintainer_other], [enable])], 1456 [m4_define([am_maintainer_other], [enable]) 1457 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 1458AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 1459 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 1460 AC_ARG_ENABLE([maintainer-mode], 1461 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 1462 am_maintainer_other[ make rules and dependencies not useful 1463 (and sometimes confusing) to the casual installer])], 1464 [USE_MAINTAINER_MODE=$enableval], 1465 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 1466 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 1467 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 1468 MAINT=$MAINTAINER_MODE_TRUE 1469 AC_SUBST([MAINT])dnl 1470] 1471) 1472 1473# Check to see how 'make' treats includes. -*- Autoconf -*- 1474 1475# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1476# 1477# This file is free software; the Free Software Foundation 1478# gives unlimited permission to copy and/or distribute it, 1479# with or without modifications, as long as this notice is preserved. 1480 1481# AM_MAKE_INCLUDE() 1482# ----------------- 1483# Check to see how make treats includes. 1484AC_DEFUN([AM_MAKE_INCLUDE], 1485[am_make=${MAKE-make} 1486cat > confinc << 'END' 1487am__doit: 1488 @echo this is the am__doit target 1489.PHONY: am__doit 1490END 1491# If we don't find an include directive, just comment out the code. 1492AC_MSG_CHECKING([for style of include used by $am_make]) 1493am__include="#" 1494am__quote= 1495_am_result=none 1496# First try GNU make style include. 1497echo "include confinc" > confmf 1498# Ignore all kinds of additional output from 'make'. 1499case `$am_make -s -f confmf 2> /dev/null` in #( 1500*the\ am__doit\ target*) 1501 am__include=include 1502 am__quote= 1503 _am_result=GNU 1504 ;; 1505esac 1506# Now try BSD make style include. 1507if test "$am__include" = "#"; then 1508 echo '.include "confinc"' > confmf 1509 case `$am_make -s -f confmf 2> /dev/null` in #( 1510 *the\ am__doit\ target*) 1511 am__include=.include 1512 am__quote="\"" 1513 _am_result=BSD 1514 ;; 1515 esac 1516fi 1517AC_SUBST([am__include]) 1518AC_SUBST([am__quote]) 1519AC_MSG_RESULT([$_am_result]) 1520rm -f confinc confmf 1521]) 1522 1523# Copyright (C) 1999-2013 Free Software Foundation, Inc. 1524# 1525# This file is free software; the Free Software Foundation 1526# gives unlimited permission to copy and/or distribute it, 1527# with or without modifications, as long as this notice is preserved. 1528 1529# AM_PROG_CC_C_O 1530# -------------- 1531# Like AC_PROG_CC_C_O, but changed for automake. 1532AC_DEFUN([AM_PROG_CC_C_O], 1533[AC_REQUIRE([AC_PROG_CC_C_O])dnl 1534AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1535AC_REQUIRE_AUX_FILE([compile])dnl 1536# FIXME: we rely on the cache variable name because 1537# there is no other way. 1538set dummy $CC 1539am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` 1540eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 1541if test "$am_t" != yes; then 1542 # Losing compiler, so override with the script. 1543 # FIXME: It is wrong to rewrite CC. 1544 # But if we don't then we get into trouble of one sort or another. 1545 # A longer-term fix would be to have automake use am__CC in this case, 1546 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 1547 CC="$am_aux_dir/compile $CC" 1548fi 1549dnl Make sure AC_PROG_CC is never called again, or it will override our 1550dnl setting of CC. 1551m4_define([AC_PROG_CC], 1552 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) 1553]) 1554 1555# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 1556 1557# Copyright (C) 1997-2013 Free Software Foundation, Inc. 1558# 1559# This file is free software; the Free Software Foundation 1560# gives unlimited permission to copy and/or distribute it, 1561# with or without modifications, as long as this notice is preserved. 1562 1563# AM_MISSING_PROG(NAME, PROGRAM) 1564# ------------------------------ 1565AC_DEFUN([AM_MISSING_PROG], 1566[AC_REQUIRE([AM_MISSING_HAS_RUN]) 1567$1=${$1-"${am_missing_run}$2"} 1568AC_SUBST($1)]) 1569 1570# AM_MISSING_HAS_RUN 1571# ------------------ 1572# Define MISSING if not defined so far and test if it is modern enough. 1573# If it is, set am_missing_run to use it, otherwise, to nothing. 1574AC_DEFUN([AM_MISSING_HAS_RUN], 1575[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1576AC_REQUIRE_AUX_FILE([missing])dnl 1577if test x"${MISSING+set}" != xset; then 1578 case $am_aux_dir in 1579 *\ * | *\ *) 1580 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 1581 *) 1582 MISSING="\${SHELL} $am_aux_dir/missing" ;; 1583 esac 1584fi 1585# Use eval to expand $SHELL 1586if eval "$MISSING --is-lightweight"; then 1587 am_missing_run="$MISSING " 1588else 1589 am_missing_run= 1590 AC_MSG_WARN(['missing' script is too old or missing]) 1591fi 1592]) 1593 1594# Helper functions for option handling. -*- Autoconf -*- 1595 1596# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1597# 1598# This file is free software; the Free Software Foundation 1599# gives unlimited permission to copy and/or distribute it, 1600# with or without modifications, as long as this notice is preserved. 1601 1602# _AM_MANGLE_OPTION(NAME) 1603# ----------------------- 1604AC_DEFUN([_AM_MANGLE_OPTION], 1605[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 1606 1607# _AM_SET_OPTION(NAME) 1608# -------------------- 1609# Set option NAME. Presently that only means defining a flag for this option. 1610AC_DEFUN([_AM_SET_OPTION], 1611[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 1612 1613# _AM_SET_OPTIONS(OPTIONS) 1614# ------------------------ 1615# OPTIONS is a space-separated list of Automake options. 1616AC_DEFUN([_AM_SET_OPTIONS], 1617[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 1618 1619# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 1620# ------------------------------------------- 1621# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 1622AC_DEFUN([_AM_IF_OPTION], 1623[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 1624 1625# Check to make sure that the build environment is sane. -*- Autoconf -*- 1626 1627# Copyright (C) 1996-2013 Free Software Foundation, Inc. 1628# 1629# This file is free software; the Free Software Foundation 1630# gives unlimited permission to copy and/or distribute it, 1631# with or without modifications, as long as this notice is preserved. 1632 1633# AM_SANITY_CHECK 1634# --------------- 1635AC_DEFUN([AM_SANITY_CHECK], 1636[AC_MSG_CHECKING([whether build environment is sane]) 1637# Reject unsafe characters in $srcdir or the absolute working directory 1638# name. Accept space and tab only in the latter. 1639am_lf=' 1640' 1641case `pwd` in 1642 *[[\\\"\#\$\&\'\`$am_lf]]*) 1643 AC_MSG_ERROR([unsafe absolute working directory name]);; 1644esac 1645case $srcdir in 1646 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 1647 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 1648esac 1649 1650# Do 'set' in a subshell so we don't clobber the current shell's 1651# arguments. Must try -L first in case configure is actually a 1652# symlink; some systems play weird games with the mod time of symlinks 1653# (eg FreeBSD returns the mod time of the symlink's containing 1654# directory). 1655if ( 1656 am_has_slept=no 1657 for am_try in 1 2; do 1658 echo "timestamp, slept: $am_has_slept" > conftest.file 1659 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1660 if test "$[*]" = "X"; then 1661 # -L didn't work. 1662 set X `ls -t "$srcdir/configure" conftest.file` 1663 fi 1664 if test "$[*]" != "X $srcdir/configure conftest.file" \ 1665 && test "$[*]" != "X conftest.file $srcdir/configure"; then 1666 1667 # If neither matched, then we have a broken ls. This can happen 1668 # if, for instance, CONFIG_SHELL is bash and it inherits a 1669 # broken ls alias from the environment. This has actually 1670 # happened. Such a system could not be considered "sane". 1671 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1672 alias in your environment]) 1673 fi 1674 if test "$[2]" = conftest.file || test $am_try -eq 2; then 1675 break 1676 fi 1677 # Just in case. 1678 sleep 1 1679 am_has_slept=yes 1680 done 1681 test "$[2]" = conftest.file 1682 ) 1683then 1684 # Ok. 1685 : 1686else 1687 AC_MSG_ERROR([newly created file is older than distributed files! 1688Check your system clock]) 1689fi 1690AC_MSG_RESULT([yes]) 1691# If we didn't sleep, we still need to ensure time stamps of config.status and 1692# generated files are strictly newer. 1693am_sleep_pid= 1694if grep 'slept: no' conftest.file >/dev/null 2>&1; then 1695 ( sleep 1 ) & 1696 am_sleep_pid=$! 1697fi 1698AC_CONFIG_COMMANDS_PRE( 1699 [AC_MSG_CHECKING([that generated files are newer than configure]) 1700 if test -n "$am_sleep_pid"; then 1701 # Hide warnings about reused PIDs. 1702 wait $am_sleep_pid 2>/dev/null 1703 fi 1704 AC_MSG_RESULT([done])]) 1705rm -f conftest.file 1706]) 1707 1708# Copyright (C) 2009-2013 Free Software Foundation, Inc. 1709# 1710# This file is free software; the Free Software Foundation 1711# gives unlimited permission to copy and/or distribute it, 1712# with or without modifications, as long as this notice is preserved. 1713 1714# AM_SILENT_RULES([DEFAULT]) 1715# -------------------------- 1716# Enable less verbose build rules; with the default set to DEFAULT 1717# ("yes" being less verbose, "no" or empty being verbose). 1718AC_DEFUN([AM_SILENT_RULES], 1719[AC_ARG_ENABLE([silent-rules], [dnl 1720AS_HELP_STRING( 1721 [--enable-silent-rules], 1722 [less verbose build output (undo: "make V=1")]) 1723AS_HELP_STRING( 1724 [--disable-silent-rules], 1725 [verbose build output (undo: "make V=0")])dnl 1726]) 1727case $enable_silent_rules in @%:@ ((( 1728 yes) AM_DEFAULT_VERBOSITY=0;; 1729 no) AM_DEFAULT_VERBOSITY=1;; 1730 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1731esac 1732dnl 1733dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 1734dnl do not support nested variable expansions. 1735dnl See automake bug#9928 and bug#10237. 1736am_make=${MAKE-make} 1737AC_CACHE_CHECK([whether $am_make supports nested variables], 1738 [am_cv_make_support_nested_variables], 1739 [if AS_ECHO([['TRUE=$(BAR$(V)) 1740BAR0=false 1741BAR1=true 1742V=1 1743am__doit: 1744 @$(TRUE) 1745.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1746 am_cv_make_support_nested_variables=yes 1747else 1748 am_cv_make_support_nested_variables=no 1749fi]) 1750if test $am_cv_make_support_nested_variables = yes; then 1751 dnl Using '$V' instead of '$(V)' breaks IRIX make. 1752 AM_V='$(V)' 1753 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1754else 1755 AM_V=$AM_DEFAULT_VERBOSITY 1756 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1757fi 1758AC_SUBST([AM_V])dnl 1759AM_SUBST_NOTMAKE([AM_V])dnl 1760AC_SUBST([AM_DEFAULT_V])dnl 1761AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1762AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1763AM_BACKSLASH='\' 1764AC_SUBST([AM_BACKSLASH])dnl 1765_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1766]) 1767 1768# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1769# 1770# This file is free software; the Free Software Foundation 1771# gives unlimited permission to copy and/or distribute it, 1772# with or without modifications, as long as this notice is preserved. 1773 1774# AM_PROG_INSTALL_STRIP 1775# --------------------- 1776# One issue with vendor 'install' (even GNU) is that you can't 1777# specify the program used to strip binaries. This is especially 1778# annoying in cross-compiling environments, where the build's strip 1779# is unlikely to handle the host's binaries. 1780# Fortunately install-sh will honor a STRIPPROG variable, so we 1781# always use install-sh in "make install-strip", and initialize 1782# STRIPPROG with the value of the STRIP variable (set by the user). 1783AC_DEFUN([AM_PROG_INSTALL_STRIP], 1784[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1785# Installed binaries are usually stripped using 'strip' when the user 1786# run "make install-strip". However 'strip' might not be the right 1787# tool to use in cross-compilation environments, therefore Automake 1788# will honor the 'STRIP' environment variable to overrule this program. 1789dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1790if test "$cross_compiling" != no; then 1791 AC_CHECK_TOOL([STRIP], [strip], :) 1792fi 1793INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1794AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1795 1796# Copyright (C) 2006-2013 Free Software Foundation, Inc. 1797# 1798# This file is free software; the Free Software Foundation 1799# gives unlimited permission to copy and/or distribute it, 1800# with or without modifications, as long as this notice is preserved. 1801 1802# _AM_SUBST_NOTMAKE(VARIABLE) 1803# --------------------------- 1804# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1805# This macro is traced by Automake. 1806AC_DEFUN([_AM_SUBST_NOTMAKE]) 1807 1808# AM_SUBST_NOTMAKE(VARIABLE) 1809# -------------------------- 1810# Public sister of _AM_SUBST_NOTMAKE. 1811AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1812 1813# Check how to create a tarball. -*- Autoconf -*- 1814 1815# Copyright (C) 2004-2013 Free Software Foundation, Inc. 1816# 1817# This file is free software; the Free Software Foundation 1818# gives unlimited permission to copy and/or distribute it, 1819# with or without modifications, as long as this notice is preserved. 1820 1821# _AM_PROG_TAR(FORMAT) 1822# -------------------- 1823# Check how to create a tarball in format FORMAT. 1824# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1825# 1826# Substitute a variable $(am__tar) that is a command 1827# writing to stdout a FORMAT-tarball containing the directory 1828# $tardir. 1829# tardir=directory && $(am__tar) > result.tar 1830# 1831# Substitute a variable $(am__untar) that extract such 1832# a tarball read from stdin. 1833# $(am__untar) < result.tar 1834# 1835AC_DEFUN([_AM_PROG_TAR], 1836[# Always define AMTAR for backward compatibility. Yes, it's still used 1837# in the wild :-( We should find a proper way to deprecate it ... 1838AC_SUBST([AMTAR], ['$${TAR-tar}']) 1839 1840# We'll loop over all known methods to create a tar archive until one works. 1841_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1842 1843m4_if([$1], [v7], 1844 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1845 1846 [m4_case([$1], 1847 [ustar], 1848 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1849 # There is notably a 21 bits limit for the UID and the GID. In fact, 1850 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1851 # and bug#13588). 1852 am_max_uid=2097151 # 2^21 - 1 1853 am_max_gid=$am_max_uid 1854 # The $UID and $GID variables are not portable, so we need to resort 1855 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1856 # below are definitely unexpected, so allow the users to see them 1857 # (that is, avoid stderr redirection). 1858 am_uid=`id -u || echo unknown` 1859 am_gid=`id -g || echo unknown` 1860 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1861 if test $am_uid -le $am_max_uid; then 1862 AC_MSG_RESULT([yes]) 1863 else 1864 AC_MSG_RESULT([no]) 1865 _am_tools=none 1866 fi 1867 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1868 if test $am_gid -le $am_max_gid; then 1869 AC_MSG_RESULT([yes]) 1870 else 1871 AC_MSG_RESULT([no]) 1872 _am_tools=none 1873 fi], 1874 1875 [pax], 1876 [], 1877 1878 [m4_fatal([Unknown tar format])]) 1879 1880 AC_MSG_CHECKING([how to create a $1 tar archive]) 1881 1882 # Go ahead even if we have the value already cached. We do so because we 1883 # need to set the values for the 'am__tar' and 'am__untar' variables. 1884 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1885 1886 for _am_tool in $_am_tools; do 1887 case $_am_tool in 1888 gnutar) 1889 for _am_tar in tar gnutar gtar; do 1890 AM_RUN_LOG([$_am_tar --version]) && break 1891 done 1892 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1893 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1894 am__untar="$_am_tar -xf -" 1895 ;; 1896 plaintar) 1897 # Must skip GNU tar: if it does not support --format= it doesn't create 1898 # ustar tarball either. 1899 (tar --version) >/dev/null 2>&1 && continue 1900 am__tar='tar chf - "$$tardir"' 1901 am__tar_='tar chf - "$tardir"' 1902 am__untar='tar xf -' 1903 ;; 1904 pax) 1905 am__tar='pax -L -x $1 -w "$$tardir"' 1906 am__tar_='pax -L -x $1 -w "$tardir"' 1907 am__untar='pax -r' 1908 ;; 1909 cpio) 1910 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1911 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1912 am__untar='cpio -i -H $1 -d' 1913 ;; 1914 none) 1915 am__tar=false 1916 am__tar_=false 1917 am__untar=false 1918 ;; 1919 esac 1920 1921 # If the value was cached, stop now. We just wanted to have am__tar 1922 # and am__untar set. 1923 test -n "${am_cv_prog_tar_$1}" && break 1924 1925 # tar/untar a dummy directory, and stop if the command works. 1926 rm -rf conftest.dir 1927 mkdir conftest.dir 1928 echo GrepMe > conftest.dir/file 1929 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1930 rm -rf conftest.dir 1931 if test -s conftest.tar; then 1932 AM_RUN_LOG([$am__untar <conftest.tar]) 1933 AM_RUN_LOG([cat conftest.dir/file]) 1934 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1935 fi 1936 done 1937 rm -rf conftest.dir 1938 1939 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1940 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1941 1942AC_SUBST([am__tar]) 1943AC_SUBST([am__untar]) 1944]) # _AM_PROG_TAR 1945 1946m4_include([m4/asmcfi.m4]) 1947m4_include([m4/ax_append_flag.m4]) 1948m4_include([m4/ax_cc_maxopt.m4]) 1949m4_include([m4/ax_cflags_warn_all.m4]) 1950m4_include([m4/ax_check_compile_flag.m4]) 1951m4_include([m4/ax_compiler_vendor.m4]) 1952m4_include([m4/ax_configure_args.m4]) 1953m4_include([m4/ax_enable_builddir.m4]) 1954m4_include([m4/ax_gcc_archflag.m4]) 1955m4_include([m4/ax_gcc_x86_cpuid.m4]) 1956m4_include([m4/libtool.m4]) 1957m4_include([m4/ltoptions.m4]) 1958m4_include([m4/ltsugar.m4]) 1959m4_include([m4/ltversion.m4]) 1960m4_include([m4/lt~obsolete.m4]) 1961m4_include([acinclude.m4]) 1962