1# generated automatically by aclocal 1.16.1 -*- Autoconf -*- 2 3# Copyright (C) 1996-2018 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# Copyright (C) 1995-2002 Free Software Foundation, Inc. 24# Copyright (C) 2001-2003,2004 Red Hat, Inc. 25# 26# This file is free software, distributed under the terms of the GNU 27# General Public License. As a special exception to the GNU General 28# Public License, this file may be distributed as part of a program 29# that contains a configuration script generated by Autoconf, under 30# the same distribution terms as the rest of that program. 31# 32# This file can be copied and used freely without restrictions. It can 33# be used in projects which are not available under the GNU Public License 34# but which still want to provide support for the GNU gettext functionality. 35# 36# Macro to add for using GNU gettext. 37# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 38# 39# Modified to never use included libintl. 40# Owen Taylor <otaylor@redhat.com>, 12/15/1998 41# 42# Major rework to remove unused code 43# Owen Taylor <otaylor@redhat.com>, 12/11/2002 44# 45# Added better handling of ALL_LINGUAS from GNU gettext version 46# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 47# 48# Modified to require ngettext 49# Matthias Clasen <mclasen@redhat.com> 08/06/2004 50 51# Increment this whenever this file is changed. 52#serial 1 53 54# We need this here as well, since someone might use autoconf-2.5x 55# to configure GLib then an older version to configure a package 56# using AM_GLIB_GNU_GETTEXT 57AC_PREREQ(2.53) 58 59dnl 60dnl We go to great lengths to make sure that aclocal won't 61dnl try to pull in the installed version of these macros 62dnl when running aclocal in the glib directory. 63dnl 64m4_copy([AC_DEFUN],[glib_DEFUN]) 65m4_copy([AC_REQUIRE],[glib_REQUIRE]) 66dnl 67dnl At the end, if we're not within glib, we'll define the public 68dnl definitions in terms of our private definitions. 69dnl 70 71# GLIB_LC_MESSAGES 72#-------------------- 73glib_DEFUN([GLIB_LC_MESSAGES], 74 [AC_CHECK_HEADERS([locale.h]) 75 if test $ac_cv_header_locale_h = yes; then 76 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, 77 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], 78 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) 79 if test $am_cv_val_LC_MESSAGES = yes; then 80 AC_DEFINE(HAVE_LC_MESSAGES, 1, 81 [Define if your <locale.h> file defines LC_MESSAGES.]) 82 fi 83 fi]) 84 85# GLIB_PATH_PROG_WITH_TEST 86#---------------------------- 87dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 88dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 89glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], 90[# Extract the first word of "$2", so it can be a program name with args. 91set dummy $2; ac_word=[$]2 92AC_MSG_CHECKING([for $ac_word]) 93AC_CACHE_VAL(ac_cv_path_$1, 94[case "[$]$1" in 95 /*) 96 ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 97 ;; 98 *) 99 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 100 for ac_dir in ifelse([$5], , $PATH, [$5]); do 101 test -z "$ac_dir" && ac_dir=. 102 if test -f $ac_dir/$ac_word; then 103 if [$3]; then 104 ac_cv_path_$1="$ac_dir/$ac_word" 105 break 106 fi 107 fi 108 done 109 IFS="$ac_save_ifs" 110dnl If no 4th arg is given, leave the cache variable unset, 111dnl so AC_PATH_PROGS will keep looking. 112ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 113])dnl 114 ;; 115esac])dnl 116$1="$ac_cv_path_$1" 117if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 118 AC_MSG_RESULT([$]$1) 119else 120 AC_MSG_RESULT(no) 121fi 122AC_SUBST($1)dnl 123]) 124 125dnl Checks for special options needed on Mac OS X. 126dnl Defines INTL_MACOSX_LIBS. 127dnl 128dnl Copied from intlmacosx.m4 in gettext, GPL. 129dnl Copyright (C) 2004-2013 Free Software Foundation, Inc. 130glib_DEFUN([glib_gt_INTL_MACOSX], 131[ 132 dnl Check for API introduced in Mac OS X 10.2. 133 AC_CACHE_CHECK([for CFPreferencesCopyAppValue], 134 [gt_cv_func_CFPreferencesCopyAppValue], 135 [gt_save_LIBS="$LIBS" 136 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 137 AC_LINK_IFELSE( 138 [AC_LANG_PROGRAM( 139 [[#include <CoreFoundation/CFPreferences.h>]], 140 [[CFPreferencesCopyAppValue(NULL, NULL)]])], 141 [gt_cv_func_CFPreferencesCopyAppValue=yes], 142 [gt_cv_func_CFPreferencesCopyAppValue=no]) 143 LIBS="$gt_save_LIBS"]) 144 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 145 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], 146 [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) 147 fi 148 dnl Check for API introduced in Mac OS X 10.3. 149 AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], 150 [gt_save_LIBS="$LIBS" 151 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 152 AC_LINK_IFELSE( 153 [AC_LANG_PROGRAM( 154 [[#include <CoreFoundation/CFLocale.h>]], 155 [[CFLocaleCopyCurrent();]])], 156 [gt_cv_func_CFLocaleCopyCurrent=yes], 157 [gt_cv_func_CFLocaleCopyCurrent=no]) 158 LIBS="$gt_save_LIBS"]) 159 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 160 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], 161 [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) 162 fi 163 INTL_MACOSX_LIBS= 164 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 165 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 166 fi 167 AC_SUBST([INTL_MACOSX_LIBS]) 168]) 169 170# GLIB_WITH_NLS 171#----------------- 172glib_DEFUN([GLIB_WITH_NLS], 173 dnl NLS is obligatory 174 [USE_NLS=yes 175 AC_SUBST(USE_NLS) 176 177 gt_cv_have_gettext=no 178 179 CATOBJEXT=NONE 180 XGETTEXT=: 181 INTLLIBS= 182 183 glib_gt_INTL_MACOSX 184 185 AC_CHECK_HEADER(libintl.h, 186 [gt_cv_func_dgettext_libintl="no" 187 libintl_extra_libs="" 188 189 # 190 # First check in libc 191 # 192 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, 193 [AC_TRY_LINK([ 194#include <libintl.h> 195], 196 [return !ngettext ("","", 1)], 197 gt_cv_func_ngettext_libc=yes, 198 gt_cv_func_ngettext_libc=no) 199 ]) 200 201 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 202 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, 203 [AC_TRY_LINK([ 204#include <libintl.h> 205], 206 [return !dgettext ("","")], 207 gt_cv_func_dgettext_libc=yes, 208 gt_cv_func_dgettext_libc=no) 209 ]) 210 fi 211 212 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 213 AC_CHECK_FUNCS(bind_textdomain_codeset) 214 fi 215 216 # 217 # If we don't have everything we want, check in libintl 218 # 219 if test "$gt_cv_func_dgettext_libc" != "yes" \ 220 || test "$gt_cv_func_ngettext_libc" != "yes" \ 221 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 222 223 AC_CHECK_LIB(intl, bindtextdomain, 224 [AC_CHECK_LIB(intl, ngettext, 225 [AC_CHECK_LIB(intl, dgettext, 226 gt_cv_func_dgettext_libintl=yes)])]) 227 228 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 229 AC_MSG_CHECKING([if -liconv is needed to use gettext]) 230 AC_MSG_RESULT([]) 231 AC_CHECK_LIB(intl, ngettext, 232 [AC_CHECK_LIB(intl, dcgettext, 233 [gt_cv_func_dgettext_libintl=yes 234 libintl_extra_libs=-liconv], 235 :,-liconv)], 236 :,-liconv) 237 fi 238 239 # 240 # If we found libintl, then check in it for bind_textdomain_codeset(); 241 # we'll prefer libc if neither have bind_textdomain_codeset(), 242 # and both have dgettext and ngettext 243 # 244 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 245 glib_save_LIBS="$LIBS" 246 LIBS="$LIBS -lintl $libintl_extra_libs" 247 unset ac_cv_func_bind_textdomain_codeset 248 AC_CHECK_FUNCS(bind_textdomain_codeset) 249 LIBS="$glib_save_LIBS" 250 251 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 252 gt_cv_func_dgettext_libc=no 253 else 254 if test "$gt_cv_func_dgettext_libc" = "yes" \ 255 && test "$gt_cv_func_ngettext_libc" = "yes"; then 256 gt_cv_func_dgettext_libintl=no 257 fi 258 fi 259 fi 260 fi 261 262 if test "$gt_cv_func_dgettext_libc" = "yes" \ 263 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 264 gt_cv_have_gettext=yes 265 fi 266 267 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 268 INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS" 269 fi 270 271 if test "$gt_cv_have_gettext" = "yes"; then 272 AC_DEFINE(HAVE_GETTEXT,1, 273 [Define if the GNU gettext() function is already present or preinstalled.]) 274 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 275 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl 276 if test "$MSGFMT" != "no"; then 277 glib_save_LIBS="$LIBS" 278 LIBS="$LIBS $INTLLIBS" 279 AC_CHECK_FUNCS(dcgettext) 280 MSGFMT_OPTS= 281 AC_MSG_CHECKING([if msgfmt accepts -c]) 282 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ 283msgid "" 284msgstr "" 285"Content-Type: text/plain; charset=UTF-8\n" 286"Project-Id-Version: test 1.0\n" 287"PO-Revision-Date: 2007-02-15 12:01+0100\n" 288"Last-Translator: test <foo@bar.xx>\n" 289"Language-Team: C <LL@li.org>\n" 290"MIME-Version: 1.0\n" 291"Content-Transfer-Encoding: 8bit\n" 292], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) 293 AC_SUBST(MSGFMT_OPTS) 294 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 295 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 296 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) 297 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; 298 return _nl_msg_cat_cntr], 299 [CATOBJEXT=.gmo 300 DATADIRNAME=share], 301 [case $host in 302 *-*-solaris*) 303 dnl On Solaris, if bind_textdomain_codeset is in libc, 304 dnl GNU format message catalog is always supported, 305 dnl since both are added to the libc all together. 306 dnl Hence, we'd like to go with DATADIRNAME=share and 307 dnl and CATOBJEXT=.gmo in this case. 308 AC_CHECK_FUNC(bind_textdomain_codeset, 309 [CATOBJEXT=.gmo 310 DATADIRNAME=share], 311 [CATOBJEXT=.mo 312 DATADIRNAME=lib]) 313 ;; 314 *-*-openbsd*) 315 CATOBJEXT=.mo 316 DATADIRNAME=share 317 ;; 318 *) 319 CATOBJEXT=.mo 320 DATADIRNAME=lib 321 ;; 322 esac]) 323 LIBS="$glib_save_LIBS" 324 INSTOBJEXT=.mo 325 else 326 gt_cv_have_gettext=no 327 fi 328 fi 329 ]) 330 331 if test "$gt_cv_have_gettext" = "yes" ; then 332 AC_DEFINE(ENABLE_NLS, 1, 333 [always defined to indicate that i18n is enabled]) 334 fi 335 336 dnl Test whether we really found GNU xgettext. 337 if test "$XGETTEXT" != ":"; then 338 dnl If it is not GNU xgettext we define it as : so that the 339 dnl Makefiles still can work. 340 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 341 : ; 342 else 343 AC_MSG_RESULT( 344 [found xgettext program is not GNU xgettext; ignore it]) 345 XGETTEXT=":" 346 fi 347 fi 348 349 # We need to process the po/ directory. 350 POSUB=po 351 352 AC_OUTPUT_COMMANDS( 353 [case "$CONFIG_FILES" in *po/Makefile.in*) 354 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 355 esac]) 356 357 dnl These rules are solely for the distribution goal. While doing this 358 dnl we only have to keep exactly one list of the available catalogs 359 dnl in configure.ac. 360 for lang in $ALL_LINGUAS; do 361 GMOFILES="$GMOFILES $lang.gmo" 362 POFILES="$POFILES $lang.po" 363 done 364 365 dnl Make all variables we use known to autoconf. 366 AC_SUBST(CATALOGS) 367 AC_SUBST(CATOBJEXT) 368 AC_SUBST(DATADIRNAME) 369 AC_SUBST(GMOFILES) 370 AC_SUBST(INSTOBJEXT) 371 AC_SUBST(INTLLIBS) 372 AC_SUBST(PO_IN_DATADIR_TRUE) 373 AC_SUBST(PO_IN_DATADIR_FALSE) 374 AC_SUBST(POFILES) 375 AC_SUBST(POSUB) 376 ]) 377 378# AM_GLIB_GNU_GETTEXT 379# ------------------- 380# Do checks necessary for use of gettext. If a suitable implementation 381# of gettext is found in either in libintl or in the C library, 382# it will set INTLLIBS to the libraries needed for use of gettext 383# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable 384# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() 385# on various variables needed by the Makefile.in.in installed by 386# glib-gettextize. 387dnl 388AU_DEFUN([GLIB_GNU_GETTEXT], 389 [AC_REQUIRE([AC_PROG_CC])dnl 390 391 GLIB_LC_MESSAGES 392 GLIB_WITH_NLS 393 394 if test "$gt_cv_have_gettext" = "yes"; then 395 if test "x$ALL_LINGUAS" = "x"; then 396 LINGUAS= 397 else 398 AC_MSG_CHECKING(for catalogs to be installed) 399 NEW_LINGUAS= 400 for presentlang in $ALL_LINGUAS; do 401 useit=no 402 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 403 desiredlanguages="$LINGUAS" 404 else 405 desiredlanguages="$ALL_LINGUAS" 406 fi 407 for desiredlang in $desiredlanguages; do 408 # Use the presentlang catalog if desiredlang is 409 # a. equal to presentlang, or 410 # b. a variant of presentlang (because in this case, 411 # presentlang can be used as a fallback for messages 412 # which are not translated in the desiredlang catalog). 413 case "$desiredlang" in 414 "$presentlang"*) useit=yes;; 415 esac 416 done 417 if test $useit = yes; then 418 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 419 fi 420 done 421 LINGUAS=$NEW_LINGUAS 422 AC_MSG_RESULT($LINGUAS) 423 fi 424 425 dnl Construct list of names of catalog files to be constructed. 426 if test -n "$LINGUAS"; then 427 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 428 fi 429 fi 430 431 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly 432 dnl find the mkinstalldirs script in another subdir but ($top_srcdir). 433 dnl Try to locate is. 434 MKINSTALLDIRS= 435 if test -n "$ac_aux_dir"; then 436 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 437 fi 438 if test -z "$MKINSTALLDIRS"; then 439 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 440 fi 441 AC_SUBST(MKINSTALLDIRS) 442 443 dnl Generate list of files to be processed by xgettext which will 444 dnl be included in po/Makefile. 445 test -d po || mkdir po 446 if test "x$srcdir" != "x."; then 447 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 448 posrcprefix="$srcdir/" 449 else 450 posrcprefix="../$srcdir/" 451 fi 452 else 453 posrcprefix="../" 454 fi 455 rm -f po/POTFILES 456 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 457 < $srcdir/po/POTFILES.in > po/POTFILES 458 ], 459 [[$0: This macro is deprecated. You should use upstream gettext instead.]]) 460 461# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) 462# ------------------------------- 463# Define VARIABLE to the location where catalog files will 464# be installed by po/Makefile. 465glib_DEFUN([GLIB_DEFINE_LOCALEDIR], 466[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl 467glib_save_prefix="$prefix" 468glib_save_exec_prefix="$exec_prefix" 469glib_save_datarootdir="$datarootdir" 470test "x$prefix" = xNONE && prefix=$ac_default_prefix 471test "x$exec_prefix" = xNONE && exec_prefix=$prefix 472datarootdir=`eval echo "${datarootdir}"` 473if test "x$CATOBJEXT" = "x.mo" ; then 474 localedir=`eval echo "${libdir}/locale"` 475else 476 localedir=`eval echo "${datadir}/locale"` 477fi 478prefix="$glib_save_prefix" 479exec_prefix="$glib_save_exec_prefix" 480datarootdir="$glib_save_datarootdir" 481AC_DEFINE_UNQUOTED($1, "$localedir", 482 [Define the location where the catalogs will be installed]) 483]) 484 485dnl 486dnl Now the definitions that aclocal will find 487dnl 488ifdef(glib_configure_ac,[],[ 489AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) 490AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) 491])dnl 492 493# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) 494# 495# Create a temporary file with TEST-FILE as its contents and pass the 496# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with 497# 0 and perform ACTION-IF-FAIL for any other exit status. 498AC_DEFUN([GLIB_RUN_PROG], 499[cat >conftest.foo <<_ACEOF 500$2 501_ACEOF 502if AC_RUN_LOG([$1 conftest.foo]); then 503 m4_ifval([$3], [$3], [:]) 504m4_ifvaln([$4], [else $4])dnl 505echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD 506sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD 507fi]) 508 509 510# nls.m4 serial 5 (gettext-0.18) 511dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software 512dnl Foundation, Inc. 513dnl This file is free software; the Free Software Foundation 514dnl gives unlimited permission to copy and/or distribute it, 515dnl with or without modifications, as long as this notice is preserved. 516dnl 517dnl This file can be used in projects which are not available under 518dnl the GNU General Public License or the GNU Library General Public 519dnl License but which still want to provide support for the GNU gettext 520dnl functionality. 521dnl Please note that the actual code of the GNU gettext library is covered 522dnl by the GNU Library General Public License, and the rest of the GNU 523dnl gettext package is covered by the GNU General Public License. 524dnl They are *not* in the public domain. 525 526dnl Authors: 527dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 528dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 529 530AC_PREREQ([2.50]) 531 532AC_DEFUN([AM_NLS], 533[ 534 AC_MSG_CHECKING([whether NLS is requested]) 535 dnl Default is enabled NLS 536 AC_ARG_ENABLE([nls], 537 [ --disable-nls do not use Native Language Support], 538 USE_NLS=$enableval, USE_NLS=yes) 539 AC_MSG_RESULT([$USE_NLS]) 540 AC_SUBST([USE_NLS]) 541]) 542 543# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 544# serial 11 (pkg-config-0.29.1) 545 546dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 547dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 548dnl 549dnl This program is free software; you can redistribute it and/or modify 550dnl it under the terms of the GNU General Public License as published by 551dnl the Free Software Foundation; either version 2 of the License, or 552dnl (at your option) any later version. 553dnl 554dnl This program is distributed in the hope that it will be useful, but 555dnl WITHOUT ANY WARRANTY; without even the implied warranty of 556dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 557dnl General Public License for more details. 558dnl 559dnl You should have received a copy of the GNU General Public License 560dnl along with this program; if not, write to the Free Software 561dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 562dnl 02111-1307, USA. 563dnl 564dnl As a special exception to the GNU General Public License, if you 565dnl distribute this file as part of a program that contains a 566dnl configuration script generated by Autoconf, you may include it under 567dnl the same distribution terms that you use for the rest of that 568dnl program. 569 570dnl PKG_PREREQ(MIN-VERSION) 571dnl ----------------------- 572dnl Since: 0.29 573dnl 574dnl Verify that the version of the pkg-config macros are at least 575dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's 576dnl installed version of pkg-config, this checks the developer's version 577dnl of pkg.m4 when generating configure. 578dnl 579dnl To ensure that this macro is defined, also add: 580dnl m4_ifndef([PKG_PREREQ], 581dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) 582dnl 583dnl See the "Since" comment for each macro you use to see what version 584dnl of the macros you require. 585m4_defun([PKG_PREREQ], 586[m4_define([PKG_MACROS_VERSION], [0.29.1]) 587m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 588 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 589])dnl PKG_PREREQ 590 591dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) 592dnl ---------------------------------- 593dnl Since: 0.16 594dnl 595dnl Search for the pkg-config tool and set the PKG_CONFIG variable to 596dnl first found in the path. Checks that the version of pkg-config found 597dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is 598dnl used since that's the first version where most current features of 599dnl pkg-config existed. 600AC_DEFUN([PKG_PROG_PKG_CONFIG], 601[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 602m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 603m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 604AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 605AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) 606AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 607 608if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 609 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 610fi 611if test -n "$PKG_CONFIG"; then 612 _pkg_min_version=m4_default([$1], [0.9.0]) 613 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 614 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 615 AC_MSG_RESULT([yes]) 616 else 617 AC_MSG_RESULT([no]) 618 PKG_CONFIG="" 619 fi 620fi[]dnl 621])dnl PKG_PROG_PKG_CONFIG 622 623dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 624dnl ------------------------------------------------------------------- 625dnl Since: 0.18 626dnl 627dnl Check to see whether a particular set of modules exists. Similar to 628dnl PKG_CHECK_MODULES(), but does not set variables or print errors. 629dnl 630dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 631dnl only at the first occurence in configure.ac, so if the first place 632dnl it's called might be skipped (such as if it is within an "if", you 633dnl have to call PKG_CHECK_EXISTS manually 634AC_DEFUN([PKG_CHECK_EXISTS], 635[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 636if test -n "$PKG_CONFIG" && \ 637 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 638 m4_default([$2], [:]) 639m4_ifvaln([$3], [else 640 $3])dnl 641fi]) 642 643dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 644dnl --------------------------------------------- 645dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting 646dnl pkg_failed based on the result. 647m4_define([_PKG_CONFIG], 648[if test -n "$$1"; then 649 pkg_cv_[]$1="$$1" 650 elif test -n "$PKG_CONFIG"; then 651 PKG_CHECK_EXISTS([$3], 652 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 653 test "x$?" != "x0" && pkg_failed=yes ], 654 [pkg_failed=yes]) 655 else 656 pkg_failed=untried 657fi[]dnl 658])dnl _PKG_CONFIG 659 660dnl _PKG_SHORT_ERRORS_SUPPORTED 661dnl --------------------------- 662dnl Internal check to see if pkg-config supports short errors. 663AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 664[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 665if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 666 _pkg_short_errors_supported=yes 667else 668 _pkg_short_errors_supported=no 669fi[]dnl 670])dnl _PKG_SHORT_ERRORS_SUPPORTED 671 672 673dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 674dnl [ACTION-IF-NOT-FOUND]) 675dnl -------------------------------------------------------------- 676dnl Since: 0.4.0 677dnl 678dnl Note that if there is a possibility the first call to 679dnl PKG_CHECK_MODULES might not happen, you should be sure to include an 680dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 681AC_DEFUN([PKG_CHECK_MODULES], 682[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 683AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 684AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 685 686pkg_failed=no 687AC_MSG_CHECKING([for $1]) 688 689_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 690_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 691 692m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 693and $1[]_LIBS to avoid the need to call pkg-config. 694See the pkg-config man page for more details.]) 695 696if test $pkg_failed = yes; then 697 AC_MSG_RESULT([no]) 698 _PKG_SHORT_ERRORS_SUPPORTED 699 if test $_pkg_short_errors_supported = yes; then 700 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 701 else 702 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 703 fi 704 # Put the nasty error message in config.log where it belongs 705 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 706 707 m4_default([$4], [AC_MSG_ERROR( 708[Package requirements ($2) were not met: 709 710$$1_PKG_ERRORS 711 712Consider adjusting the PKG_CONFIG_PATH environment variable if you 713installed software in a non-standard prefix. 714 715_PKG_TEXT])[]dnl 716 ]) 717elif test $pkg_failed = untried; then 718 AC_MSG_RESULT([no]) 719 m4_default([$4], [AC_MSG_FAILURE( 720[The pkg-config script could not be found or is too old. Make sure it 721is in your PATH or set the PKG_CONFIG environment variable to the full 722path to pkg-config. 723 724_PKG_TEXT 725 726To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 727 ]) 728else 729 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 730 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 731 AC_MSG_RESULT([yes]) 732 $3 733fi[]dnl 734])dnl PKG_CHECK_MODULES 735 736 737dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 738dnl [ACTION-IF-NOT-FOUND]) 739dnl --------------------------------------------------------------------- 740dnl Since: 0.29 741dnl 742dnl Checks for existence of MODULES and gathers its build flags with 743dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags 744dnl and VARIABLE-PREFIX_LIBS from --libs. 745dnl 746dnl Note that if there is a possibility the first call to 747dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to 748dnl include an explicit call to PKG_PROG_PKG_CONFIG in your 749dnl configure.ac. 750AC_DEFUN([PKG_CHECK_MODULES_STATIC], 751[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 752_save_PKG_CONFIG=$PKG_CONFIG 753PKG_CONFIG="$PKG_CONFIG --static" 754PKG_CHECK_MODULES($@) 755PKG_CONFIG=$_save_PKG_CONFIG[]dnl 756])dnl PKG_CHECK_MODULES_STATIC 757 758 759dnl PKG_INSTALLDIR([DIRECTORY]) 760dnl ------------------------- 761dnl Since: 0.27 762dnl 763dnl Substitutes the variable pkgconfigdir as the location where a module 764dnl should install pkg-config .pc files. By default the directory is 765dnl $libdir/pkgconfig, but the default can be changed by passing 766dnl DIRECTORY. The user can override through the --with-pkgconfigdir 767dnl parameter. 768AC_DEFUN([PKG_INSTALLDIR], 769[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 770m4_pushdef([pkg_description], 771 [pkg-config installation directory @<:@]pkg_default[@:>@]) 772AC_ARG_WITH([pkgconfigdir], 773 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 774 [with_pkgconfigdir=]pkg_default) 775AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 776m4_popdef([pkg_default]) 777m4_popdef([pkg_description]) 778])dnl PKG_INSTALLDIR 779 780 781dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) 782dnl -------------------------------- 783dnl Since: 0.27 784dnl 785dnl Substitutes the variable noarch_pkgconfigdir as the location where a 786dnl module should install arch-independent pkg-config .pc files. By 787dnl default the directory is $datadir/pkgconfig, but the default can be 788dnl changed by passing DIRECTORY. The user can override through the 789dnl --with-noarch-pkgconfigdir parameter. 790AC_DEFUN([PKG_NOARCH_INSTALLDIR], 791[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 792m4_pushdef([pkg_description], 793 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 794AC_ARG_WITH([noarch-pkgconfigdir], 795 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 796 [with_noarch_pkgconfigdir=]pkg_default) 797AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 798m4_popdef([pkg_default]) 799m4_popdef([pkg_description]) 800])dnl PKG_NOARCH_INSTALLDIR 801 802 803dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 804dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 805dnl ------------------------------------------- 806dnl Since: 0.28 807dnl 808dnl Retrieves the value of the pkg-config variable for the given module. 809AC_DEFUN([PKG_CHECK_VAR], 810[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 811AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 812 813_PKG_CONFIG([$1], [variable="][$3]["], [$2]) 814AS_VAR_COPY([$1], [pkg_cv_][$1]) 815 816AS_VAR_IF([$1], [""], [$5], [$4])dnl 817])dnl PKG_CHECK_VAR 818 819dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, 820dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], 821dnl [DESCRIPTION], [DEFAULT]) 822dnl ------------------------------------------ 823dnl 824dnl Prepare a "--with-" configure option using the lowercase 825dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and 826dnl PKG_CHECK_MODULES in a single macro. 827AC_DEFUN([PKG_WITH_MODULES], 828[ 829m4_pushdef([with_arg], m4_tolower([$1])) 830 831m4_pushdef([description], 832 [m4_default([$5], [build with ]with_arg[ support])]) 833 834m4_pushdef([def_arg], [m4_default([$6], [auto])]) 835m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) 836m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) 837 838m4_case(def_arg, 839 [yes],[m4_pushdef([with_without], [--without-]with_arg)], 840 [m4_pushdef([with_without],[--with-]with_arg)]) 841 842AC_ARG_WITH(with_arg, 843 AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, 844 [AS_TR_SH([with_]with_arg)=def_arg]) 845 846AS_CASE([$AS_TR_SH([with_]with_arg)], 847 [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], 848 [auto],[PKG_CHECK_MODULES([$1],[$2], 849 [m4_n([def_action_if_found]) $3], 850 [m4_n([def_action_if_not_found]) $4])]) 851 852m4_popdef([with_arg]) 853m4_popdef([description]) 854m4_popdef([def_arg]) 855 856])dnl PKG_WITH_MODULES 857 858dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, 859dnl [DESCRIPTION], [DEFAULT]) 860dnl ----------------------------------------------- 861dnl 862dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES 863dnl check._[VARIABLE-PREFIX] is exported as make variable. 864AC_DEFUN([PKG_HAVE_WITH_MODULES], 865[ 866PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) 867 868AM_CONDITIONAL([HAVE_][$1], 869 [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) 870])dnl PKG_HAVE_WITH_MODULES 871 872dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, 873dnl [DESCRIPTION], [DEFAULT]) 874dnl ------------------------------------------------------ 875dnl 876dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after 877dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make 878dnl and preprocessor variable. 879AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], 880[ 881PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) 882 883AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], 884 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) 885])dnl PKG_HAVE_DEFINE_WITH_MODULES 886 887# Copyright (C) 2002-2018 Free Software Foundation, Inc. 888# 889# This file is free software; the Free Software Foundation 890# gives unlimited permission to copy and/or distribute it, 891# with or without modifications, as long as this notice is preserved. 892 893# AM_AUTOMAKE_VERSION(VERSION) 894# ---------------------------- 895# Automake X.Y traces this macro to ensure aclocal.m4 has been 896# generated from the m4 files accompanying Automake X.Y. 897# (This private macro should not be called outside this file.) 898AC_DEFUN([AM_AUTOMAKE_VERSION], 899[am__api_version='1.16' 900dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 901dnl require some minimum version. Point them to the right macro. 902m4_if([$1], [1.16.1], [], 903 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 904]) 905 906# _AM_AUTOCONF_VERSION(VERSION) 907# ----------------------------- 908# aclocal traces this macro to find the Autoconf version. 909# This is a private macro too. Using m4_define simplifies 910# the logic in aclocal, which can simply ignore this definition. 911m4_define([_AM_AUTOCONF_VERSION], []) 912 913# AM_SET_CURRENT_AUTOMAKE_VERSION 914# ------------------------------- 915# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 916# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 917AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 918[AM_AUTOMAKE_VERSION([1.16.1])dnl 919m4_ifndef([AC_AUTOCONF_VERSION], 920 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 921_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 922 923# AM_AUX_DIR_EXPAND -*- Autoconf -*- 924 925# Copyright (C) 2001-2018 Free Software Foundation, Inc. 926# 927# This file is free software; the Free Software Foundation 928# gives unlimited permission to copy and/or distribute it, 929# with or without modifications, as long as this notice is preserved. 930 931# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 932# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 933# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 934# 935# Of course, Automake must honor this variable whenever it calls a 936# tool from the auxiliary directory. The problem is that $srcdir (and 937# therefore $ac_aux_dir as well) can be either absolute or relative, 938# depending on how configure is run. This is pretty annoying, since 939# it makes $ac_aux_dir quite unusable in subdirectories: in the top 940# source directory, any form will work fine, but in subdirectories a 941# relative path needs to be adjusted first. 942# 943# $ac_aux_dir/missing 944# fails when called from a subdirectory if $ac_aux_dir is relative 945# $top_srcdir/$ac_aux_dir/missing 946# fails if $ac_aux_dir is absolute, 947# fails when called from a subdirectory in a VPATH build with 948# a relative $ac_aux_dir 949# 950# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 951# are both prefixed by $srcdir. In an in-source build this is usually 952# harmless because $srcdir is '.', but things will broke when you 953# start a VPATH build or use an absolute $srcdir. 954# 955# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 956# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 957# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 958# and then we would define $MISSING as 959# MISSING="\${SHELL} $am_aux_dir/missing" 960# This will work as long as MISSING is not called from configure, because 961# unfortunately $(top_srcdir) has no meaning in configure. 962# However there are other variables, like CC, which are often used in 963# configure, and could therefore not use this "fixed" $ac_aux_dir. 964# 965# Another solution, used here, is to always expand $ac_aux_dir to an 966# absolute PATH. The drawback is that using absolute paths prevent a 967# configured tree to be moved without reconfiguration. 968 969AC_DEFUN([AM_AUX_DIR_EXPAND], 970[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 971# Expand $ac_aux_dir to an absolute path. 972am_aux_dir=`cd "$ac_aux_dir" && pwd` 973]) 974 975# AM_CONDITIONAL -*- Autoconf -*- 976 977# Copyright (C) 1997-2018 Free Software Foundation, Inc. 978# 979# This file is free software; the Free Software Foundation 980# gives unlimited permission to copy and/or distribute it, 981# with or without modifications, as long as this notice is preserved. 982 983# AM_CONDITIONAL(NAME, SHELL-CONDITION) 984# ------------------------------------- 985# Define a conditional. 986AC_DEFUN([AM_CONDITIONAL], 987[AC_PREREQ([2.52])dnl 988 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 989 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 990AC_SUBST([$1_TRUE])dnl 991AC_SUBST([$1_FALSE])dnl 992_AM_SUBST_NOTMAKE([$1_TRUE])dnl 993_AM_SUBST_NOTMAKE([$1_FALSE])dnl 994m4_define([_AM_COND_VALUE_$1], [$2])dnl 995if $2; then 996 $1_TRUE= 997 $1_FALSE='#' 998else 999 $1_TRUE='#' 1000 $1_FALSE= 1001fi 1002AC_CONFIG_COMMANDS_PRE( 1003[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 1004 AC_MSG_ERROR([[conditional "$1" was never defined. 1005Usually this means the macro was only invoked conditionally.]]) 1006fi])]) 1007 1008# Copyright (C) 1999-2018 Free Software Foundation, Inc. 1009# 1010# This file is free software; the Free Software Foundation 1011# gives unlimited permission to copy and/or distribute it, 1012# with or without modifications, as long as this notice is preserved. 1013 1014 1015# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 1016# written in clear, in which case automake, when reading aclocal.m4, 1017# will think it sees a *use*, and therefore will trigger all it's 1018# C support machinery. Also note that it means that autoscan, seeing 1019# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 1020 1021 1022# _AM_DEPENDENCIES(NAME) 1023# ---------------------- 1024# See how the compiler implements dependency checking. 1025# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 1026# We try a few techniques and use that to set a single cache variable. 1027# 1028# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 1029# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 1030# dependency, and given that the user is not expected to run this macro, 1031# just rely on AC_PROG_CC. 1032AC_DEFUN([_AM_DEPENDENCIES], 1033[AC_REQUIRE([AM_SET_DEPDIR])dnl 1034AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 1035AC_REQUIRE([AM_MAKE_INCLUDE])dnl 1036AC_REQUIRE([AM_DEP_TRACK])dnl 1037 1038m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 1039 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 1040 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 1041 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 1042 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 1043 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 1044 [depcc="$$1" am_compiler_list=]) 1045 1046AC_CACHE_CHECK([dependency style of $depcc], 1047 [am_cv_$1_dependencies_compiler_type], 1048[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 1049 # We make a subdir and do the tests there. Otherwise we can end up 1050 # making bogus files that we don't know about and never remove. For 1051 # instance it was reported that on HP-UX the gcc test will end up 1052 # making a dummy file named 'D' -- because '-MD' means "put the output 1053 # in D". 1054 rm -rf conftest.dir 1055 mkdir conftest.dir 1056 # Copy depcomp to subdir because otherwise we won't find it if we're 1057 # using a relative directory. 1058 cp "$am_depcomp" conftest.dir 1059 cd conftest.dir 1060 # We will build objects and dependencies in a subdirectory because 1061 # it helps to detect inapplicable dependency modes. For instance 1062 # both Tru64's cc and ICC support -MD to output dependencies as a 1063 # side effect of compilation, but ICC will put the dependencies in 1064 # the current directory while Tru64 will put them in the object 1065 # directory. 1066 mkdir sub 1067 1068 am_cv_$1_dependencies_compiler_type=none 1069 if test "$am_compiler_list" = ""; then 1070 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 1071 fi 1072 am__universal=false 1073 m4_case([$1], [CC], 1074 [case " $depcc " in #( 1075 *\ -arch\ *\ -arch\ *) am__universal=true ;; 1076 esac], 1077 [CXX], 1078 [case " $depcc " in #( 1079 *\ -arch\ *\ -arch\ *) am__universal=true ;; 1080 esac]) 1081 1082 for depmode in $am_compiler_list; do 1083 # Setup a source with many dependencies, because some compilers 1084 # like to wrap large dependency lists on column 80 (with \), and 1085 # we should not choose a depcomp mode which is confused by this. 1086 # 1087 # We need to recreate these files for each test, as the compiler may 1088 # overwrite some of them when testing with obscure command lines. 1089 # This happens at least with the AIX C compiler. 1090 : > sub/conftest.c 1091 for i in 1 2 3 4 5 6; do 1092 echo '#include "conftst'$i'.h"' >> sub/conftest.c 1093 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 1094 # Solaris 10 /bin/sh. 1095 echo '/* dummy */' > sub/conftst$i.h 1096 done 1097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 1098 1099 # We check with '-c' and '-o' for the sake of the "dashmstdout" 1100 # mode. It turns out that the SunPro C++ compiler does not properly 1101 # handle '-M -o', and we need to detect this. Also, some Intel 1102 # versions had trouble with output in subdirs. 1103 am__obj=sub/conftest.${OBJEXT-o} 1104 am__minus_obj="-o $am__obj" 1105 case $depmode in 1106 gcc) 1107 # This depmode causes a compiler race in universal mode. 1108 test "$am__universal" = false || continue 1109 ;; 1110 nosideeffect) 1111 # After this tag, mechanisms are not by side-effect, so they'll 1112 # only be used when explicitly requested. 1113 if test "x$enable_dependency_tracking" = xyes; then 1114 continue 1115 else 1116 break 1117 fi 1118 ;; 1119 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 1120 # This compiler won't grok '-c -o', but also, the minuso test has 1121 # not run yet. These depmodes are late enough in the game, and 1122 # so weak that their functioning should not be impacted. 1123 am__obj=conftest.${OBJEXT-o} 1124 am__minus_obj= 1125 ;; 1126 none) break ;; 1127 esac 1128 if depmode=$depmode \ 1129 source=sub/conftest.c object=$am__obj \ 1130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 1131 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 1132 >/dev/null 2>conftest.err && 1133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 1134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 1135 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 1136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 1137 # icc doesn't choke on unknown options, it will just issue warnings 1138 # or remarks (even with -Werror). So we grep stderr for any message 1139 # that says an option was ignored or not supported. 1140 # When given -MP, icc 7.0 and 7.1 complain thusly: 1141 # icc: Command line warning: ignoring option '-M'; no argument required 1142 # The diagnosis changed in icc 8.0: 1143 # icc: Command line remark: option '-MP' not supported 1144 if (grep 'ignoring option' conftest.err || 1145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 1146 am_cv_$1_dependencies_compiler_type=$depmode 1147 break 1148 fi 1149 fi 1150 done 1151 1152 cd .. 1153 rm -rf conftest.dir 1154else 1155 am_cv_$1_dependencies_compiler_type=none 1156fi 1157]) 1158AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 1159AM_CONDITIONAL([am__fastdep$1], [ 1160 test "x$enable_dependency_tracking" != xno \ 1161 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 1162]) 1163 1164 1165# AM_SET_DEPDIR 1166# ------------- 1167# Choose a directory name for dependency files. 1168# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 1169AC_DEFUN([AM_SET_DEPDIR], 1170[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 1171AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 1172]) 1173 1174 1175# AM_DEP_TRACK 1176# ------------ 1177AC_DEFUN([AM_DEP_TRACK], 1178[AC_ARG_ENABLE([dependency-tracking], [dnl 1179AS_HELP_STRING( 1180 [--enable-dependency-tracking], 1181 [do not reject slow dependency extractors]) 1182AS_HELP_STRING( 1183 [--disable-dependency-tracking], 1184 [speeds up one-time build])]) 1185if test "x$enable_dependency_tracking" != xno; then 1186 am_depcomp="$ac_aux_dir/depcomp" 1187 AMDEPBACKSLASH='\' 1188 am__nodep='_no' 1189fi 1190AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 1191AC_SUBST([AMDEPBACKSLASH])dnl 1192_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 1193AC_SUBST([am__nodep])dnl 1194_AM_SUBST_NOTMAKE([am__nodep])dnl 1195]) 1196 1197# Generate code to set up dependency tracking. -*- Autoconf -*- 1198 1199# Copyright (C) 1999-2018 Free Software Foundation, Inc. 1200# 1201# This file is free software; the Free Software Foundation 1202# gives unlimited permission to copy and/or distribute it, 1203# with or without modifications, as long as this notice is preserved. 1204 1205# _AM_OUTPUT_DEPENDENCY_COMMANDS 1206# ------------------------------ 1207AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 1208[{ 1209 # Older Autoconf quotes --file arguments for eval, but not when files 1210 # are listed without --file. Let's play safe and only enable the eval 1211 # if we detect the quoting. 1212 # TODO: see whether this extra hack can be removed once we start 1213 # requiring Autoconf 2.70 or later. 1214 AS_CASE([$CONFIG_FILES], 1215 [*\'*], [eval set x "$CONFIG_FILES"], 1216 [*], [set x $CONFIG_FILES]) 1217 shift 1218 # Used to flag and report bootstrapping failures. 1219 am_rc=0 1220 for am_mf 1221 do 1222 # Strip MF so we end up with the name of the file. 1223 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 1224 # Check whether this is an Automake generated Makefile which includes 1225 # dependency-tracking related rules and includes. 1226 # Grep'ing the whole file directly is not great: AIX grep has a line 1227 # limit of 2048, but all sed's we know have understand at least 4000. 1228 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 1229 || continue 1230 am_dirpart=`AS_DIRNAME(["$am_mf"])` 1231 am_filepart=`AS_BASENAME(["$am_mf"])` 1232 AM_RUN_LOG([cd "$am_dirpart" \ 1233 && sed -e '/# am--include-marker/d' "$am_filepart" \ 1234 | $MAKE -f - am--depfiles]) || am_rc=$? 1235 done 1236 if test $am_rc -ne 0; then 1237 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 1238 for automatic dependency tracking. Try re-running configure with the 1239 '--disable-dependency-tracking' option to at least be able to build 1240 the package (albeit without support for automatic dependency tracking).]) 1241 fi 1242 AS_UNSET([am_dirpart]) 1243 AS_UNSET([am_filepart]) 1244 AS_UNSET([am_mf]) 1245 AS_UNSET([am_rc]) 1246 rm -f conftest-deps.mk 1247} 1248])# _AM_OUTPUT_DEPENDENCY_COMMANDS 1249 1250 1251# AM_OUTPUT_DEPENDENCY_COMMANDS 1252# ----------------------------- 1253# This macro should only be invoked once -- use via AC_REQUIRE. 1254# 1255# This code is only required when automatic dependency tracking is enabled. 1256# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 1257# order to bootstrap the dependency handling code. 1258AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 1259[AC_CONFIG_COMMANDS([depfiles], 1260 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 1261 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 1262 1263# Do all the work for Automake. -*- Autoconf -*- 1264 1265# Copyright (C) 1996-2018 Free Software Foundation, Inc. 1266# 1267# This file is free software; the Free Software Foundation 1268# gives unlimited permission to copy and/or distribute it, 1269# with or without modifications, as long as this notice is preserved. 1270 1271# This macro actually does too much. Some checks are only needed if 1272# your package does certain things. But this isn't really a big deal. 1273 1274dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 1275m4_define([AC_PROG_CC], 1276m4_defn([AC_PROG_CC]) 1277[_AM_PROG_CC_C_O 1278]) 1279 1280# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 1281# AM_INIT_AUTOMAKE([OPTIONS]) 1282# ----------------------------------------------- 1283# The call with PACKAGE and VERSION arguments is the old style 1284# call (pre autoconf-2.50), which is being phased out. PACKAGE 1285# and VERSION should now be passed to AC_INIT and removed from 1286# the call to AM_INIT_AUTOMAKE. 1287# We support both call styles for the transition. After 1288# the next Automake release, Autoconf can make the AC_INIT 1289# arguments mandatory, and then we can depend on a new Autoconf 1290# release and drop the old call support. 1291AC_DEFUN([AM_INIT_AUTOMAKE], 1292[AC_PREREQ([2.65])dnl 1293dnl Autoconf wants to disallow AM_ names. We explicitly allow 1294dnl the ones we care about. 1295m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 1296AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 1297AC_REQUIRE([AC_PROG_INSTALL])dnl 1298if test "`cd $srcdir && pwd`" != "`pwd`"; then 1299 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 1300 # is not polluted with repeated "-I." 1301 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 1302 # test to see if srcdir already configured 1303 if test -f $srcdir/config.status; then 1304 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 1305 fi 1306fi 1307 1308# test whether we have cygpath 1309if test -z "$CYGPATH_W"; then 1310 if (cygpath --version) >/dev/null 2>/dev/null; then 1311 CYGPATH_W='cygpath -w' 1312 else 1313 CYGPATH_W=echo 1314 fi 1315fi 1316AC_SUBST([CYGPATH_W]) 1317 1318# Define the identity of the package. 1319dnl Distinguish between old-style and new-style calls. 1320m4_ifval([$2], 1321[AC_DIAGNOSE([obsolete], 1322 [$0: two- and three-arguments forms are deprecated.]) 1323m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 1324 AC_SUBST([PACKAGE], [$1])dnl 1325 AC_SUBST([VERSION], [$2])], 1326[_AM_SET_OPTIONS([$1])dnl 1327dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 1328m4_if( 1329 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 1330 [ok:ok],, 1331 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 1332 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 1333 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 1334 1335_AM_IF_OPTION([no-define],, 1336[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 1337 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 1338 1339# Some tools Automake needs. 1340AC_REQUIRE([AM_SANITY_CHECK])dnl 1341AC_REQUIRE([AC_ARG_PROGRAM])dnl 1342AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 1343AM_MISSING_PROG([AUTOCONF], [autoconf]) 1344AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 1345AM_MISSING_PROG([AUTOHEADER], [autoheader]) 1346AM_MISSING_PROG([MAKEINFO], [makeinfo]) 1347AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1348AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 1349AC_REQUIRE([AC_PROG_MKDIR_P])dnl 1350# For better backward compatibility. To be removed once Automake 1.9.x 1351# dies out for good. For more background, see: 1352# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 1353# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 1354AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 1355# We need awk for the "check" target (and possibly the TAP driver). The 1356# system "awk" is bad on some platforms. 1357AC_REQUIRE([AC_PROG_AWK])dnl 1358AC_REQUIRE([AC_PROG_MAKE_SET])dnl 1359AC_REQUIRE([AM_SET_LEADING_DOT])dnl 1360_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 1361 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 1362 [_AM_PROG_TAR([v7])])]) 1363_AM_IF_OPTION([no-dependencies],, 1364[AC_PROVIDE_IFELSE([AC_PROG_CC], 1365 [_AM_DEPENDENCIES([CC])], 1366 [m4_define([AC_PROG_CC], 1367 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 1368AC_PROVIDE_IFELSE([AC_PROG_CXX], 1369 [_AM_DEPENDENCIES([CXX])], 1370 [m4_define([AC_PROG_CXX], 1371 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 1372AC_PROVIDE_IFELSE([AC_PROG_OBJC], 1373 [_AM_DEPENDENCIES([OBJC])], 1374 [m4_define([AC_PROG_OBJC], 1375 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 1376AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 1377 [_AM_DEPENDENCIES([OBJCXX])], 1378 [m4_define([AC_PROG_OBJCXX], 1379 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 1380]) 1381AC_REQUIRE([AM_SILENT_RULES])dnl 1382dnl The testsuite driver may need to know about EXEEXT, so add the 1383dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 1384dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 1385AC_CONFIG_COMMANDS_PRE(dnl 1386[m4_provide_if([_AM_COMPILER_EXEEXT], 1387 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 1388 1389# POSIX will say in a future version that running "rm -f" with no argument 1390# is OK; and we want to be able to make that assumption in our Makefile 1391# recipes. So use an aggressive probe to check that the usage we want is 1392# actually supported "in the wild" to an acceptable degree. 1393# See automake bug#10828. 1394# To make any issue more visible, cause the running configure to be aborted 1395# by default if the 'rm' program in use doesn't match our expectations; the 1396# user can still override this though. 1397if rm -f && rm -fr && rm -rf; then : OK; else 1398 cat >&2 <<'END' 1399Oops! 1400 1401Your 'rm' program seems unable to run without file operands specified 1402on the command line, even when the '-f' option is present. This is contrary 1403to the behaviour of most rm programs out there, and not conforming with 1404the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 1405 1406Please tell bug-automake@gnu.org about your system, including the value 1407of your $PATH and any error possibly output before this message. This 1408can help us improve future automake versions. 1409 1410END 1411 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 1412 echo 'Configuration will proceed anyway, since you have set the' >&2 1413 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 1414 echo >&2 1415 else 1416 cat >&2 <<'END' 1417Aborting the configuration process, to ensure you take notice of the issue. 1418 1419You can download and install GNU coreutils to get an 'rm' implementation 1420that behaves properly: <https://www.gnu.org/software/coreutils/>. 1421 1422If you want to complete the configuration process using your problematic 1423'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 1424to "yes", and re-run configure. 1425 1426END 1427 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 1428 fi 1429fi 1430dnl The trailing newline in this macro's definition is deliberate, for 1431dnl backward compatibility and to allow trailing 'dnl'-style comments 1432dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 1433]) 1434 1435dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 1436dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 1437dnl mangled by Autoconf and run in a shell conditional statement. 1438m4_define([_AC_COMPILER_EXEEXT], 1439m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 1440 1441# When config.status generates a header, we must update the stamp-h file. 1442# This file resides in the same directory as the config header 1443# that is generated. The stamp files are numbered to have different names. 1444 1445# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 1446# loop where config.status creates the headers, so we can generate 1447# our stamp files there. 1448AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 1449[# Compute $1's index in $config_headers. 1450_am_arg=$1 1451_am_stamp_count=1 1452for _am_header in $config_headers :; do 1453 case $_am_header in 1454 $_am_arg | $_am_arg:* ) 1455 break ;; 1456 * ) 1457 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 1458 esac 1459done 1460echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 1461 1462# Copyright (C) 2001-2018 Free Software Foundation, Inc. 1463# 1464# This file is free software; the Free Software Foundation 1465# gives unlimited permission to copy and/or distribute it, 1466# with or without modifications, as long as this notice is preserved. 1467 1468# AM_PROG_INSTALL_SH 1469# ------------------ 1470# Define $install_sh. 1471AC_DEFUN([AM_PROG_INSTALL_SH], 1472[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1473if test x"${install_sh+set}" != xset; then 1474 case $am_aux_dir in 1475 *\ * | *\ *) 1476 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 1477 *) 1478 install_sh="\${SHELL} $am_aux_dir/install-sh" 1479 esac 1480fi 1481AC_SUBST([install_sh])]) 1482 1483# Copyright (C) 2003-2018 Free Software Foundation, Inc. 1484# 1485# This file is free software; the Free Software Foundation 1486# gives unlimited permission to copy and/or distribute it, 1487# with or without modifications, as long as this notice is preserved. 1488 1489# Check whether the underlying file-system supports filenames 1490# with a leading dot. For instance MS-DOS doesn't. 1491AC_DEFUN([AM_SET_LEADING_DOT], 1492[rm -rf .tst 2>/dev/null 1493mkdir .tst 2>/dev/null 1494if test -d .tst; then 1495 am__leading_dot=. 1496else 1497 am__leading_dot=_ 1498fi 1499rmdir .tst 2>/dev/null 1500AC_SUBST([am__leading_dot])]) 1501 1502# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 1503# From Jim Meyering 1504 1505# Copyright (C) 1996-2018 Free Software Foundation, Inc. 1506# 1507# This file is free software; the Free Software Foundation 1508# gives unlimited permission to copy and/or distribute it, 1509# with or without modifications, as long as this notice is preserved. 1510 1511# AM_MAINTAINER_MODE([DEFAULT-MODE]) 1512# ---------------------------------- 1513# Control maintainer-specific portions of Makefiles. 1514# Default is to disable them, unless 'enable' is passed literally. 1515# For symmetry, 'disable' may be passed as well. Anyway, the user 1516# can override the default with the --enable/--disable switch. 1517AC_DEFUN([AM_MAINTAINER_MODE], 1518[m4_case(m4_default([$1], [disable]), 1519 [enable], [m4_define([am_maintainer_other], [disable])], 1520 [disable], [m4_define([am_maintainer_other], [enable])], 1521 [m4_define([am_maintainer_other], [enable]) 1522 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 1523AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 1524 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 1525 AC_ARG_ENABLE([maintainer-mode], 1526 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 1527 am_maintainer_other[ make rules and dependencies not useful 1528 (and sometimes confusing) to the casual installer])], 1529 [USE_MAINTAINER_MODE=$enableval], 1530 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 1531 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 1532 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 1533 MAINT=$MAINTAINER_MODE_TRUE 1534 AC_SUBST([MAINT])dnl 1535] 1536) 1537 1538# Check to see how 'make' treats includes. -*- Autoconf -*- 1539 1540# Copyright (C) 2001-2018 Free Software Foundation, Inc. 1541# 1542# This file is free software; the Free Software Foundation 1543# gives unlimited permission to copy and/or distribute it, 1544# with or without modifications, as long as this notice is preserved. 1545 1546# AM_MAKE_INCLUDE() 1547# ----------------- 1548# Check whether make has an 'include' directive that can support all 1549# the idioms we need for our automatic dependency tracking code. 1550AC_DEFUN([AM_MAKE_INCLUDE], 1551[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 1552cat > confinc.mk << 'END' 1553am__doit: 1554 @echo this is the am__doit target >confinc.out 1555.PHONY: am__doit 1556END 1557am__include="#" 1558am__quote= 1559# BSD make does it like this. 1560echo '.include "confinc.mk" # ignored' > confmf.BSD 1561# Other make implementations (GNU, Solaris 10, AIX) do it like this. 1562echo 'include confinc.mk # ignored' > confmf.GNU 1563_am_result=no 1564for s in GNU BSD; do 1565 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 1566 AS_CASE([$?:`cat confinc.out 2>/dev/null`], 1567 ['0:this is the am__doit target'], 1568 [AS_CASE([$s], 1569 [BSD], [am__include='.include' am__quote='"'], 1570 [am__include='include' am__quote=''])]) 1571 if test "$am__include" != "#"; then 1572 _am_result="yes ($s style)" 1573 break 1574 fi 1575done 1576rm -f confinc.* confmf.* 1577AC_MSG_RESULT([${_am_result}]) 1578AC_SUBST([am__include])]) 1579AC_SUBST([am__quote])]) 1580 1581# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 1582 1583# Copyright (C) 1997-2018 Free Software Foundation, Inc. 1584# 1585# This file is free software; the Free Software Foundation 1586# gives unlimited permission to copy and/or distribute it, 1587# with or without modifications, as long as this notice is preserved. 1588 1589# AM_MISSING_PROG(NAME, PROGRAM) 1590# ------------------------------ 1591AC_DEFUN([AM_MISSING_PROG], 1592[AC_REQUIRE([AM_MISSING_HAS_RUN]) 1593$1=${$1-"${am_missing_run}$2"} 1594AC_SUBST($1)]) 1595 1596# AM_MISSING_HAS_RUN 1597# ------------------ 1598# Define MISSING if not defined so far and test if it is modern enough. 1599# If it is, set am_missing_run to use it, otherwise, to nothing. 1600AC_DEFUN([AM_MISSING_HAS_RUN], 1601[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1602AC_REQUIRE_AUX_FILE([missing])dnl 1603if test x"${MISSING+set}" != xset; then 1604 case $am_aux_dir in 1605 *\ * | *\ *) 1606 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 1607 *) 1608 MISSING="\${SHELL} $am_aux_dir/missing" ;; 1609 esac 1610fi 1611# Use eval to expand $SHELL 1612if eval "$MISSING --is-lightweight"; then 1613 am_missing_run="$MISSING " 1614else 1615 am_missing_run= 1616 AC_MSG_WARN(['missing' script is too old or missing]) 1617fi 1618]) 1619 1620# Helper functions for option handling. -*- Autoconf -*- 1621 1622# Copyright (C) 2001-2018 Free Software Foundation, Inc. 1623# 1624# This file is free software; the Free Software Foundation 1625# gives unlimited permission to copy and/or distribute it, 1626# with or without modifications, as long as this notice is preserved. 1627 1628# _AM_MANGLE_OPTION(NAME) 1629# ----------------------- 1630AC_DEFUN([_AM_MANGLE_OPTION], 1631[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 1632 1633# _AM_SET_OPTION(NAME) 1634# -------------------- 1635# Set option NAME. Presently that only means defining a flag for this option. 1636AC_DEFUN([_AM_SET_OPTION], 1637[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 1638 1639# _AM_SET_OPTIONS(OPTIONS) 1640# ------------------------ 1641# OPTIONS is a space-separated list of Automake options. 1642AC_DEFUN([_AM_SET_OPTIONS], 1643[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 1644 1645# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 1646# ------------------------------------------- 1647# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 1648AC_DEFUN([_AM_IF_OPTION], 1649[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 1650 1651# Copyright (C) 1999-2018 Free Software Foundation, Inc. 1652# 1653# This file is free software; the Free Software Foundation 1654# gives unlimited permission to copy and/or distribute it, 1655# with or without modifications, as long as this notice is preserved. 1656 1657# _AM_PROG_CC_C_O 1658# --------------- 1659# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 1660# to automatically call this. 1661AC_DEFUN([_AM_PROG_CC_C_O], 1662[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1663AC_REQUIRE_AUX_FILE([compile])dnl 1664AC_LANG_PUSH([C])dnl 1665AC_CACHE_CHECK( 1666 [whether $CC understands -c and -o together], 1667 [am_cv_prog_cc_c_o], 1668 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 1669 # Make sure it works both with $CC and with simple cc. 1670 # Following AC_PROG_CC_C_O, we do the test twice because some 1671 # compilers refuse to overwrite an existing .o file with -o, 1672 # though they will create one. 1673 am_cv_prog_cc_c_o=yes 1674 for am_i in 1 2; do 1675 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 1676 && test -f conftest2.$ac_objext; then 1677 : OK 1678 else 1679 am_cv_prog_cc_c_o=no 1680 break 1681 fi 1682 done 1683 rm -f core conftest* 1684 unset am_i]) 1685if test "$am_cv_prog_cc_c_o" != yes; then 1686 # Losing compiler, so override with the script. 1687 # FIXME: It is wrong to rewrite CC. 1688 # But if we don't then we get into trouble of one sort or another. 1689 # A longer-term fix would be to have automake use am__CC in this case, 1690 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 1691 CC="$am_aux_dir/compile $CC" 1692fi 1693AC_LANG_POP([C])]) 1694 1695# For backward compatibility. 1696AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 1697 1698# Copyright (C) 2001-2018 Free Software Foundation, Inc. 1699# 1700# This file is free software; the Free Software Foundation 1701# gives unlimited permission to copy and/or distribute it, 1702# with or without modifications, as long as this notice is preserved. 1703 1704# AM_RUN_LOG(COMMAND) 1705# ------------------- 1706# Run COMMAND, save the exit status in ac_status, and log it. 1707# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 1708AC_DEFUN([AM_RUN_LOG], 1709[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 1710 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 1711 ac_status=$? 1712 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1713 (exit $ac_status); }]) 1714 1715# Check to make sure that the build environment is sane. -*- Autoconf -*- 1716 1717# Copyright (C) 1996-2018 Free Software Foundation, Inc. 1718# 1719# This file is free software; the Free Software Foundation 1720# gives unlimited permission to copy and/or distribute it, 1721# with or without modifications, as long as this notice is preserved. 1722 1723# AM_SANITY_CHECK 1724# --------------- 1725AC_DEFUN([AM_SANITY_CHECK], 1726[AC_MSG_CHECKING([whether build environment is sane]) 1727# Reject unsafe characters in $srcdir or the absolute working directory 1728# name. Accept space and tab only in the latter. 1729am_lf=' 1730' 1731case `pwd` in 1732 *[[\\\"\#\$\&\'\`$am_lf]]*) 1733 AC_MSG_ERROR([unsafe absolute working directory name]);; 1734esac 1735case $srcdir in 1736 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 1737 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 1738esac 1739 1740# Do 'set' in a subshell so we don't clobber the current shell's 1741# arguments. Must try -L first in case configure is actually a 1742# symlink; some systems play weird games with the mod time of symlinks 1743# (eg FreeBSD returns the mod time of the symlink's containing 1744# directory). 1745if ( 1746 am_has_slept=no 1747 for am_try in 1 2; do 1748 echo "timestamp, slept: $am_has_slept" > conftest.file 1749 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1750 if test "$[*]" = "X"; then 1751 # -L didn't work. 1752 set X `ls -t "$srcdir/configure" conftest.file` 1753 fi 1754 if test "$[*]" != "X $srcdir/configure conftest.file" \ 1755 && test "$[*]" != "X conftest.file $srcdir/configure"; then 1756 1757 # If neither matched, then we have a broken ls. This can happen 1758 # if, for instance, CONFIG_SHELL is bash and it inherits a 1759 # broken ls alias from the environment. This has actually 1760 # happened. Such a system could not be considered "sane". 1761 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1762 alias in your environment]) 1763 fi 1764 if test "$[2]" = conftest.file || test $am_try -eq 2; then 1765 break 1766 fi 1767 # Just in case. 1768 sleep 1 1769 am_has_slept=yes 1770 done 1771 test "$[2]" = conftest.file 1772 ) 1773then 1774 # Ok. 1775 : 1776else 1777 AC_MSG_ERROR([newly created file is older than distributed files! 1778Check your system clock]) 1779fi 1780AC_MSG_RESULT([yes]) 1781# If we didn't sleep, we still need to ensure time stamps of config.status and 1782# generated files are strictly newer. 1783am_sleep_pid= 1784if grep 'slept: no' conftest.file >/dev/null 2>&1; then 1785 ( sleep 1 ) & 1786 am_sleep_pid=$! 1787fi 1788AC_CONFIG_COMMANDS_PRE( 1789 [AC_MSG_CHECKING([that generated files are newer than configure]) 1790 if test -n "$am_sleep_pid"; then 1791 # Hide warnings about reused PIDs. 1792 wait $am_sleep_pid 2>/dev/null 1793 fi 1794 AC_MSG_RESULT([done])]) 1795rm -f conftest.file 1796]) 1797 1798# Copyright (C) 2009-2018 Free Software Foundation, Inc. 1799# 1800# This file is free software; the Free Software Foundation 1801# gives unlimited permission to copy and/or distribute it, 1802# with or without modifications, as long as this notice is preserved. 1803 1804# AM_SILENT_RULES([DEFAULT]) 1805# -------------------------- 1806# Enable less verbose build rules; with the default set to DEFAULT 1807# ("yes" being less verbose, "no" or empty being verbose). 1808AC_DEFUN([AM_SILENT_RULES], 1809[AC_ARG_ENABLE([silent-rules], [dnl 1810AS_HELP_STRING( 1811 [--enable-silent-rules], 1812 [less verbose build output (undo: "make V=1")]) 1813AS_HELP_STRING( 1814 [--disable-silent-rules], 1815 [verbose build output (undo: "make V=0")])dnl 1816]) 1817case $enable_silent_rules in @%:@ ((( 1818 yes) AM_DEFAULT_VERBOSITY=0;; 1819 no) AM_DEFAULT_VERBOSITY=1;; 1820 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1821esac 1822dnl 1823dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 1824dnl do not support nested variable expansions. 1825dnl See automake bug#9928 and bug#10237. 1826am_make=${MAKE-make} 1827AC_CACHE_CHECK([whether $am_make supports nested variables], 1828 [am_cv_make_support_nested_variables], 1829 [if AS_ECHO([['TRUE=$(BAR$(V)) 1830BAR0=false 1831BAR1=true 1832V=1 1833am__doit: 1834 @$(TRUE) 1835.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1836 am_cv_make_support_nested_variables=yes 1837else 1838 am_cv_make_support_nested_variables=no 1839fi]) 1840if test $am_cv_make_support_nested_variables = yes; then 1841 dnl Using '$V' instead of '$(V)' breaks IRIX make. 1842 AM_V='$(V)' 1843 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1844else 1845 AM_V=$AM_DEFAULT_VERBOSITY 1846 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1847fi 1848AC_SUBST([AM_V])dnl 1849AM_SUBST_NOTMAKE([AM_V])dnl 1850AC_SUBST([AM_DEFAULT_V])dnl 1851AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1852AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1853AM_BACKSLASH='\' 1854AC_SUBST([AM_BACKSLASH])dnl 1855_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1856]) 1857 1858# Copyright (C) 2001-2018 Free Software Foundation, Inc. 1859# 1860# This file is free software; the Free Software Foundation 1861# gives unlimited permission to copy and/or distribute it, 1862# with or without modifications, as long as this notice is preserved. 1863 1864# AM_PROG_INSTALL_STRIP 1865# --------------------- 1866# One issue with vendor 'install' (even GNU) is that you can't 1867# specify the program used to strip binaries. This is especially 1868# annoying in cross-compiling environments, where the build's strip 1869# is unlikely to handle the host's binaries. 1870# Fortunately install-sh will honor a STRIPPROG variable, so we 1871# always use install-sh in "make install-strip", and initialize 1872# STRIPPROG with the value of the STRIP variable (set by the user). 1873AC_DEFUN([AM_PROG_INSTALL_STRIP], 1874[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1875# Installed binaries are usually stripped using 'strip' when the user 1876# run "make install-strip". However 'strip' might not be the right 1877# tool to use in cross-compilation environments, therefore Automake 1878# will honor the 'STRIP' environment variable to overrule this program. 1879dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1880if test "$cross_compiling" != no; then 1881 AC_CHECK_TOOL([STRIP], [strip], :) 1882fi 1883INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1884AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1885 1886# Copyright (C) 2006-2018 Free Software Foundation, Inc. 1887# 1888# This file is free software; the Free Software Foundation 1889# gives unlimited permission to copy and/or distribute it, 1890# with or without modifications, as long as this notice is preserved. 1891 1892# _AM_SUBST_NOTMAKE(VARIABLE) 1893# --------------------------- 1894# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1895# This macro is traced by Automake. 1896AC_DEFUN([_AM_SUBST_NOTMAKE]) 1897 1898# AM_SUBST_NOTMAKE(VARIABLE) 1899# -------------------------- 1900# Public sister of _AM_SUBST_NOTMAKE. 1901AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1902 1903# Check how to create a tarball. -*- Autoconf -*- 1904 1905# Copyright (C) 2004-2018 Free Software Foundation, Inc. 1906# 1907# This file is free software; the Free Software Foundation 1908# gives unlimited permission to copy and/or distribute it, 1909# with or without modifications, as long as this notice is preserved. 1910 1911# _AM_PROG_TAR(FORMAT) 1912# -------------------- 1913# Check how to create a tarball in format FORMAT. 1914# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1915# 1916# Substitute a variable $(am__tar) that is a command 1917# writing to stdout a FORMAT-tarball containing the directory 1918# $tardir. 1919# tardir=directory && $(am__tar) > result.tar 1920# 1921# Substitute a variable $(am__untar) that extract such 1922# a tarball read from stdin. 1923# $(am__untar) < result.tar 1924# 1925AC_DEFUN([_AM_PROG_TAR], 1926[# Always define AMTAR for backward compatibility. Yes, it's still used 1927# in the wild :-( We should find a proper way to deprecate it ... 1928AC_SUBST([AMTAR], ['$${TAR-tar}']) 1929 1930# We'll loop over all known methods to create a tar archive until one works. 1931_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1932 1933m4_if([$1], [v7], 1934 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1935 1936 [m4_case([$1], 1937 [ustar], 1938 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1939 # There is notably a 21 bits limit for the UID and the GID. In fact, 1940 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1941 # and bug#13588). 1942 am_max_uid=2097151 # 2^21 - 1 1943 am_max_gid=$am_max_uid 1944 # The $UID and $GID variables are not portable, so we need to resort 1945 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1946 # below are definitely unexpected, so allow the users to see them 1947 # (that is, avoid stderr redirection). 1948 am_uid=`id -u || echo unknown` 1949 am_gid=`id -g || echo unknown` 1950 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1951 if test $am_uid -le $am_max_uid; then 1952 AC_MSG_RESULT([yes]) 1953 else 1954 AC_MSG_RESULT([no]) 1955 _am_tools=none 1956 fi 1957 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1958 if test $am_gid -le $am_max_gid; then 1959 AC_MSG_RESULT([yes]) 1960 else 1961 AC_MSG_RESULT([no]) 1962 _am_tools=none 1963 fi], 1964 1965 [pax], 1966 [], 1967 1968 [m4_fatal([Unknown tar format])]) 1969 1970 AC_MSG_CHECKING([how to create a $1 tar archive]) 1971 1972 # Go ahead even if we have the value already cached. We do so because we 1973 # need to set the values for the 'am__tar' and 'am__untar' variables. 1974 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1975 1976 for _am_tool in $_am_tools; do 1977 case $_am_tool in 1978 gnutar) 1979 for _am_tar in tar gnutar gtar; do 1980 AM_RUN_LOG([$_am_tar --version]) && break 1981 done 1982 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1983 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1984 am__untar="$_am_tar -xf -" 1985 ;; 1986 plaintar) 1987 # Must skip GNU tar: if it does not support --format= it doesn't create 1988 # ustar tarball either. 1989 (tar --version) >/dev/null 2>&1 && continue 1990 am__tar='tar chf - "$$tardir"' 1991 am__tar_='tar chf - "$tardir"' 1992 am__untar='tar xf -' 1993 ;; 1994 pax) 1995 am__tar='pax -L -x $1 -w "$$tardir"' 1996 am__tar_='pax -L -x $1 -w "$tardir"' 1997 am__untar='pax -r' 1998 ;; 1999 cpio) 2000 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 2001 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 2002 am__untar='cpio -i -H $1 -d' 2003 ;; 2004 none) 2005 am__tar=false 2006 am__tar_=false 2007 am__untar=false 2008 ;; 2009 esac 2010 2011 # If the value was cached, stop now. We just wanted to have am__tar 2012 # and am__untar set. 2013 test -n "${am_cv_prog_tar_$1}" && break 2014 2015 # tar/untar a dummy directory, and stop if the command works. 2016 rm -rf conftest.dir 2017 mkdir conftest.dir 2018 echo GrepMe > conftest.dir/file 2019 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 2020 rm -rf conftest.dir 2021 if test -s conftest.tar; then 2022 AM_RUN_LOG([$am__untar <conftest.tar]) 2023 AM_RUN_LOG([cat conftest.dir/file]) 2024 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 2025 fi 2026 done 2027 rm -rf conftest.dir 2028 2029 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 2030 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 2031 2032AC_SUBST([am__tar]) 2033AC_SUBST([am__untar]) 2034]) # _AM_PROG_TAR 2035 2036# Autoconf support for the Vala compiler 2037 2038# Copyright (C) 2008-2018 Free Software Foundation, Inc. 2039# 2040# This file is free software; the Free Software Foundation 2041# gives unlimited permission to copy and/or distribute it, 2042# with or without modifications, as long as this notice is preserved. 2043 2044# Check whether the Vala compiler exists in $PATH. If it is found, the 2045# variable VALAC is set pointing to its absolute path. Otherwise, it is 2046# simply set to 'valac'. 2047# Optionally a minimum release number of the compiler can be requested. 2048# If the ACTION-IF-FOUND parameter is given, it will be run if a proper 2049# Vala compiler is found. 2050# Similarly, if the ACTION-IF-FOUND is given, it will be run if no proper 2051# Vala compiler is found. It defaults to simply print a warning about the 2052# situation, but otherwise proceeding with the configuration. 2053# 2054# AM_PROG_VALAC([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2055# -------------------------------------------------------------------------- 2056AC_DEFUN([AM_PROG_VALAC], 2057 [AC_PATH_PROG([VALAC], [valac], [valac]) 2058 AS_IF([test "$VALAC" != valac && test -n "$1"], 2059 [AC_MSG_CHECKING([whether $VALAC is at least version $1]) 2060 am__vala_version=`$VALAC --version | sed 's/Vala *//'` 2061 AS_VERSION_COMPARE([$1], ["$am__vala_version"], 2062 [AC_MSG_RESULT([yes])], 2063 [AC_MSG_RESULT([yes])], 2064 [AC_MSG_RESULT([no]) 2065 VALAC=valac])]) 2066 if test "$VALAC" = valac; then 2067 m4_default([$3], 2068 [AC_MSG_WARN([no proper vala compiler found]) 2069 AC_MSG_WARN([you will not be able to compile vala source files])]) 2070 else 2071 m4_default([$2], [:]) 2072 fi]) 2073 2074 2075dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) 2076# serial 42 IT_PROG_INTLTOOL 2077AC_DEFUN([IT_PROG_INTLTOOL], [ 2078AC_PREREQ([2.50])dnl 2079AC_REQUIRE([AM_NLS])dnl 2080 2081case "$am__api_version" in 2082 1.[01234]) 2083 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) 2084 ;; 2085 *) 2086 ;; 2087esac 2088 2089INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 2090INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` 2091INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 2092if test -n "$1"; then 2093 AC_MSG_CHECKING([for intltool >= $1]) 2094 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) 2095 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 2096 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) 2097fi 2098 2099AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) 2100AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) 2101AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) 2102if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then 2103 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) 2104fi 2105 2106if test -z "$AM_DEFAULT_VERBOSITY"; then 2107 AM_DEFAULT_VERBOSITY=1 2108fi 2109AC_SUBST([AM_DEFAULT_VERBOSITY]) 2110 2111INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' 2112INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' 2113INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' 2114AC_SUBST(INTLTOOL_V_MERGE) 2115AC_SUBST(INTLTOOL__v_MERGE_) 2116AC_SUBST(INTLTOOL__v_MERGE_0) 2117 2118INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' 2119intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' 2120intltool__v_merge_options_0='-q' 2121AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) 2122AC_SUBST(intltool__v_merge_options_) 2123AC_SUBST(intltool__v_merge_options_0) 2124 2125 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2126INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2127 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2128 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2129 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' 2130 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2131 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2132 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2133INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2134 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2135 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2136if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then 2137 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' 2138else 2139 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' 2140fi 2141 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2142 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2143 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2144 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2145 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2146 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2147 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 2148 2149_IT_SUBST(INTLTOOL_DESKTOP_RULE) 2150_IT_SUBST(INTLTOOL_DIRECTORY_RULE) 2151_IT_SUBST(INTLTOOL_KEYS_RULE) 2152_IT_SUBST(INTLTOOL_PROP_RULE) 2153_IT_SUBST(INTLTOOL_OAF_RULE) 2154_IT_SUBST(INTLTOOL_PONG_RULE) 2155_IT_SUBST(INTLTOOL_SERVER_RULE) 2156_IT_SUBST(INTLTOOL_SHEET_RULE) 2157_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) 2158_IT_SUBST(INTLTOOL_UI_RULE) 2159_IT_SUBST(INTLTOOL_XAM_RULE) 2160_IT_SUBST(INTLTOOL_KBD_RULE) 2161_IT_SUBST(INTLTOOL_XML_RULE) 2162_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) 2163_IT_SUBST(INTLTOOL_CAVES_RULE) 2164_IT_SUBST(INTLTOOL_SCHEMAS_RULE) 2165_IT_SUBST(INTLTOOL_THEME_RULE) 2166_IT_SUBST(INTLTOOL_SERVICE_RULE) 2167_IT_SUBST(INTLTOOL_POLICY_RULE) 2168 2169# Check the gettext tools to make sure they are GNU 2170AC_PATH_PROG(XGETTEXT, xgettext) 2171AC_PATH_PROG(MSGMERGE, msgmerge) 2172AC_PATH_PROG(MSGFMT, msgfmt) 2173AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 2174if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 2175 AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 2176fi 2177xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" 2178mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" 2179mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" 2180if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then 2181 AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 2182fi 2183 2184AC_PATH_PROG(INTLTOOL_PERL, perl) 2185if test -z "$INTLTOOL_PERL"; then 2186 AC_MSG_ERROR([perl not found]) 2187fi 2188AC_MSG_CHECKING([for perl >= 5.8.1]) 2189$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 2190if test $? -ne 0; then 2191 AC_MSG_ERROR([perl 5.8.1 is required for intltool]) 2192else 2193 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` 2194 AC_MSG_RESULT([$IT_PERL_VERSION]) 2195fi 2196if test "x$2" != "xno-xml"; then 2197 AC_MSG_CHECKING([for XML::Parser]) 2198 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 2199 AC_MSG_RESULT([ok]) 2200 else 2201 AC_MSG_ERROR([XML::Parser perl module is required for intltool]) 2202 fi 2203fi 2204 2205# Substitute ALL_LINGUAS so we can use it in po/Makefile 2206AC_SUBST(ALL_LINGUAS) 2207 2208IT_PO_SUBDIR([po]) 2209 2210]) 2211 2212 2213# IT_PO_SUBDIR(DIRNAME) 2214# --------------------- 2215# All po subdirs have to be declared with this macro; the subdir "po" is 2216# declared by IT_PROG_INTLTOOL. 2217# 2218AC_DEFUN([IT_PO_SUBDIR], 2219[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. 2220dnl 2221dnl The following CONFIG_COMMANDS should be executed at the very end 2222dnl of config.status. 2223AC_CONFIG_COMMANDS_PRE([ 2224 AC_CONFIG_COMMANDS([$1/stamp-it], [ 2225 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then 2226 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) 2227 fi 2228 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" 2229 >"$1/stamp-it.tmp" 2230 [sed '/^#/d 2231 s/^[[].*] *// 2232 /^[ ]*$/d 2233 '"s|^| $ac_top_srcdir/|" \ 2234 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" 2235 ] 2236 [sed '/^POTFILES =/,/[^\\]$/ { 2237 /^POTFILES =/!d 2238 r $1/POTFILES 2239 } 2240 ' "$1/Makefile.in" >"$1/Makefile"] 2241 rm -f "$1/Makefile.tmp" 2242 mv "$1/stamp-it.tmp" "$1/stamp-it" 2243 ]) 2244])dnl 2245]) 2246 2247# _IT_SUBST(VARIABLE) 2248# ------------------- 2249# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST 2250# 2251AC_DEFUN([_IT_SUBST], 2252[ 2253AC_SUBST([$1]) 2254m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) 2255] 2256) 2257 2258# deprecated macros 2259AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) 2260# A hint is needed for aclocal from Automake <= 1.9.4: 2261# AC_DEFUN([AC_PROG_INTLTOOL], ...) 2262 2263 2264# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2265# 2266# Copyright (C) 1996-2001, 2003-2018 Free Software Foundation, Inc. 2267# Written by Gordon Matzigkeit, 1996 2268# 2269# This file is free software; the Free Software Foundation gives 2270# unlimited permission to copy and/or distribute it, with or without 2271# modifications, as long as this notice is preserved. 2272 2273m4_define([_LT_COPYING], [dnl 2274# Copyright (C) 2014 Free Software Foundation, Inc. 2275# This is free software; see the source for copying conditions. There is NO 2276# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 2277 2278# GNU Libtool is free software; you can redistribute it and/or modify 2279# it under the terms of the GNU General Public License as published by 2280# the Free Software Foundation; either version 2 of of the License, or 2281# (at your option) any later version. 2282# 2283# As a special exception to the GNU General Public License, if you 2284# distribute this file as part of a program or library that is built 2285# using GNU Libtool, you may include this file under the same 2286# distribution terms that you use for the rest of that program. 2287# 2288# GNU Libtool is distributed in the hope that it will be useful, but 2289# WITHOUT ANY WARRANTY; without even the implied warranty of 2290# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2291# GNU General Public License for more details. 2292# 2293# You should have received a copy of the GNU General Public License 2294# along with this program. If not, see <http://www.gnu.org/licenses/>. 2295]) 2296 2297# serial 58 LT_INIT 2298 2299 2300# LT_PREREQ(VERSION) 2301# ------------------ 2302# Complain and exit if this libtool version is less that VERSION. 2303m4_defun([LT_PREREQ], 2304[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 2305 [m4_default([$3], 2306 [m4_fatal([Libtool version $1 or higher is required], 2307 63)])], 2308 [$2])]) 2309 2310 2311# _LT_CHECK_BUILDDIR 2312# ------------------ 2313# Complain if the absolute build directory name contains unusual characters 2314m4_defun([_LT_CHECK_BUILDDIR], 2315[case `pwd` in 2316 *\ * | *\ *) 2317 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 2318esac 2319]) 2320 2321 2322# LT_INIT([OPTIONS]) 2323# ------------------ 2324AC_DEFUN([LT_INIT], 2325[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 2326AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 2327AC_BEFORE([$0], [LT_LANG])dnl 2328AC_BEFORE([$0], [LT_OUTPUT])dnl 2329AC_BEFORE([$0], [LTDL_INIT])dnl 2330m4_require([_LT_CHECK_BUILDDIR])dnl 2331 2332dnl Autoconf doesn't catch unexpanded LT_ macros by default: 2333m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 2334m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 2335dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 2336dnl unless we require an AC_DEFUNed macro: 2337AC_REQUIRE([LTOPTIONS_VERSION])dnl 2338AC_REQUIRE([LTSUGAR_VERSION])dnl 2339AC_REQUIRE([LTVERSION_VERSION])dnl 2340AC_REQUIRE([LTOBSOLETE_VERSION])dnl 2341m4_require([_LT_PROG_LTMAIN])dnl 2342 2343_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 2344 2345dnl Parse OPTIONS 2346_LT_SET_OPTIONS([$0], [$1]) 2347 2348# This can be used to rebuild libtool when needed 2349LIBTOOL_DEPS=$ltmain 2350 2351# Always use our own libtool. 2352LIBTOOL='$(SHELL) $(top_builddir)/libtool' 2353AC_SUBST(LIBTOOL)dnl 2354 2355_LT_SETUP 2356 2357# Only expand once: 2358m4_define([LT_INIT]) 2359])# LT_INIT 2360 2361# Old names: 2362AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 2363AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 2364dnl aclocal-1.4 backwards compatibility: 2365dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 2366dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 2367 2368 2369# _LT_PREPARE_CC_BASENAME 2370# ----------------------- 2371m4_defun([_LT_PREPARE_CC_BASENAME], [ 2372# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 2373func_cc_basename () 2374{ 2375 for cc_temp in @S|@*""; do 2376 case $cc_temp in 2377 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 2378 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 2379 \-*) ;; 2380 *) break;; 2381 esac 2382 done 2383 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 2384} 2385])# _LT_PREPARE_CC_BASENAME 2386 2387 2388# _LT_CC_BASENAME(CC) 2389# ------------------- 2390# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 2391# but that macro is also expanded into generated libtool script, which 2392# arranges for $SED and $ECHO to be set by different means. 2393m4_defun([_LT_CC_BASENAME], 2394[m4_require([_LT_PREPARE_CC_BASENAME])dnl 2395AC_REQUIRE([_LT_DECL_SED])dnl 2396AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 2397func_cc_basename $1 2398cc_basename=$func_cc_basename_result 2399]) 2400 2401 2402# _LT_FILEUTILS_DEFAULTS 2403# ---------------------- 2404# It is okay to use these file commands and assume they have been set 2405# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 2406m4_defun([_LT_FILEUTILS_DEFAULTS], 2407[: ${CP="cp -f"} 2408: ${MV="mv -f"} 2409: ${RM="rm -f"} 2410])# _LT_FILEUTILS_DEFAULTS 2411 2412 2413# _LT_SETUP 2414# --------- 2415m4_defun([_LT_SETUP], 2416[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2417AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2418AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 2419AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 2420 2421_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 2422dnl 2423_LT_DECL([], [host_alias], [0], [The host system])dnl 2424_LT_DECL([], [host], [0])dnl 2425_LT_DECL([], [host_os], [0])dnl 2426dnl 2427_LT_DECL([], [build_alias], [0], [The build system])dnl 2428_LT_DECL([], [build], [0])dnl 2429_LT_DECL([], [build_os], [0])dnl 2430dnl 2431AC_REQUIRE([AC_PROG_CC])dnl 2432AC_REQUIRE([LT_PATH_LD])dnl 2433AC_REQUIRE([LT_PATH_NM])dnl 2434dnl 2435AC_REQUIRE([AC_PROG_LN_S])dnl 2436test -z "$LN_S" && LN_S="ln -s" 2437_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 2438dnl 2439AC_REQUIRE([LT_CMD_MAX_LEN])dnl 2440_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 2441_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 2442dnl 2443m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2444m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2445m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 2446m4_require([_LT_CMD_RELOAD])dnl 2447m4_require([_LT_CHECK_MAGIC_METHOD])dnl 2448m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 2449m4_require([_LT_CMD_OLD_ARCHIVE])dnl 2450m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 2451m4_require([_LT_WITH_SYSROOT])dnl 2452m4_require([_LT_CMD_TRUNCATE])dnl 2453 2454_LT_CONFIG_LIBTOOL_INIT([ 2455# See if we are running on zsh, and set the options that allow our 2456# commands through without removal of \ escapes INIT. 2457if test -n "\${ZSH_VERSION+set}"; then 2458 setopt NO_GLOB_SUBST 2459fi 2460]) 2461if test -n "${ZSH_VERSION+set}"; then 2462 setopt NO_GLOB_SUBST 2463fi 2464 2465_LT_CHECK_OBJDIR 2466 2467m4_require([_LT_TAG_COMPILER])dnl 2468 2469case $host_os in 2470aix3*) 2471 # AIX sometimes has problems with the GCC collect2 program. For some 2472 # reason, if we set the COLLECT_NAMES environment variable, the problems 2473 # vanish in a puff of smoke. 2474 if test set != "${COLLECT_NAMES+set}"; then 2475 COLLECT_NAMES= 2476 export COLLECT_NAMES 2477 fi 2478 ;; 2479esac 2480 2481# Global variables: 2482ofile=libtool 2483can_build_shared=yes 2484 2485# All known linkers require a '.a' archive for static linking (except MSVC and 2486# ICC, which need '.lib'). 2487libext=a 2488 2489with_gnu_ld=$lt_cv_prog_gnu_ld 2490 2491old_CC=$CC 2492old_CFLAGS=$CFLAGS 2493 2494# Set sane defaults for various variables 2495test -z "$CC" && CC=cc 2496test -z "$LTCC" && LTCC=$CC 2497test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2498test -z "$LD" && LD=ld 2499test -z "$ac_objext" && ac_objext=o 2500 2501_LT_CC_BASENAME([$compiler]) 2502 2503# Only perform the check for file, if the check method requires it 2504test -z "$MAGIC_CMD" && MAGIC_CMD=file 2505case $deplibs_check_method in 2506file_magic*) 2507 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2508 _LT_PATH_MAGIC 2509 fi 2510 ;; 2511esac 2512 2513# Use C for the default configuration in the libtool script 2514LT_SUPPORTED_TAG([CC]) 2515_LT_LANG_C_CONFIG 2516_LT_LANG_DEFAULT_CONFIG 2517_LT_CONFIG_COMMANDS 2518])# _LT_SETUP 2519 2520 2521# _LT_PREPARE_SED_QUOTE_VARS 2522# -------------------------- 2523# Define a few sed substitution that help us do robust quoting. 2524m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 2525[# Backslashify metacharacters that are still active within 2526# double-quoted strings. 2527sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2528 2529# Same as above, but do not quote variable references. 2530double_quote_subst='s/\([["`\\]]\)/\\\1/g' 2531 2532# Sed substitution to delay expansion of an escaped shell variable in a 2533# double_quote_subst'ed string. 2534delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2535 2536# Sed substitution to delay expansion of an escaped single quote. 2537delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2538 2539# Sed substitution to avoid accidental globbing in evaled expressions 2540no_glob_subst='s/\*/\\\*/g' 2541]) 2542 2543# _LT_PROG_LTMAIN 2544# --------------- 2545# Note that this code is called both from 'configure', and 'config.status' 2546# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2547# 'config.status' has no value for ac_aux_dir unless we are using Automake, 2548# so we pass a copy along to make sure it has a sensible value anyway. 2549m4_defun([_LT_PROG_LTMAIN], 2550[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2551_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2552ltmain=$ac_aux_dir/ltmain.sh 2553])# _LT_PROG_LTMAIN 2554 2555 2556 2557# So that we can recreate a full libtool script including additional 2558# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2559# in macros and then make a single call at the end using the 'libtool' 2560# label. 2561 2562 2563# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2564# ---------------------------------------- 2565# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2566m4_define([_LT_CONFIG_LIBTOOL_INIT], 2567[m4_ifval([$1], 2568 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 2569 [$1 2570])])]) 2571 2572# Initialize. 2573m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 2574 2575 2576# _LT_CONFIG_LIBTOOL([COMMANDS]) 2577# ------------------------------ 2578# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2579m4_define([_LT_CONFIG_LIBTOOL], 2580[m4_ifval([$1], 2581 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 2582 [$1 2583])])]) 2584 2585# Initialize. 2586m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 2587 2588 2589# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 2590# ----------------------------------------------------- 2591m4_defun([_LT_CONFIG_SAVE_COMMANDS], 2592[_LT_CONFIG_LIBTOOL([$1]) 2593_LT_CONFIG_LIBTOOL_INIT([$2]) 2594]) 2595 2596 2597# _LT_FORMAT_COMMENT([COMMENT]) 2598# ----------------------------- 2599# Add leading comment marks to the start of each line, and a trailing 2600# full-stop to the whole comment if one is not present already. 2601m4_define([_LT_FORMAT_COMMENT], 2602[m4_ifval([$1], [ 2603m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 2604 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 2605)]) 2606 2607 2608 2609 2610 2611# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 2612# ------------------------------------------------------------------- 2613# CONFIGNAME is the name given to the value in the libtool script. 2614# VARNAME is the (base) name used in the configure script. 2615# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 2616# VARNAME. Any other value will be used directly. 2617m4_define([_LT_DECL], 2618[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 2619 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 2620 [m4_ifval([$1], [$1], [$2])]) 2621 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 2622 m4_ifval([$4], 2623 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 2624 lt_dict_add_subkey([lt_decl_dict], [$2], 2625 [tagged?], [m4_ifval([$5], [yes], [no])])]) 2626]) 2627 2628 2629# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 2630# -------------------------------------------------------- 2631m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 2632 2633 2634# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 2635# ------------------------------------------------ 2636m4_define([lt_decl_tag_varnames], 2637[_lt_decl_filter([tagged?], [yes], $@)]) 2638 2639 2640# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 2641# --------------------------------------------------------- 2642m4_define([_lt_decl_filter], 2643[m4_case([$#], 2644 [0], [m4_fatal([$0: too few arguments: $#])], 2645 [1], [m4_fatal([$0: too few arguments: $#: $1])], 2646 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 2647 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 2648 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 2649]) 2650 2651 2652# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 2653# -------------------------------------------------- 2654m4_define([lt_decl_quote_varnames], 2655[_lt_decl_filter([value], [1], $@)]) 2656 2657 2658# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 2659# --------------------------------------------------- 2660m4_define([lt_decl_dquote_varnames], 2661[_lt_decl_filter([value], [2], $@)]) 2662 2663 2664# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 2665# --------------------------------------------------- 2666m4_define([lt_decl_varnames_tagged], 2667[m4_assert([$# <= 2])dnl 2668_$0(m4_quote(m4_default([$1], [[, ]])), 2669 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 2670 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 2671m4_define([_lt_decl_varnames_tagged], 2672[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 2673 2674 2675# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 2676# ------------------------------------------------ 2677m4_define([lt_decl_all_varnames], 2678[_$0(m4_quote(m4_default([$1], [[, ]])), 2679 m4_if([$2], [], 2680 m4_quote(lt_decl_varnames), 2681 m4_quote(m4_shift($@))))[]dnl 2682]) 2683m4_define([_lt_decl_all_varnames], 2684[lt_join($@, lt_decl_varnames_tagged([$1], 2685 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 2686]) 2687 2688 2689# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 2690# ------------------------------------ 2691# Quote a variable value, and forward it to 'config.status' so that its 2692# declaration there will have the same value as in 'configure'. VARNAME 2693# must have a single quote delimited value for this to work. 2694m4_define([_LT_CONFIG_STATUS_DECLARE], 2695[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 2696 2697 2698# _LT_CONFIG_STATUS_DECLARATIONS 2699# ------------------------------ 2700# We delimit libtool config variables with single quotes, so when 2701# we write them to config.status, we have to be sure to quote all 2702# embedded single quotes properly. In configure, this macro expands 2703# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 2704# 2705# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 2706m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 2707[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 2708 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 2709 2710 2711# _LT_LIBTOOL_TAGS 2712# ---------------- 2713# Output comment and list of tags supported by the script 2714m4_defun([_LT_LIBTOOL_TAGS], 2715[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 2716available_tags='_LT_TAGS'dnl 2717]) 2718 2719 2720# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 2721# ----------------------------------- 2722# Extract the dictionary values for VARNAME (optionally with TAG) and 2723# expand to a commented shell variable setting: 2724# 2725# # Some comment about what VAR is for. 2726# visible_name=$lt_internal_name 2727m4_define([_LT_LIBTOOL_DECLARE], 2728[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 2729 [description])))[]dnl 2730m4_pushdef([_libtool_name], 2731 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 2732m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 2733 [0], [_libtool_name=[$]$1], 2734 [1], [_libtool_name=$lt_[]$1], 2735 [2], [_libtool_name=$lt_[]$1], 2736 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 2737m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 2738]) 2739 2740 2741# _LT_LIBTOOL_CONFIG_VARS 2742# ----------------------- 2743# Produce commented declarations of non-tagged libtool config variables 2744# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 2745# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 2746# section) are produced by _LT_LIBTOOL_TAG_VARS. 2747m4_defun([_LT_LIBTOOL_CONFIG_VARS], 2748[m4_foreach([_lt_var], 2749 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 2750 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 2751 2752 2753# _LT_LIBTOOL_TAG_VARS(TAG) 2754# ------------------------- 2755m4_define([_LT_LIBTOOL_TAG_VARS], 2756[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 2757 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 2758 2759 2760# _LT_TAGVAR(VARNAME, [TAGNAME]) 2761# ------------------------------ 2762m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 2763 2764 2765# _LT_CONFIG_COMMANDS 2766# ------------------- 2767# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 2768# variables for single and double quote escaping we saved from calls 2769# to _LT_DECL, we can put quote escaped variables declarations 2770# into 'config.status', and then the shell code to quote escape them in 2771# for loops in 'config.status'. Finally, any additional code accumulated 2772# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 2773m4_defun([_LT_CONFIG_COMMANDS], 2774[AC_PROVIDE_IFELSE([LT_OUTPUT], 2775 dnl If the libtool generation code has been placed in $CONFIG_LT, 2776 dnl instead of duplicating it all over again into config.status, 2777 dnl then we will have config.status run $CONFIG_LT later, so it 2778 dnl needs to know what name is stored there: 2779 [AC_CONFIG_COMMANDS([libtool], 2780 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 2781 dnl If the libtool generation code is destined for config.status, 2782 dnl expand the accumulated commands and init code now: 2783 [AC_CONFIG_COMMANDS([libtool], 2784 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 2785])#_LT_CONFIG_COMMANDS 2786 2787 2788# Initialize. 2789m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 2790[ 2791 2792# The HP-UX ksh and POSIX shell print the target directory to stdout 2793# if CDPATH is set. 2794(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2795 2796sed_quote_subst='$sed_quote_subst' 2797double_quote_subst='$double_quote_subst' 2798delay_variable_subst='$delay_variable_subst' 2799_LT_CONFIG_STATUS_DECLARATIONS 2800LTCC='$LTCC' 2801LTCFLAGS='$LTCFLAGS' 2802compiler='$compiler_DEFAULT' 2803 2804# A function that is used when there is no print builtin or printf. 2805func_fallback_echo () 2806{ 2807 eval 'cat <<_LTECHO_EOF 2808\$[]1 2809_LTECHO_EOF' 2810} 2811 2812# Quote evaled strings. 2813for var in lt_decl_all_varnames([[ \ 2814]], lt_decl_quote_varnames); do 2815 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 2816 *[[\\\\\\\`\\"\\\$]]*) 2817 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 2818 ;; 2819 *) 2820 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2821 ;; 2822 esac 2823done 2824 2825# Double-quote double-evaled strings. 2826for var in lt_decl_all_varnames([[ \ 2827]], lt_decl_dquote_varnames); do 2828 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 2829 *[[\\\\\\\`\\"\\\$]]*) 2830 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 2831 ;; 2832 *) 2833 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2834 ;; 2835 esac 2836done 2837 2838_LT_OUTPUT_LIBTOOL_INIT 2839]) 2840 2841# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 2842# ------------------------------------ 2843# Generate a child script FILE with all initialization necessary to 2844# reuse the environment learned by the parent script, and make the 2845# file executable. If COMMENT is supplied, it is inserted after the 2846# '#!' sequence but before initialization text begins. After this 2847# macro, additional text can be appended to FILE to form the body of 2848# the child script. The macro ends with non-zero status if the 2849# file could not be fully written (such as if the disk is full). 2850m4_ifdef([AS_INIT_GENERATED], 2851[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 2852[m4_defun([_LT_GENERATED_FILE_INIT], 2853[m4_require([AS_PREPARE])]dnl 2854[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 2855[lt_write_fail=0 2856cat >$1 <<_ASEOF || lt_write_fail=1 2857#! $SHELL 2858# Generated by $as_me. 2859$2 2860SHELL=\${CONFIG_SHELL-$SHELL} 2861export SHELL 2862_ASEOF 2863cat >>$1 <<\_ASEOF || lt_write_fail=1 2864AS_SHELL_SANITIZE 2865_AS_PREPARE 2866exec AS_MESSAGE_FD>&1 2867_ASEOF 2868test 0 = "$lt_write_fail" && chmod +x $1[]dnl 2869m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 2870 2871# LT_OUTPUT 2872# --------- 2873# This macro allows early generation of the libtool script (before 2874# AC_OUTPUT is called), incase it is used in configure for compilation 2875# tests. 2876AC_DEFUN([LT_OUTPUT], 2877[: ${CONFIG_LT=./config.lt} 2878AC_MSG_NOTICE([creating $CONFIG_LT]) 2879_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 2880[# Run this file to recreate a libtool stub with the current configuration.]) 2881 2882cat >>"$CONFIG_LT" <<\_LTEOF 2883lt_cl_silent=false 2884exec AS_MESSAGE_LOG_FD>>config.log 2885{ 2886 echo 2887 AS_BOX([Running $as_me.]) 2888} >&AS_MESSAGE_LOG_FD 2889 2890lt_cl_help="\ 2891'$as_me' creates a local libtool stub from the current configuration, 2892for use in further configure time tests before the real libtool is 2893generated. 2894 2895Usage: $[0] [[OPTIONS]] 2896 2897 -h, --help print this help, then exit 2898 -V, --version print version number, then exit 2899 -q, --quiet do not print progress messages 2900 -d, --debug don't remove temporary files 2901 2902Report bugs to <bug-libtool@gnu.org>." 2903 2904lt_cl_version="\ 2905m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 2906m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 2907configured by $[0], generated by m4_PACKAGE_STRING. 2908 2909Copyright (C) 2011 Free Software Foundation, Inc. 2910This config.lt script is free software; the Free Software Foundation 2911gives unlimited permision to copy, distribute and modify it." 2912 2913while test 0 != $[#] 2914do 2915 case $[1] in 2916 --version | --v* | -V ) 2917 echo "$lt_cl_version"; exit 0 ;; 2918 --help | --h* | -h ) 2919 echo "$lt_cl_help"; exit 0 ;; 2920 --debug | --d* | -d ) 2921 debug=: ;; 2922 --quiet | --q* | --silent | --s* | -q ) 2923 lt_cl_silent=: ;; 2924 2925 -*) AC_MSG_ERROR([unrecognized option: $[1] 2926Try '$[0] --help' for more information.]) ;; 2927 2928 *) AC_MSG_ERROR([unrecognized argument: $[1] 2929Try '$[0] --help' for more information.]) ;; 2930 esac 2931 shift 2932done 2933 2934if $lt_cl_silent; then 2935 exec AS_MESSAGE_FD>/dev/null 2936fi 2937_LTEOF 2938 2939cat >>"$CONFIG_LT" <<_LTEOF 2940_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 2941_LTEOF 2942 2943cat >>"$CONFIG_LT" <<\_LTEOF 2944AC_MSG_NOTICE([creating $ofile]) 2945_LT_OUTPUT_LIBTOOL_COMMANDS 2946AS_EXIT(0) 2947_LTEOF 2948chmod +x "$CONFIG_LT" 2949 2950# configure is writing to config.log, but config.lt does its own redirection, 2951# appending to config.log, which fails on DOS, as config.log is still kept 2952# open by configure. Here we exec the FD to /dev/null, effectively closing 2953# config.log, so it can be properly (re)opened and appended to by config.lt. 2954lt_cl_success=: 2955test yes = "$silent" && 2956 lt_config_lt_args="$lt_config_lt_args --quiet" 2957exec AS_MESSAGE_LOG_FD>/dev/null 2958$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 2959exec AS_MESSAGE_LOG_FD>>config.log 2960$lt_cl_success || AS_EXIT(1) 2961])# LT_OUTPUT 2962 2963 2964# _LT_CONFIG(TAG) 2965# --------------- 2966# If TAG is the built-in tag, create an initial libtool script with a 2967# default configuration from the untagged config vars. Otherwise add code 2968# to config.status for appending the configuration named by TAG from the 2969# matching tagged config vars. 2970m4_defun([_LT_CONFIG], 2971[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2972_LT_CONFIG_SAVE_COMMANDS([ 2973 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 2974 m4_if(_LT_TAG, [C], [ 2975 # See if we are running on zsh, and set the options that allow our 2976 # commands through without removal of \ escapes. 2977 if test -n "${ZSH_VERSION+set}"; then 2978 setopt NO_GLOB_SUBST 2979 fi 2980 2981 cfgfile=${ofile}T 2982 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 2983 $RM "$cfgfile" 2984 2985 cat <<_LT_EOF >> "$cfgfile" 2986#! $SHELL 2987# Generated automatically by $as_me ($PACKAGE) $VERSION 2988# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2989# NOTE: Changes made to this file will be lost: look at ltmain.sh. 2990 2991# Provide generalized library-building support services. 2992# Written by Gordon Matzigkeit, 1996 2993 2994_LT_COPYING 2995_LT_LIBTOOL_TAGS 2996 2997# Configured defaults for sys_lib_dlsearch_path munging. 2998: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 2999 3000# ### BEGIN LIBTOOL CONFIG 3001_LT_LIBTOOL_CONFIG_VARS 3002_LT_LIBTOOL_TAG_VARS 3003# ### END LIBTOOL CONFIG 3004 3005_LT_EOF 3006 3007 cat <<'_LT_EOF' >> "$cfgfile" 3008 3009# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 3010 3011_LT_PREPARE_MUNGE_PATH_LIST 3012_LT_PREPARE_CC_BASENAME 3013 3014# ### END FUNCTIONS SHARED WITH CONFIGURE 3015 3016_LT_EOF 3017 3018 case $host_os in 3019 aix3*) 3020 cat <<\_LT_EOF >> "$cfgfile" 3021# AIX sometimes has problems with the GCC collect2 program. For some 3022# reason, if we set the COLLECT_NAMES environment variable, the problems 3023# vanish in a puff of smoke. 3024if test set != "${COLLECT_NAMES+set}"; then 3025 COLLECT_NAMES= 3026 export COLLECT_NAMES 3027fi 3028_LT_EOF 3029 ;; 3030 esac 3031 3032 _LT_PROG_LTMAIN 3033 3034 # We use sed instead of cat because bash on DJGPP gets confused if 3035 # if finds mixed CR/LF and LF-only lines. Since sed operates in 3036 # text mode, it properly converts lines to CR/LF. This bash problem 3037 # is reportedly fixed, but why not run on old versions too? 3038 sed '$q' "$ltmain" >> "$cfgfile" \ 3039 || (rm -f "$cfgfile"; exit 1) 3040 3041 mv -f "$cfgfile" "$ofile" || 3042 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 3043 chmod +x "$ofile" 3044], 3045[cat <<_LT_EOF >> "$ofile" 3046 3047dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 3048dnl in a comment (ie after a #). 3049# ### BEGIN LIBTOOL TAG CONFIG: $1 3050_LT_LIBTOOL_TAG_VARS(_LT_TAG) 3051# ### END LIBTOOL TAG CONFIG: $1 3052_LT_EOF 3053])dnl /m4_if 3054], 3055[m4_if([$1], [], [ 3056 PACKAGE='$PACKAGE' 3057 VERSION='$VERSION' 3058 RM='$RM' 3059 ofile='$ofile'], []) 3060])dnl /_LT_CONFIG_SAVE_COMMANDS 3061])# _LT_CONFIG 3062 3063 3064# LT_SUPPORTED_TAG(TAG) 3065# --------------------- 3066# Trace this macro to discover what tags are supported by the libtool 3067# --tag option, using: 3068# autoconf --trace 'LT_SUPPORTED_TAG:$1' 3069AC_DEFUN([LT_SUPPORTED_TAG], []) 3070 3071 3072# C support is built-in for now 3073m4_define([_LT_LANG_C_enabled], []) 3074m4_define([_LT_TAGS], []) 3075 3076 3077# LT_LANG(LANG) 3078# ------------- 3079# Enable libtool support for the given language if not already enabled. 3080AC_DEFUN([LT_LANG], 3081[AC_BEFORE([$0], [LT_OUTPUT])dnl 3082m4_case([$1], 3083 [C], [_LT_LANG(C)], 3084 [C++], [_LT_LANG(CXX)], 3085 [Go], [_LT_LANG(GO)], 3086 [Java], [_LT_LANG(GCJ)], 3087 [Fortran 77], [_LT_LANG(F77)], 3088 [Fortran], [_LT_LANG(FC)], 3089 [Windows Resource], [_LT_LANG(RC)], 3090 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 3091 [_LT_LANG($1)], 3092 [m4_fatal([$0: unsupported language: "$1"])])])dnl 3093])# LT_LANG 3094 3095 3096# _LT_LANG(LANGNAME) 3097# ------------------ 3098m4_defun([_LT_LANG], 3099[m4_ifdef([_LT_LANG_]$1[_enabled], [], 3100 [LT_SUPPORTED_TAG([$1])dnl 3101 m4_append([_LT_TAGS], [$1 ])dnl 3102 m4_define([_LT_LANG_]$1[_enabled], [])dnl 3103 _LT_LANG_$1_CONFIG($1)])dnl 3104])# _LT_LANG 3105 3106 3107m4_ifndef([AC_PROG_GO], [ 3108# NOTE: This macro has been submitted for inclusion into # 3109# GNU Autoconf as AC_PROG_GO. When it is available in # 3110# a released version of Autoconf we should remove this # 3111# macro and use it instead. # 3112m4_defun([AC_PROG_GO], 3113[AC_LANG_PUSH(Go)dnl 3114AC_ARG_VAR([GOC], [Go compiler command])dnl 3115AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 3116_AC_ARG_VAR_LDFLAGS()dnl 3117AC_CHECK_TOOL(GOC, gccgo) 3118if test -z "$GOC"; then 3119 if test -n "$ac_tool_prefix"; then 3120 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 3121 fi 3122fi 3123if test -z "$GOC"; then 3124 AC_CHECK_PROG(GOC, gccgo, gccgo, false) 3125fi 3126])#m4_defun 3127])#m4_ifndef 3128 3129 3130# _LT_LANG_DEFAULT_CONFIG 3131# ----------------------- 3132m4_defun([_LT_LANG_DEFAULT_CONFIG], 3133[AC_PROVIDE_IFELSE([AC_PROG_CXX], 3134 [LT_LANG(CXX)], 3135 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 3136 3137AC_PROVIDE_IFELSE([AC_PROG_F77], 3138 [LT_LANG(F77)], 3139 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 3140 3141AC_PROVIDE_IFELSE([AC_PROG_FC], 3142 [LT_LANG(FC)], 3143 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 3144 3145dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 3146dnl pulling things in needlessly. 3147AC_PROVIDE_IFELSE([AC_PROG_GCJ], 3148 [LT_LANG(GCJ)], 3149 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 3150 [LT_LANG(GCJ)], 3151 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 3152 [LT_LANG(GCJ)], 3153 [m4_ifdef([AC_PROG_GCJ], 3154 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 3155 m4_ifdef([A][M_PROG_GCJ], 3156 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 3157 m4_ifdef([LT_PROG_GCJ], 3158 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 3159 3160AC_PROVIDE_IFELSE([AC_PROG_GO], 3161 [LT_LANG(GO)], 3162 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 3163 3164AC_PROVIDE_IFELSE([LT_PROG_RC], 3165 [LT_LANG(RC)], 3166 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 3167])# _LT_LANG_DEFAULT_CONFIG 3168 3169# Obsolete macros: 3170AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 3171AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 3172AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 3173AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 3174AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 3175dnl aclocal-1.4 backwards compatibility: 3176dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 3177dnl AC_DEFUN([AC_LIBTOOL_F77], []) 3178dnl AC_DEFUN([AC_LIBTOOL_FC], []) 3179dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 3180dnl AC_DEFUN([AC_LIBTOOL_RC], []) 3181 3182 3183# _LT_TAG_COMPILER 3184# ---------------- 3185m4_defun([_LT_TAG_COMPILER], 3186[AC_REQUIRE([AC_PROG_CC])dnl 3187 3188_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 3189_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 3190_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 3191_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 3192 3193# If no C compiler was specified, use CC. 3194LTCC=${LTCC-"$CC"} 3195 3196# If no C compiler flags were specified, use CFLAGS. 3197LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3198 3199# Allow CC to be a program name with arguments. 3200compiler=$CC 3201])# _LT_TAG_COMPILER 3202 3203 3204# _LT_COMPILER_BOILERPLATE 3205# ------------------------ 3206# Check for compiler boilerplate output or warnings with 3207# the simple compiler test code. 3208m4_defun([_LT_COMPILER_BOILERPLATE], 3209[m4_require([_LT_DECL_SED])dnl 3210ac_outfile=conftest.$ac_objext 3211echo "$lt_simple_compile_test_code" >conftest.$ac_ext 3212eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3213_lt_compiler_boilerplate=`cat conftest.err` 3214$RM conftest* 3215])# _LT_COMPILER_BOILERPLATE 3216 3217 3218# _LT_LINKER_BOILERPLATE 3219# ---------------------- 3220# Check for linker boilerplate output or warnings with 3221# the simple link test code. 3222m4_defun([_LT_LINKER_BOILERPLATE], 3223[m4_require([_LT_DECL_SED])dnl 3224ac_outfile=conftest.$ac_objext 3225echo "$lt_simple_link_test_code" >conftest.$ac_ext 3226eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3227_lt_linker_boilerplate=`cat conftest.err` 3228$RM -r conftest* 3229])# _LT_LINKER_BOILERPLATE 3230 3231# _LT_REQUIRED_DARWIN_CHECKS 3232# ------------------------- 3233m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 3234 case $host_os in 3235 rhapsody* | darwin*) 3236 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 3237 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 3238 AC_CHECK_TOOL([LIPO], [lipo], [:]) 3239 AC_CHECK_TOOL([OTOOL], [otool], [:]) 3240 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 3241 _LT_DECL([], [DSYMUTIL], [1], 3242 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 3243 _LT_DECL([], [NMEDIT], [1], 3244 [Tool to change global to local symbols on Mac OS X]) 3245 _LT_DECL([], [LIPO], [1], 3246 [Tool to manipulate fat objects and archives on Mac OS X]) 3247 _LT_DECL([], [OTOOL], [1], 3248 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 3249 _LT_DECL([], [OTOOL64], [1], 3250 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 3251 3252 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 3253 [lt_cv_apple_cc_single_mod=no 3254 if test -z "$LT_MULTI_MODULE"; then 3255 # By default we will add the -single_module flag. You can override 3256 # by either setting the environment variable LT_MULTI_MODULE 3257 # non-empty at configure time, or by adding -multi_module to the 3258 # link flags. 3259 rm -rf libconftest.dylib* 3260 echo "int foo(void){return 1;}" > conftest.c 3261 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 3262-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 3263 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 3264 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 3265 _lt_result=$? 3266 # If there is a non-empty error log, and "single_module" 3267 # appears in it, assume the flag caused a linker warning 3268 if test -s conftest.err && $GREP single_module conftest.err; then 3269 cat conftest.err >&AS_MESSAGE_LOG_FD 3270 # Otherwise, if the output was created with a 0 exit code from 3271 # the compiler, it worked. 3272 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 3273 lt_cv_apple_cc_single_mod=yes 3274 else 3275 cat conftest.err >&AS_MESSAGE_LOG_FD 3276 fi 3277 rm -rf libconftest.dylib* 3278 rm -f conftest.* 3279 fi]) 3280 3281 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 3282 [lt_cv_ld_exported_symbols_list], 3283 [lt_cv_ld_exported_symbols_list=no 3284 save_LDFLAGS=$LDFLAGS 3285 echo "_main" > conftest.sym 3286 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 3287 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 3288 [lt_cv_ld_exported_symbols_list=yes], 3289 [lt_cv_ld_exported_symbols_list=no]) 3290 LDFLAGS=$save_LDFLAGS 3291 ]) 3292 3293 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 3294 [lt_cv_ld_force_load=no 3295 cat > conftest.c << _LT_EOF 3296int forced_loaded() { return 2;} 3297_LT_EOF 3298 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 3299 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 3300 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 3301 $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 3302 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 3303 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 3304 cat > conftest.c << _LT_EOF 3305int main() { return 0;} 3306_LT_EOF 3307 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 3308 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 3309 _lt_result=$? 3310 if test -s conftest.err && $GREP force_load conftest.err; then 3311 cat conftest.err >&AS_MESSAGE_LOG_FD 3312 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 3313 lt_cv_ld_force_load=yes 3314 else 3315 cat conftest.err >&AS_MESSAGE_LOG_FD 3316 fi 3317 rm -f conftest.err libconftest.a conftest conftest.c 3318 rm -rf conftest.dSYM 3319 ]) 3320 case $host_os in 3321 rhapsody* | darwin1.[[012]]) 3322 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 3323 darwin1.*) 3324 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 3325 darwin*) # darwin 5.x on 3326 # if running on 10.5 or later, the deployment target defaults 3327 # to the OS version, if on x86, and 10.4, the deployment 3328 # target defaults to 10.4. Don't you love it? 3329 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 3330 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 3331 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 3332 10.[[012]][[,.]]*) 3333 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 3334 10.*) 3335 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 3336 esac 3337 ;; 3338 esac 3339 if test yes = "$lt_cv_apple_cc_single_mod"; then 3340 _lt_dar_single_mod='$single_module' 3341 fi 3342 if test yes = "$lt_cv_ld_exported_symbols_list"; then 3343 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 3344 else 3345 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 3346 fi 3347 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 3348 _lt_dsymutil='~$DSYMUTIL $lib || :' 3349 else 3350 _lt_dsymutil= 3351 fi 3352 ;; 3353 esac 3354]) 3355 3356 3357# _LT_DARWIN_LINKER_FEATURES([TAG]) 3358# --------------------------------- 3359# Checks for linker and compiler features on darwin 3360m4_defun([_LT_DARWIN_LINKER_FEATURES], 3361[ 3362 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 3363 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 3364 _LT_TAGVAR(hardcode_direct, $1)=no 3365 _LT_TAGVAR(hardcode_automatic, $1)=yes 3366 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3367 if test yes = "$lt_cv_ld_force_load"; then 3368 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 3369 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 3370 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 3371 else 3372 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 3373 fi 3374 _LT_TAGVAR(link_all_deplibs, $1)=yes 3375 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 3376 case $cc_basename in 3377 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 3378 *) _lt_dar_can_shared=$GCC ;; 3379 esac 3380 if test yes = "$_lt_dar_can_shared"; then 3381 output_verbose_link_cmd=func_echo_all 3382 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 3383 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 3384 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 3385 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 3386 m4_if([$1], [CXX], 3387[ if test yes != "$lt_cv_apple_cc_single_mod"; then 3388 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 3389 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 3390 fi 3391],[]) 3392 else 3393 _LT_TAGVAR(ld_shlibs, $1)=no 3394 fi 3395]) 3396 3397# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 3398# ---------------------------------- 3399# Links a minimal program and checks the executable 3400# for the system default hardcoded library path. In most cases, 3401# this is /usr/lib:/lib, but when the MPI compilers are used 3402# the location of the communication and MPI libs are included too. 3403# If we don't find anything, use the default library path according 3404# to the aix ld manual. 3405# Store the results from the different compilers for each TAGNAME. 3406# Allow to override them for all tags through lt_cv_aix_libpath. 3407m4_defun([_LT_SYS_MODULE_PATH_AIX], 3408[m4_require([_LT_DECL_SED])dnl 3409if test set = "${lt_cv_aix_libpath+set}"; then 3410 aix_libpath=$lt_cv_aix_libpath 3411else 3412 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 3413 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 3414 lt_aix_libpath_sed='[ 3415 /Import File Strings/,/^$/ { 3416 /^0/ { 3417 s/^0 *\([^ ]*\) *$/\1/ 3418 p 3419 } 3420 }]' 3421 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3422 # Check for a 64-bit object if we didn't find anything. 3423 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 3424 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3425 fi],[]) 3426 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 3427 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 3428 fi 3429 ]) 3430 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 3431fi 3432])# _LT_SYS_MODULE_PATH_AIX 3433 3434 3435# _LT_SHELL_INIT(ARG) 3436# ------------------- 3437m4_define([_LT_SHELL_INIT], 3438[m4_divert_text([M4SH-INIT], [$1 3439])])# _LT_SHELL_INIT 3440 3441 3442 3443# _LT_PROG_ECHO_BACKSLASH 3444# ----------------------- 3445# Find how we can fake an echo command that does not interpret backslash. 3446# In particular, with Autoconf 2.60 or later we add some code to the start 3447# of the generated configure script that will find a shell with a builtin 3448# printf (that we can use as an echo command). 3449m4_defun([_LT_PROG_ECHO_BACKSLASH], 3450[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3451ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3452ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3453 3454AC_MSG_CHECKING([how to print strings]) 3455# Test print first, because it will be a builtin if present. 3456if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3457 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3458 ECHO='print -r --' 3459elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3460 ECHO='printf %s\n' 3461else 3462 # Use this function as a fallback that always works. 3463 func_fallback_echo () 3464 { 3465 eval 'cat <<_LTECHO_EOF 3466$[]1 3467_LTECHO_EOF' 3468 } 3469 ECHO='func_fallback_echo' 3470fi 3471 3472# func_echo_all arg... 3473# Invoke $ECHO with all args, space-separated. 3474func_echo_all () 3475{ 3476 $ECHO "$*" 3477} 3478 3479case $ECHO in 3480 printf*) AC_MSG_RESULT([printf]) ;; 3481 print*) AC_MSG_RESULT([print -r]) ;; 3482 *) AC_MSG_RESULT([cat]) ;; 3483esac 3484 3485m4_ifdef([_AS_DETECT_SUGGESTED], 3486[_AS_DETECT_SUGGESTED([ 3487 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 3488 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3489 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3490 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3491 PATH=/empty FPATH=/empty; export PATH FPATH 3492 test "X`printf %s $ECHO`" = "X$ECHO" \ 3493 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 3494 3495_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 3496_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 3497])# _LT_PROG_ECHO_BACKSLASH 3498 3499 3500# _LT_WITH_SYSROOT 3501# ---------------- 3502AC_DEFUN([_LT_WITH_SYSROOT], 3503[AC_MSG_CHECKING([for sysroot]) 3504AC_ARG_WITH([sysroot], 3505[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 3506 [Search for dependent libraries within DIR (or the compiler's sysroot 3507 if not specified).])], 3508[], [with_sysroot=no]) 3509 3510dnl lt_sysroot will always be passed unquoted. We quote it here 3511dnl in case the user passed a directory name. 3512lt_sysroot= 3513case $with_sysroot in #( 3514 yes) 3515 if test yes = "$GCC"; then 3516 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 3517 fi 3518 ;; #( 3519 /*) 3520 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 3521 ;; #( 3522 no|'') 3523 ;; #( 3524 *) 3525 AC_MSG_RESULT([$with_sysroot]) 3526 AC_MSG_ERROR([The sysroot must be an absolute path.]) 3527 ;; 3528esac 3529 3530 AC_MSG_RESULT([${lt_sysroot:-no}]) 3531_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 3532[dependent libraries, and where our libraries should be installed.])]) 3533 3534# _LT_ENABLE_LOCK 3535# --------------- 3536m4_defun([_LT_ENABLE_LOCK], 3537[AC_ARG_ENABLE([libtool-lock], 3538 [AS_HELP_STRING([--disable-libtool-lock], 3539 [avoid locking (might break parallel builds)])]) 3540test no = "$enable_libtool_lock" || enable_libtool_lock=yes 3541 3542# Some flags need to be propagated to the compiler or linker for good 3543# libtool support. 3544case $host in 3545ia64-*-hpux*) 3546 # Find out what ABI is being produced by ac_compile, and set mode 3547 # options accordingly. 3548 echo 'int i;' > conftest.$ac_ext 3549 if AC_TRY_EVAL(ac_compile); then 3550 case `/usr/bin/file conftest.$ac_objext` in 3551 *ELF-32*) 3552 HPUX_IA64_MODE=32 3553 ;; 3554 *ELF-64*) 3555 HPUX_IA64_MODE=64 3556 ;; 3557 esac 3558 fi 3559 rm -rf conftest* 3560 ;; 3561*-*-irix6*) 3562 # Find out what ABI is being produced by ac_compile, and set linker 3563 # options accordingly. 3564 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 3565 if AC_TRY_EVAL(ac_compile); then 3566 if test yes = "$lt_cv_prog_gnu_ld"; then 3567 case `/usr/bin/file conftest.$ac_objext` in 3568 *32-bit*) 3569 LD="${LD-ld} -melf32bsmip" 3570 ;; 3571 *N32*) 3572 LD="${LD-ld} -melf32bmipn32" 3573 ;; 3574 *64-bit*) 3575 LD="${LD-ld} -melf64bmip" 3576 ;; 3577 esac 3578 else 3579 case `/usr/bin/file conftest.$ac_objext` in 3580 *32-bit*) 3581 LD="${LD-ld} -32" 3582 ;; 3583 *N32*) 3584 LD="${LD-ld} -n32" 3585 ;; 3586 *64-bit*) 3587 LD="${LD-ld} -64" 3588 ;; 3589 esac 3590 fi 3591 fi 3592 rm -rf conftest* 3593 ;; 3594 3595mips64*-*linux*) 3596 # Find out what ABI is being produced by ac_compile, and set linker 3597 # options accordingly. 3598 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 3599 if AC_TRY_EVAL(ac_compile); then 3600 emul=elf 3601 case `/usr/bin/file conftest.$ac_objext` in 3602 *32-bit*) 3603 emul="${emul}32" 3604 ;; 3605 *64-bit*) 3606 emul="${emul}64" 3607 ;; 3608 esac 3609 case `/usr/bin/file conftest.$ac_objext` in 3610 *MSB*) 3611 emul="${emul}btsmip" 3612 ;; 3613 *LSB*) 3614 emul="${emul}ltsmip" 3615 ;; 3616 esac 3617 case `/usr/bin/file conftest.$ac_objext` in 3618 *N32*) 3619 emul="${emul}n32" 3620 ;; 3621 esac 3622 LD="${LD-ld} -m $emul" 3623 fi 3624 rm -rf conftest* 3625 ;; 3626 3627x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 3628s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 3629 # Find out what ABI is being produced by ac_compile, and set linker 3630 # options accordingly. Note that the listed cases only cover the 3631 # situations where additional linker options are needed (such as when 3632 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 3633 # vice versa); the common cases where no linker options are needed do 3634 # not appear in the list. 3635 echo 'int i;' > conftest.$ac_ext 3636 if AC_TRY_EVAL(ac_compile); then 3637 case `/usr/bin/file conftest.o` in 3638 *32-bit*) 3639 case $host in 3640 x86_64-*kfreebsd*-gnu) 3641 LD="${LD-ld} -m elf_i386_fbsd" 3642 ;; 3643 x86_64-*linux*) 3644 case `/usr/bin/file conftest.o` in 3645 *x86-64*) 3646 LD="${LD-ld} -m elf32_x86_64" 3647 ;; 3648 *) 3649 LD="${LD-ld} -m elf_i386" 3650 ;; 3651 esac 3652 ;; 3653 powerpc64le-*linux*) 3654 LD="${LD-ld} -m elf32lppclinux" 3655 ;; 3656 powerpc64-*linux*) 3657 LD="${LD-ld} -m elf32ppclinux" 3658 ;; 3659 s390x-*linux*) 3660 LD="${LD-ld} -m elf_s390" 3661 ;; 3662 sparc64-*linux*) 3663 LD="${LD-ld} -m elf32_sparc" 3664 ;; 3665 esac 3666 ;; 3667 *64-bit*) 3668 case $host in 3669 x86_64-*kfreebsd*-gnu) 3670 LD="${LD-ld} -m elf_x86_64_fbsd" 3671 ;; 3672 x86_64-*linux*) 3673 LD="${LD-ld} -m elf_x86_64" 3674 ;; 3675 powerpcle-*linux*) 3676 LD="${LD-ld} -m elf64lppc" 3677 ;; 3678 powerpc-*linux*) 3679 LD="${LD-ld} -m elf64ppc" 3680 ;; 3681 s390*-*linux*|s390*-*tpf*) 3682 LD="${LD-ld} -m elf64_s390" 3683 ;; 3684 sparc*-*linux*) 3685 LD="${LD-ld} -m elf64_sparc" 3686 ;; 3687 esac 3688 ;; 3689 esac 3690 fi 3691 rm -rf conftest* 3692 ;; 3693 3694*-*-sco3.2v5*) 3695 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3696 SAVE_CFLAGS=$CFLAGS 3697 CFLAGS="$CFLAGS -belf" 3698 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 3699 [AC_LANG_PUSH(C) 3700 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 3701 AC_LANG_POP]) 3702 if test yes != "$lt_cv_cc_needs_belf"; then 3703 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3704 CFLAGS=$SAVE_CFLAGS 3705 fi 3706 ;; 3707*-*solaris*) 3708 # Find out what ABI is being produced by ac_compile, and set linker 3709 # options accordingly. 3710 echo 'int i;' > conftest.$ac_ext 3711 if AC_TRY_EVAL(ac_compile); then 3712 case `/usr/bin/file conftest.o` in 3713 *64-bit*) 3714 case $lt_cv_prog_gnu_ld in 3715 yes*) 3716 case $host in 3717 i?86-*-solaris*|x86_64-*-solaris*) 3718 LD="${LD-ld} -m elf_x86_64" 3719 ;; 3720 sparc*-*-solaris*) 3721 LD="${LD-ld} -m elf64_sparc" 3722 ;; 3723 esac 3724 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 3725 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 3726 LD=${LD-ld}_sol2 3727 fi 3728 ;; 3729 *) 3730 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 3731 LD="${LD-ld} -64" 3732 fi 3733 ;; 3734 esac 3735 ;; 3736 esac 3737 fi 3738 rm -rf conftest* 3739 ;; 3740esac 3741 3742need_locks=$enable_libtool_lock 3743])# _LT_ENABLE_LOCK 3744 3745 3746# _LT_PROG_AR 3747# ----------- 3748m4_defun([_LT_PROG_AR], 3749[AC_CHECK_TOOLS(AR, [ar], false) 3750: ${AR=ar} 3751_LT_DECL([], [AR], [1], [The archiver]) 3752 3753# Use ARFLAGS variable as AR's operation code to sync the variable naming with 3754# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 3755# higher priority because thats what people were doing historically (setting 3756# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 3757# variable obsoleted/removed. 3758 3759test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 3760lt_ar_flags=$AR_FLAGS 3761_LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) 3762 3763# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 3764# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 3765_LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], 3766 [Flags to create an archive]) 3767 3768AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 3769 [lt_cv_ar_at_file=no 3770 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 3771 [echo conftest.$ac_objext > conftest.lst 3772 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 3773 AC_TRY_EVAL([lt_ar_try]) 3774 if test 0 -eq "$ac_status"; then 3775 # Ensure the archiver fails upon bogus file names. 3776 rm -f conftest.$ac_objext libconftest.a 3777 AC_TRY_EVAL([lt_ar_try]) 3778 if test 0 -ne "$ac_status"; then 3779 lt_cv_ar_at_file=@ 3780 fi 3781 fi 3782 rm -f conftest.* libconftest.a 3783 ]) 3784 ]) 3785 3786if test no = "$lt_cv_ar_at_file"; then 3787 archiver_list_spec= 3788else 3789 archiver_list_spec=$lt_cv_ar_at_file 3790fi 3791_LT_DECL([], [archiver_list_spec], [1], 3792 [How to feed a file listing to the archiver]) 3793])# _LT_PROG_AR 3794 3795 3796# _LT_CMD_OLD_ARCHIVE 3797# ------------------- 3798m4_defun([_LT_CMD_OLD_ARCHIVE], 3799[_LT_PROG_AR 3800 3801AC_CHECK_TOOL(STRIP, strip, :) 3802test -z "$STRIP" && STRIP=: 3803_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 3804 3805AC_CHECK_TOOL(RANLIB, ranlib, :) 3806test -z "$RANLIB" && RANLIB=: 3807_LT_DECL([], [RANLIB], [1], 3808 [Commands used to install an old-style archive]) 3809 3810# Determine commands to create old-style static archives. 3811old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 3812old_postinstall_cmds='chmod 644 $oldlib' 3813old_postuninstall_cmds= 3814 3815if test -n "$RANLIB"; then 3816 case $host_os in 3817 bitrig* | openbsd*) 3818 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 3819 ;; 3820 *) 3821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 3822 ;; 3823 esac 3824 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 3825fi 3826 3827case $host_os in 3828 darwin*) 3829 lock_old_archive_extraction=yes ;; 3830 *) 3831 lock_old_archive_extraction=no ;; 3832esac 3833_LT_DECL([], [old_postinstall_cmds], [2]) 3834_LT_DECL([], [old_postuninstall_cmds], [2]) 3835_LT_TAGDECL([], [old_archive_cmds], [2], 3836 [Commands used to build an old-style archive]) 3837_LT_DECL([], [lock_old_archive_extraction], [0], 3838 [Whether to use a lock for old archive extraction]) 3839])# _LT_CMD_OLD_ARCHIVE 3840 3841 3842# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3843# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3844# ---------------------------------------------------------------- 3845# Check whether the given compiler option works 3846AC_DEFUN([_LT_COMPILER_OPTION], 3847[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3848m4_require([_LT_DECL_SED])dnl 3849AC_CACHE_CHECK([$1], [$2], 3850 [$2=no 3851 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 3852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3853 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 3854 # Insert the option either (1) after the last *FLAGS variable, or 3855 # (2) before a word containing "conftest.", or (3) at the end. 3856 # Note that $ac_compile itself does not contain backslashes and begins 3857 # with a dollar sign (not a hyphen), so the echo should work correctly. 3858 # The option is referenced via a variable to avoid confusing sed. 3859 lt_compile=`echo "$ac_compile" | $SED \ 3860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3861 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3862 -e 's:$: $lt_compiler_flag:'` 3863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3864 (eval "$lt_compile" 2>conftest.err) 3865 ac_status=$? 3866 cat conftest.err >&AS_MESSAGE_LOG_FD 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3868 if (exit $ac_status) && test -s "$ac_outfile"; then 3869 # The compiler can only warn and ignore the option if not recognized 3870 # So say no if there are warnings other than the usual output. 3871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 3872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 3874 $2=yes 3875 fi 3876 fi 3877 $RM conftest* 3878]) 3879 3880if test yes = "[$]$2"; then 3881 m4_if([$5], , :, [$5]) 3882else 3883 m4_if([$6], , :, [$6]) 3884fi 3885])# _LT_COMPILER_OPTION 3886 3887# Old name: 3888AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 3889dnl aclocal-1.4 backwards compatibility: 3890dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 3891 3892 3893# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3894# [ACTION-SUCCESS], [ACTION-FAILURE]) 3895# ---------------------------------------------------- 3896# Check whether the given linker option works 3897AC_DEFUN([_LT_LINKER_OPTION], 3898[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3899m4_require([_LT_DECL_SED])dnl 3900AC_CACHE_CHECK([$1], [$2], 3901 [$2=no 3902 save_LDFLAGS=$LDFLAGS 3903 LDFLAGS="$LDFLAGS $3" 3904 echo "$lt_simple_link_test_code" > conftest.$ac_ext 3905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 3906 # The linker can only warn and ignore the option if not recognized 3907 # So say no if there are warnings 3908 if test -s conftest.err; then 3909 # Append any errors to the config.log. 3910 cat conftest.err 1>&AS_MESSAGE_LOG_FD 3911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 3912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3913 if diff conftest.exp conftest.er2 >/dev/null; then 3914 $2=yes 3915 fi 3916 else 3917 $2=yes 3918 fi 3919 fi 3920 $RM -r conftest* 3921 LDFLAGS=$save_LDFLAGS 3922]) 3923 3924if test yes = "[$]$2"; then 3925 m4_if([$4], , :, [$4]) 3926else 3927 m4_if([$5], , :, [$5]) 3928fi 3929])# _LT_LINKER_OPTION 3930 3931# Old name: 3932AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 3933dnl aclocal-1.4 backwards compatibility: 3934dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 3935 3936 3937# LT_CMD_MAX_LEN 3938#--------------- 3939AC_DEFUN([LT_CMD_MAX_LEN], 3940[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3941# find the maximum length of command line arguments 3942AC_MSG_CHECKING([the maximum length of command line arguments]) 3943AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 3944 i=0 3945 teststring=ABCD 3946 3947 case $build_os in 3948 msdosdjgpp*) 3949 # On DJGPP, this test can blow up pretty badly due to problems in libc 3950 # (any single argument exceeding 2000 bytes causes a buffer overrun 3951 # during glob expansion). Even if it were fixed, the result of this 3952 # check would be larger than it should be. 3953 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3954 ;; 3955 3956 gnu*) 3957 # Under GNU Hurd, this test is not required because there is 3958 # no limit to the length of command line arguments. 3959 # Libtool will interpret -1 as no limit whatsoever 3960 lt_cv_sys_max_cmd_len=-1; 3961 ;; 3962 3963 cygwin* | mingw* | cegcc*) 3964 # On Win9x/ME, this test blows up -- it succeeds, but takes 3965 # about 5 minutes as the teststring grows exponentially. 3966 # Worse, since 9x/ME are not pre-emptively multitasking, 3967 # you end up with a "frozen" computer, even though with patience 3968 # the test eventually succeeds (with a max line length of 256k). 3969 # Instead, let's just punt: use the minimum linelength reported by 3970 # all of the supported platforms: 8192 (on NT/2K/XP). 3971 lt_cv_sys_max_cmd_len=8192; 3972 ;; 3973 3974 mint*) 3975 # On MiNT this can take a long time and run out of memory. 3976 lt_cv_sys_max_cmd_len=8192; 3977 ;; 3978 3979 amigaos*) 3980 # On AmigaOS with pdksh, this test takes hours, literally. 3981 # So we just punt and use a minimum line length of 8192. 3982 lt_cv_sys_max_cmd_len=8192; 3983 ;; 3984 3985 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 3986 # This has been around since 386BSD, at least. Likely further. 3987 if test -x /sbin/sysctl; then 3988 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3989 elif test -x /usr/sbin/sysctl; then 3990 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3991 else 3992 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3993 fi 3994 # And add a safety zone 3995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3997 ;; 3998 3999 interix*) 4000 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4001 lt_cv_sys_max_cmd_len=196608 4002 ;; 4003 4004 os2*) 4005 # The test takes a long time on OS/2. 4006 lt_cv_sys_max_cmd_len=8192 4007 ;; 4008 4009 osf*) 4010 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4011 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4012 # nice to cause kernel panics so lets avoid the loop below. 4013 # First set a reasonable default. 4014 lt_cv_sys_max_cmd_len=16384 4015 # 4016 if test -x /sbin/sysconfig; then 4017 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4018 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4019 esac 4020 fi 4021 ;; 4022 sco3.2v5*) 4023 lt_cv_sys_max_cmd_len=102400 4024 ;; 4025 sysv5* | sco5v6* | sysv4.2uw2*) 4026 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4027 if test -n "$kargmax"; then 4028 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 4029 else 4030 lt_cv_sys_max_cmd_len=32768 4031 fi 4032 ;; 4033 *) 4034 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4035 if test -n "$lt_cv_sys_max_cmd_len" && \ 4036 test undefined != "$lt_cv_sys_max_cmd_len"; then 4037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4039 else 4040 # Make teststring a little bigger before we do anything with it. 4041 # a 1K string should be a reasonable start. 4042 for i in 1 2 3 4 5 6 7 8; do 4043 teststring=$teststring$teststring 4044 done 4045 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4046 # If test is not a shell built-in, we'll probably end up computing a 4047 # maximum length that is only half of the actual maximum length, but 4048 # we can't tell. 4049 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4050 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4051 test 17 != "$i" # 1/2 MB should be enough 4052 do 4053 i=`expr $i + 1` 4054 teststring=$teststring$teststring 4055 done 4056 # Only check the string length outside the loop. 4057 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4058 teststring= 4059 # Add a significant safety factor because C++ compilers can tack on 4060 # massive amounts of additional arguments before passing them to the 4061 # linker. It appears as though 1/2 is a usable value. 4062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4063 fi 4064 ;; 4065 esac 4066]) 4067if test -n "$lt_cv_sys_max_cmd_len"; then 4068 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 4069else 4070 AC_MSG_RESULT(none) 4071fi 4072max_cmd_len=$lt_cv_sys_max_cmd_len 4073_LT_DECL([], [max_cmd_len], [0], 4074 [What is the maximum length of a command?]) 4075])# LT_CMD_MAX_LEN 4076 4077# Old name: 4078AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 4079dnl aclocal-1.4 backwards compatibility: 4080dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 4081 4082 4083# _LT_HEADER_DLFCN 4084# ---------------- 4085m4_defun([_LT_HEADER_DLFCN], 4086[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 4087])# _LT_HEADER_DLFCN 4088 4089 4090# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 4091# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 4092# ---------------------------------------------------------------- 4093m4_defun([_LT_TRY_DLOPEN_SELF], 4094[m4_require([_LT_HEADER_DLFCN])dnl 4095if test yes = "$cross_compiling"; then : 4096 [$4] 4097else 4098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 4099 lt_status=$lt_dlunknown 4100 cat > conftest.$ac_ext <<_LT_EOF 4101[#line $LINENO "configure" 4102#include "confdefs.h" 4103 4104#if HAVE_DLFCN_H 4105#include <dlfcn.h> 4106#endif 4107 4108#include <stdio.h> 4109 4110#ifdef RTLD_GLOBAL 4111# define LT_DLGLOBAL RTLD_GLOBAL 4112#else 4113# ifdef DL_GLOBAL 4114# define LT_DLGLOBAL DL_GLOBAL 4115# else 4116# define LT_DLGLOBAL 0 4117# endif 4118#endif 4119 4120/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 4121 find out it does not work in some platform. */ 4122#ifndef LT_DLLAZY_OR_NOW 4123# ifdef RTLD_LAZY 4124# define LT_DLLAZY_OR_NOW RTLD_LAZY 4125# else 4126# ifdef DL_LAZY 4127# define LT_DLLAZY_OR_NOW DL_LAZY 4128# else 4129# ifdef RTLD_NOW 4130# define LT_DLLAZY_OR_NOW RTLD_NOW 4131# else 4132# ifdef DL_NOW 4133# define LT_DLLAZY_OR_NOW DL_NOW 4134# else 4135# define LT_DLLAZY_OR_NOW 0 4136# endif 4137# endif 4138# endif 4139# endif 4140#endif 4141 4142/* When -fvisibility=hidden is used, assume the code has been annotated 4143 correspondingly for the symbols needed. */ 4144#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 4145int fnord () __attribute__((visibility("default"))); 4146#endif 4147 4148int fnord () { return 42; } 4149int main () 4150{ 4151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 4152 int status = $lt_dlunknown; 4153 4154 if (self) 4155 { 4156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 4157 else 4158 { 4159 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 4160 else puts (dlerror ()); 4161 } 4162 /* dlclose (self); */ 4163 } 4164 else 4165 puts (dlerror ()); 4166 4167 return status; 4168}] 4169_LT_EOF 4170 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 4171 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 4172 lt_status=$? 4173 case x$lt_status in 4174 x$lt_dlno_uscore) $1 ;; 4175 x$lt_dlneed_uscore) $2 ;; 4176 x$lt_dlunknown|x*) $3 ;; 4177 esac 4178 else : 4179 # compilation failed 4180 $3 4181 fi 4182fi 4183rm -fr conftest* 4184])# _LT_TRY_DLOPEN_SELF 4185 4186 4187# LT_SYS_DLOPEN_SELF 4188# ------------------ 4189AC_DEFUN([LT_SYS_DLOPEN_SELF], 4190[m4_require([_LT_HEADER_DLFCN])dnl 4191if test yes != "$enable_dlopen"; then 4192 enable_dlopen=unknown 4193 enable_dlopen_self=unknown 4194 enable_dlopen_self_static=unknown 4195else 4196 lt_cv_dlopen=no 4197 lt_cv_dlopen_libs= 4198 4199 case $host_os in 4200 beos*) 4201 lt_cv_dlopen=load_add_on 4202 lt_cv_dlopen_libs= 4203 lt_cv_dlopen_self=yes 4204 ;; 4205 4206 mingw* | pw32* | cegcc*) 4207 lt_cv_dlopen=LoadLibrary 4208 lt_cv_dlopen_libs= 4209 ;; 4210 4211 cygwin*) 4212 lt_cv_dlopen=dlopen 4213 lt_cv_dlopen_libs= 4214 ;; 4215 4216 darwin*) 4217 # if libdl is installed we need to link against it 4218 AC_CHECK_LIB([dl], [dlopen], 4219 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 4220 lt_cv_dlopen=dyld 4221 lt_cv_dlopen_libs= 4222 lt_cv_dlopen_self=yes 4223 ]) 4224 ;; 4225 4226 tpf*) 4227 # Don't try to run any link tests for TPF. We know it's impossible 4228 # because TPF is a cross-compiler, and we know how we open DSOs. 4229 lt_cv_dlopen=dlopen 4230 lt_cv_dlopen_libs= 4231 lt_cv_dlopen_self=no 4232 ;; 4233 4234 *) 4235 AC_CHECK_FUNC([shl_load], 4236 [lt_cv_dlopen=shl_load], 4237 [AC_CHECK_LIB([dld], [shl_load], 4238 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 4239 [AC_CHECK_FUNC([dlopen], 4240 [lt_cv_dlopen=dlopen], 4241 [AC_CHECK_LIB([dl], [dlopen], 4242 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 4243 [AC_CHECK_LIB([svld], [dlopen], 4244 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 4245 [AC_CHECK_LIB([dld], [dld_link], 4246 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 4247 ]) 4248 ]) 4249 ]) 4250 ]) 4251 ]) 4252 ;; 4253 esac 4254 4255 if test no = "$lt_cv_dlopen"; then 4256 enable_dlopen=no 4257 else 4258 enable_dlopen=yes 4259 fi 4260 4261 case $lt_cv_dlopen in 4262 dlopen) 4263 save_CPPFLAGS=$CPPFLAGS 4264 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 4265 4266 save_LDFLAGS=$LDFLAGS 4267 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 4268 4269 save_LIBS=$LIBS 4270 LIBS="$lt_cv_dlopen_libs $LIBS" 4271 4272 AC_CACHE_CHECK([whether a program can dlopen itself], 4273 lt_cv_dlopen_self, [dnl 4274 _LT_TRY_DLOPEN_SELF( 4275 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 4276 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 4277 ]) 4278 4279 if test yes = "$lt_cv_dlopen_self"; then 4280 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 4281 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 4282 lt_cv_dlopen_self_static, [dnl 4283 _LT_TRY_DLOPEN_SELF( 4284 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 4285 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 4286 ]) 4287 fi 4288 4289 CPPFLAGS=$save_CPPFLAGS 4290 LDFLAGS=$save_LDFLAGS 4291 LIBS=$save_LIBS 4292 ;; 4293 esac 4294 4295 case $lt_cv_dlopen_self in 4296 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 4297 *) enable_dlopen_self=unknown ;; 4298 esac 4299 4300 case $lt_cv_dlopen_self_static in 4301 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 4302 *) enable_dlopen_self_static=unknown ;; 4303 esac 4304fi 4305_LT_DECL([dlopen_support], [enable_dlopen], [0], 4306 [Whether dlopen is supported]) 4307_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 4308 [Whether dlopen of programs is supported]) 4309_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 4310 [Whether dlopen of statically linked programs is supported]) 4311])# LT_SYS_DLOPEN_SELF 4312 4313# Old name: 4314AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 4315dnl aclocal-1.4 backwards compatibility: 4316dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 4317 4318 4319# _LT_COMPILER_C_O([TAGNAME]) 4320# --------------------------- 4321# Check to see if options -c and -o are simultaneously supported by compiler. 4322# This macro does not hard code the compiler like AC_PROG_CC_C_O. 4323m4_defun([_LT_COMPILER_C_O], 4324[m4_require([_LT_DECL_SED])dnl 4325m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4326m4_require([_LT_TAG_COMPILER])dnl 4327AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 4328 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 4329 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 4330 $RM -r conftest 2>/dev/null 4331 mkdir conftest 4332 cd conftest 4333 mkdir out 4334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 4335 4336 lt_compiler_flag="-o out/conftest2.$ac_objext" 4337 # Insert the option either (1) after the last *FLAGS variable, or 4338 # (2) before a word containing "conftest.", or (3) at the end. 4339 # Note that $ac_compile itself does not contain backslashes and begins 4340 # with a dollar sign (not a hyphen), so the echo should work correctly. 4341 lt_compile=`echo "$ac_compile" | $SED \ 4342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 4343 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 4344 -e 's:$: $lt_compiler_flag:'` 4345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 4346 (eval "$lt_compile" 2>out/conftest.err) 4347 ac_status=$? 4348 cat out/conftest.err >&AS_MESSAGE_LOG_FD 4349 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 4350 if (exit $ac_status) && test -s out/conftest2.$ac_objext 4351 then 4352 # The compiler can only warn and ignore the option if not recognized 4353 # So say no if there are warnings 4354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 4355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 4356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 4357 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4358 fi 4359 fi 4360 chmod u+w . 2>&AS_MESSAGE_LOG_FD 4361 $RM conftest* 4362 # SGI C++ compiler will create directory out/ii_files/ for 4363 # template instantiation 4364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 4365 $RM out/* && rmdir out 4366 cd .. 4367 $RM -r conftest 4368 $RM conftest* 4369]) 4370_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 4371 [Does compiler simultaneously support -c and -o options?]) 4372])# _LT_COMPILER_C_O 4373 4374 4375# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 4376# ---------------------------------- 4377# Check to see if we can do hard links to lock some files if needed 4378m4_defun([_LT_COMPILER_FILE_LOCKS], 4379[m4_require([_LT_ENABLE_LOCK])dnl 4380m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4381_LT_COMPILER_C_O([$1]) 4382 4383hard_links=nottested 4384if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 4385 # do not overwrite the value of need_locks provided by the user 4386 AC_MSG_CHECKING([if we can lock with hard links]) 4387 hard_links=yes 4388 $RM conftest* 4389 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4390 touch conftest.a 4391 ln conftest.a conftest.b 2>&5 || hard_links=no 4392 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4393 AC_MSG_RESULT([$hard_links]) 4394 if test no = "$hard_links"; then 4395 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 4396 need_locks=warn 4397 fi 4398else 4399 need_locks=no 4400fi 4401_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 4402])# _LT_COMPILER_FILE_LOCKS 4403 4404 4405# _LT_CHECK_OBJDIR 4406# ---------------- 4407m4_defun([_LT_CHECK_OBJDIR], 4408[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 4409[rm -f .libs 2>/dev/null 4410mkdir .libs 2>/dev/null 4411if test -d .libs; then 4412 lt_cv_objdir=.libs 4413else 4414 # MS-DOS does not allow filenames that begin with a dot. 4415 lt_cv_objdir=_libs 4416fi 4417rmdir .libs 2>/dev/null]) 4418objdir=$lt_cv_objdir 4419_LT_DECL([], [objdir], [0], 4420 [The name of the directory that contains temporary libtool files])dnl 4421m4_pattern_allow([LT_OBJDIR])dnl 4422AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 4423 [Define to the sub-directory where libtool stores uninstalled libraries.]) 4424])# _LT_CHECK_OBJDIR 4425 4426 4427# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 4428# -------------------------------------- 4429# Check hardcoding attributes. 4430m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 4431[AC_MSG_CHECKING([how to hardcode library paths into programs]) 4432_LT_TAGVAR(hardcode_action, $1)= 4433if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 4434 test -n "$_LT_TAGVAR(runpath_var, $1)" || 4435 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 4436 4437 # We can hardcode non-existent directories. 4438 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 4439 # If the only mechanism to avoid hardcoding is shlibpath_var, we 4440 # have to relink, otherwise we might link with an installed library 4441 # when we should be linking with a yet-to-be-installed one 4442 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 4443 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 4444 # Linking always hardcodes the temporary library directory. 4445 _LT_TAGVAR(hardcode_action, $1)=relink 4446 else 4447 # We can link without hardcoding, and we can hardcode nonexisting dirs. 4448 _LT_TAGVAR(hardcode_action, $1)=immediate 4449 fi 4450else 4451 # We cannot hardcode anything, or else we can only hardcode existing 4452 # directories. 4453 _LT_TAGVAR(hardcode_action, $1)=unsupported 4454fi 4455AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 4456 4457if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 4458 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 4459 # Fast installation is not supported 4460 enable_fast_install=no 4461elif test yes = "$shlibpath_overrides_runpath" || 4462 test no = "$enable_shared"; then 4463 # Fast installation is not necessary 4464 enable_fast_install=needless 4465fi 4466_LT_TAGDECL([], [hardcode_action], [0], 4467 [How to hardcode a shared library path into an executable]) 4468])# _LT_LINKER_HARDCODE_LIBPATH 4469 4470 4471# _LT_CMD_STRIPLIB 4472# ---------------- 4473m4_defun([_LT_CMD_STRIPLIB], 4474[m4_require([_LT_DECL_EGREP]) 4475striplib= 4476old_striplib= 4477AC_MSG_CHECKING([whether stripping libraries is possible]) 4478if test -z "$STRIP"; then 4479 AC_MSG_RESULT([no]) 4480else 4481 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 4482 old_striplib="$STRIP --strip-debug" 4483 striplib="$STRIP --strip-unneeded" 4484 AC_MSG_RESULT([yes]) 4485 else 4486 case $host_os in 4487 darwin*) 4488 # FIXME - insert some real tests, host_os isn't really good enough 4489 striplib="$STRIP -x" 4490 old_striplib="$STRIP -S" 4491 AC_MSG_RESULT([yes]) 4492 ;; 4493 freebsd*) 4494 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 4495 old_striplib="$STRIP --strip-debug" 4496 striplib="$STRIP --strip-unneeded" 4497 AC_MSG_RESULT([yes]) 4498 else 4499 AC_MSG_RESULT([no]) 4500 fi 4501 ;; 4502 *) 4503 AC_MSG_RESULT([no]) 4504 ;; 4505 esac 4506 fi 4507fi 4508_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 4509_LT_DECL([], [striplib], [1]) 4510])# _LT_CMD_STRIPLIB 4511 4512 4513# _LT_PREPARE_MUNGE_PATH_LIST 4514# --------------------------- 4515# Make sure func_munge_path_list() is defined correctly. 4516m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 4517[[# func_munge_path_list VARIABLE PATH 4518# ----------------------------------- 4519# VARIABLE is name of variable containing _space_ separated list of 4520# directories to be munged by the contents of PATH, which is string 4521# having a format: 4522# "DIR[:DIR]:" 4523# string "DIR[ DIR]" will be prepended to VARIABLE 4524# ":DIR[:DIR]" 4525# string "DIR[ DIR]" will be appended to VARIABLE 4526# "DIRP[:DIRP]::[DIRA:]DIRA" 4527# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 4528# "DIRA[ DIRA]" will be appended to VARIABLE 4529# "DIR[:DIR]" 4530# VARIABLE will be replaced by "DIR[ DIR]" 4531func_munge_path_list () 4532{ 4533 case x@S|@2 in 4534 x) 4535 ;; 4536 *:) 4537 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 4538 ;; 4539 x:*) 4540 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 4541 ;; 4542 *::*) 4543 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 4544 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 4545 ;; 4546 *) 4547 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 4548 ;; 4549 esac 4550} 4551]])# _LT_PREPARE_PATH_LIST 4552 4553 4554# _LT_SYS_DYNAMIC_LINKER([TAG]) 4555# ----------------------------- 4556# PORTME Fill in your ld.so characteristics 4557m4_defun([_LT_SYS_DYNAMIC_LINKER], 4558[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4559m4_require([_LT_DECL_EGREP])dnl 4560m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4561m4_require([_LT_DECL_OBJDUMP])dnl 4562m4_require([_LT_DECL_SED])dnl 4563m4_require([_LT_CHECK_SHELL_FEATURES])dnl 4564m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 4565AC_MSG_CHECKING([dynamic linker characteristics]) 4566m4_if([$1], 4567 [], [ 4568if test yes = "$GCC"; then 4569 case $host_os in 4570 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 4571 *) lt_awk_arg='/^libraries:/' ;; 4572 esac 4573 case $host_os in 4574 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 4575 *) lt_sed_strip_eq='s|=/|/|g' ;; 4576 esac 4577 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 4578 case $lt_search_path_spec in 4579 *\;*) 4580 # if the path contains ";" then we assume it to be the separator 4581 # otherwise default to the standard path separator (i.e. ":") - it is 4582 # assumed that no part of a normal pathname contains ";" but that should 4583 # okay in the real world where ";" in dirpaths is itself problematic. 4584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 4585 ;; 4586 *) 4587 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 4588 ;; 4589 esac 4590 # Ok, now we have the path, separated by spaces, we can step through it 4591 # and add multilib dir if necessary... 4592 lt_tmp_lt_search_path_spec= 4593 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 4594 # ...but if some path component already ends with the multilib dir we assume 4595 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 4596 case "$lt_multi_os_dir; $lt_search_path_spec " in 4597 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 4598 lt_multi_os_dir= 4599 ;; 4600 esac 4601 for lt_sys_path in $lt_search_path_spec; do 4602 if test -d "$lt_sys_path$lt_multi_os_dir"; then 4603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 4604 elif test -n "$lt_multi_os_dir"; then 4605 test -d "$lt_sys_path" && \ 4606 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 4607 fi 4608 done 4609 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 4610BEGIN {RS = " "; FS = "/|\n";} { 4611 lt_foo = ""; 4612 lt_count = 0; 4613 for (lt_i = NF; lt_i > 0; lt_i--) { 4614 if ($lt_i != "" && $lt_i != ".") { 4615 if ($lt_i == "..") { 4616 lt_count++; 4617 } else { 4618 if (lt_count == 0) { 4619 lt_foo = "/" $lt_i lt_foo; 4620 } else { 4621 lt_count--; 4622 } 4623 } 4624 } 4625 } 4626 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 4627 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 4628}'` 4629 # AWK program above erroneously prepends '/' to C:/dos/paths 4630 # for these hosts. 4631 case $host_os in 4632 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 4633 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 4634 esac 4635 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 4636else 4637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 4638fi]) 4639library_names_spec= 4640libname_spec='lib$name' 4641soname_spec= 4642shrext_cmds=.so 4643postinstall_cmds= 4644postuninstall_cmds= 4645finish_cmds= 4646finish_eval= 4647shlibpath_var= 4648shlibpath_overrides_runpath=unknown 4649version_type=none 4650dynamic_linker="$host_os ld.so" 4651sys_lib_dlsearch_path_spec="/lib /usr/lib" 4652need_lib_prefix=unknown 4653hardcode_into_libs=no 4654 4655# when you set need_version to no, make sure it does not cause -set_version 4656# flags to be left without arguments 4657need_version=unknown 4658 4659AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 4660[User-defined run-time library search path.]) 4661 4662case $host_os in 4663aix3*) 4664 version_type=linux # correct to gnu/linux during the next big refactor 4665 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 4666 shlibpath_var=LIBPATH 4667 4668 # AIX 3 has no versioning support, so we append a major version to the name. 4669 soname_spec='$libname$release$shared_ext$major' 4670 ;; 4671 4672aix[[4-9]]*) 4673 version_type=linux # correct to gnu/linux during the next big refactor 4674 need_lib_prefix=no 4675 need_version=no 4676 hardcode_into_libs=yes 4677 if test ia64 = "$host_cpu"; then 4678 # AIX 5 supports IA64 4679 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 4680 shlibpath_var=LD_LIBRARY_PATH 4681 else 4682 # With GCC up to 2.95.x, collect2 would create an import file 4683 # for dependence libraries. The import file would start with 4684 # the line '#! .'. This would cause the generated library to 4685 # depend on '.', always an invalid library. This was fixed in 4686 # development snapshots of GCC prior to 3.0. 4687 case $host_os in 4688 aix4 | aix4.[[01]] | aix4.[[01]].*) 4689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 4690 echo ' yes ' 4691 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 4692 : 4693 else 4694 can_build_shared=no 4695 fi 4696 ;; 4697 esac 4698 # Using Import Files as archive members, it is possible to support 4699 # filename-based versioning of shared library archives on AIX. While 4700 # this would work for both with and without runtime linking, it will 4701 # prevent static linking of such archives. So we do filename-based 4702 # shared library versioning with .so extension only, which is used 4703 # when both runtime linking and shared linking is enabled. 4704 # Unfortunately, runtime linking may impact performance, so we do 4705 # not want this to be the default eventually. Also, we use the 4706 # versioned .so libs for executables only if there is the -brtl 4707 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 4708 # To allow for filename-based versioning support, we need to create 4709 # libNAME.so.V as an archive file, containing: 4710 # *) an Import File, referring to the versioned filename of the 4711 # archive as well as the shared archive member, telling the 4712 # bitwidth (32 or 64) of that shared object, and providing the 4713 # list of exported symbols of that shared object, eventually 4714 # decorated with the 'weak' keyword 4715 # *) the shared object with the F_LOADONLY flag set, to really avoid 4716 # it being seen by the linker. 4717 # At run time we better use the real file rather than another symlink, 4718 # but for link time we create the symlink libNAME.so -> libNAME.so.V 4719 4720 case $with_aix_soname,$aix_use_runtimelinking in 4721 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 4722 # soname into executable. Probably we can add versioning support to 4723 # collect2, so additional links can be useful in future. 4724 aix,yes) # traditional libtool 4725 dynamic_linker='AIX unversionable lib.so' 4726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4727 # instead of lib<name>.a to let people know that these are not 4728 # typical AIX shared libraries. 4729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4730 ;; 4731 aix,no) # traditional AIX only 4732 dynamic_linker='AIX lib.a[(]lib.so.V[)]' 4733 # We preserve .a as extension for shared libraries through AIX4.2 4734 # and later when we are not doing run time linking. 4735 library_names_spec='$libname$release.a $libname.a' 4736 soname_spec='$libname$release$shared_ext$major' 4737 ;; 4738 svr4,*) # full svr4 only 4739 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 4740 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 4741 # We do not specify a path in Import Files, so LIBPATH fires. 4742 shlibpath_overrides_runpath=yes 4743 ;; 4744 *,yes) # both, prefer svr4 4745 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 4746 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 4747 # unpreferred sharedlib libNAME.a needs extra handling 4748 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 4749 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 4750 # We do not specify a path in Import Files, so LIBPATH fires. 4751 shlibpath_overrides_runpath=yes 4752 ;; 4753 *,no) # both, prefer aix 4754 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 4755 library_names_spec='$libname$release.a $libname.a' 4756 soname_spec='$libname$release$shared_ext$major' 4757 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 4758 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 4759 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 4760 ;; 4761 esac 4762 shlibpath_var=LIBPATH 4763 fi 4764 ;; 4765 4766amigaos*) 4767 case $host_cpu in 4768 powerpc) 4769 # Since July 2007 AmigaOS4 officially supports .so libraries. 4770 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 4771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4772 ;; 4773 m68k) 4774 library_names_spec='$libname.ixlibrary $libname.a' 4775 # Create ${libname}_ixlibrary.a entries in /sys/libs. 4776 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 4777 ;; 4778 esac 4779 ;; 4780 4781beos*) 4782 library_names_spec='$libname$shared_ext' 4783 dynamic_linker="$host_os ld.so" 4784 shlibpath_var=LIBRARY_PATH 4785 ;; 4786 4787bsdi[[45]]*) 4788 version_type=linux # correct to gnu/linux during the next big refactor 4789 need_version=no 4790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4791 soname_spec='$libname$release$shared_ext$major' 4792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4793 shlibpath_var=LD_LIBRARY_PATH 4794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 4796 # the default ld.so.conf also contains /usr/contrib/lib and 4797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4798 # libtool to hard-code these into programs 4799 ;; 4800 4801cygwin* | mingw* | pw32* | cegcc*) 4802 version_type=windows 4803 shrext_cmds=.dll 4804 need_version=no 4805 need_lib_prefix=no 4806 4807 case $GCC,$cc_basename in 4808 yes,*) 4809 # gcc 4810 library_names_spec='$libname.dll.a' 4811 # DLL is installed to $(libdir)/../bin by postinstall_cmds 4812 postinstall_cmds='base_file=`basename \$file`~ 4813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 4814 dldir=$destdir/`dirname \$dlpath`~ 4815 test -d \$dldir || mkdir -p \$dldir~ 4816 $install_prog $dir/$dlname \$dldir/$dlname~ 4817 chmod a+x \$dldir/$dlname~ 4818 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 4819 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 4820 fi' 4821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4822 dlpath=$dir/\$dldll~ 4823 $RM \$dlpath' 4824 shlibpath_overrides_runpath=yes 4825 4826 case $host_os in 4827 cygwin*) 4828 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 4829 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 4830m4_if([$1], [],[ 4831 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 4832 ;; 4833 mingw* | cegcc*) 4834 # MinGW DLLs use traditional 'lib' prefix 4835 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 4836 ;; 4837 pw32*) 4838 # pw32 DLLs use 'pw' prefix rather than 'lib' 4839 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 4840 ;; 4841 esac 4842 dynamic_linker='Win32 ld.exe' 4843 ;; 4844 4845 *,cl* | *,icl*) 4846 # Native MSVC or ICC 4847 libname_spec='$name' 4848 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 4849 library_names_spec='$libname.dll.lib' 4850 4851 case $build_os in 4852 mingw*) 4853 sys_lib_search_path_spec= 4854 lt_save_ifs=$IFS 4855 IFS=';' 4856 for lt_path in $LIB 4857 do 4858 IFS=$lt_save_ifs 4859 # Let DOS variable expansion print the short 8.3 style file name. 4860 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 4861 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 4862 done 4863 IFS=$lt_save_ifs 4864 # Convert to MSYS style. 4865 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 4866 ;; 4867 cygwin*) 4868 # Convert to unix form, then to dos form, then back to unix form 4869 # but this time dos style (no spaces!) so that the unix form looks 4870 # like /cygdrive/c/PROGRA~1:/cygdr... 4871 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 4872 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 4873 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4874 ;; 4875 *) 4876 sys_lib_search_path_spec=$LIB 4877 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 4878 # It is most probably a Windows format PATH. 4879 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 4880 else 4881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4882 fi 4883 # FIXME: find the short name or the path components, as spaces are 4884 # common. (e.g. "Program Files" -> "PROGRA~1") 4885 ;; 4886 esac 4887 4888 # DLL is installed to $(libdir)/../bin by postinstall_cmds 4889 postinstall_cmds='base_file=`basename \$file`~ 4890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 4891 dldir=$destdir/`dirname \$dlpath`~ 4892 test -d \$dldir || mkdir -p \$dldir~ 4893 $install_prog $dir/$dlname \$dldir/$dlname' 4894 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4895 dlpath=$dir/\$dldll~ 4896 $RM \$dlpath' 4897 shlibpath_overrides_runpath=yes 4898 dynamic_linker='Win32 link.exe' 4899 ;; 4900 4901 *) 4902 # Assume MSVC and ICC wrapper 4903 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 4904 dynamic_linker='Win32 ld.exe' 4905 ;; 4906 esac 4907 # FIXME: first we should search . and the directory the executable is in 4908 shlibpath_var=PATH 4909 ;; 4910 4911darwin* | rhapsody*) 4912 dynamic_linker="$host_os dyld" 4913 version_type=darwin 4914 need_lib_prefix=no 4915 need_version=no 4916 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 4917 soname_spec='$libname$release$major$shared_ext' 4918 shlibpath_overrides_runpath=yes 4919 shlibpath_var=DYLD_LIBRARY_PATH 4920 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 4921m4_if([$1], [],[ 4922 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 4923 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 4924 ;; 4925 4926dgux*) 4927 version_type=linux # correct to gnu/linux during the next big refactor 4928 need_lib_prefix=no 4929 need_version=no 4930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4931 soname_spec='$libname$release$shared_ext$major' 4932 shlibpath_var=LD_LIBRARY_PATH 4933 ;; 4934 4935freebsd* | dragonfly*) 4936 # DragonFly does not have aout. When/if they implement a new 4937 # versioning mechanism, adjust this. 4938 if test -x /usr/bin/objformat; then 4939 objformat=`/usr/bin/objformat` 4940 else 4941 case $host_os in 4942 freebsd[[23]].*) objformat=aout ;; 4943 *) objformat=elf ;; 4944 esac 4945 fi 4946 version_type=freebsd-$objformat 4947 case $version_type in 4948 freebsd-elf*) 4949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4950 soname_spec='$libname$release$shared_ext$major' 4951 need_version=no 4952 need_lib_prefix=no 4953 ;; 4954 freebsd-*) 4955 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 4956 need_version=yes 4957 ;; 4958 esac 4959 shlibpath_var=LD_LIBRARY_PATH 4960 case $host_os in 4961 freebsd2.*) 4962 shlibpath_overrides_runpath=yes 4963 ;; 4964 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 4965 shlibpath_overrides_runpath=yes 4966 hardcode_into_libs=yes 4967 ;; 4968 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 4969 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 4970 shlibpath_overrides_runpath=no 4971 hardcode_into_libs=yes 4972 ;; 4973 *) # from 4.6 on, and DragonFly 4974 shlibpath_overrides_runpath=yes 4975 hardcode_into_libs=yes 4976 ;; 4977 esac 4978 ;; 4979 4980haiku*) 4981 version_type=linux # correct to gnu/linux during the next big refactor 4982 need_lib_prefix=no 4983 need_version=no 4984 dynamic_linker="$host_os runtime_loader" 4985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 4986 soname_spec='$libname$release$shared_ext$major' 4987 shlibpath_var=LIBRARY_PATH 4988 shlibpath_overrides_runpath=no 4989 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 4990 hardcode_into_libs=yes 4991 ;; 4992 4993hpux9* | hpux10* | hpux11*) 4994 # Give a soname corresponding to the major version so that dld.sl refuses to 4995 # link against other versions. 4996 version_type=sunos 4997 need_lib_prefix=no 4998 need_version=no 4999 case $host_cpu in 5000 ia64*) 5001 shrext_cmds='.so' 5002 hardcode_into_libs=yes 5003 dynamic_linker="$host_os dld.so" 5004 shlibpath_var=LD_LIBRARY_PATH 5005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 5006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5007 soname_spec='$libname$release$shared_ext$major' 5008 if test 32 = "$HPUX_IA64_MODE"; then 5009 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 5010 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 5011 else 5012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 5013 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 5014 fi 5015 ;; 5016 hppa*64*) 5017 shrext_cmds='.sl' 5018 hardcode_into_libs=yes 5019 dynamic_linker="$host_os dld.sl" 5020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 5021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 5022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5023 soname_spec='$libname$release$shared_ext$major' 5024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 5025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 5026 ;; 5027 *) 5028 shrext_cmds='.sl' 5029 dynamic_linker="$host_os dld.sl" 5030 shlibpath_var=SHLIB_PATH 5031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 5032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5033 soname_spec='$libname$release$shared_ext$major' 5034 ;; 5035 esac 5036 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 5037 postinstall_cmds='chmod 555 $lib' 5038 # or fails outright, so override atomically: 5039 install_override_mode=555 5040 ;; 5041 5042interix[[3-9]]*) 5043 version_type=linux # correct to gnu/linux during the next big refactor 5044 need_lib_prefix=no 5045 need_version=no 5046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5047 soname_spec='$libname$release$shared_ext$major' 5048 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 5049 shlibpath_var=LD_LIBRARY_PATH 5050 shlibpath_overrides_runpath=no 5051 hardcode_into_libs=yes 5052 ;; 5053 5054irix5* | irix6* | nonstopux*) 5055 case $host_os in 5056 nonstopux*) version_type=nonstopux ;; 5057 *) 5058 if test yes = "$lt_cv_prog_gnu_ld"; then 5059 version_type=linux # correct to gnu/linux during the next big refactor 5060 else 5061 version_type=irix 5062 fi ;; 5063 esac 5064 need_lib_prefix=no 5065 need_version=no 5066 soname_spec='$libname$release$shared_ext$major' 5067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 5068 case $host_os in 5069 irix5* | nonstopux*) 5070 libsuff= shlibsuff= 5071 ;; 5072 *) 5073 case $LD in # libtool.m4 will add one of these switches to LD 5074 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 5075 libsuff= shlibsuff= libmagic=32-bit;; 5076 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 5077 libsuff=32 shlibsuff=N32 libmagic=N32;; 5078 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 5079 libsuff=64 shlibsuff=64 libmagic=64-bit;; 5080 *) libsuff= shlibsuff= libmagic=never-match;; 5081 esac 5082 ;; 5083 esac 5084 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 5085 shlibpath_overrides_runpath=no 5086 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 5087 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 5088 hardcode_into_libs=yes 5089 ;; 5090 5091# No shared lib support for Linux oldld, aout, or coff. 5092linux*oldld* | linux*aout* | linux*coff*) 5093 dynamic_linker=no 5094 ;; 5095 5096linux*android*) 5097 version_type=none # Android doesn't support versioned libraries. 5098 need_lib_prefix=no 5099 need_version=no 5100 library_names_spec='$libname$release$shared_ext' 5101 soname_spec='$libname$release$shared_ext' 5102 finish_cmds= 5103 shlibpath_var=LD_LIBRARY_PATH 5104 shlibpath_overrides_runpath=yes 5105 5106 # This implies no fast_install, which is unacceptable. 5107 # Some rework will be needed to allow for fast_install 5108 # before this can be enabled. 5109 hardcode_into_libs=yes 5110 5111 dynamic_linker='Android linker' 5112 # Don't embed -rpath directories since the linker doesn't support them. 5113 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5114 ;; 5115 5116# This must be glibc/ELF. 5117linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5118 version_type=linux # correct to gnu/linux during the next big refactor 5119 need_lib_prefix=no 5120 need_version=no 5121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5122 soname_spec='$libname$release$shared_ext$major' 5123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 5124 shlibpath_var=LD_LIBRARY_PATH 5125 shlibpath_overrides_runpath=no 5126 5127 # Some binutils ld are patched to set DT_RUNPATH 5128 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 5129 [lt_cv_shlibpath_overrides_runpath=no 5130 save_LDFLAGS=$LDFLAGS 5131 save_libdir=$libdir 5132 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 5133 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 5134 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 5135 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 5136 [lt_cv_shlibpath_overrides_runpath=yes])]) 5137 LDFLAGS=$save_LDFLAGS 5138 libdir=$save_libdir 5139 ]) 5140 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 5141 5142 # This implies no fast_install, which is unacceptable. 5143 # Some rework will be needed to allow for fast_install 5144 # before this can be enabled. 5145 hardcode_into_libs=yes 5146 5147 # Ideally, we could use ldconfig to report *all* directores which are 5148 # searched for libraries, however this is still not possible. Aside from not 5149 # being certain /sbin/ldconfig is available, command 5150 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 5151 # even though it is searched at run-time. Try to do the best guess by 5152 # appending ld.so.conf contents (and includes) to the search path. 5153 if test -f /etc/ld.so.conf; then 5154 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 5155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 5156 fi 5157 5158 # We used to test for /lib/ld.so.1 and disable shared libraries on 5159 # powerpc, because MkLinux only supported shared libraries with the 5160 # GNU dynamic linker. Since this was broken with cross compilers, 5161 # most powerpc-linux boxes support dynamic linking these days and 5162 # people can always --disable-shared, the test was removed, and we 5163 # assume the GNU/Linux dynamic linker is in use. 5164 dynamic_linker='GNU/Linux ld.so' 5165 ;; 5166 5167netbsd*) 5168 version_type=sunos 5169 need_lib_prefix=no 5170 need_version=no 5171 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5172 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 5173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 5174 dynamic_linker='NetBSD (a.out) ld.so' 5175 else 5176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5177 soname_spec='$libname$release$shared_ext$major' 5178 dynamic_linker='NetBSD ld.elf_so' 5179 fi 5180 shlibpath_var=LD_LIBRARY_PATH 5181 shlibpath_overrides_runpath=yes 5182 hardcode_into_libs=yes 5183 ;; 5184 5185newsos6) 5186 version_type=linux # correct to gnu/linux during the next big refactor 5187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5188 shlibpath_var=LD_LIBRARY_PATH 5189 shlibpath_overrides_runpath=yes 5190 ;; 5191 5192*nto* | *qnx*) 5193 version_type=qnx 5194 need_lib_prefix=no 5195 need_version=no 5196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5197 soname_spec='$libname$release$shared_ext$major' 5198 shlibpath_var=LD_LIBRARY_PATH 5199 shlibpath_overrides_runpath=no 5200 hardcode_into_libs=yes 5201 dynamic_linker='ldqnx.so' 5202 ;; 5203 5204openbsd* | bitrig*) 5205 version_type=sunos 5206 sys_lib_dlsearch_path_spec=/usr/lib 5207 need_lib_prefix=no 5208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5209 need_version=no 5210 else 5211 need_version=yes 5212 fi 5213 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 5214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 5215 shlibpath_var=LD_LIBRARY_PATH 5216 shlibpath_overrides_runpath=yes 5217 ;; 5218 5219os2*) 5220 libname_spec='$name' 5221 version_type=windows 5222 shrext_cmds=.dll 5223 need_version=no 5224 need_lib_prefix=no 5225 # OS/2 can only load a DLL with a base name of 8 characters or less. 5226 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 5227 v=$($ECHO $release$versuffix | tr -d .-); 5228 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 5229 $ECHO $n$v`$shared_ext' 5230 library_names_spec='${libname}_dll.$libext' 5231 dynamic_linker='OS/2 ld.exe' 5232 shlibpath_var=BEGINLIBPATH 5233 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 5234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 5235 postinstall_cmds='base_file=`basename \$file`~ 5236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 5237 dldir=$destdir/`dirname \$dlpath`~ 5238 test -d \$dldir || mkdir -p \$dldir~ 5239 $install_prog $dir/$dlname \$dldir/$dlname~ 5240 chmod a+x \$dldir/$dlname~ 5241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 5242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 5243 fi' 5244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 5245 dlpath=$dir/\$dldll~ 5246 $RM \$dlpath' 5247 ;; 5248 5249osf3* | osf4* | osf5*) 5250 version_type=osf 5251 need_lib_prefix=no 5252 need_version=no 5253 soname_spec='$libname$release$shared_ext$major' 5254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5255 shlibpath_var=LD_LIBRARY_PATH 5256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 5257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 5258 ;; 5259 5260rdos*) 5261 dynamic_linker=no 5262 ;; 5263 5264solaris*) 5265 version_type=linux # correct to gnu/linux during the next big refactor 5266 need_lib_prefix=no 5267 need_version=no 5268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5269 soname_spec='$libname$release$shared_ext$major' 5270 shlibpath_var=LD_LIBRARY_PATH 5271 shlibpath_overrides_runpath=yes 5272 hardcode_into_libs=yes 5273 # ldd complains unless libraries are executable 5274 postinstall_cmds='chmod +x $lib' 5275 ;; 5276 5277sunos4*) 5278 version_type=sunos 5279 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 5280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 5281 shlibpath_var=LD_LIBRARY_PATH 5282 shlibpath_overrides_runpath=yes 5283 if test yes = "$with_gnu_ld"; then 5284 need_lib_prefix=no 5285 fi 5286 need_version=yes 5287 ;; 5288 5289sysv4 | sysv4.3*) 5290 version_type=linux # correct to gnu/linux during the next big refactor 5291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5292 soname_spec='$libname$release$shared_ext$major' 5293 shlibpath_var=LD_LIBRARY_PATH 5294 case $host_vendor in 5295 sni) 5296 shlibpath_overrides_runpath=no 5297 need_lib_prefix=no 5298 runpath_var=LD_RUN_PATH 5299 ;; 5300 siemens) 5301 need_lib_prefix=no 5302 ;; 5303 motorola) 5304 need_lib_prefix=no 5305 need_version=no 5306 shlibpath_overrides_runpath=no 5307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 5308 ;; 5309 esac 5310 ;; 5311 5312sysv4*MP*) 5313 if test -d /usr/nec; then 5314 version_type=linux # correct to gnu/linux during the next big refactor 5315 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 5316 soname_spec='$libname$shared_ext.$major' 5317 shlibpath_var=LD_LIBRARY_PATH 5318 fi 5319 ;; 5320 5321sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5322 version_type=sco 5323 need_lib_prefix=no 5324 need_version=no 5325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 5326 soname_spec='$libname$release$shared_ext$major' 5327 shlibpath_var=LD_LIBRARY_PATH 5328 shlibpath_overrides_runpath=yes 5329 hardcode_into_libs=yes 5330 if test yes = "$with_gnu_ld"; then 5331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 5332 else 5333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 5334 case $host_os in 5335 sco3.2v5*) 5336 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 5337 ;; 5338 esac 5339 fi 5340 sys_lib_dlsearch_path_spec='/usr/lib' 5341 ;; 5342 5343tpf*) 5344 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 5345 version_type=linux # correct to gnu/linux during the next big refactor 5346 need_lib_prefix=no 5347 need_version=no 5348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5349 shlibpath_var=LD_LIBRARY_PATH 5350 shlibpath_overrides_runpath=no 5351 hardcode_into_libs=yes 5352 ;; 5353 5354uts4*) 5355 version_type=linux # correct to gnu/linux during the next big refactor 5356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5357 soname_spec='$libname$release$shared_ext$major' 5358 shlibpath_var=LD_LIBRARY_PATH 5359 ;; 5360 5361*) 5362 dynamic_linker=no 5363 ;; 5364esac 5365AC_MSG_RESULT([$dynamic_linker]) 5366test no = "$dynamic_linker" && can_build_shared=no 5367 5368variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 5369if test yes = "$GCC"; then 5370 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 5371fi 5372 5373if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 5374 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 5375fi 5376 5377if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 5378 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 5379fi 5380 5381# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 5382configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 5383 5384# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 5385func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 5386 5387# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 5388configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 5389 5390_LT_DECL([], [variables_saved_for_relink], [1], 5391 [Variables whose values should be saved in libtool wrapper scripts and 5392 restored at link time]) 5393_LT_DECL([], [need_lib_prefix], [0], 5394 [Do we need the "lib" prefix for modules?]) 5395_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 5396_LT_DECL([], [version_type], [0], [Library versioning type]) 5397_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 5398_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 5399_LT_DECL([], [shlibpath_overrides_runpath], [0], 5400 [Is shlibpath searched before the hard-coded library search path?]) 5401_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 5402_LT_DECL([], [library_names_spec], [1], 5403 [[List of archive names. First name is the real one, the rest are links. 5404 The last name is the one that the linker finds with -lNAME]]) 5405_LT_DECL([], [soname_spec], [1], 5406 [[The coded name of the library, if different from the real name]]) 5407_LT_DECL([], [install_override_mode], [1], 5408 [Permission mode override for installation of shared libraries]) 5409_LT_DECL([], [postinstall_cmds], [2], 5410 [Command to use after installation of a shared archive]) 5411_LT_DECL([], [postuninstall_cmds], [2], 5412 [Command to use after uninstallation of a shared archive]) 5413_LT_DECL([], [finish_cmds], [2], 5414 [Commands used to finish a libtool library installation in a directory]) 5415_LT_DECL([], [finish_eval], [1], 5416 [[As "finish_cmds", except a single script fragment to be evaled but 5417 not shown]]) 5418_LT_DECL([], [hardcode_into_libs], [0], 5419 [Whether we should hardcode library paths into libraries]) 5420_LT_DECL([], [sys_lib_search_path_spec], [2], 5421 [Compile-time system search path for libraries]) 5422_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 5423 [Detected run-time system search path for libraries]) 5424_LT_DECL([], [configure_time_lt_sys_library_path], [2], 5425 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 5426])# _LT_SYS_DYNAMIC_LINKER 5427 5428 5429# _LT_PATH_TOOL_PREFIX(TOOL) 5430# -------------------------- 5431# find a file program that can recognize shared library 5432AC_DEFUN([_LT_PATH_TOOL_PREFIX], 5433[m4_require([_LT_DECL_EGREP])dnl 5434AC_MSG_CHECKING([for $1]) 5435AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 5436[case $MAGIC_CMD in 5437[[\\/*] | ?:[\\/]*]) 5438 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 5439 ;; 5440*) 5441 lt_save_MAGIC_CMD=$MAGIC_CMD 5442 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5443dnl $ac_dummy forces splitting on constant user-supplied paths. 5444dnl POSIX.2 word splitting is done only on the output of word expansions, 5445dnl not every word. This closes a longstanding sh security hole. 5446 ac_dummy="m4_if([$2], , $PATH, [$2])" 5447 for ac_dir in $ac_dummy; do 5448 IFS=$lt_save_ifs 5449 test -z "$ac_dir" && ac_dir=. 5450 if test -f "$ac_dir/$1"; then 5451 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 5452 if test -n "$file_magic_test_file"; then 5453 case $deplibs_check_method in 5454 "file_magic "*) 5455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5456 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 5457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5458 $EGREP "$file_magic_regex" > /dev/null; then 5459 : 5460 else 5461 cat <<_LT_EOF 1>&2 5462 5463*** Warning: the command libtool uses to detect shared libraries, 5464*** $file_magic_cmd, produces output that libtool cannot recognize. 5465*** The result is that libtool may fail to recognize shared libraries 5466*** as such. This will affect the creation of libtool libraries that 5467*** depend on shared libraries, but programs linked with such libtool 5468*** libraries will work regardless of this problem. Nevertheless, you 5469*** may want to report the problem to your system manager and/or to 5470*** bug-libtool@gnu.org 5471 5472_LT_EOF 5473 fi ;; 5474 esac 5475 fi 5476 break 5477 fi 5478 done 5479 IFS=$lt_save_ifs 5480 MAGIC_CMD=$lt_save_MAGIC_CMD 5481 ;; 5482esac]) 5483MAGIC_CMD=$lt_cv_path_MAGIC_CMD 5484if test -n "$MAGIC_CMD"; then 5485 AC_MSG_RESULT($MAGIC_CMD) 5486else 5487 AC_MSG_RESULT(no) 5488fi 5489_LT_DECL([], [MAGIC_CMD], [0], 5490 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 5491])# _LT_PATH_TOOL_PREFIX 5492 5493# Old name: 5494AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 5495dnl aclocal-1.4 backwards compatibility: 5496dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 5497 5498 5499# _LT_PATH_MAGIC 5500# -------------- 5501# find a file program that can recognize a shared library 5502m4_defun([_LT_PATH_MAGIC], 5503[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 5504if test -z "$lt_cv_path_MAGIC_CMD"; then 5505 if test -n "$ac_tool_prefix"; then 5506 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 5507 else 5508 MAGIC_CMD=: 5509 fi 5510fi 5511])# _LT_PATH_MAGIC 5512 5513 5514# LT_PATH_LD 5515# ---------- 5516# find the pathname to the GNU or non-GNU linker 5517AC_DEFUN([LT_PATH_LD], 5518[AC_REQUIRE([AC_PROG_CC])dnl 5519AC_REQUIRE([AC_CANONICAL_HOST])dnl 5520AC_REQUIRE([AC_CANONICAL_BUILD])dnl 5521m4_require([_LT_DECL_SED])dnl 5522m4_require([_LT_DECL_EGREP])dnl 5523m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 5524 5525AC_ARG_WITH([gnu-ld], 5526 [AS_HELP_STRING([--with-gnu-ld], 5527 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 5528 [test no = "$withval" || with_gnu_ld=yes], 5529 [with_gnu_ld=no])dnl 5530 5531ac_prog=ld 5532if test yes = "$GCC"; then 5533 # Check if gcc -print-prog-name=ld gives a path. 5534 AC_MSG_CHECKING([for ld used by $CC]) 5535 case $host in 5536 *-*-mingw*) 5537 # gcc leaves a trailing carriage return, which upsets mingw 5538 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5539 *) 5540 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5541 esac 5542 case $ac_prog in 5543 # Accept absolute paths. 5544 [[\\/]]* | ?:[[\\/]]*) 5545 re_direlt='/[[^/]][[^/]]*/\.\./' 5546 # Canonicalize the pathname of ld 5547 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5548 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5549 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5550 done 5551 test -z "$LD" && LD=$ac_prog 5552 ;; 5553 "") 5554 # If it fails, then pretend we aren't using GCC. 5555 ac_prog=ld 5556 ;; 5557 *) 5558 # If it is relative, then search for the first ld in PATH. 5559 with_gnu_ld=unknown 5560 ;; 5561 esac 5562elif test yes = "$with_gnu_ld"; then 5563 AC_MSG_CHECKING([for GNU ld]) 5564else 5565 AC_MSG_CHECKING([for non-GNU ld]) 5566fi 5567AC_CACHE_VAL(lt_cv_path_LD, 5568[if test -z "$LD"; then 5569 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5570 for ac_dir in $PATH; do 5571 IFS=$lt_save_ifs 5572 test -z "$ac_dir" && ac_dir=. 5573 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5574 lt_cv_path_LD=$ac_dir/$ac_prog 5575 # Check to see if the program is GNU ld. I'd rather use --version, 5576 # but apparently some variants of GNU ld only accept -v. 5577 # Break only if it was the GNU/non-GNU ld that we prefer. 5578 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5579 *GNU* | *'with BFD'*) 5580 test no != "$with_gnu_ld" && break 5581 ;; 5582 *) 5583 test yes != "$with_gnu_ld" && break 5584 ;; 5585 esac 5586 fi 5587 done 5588 IFS=$lt_save_ifs 5589else 5590 lt_cv_path_LD=$LD # Let the user override the test with a path. 5591fi]) 5592LD=$lt_cv_path_LD 5593if test -n "$LD"; then 5594 AC_MSG_RESULT($LD) 5595else 5596 AC_MSG_RESULT(no) 5597fi 5598test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 5599_LT_PATH_LD_GNU 5600AC_SUBST([LD]) 5601 5602_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 5603])# LT_PATH_LD 5604 5605# Old names: 5606AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 5607AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 5608dnl aclocal-1.4 backwards compatibility: 5609dnl AC_DEFUN([AM_PROG_LD], []) 5610dnl AC_DEFUN([AC_PROG_LD], []) 5611 5612 5613# _LT_PATH_LD_GNU 5614#- -------------- 5615m4_defun([_LT_PATH_LD_GNU], 5616[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 5617[# I'd rather use --version here, but apparently some GNU lds only accept -v. 5618case `$LD -v 2>&1 </dev/null` in 5619*GNU* | *'with BFD'*) 5620 lt_cv_prog_gnu_ld=yes 5621 ;; 5622*) 5623 lt_cv_prog_gnu_ld=no 5624 ;; 5625esac]) 5626with_gnu_ld=$lt_cv_prog_gnu_ld 5627])# _LT_PATH_LD_GNU 5628 5629 5630# _LT_CMD_RELOAD 5631# -------------- 5632# find reload flag for linker 5633# -- PORTME Some linkers may need a different reload flag. 5634m4_defun([_LT_CMD_RELOAD], 5635[AC_CACHE_CHECK([for $LD option to reload object files], 5636 lt_cv_ld_reload_flag, 5637 [lt_cv_ld_reload_flag='-r']) 5638reload_flag=$lt_cv_ld_reload_flag 5639case $reload_flag in 5640"" | " "*) ;; 5641*) reload_flag=" $reload_flag" ;; 5642esac 5643reload_cmds='$LD$reload_flag -o $output$reload_objs' 5644case $host_os in 5645 cygwin* | mingw* | pw32* | cegcc*) 5646 if test yes != "$GCC"; then 5647 reload_cmds=false 5648 fi 5649 ;; 5650 darwin*) 5651 if test yes = "$GCC"; then 5652 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5653 else 5654 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5655 fi 5656 ;; 5657esac 5658_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 5659_LT_TAGDECL([], [reload_cmds], [2])dnl 5660])# _LT_CMD_RELOAD 5661 5662 5663# _LT_PATH_DD 5664# ----------- 5665# find a working dd 5666m4_defun([_LT_PATH_DD], 5667[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 5668[printf 0123456789abcdef0123456789abcdef >conftest.i 5669cat conftest.i conftest.i >conftest2.i 5670: ${lt_DD:=$DD} 5671AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 5672[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 5673 cmp -s conftest.i conftest.out \ 5674 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 5675fi]) 5676rm -f conftest.i conftest2.i conftest.out]) 5677])# _LT_PATH_DD 5678 5679 5680# _LT_CMD_TRUNCATE 5681# ---------------- 5682# find command to truncate a binary pipe 5683m4_defun([_LT_CMD_TRUNCATE], 5684[m4_require([_LT_PATH_DD]) 5685AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 5686[printf 0123456789abcdef0123456789abcdef >conftest.i 5687cat conftest.i conftest.i >conftest2.i 5688lt_cv_truncate_bin= 5689if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 5690 cmp -s conftest.i conftest.out \ 5691 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 5692fi 5693rm -f conftest.i conftest2.i conftest.out 5694test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 5695_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 5696 [Command to truncate a binary pipe]) 5697])# _LT_CMD_TRUNCATE 5698 5699 5700# _LT_CHECK_MAGIC_METHOD 5701# ---------------------- 5702# how to check for library dependencies 5703# -- PORTME fill in with the dynamic library characteristics 5704m4_defun([_LT_CHECK_MAGIC_METHOD], 5705[m4_require([_LT_DECL_EGREP]) 5706m4_require([_LT_DECL_OBJDUMP]) 5707AC_CACHE_CHECK([how to recognize dependent libraries], 5708lt_cv_deplibs_check_method, 5709[lt_cv_file_magic_cmd='$MAGIC_CMD' 5710lt_cv_file_magic_test_file= 5711lt_cv_deplibs_check_method='unknown' 5712# Need to set the preceding variable on all platforms that support 5713# interlibrary dependencies. 5714# 'none' -- dependencies not supported. 5715# 'unknown' -- same as none, but documents that we really don't know. 5716# 'pass_all' -- all dependencies passed with no checks. 5717# 'test_compile' -- check by making test program. 5718# 'file_magic [[regex]]' -- check by looking for files in library path 5719# that responds to the $file_magic_cmd with a given extended regex. 5720# If you have 'file' or equivalent on your system and you're not sure 5721# whether 'pass_all' will *always* work, you probably want this one. 5722 5723case $host_os in 5724aix[[4-9]]*) 5725 lt_cv_deplibs_check_method=pass_all 5726 ;; 5727 5728beos*) 5729 lt_cv_deplibs_check_method=pass_all 5730 ;; 5731 5732bsdi[[45]]*) 5733 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 5734 lt_cv_file_magic_cmd='/usr/bin/file -L' 5735 lt_cv_file_magic_test_file=/shlib/libc.so 5736 ;; 5737 5738cygwin*) 5739 # func_win32_libid is a shell function defined in ltmain.sh 5740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5741 lt_cv_file_magic_cmd='func_win32_libid' 5742 ;; 5743 5744mingw* | pw32*) 5745 # Base MSYS/MinGW do not provide the 'file' command needed by 5746 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5747 # unless we find 'file', for example because we are cross-compiling. 5748 if ( file / ) >/dev/null 2>&1; then 5749 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5750 lt_cv_file_magic_cmd='func_win32_libid' 5751 else 5752 # Keep this pattern in sync with the one in func_win32_libid. 5753 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5754 lt_cv_file_magic_cmd='$OBJDUMP -f' 5755 fi 5756 ;; 5757 5758cegcc*) 5759 # use the weaker test based on 'objdump'. See mingw*. 5760 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5761 lt_cv_file_magic_cmd='$OBJDUMP -f' 5762 ;; 5763 5764darwin* | rhapsody*) 5765 lt_cv_deplibs_check_method=pass_all 5766 ;; 5767 5768freebsd* | dragonfly*) 5769 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5770 case $host_cpu in 5771 i*86 ) 5772 # Not sure whether the presence of OpenBSD here was a mistake. 5773 # Let's accept both of them until this is cleared up. 5774 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 5775 lt_cv_file_magic_cmd=/usr/bin/file 5776 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5777 ;; 5778 esac 5779 else 5780 lt_cv_deplibs_check_method=pass_all 5781 fi 5782 ;; 5783 5784haiku*) 5785 lt_cv_deplibs_check_method=pass_all 5786 ;; 5787 5788hpux10.20* | hpux11*) 5789 lt_cv_file_magic_cmd=/usr/bin/file 5790 case $host_cpu in 5791 ia64*) 5792 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 5793 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5794 ;; 5795 hppa*64*) 5796 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] 5797 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5798 ;; 5799 *) 5800 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 5801 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5802 ;; 5803 esac 5804 ;; 5805 5806interix[[3-9]]*) 5807 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5808 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 5809 ;; 5810 5811irix5* | irix6* | nonstopux*) 5812 case $LD in 5813 *-32|*"-32 ") libmagic=32-bit;; 5814 *-n32|*"-n32 ") libmagic=N32;; 5815 *-64|*"-64 ") libmagic=64-bit;; 5816 *) libmagic=never-match;; 5817 esac 5818 lt_cv_deplibs_check_method=pass_all 5819 ;; 5820 5821# This must be glibc/ELF. 5822linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5823 lt_cv_deplibs_check_method=pass_all 5824 ;; 5825 5826netbsd*) 5827 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5828 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5829 else 5830 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 5831 fi 5832 ;; 5833 5834newos6*) 5835 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 5836 lt_cv_file_magic_cmd=/usr/bin/file 5837 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5838 ;; 5839 5840*nto* | *qnx*) 5841 lt_cv_deplibs_check_method=pass_all 5842 ;; 5843 5844openbsd* | bitrig*) 5845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5846 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 5847 else 5848 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5849 fi 5850 ;; 5851 5852osf3* | osf4* | osf5*) 5853 lt_cv_deplibs_check_method=pass_all 5854 ;; 5855 5856rdos*) 5857 lt_cv_deplibs_check_method=pass_all 5858 ;; 5859 5860solaris*) 5861 lt_cv_deplibs_check_method=pass_all 5862 ;; 5863 5864sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5865 lt_cv_deplibs_check_method=pass_all 5866 ;; 5867 5868sysv4 | sysv4.3*) 5869 case $host_vendor in 5870 motorola) 5871 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' 5872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5873 ;; 5874 ncr) 5875 lt_cv_deplibs_check_method=pass_all 5876 ;; 5877 sequent) 5878 lt_cv_file_magic_cmd='/bin/file' 5879 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 5880 ;; 5881 sni) 5882 lt_cv_file_magic_cmd='/bin/file' 5883 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 5884 lt_cv_file_magic_test_file=/lib/libc.so 5885 ;; 5886 siemens) 5887 lt_cv_deplibs_check_method=pass_all 5888 ;; 5889 pc) 5890 lt_cv_deplibs_check_method=pass_all 5891 ;; 5892 esac 5893 ;; 5894 5895tpf*) 5896 lt_cv_deplibs_check_method=pass_all 5897 ;; 5898os2*) 5899 lt_cv_deplibs_check_method=pass_all 5900 ;; 5901esac 5902]) 5903 5904file_magic_glob= 5905want_nocaseglob=no 5906if test "$build" = "$host"; then 5907 case $host_os in 5908 mingw* | pw32*) 5909 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5910 want_nocaseglob=yes 5911 else 5912 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 5913 fi 5914 ;; 5915 esac 5916fi 5917 5918file_magic_cmd=$lt_cv_file_magic_cmd 5919deplibs_check_method=$lt_cv_deplibs_check_method 5920test -z "$deplibs_check_method" && deplibs_check_method=unknown 5921 5922_LT_DECL([], [deplibs_check_method], [1], 5923 [Method to check whether dependent libraries are shared objects]) 5924_LT_DECL([], [file_magic_cmd], [1], 5925 [Command to use when deplibs_check_method = "file_magic"]) 5926_LT_DECL([], [file_magic_glob], [1], 5927 [How to find potential files when deplibs_check_method = "file_magic"]) 5928_LT_DECL([], [want_nocaseglob], [1], 5929 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 5930])# _LT_CHECK_MAGIC_METHOD 5931 5932 5933# LT_PATH_NM 5934# ---------- 5935# find the pathname to a BSD- or MS-compatible name lister 5936AC_DEFUN([LT_PATH_NM], 5937[AC_REQUIRE([AC_PROG_CC])dnl 5938AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 5939[if test -n "$NM"; then 5940 # Let the user override the test. 5941 lt_cv_path_NM=$NM 5942else 5943 lt_nm_to_check=${ac_tool_prefix}nm 5944 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5945 lt_nm_to_check="$lt_nm_to_check nm" 5946 fi 5947 for lt_tmp_nm in $lt_nm_to_check; do 5948 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5949 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5950 IFS=$lt_save_ifs 5951 test -z "$ac_dir" && ac_dir=. 5952 tmp_nm=$ac_dir/$lt_tmp_nm 5953 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5954 # Check to see if the nm accepts a BSD-compat flag. 5955 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5956 # nm: unknown option "B" ignored 5957 # Tru64's nm complains that /dev/null is an invalid object file 5958 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5959 case $build_os in 5960 mingw*) lt_bad_file=conftest.nm/nofile ;; 5961 *) lt_bad_file=/dev/null ;; 5962 esac 5963 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5964 *$lt_bad_file* | *'Invalid file or object type'*) 5965 lt_cv_path_NM="$tmp_nm -B" 5966 break 2 5967 ;; 5968 *) 5969 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5970 */dev/null*) 5971 lt_cv_path_NM="$tmp_nm -p" 5972 break 2 5973 ;; 5974 *) 5975 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5976 continue # so that we can try to find one that supports BSD flags 5977 ;; 5978 esac 5979 ;; 5980 esac 5981 fi 5982 done 5983 IFS=$lt_save_ifs 5984 done 5985 : ${lt_cv_path_NM=no} 5986fi]) 5987if test no != "$lt_cv_path_NM"; then 5988 NM=$lt_cv_path_NM 5989else 5990 # Didn't find any BSD compatible name lister, look for dumpbin. 5991 if test -n "$DUMPBIN"; then : 5992 # Let the user override the test. 5993 else 5994 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 5995 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5996 *COFF*) 5997 DUMPBIN="$DUMPBIN -symbols -headers" 5998 ;; 5999 *) 6000 DUMPBIN=: 6001 ;; 6002 esac 6003 fi 6004 AC_SUBST([DUMPBIN]) 6005 if test : != "$DUMPBIN"; then 6006 NM=$DUMPBIN 6007 fi 6008fi 6009test -z "$NM" && NM=nm 6010AC_SUBST([NM]) 6011_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 6012 6013AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 6014 [lt_cv_nm_interface="BSD nm" 6015 echo "int some_variable = 0;" > conftest.$ac_ext 6016 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 6017 (eval "$ac_compile" 2>conftest.err) 6018 cat conftest.err >&AS_MESSAGE_LOG_FD 6019 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 6020 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6021 cat conftest.err >&AS_MESSAGE_LOG_FD 6022 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 6023 cat conftest.out >&AS_MESSAGE_LOG_FD 6024 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6025 lt_cv_nm_interface="MS dumpbin" 6026 fi 6027 rm -f conftest*]) 6028])# LT_PATH_NM 6029 6030# Old names: 6031AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 6032AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 6033dnl aclocal-1.4 backwards compatibility: 6034dnl AC_DEFUN([AM_PROG_NM], []) 6035dnl AC_DEFUN([AC_PROG_NM], []) 6036 6037# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 6038# -------------------------------- 6039# how to determine the name of the shared library 6040# associated with a specific link library. 6041# -- PORTME fill in with the dynamic library characteristics 6042m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 6043[m4_require([_LT_DECL_EGREP]) 6044m4_require([_LT_DECL_OBJDUMP]) 6045m4_require([_LT_DECL_DLLTOOL]) 6046AC_CACHE_CHECK([how to associate runtime and link libraries], 6047lt_cv_sharedlib_from_linklib_cmd, 6048[lt_cv_sharedlib_from_linklib_cmd='unknown' 6049 6050case $host_os in 6051cygwin* | mingw* | pw32* | cegcc*) 6052 # two different shell functions defined in ltmain.sh; 6053 # decide which one to use based on capabilities of $DLLTOOL 6054 case `$DLLTOOL --help 2>&1` in 6055 *--identify-strict*) 6056 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6057 ;; 6058 *) 6059 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6060 ;; 6061 esac 6062 ;; 6063*) 6064 # fallback: assume linklib IS sharedlib 6065 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6066 ;; 6067esac 6068]) 6069sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6070test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6071 6072_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 6073 [Command to associate shared and link libraries]) 6074])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 6075 6076 6077# _LT_PATH_MANIFEST_TOOL 6078# ---------------------- 6079# locate the manifest tool 6080m4_defun([_LT_PATH_MANIFEST_TOOL], 6081[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 6082test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6083AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 6084 [lt_cv_path_mainfest_tool=no 6085 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 6086 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6087 cat conftest.err >&AS_MESSAGE_LOG_FD 6088 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6089 lt_cv_path_mainfest_tool=yes 6090 fi 6091 rm -f conftest*]) 6092if test yes != "$lt_cv_path_mainfest_tool"; then 6093 MANIFEST_TOOL=: 6094fi 6095_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 6096])# _LT_PATH_MANIFEST_TOOL 6097 6098 6099# _LT_DLL_DEF_P([FILE]) 6100# --------------------- 6101# True iff FILE is a Windows DLL '.def' file. 6102# Keep in sync with func_dll_def_p in the libtool script 6103AC_DEFUN([_LT_DLL_DEF_P], 6104[dnl 6105 test DEF = "`$SED -n dnl 6106 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 6107 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 6108 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 6109 -e q dnl Only consider the first "real" line 6110 $1`" dnl 6111])# _LT_DLL_DEF_P 6112 6113 6114# LT_LIB_M 6115# -------- 6116# check for math library 6117AC_DEFUN([LT_LIB_M], 6118[AC_REQUIRE([AC_CANONICAL_HOST])dnl 6119LIBM= 6120case $host in 6121*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 6122 # These system don't have libm, or don't need it 6123 ;; 6124*-ncr-sysv4.3*) 6125 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 6126 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 6127 ;; 6128*) 6129 AC_CHECK_LIB(m, cos, LIBM=-lm) 6130 ;; 6131esac 6132AC_SUBST([LIBM]) 6133])# LT_LIB_M 6134 6135# Old name: 6136AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 6137dnl aclocal-1.4 backwards compatibility: 6138dnl AC_DEFUN([AC_CHECK_LIBM], []) 6139 6140 6141# _LT_COMPILER_NO_RTTI([TAGNAME]) 6142# ------------------------------- 6143m4_defun([_LT_COMPILER_NO_RTTI], 6144[m4_require([_LT_TAG_COMPILER])dnl 6145 6146_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 6147 6148if test yes = "$GCC"; then 6149 case $cc_basename in 6150 nvcc*) 6151 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 6152 *) 6153 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 6154 esac 6155 6156 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 6157 lt_cv_prog_compiler_rtti_exceptions, 6158 [-fno-rtti -fno-exceptions], [], 6159 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 6160fi 6161_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 6162 [Compiler flag to turn off builtin functions]) 6163])# _LT_COMPILER_NO_RTTI 6164 6165 6166# _LT_CMD_GLOBAL_SYMBOLS 6167# ---------------------- 6168m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 6169[AC_REQUIRE([AC_CANONICAL_HOST])dnl 6170AC_REQUIRE([AC_PROG_CC])dnl 6171AC_REQUIRE([AC_PROG_AWK])dnl 6172AC_REQUIRE([LT_PATH_NM])dnl 6173AC_REQUIRE([LT_PATH_LD])dnl 6174m4_require([_LT_DECL_SED])dnl 6175m4_require([_LT_DECL_EGREP])dnl 6176m4_require([_LT_TAG_COMPILER])dnl 6177 6178# Check for command to grab the raw symbol name followed by C symbol from nm. 6179AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 6180AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 6181[ 6182# These are sane defaults that work on at least a few old systems. 6183# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6184 6185# Character class describing NM global symbol codes. 6186symcode='[[BCDEGRST]]' 6187 6188# Regexp to match symbols that can be accessed directly from C. 6189sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 6190 6191# Define system-specific variables. 6192case $host_os in 6193aix*) 6194 symcode='[[BCDT]]' 6195 ;; 6196cygwin* | mingw* | pw32* | cegcc*) 6197 symcode='[[ABCDGISTW]]' 6198 ;; 6199hpux*) 6200 if test ia64 = "$host_cpu"; then 6201 symcode='[[ABCDEGRST]]' 6202 fi 6203 ;; 6204irix* | nonstopux*) 6205 symcode='[[BCDEGRST]]' 6206 ;; 6207osf*) 6208 symcode='[[BCDEGQRST]]' 6209 ;; 6210solaris*) 6211 symcode='[[BDRT]]' 6212 ;; 6213sco3.2v5*) 6214 symcode='[[DT]]' 6215 ;; 6216sysv4.2uw2*) 6217 symcode='[[DT]]' 6218 ;; 6219sysv5* | sco5v6* | unixware* | OpenUNIX*) 6220 symcode='[[ABDT]]' 6221 ;; 6222sysv4) 6223 symcode='[[DFNSTU]]' 6224 ;; 6225esac 6226 6227# If we're using GNU nm, then use its standard symbol codes. 6228case `$NM -V 2>&1` in 6229*GNU* | *'with BFD'*) 6230 symcode='[[ABCDGIRSTW]]' ;; 6231esac 6232 6233if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6234 # Gets list of data symbols to import. 6235 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6236 # Adjust the below global symbol transforms to fixup imported variables. 6237 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6238 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6239 lt_c_name_lib_hook="\ 6240 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6241 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6242else 6243 # Disable hooks by default. 6244 lt_cv_sys_global_symbol_to_import= 6245 lt_cdecl_hook= 6246 lt_c_name_hook= 6247 lt_c_name_lib_hook= 6248fi 6249 6250# Transform an extracted symbol line into a proper C declaration. 6251# Some systems (esp. on ia64) link data and code symbols differently, 6252# so use this general approach. 6253lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6254$lt_cdecl_hook\ 6255" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6256" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6257 6258# Transform an extracted symbol line into symbol name and symbol address 6259lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6260$lt_c_name_hook\ 6261" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6262" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6263 6264# Transform an extracted symbol line into symbol name with lib prefix and 6265# symbol address. 6266lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6267$lt_c_name_lib_hook\ 6268" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6269" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6270" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6271 6272# Handle CRLF in mingw tool chain 6273opt_cr= 6274case $build_os in 6275mingw*) 6276 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6277 ;; 6278esac 6279 6280# Try without a prefix underscore, then with it. 6281for ac_symprfx in "" "_"; do 6282 6283 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6284 symxfrm="\\1 $ac_symprfx\\2 \\2" 6285 6286 # Write the raw and C identifiers. 6287 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6288 # Fake it for dumpbin and say T for any non-static function, 6289 # D for any global variable and I for any imported variable. 6290 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6291 # which start with @ or ?. 6292 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 6293" {last_section=section; section=\$ 3};"\ 6294" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6295" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6296" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6297" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6298" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6299" \$ 0!~/External *\|/{next};"\ 6300" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6301" {if(hide[section]) next};"\ 6302" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6303" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6304" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6305" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6306" ' prfx=^$ac_symprfx]" 6307 else 6308 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6309 fi 6310 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6311 6312 # Check to see that the pipe works correctly. 6313 pipe_works=no 6314 6315 rm -f conftest* 6316 cat > conftest.$ac_ext <<_LT_EOF 6317#ifdef __cplusplus 6318extern "C" { 6319#endif 6320char nm_test_var; 6321void nm_test_func(void); 6322void nm_test_func(void){} 6323#ifdef __cplusplus 6324} 6325#endif 6326int main(){nm_test_var='a';nm_test_func();return(0);} 6327_LT_EOF 6328 6329 if AC_TRY_EVAL(ac_compile); then 6330 # Now try to grab the symbols. 6331 nlist=conftest.nm 6332 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 6333 # Try sorting and uniquifying the output. 6334 if sort "$nlist" | uniq > "$nlist"T; then 6335 mv -f "$nlist"T "$nlist" 6336 else 6337 rm -f "$nlist"T 6338 fi 6339 6340 # Make sure that we snagged all the symbols we need. 6341 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6342 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6343 cat <<_LT_EOF > conftest.$ac_ext 6344/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6345#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6346/* DATA imports from DLLs on WIN32 can't be const, because runtime 6347 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6348# define LT@&t@_DLSYM_CONST 6349#elif defined __osf__ 6350/* This system does not cope well with relocations in const data. */ 6351# define LT@&t@_DLSYM_CONST 6352#else 6353# define LT@&t@_DLSYM_CONST const 6354#endif 6355 6356#ifdef __cplusplus 6357extern "C" { 6358#endif 6359 6360_LT_EOF 6361 # Now generate the symbol file. 6362 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6363 6364 cat <<_LT_EOF >> conftest.$ac_ext 6365 6366/* The mapping between symbol names and symbols. */ 6367LT@&t@_DLSYM_CONST struct { 6368 const char *name; 6369 void *address; 6370} 6371lt__PROGRAM__LTX_preloaded_symbols[[]] = 6372{ 6373 { "@PROGRAM@", (void *) 0 }, 6374_LT_EOF 6375 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6376 cat <<\_LT_EOF >> conftest.$ac_ext 6377 {0, (void *) 0} 6378}; 6379 6380/* This works around a problem in FreeBSD linker */ 6381#ifdef FREEBSD_WORKAROUND 6382static const void *lt_preloaded_setup() { 6383 return lt__PROGRAM__LTX_preloaded_symbols; 6384} 6385#endif 6386 6387#ifdef __cplusplus 6388} 6389#endif 6390_LT_EOF 6391 # Now try linking the two files. 6392 mv conftest.$ac_objext conftstm.$ac_objext 6393 lt_globsym_save_LIBS=$LIBS 6394 lt_globsym_save_CFLAGS=$CFLAGS 6395 LIBS=conftstm.$ac_objext 6396 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 6397 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 6398 pipe_works=yes 6399 fi 6400 LIBS=$lt_globsym_save_LIBS 6401 CFLAGS=$lt_globsym_save_CFLAGS 6402 else 6403 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 6404 fi 6405 else 6406 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 6407 fi 6408 else 6409 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 6410 fi 6411 else 6412 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 6413 cat conftest.$ac_ext >&5 6414 fi 6415 rm -rf conftest* conftst* 6416 6417 # Do not use the global_symbol_pipe unless it works. 6418 if test yes = "$pipe_works"; then 6419 break 6420 else 6421 lt_cv_sys_global_symbol_pipe= 6422 fi 6423done 6424]) 6425if test -z "$lt_cv_sys_global_symbol_pipe"; then 6426 lt_cv_sys_global_symbol_to_cdecl= 6427fi 6428if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6429 AC_MSG_RESULT(failed) 6430else 6431 AC_MSG_RESULT(ok) 6432fi 6433 6434# Response file support. 6435if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6436 nm_file_list_spec='@' 6437elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 6438 nm_file_list_spec='@' 6439fi 6440 6441_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 6442 [Take the output of nm and produce a listing of raw symbols and C names]) 6443_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 6444 [Transform the output of nm in a proper C declaration]) 6445_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 6446 [Transform the output of nm into a list of symbols to manually relocate]) 6447_LT_DECL([global_symbol_to_c_name_address], 6448 [lt_cv_sys_global_symbol_to_c_name_address], [1], 6449 [Transform the output of nm in a C name address pair]) 6450_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 6451 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 6452 [Transform the output of nm in a C name address pair when lib prefix is needed]) 6453_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 6454 [The name lister interface]) 6455_LT_DECL([], [nm_file_list_spec], [1], 6456 [Specify filename containing input files for $NM]) 6457]) # _LT_CMD_GLOBAL_SYMBOLS 6458 6459 6460# _LT_COMPILER_PIC([TAGNAME]) 6461# --------------------------- 6462m4_defun([_LT_COMPILER_PIC], 6463[m4_require([_LT_TAG_COMPILER])dnl 6464_LT_TAGVAR(lt_prog_compiler_wl, $1)= 6465_LT_TAGVAR(lt_prog_compiler_pic, $1)= 6466_LT_TAGVAR(lt_prog_compiler_static, $1)= 6467 6468m4_if([$1], [CXX], [ 6469 # C++ specific cases for pic, static, wl, etc. 6470 if test yes = "$GXX"; then 6471 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6472 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6473 6474 case $host_os in 6475 aix*) 6476 # All AIX code is PIC. 6477 if test ia64 = "$host_cpu"; then 6478 # AIX 5 now supports IA64 processor 6479 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6480 fi 6481 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6482 ;; 6483 6484 amigaos*) 6485 case $host_cpu in 6486 powerpc) 6487 # see comment about AmigaOS4 .so support 6488 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6489 ;; 6490 m68k) 6491 # FIXME: we need at least 68020 code to build shared libraries, but 6492 # adding the '-m68020' flag to GCC prevents building anything better, 6493 # like '-m68040'. 6494 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6495 ;; 6496 esac 6497 ;; 6498 6499 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6500 # PIC is the default for these OSes. 6501 ;; 6502 mingw* | cygwin* | os2* | pw32* | cegcc*) 6503 # This hack is so that the source file can tell whether it is being 6504 # built for inclusion in a dll (and should export symbols for example). 6505 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6506 # (--disable-auto-import) libraries 6507 m4_if([$1], [GCJ], [], 6508 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6509 case $host_os in 6510 os2*) 6511 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 6512 ;; 6513 esac 6514 ;; 6515 darwin* | rhapsody*) 6516 # PIC is the default on this platform 6517 # Common symbols not allowed in MH_DYLIB files 6518 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6519 ;; 6520 *djgpp*) 6521 # DJGPP does not support shared libraries at all 6522 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6523 ;; 6524 haiku*) 6525 # PIC is the default for Haiku. 6526 # The "-static" flag exists, but is broken. 6527 _LT_TAGVAR(lt_prog_compiler_static, $1)= 6528 ;; 6529 interix[[3-9]]*) 6530 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6531 # Instead, we relocate shared libraries at runtime. 6532 ;; 6533 sysv4*MP*) 6534 if test -d /usr/nec; then 6535 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6536 fi 6537 ;; 6538 hpux*) 6539 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6540 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6541 # sets the default TLS model and affects inlining. 6542 case $host_cpu in 6543 hppa*64*) 6544 ;; 6545 *) 6546 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6547 ;; 6548 esac 6549 ;; 6550 *qnx* | *nto*) 6551 # QNX uses GNU C++, but need to define -shared option too, otherwise 6552 # it will coredump. 6553 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6554 ;; 6555 *) 6556 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6557 ;; 6558 esac 6559 else 6560 case $host_os in 6561 aix[[4-9]]*) 6562 # All AIX code is PIC. 6563 if test ia64 = "$host_cpu"; then 6564 # AIX 5 now supports IA64 processor 6565 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6566 else 6567 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6568 fi 6569 ;; 6570 chorus*) 6571 case $cc_basename in 6572 cxch68*) 6573 # Green Hills C++ Compiler 6574 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 6575 ;; 6576 esac 6577 ;; 6578 mingw* | cygwin* | os2* | pw32* | cegcc*) 6579 # This hack is so that the source file can tell whether it is being 6580 # built for inclusion in a dll (and should export symbols for example). 6581 m4_if([$1], [GCJ], [], 6582 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6583 ;; 6584 dgux*) 6585 case $cc_basename in 6586 ec++*) 6587 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6588 ;; 6589 ghcx*) 6590 # Green Hills C++ Compiler 6591 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6592 ;; 6593 *) 6594 ;; 6595 esac 6596 ;; 6597 freebsd* | dragonfly*) 6598 # FreeBSD uses GNU C++ 6599 ;; 6600 hpux9* | hpux10* | hpux11*) 6601 case $cc_basename in 6602 CC*) 6603 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6604 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 6605 if test ia64 != "$host_cpu"; then 6606 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6607 fi 6608 ;; 6609 aCC*) 6610 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6611 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 6612 case $host_cpu in 6613 hppa*64*|ia64*) 6614 # +Z the default 6615 ;; 6616 *) 6617 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6618 ;; 6619 esac 6620 ;; 6621 *) 6622 ;; 6623 esac 6624 ;; 6625 interix*) 6626 # This is c89, which is MS Visual C++ (no shared libs) 6627 # Anyone wants to do a port? 6628 ;; 6629 irix5* | irix6* | nonstopux*) 6630 case $cc_basename in 6631 CC*) 6632 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6633 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6634 # CC pic flag -KPIC is the default. 6635 ;; 6636 *) 6637 ;; 6638 esac 6639 ;; 6640 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6641 case $cc_basename in 6642 KCC*) 6643 # KAI C++ Compiler 6644 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6645 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6646 ;; 6647 ecpc* ) 6648 # old Intel C++ for x86_64, which still supported -KPIC. 6649 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6650 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6651 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6652 ;; 6653 icpc* ) 6654 # Intel C++, used to be incompatible with GCC. 6655 # ICC 10 doesn't accept -KPIC any more. 6656 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6657 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6658 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6659 ;; 6660 pgCC* | pgcpp*) 6661 # Portland Group C++ compiler 6662 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6663 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6664 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6665 ;; 6666 cxx*) 6667 # Compaq C++ 6668 # Make sure the PIC flag is empty. It appears that all Alpha 6669 # Linux and Compaq Tru64 Unix objects are PIC. 6670 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6671 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6672 ;; 6673 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 6674 # IBM XL 8.0, 9.0 on PPC and BlueGene 6675 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6676 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6677 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6678 ;; 6679 *) 6680 case `$CC -V 2>&1 | sed 5q` in 6681 *Sun\ C*) 6682 # Sun C++ 5.9 6683 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6684 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6685 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6686 ;; 6687 esac 6688 ;; 6689 esac 6690 ;; 6691 lynxos*) 6692 ;; 6693 m88k*) 6694 ;; 6695 mvs*) 6696 case $cc_basename in 6697 cxx*) 6698 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 6699 ;; 6700 *) 6701 ;; 6702 esac 6703 ;; 6704 netbsd*) 6705 ;; 6706 *qnx* | *nto*) 6707 # QNX uses GNU C++, but need to define -shared option too, otherwise 6708 # it will coredump. 6709 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6710 ;; 6711 osf3* | osf4* | osf5*) 6712 case $cc_basename in 6713 KCC*) 6714 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6715 ;; 6716 RCC*) 6717 # Rational C++ 2.4.1 6718 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6719 ;; 6720 cxx*) 6721 # Digital/Compaq C++ 6722 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6723 # Make sure the PIC flag is empty. It appears that all Alpha 6724 # Linux and Compaq Tru64 Unix objects are PIC. 6725 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6726 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6727 ;; 6728 *) 6729 ;; 6730 esac 6731 ;; 6732 psos*) 6733 ;; 6734 solaris*) 6735 case $cc_basename in 6736 CC* | sunCC*) 6737 # Sun C++ 4.2, 5.x and Centerline C++ 6738 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6740 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6741 ;; 6742 gcx*) 6743 # Green Hills C++ Compiler 6744 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6745 ;; 6746 *) 6747 ;; 6748 esac 6749 ;; 6750 sunos4*) 6751 case $cc_basename in 6752 CC*) 6753 # Sun C++ 4.x 6754 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6755 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6756 ;; 6757 lcc*) 6758 # Lucid 6759 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6760 ;; 6761 *) 6762 ;; 6763 esac 6764 ;; 6765 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6766 case $cc_basename in 6767 CC*) 6768 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6769 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6770 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6771 ;; 6772 esac 6773 ;; 6774 tandem*) 6775 case $cc_basename in 6776 NCC*) 6777 # NonStop-UX NCC 3.20 6778 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6779 ;; 6780 *) 6781 ;; 6782 esac 6783 ;; 6784 vxworks*) 6785 ;; 6786 *) 6787 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6788 ;; 6789 esac 6790 fi 6791], 6792[ 6793 if test yes = "$GCC"; then 6794 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6795 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6796 6797 case $host_os in 6798 aix*) 6799 # All AIX code is PIC. 6800 if test ia64 = "$host_cpu"; then 6801 # AIX 5 now supports IA64 processor 6802 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6803 fi 6804 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6805 ;; 6806 6807 amigaos*) 6808 case $host_cpu in 6809 powerpc) 6810 # see comment about AmigaOS4 .so support 6811 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6812 ;; 6813 m68k) 6814 # FIXME: we need at least 68020 code to build shared libraries, but 6815 # adding the '-m68020' flag to GCC prevents building anything better, 6816 # like '-m68040'. 6817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6818 ;; 6819 esac 6820 ;; 6821 6822 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6823 # PIC is the default for these OSes. 6824 ;; 6825 6826 mingw* | cygwin* | pw32* | os2* | cegcc*) 6827 # This hack is so that the source file can tell whether it is being 6828 # built for inclusion in a dll (and should export symbols for example). 6829 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6830 # (--disable-auto-import) libraries 6831 m4_if([$1], [GCJ], [], 6832 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6833 case $host_os in 6834 os2*) 6835 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 6836 ;; 6837 esac 6838 ;; 6839 6840 darwin* | rhapsody*) 6841 # PIC is the default on this platform 6842 # Common symbols not allowed in MH_DYLIB files 6843 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6844 ;; 6845 6846 haiku*) 6847 # PIC is the default for Haiku. 6848 # The "-static" flag exists, but is broken. 6849 _LT_TAGVAR(lt_prog_compiler_static, $1)= 6850 ;; 6851 6852 hpux*) 6853 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6854 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6855 # sets the default TLS model and affects inlining. 6856 case $host_cpu in 6857 hppa*64*) 6858 # +Z the default 6859 ;; 6860 *) 6861 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6862 ;; 6863 esac 6864 ;; 6865 6866 interix[[3-9]]*) 6867 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6868 # Instead, we relocate shared libraries at runtime. 6869 ;; 6870 6871 msdosdjgpp*) 6872 # Just because we use GCC doesn't mean we suddenly get shared libraries 6873 # on systems that don't support them. 6874 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6875 enable_shared=no 6876 ;; 6877 6878 *nto* | *qnx*) 6879 # QNX uses GNU C++, but need to define -shared option too, otherwise 6880 # it will coredump. 6881 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6882 ;; 6883 6884 sysv4*MP*) 6885 if test -d /usr/nec; then 6886 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6887 fi 6888 ;; 6889 6890 *) 6891 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6892 ;; 6893 esac 6894 6895 case $cc_basename in 6896 nvcc*) # Cuda Compiler Driver 2.2 6897 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 6898 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 6899 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 6900 fi 6901 ;; 6902 esac 6903 else 6904 # PORTME Check for flag to pass linker flags through the system compiler. 6905 case $host_os in 6906 aix*) 6907 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6908 if test ia64 = "$host_cpu"; then 6909 # AIX 5 now supports IA64 processor 6910 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6911 else 6912 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6913 fi 6914 ;; 6915 6916 darwin* | rhapsody*) 6917 # PIC is the default on this platform 6918 # Common symbols not allowed in MH_DYLIB files 6919 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6920 case $cc_basename in 6921 nagfor*) 6922 # NAG Fortran compiler 6923 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 6924 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6925 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6926 ;; 6927 esac 6928 ;; 6929 6930 mingw* | cygwin* | pw32* | os2* | cegcc*) 6931 # This hack is so that the source file can tell whether it is being 6932 # built for inclusion in a dll (and should export symbols for example). 6933 m4_if([$1], [GCJ], [], 6934 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6935 case $host_os in 6936 os2*) 6937 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 6938 ;; 6939 esac 6940 ;; 6941 6942 hpux9* | hpux10* | hpux11*) 6943 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6944 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6945 # not for PA HP-UX. 6946 case $host_cpu in 6947 hppa*64*|ia64*) 6948 # +Z the default 6949 ;; 6950 *) 6951 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6952 ;; 6953 esac 6954 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6955 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 6956 ;; 6957 6958 irix5* | irix6* | nonstopux*) 6959 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6960 # PIC (with -KPIC) is the default. 6961 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6962 ;; 6963 6964 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6965 case $cc_basename in 6966 # old Intel for x86_64, which still supported -KPIC. 6967 ecc*) 6968 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6969 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6970 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6971 ;; 6972 # icc used to be incompatible with GCC. 6973 # ICC 10 doesn't accept -KPIC any more. 6974 icc* | ifort*) 6975 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6976 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6977 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6978 ;; 6979 # Lahey Fortran 8.1. 6980 lf95*) 6981 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6982 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 6983 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 6984 ;; 6985 nagfor*) 6986 # NAG Fortran compiler 6987 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 6988 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6989 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6990 ;; 6991 tcc*) 6992 # Fabrice Bellard et al's Tiny C Compiler 6993 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6994 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6995 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6996 ;; 6997 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 6998 # Portland Group compilers (*not* the Pentium gcc compiler, 6999 # which looks to be a dead project) 7000 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7001 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 7002 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7003 ;; 7004 ccc*) 7005 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7006 # All Alpha code is PIC. 7007 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 7008 ;; 7009 xl* | bgxl* | bgf* | mpixl*) 7010 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7011 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7012 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 7013 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 7014 ;; 7015 *) 7016 case `$CC -V 2>&1 | sed 5q` in 7017 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 7018 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7019 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7020 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7021 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 7022 ;; 7023 *Sun\ F* | *Sun*Fortran*) 7024 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7025 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7026 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 7027 ;; 7028 *Sun\ C*) 7029 # Sun C 5.9 7030 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7031 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7032 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7033 ;; 7034 *Intel*\ [[CF]]*Compiler*) 7035 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7036 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7037 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 7038 ;; 7039 *Portland\ Group*) 7040 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7041 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 7042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7043 ;; 7044 esac 7045 ;; 7046 esac 7047 ;; 7048 7049 newsos6) 7050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7051 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7052 ;; 7053 7054 *nto* | *qnx*) 7055 # QNX uses GNU C++, but need to define -shared option too, otherwise 7056 # it will coredump. 7057 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 7058 ;; 7059 7060 osf3* | osf4* | osf5*) 7061 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7062 # All OSF/1 code is PIC. 7063 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 7064 ;; 7065 7066 rdos*) 7067 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 7068 ;; 7069 7070 solaris*) 7071 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7072 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7073 case $cc_basename in 7074 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 7075 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 7076 *) 7077 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 7078 esac 7079 ;; 7080 7081 sunos4*) 7082 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 7083 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 7084 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7085 ;; 7086 7087 sysv4 | sysv4.2uw2* | sysv4.3*) 7088 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7089 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7090 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7091 ;; 7092 7093 sysv4*MP*) 7094 if test -d /usr/nec; then 7095 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 7096 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7097 fi 7098 ;; 7099 7100 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7101 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7102 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7103 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7104 ;; 7105 7106 unicos*) 7107 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7108 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 7109 ;; 7110 7111 uts4*) 7112 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 7113 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7114 ;; 7115 7116 *) 7117 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 7118 ;; 7119 esac 7120 fi 7121]) 7122case $host_os in 7123 # For platforms that do not support PIC, -DPIC is meaningless: 7124 *djgpp*) 7125 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 7126 ;; 7127 *) 7128 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 7129 ;; 7130esac 7131 7132AC_CACHE_CHECK([for $compiler option to produce PIC], 7133 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 7134 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 7135_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 7136 7137# 7138# Check to make sure the PIC flag actually works. 7139# 7140if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 7141 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 7142 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 7143 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 7144 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 7145 "" | " "*) ;; 7146 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 7147 esac], 7148 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 7149 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 7150fi 7151_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 7152 [Additional compiler flags for building library objects]) 7153 7154_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 7155 [How to pass a linker flag through the compiler]) 7156# 7157# Check to make sure the static flag actually works. 7158# 7159wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 7160_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 7161 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 7162 $lt_tmp_static_flag, 7163 [], 7164 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 7165_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 7166 [Compiler flag to prevent dynamic linking]) 7167])# _LT_COMPILER_PIC 7168 7169 7170# _LT_LINKER_SHLIBS([TAGNAME]) 7171# ---------------------------- 7172# See if the linker supports building shared libraries. 7173m4_defun([_LT_LINKER_SHLIBS], 7174[AC_REQUIRE([LT_PATH_LD])dnl 7175AC_REQUIRE([LT_PATH_NM])dnl 7176m4_require([_LT_PATH_MANIFEST_TOOL])dnl 7177m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7178m4_require([_LT_DECL_EGREP])dnl 7179m4_require([_LT_DECL_SED])dnl 7180m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 7181m4_require([_LT_TAG_COMPILER])dnl 7182AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 7183m4_if([$1], [CXX], [ 7184 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7185 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 7186 case $host_os in 7187 aix[[4-9]]*) 7188 # If we're using GNU nm, then we don't want the "-C" option. 7189 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 7190 # Without the "-l" option, or with the "-B" option, AIX nm treats 7191 # weak defined symbols like other global defined symbols, whereas 7192 # GNU nm marks them as "W". 7193 # While the 'weak' keyword is ignored in the Export File, we need 7194 # it in the Import File for the 'aix-soname' feature, so we have 7195 # to replace the "-B" option with "-P" for AIX nm. 7196 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7197 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 7198 else 7199 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 7200 fi 7201 ;; 7202 pw32*) 7203 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 7204 ;; 7205 cygwin* | mingw* | cegcc*) 7206 case $cc_basename in 7207 cl* | icl*) 7208 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 7209 ;; 7210 *) 7211 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 7212 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 7213 ;; 7214 esac 7215 ;; 7216 *) 7217 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7218 ;; 7219 esac 7220], [ 7221 runpath_var= 7222 _LT_TAGVAR(allow_undefined_flag, $1)= 7223 _LT_TAGVAR(always_export_symbols, $1)=no 7224 _LT_TAGVAR(archive_cmds, $1)= 7225 _LT_TAGVAR(archive_expsym_cmds, $1)= 7226 _LT_TAGVAR(compiler_needs_object, $1)=no 7227 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7228 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 7229 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7230 _LT_TAGVAR(hardcode_automatic, $1)=no 7231 _LT_TAGVAR(hardcode_direct, $1)=no 7232 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7233 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7234 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7235 _LT_TAGVAR(hardcode_minus_L, $1)=no 7236 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 7237 _LT_TAGVAR(inherit_rpath, $1)=no 7238 _LT_TAGVAR(link_all_deplibs, $1)=unknown 7239 _LT_TAGVAR(module_cmds, $1)= 7240 _LT_TAGVAR(module_expsym_cmds, $1)= 7241 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 7242 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 7243 _LT_TAGVAR(thread_safe_flag_spec, $1)= 7244 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7245 # include_expsyms should be a list of space-separated symbols to be *always* 7246 # included in the symbol list 7247 _LT_TAGVAR(include_expsyms, $1)= 7248 # exclude_expsyms can be an extended regexp of symbols to exclude 7249 # it will be wrapped by ' (' and ')$', so one must not match beginning or 7250 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 7251 # as well as any symbol that contains 'd'. 7252 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 7253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7254 # platforms (ab)use it in PIC code, but their linkers get confused if 7255 # the symbol is explicitly referenced. Since portable code cannot 7256 # rely on this symbol name, it's probably fine to never include it in 7257 # preloaded symbol tables. 7258 # Exclude shared library initialization/finalization symbols. 7259dnl Note also adjust exclude_expsyms for C++ above. 7260 extract_expsyms_cmds= 7261 7262 case $host_os in 7263 cygwin* | mingw* | pw32* | cegcc*) 7264 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 7265 # When not using gcc, we currently assume that we are using 7266 # Microsoft Visual C++ or Intel C++ Compiler. 7267 if test yes != "$GCC"; then 7268 with_gnu_ld=no 7269 fi 7270 ;; 7271 interix*) 7272 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 7273 with_gnu_ld=yes 7274 ;; 7275 openbsd* | bitrig*) 7276 with_gnu_ld=no 7277 ;; 7278 esac 7279 7280 _LT_TAGVAR(ld_shlibs, $1)=yes 7281 7282 # On some targets, GNU ld is compatible enough with the native linker 7283 # that we're better off using the native interface for both. 7284 lt_use_gnu_ld_interface=no 7285 if test yes = "$with_gnu_ld"; then 7286 case $host_os in 7287 aix*) 7288 # The AIX port of GNU ld has always aspired to compatibility 7289 # with the native linker. However, as the warning in the GNU ld 7290 # block says, versions before 2.19.5* couldn't really create working 7291 # shared libraries, regardless of the interface used. 7292 case `$LD -v 2>&1` in 7293 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 7294 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 7295 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 7296 *) 7297 lt_use_gnu_ld_interface=yes 7298 ;; 7299 esac 7300 ;; 7301 *) 7302 lt_use_gnu_ld_interface=yes 7303 ;; 7304 esac 7305 fi 7306 7307 if test yes = "$lt_use_gnu_ld_interface"; then 7308 # If archive_cmds runs LD, not CC, wlarc should be empty 7309 wlarc='$wl' 7310 7311 # Set some defaults for GNU ld with shared library support. These 7312 # are reset later if shared libraries are not supported. Putting them 7313 # here allows them to be overridden if necessary. 7314 runpath_var=LD_RUN_PATH 7315 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7316 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7317 # ancient GNU ld didn't support --whole-archive et. al. 7318 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7319 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 7320 else 7321 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7322 fi 7323 supports_anon_versioning=no 7324 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 7325 *GNU\ gold*) supports_anon_versioning=yes ;; 7326 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 7327 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7328 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7329 *\ 2.11.*) ;; # other 2.11 versions 7330 *) supports_anon_versioning=yes ;; 7331 esac 7332 7333 # See if GNU ld supports shared libraries. 7334 case $host_os in 7335 aix[[3-9]]*) 7336 # On AIX/PPC, the GNU linker is very broken 7337 if test ia64 != "$host_cpu"; then 7338 _LT_TAGVAR(ld_shlibs, $1)=no 7339 cat <<_LT_EOF 1>&2 7340 7341*** Warning: the GNU linker, at least up to release 2.19, is reported 7342*** to be unable to reliably create shared libraries on AIX. 7343*** Therefore, libtool is disabling shared libraries support. If you 7344*** really care for shared libraries, you may want to install binutils 7345*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 7346*** You will then need to restart the configuration process. 7347 7348_LT_EOF 7349 fi 7350 ;; 7351 7352 amigaos*) 7353 case $host_cpu in 7354 powerpc) 7355 # see comment about AmigaOS4 .so support 7356 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7357 _LT_TAGVAR(archive_expsym_cmds, $1)='' 7358 ;; 7359 m68k) 7360 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 7361 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7362 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7363 ;; 7364 esac 7365 ;; 7366 7367 beos*) 7368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7369 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7371 # support --undefined. This deserves some investigation. FIXME 7372 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7373 else 7374 _LT_TAGVAR(ld_shlibs, $1)=no 7375 fi 7376 ;; 7377 7378 cygwin* | mingw* | pw32* | cegcc*) 7379 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 7380 # as there is no search path for DLLs. 7381 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7382 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 7383 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7384 _LT_TAGVAR(always_export_symbols, $1)=no 7385 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7386 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 7387 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 7388 7389 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7390 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7391 # If the export-symbols file already is a .def file, use it as 7392 # is; otherwise, prepend EXPORTS... 7393 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 7394 cp $export_symbols $output_objdir/$soname.def; 7395 else 7396 echo EXPORTS > $output_objdir/$soname.def; 7397 cat $export_symbols >> $output_objdir/$soname.def; 7398 fi~ 7399 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7400 else 7401 _LT_TAGVAR(ld_shlibs, $1)=no 7402 fi 7403 ;; 7404 7405 haiku*) 7406 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7407 _LT_TAGVAR(link_all_deplibs, $1)=yes 7408 ;; 7409 7410 os2*) 7411 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7412 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7413 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7414 shrext_cmds=.dll 7415 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 7416 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 7417 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 7418 $ECHO EXPORTS >> $output_objdir/$libname.def~ 7419 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 7420 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 7421 emximp -o $lib $output_objdir/$libname.def' 7422 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 7423 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 7424 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 7425 $ECHO EXPORTS >> $output_objdir/$libname.def~ 7426 prefix_cmds="$SED"~ 7427 if test EXPORTS = "`$SED 1q $export_symbols`"; then 7428 prefix_cmds="$prefix_cmds -e 1d"; 7429 fi~ 7430 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 7431 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 7432 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 7433 emximp -o $lib $output_objdir/$libname.def' 7434 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 7435 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7436 _LT_TAGVAR(file_list_spec, $1)='@' 7437 ;; 7438 7439 interix[[3-9]]*) 7440 _LT_TAGVAR(hardcode_direct, $1)=no 7441 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7442 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7443 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7444 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7445 # Instead, shared libraries are loaded at an image base (0x10000000 by 7446 # default) and relocated if they conflict, which is a slow very memory 7447 # consuming and fragmenting process. To avoid this, we pick a random, 7448 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7449 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7450 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7451 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7452 ;; 7453 7454 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 7455 tmp_diet=no 7456 if test linux-dietlibc = "$host_os"; then 7457 case $cc_basename in 7458 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7459 esac 7460 fi 7461 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7462 && test no = "$tmp_diet" 7463 then 7464 tmp_addflag=' $pic_flag' 7465 tmp_sharedflag='-shared' 7466 case $cc_basename,$host_cpu in 7467 pgcc*) # Portland Group C compiler 7468 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 7469 tmp_addflag=' $pic_flag' 7470 ;; 7471 pgf77* | pgf90* | pgf95* | pgfortran*) 7472 # Portland Group f77 and f90 compilers 7473 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 7474 tmp_addflag=' $pic_flag -Mnomain' ;; 7475 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7476 tmp_addflag=' -i_dynamic' ;; 7477 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7478 tmp_addflag=' -i_dynamic -nofor_main' ;; 7479 ifc* | ifort*) # Intel Fortran compiler 7480 tmp_addflag=' -nofor_main' ;; 7481 lf95*) # Lahey Fortran 8.1 7482 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7483 tmp_sharedflag='--shared' ;; 7484 nagfor*) # NAGFOR 5.3 7485 tmp_sharedflag='-Wl,-shared' ;; 7486 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7487 tmp_sharedflag='-qmkshrobj' 7488 tmp_addflag= ;; 7489 nvcc*) # Cuda Compiler Driver 2.2 7490 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 7491 _LT_TAGVAR(compiler_needs_object, $1)=yes 7492 ;; 7493 esac 7494 case `$CC -V 2>&1 | sed 5q` in 7495 *Sun\ C*) # Sun C 5.9 7496 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 7497 _LT_TAGVAR(compiler_needs_object, $1)=yes 7498 tmp_sharedflag='-G' ;; 7499 *Sun\ F*) # Sun Fortran 8.3 7500 tmp_sharedflag='-G' ;; 7501 esac 7502 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7503 7504 if test yes = "$supports_anon_versioning"; then 7505 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7506 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7507 echo "local: *; };" >> $output_objdir/$libname.ver~ 7508 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 7509 fi 7510 7511 case $cc_basename in 7512 tcc*) 7513 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 7514 ;; 7515 xlf* | bgf* | bgxlf* | mpixlf*) 7516 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7517 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 7518 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7519 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 7520 if test yes = "$supports_anon_versioning"; then 7521 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7523 echo "local: *; };" >> $output_objdir/$libname.ver~ 7524 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7525 fi 7526 ;; 7527 esac 7528 else 7529 _LT_TAGVAR(ld_shlibs, $1)=no 7530 fi 7531 ;; 7532 7533 netbsd*) 7534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7535 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7536 wlarc= 7537 else 7538 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7539 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 7540 fi 7541 ;; 7542 7543 solaris*) 7544 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7545 _LT_TAGVAR(ld_shlibs, $1)=no 7546 cat <<_LT_EOF 1>&2 7547 7548*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7549*** create shared libraries on Solaris systems. Therefore, libtool 7550*** is disabling shared libraries support. We urge you to upgrade GNU 7551*** binutils to release 2.9.1 or newer. Another option is to modify 7552*** your PATH or compiler configuration so that the native linker is 7553*** used, and then restart. 7554 7555_LT_EOF 7556 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7557 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7558 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 7559 else 7560 _LT_TAGVAR(ld_shlibs, $1)=no 7561 fi 7562 ;; 7563 7564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7565 case `$LD -v 2>&1` in 7566 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 7567 _LT_TAGVAR(ld_shlibs, $1)=no 7568 cat <<_LT_EOF 1>&2 7569 7570*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 7571*** reliably create shared libraries on SCO systems. Therefore, libtool 7572*** is disabling shared libraries support. We urge you to upgrade GNU 7573*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7574*** your PATH or compiler configuration so that the native linker is 7575*** used, and then restart. 7576 7577_LT_EOF 7578 ;; 7579 *) 7580 # For security reasons, it is highly recommended that you always 7581 # use absolute paths for naming shared libraries, and exclude the 7582 # DT_RUNPATH tag from executables and libraries. But doing so 7583 # requires that you compile everything twice, which is a pain. 7584 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7585 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7586 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7587 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 7588 else 7589 _LT_TAGVAR(ld_shlibs, $1)=no 7590 fi 7591 ;; 7592 esac 7593 ;; 7594 7595 sunos4*) 7596 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7597 wlarc= 7598 _LT_TAGVAR(hardcode_direct, $1)=yes 7599 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7600 ;; 7601 7602 *) 7603 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7604 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7605 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 7606 else 7607 _LT_TAGVAR(ld_shlibs, $1)=no 7608 fi 7609 ;; 7610 esac 7611 7612 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 7613 runpath_var= 7614 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7615 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 7616 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7617 fi 7618 else 7619 # PORTME fill in a description of your system's linker (not GNU ld) 7620 case $host_os in 7621 aix3*) 7622 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7623 _LT_TAGVAR(always_export_symbols, $1)=yes 7624 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 7625 # Note: this linker hardcodes the directories in LIBPATH if there 7626 # are no directories specified by -L. 7627 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7628 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 7629 # Neither direct hardcoding nor static linking is supported with a 7630 # broken collect2. 7631 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7632 fi 7633 ;; 7634 7635 aix[[4-9]]*) 7636 if test ia64 = "$host_cpu"; then 7637 # On IA64, the linker does run time linking by default, so we don't 7638 # have to do anything special. 7639 aix_use_runtimelinking=no 7640 exp_sym_flag='-Bexport' 7641 no_entry_flag= 7642 else 7643 # If we're using GNU nm, then we don't want the "-C" option. 7644 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 7645 # Without the "-l" option, or with the "-B" option, AIX nm treats 7646 # weak defined symbols like other global defined symbols, whereas 7647 # GNU nm marks them as "W". 7648 # While the 'weak' keyword is ignored in the Export File, we need 7649 # it in the Import File for the 'aix-soname' feature, so we have 7650 # to replace the "-B" option with "-P" for AIX nm. 7651 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7652 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 7653 else 7654 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 7655 fi 7656 aix_use_runtimelinking=no 7657 7658 # Test if we are trying to use run time linking or normal 7659 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7660 # have runtime linking enabled, and use it for executables. 7661 # For shared libraries, we enable/disable runtime linking 7662 # depending on the kind of the shared library created - 7663 # when "with_aix_soname,aix_use_runtimelinking" is: 7664 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 7665 # "aix,yes" lib.so shared, rtl:yes, for executables 7666 # lib.a static archive 7667 # "both,no" lib.so.V(shr.o) shared, rtl:yes 7668 # lib.a(lib.so.V) shared, rtl:no, for executables 7669 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 7670 # lib.a(lib.so.V) shared, rtl:no 7671 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 7672 # lib.a static archive 7673 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7674 for ld_flag in $LDFLAGS; do 7675 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 7676 aix_use_runtimelinking=yes 7677 break 7678 fi 7679 done 7680 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 7681 # With aix-soname=svr4, we create the lib.so.V shared archives only, 7682 # so we don't have lib.a shared libs to link our executables. 7683 # We have to force runtime linking in this case. 7684 aix_use_runtimelinking=yes 7685 LDFLAGS="$LDFLAGS -Wl,-brtl" 7686 fi 7687 ;; 7688 esac 7689 7690 exp_sym_flag='-bexport' 7691 no_entry_flag='-bnoentry' 7692 fi 7693 7694 # When large executables or shared objects are built, AIX ld can 7695 # have problems creating the table of contents. If linking a library 7696 # or program results in "error TOC overflow" add -mminimal-toc to 7697 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7698 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7699 7700 _LT_TAGVAR(archive_cmds, $1)='' 7701 _LT_TAGVAR(hardcode_direct, $1)=yes 7702 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7703 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7704 _LT_TAGVAR(link_all_deplibs, $1)=yes 7705 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 7706 case $with_aix_soname,$aix_use_runtimelinking in 7707 aix,*) ;; # traditional, no import file 7708 svr4,* | *,yes) # use import file 7709 # The Import File defines what to hardcode. 7710 _LT_TAGVAR(hardcode_direct, $1)=no 7711 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7712 ;; 7713 esac 7714 7715 if test yes = "$GCC"; then 7716 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7717 # We only want to do this on AIX 4.2 and lower, the check 7718 # below for broken collect2 doesn't work under 4.3+ 7719 collect2name=`$CC -print-prog-name=collect2` 7720 if test -f "$collect2name" && 7721 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7722 then 7723 # We have reworked collect2 7724 : 7725 else 7726 # We have old collect2 7727 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7728 # It fails to find uninstalled libraries when the uninstalled 7729 # path is not listed in the libpath. Setting hardcode_minus_L 7730 # to unsupported forces relinking 7731 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7732 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7733 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7734 fi 7735 ;; 7736 esac 7737 shared_flag='-shared' 7738 if test yes = "$aix_use_runtimelinking"; then 7739 shared_flag="$shared_flag "'$wl-G' 7740 fi 7741 # Need to ensure runtime linking is disabled for the traditional 7742 # shared library, or the linker may eventually find shared libraries 7743 # /with/ Import File - we do not want to mix them. 7744 shared_flag_aix='-shared' 7745 shared_flag_svr4='-shared $wl-G' 7746 else 7747 # not using gcc 7748 if test ia64 = "$host_cpu"; then 7749 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7750 # chokes on -Wl,-G. The following line is correct: 7751 shared_flag='-G' 7752 else 7753 if test yes = "$aix_use_runtimelinking"; then 7754 shared_flag='$wl-G' 7755 else 7756 shared_flag='$wl-bM:SRE' 7757 fi 7758 shared_flag_aix='$wl-bM:SRE' 7759 shared_flag_svr4='$wl-G' 7760 fi 7761 fi 7762 7763 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 7764 # It seems that -bexpall does not export symbols beginning with 7765 # underscore (_), so it is better to generate a list of symbols to export. 7766 _LT_TAGVAR(always_export_symbols, $1)=yes 7767 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 7768 # Warning - without using the other runtime loading flags (-brtl), 7769 # -berok will link without error, but may produce a broken library. 7770 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 7771 # Determine the default libpath from the value encoded in an 7772 # empty executable. 7773 _LT_SYS_MODULE_PATH_AIX([$1]) 7774 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 7775 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 7776 else 7777 if test ia64 = "$host_cpu"; then 7778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 7779 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7780 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 7781 else 7782 # Determine the default libpath from the value encoded in an 7783 # empty executable. 7784 _LT_SYS_MODULE_PATH_AIX([$1]) 7785 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 7786 # Warning - without using the other run time loading flags, 7787 # -berok will link without error, but may produce a broken library. 7788 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 7789 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 7790 if test yes = "$with_gnu_ld"; then 7791 # We only use this code for GNU lds that support --whole-archive. 7792 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 7793 else 7794 # Exported symbols can be pulled into shared objects from archives 7795 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7796 fi 7797 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7798 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 7799 # -brtl affects multiple linker settings, -berok does not and is overridden later 7800 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 7801 if test svr4 != "$with_aix_soname"; then 7802 # This is similar to how AIX traditionally builds its shared libraries. 7803 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 7804 fi 7805 if test aix != "$with_aix_soname"; then 7806 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 7807 else 7808 # used by -dlpreopen to get the symbols 7809 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 7810 fi 7811 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 7812 fi 7813 fi 7814 ;; 7815 7816 amigaos*) 7817 case $host_cpu in 7818 powerpc) 7819 # see comment about AmigaOS4 .so support 7820 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7821 _LT_TAGVAR(archive_expsym_cmds, $1)='' 7822 ;; 7823 m68k) 7824 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 7825 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7826 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7827 ;; 7828 esac 7829 ;; 7830 7831 bsdi[[45]]*) 7832 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 7833 ;; 7834 7835 cygwin* | mingw* | pw32* | cegcc*) 7836 # When not using gcc, we currently assume that we are using 7837 # Microsoft Visual C++ or Intel C++ Compiler. 7838 # hardcode_libdir_flag_spec is actually meaningless, as there is 7839 # no search path for DLLs. 7840 case $cc_basename in 7841 cl* | icl*) 7842 # Native MSVC or ICC 7843 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 7844 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7845 _LT_TAGVAR(always_export_symbols, $1)=yes 7846 _LT_TAGVAR(file_list_spec, $1)='@' 7847 # Tell ltmain to make .lib files, not .a files. 7848 libext=lib 7849 # Tell ltmain to make .dll files, not .so files. 7850 shrext_cmds=.dll 7851 # FIXME: Setting linknames here is a bad hack. 7852 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 7853 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 7854 cp "$export_symbols" "$output_objdir/$soname.def"; 7855 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 7856 else 7857 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 7858 fi~ 7859 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 7860 linknames=' 7861 # The linker will not automatically build a static lib if we build a DLL. 7862 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7863 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7864 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 7865 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 7866 # Don't use ranlib 7867 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 7868 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 7869 lt_tool_outputfile="@TOOL_OUTPUT@"~ 7870 case $lt_outputfile in 7871 *.exe|*.EXE) ;; 7872 *) 7873 lt_outputfile=$lt_outputfile.exe 7874 lt_tool_outputfile=$lt_tool_outputfile.exe 7875 ;; 7876 esac~ 7877 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 7878 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 7879 $RM "$lt_outputfile.manifest"; 7880 fi' 7881 ;; 7882 *) 7883 # Assume MSVC and ICC wrapper 7884 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 7885 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7886 # Tell ltmain to make .lib files, not .a files. 7887 libext=lib 7888 # Tell ltmain to make .dll files, not .so files. 7889 shrext_cmds=.dll 7890 # FIXME: Setting linknames here is a bad hack. 7891 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 7892 # The linker will automatically build a .lib file if we build a DLL. 7893 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 7894 # FIXME: Should let the user specify the lib program. 7895 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 7896 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7897 ;; 7898 esac 7899 ;; 7900 7901 darwin* | rhapsody*) 7902 _LT_DARWIN_LINKER_FEATURES($1) 7903 ;; 7904 7905 dgux*) 7906 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7907 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7908 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7909 ;; 7910 7911 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7912 # support. Future versions do this automatically, but an explicit c++rt0.o 7913 # does not break anything, and helps significantly (at the cost of a little 7914 # extra space). 7915 freebsd2.2*) 7916 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7917 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7918 _LT_TAGVAR(hardcode_direct, $1)=yes 7919 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7920 ;; 7921 7922 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7923 freebsd2.*) 7924 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7925 _LT_TAGVAR(hardcode_direct, $1)=yes 7926 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7927 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7928 ;; 7929 7930 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7931 freebsd* | dragonfly*) 7932 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7933 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7934 _LT_TAGVAR(hardcode_direct, $1)=yes 7935 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7936 ;; 7937 7938 hpux9*) 7939 if test yes = "$GCC"; then 7940 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 7941 else 7942 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 7943 fi 7944 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 7945 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7946 _LT_TAGVAR(hardcode_direct, $1)=yes 7947 7948 # hardcode_minus_L: Not really in the search PATH, 7949 # but as the default location of the library. 7950 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7951 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7952 ;; 7953 7954 hpux10*) 7955 if test yes,no = "$GCC,$with_gnu_ld"; then 7956 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7957 else 7958 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7959 fi 7960 if test no = "$with_gnu_ld"; then 7961 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 7962 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7963 _LT_TAGVAR(hardcode_direct, $1)=yes 7964 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7965 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7966 # hardcode_minus_L: Not really in the search PATH, 7967 # but as the default location of the library. 7968 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7969 fi 7970 ;; 7971 7972 hpux11*) 7973 if test yes,no = "$GCC,$with_gnu_ld"; then 7974 case $host_cpu in 7975 hppa*64*) 7976 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 7977 ;; 7978 ia64*) 7979 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7980 ;; 7981 *) 7982 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7983 ;; 7984 esac 7985 else 7986 case $host_cpu in 7987 hppa*64*) 7988 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 7989 ;; 7990 ia64*) 7991 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7992 ;; 7993 *) 7994 m4_if($1, [], [ 7995 # Older versions of the 11.00 compiler do not understand -b yet 7996 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 7997 _LT_LINKER_OPTION([if $CC understands -b], 7998 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 7999 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 8000 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 8001 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 8002 ;; 8003 esac 8004 fi 8005 if test no = "$with_gnu_ld"; then 8006 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 8007 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8008 8009 case $host_cpu in 8010 hppa*64*|ia64*) 8011 _LT_TAGVAR(hardcode_direct, $1)=no 8012 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8013 ;; 8014 *) 8015 _LT_TAGVAR(hardcode_direct, $1)=yes 8016 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8017 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 8018 8019 # hardcode_minus_L: Not really in the search PATH, 8020 # but as the default location of the library. 8021 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8022 ;; 8023 esac 8024 fi 8025 ;; 8026 8027 irix5* | irix6* | nonstopux*) 8028 if test yes = "$GCC"; then 8029 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 8030 # Try to use the -exported_symbol ld option, if it does not 8031 # work, assume that -exports_file does not work either and 8032 # implicitly export all symbols. 8033 # This should be the same for all languages, so no per-tag cache variable. 8034 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 8035 [lt_cv_irix_exported_symbol], 8036 [save_LDFLAGS=$LDFLAGS 8037 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 8038 AC_LINK_IFELSE( 8039 [AC_LANG_SOURCE( 8040 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 8041 [C++], [[int foo (void) { return 0; }]], 8042 [Fortran 77], [[ 8043 subroutine foo 8044 end]], 8045 [Fortran], [[ 8046 subroutine foo 8047 end]])])], 8048 [lt_cv_irix_exported_symbol=yes], 8049 [lt_cv_irix_exported_symbol=no]) 8050 LDFLAGS=$save_LDFLAGS]) 8051 if test yes = "$lt_cv_irix_exported_symbol"; then 8052 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 8053 fi 8054 else 8055 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 8056 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 8057 fi 8058 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 8059 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8060 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8061 _LT_TAGVAR(inherit_rpath, $1)=yes 8062 _LT_TAGVAR(link_all_deplibs, $1)=yes 8063 ;; 8064 8065 linux*) 8066 case $cc_basename in 8067 tcc*) 8068 # Fabrice Bellard et al's Tiny C Compiler 8069 _LT_TAGVAR(ld_shlibs, $1)=yes 8070 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8071 ;; 8072 esac 8073 ;; 8074 8075 netbsd*) 8076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8077 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8078 else 8079 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8080 fi 8081 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8082 _LT_TAGVAR(hardcode_direct, $1)=yes 8083 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8084 ;; 8085 8086 newsos6) 8087 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8088 _LT_TAGVAR(hardcode_direct, $1)=yes 8089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8090 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8091 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8092 ;; 8093 8094 *nto* | *qnx*) 8095 ;; 8096 8097 openbsd* | bitrig*) 8098 if test -f /usr/libexec/ld.so; then 8099 _LT_TAGVAR(hardcode_direct, $1)=yes 8100 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8101 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8103 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8104 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 8105 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 8106 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 8107 else 8108 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8109 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 8110 fi 8111 else 8112 _LT_TAGVAR(ld_shlibs, $1)=no 8113 fi 8114 ;; 8115 8116 os2*) 8117 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8118 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8119 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8120 shrext_cmds=.dll 8121 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8122 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8123 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8124 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8125 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8126 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8127 emximp -o $lib $output_objdir/$libname.def' 8128 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8129 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8130 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8131 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8132 prefix_cmds="$SED"~ 8133 if test EXPORTS = "`$SED 1q $export_symbols`"; then 8134 prefix_cmds="$prefix_cmds -e 1d"; 8135 fi~ 8136 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 8137 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 8138 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8139 emximp -o $lib $output_objdir/$libname.def' 8140 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 8141 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8142 _LT_TAGVAR(file_list_spec, $1)='@' 8143 ;; 8144 8145 osf3*) 8146 if test yes = "$GCC"; then 8147 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 8148 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 8149 else 8150 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 8151 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 8152 fi 8153 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 8154 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8155 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8156 ;; 8157 8158 osf4* | osf5*) # as osf3* with the addition of -msym flag 8159 if test yes = "$GCC"; then 8160 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 8161 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 8162 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8163 else 8164 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 8165 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 8166 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 8167 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 8168 8169 # Both c and cxx compiler support -rpath directly 8170 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8171 fi 8172 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 8173 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8174 ;; 8175 8176 solaris*) 8177 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 8178 if test yes = "$GCC"; then 8179 wlarc='$wl' 8180 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 8181 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8182 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8183 else 8184 case `$CC -V 2>&1` in 8185 *"Compilers 5.0"*) 8186 wlarc='' 8187 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 8188 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8189 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8190 ;; 8191 *) 8192 wlarc='$wl' 8193 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8194 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8195 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8196 ;; 8197 esac 8198 fi 8199 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8200 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8201 case $host_os in 8202 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8203 *) 8204 # The compiler driver will combine and reorder linker options, 8205 # but understands '-z linker_flag'. GCC discards it without '$wl', 8206 # but is careful enough not to reorder. 8207 # Supported since Solaris 2.6 (maybe 2.5.1?) 8208 if test yes = "$GCC"; then 8209 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 8210 else 8211 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 8212 fi 8213 ;; 8214 esac 8215 _LT_TAGVAR(link_all_deplibs, $1)=yes 8216 ;; 8217 8218 sunos4*) 8219 if test sequent = "$host_vendor"; then 8220 # Use $CC to link under sequent, because it throws in some extra .o 8221 # files that make .init and .fini sections work. 8222 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8223 else 8224 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8225 fi 8226 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8227 _LT_TAGVAR(hardcode_direct, $1)=yes 8228 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8229 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8230 ;; 8231 8232 sysv4) 8233 case $host_vendor in 8234 sni) 8235 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8236 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 8237 ;; 8238 siemens) 8239 ## LD is ld it makes a PLAMLIB 8240 ## CC just makes a GrossModule. 8241 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8242 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 8243 _LT_TAGVAR(hardcode_direct, $1)=no 8244 ;; 8245 motorola) 8246 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8247 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 8248 ;; 8249 esac 8250 runpath_var='LD_RUN_PATH' 8251 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8252 ;; 8253 8254 sysv4.3*) 8255 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8256 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8257 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 8258 ;; 8259 8260 sysv4*MP*) 8261 if test -d /usr/nec; then 8262 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8263 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8264 runpath_var=LD_RUN_PATH 8265 hardcode_runpath_var=yes 8266 _LT_TAGVAR(ld_shlibs, $1)=yes 8267 fi 8268 ;; 8269 8270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 8271 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 8272 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8273 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8274 runpath_var='LD_RUN_PATH' 8275 8276 if test yes = "$GCC"; then 8277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8278 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8279 else 8280 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8281 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8282 fi 8283 ;; 8284 8285 sysv5* | sco3.2v5* | sco5v6*) 8286 # Note: We CANNOT use -z defs as we might desire, because we do not 8287 # link with -lc, and that would cause any symbols used from libc to 8288 # always be unresolved, which means just about no library would 8289 # ever link correctly. If we're not using GNU ld we use -z text 8290 # though, which does catch some bad symbols but isn't as heavy-handed 8291 # as -z defs. 8292 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 8293 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 8294 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8295 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8296 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 8297 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8298 _LT_TAGVAR(link_all_deplibs, $1)=yes 8299 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 8300 runpath_var='LD_RUN_PATH' 8301 8302 if test yes = "$GCC"; then 8303 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8304 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8305 else 8306 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8307 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8308 fi 8309 ;; 8310 8311 uts4*) 8312 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8313 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8314 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8315 ;; 8316 8317 *) 8318 _LT_TAGVAR(ld_shlibs, $1)=no 8319 ;; 8320 esac 8321 8322 if test sni = "$host_vendor"; then 8323 case $host in 8324 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8325 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 8326 ;; 8327 esac 8328 fi 8329 fi 8330]) 8331AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 8332test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 8333 8334_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 8335 8336_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 8337_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 8338_LT_DECL([], [extract_expsyms_cmds], [2], 8339 [The commands to extract the exported symbol list from a shared archive]) 8340 8341# 8342# Do we need to explicitly link libc? 8343# 8344case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 8345x|xyes) 8346 # Assume -lc should be added 8347 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 8348 8349 if test yes,yes = "$GCC,$enable_shared"; then 8350 case $_LT_TAGVAR(archive_cmds, $1) in 8351 *'~'*) 8352 # FIXME: we may have to deal with multi-command sequences. 8353 ;; 8354 '$CC '*) 8355 # Test whether the compiler implicitly links with -lc since on some 8356 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8357 # to ld, don't add -lc before -lgcc. 8358 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 8359 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 8360 [$RM conftest* 8361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8362 8363 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 8364 soname=conftest 8365 lib=conftest 8366 libobjs=conftest.$ac_objext 8367 deplibs= 8368 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 8369 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 8370 compiler_flags=-v 8371 linker_flags=-v 8372 verstring= 8373 output_objdir=. 8374 libname=conftest 8375 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 8376 _LT_TAGVAR(allow_undefined_flag, $1)= 8377 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 8378 then 8379 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8380 else 8381 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 8382 fi 8383 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 8384 else 8385 cat conftest.err 1>&5 8386 fi 8387 $RM conftest* 8388 ]) 8389 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 8390 ;; 8391 esac 8392 fi 8393 ;; 8394esac 8395 8396_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 8397 [Whether or not to add -lc for building shared libraries]) 8398_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 8399 [enable_shared_with_static_runtimes], [0], 8400 [Whether or not to disallow shared libs when runtime libs are static]) 8401_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 8402 [Compiler flag to allow reflexive dlopens]) 8403_LT_TAGDECL([], [whole_archive_flag_spec], [1], 8404 [Compiler flag to generate shared objects directly from archives]) 8405_LT_TAGDECL([], [compiler_needs_object], [1], 8406 [Whether the compiler copes with passing no objects directly]) 8407_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 8408 [Create an old-style archive from a shared archive]) 8409_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 8410 [Create a temporary old-style archive to link instead of a shared archive]) 8411_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 8412_LT_TAGDECL([], [archive_expsym_cmds], [2]) 8413_LT_TAGDECL([], [module_cmds], [2], 8414 [Commands used to build a loadable module if different from building 8415 a shared archive.]) 8416_LT_TAGDECL([], [module_expsym_cmds], [2]) 8417_LT_TAGDECL([], [with_gnu_ld], [1], 8418 [Whether we are building with GNU ld or not]) 8419_LT_TAGDECL([], [allow_undefined_flag], [1], 8420 [Flag that allows shared libraries with undefined symbols to be built]) 8421_LT_TAGDECL([], [no_undefined_flag], [1], 8422 [Flag that enforces no undefined symbols]) 8423_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 8424 [Flag to hardcode $libdir into a binary during linking. 8425 This must work even if $libdir does not exist]) 8426_LT_TAGDECL([], [hardcode_libdir_separator], [1], 8427 [Whether we need a single "-rpath" flag with a separated argument]) 8428_LT_TAGDECL([], [hardcode_direct], [0], 8429 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 8430 DIR into the resulting binary]) 8431_LT_TAGDECL([], [hardcode_direct_absolute], [0], 8432 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 8433 DIR into the resulting binary and the resulting library dependency is 8434 "absolute", i.e impossible to change by setting $shlibpath_var if the 8435 library is relocated]) 8436_LT_TAGDECL([], [hardcode_minus_L], [0], 8437 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 8438 into the resulting binary]) 8439_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 8440 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 8441 into the resulting binary]) 8442_LT_TAGDECL([], [hardcode_automatic], [0], 8443 [Set to "yes" if building a shared library automatically hardcodes DIR 8444 into the library and all subsequent libraries and executables linked 8445 against it]) 8446_LT_TAGDECL([], [inherit_rpath], [0], 8447 [Set to yes if linker adds runtime paths of dependent libraries 8448 to runtime path list]) 8449_LT_TAGDECL([], [link_all_deplibs], [0], 8450 [Whether libtool must link a program against all its dependency libraries]) 8451_LT_TAGDECL([], [always_export_symbols], [0], 8452 [Set to "yes" if exported symbols are required]) 8453_LT_TAGDECL([], [export_symbols_cmds], [2], 8454 [The commands to list exported symbols]) 8455_LT_TAGDECL([], [exclude_expsyms], [1], 8456 [Symbols that should not be listed in the preloaded symbols]) 8457_LT_TAGDECL([], [include_expsyms], [1], 8458 [Symbols that must always be exported]) 8459_LT_TAGDECL([], [prelink_cmds], [2], 8460 [Commands necessary for linking programs (against libraries) with templates]) 8461_LT_TAGDECL([], [postlink_cmds], [2], 8462 [Commands necessary for finishing linking programs]) 8463_LT_TAGDECL([], [file_list_spec], [1], 8464 [Specify filename containing input files]) 8465dnl FIXME: Not yet implemented 8466dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 8467dnl [Compiler flag to generate thread safe objects]) 8468])# _LT_LINKER_SHLIBS 8469 8470 8471# _LT_LANG_C_CONFIG([TAG]) 8472# ------------------------ 8473# Ensure that the configuration variables for a C compiler are suitably 8474# defined. These variables are subsequently used by _LT_CONFIG to write 8475# the compiler configuration to 'libtool'. 8476m4_defun([_LT_LANG_C_CONFIG], 8477[m4_require([_LT_DECL_EGREP])dnl 8478lt_save_CC=$CC 8479AC_LANG_PUSH(C) 8480 8481# Source file extension for C test sources. 8482ac_ext=c 8483 8484# Object file extension for compiled C test sources. 8485objext=o 8486_LT_TAGVAR(objext, $1)=$objext 8487 8488# Code to be used in simple compile tests 8489lt_simple_compile_test_code="int some_variable = 0;" 8490 8491# Code to be used in simple link tests 8492lt_simple_link_test_code='int main(){return(0);}' 8493 8494_LT_TAG_COMPILER 8495# Save the default compiler, since it gets overwritten when the other 8496# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8497compiler_DEFAULT=$CC 8498 8499# save warnings/boilerplate of simple test code 8500_LT_COMPILER_BOILERPLATE 8501_LT_LINKER_BOILERPLATE 8502 8503if test -n "$compiler"; then 8504 _LT_COMPILER_NO_RTTI($1) 8505 _LT_COMPILER_PIC($1) 8506 _LT_COMPILER_C_O($1) 8507 _LT_COMPILER_FILE_LOCKS($1) 8508 _LT_LINKER_SHLIBS($1) 8509 _LT_SYS_DYNAMIC_LINKER($1) 8510 _LT_LINKER_HARDCODE_LIBPATH($1) 8511 LT_SYS_DLOPEN_SELF 8512 _LT_CMD_STRIPLIB 8513 8514 # Report what library types will actually be built 8515 AC_MSG_CHECKING([if libtool supports shared libraries]) 8516 AC_MSG_RESULT([$can_build_shared]) 8517 8518 AC_MSG_CHECKING([whether to build shared libraries]) 8519 test no = "$can_build_shared" && enable_shared=no 8520 8521 # On AIX, shared libraries and static libraries use the same namespace, and 8522 # are all built from PIC. 8523 case $host_os in 8524 aix3*) 8525 test yes = "$enable_shared" && enable_static=no 8526 if test -n "$RANLIB"; then 8527 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8528 postinstall_cmds='$RANLIB $lib' 8529 fi 8530 ;; 8531 8532 aix[[4-9]]*) 8533 if test ia64 != "$host_cpu"; then 8534 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 8535 yes,aix,yes) ;; # shared object as lib.so file only 8536 yes,svr4,*) ;; # shared object as lib.so archive member only 8537 yes,*) enable_static=no ;; # shared object in lib.a archive as well 8538 esac 8539 fi 8540 ;; 8541 esac 8542 AC_MSG_RESULT([$enable_shared]) 8543 8544 AC_MSG_CHECKING([whether to build static libraries]) 8545 # Make sure either enable_shared or enable_static is yes. 8546 test yes = "$enable_shared" || enable_static=yes 8547 AC_MSG_RESULT([$enable_static]) 8548 8549 _LT_CONFIG($1) 8550fi 8551AC_LANG_POP 8552CC=$lt_save_CC 8553])# _LT_LANG_C_CONFIG 8554 8555 8556# _LT_LANG_CXX_CONFIG([TAG]) 8557# -------------------------- 8558# Ensure that the configuration variables for a C++ compiler are suitably 8559# defined. These variables are subsequently used by _LT_CONFIG to write 8560# the compiler configuration to 'libtool'. 8561m4_defun([_LT_LANG_CXX_CONFIG], 8562[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8563m4_require([_LT_DECL_EGREP])dnl 8564m4_require([_LT_PATH_MANIFEST_TOOL])dnl 8565if test -n "$CXX" && ( test no != "$CXX" && 8566 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 8567 (test g++ != "$CXX"))); then 8568 AC_PROG_CXXCPP 8569else 8570 _lt_caught_CXX_error=yes 8571fi 8572 8573AC_LANG_PUSH(C++) 8574_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8575_LT_TAGVAR(allow_undefined_flag, $1)= 8576_LT_TAGVAR(always_export_symbols, $1)=no 8577_LT_TAGVAR(archive_expsym_cmds, $1)= 8578_LT_TAGVAR(compiler_needs_object, $1)=no 8579_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8580_LT_TAGVAR(hardcode_direct, $1)=no 8581_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8582_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8583_LT_TAGVAR(hardcode_libdir_separator, $1)= 8584_LT_TAGVAR(hardcode_minus_L, $1)=no 8585_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 8586_LT_TAGVAR(hardcode_automatic, $1)=no 8587_LT_TAGVAR(inherit_rpath, $1)=no 8588_LT_TAGVAR(module_cmds, $1)= 8589_LT_TAGVAR(module_expsym_cmds, $1)= 8590_LT_TAGVAR(link_all_deplibs, $1)=unknown 8591_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8592_LT_TAGVAR(reload_flag, $1)=$reload_flag 8593_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8594_LT_TAGVAR(no_undefined_flag, $1)= 8595_LT_TAGVAR(whole_archive_flag_spec, $1)= 8596_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8597 8598# Source file extension for C++ test sources. 8599ac_ext=cpp 8600 8601# Object file extension for compiled C++ test sources. 8602objext=o 8603_LT_TAGVAR(objext, $1)=$objext 8604 8605# No sense in running all these tests if we already determined that 8606# the CXX compiler isn't working. Some variables (like enable_shared) 8607# are currently assumed to apply to all compilers on this platform, 8608# and will be corrupted by setting them based on a non-working compiler. 8609if test yes != "$_lt_caught_CXX_error"; then 8610 # Code to be used in simple compile tests 8611 lt_simple_compile_test_code="int some_variable = 0;" 8612 8613 # Code to be used in simple link tests 8614 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 8615 8616 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8617 _LT_TAG_COMPILER 8618 8619 # save warnings/boilerplate of simple test code 8620 _LT_COMPILER_BOILERPLATE 8621 _LT_LINKER_BOILERPLATE 8622 8623 # Allow CC to be a program name with arguments. 8624 lt_save_CC=$CC 8625 lt_save_CFLAGS=$CFLAGS 8626 lt_save_LD=$LD 8627 lt_save_GCC=$GCC 8628 GCC=$GXX 8629 lt_save_with_gnu_ld=$with_gnu_ld 8630 lt_save_path_LD=$lt_cv_path_LD 8631 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 8632 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 8633 else 8634 $as_unset lt_cv_prog_gnu_ld 8635 fi 8636 if test -n "${lt_cv_path_LDCXX+set}"; then 8637 lt_cv_path_LD=$lt_cv_path_LDCXX 8638 else 8639 $as_unset lt_cv_path_LD 8640 fi 8641 test -z "${LDCXX+set}" || LD=$LDCXX 8642 CC=${CXX-"c++"} 8643 CFLAGS=$CXXFLAGS 8644 compiler=$CC 8645 _LT_TAGVAR(compiler, $1)=$CC 8646 _LT_CC_BASENAME([$compiler]) 8647 8648 if test -n "$compiler"; then 8649 # We don't want -fno-exception when compiling C++ code, so set the 8650 # no_builtin_flag separately 8651 if test yes = "$GXX"; then 8652 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 8653 else 8654 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 8655 fi 8656 8657 if test yes = "$GXX"; then 8658 # Set up default GNU C++ configuration 8659 8660 LT_PATH_LD 8661 8662 # Check if GNU C++ uses GNU ld as the underlying linker, since the 8663 # archiving commands below assume that GNU ld is being used. 8664 if test yes = "$with_gnu_ld"; then 8665 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 8666 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8667 8668 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8669 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 8670 8671 # If archive_cmds runs LD, not CC, wlarc should be empty 8672 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 8673 # investigate it a little bit more. (MM) 8674 wlarc='$wl' 8675 8676 # ancient GNU ld didn't support --whole-archive et. al. 8677 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 8678 $GREP 'no-whole-archive' > /dev/null; then 8679 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8680 else 8681 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8682 fi 8683 else 8684 with_gnu_ld=no 8685 wlarc= 8686 8687 # A generic and very simple default shared library creation 8688 # command for GNU C++ for the case where it uses the native 8689 # linker, instead of GNU ld. If possible, this setting should 8690 # overridden to take advantage of the native linker features on 8691 # the platform it is being used on. 8692 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 8693 fi 8694 8695 # Commands to make compiler produce verbose output that lists 8696 # what "hidden" libraries, object files and flags are used when 8697 # linking a shared library. 8698 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 8699 8700 else 8701 GXX=no 8702 with_gnu_ld=no 8703 wlarc= 8704 fi 8705 8706 # PORTME: fill in a description of your system's C++ link characteristics 8707 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 8708 _LT_TAGVAR(ld_shlibs, $1)=yes 8709 case $host_os in 8710 aix3*) 8711 # FIXME: insert proper C++ library support 8712 _LT_TAGVAR(ld_shlibs, $1)=no 8713 ;; 8714 aix[[4-9]]*) 8715 if test ia64 = "$host_cpu"; then 8716 # On IA64, the linker does run time linking by default, so we don't 8717 # have to do anything special. 8718 aix_use_runtimelinking=no 8719 exp_sym_flag='-Bexport' 8720 no_entry_flag= 8721 else 8722 aix_use_runtimelinking=no 8723 8724 # Test if we are trying to use run time linking or normal 8725 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8726 # have runtime linking enabled, and use it for executables. 8727 # For shared libraries, we enable/disable runtime linking 8728 # depending on the kind of the shared library created - 8729 # when "with_aix_soname,aix_use_runtimelinking" is: 8730 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 8731 # "aix,yes" lib.so shared, rtl:yes, for executables 8732 # lib.a static archive 8733 # "both,no" lib.so.V(shr.o) shared, rtl:yes 8734 # lib.a(lib.so.V) shared, rtl:no, for executables 8735 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 8736 # lib.a(lib.so.V) shared, rtl:no 8737 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 8738 # lib.a static archive 8739 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 8740 for ld_flag in $LDFLAGS; do 8741 case $ld_flag in 8742 *-brtl*) 8743 aix_use_runtimelinking=yes 8744 break 8745 ;; 8746 esac 8747 done 8748 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 8749 # With aix-soname=svr4, we create the lib.so.V shared archives only, 8750 # so we don't have lib.a shared libs to link our executables. 8751 # We have to force runtime linking in this case. 8752 aix_use_runtimelinking=yes 8753 LDFLAGS="$LDFLAGS -Wl,-brtl" 8754 fi 8755 ;; 8756 esac 8757 8758 exp_sym_flag='-bexport' 8759 no_entry_flag='-bnoentry' 8760 fi 8761 8762 # When large executables or shared objects are built, AIX ld can 8763 # have problems creating the table of contents. If linking a library 8764 # or program results in "error TOC overflow" add -mminimal-toc to 8765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8767 8768 _LT_TAGVAR(archive_cmds, $1)='' 8769 _LT_TAGVAR(hardcode_direct, $1)=yes 8770 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8771 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8772 _LT_TAGVAR(link_all_deplibs, $1)=yes 8773 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 8774 case $with_aix_soname,$aix_use_runtimelinking in 8775 aix,*) ;; # no import file 8776 svr4,* | *,yes) # use import file 8777 # The Import File defines what to hardcode. 8778 _LT_TAGVAR(hardcode_direct, $1)=no 8779 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 8780 ;; 8781 esac 8782 8783 if test yes = "$GXX"; then 8784 case $host_os in aix4.[[012]]|aix4.[[012]].*) 8785 # We only want to do this on AIX 4.2 and lower, the check 8786 # below for broken collect2 doesn't work under 4.3+ 8787 collect2name=`$CC -print-prog-name=collect2` 8788 if test -f "$collect2name" && 8789 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8790 then 8791 # We have reworked collect2 8792 : 8793 else 8794 # We have old collect2 8795 _LT_TAGVAR(hardcode_direct, $1)=unsupported 8796 # It fails to find uninstalled libraries when the uninstalled 8797 # path is not listed in the libpath. Setting hardcode_minus_L 8798 # to unsupported forces relinking 8799 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8800 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8801 _LT_TAGVAR(hardcode_libdir_separator, $1)= 8802 fi 8803 esac 8804 shared_flag='-shared' 8805 if test yes = "$aix_use_runtimelinking"; then 8806 shared_flag=$shared_flag' $wl-G' 8807 fi 8808 # Need to ensure runtime linking is disabled for the traditional 8809 # shared library, or the linker may eventually find shared libraries 8810 # /with/ Import File - we do not want to mix them. 8811 shared_flag_aix='-shared' 8812 shared_flag_svr4='-shared $wl-G' 8813 else 8814 # not using gcc 8815 if test ia64 = "$host_cpu"; then 8816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8817 # chokes on -Wl,-G. The following line is correct: 8818 shared_flag='-G' 8819 else 8820 if test yes = "$aix_use_runtimelinking"; then 8821 shared_flag='$wl-G' 8822 else 8823 shared_flag='$wl-bM:SRE' 8824 fi 8825 shared_flag_aix='$wl-bM:SRE' 8826 shared_flag_svr4='$wl-G' 8827 fi 8828 fi 8829 8830 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 8831 # It seems that -bexpall does not export symbols beginning with 8832 # underscore (_), so it is better to generate a list of symbols to 8833 # export. 8834 _LT_TAGVAR(always_export_symbols, $1)=yes 8835 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 8836 # Warning - without using the other runtime loading flags (-brtl), 8837 # -berok will link without error, but may produce a broken library. 8838 # The "-G" linker flag allows undefined symbols. 8839 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 8840 # Determine the default libpath from the value encoded in an empty 8841 # executable. 8842 _LT_SYS_MODULE_PATH_AIX([$1]) 8843 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 8844 8845 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 8846 else 8847 if test ia64 = "$host_cpu"; then 8848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 8849 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 8850 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 8851 else 8852 # Determine the default libpath from the value encoded in an 8853 # empty executable. 8854 _LT_SYS_MODULE_PATH_AIX([$1]) 8855 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 8856 # Warning - without using the other run time loading flags, 8857 # -berok will link without error, but may produce a broken library. 8858 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 8859 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 8860 if test yes = "$with_gnu_ld"; then 8861 # We only use this code for GNU lds that support --whole-archive. 8862 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 8863 else 8864 # Exported symbols can be pulled into shared objects from archives 8865 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 8866 fi 8867 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 8868 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 8869 # -brtl affects multiple linker settings, -berok does not and is overridden later 8870 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 8871 if test svr4 != "$with_aix_soname"; then 8872 # This is similar to how AIX traditionally builds its shared 8873 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 8874 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 8875 fi 8876 if test aix != "$with_aix_soname"; then 8877 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 8878 else 8879 # used by -dlpreopen to get the symbols 8880 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 8881 fi 8882 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 8883 fi 8884 fi 8885 ;; 8886 8887 beos*) 8888 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8889 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8890 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8891 # support --undefined. This deserves some investigation. FIXME 8892 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8893 else 8894 _LT_TAGVAR(ld_shlibs, $1)=no 8895 fi 8896 ;; 8897 8898 chorus*) 8899 case $cc_basename in 8900 *) 8901 # FIXME: insert proper C++ library support 8902 _LT_TAGVAR(ld_shlibs, $1)=no 8903 ;; 8904 esac 8905 ;; 8906 8907 cygwin* | mingw* | pw32* | cegcc*) 8908 case $GXX,$cc_basename in 8909 ,cl* | no,cl* | ,icl* | no,icl*) 8910 # Native MSVC or ICC 8911 # hardcode_libdir_flag_spec is actually meaningless, as there is 8912 # no search path for DLLs. 8913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 8914 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8915 _LT_TAGVAR(always_export_symbols, $1)=yes 8916 _LT_TAGVAR(file_list_spec, $1)='@' 8917 # Tell ltmain to make .lib files, not .a files. 8918 libext=lib 8919 # Tell ltmain to make .dll files, not .so files. 8920 shrext_cmds=.dll 8921 # FIXME: Setting linknames here is a bad hack. 8922 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 8923 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 8924 cp "$export_symbols" "$output_objdir/$soname.def"; 8925 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 8926 else 8927 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 8928 fi~ 8929 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8930 linknames=' 8931 # The linker will not automatically build a static lib if we build a DLL. 8932 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 8933 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8934 # Don't use ranlib 8935 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 8936 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 8937 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8938 case $lt_outputfile in 8939 *.exe|*.EXE) ;; 8940 *) 8941 lt_outputfile=$lt_outputfile.exe 8942 lt_tool_outputfile=$lt_tool_outputfile.exe 8943 ;; 8944 esac~ 8945 func_to_tool_file "$lt_outputfile"~ 8946 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 8947 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8948 $RM "$lt_outputfile.manifest"; 8949 fi' 8950 ;; 8951 *) 8952 # g++ 8953 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 8954 # as there is no search path for DLLs. 8955 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8956 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 8957 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8958 _LT_TAGVAR(always_export_symbols, $1)=no 8959 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8960 8961 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8962 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8963 # If the export-symbols file already is a .def file, use it as 8964 # is; otherwise, prepend EXPORTS... 8965 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 8966 cp $export_symbols $output_objdir/$soname.def; 8967 else 8968 echo EXPORTS > $output_objdir/$soname.def; 8969 cat $export_symbols >> $output_objdir/$soname.def; 8970 fi~ 8971 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8972 else 8973 _LT_TAGVAR(ld_shlibs, $1)=no 8974 fi 8975 ;; 8976 esac 8977 ;; 8978 darwin* | rhapsody*) 8979 _LT_DARWIN_LINKER_FEATURES($1) 8980 ;; 8981 8982 os2*) 8983 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8984 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8985 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8986 shrext_cmds=.dll 8987 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8988 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8989 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8990 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8991 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8992 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8993 emximp -o $lib $output_objdir/$libname.def' 8994 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8995 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8996 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8997 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8998 prefix_cmds="$SED"~ 8999 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9000 prefix_cmds="$prefix_cmds -e 1d"; 9001 fi~ 9002 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9003 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9004 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9005 emximp -o $lib $output_objdir/$libname.def' 9006 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9007 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 9008 _LT_TAGVAR(file_list_spec, $1)='@' 9009 ;; 9010 9011 dgux*) 9012 case $cc_basename in 9013 ec++*) 9014 # FIXME: insert proper C++ library support 9015 _LT_TAGVAR(ld_shlibs, $1)=no 9016 ;; 9017 ghcx*) 9018 # Green Hills C++ Compiler 9019 # FIXME: insert proper C++ library support 9020 _LT_TAGVAR(ld_shlibs, $1)=no 9021 ;; 9022 *) 9023 # FIXME: insert proper C++ library support 9024 _LT_TAGVAR(ld_shlibs, $1)=no 9025 ;; 9026 esac 9027 ;; 9028 9029 freebsd2.*) 9030 # C++ shared libraries reported to be fairly broken before 9031 # switch to ELF 9032 _LT_TAGVAR(ld_shlibs, $1)=no 9033 ;; 9034 9035 freebsd-elf*) 9036 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9037 ;; 9038 9039 freebsd* | dragonfly*) 9040 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 9041 # conventions 9042 _LT_TAGVAR(ld_shlibs, $1)=yes 9043 ;; 9044 9045 haiku*) 9046 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9047 _LT_TAGVAR(link_all_deplibs, $1)=yes 9048 ;; 9049 9050 hpux9*) 9051 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 9052 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9053 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9054 _LT_TAGVAR(hardcode_direct, $1)=yes 9055 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 9056 # but as the default 9057 # location of the library. 9058 9059 case $cc_basename in 9060 CC*) 9061 # FIXME: insert proper C++ library support 9062 _LT_TAGVAR(ld_shlibs, $1)=no 9063 ;; 9064 aCC*) 9065 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9066 # Commands to make compiler produce verbose output that lists 9067 # what "hidden" libraries, object files and flags are used when 9068 # linking a shared library. 9069 # 9070 # There doesn't appear to be a way to prevent this compiler from 9071 # explicitly linking system object files so we need to strip them 9072 # from the output so that they don't get included in the library 9073 # dependencies. 9074 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 9075 ;; 9076 *) 9077 if test yes = "$GXX"; then 9078 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9079 else 9080 # FIXME: insert proper C++ library support 9081 _LT_TAGVAR(ld_shlibs, $1)=no 9082 fi 9083 ;; 9084 esac 9085 ;; 9086 9087 hpux10*|hpux11*) 9088 if test no = "$with_gnu_ld"; then 9089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 9090 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9091 9092 case $host_cpu in 9093 hppa*64*|ia64*) 9094 ;; 9095 *) 9096 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9097 ;; 9098 esac 9099 fi 9100 case $host_cpu in 9101 hppa*64*|ia64*) 9102 _LT_TAGVAR(hardcode_direct, $1)=no 9103 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9104 ;; 9105 *) 9106 _LT_TAGVAR(hardcode_direct, $1)=yes 9107 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 9108 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 9109 # but as the default 9110 # location of the library. 9111 ;; 9112 esac 9113 9114 case $cc_basename in 9115 CC*) 9116 # FIXME: insert proper C++ library support 9117 _LT_TAGVAR(ld_shlibs, $1)=no 9118 ;; 9119 aCC*) 9120 case $host_cpu in 9121 hppa*64*) 9122 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9123 ;; 9124 ia64*) 9125 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9126 ;; 9127 *) 9128 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9129 ;; 9130 esac 9131 # Commands to make compiler produce verbose output that lists 9132 # what "hidden" libraries, object files and flags are used when 9133 # linking a shared library. 9134 # 9135 # There doesn't appear to be a way to prevent this compiler from 9136 # explicitly linking system object files so we need to strip them 9137 # from the output so that they don't get included in the library 9138 # dependencies. 9139 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 9140 ;; 9141 *) 9142 if test yes = "$GXX"; then 9143 if test no = "$with_gnu_ld"; then 9144 case $host_cpu in 9145 hppa*64*) 9146 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9147 ;; 9148 ia64*) 9149 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9150 ;; 9151 *) 9152 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9153 ;; 9154 esac 9155 fi 9156 else 9157 # FIXME: insert proper C++ library support 9158 _LT_TAGVAR(ld_shlibs, $1)=no 9159 fi 9160 ;; 9161 esac 9162 ;; 9163 9164 interix[[3-9]]*) 9165 _LT_TAGVAR(hardcode_direct, $1)=no 9166 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9167 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 9168 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9170 # Instead, shared libraries are loaded at an image base (0x10000000 by 9171 # default) and relocated if they conflict, which is a slow very memory 9172 # consuming and fragmenting process. To avoid this, we pick a random, 9173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9174 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9175 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9176 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9177 ;; 9178 irix5* | irix6*) 9179 case $cc_basename in 9180 CC*) 9181 # SGI C++ 9182 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9183 9184 # Archives containing C++ object files must be created using 9185 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 9186 # necessary to make sure instantiated templates are included 9187 # in the archive. 9188 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 9189 ;; 9190 *) 9191 if test yes = "$GXX"; then 9192 if test no = "$with_gnu_ld"; then 9193 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9194 else 9195 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 9196 fi 9197 fi 9198 _LT_TAGVAR(link_all_deplibs, $1)=yes 9199 ;; 9200 esac 9201 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9202 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9203 _LT_TAGVAR(inherit_rpath, $1)=yes 9204 ;; 9205 9206 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9207 case $cc_basename in 9208 KCC*) 9209 # Kuck and Associates, Inc. (KAI) C++ Compiler 9210 9211 # KCC will only create a shared library if the output file 9212 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9213 # to its proper name (with version) after linking. 9214 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 9215 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 9216 # Commands to make compiler produce verbose output that lists 9217 # what "hidden" libraries, object files and flags are used when 9218 # linking a shared library. 9219 # 9220 # There doesn't appear to be a way to prevent this compiler from 9221 # explicitly linking system object files so we need to strip them 9222 # from the output so that they don't get included in the library 9223 # dependencies. 9224 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 9225 9226 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 9227 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 9228 9229 # Archives containing C++ object files must be created using 9230 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9231 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 9232 ;; 9233 icpc* | ecpc* ) 9234 # Intel C++ 9235 with_gnu_ld=yes 9236 # version 8.0 and above of icpc choke on multiply defined symbols 9237 # if we add $predep_objects and $postdep_objects, however 7.1 and 9238 # earlier do not add the objects themselves. 9239 case `$CC -V 2>&1` in 9240 *"Version 7."*) 9241 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 9242 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9243 ;; 9244 *) # Version 8.0 or newer 9245 tmp_idyn= 9246 case $host_cpu in 9247 ia64*) tmp_idyn=' -i_dynamic';; 9248 esac 9249 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9250 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9251 ;; 9252 esac 9253 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9254 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 9255 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 9256 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 9257 ;; 9258 pgCC* | pgcpp*) 9259 # Portland Group C++ compiler 9260 case `$CC -V` in 9261 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 9262 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 9263 rm -rf $tpldir~ 9264 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 9265 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 9266 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 9267 rm -rf $tpldir~ 9268 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 9269 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 9270 $RANLIB $oldlib' 9271 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 9272 rm -rf $tpldir~ 9273 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 9274 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 9275 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 9276 rm -rf $tpldir~ 9277 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 9278 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9279 ;; 9280 *) # Version 6 and above use weak symbols 9281 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 9282 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9283 ;; 9284 esac 9285 9286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 9287 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 9288 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9289 ;; 9290 cxx*) 9291 # Compaq C++ 9292 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 9293 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 9294 9295 runpath_var=LD_RUN_PATH 9296 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 9297 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9298 9299 # Commands to make compiler produce verbose output that lists 9300 # what "hidden" libraries, object files and flags are used when 9301 # linking a shared library. 9302 # 9303 # There doesn't appear to be a way to prevent this compiler from 9304 # explicitly linking system object files so we need to strip them 9305 # from the output so that they don't get included in the library 9306 # dependencies. 9307 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 9308 ;; 9309 xl* | mpixl* | bgxl*) 9310 # IBM XL 8.0 on PPC, with GNU ld 9311 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9312 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 9313 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9314 if test yes = "$supports_anon_versioning"; then 9315 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 9316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9317 echo "local: *; };" >> $output_objdir/$libname.ver~ 9318 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9319 fi 9320 ;; 9321 *) 9322 case `$CC -V 2>&1 | sed 5q` in 9323 *Sun\ C*) 9324 # Sun C++ 5.9 9325 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 9326 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9327 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 9328 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 9329 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9330 _LT_TAGVAR(compiler_needs_object, $1)=yes 9331 9332 # Not sure whether something based on 9333 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 9334 # would be better. 9335 output_verbose_link_cmd='func_echo_all' 9336 9337 # Archives containing C++ object files must be created using 9338 # "CC -xar", where "CC" is the Sun C++ compiler. This is 9339 # necessary to make sure instantiated templates are included 9340 # in the archive. 9341 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 9342 ;; 9343 esac 9344 ;; 9345 esac 9346 ;; 9347 9348 lynxos*) 9349 # FIXME: insert proper C++ library support 9350 _LT_TAGVAR(ld_shlibs, $1)=no 9351 ;; 9352 9353 m88k*) 9354 # FIXME: insert proper C++ library support 9355 _LT_TAGVAR(ld_shlibs, $1)=no 9356 ;; 9357 9358 mvs*) 9359 case $cc_basename in 9360 cxx*) 9361 # FIXME: insert proper C++ library support 9362 _LT_TAGVAR(ld_shlibs, $1)=no 9363 ;; 9364 *) 9365 # FIXME: insert proper C++ library support 9366 _LT_TAGVAR(ld_shlibs, $1)=no 9367 ;; 9368 esac 9369 ;; 9370 9371 netbsd*) 9372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9373 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 9374 wlarc= 9375 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 9376 _LT_TAGVAR(hardcode_direct, $1)=yes 9377 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9378 fi 9379 # Workaround some broken pre-1.5 toolchains 9380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 9381 ;; 9382 9383 *nto* | *qnx*) 9384 _LT_TAGVAR(ld_shlibs, $1)=yes 9385 ;; 9386 9387 openbsd* | bitrig*) 9388 if test -f /usr/libexec/ld.so; then 9389 _LT_TAGVAR(hardcode_direct, $1)=yes 9390 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9391 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 9392 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 9394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 9395 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 9396 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9397 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9398 fi 9399 output_verbose_link_cmd=func_echo_all 9400 else 9401 _LT_TAGVAR(ld_shlibs, $1)=no 9402 fi 9403 ;; 9404 9405 osf3* | osf4* | osf5*) 9406 case $cc_basename in 9407 KCC*) 9408 # Kuck and Associates, Inc. (KAI) C++ Compiler 9409 9410 # KCC will only create a shared library if the output file 9411 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9412 # to its proper name (with version) after linking. 9413 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 9414 9415 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 9416 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9417 9418 # Archives containing C++ object files must be created using 9419 # the KAI C++ compiler. 9420 case $host in 9421 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 9422 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 9423 esac 9424 ;; 9425 RCC*) 9426 # Rational C++ 2.4.1 9427 # FIXME: insert proper C++ library support 9428 _LT_TAGVAR(ld_shlibs, $1)=no 9429 ;; 9430 cxx*) 9431 case $host in 9432 osf3*) 9433 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 9434 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9435 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9436 ;; 9437 *) 9438 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 9439 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9440 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 9441 echo "-hidden">> $lib.exp~ 9442 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 9443 $RM $lib.exp' 9444 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 9445 ;; 9446 esac 9447 9448 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9449 9450 # Commands to make compiler produce verbose output that lists 9451 # what "hidden" libraries, object files and flags are used when 9452 # linking a shared library. 9453 # 9454 # There doesn't appear to be a way to prevent this compiler from 9455 # explicitly linking system object files so we need to strip them 9456 # from the output so that they don't get included in the library 9457 # dependencies. 9458 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 9459 ;; 9460 *) 9461 if test yes,no = "$GXX,$with_gnu_ld"; then 9462 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 9463 case $host in 9464 osf3*) 9465 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9466 ;; 9467 *) 9468 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9469 ;; 9470 esac 9471 9472 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9473 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9474 9475 # Commands to make compiler produce verbose output that lists 9476 # what "hidden" libraries, object files and flags are used when 9477 # linking a shared library. 9478 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 9479 9480 else 9481 # FIXME: insert proper C++ library support 9482 _LT_TAGVAR(ld_shlibs, $1)=no 9483 fi 9484 ;; 9485 esac 9486 ;; 9487 9488 psos*) 9489 # FIXME: insert proper C++ library support 9490 _LT_TAGVAR(ld_shlibs, $1)=no 9491 ;; 9492 9493 sunos4*) 9494 case $cc_basename in 9495 CC*) 9496 # Sun C++ 4.x 9497 # FIXME: insert proper C++ library support 9498 _LT_TAGVAR(ld_shlibs, $1)=no 9499 ;; 9500 lcc*) 9501 # Lucid 9502 # FIXME: insert proper C++ library support 9503 _LT_TAGVAR(ld_shlibs, $1)=no 9504 ;; 9505 *) 9506 # FIXME: insert proper C++ library support 9507 _LT_TAGVAR(ld_shlibs, $1)=no 9508 ;; 9509 esac 9510 ;; 9511 9512 solaris*) 9513 case $cc_basename in 9514 CC* | sunCC*) 9515 # Sun C++ 4.2, 5.x and Centerline C++ 9516 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 9517 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 9518 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9519 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9520 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 9521 9522 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 9523 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9524 case $host_os in 9525 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 9526 *) 9527 # The compiler driver will combine and reorder linker options, 9528 # but understands '-z linker_flag'. 9529 # Supported since Solaris 2.6 (maybe 2.5.1?) 9530 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 9531 ;; 9532 esac 9533 _LT_TAGVAR(link_all_deplibs, $1)=yes 9534 9535 output_verbose_link_cmd='func_echo_all' 9536 9537 # Archives containing C++ object files must be created using 9538 # "CC -xar", where "CC" is the Sun C++ compiler. This is 9539 # necessary to make sure instantiated templates are included 9540 # in the archive. 9541 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 9542 ;; 9543 gcx*) 9544 # Green Hills C++ Compiler 9545 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 9546 9547 # The C++ compiler must be used to create the archive. 9548 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 9549 ;; 9550 *) 9551 # GNU C++ compiler with Solaris linker 9552 if test yes,no = "$GXX,$with_gnu_ld"; then 9553 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 9554 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 9555 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 9556 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9557 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 9558 9559 # Commands to make compiler produce verbose output that lists 9560 # what "hidden" libraries, object files and flags are used when 9561 # linking a shared library. 9562 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 9563 else 9564 # g++ 2.7 appears to require '-G' NOT '-shared' on this 9565 # platform. 9566 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 9567 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9568 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 9569 9570 # Commands to make compiler produce verbose output that lists 9571 # what "hidden" libraries, object files and flags are used when 9572 # linking a shared library. 9573 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 9574 fi 9575 9576 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 9577 case $host_os in 9578 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 9579 *) 9580 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9581 ;; 9582 esac 9583 fi 9584 ;; 9585 esac 9586 ;; 9587 9588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 9589 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 9590 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9591 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9592 runpath_var='LD_RUN_PATH' 9593 9594 case $cc_basename in 9595 CC*) 9596 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9597 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9598 ;; 9599 *) 9600 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9601 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9602 ;; 9603 esac 9604 ;; 9605 9606 sysv5* | sco3.2v5* | sco5v6*) 9607 # Note: We CANNOT use -z defs as we might desire, because we do not 9608 # link with -lc, and that would cause any symbols used from libc to 9609 # always be unresolved, which means just about no library would 9610 # ever link correctly. If we're not using GNU ld we use -z text 9611 # though, which does catch some bad symbols but isn't as heavy-handed 9612 # as -z defs. 9613 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 9614 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 9615 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9616 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9617 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 9618 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 9619 _LT_TAGVAR(link_all_deplibs, $1)=yes 9620 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 9621 runpath_var='LD_RUN_PATH' 9622 9623 case $cc_basename in 9624 CC*) 9625 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9626 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9627 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 9628 '"$_LT_TAGVAR(old_archive_cmds, $1)" 9629 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 9630 '"$_LT_TAGVAR(reload_cmds, $1)" 9631 ;; 9632 *) 9633 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9634 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9635 ;; 9636 esac 9637 ;; 9638 9639 tandem*) 9640 case $cc_basename in 9641 NCC*) 9642 # NonStop-UX NCC 3.20 9643 # FIXME: insert proper C++ library support 9644 _LT_TAGVAR(ld_shlibs, $1)=no 9645 ;; 9646 *) 9647 # FIXME: insert proper C++ library support 9648 _LT_TAGVAR(ld_shlibs, $1)=no 9649 ;; 9650 esac 9651 ;; 9652 9653 vxworks*) 9654 # FIXME: insert proper C++ library support 9655 _LT_TAGVAR(ld_shlibs, $1)=no 9656 ;; 9657 9658 *) 9659 # FIXME: insert proper C++ library support 9660 _LT_TAGVAR(ld_shlibs, $1)=no 9661 ;; 9662 esac 9663 9664 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 9665 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 9666 9667 _LT_TAGVAR(GCC, $1)=$GXX 9668 _LT_TAGVAR(LD, $1)=$LD 9669 9670 ## CAVEAT EMPTOR: 9671 ## There is no encapsulation within the following macros, do not change 9672 ## the running order or otherwise move them around unless you know exactly 9673 ## what you are doing... 9674 _LT_SYS_HIDDEN_LIBDEPS($1) 9675 _LT_COMPILER_PIC($1) 9676 _LT_COMPILER_C_O($1) 9677 _LT_COMPILER_FILE_LOCKS($1) 9678 _LT_LINKER_SHLIBS($1) 9679 _LT_SYS_DYNAMIC_LINKER($1) 9680 _LT_LINKER_HARDCODE_LIBPATH($1) 9681 9682 _LT_CONFIG($1) 9683 fi # test -n "$compiler" 9684 9685 CC=$lt_save_CC 9686 CFLAGS=$lt_save_CFLAGS 9687 LDCXX=$LD 9688 LD=$lt_save_LD 9689 GCC=$lt_save_GCC 9690 with_gnu_ld=$lt_save_with_gnu_ld 9691 lt_cv_path_LDCXX=$lt_cv_path_LD 9692 lt_cv_path_LD=$lt_save_path_LD 9693 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 9694 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 9695fi # test yes != "$_lt_caught_CXX_error" 9696 9697AC_LANG_POP 9698])# _LT_LANG_CXX_CONFIG 9699 9700 9701# _LT_FUNC_STRIPNAME_CNF 9702# ---------------------- 9703# func_stripname_cnf prefix suffix name 9704# strip PREFIX and SUFFIX off of NAME. 9705# PREFIX and SUFFIX must not contain globbing or regex special 9706# characters, hashes, percent signs, but SUFFIX may contain a leading 9707# dot (in which case that matches only a dot). 9708# 9709# This function is identical to the (non-XSI) version of func_stripname, 9710# except this one can be used by m4 code that may be executed by configure, 9711# rather than the libtool script. 9712m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 9713AC_REQUIRE([_LT_DECL_SED]) 9714AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 9715func_stripname_cnf () 9716{ 9717 case @S|@2 in 9718 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 9719 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 9720 esac 9721} # func_stripname_cnf 9722])# _LT_FUNC_STRIPNAME_CNF 9723 9724 9725# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 9726# --------------------------------- 9727# Figure out "hidden" library dependencies from verbose 9728# compiler output when linking a shared library. 9729# Parse the compiler output and extract the necessary 9730# objects, libraries and library flags. 9731m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 9732[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 9733AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 9734# Dependencies to place before and after the object being linked: 9735_LT_TAGVAR(predep_objects, $1)= 9736_LT_TAGVAR(postdep_objects, $1)= 9737_LT_TAGVAR(predeps, $1)= 9738_LT_TAGVAR(postdeps, $1)= 9739_LT_TAGVAR(compiler_lib_search_path, $1)= 9740 9741dnl we can't use the lt_simple_compile_test_code here, 9742dnl because it contains code intended for an executable, 9743dnl not a library. It's possible we should let each 9744dnl tag define a new lt_????_link_test_code variable, 9745dnl but it's only used here... 9746m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 9747int a; 9748void foo (void) { a = 0; } 9749_LT_EOF 9750], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 9751class Foo 9752{ 9753public: 9754 Foo (void) { a = 0; } 9755private: 9756 int a; 9757}; 9758_LT_EOF 9759], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 9760 subroutine foo 9761 implicit none 9762 integer*4 a 9763 a=0 9764 return 9765 end 9766_LT_EOF 9767], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 9768 subroutine foo 9769 implicit none 9770 integer a 9771 a=0 9772 return 9773 end 9774_LT_EOF 9775], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 9776public class foo { 9777 private int a; 9778 public void bar (void) { 9779 a = 0; 9780 } 9781}; 9782_LT_EOF 9783], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 9784package foo 9785func foo() { 9786} 9787_LT_EOF 9788]) 9789 9790_lt_libdeps_save_CFLAGS=$CFLAGS 9791case "$CC $CFLAGS " in #( 9792*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 9793*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 9794*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 9795esac 9796 9797dnl Parse the compiler output and extract the necessary 9798dnl objects, libraries and library flags. 9799if AC_TRY_EVAL(ac_compile); then 9800 # Parse the compiler output and extract the necessary 9801 # objects, libraries and library flags. 9802 9803 # Sentinel used to keep track of whether or not we are before 9804 # the conftest object file. 9805 pre_test_object_deps_done=no 9806 9807 for p in `eval "$output_verbose_link_cmd"`; do 9808 case $prev$p in 9809 9810 -L* | -R* | -l*) 9811 # Some compilers place space between "-{L,R}" and the path. 9812 # Remove the space. 9813 if test x-L = "$p" || 9814 test x-R = "$p"; then 9815 prev=$p 9816 continue 9817 fi 9818 9819 # Expand the sysroot to ease extracting the directories later. 9820 if test -z "$prev"; then 9821 case $p in 9822 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 9823 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 9824 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 9825 esac 9826 fi 9827 case $p in 9828 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 9829 esac 9830 if test no = "$pre_test_object_deps_done"; then 9831 case $prev in 9832 -L | -R) 9833 # Internal compiler library paths should come after those 9834 # provided the user. The postdeps already come after the 9835 # user supplied libs so there is no need to process them. 9836 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 9837 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 9838 else 9839 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 9840 fi 9841 ;; 9842 # The "-l" case would never come before the object being 9843 # linked, so don't bother handling this case. 9844 esac 9845 else 9846 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 9847 _LT_TAGVAR(postdeps, $1)=$prev$p 9848 else 9849 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 9850 fi 9851 fi 9852 prev= 9853 ;; 9854 9855 *.lto.$objext) ;; # Ignore GCC LTO objects 9856 *.$objext) 9857 # This assumes that the test object file only shows up 9858 # once in the compiler output. 9859 if test "$p" = "conftest.$objext"; then 9860 pre_test_object_deps_done=yes 9861 continue 9862 fi 9863 9864 if test no = "$pre_test_object_deps_done"; then 9865 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 9866 _LT_TAGVAR(predep_objects, $1)=$p 9867 else 9868 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 9869 fi 9870 else 9871 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 9872 _LT_TAGVAR(postdep_objects, $1)=$p 9873 else 9874 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 9875 fi 9876 fi 9877 ;; 9878 9879 *) ;; # Ignore the rest. 9880 9881 esac 9882 done 9883 9884 # Clean up. 9885 rm -f a.out a.exe 9886else 9887 echo "libtool.m4: error: problem compiling $1 test program" 9888fi 9889 9890$RM -f confest.$objext 9891CFLAGS=$_lt_libdeps_save_CFLAGS 9892 9893# PORTME: override above test on systems where it is broken 9894m4_if([$1], [CXX], 9895[case $host_os in 9896interix[[3-9]]*) 9897 # Interix 3.5 installs completely hosed .la files for C++, so rather than 9898 # hack all around it, let's just trust "g++" to DTRT. 9899 _LT_TAGVAR(predep_objects,$1)= 9900 _LT_TAGVAR(postdep_objects,$1)= 9901 _LT_TAGVAR(postdeps,$1)= 9902 ;; 9903esac 9904]) 9905 9906case " $_LT_TAGVAR(postdeps, $1) " in 9907*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 9908esac 9909 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 9910if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 9911 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 9912fi 9913_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 9914 [The directories searched by this compiler when creating a shared library]) 9915_LT_TAGDECL([], [predep_objects], [1], 9916 [Dependencies to place before and after the objects being linked to 9917 create a shared library]) 9918_LT_TAGDECL([], [postdep_objects], [1]) 9919_LT_TAGDECL([], [predeps], [1]) 9920_LT_TAGDECL([], [postdeps], [1]) 9921_LT_TAGDECL([], [compiler_lib_search_path], [1], 9922 [The library search path used internally by the compiler when linking 9923 a shared library]) 9924])# _LT_SYS_HIDDEN_LIBDEPS 9925 9926 9927# _LT_LANG_F77_CONFIG([TAG]) 9928# -------------------------- 9929# Ensure that the configuration variables for a Fortran 77 compiler are 9930# suitably defined. These variables are subsequently used by _LT_CONFIG 9931# to write the compiler configuration to 'libtool'. 9932m4_defun([_LT_LANG_F77_CONFIG], 9933[AC_LANG_PUSH(Fortran 77) 9934if test -z "$F77" || test no = "$F77"; then 9935 _lt_disable_F77=yes 9936fi 9937 9938_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9939_LT_TAGVAR(allow_undefined_flag, $1)= 9940_LT_TAGVAR(always_export_symbols, $1)=no 9941_LT_TAGVAR(archive_expsym_cmds, $1)= 9942_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9943_LT_TAGVAR(hardcode_direct, $1)=no 9944_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9945_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9946_LT_TAGVAR(hardcode_libdir_separator, $1)= 9947_LT_TAGVAR(hardcode_minus_L, $1)=no 9948_LT_TAGVAR(hardcode_automatic, $1)=no 9949_LT_TAGVAR(inherit_rpath, $1)=no 9950_LT_TAGVAR(module_cmds, $1)= 9951_LT_TAGVAR(module_expsym_cmds, $1)= 9952_LT_TAGVAR(link_all_deplibs, $1)=unknown 9953_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9954_LT_TAGVAR(reload_flag, $1)=$reload_flag 9955_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9956_LT_TAGVAR(no_undefined_flag, $1)= 9957_LT_TAGVAR(whole_archive_flag_spec, $1)= 9958_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9959 9960# Source file extension for f77 test sources. 9961ac_ext=f 9962 9963# Object file extension for compiled f77 test sources. 9964objext=o 9965_LT_TAGVAR(objext, $1)=$objext 9966 9967# No sense in running all these tests if we already determined that 9968# the F77 compiler isn't working. Some variables (like enable_shared) 9969# are currently assumed to apply to all compilers on this platform, 9970# and will be corrupted by setting them based on a non-working compiler. 9971if test yes != "$_lt_disable_F77"; then 9972 # Code to be used in simple compile tests 9973 lt_simple_compile_test_code="\ 9974 subroutine t 9975 return 9976 end 9977" 9978 9979 # Code to be used in simple link tests 9980 lt_simple_link_test_code="\ 9981 program t 9982 end 9983" 9984 9985 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9986 _LT_TAG_COMPILER 9987 9988 # save warnings/boilerplate of simple test code 9989 _LT_COMPILER_BOILERPLATE 9990 _LT_LINKER_BOILERPLATE 9991 9992 # Allow CC to be a program name with arguments. 9993 lt_save_CC=$CC 9994 lt_save_GCC=$GCC 9995 lt_save_CFLAGS=$CFLAGS 9996 CC=${F77-"f77"} 9997 CFLAGS=$FFLAGS 9998 compiler=$CC 9999 _LT_TAGVAR(compiler, $1)=$CC 10000 _LT_CC_BASENAME([$compiler]) 10001 GCC=$G77 10002 if test -n "$compiler"; then 10003 AC_MSG_CHECKING([if libtool supports shared libraries]) 10004 AC_MSG_RESULT([$can_build_shared]) 10005 10006 AC_MSG_CHECKING([whether to build shared libraries]) 10007 test no = "$can_build_shared" && enable_shared=no 10008 10009 # On AIX, shared libraries and static libraries use the same namespace, and 10010 # are all built from PIC. 10011 case $host_os in 10012 aix3*) 10013 test yes = "$enable_shared" && enable_static=no 10014 if test -n "$RANLIB"; then 10015 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10016 postinstall_cmds='$RANLIB $lib' 10017 fi 10018 ;; 10019 aix[[4-9]]*) 10020 if test ia64 != "$host_cpu"; then 10021 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 10022 yes,aix,yes) ;; # shared object as lib.so file only 10023 yes,svr4,*) ;; # shared object as lib.so archive member only 10024 yes,*) enable_static=no ;; # shared object in lib.a archive as well 10025 esac 10026 fi 10027 ;; 10028 esac 10029 AC_MSG_RESULT([$enable_shared]) 10030 10031 AC_MSG_CHECKING([whether to build static libraries]) 10032 # Make sure either enable_shared or enable_static is yes. 10033 test yes = "$enable_shared" || enable_static=yes 10034 AC_MSG_RESULT([$enable_static]) 10035 10036 _LT_TAGVAR(GCC, $1)=$G77 10037 _LT_TAGVAR(LD, $1)=$LD 10038 10039 ## CAVEAT EMPTOR: 10040 ## There is no encapsulation within the following macros, do not change 10041 ## the running order or otherwise move them around unless you know exactly 10042 ## what you are doing... 10043 _LT_COMPILER_PIC($1) 10044 _LT_COMPILER_C_O($1) 10045 _LT_COMPILER_FILE_LOCKS($1) 10046 _LT_LINKER_SHLIBS($1) 10047 _LT_SYS_DYNAMIC_LINKER($1) 10048 _LT_LINKER_HARDCODE_LIBPATH($1) 10049 10050 _LT_CONFIG($1) 10051 fi # test -n "$compiler" 10052 10053 GCC=$lt_save_GCC 10054 CC=$lt_save_CC 10055 CFLAGS=$lt_save_CFLAGS 10056fi # test yes != "$_lt_disable_F77" 10057 10058AC_LANG_POP 10059])# _LT_LANG_F77_CONFIG 10060 10061 10062# _LT_LANG_FC_CONFIG([TAG]) 10063# ------------------------- 10064# Ensure that the configuration variables for a Fortran compiler are 10065# suitably defined. These variables are subsequently used by _LT_CONFIG 10066# to write the compiler configuration to 'libtool'. 10067m4_defun([_LT_LANG_FC_CONFIG], 10068[AC_LANG_PUSH(Fortran) 10069 10070if test -z "$FC" || test no = "$FC"; then 10071 _lt_disable_FC=yes 10072fi 10073 10074_LT_TAGVAR(archive_cmds_need_lc, $1)=no 10075_LT_TAGVAR(allow_undefined_flag, $1)= 10076_LT_TAGVAR(always_export_symbols, $1)=no 10077_LT_TAGVAR(archive_expsym_cmds, $1)= 10078_LT_TAGVAR(export_dynamic_flag_spec, $1)= 10079_LT_TAGVAR(hardcode_direct, $1)=no 10080_LT_TAGVAR(hardcode_direct_absolute, $1)=no 10081_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 10082_LT_TAGVAR(hardcode_libdir_separator, $1)= 10083_LT_TAGVAR(hardcode_minus_L, $1)=no 10084_LT_TAGVAR(hardcode_automatic, $1)=no 10085_LT_TAGVAR(inherit_rpath, $1)=no 10086_LT_TAGVAR(module_cmds, $1)= 10087_LT_TAGVAR(module_expsym_cmds, $1)= 10088_LT_TAGVAR(link_all_deplibs, $1)=unknown 10089_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 10090_LT_TAGVAR(reload_flag, $1)=$reload_flag 10091_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 10092_LT_TAGVAR(no_undefined_flag, $1)= 10093_LT_TAGVAR(whole_archive_flag_spec, $1)= 10094_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 10095 10096# Source file extension for fc test sources. 10097ac_ext=${ac_fc_srcext-f} 10098 10099# Object file extension for compiled fc test sources. 10100objext=o 10101_LT_TAGVAR(objext, $1)=$objext 10102 10103# No sense in running all these tests if we already determined that 10104# the FC compiler isn't working. Some variables (like enable_shared) 10105# are currently assumed to apply to all compilers on this platform, 10106# and will be corrupted by setting them based on a non-working compiler. 10107if test yes != "$_lt_disable_FC"; then 10108 # Code to be used in simple compile tests 10109 lt_simple_compile_test_code="\ 10110 subroutine t 10111 return 10112 end 10113" 10114 10115 # Code to be used in simple link tests 10116 lt_simple_link_test_code="\ 10117 program t 10118 end 10119" 10120 10121 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 10122 _LT_TAG_COMPILER 10123 10124 # save warnings/boilerplate of simple test code 10125 _LT_COMPILER_BOILERPLATE 10126 _LT_LINKER_BOILERPLATE 10127 10128 # Allow CC to be a program name with arguments. 10129 lt_save_CC=$CC 10130 lt_save_GCC=$GCC 10131 lt_save_CFLAGS=$CFLAGS 10132 CC=${FC-"f95"} 10133 CFLAGS=$FCFLAGS 10134 compiler=$CC 10135 GCC=$ac_cv_fc_compiler_gnu 10136 10137 _LT_TAGVAR(compiler, $1)=$CC 10138 _LT_CC_BASENAME([$compiler]) 10139 10140 if test -n "$compiler"; then 10141 AC_MSG_CHECKING([if libtool supports shared libraries]) 10142 AC_MSG_RESULT([$can_build_shared]) 10143 10144 AC_MSG_CHECKING([whether to build shared libraries]) 10145 test no = "$can_build_shared" && enable_shared=no 10146 10147 # On AIX, shared libraries and static libraries use the same namespace, and 10148 # are all built from PIC. 10149 case $host_os in 10150 aix3*) 10151 test yes = "$enable_shared" && enable_static=no 10152 if test -n "$RANLIB"; then 10153 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10154 postinstall_cmds='$RANLIB $lib' 10155 fi 10156 ;; 10157 aix[[4-9]]*) 10158 if test ia64 != "$host_cpu"; then 10159 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 10160 yes,aix,yes) ;; # shared object as lib.so file only 10161 yes,svr4,*) ;; # shared object as lib.so archive member only 10162 yes,*) enable_static=no ;; # shared object in lib.a archive as well 10163 esac 10164 fi 10165 ;; 10166 esac 10167 AC_MSG_RESULT([$enable_shared]) 10168 10169 AC_MSG_CHECKING([whether to build static libraries]) 10170 # Make sure either enable_shared or enable_static is yes. 10171 test yes = "$enable_shared" || enable_static=yes 10172 AC_MSG_RESULT([$enable_static]) 10173 10174 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 10175 _LT_TAGVAR(LD, $1)=$LD 10176 10177 ## CAVEAT EMPTOR: 10178 ## There is no encapsulation within the following macros, do not change 10179 ## the running order or otherwise move them around unless you know exactly 10180 ## what you are doing... 10181 _LT_SYS_HIDDEN_LIBDEPS($1) 10182 _LT_COMPILER_PIC($1) 10183 _LT_COMPILER_C_O($1) 10184 _LT_COMPILER_FILE_LOCKS($1) 10185 _LT_LINKER_SHLIBS($1) 10186 _LT_SYS_DYNAMIC_LINKER($1) 10187 _LT_LINKER_HARDCODE_LIBPATH($1) 10188 10189 _LT_CONFIG($1) 10190 fi # test -n "$compiler" 10191 10192 GCC=$lt_save_GCC 10193 CC=$lt_save_CC 10194 CFLAGS=$lt_save_CFLAGS 10195fi # test yes != "$_lt_disable_FC" 10196 10197AC_LANG_POP 10198])# _LT_LANG_FC_CONFIG 10199 10200 10201# _LT_LANG_GCJ_CONFIG([TAG]) 10202# -------------------------- 10203# Ensure that the configuration variables for the GNU Java Compiler compiler 10204# are suitably defined. These variables are subsequently used by _LT_CONFIG 10205# to write the compiler configuration to 'libtool'. 10206m4_defun([_LT_LANG_GCJ_CONFIG], 10207[AC_REQUIRE([LT_PROG_GCJ])dnl 10208AC_LANG_SAVE 10209 10210# Source file extension for Java test sources. 10211ac_ext=java 10212 10213# Object file extension for compiled Java test sources. 10214objext=o 10215_LT_TAGVAR(objext, $1)=$objext 10216 10217# Code to be used in simple compile tests 10218lt_simple_compile_test_code="class foo {}" 10219 10220# Code to be used in simple link tests 10221lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 10222 10223# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10224_LT_TAG_COMPILER 10225 10226# save warnings/boilerplate of simple test code 10227_LT_COMPILER_BOILERPLATE 10228_LT_LINKER_BOILERPLATE 10229 10230# Allow CC to be a program name with arguments. 10231lt_save_CC=$CC 10232lt_save_CFLAGS=$CFLAGS 10233lt_save_GCC=$GCC 10234GCC=yes 10235CC=${GCJ-"gcj"} 10236CFLAGS=$GCJFLAGS 10237compiler=$CC 10238_LT_TAGVAR(compiler, $1)=$CC 10239_LT_TAGVAR(LD, $1)=$LD 10240_LT_CC_BASENAME([$compiler]) 10241 10242# GCJ did not exist at the time GCC didn't implicitly link libc in. 10243_LT_TAGVAR(archive_cmds_need_lc, $1)=no 10244 10245_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 10246_LT_TAGVAR(reload_flag, $1)=$reload_flag 10247_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 10248 10249if test -n "$compiler"; then 10250 _LT_COMPILER_NO_RTTI($1) 10251 _LT_COMPILER_PIC($1) 10252 _LT_COMPILER_C_O($1) 10253 _LT_COMPILER_FILE_LOCKS($1) 10254 _LT_LINKER_SHLIBS($1) 10255 _LT_LINKER_HARDCODE_LIBPATH($1) 10256 10257 _LT_CONFIG($1) 10258fi 10259 10260AC_LANG_RESTORE 10261 10262GCC=$lt_save_GCC 10263CC=$lt_save_CC 10264CFLAGS=$lt_save_CFLAGS 10265])# _LT_LANG_GCJ_CONFIG 10266 10267 10268# _LT_LANG_GO_CONFIG([TAG]) 10269# -------------------------- 10270# Ensure that the configuration variables for the GNU Go compiler 10271# are suitably defined. These variables are subsequently used by _LT_CONFIG 10272# to write the compiler configuration to 'libtool'. 10273m4_defun([_LT_LANG_GO_CONFIG], 10274[AC_REQUIRE([LT_PROG_GO])dnl 10275AC_LANG_SAVE 10276 10277# Source file extension for Go test sources. 10278ac_ext=go 10279 10280# Object file extension for compiled Go test sources. 10281objext=o 10282_LT_TAGVAR(objext, $1)=$objext 10283 10284# Code to be used in simple compile tests 10285lt_simple_compile_test_code="package main; func main() { }" 10286 10287# Code to be used in simple link tests 10288lt_simple_link_test_code='package main; func main() { }' 10289 10290# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10291_LT_TAG_COMPILER 10292 10293# save warnings/boilerplate of simple test code 10294_LT_COMPILER_BOILERPLATE 10295_LT_LINKER_BOILERPLATE 10296 10297# Allow CC to be a program name with arguments. 10298lt_save_CC=$CC 10299lt_save_CFLAGS=$CFLAGS 10300lt_save_GCC=$GCC 10301GCC=yes 10302CC=${GOC-"gccgo"} 10303CFLAGS=$GOFLAGS 10304compiler=$CC 10305_LT_TAGVAR(compiler, $1)=$CC 10306_LT_TAGVAR(LD, $1)=$LD 10307_LT_CC_BASENAME([$compiler]) 10308 10309# Go did not exist at the time GCC didn't implicitly link libc in. 10310_LT_TAGVAR(archive_cmds_need_lc, $1)=no 10311 10312_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 10313_LT_TAGVAR(reload_flag, $1)=$reload_flag 10314_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 10315 10316if test -n "$compiler"; then 10317 _LT_COMPILER_NO_RTTI($1) 10318 _LT_COMPILER_PIC($1) 10319 _LT_COMPILER_C_O($1) 10320 _LT_COMPILER_FILE_LOCKS($1) 10321 _LT_LINKER_SHLIBS($1) 10322 _LT_LINKER_HARDCODE_LIBPATH($1) 10323 10324 _LT_CONFIG($1) 10325fi 10326 10327AC_LANG_RESTORE 10328 10329GCC=$lt_save_GCC 10330CC=$lt_save_CC 10331CFLAGS=$lt_save_CFLAGS 10332])# _LT_LANG_GO_CONFIG 10333 10334 10335# _LT_LANG_RC_CONFIG([TAG]) 10336# ------------------------- 10337# Ensure that the configuration variables for the Windows resource compiler 10338# are suitably defined. These variables are subsequently used by _LT_CONFIG 10339# to write the compiler configuration to 'libtool'. 10340m4_defun([_LT_LANG_RC_CONFIG], 10341[AC_REQUIRE([LT_PROG_RC])dnl 10342AC_LANG_SAVE 10343 10344# Source file extension for RC test sources. 10345ac_ext=rc 10346 10347# Object file extension for compiled RC test sources. 10348objext=o 10349_LT_TAGVAR(objext, $1)=$objext 10350 10351# Code to be used in simple compile tests 10352lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 10353 10354# Code to be used in simple link tests 10355lt_simple_link_test_code=$lt_simple_compile_test_code 10356 10357# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10358_LT_TAG_COMPILER 10359 10360# save warnings/boilerplate of simple test code 10361_LT_COMPILER_BOILERPLATE 10362_LT_LINKER_BOILERPLATE 10363 10364# Allow CC to be a program name with arguments. 10365lt_save_CC=$CC 10366lt_save_CFLAGS=$CFLAGS 10367lt_save_GCC=$GCC 10368GCC= 10369CC=${RC-"windres"} 10370CFLAGS= 10371compiler=$CC 10372_LT_TAGVAR(compiler, $1)=$CC 10373_LT_CC_BASENAME([$compiler]) 10374_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 10375 10376if test -n "$compiler"; then 10377 : 10378 _LT_CONFIG($1) 10379fi 10380 10381GCC=$lt_save_GCC 10382AC_LANG_RESTORE 10383CC=$lt_save_CC 10384CFLAGS=$lt_save_CFLAGS 10385])# _LT_LANG_RC_CONFIG 10386 10387 10388# LT_PROG_GCJ 10389# ----------- 10390AC_DEFUN([LT_PROG_GCJ], 10391[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 10392 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 10393 [AC_CHECK_TOOL(GCJ, gcj,) 10394 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 10395 AC_SUBST(GCJFLAGS)])])[]dnl 10396]) 10397 10398# Old name: 10399AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 10400dnl aclocal-1.4 backwards compatibility: 10401dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 10402 10403 10404# LT_PROG_GO 10405# ---------- 10406AC_DEFUN([LT_PROG_GO], 10407[AC_CHECK_TOOL(GOC, gccgo,) 10408]) 10409 10410 10411# LT_PROG_RC 10412# ---------- 10413AC_DEFUN([LT_PROG_RC], 10414[AC_CHECK_TOOL(RC, windres,) 10415]) 10416 10417# Old name: 10418AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 10419dnl aclocal-1.4 backwards compatibility: 10420dnl AC_DEFUN([LT_AC_PROG_RC], []) 10421 10422 10423# _LT_DECL_EGREP 10424# -------------- 10425# If we don't have a new enough Autoconf to choose the best grep 10426# available, choose the one first in the user's PATH. 10427m4_defun([_LT_DECL_EGREP], 10428[AC_REQUIRE([AC_PROG_EGREP])dnl 10429AC_REQUIRE([AC_PROG_FGREP])dnl 10430test -z "$GREP" && GREP=grep 10431_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 10432_LT_DECL([], [EGREP], [1], [An ERE matcher]) 10433_LT_DECL([], [FGREP], [1], [A literal string matcher]) 10434dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 10435AC_SUBST([GREP]) 10436]) 10437 10438 10439# _LT_DECL_OBJDUMP 10440# -------------- 10441# If we don't have a new enough Autoconf to choose the best objdump 10442# available, choose the one first in the user's PATH. 10443m4_defun([_LT_DECL_OBJDUMP], 10444[AC_CHECK_TOOL(OBJDUMP, objdump, false) 10445test -z "$OBJDUMP" && OBJDUMP=objdump 10446_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 10447AC_SUBST([OBJDUMP]) 10448]) 10449 10450# _LT_DECL_DLLTOOL 10451# ---------------- 10452# Ensure DLLTOOL variable is set. 10453m4_defun([_LT_DECL_DLLTOOL], 10454[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 10455test -z "$DLLTOOL" && DLLTOOL=dlltool 10456_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 10457AC_SUBST([DLLTOOL]) 10458]) 10459 10460# _LT_DECL_SED 10461# ------------ 10462# Check for a fully-functional sed program, that truncates 10463# as few characters as possible. Prefer GNU sed if found. 10464m4_defun([_LT_DECL_SED], 10465[AC_PROG_SED 10466test -z "$SED" && SED=sed 10467Xsed="$SED -e 1s/^X//" 10468_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 10469_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 10470 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 10471])# _LT_DECL_SED 10472 10473m4_ifndef([AC_PROG_SED], [ 10474# NOTE: This macro has been submitted for inclusion into # 10475# GNU Autoconf as AC_PROG_SED. When it is available in # 10476# a released version of Autoconf we should remove this # 10477# macro and use it instead. # 10478 10479m4_defun([AC_PROG_SED], 10480[AC_MSG_CHECKING([for a sed that does not truncate output]) 10481AC_CACHE_VAL(lt_cv_path_SED, 10482[# Loop through the user's path and test for sed and gsed. 10483# Then use that list of sed's as ones to test for truncation. 10484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10485for as_dir in $PATH 10486do 10487 IFS=$as_save_IFS 10488 test -z "$as_dir" && as_dir=. 10489 for lt_ac_prog in sed gsed; do 10490 for ac_exec_ext in '' $ac_executable_extensions; do 10491 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 10492 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 10493 fi 10494 done 10495 done 10496done 10497IFS=$as_save_IFS 10498lt_ac_max=0 10499lt_ac_count=0 10500# Add /usr/xpg4/bin/sed as it is typically found on Solaris 10501# along with /bin/sed that truncates output. 10502for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 10503 test ! -f "$lt_ac_sed" && continue 10504 cat /dev/null > conftest.in 10505 lt_ac_count=0 10506 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 10507 # Check for GNU sed and select it if it is found. 10508 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 10509 lt_cv_path_SED=$lt_ac_sed 10510 break 10511 fi 10512 while true; do 10513 cat conftest.in conftest.in >conftest.tmp 10514 mv conftest.tmp conftest.in 10515 cp conftest.in conftest.nl 10516 echo >>conftest.nl 10517 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 10518 cmp -s conftest.out conftest.nl || break 10519 # 10000 chars as input seems more than enough 10520 test 10 -lt "$lt_ac_count" && break 10521 lt_ac_count=`expr $lt_ac_count + 1` 10522 if test "$lt_ac_count" -gt "$lt_ac_max"; then 10523 lt_ac_max=$lt_ac_count 10524 lt_cv_path_SED=$lt_ac_sed 10525 fi 10526 done 10527done 10528]) 10529SED=$lt_cv_path_SED 10530AC_SUBST([SED]) 10531AC_MSG_RESULT([$SED]) 10532])#AC_PROG_SED 10533])#m4_ifndef 10534 10535# Old name: 10536AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 10537dnl aclocal-1.4 backwards compatibility: 10538dnl AC_DEFUN([LT_AC_PROG_SED], []) 10539 10540 10541# _LT_CHECK_SHELL_FEATURES 10542# ------------------------ 10543# Find out whether the shell is Bourne or XSI compatible, 10544# or has some other useful features. 10545m4_defun([_LT_CHECK_SHELL_FEATURES], 10546[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10547 lt_unset=unset 10548else 10549 lt_unset=false 10550fi 10551_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 10552 10553# test EBCDIC or ASCII 10554case `echo X|tr X '\101'` in 10555 A) # ASCII based system 10556 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 10557 lt_SP2NL='tr \040 \012' 10558 lt_NL2SP='tr \015\012 \040\040' 10559 ;; 10560 *) # EBCDIC based system 10561 lt_SP2NL='tr \100 \n' 10562 lt_NL2SP='tr \r\n \100\100' 10563 ;; 10564esac 10565_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 10566_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 10567])# _LT_CHECK_SHELL_FEATURES 10568 10569 10570# _LT_PATH_CONVERSION_FUNCTIONS 10571# ----------------------------- 10572# Determine what file name conversion functions should be used by 10573# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 10574# for certain cross-compile configurations and native mingw. 10575m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 10576[AC_REQUIRE([AC_CANONICAL_HOST])dnl 10577AC_REQUIRE([AC_CANONICAL_BUILD])dnl 10578AC_MSG_CHECKING([how to convert $build file names to $host format]) 10579AC_CACHE_VAL(lt_cv_to_host_file_cmd, 10580[case $host in 10581 *-*-mingw* ) 10582 case $build in 10583 *-*-mingw* ) # actually msys 10584 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 10585 ;; 10586 *-*-cygwin* ) 10587 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 10588 ;; 10589 * ) # otherwise, assume *nix 10590 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 10591 ;; 10592 esac 10593 ;; 10594 *-*-cygwin* ) 10595 case $build in 10596 *-*-mingw* ) # actually msys 10597 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 10598 ;; 10599 *-*-cygwin* ) 10600 lt_cv_to_host_file_cmd=func_convert_file_noop 10601 ;; 10602 * ) # otherwise, assume *nix 10603 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 10604 ;; 10605 esac 10606 ;; 10607 * ) # unhandled hosts (and "normal" native builds) 10608 lt_cv_to_host_file_cmd=func_convert_file_noop 10609 ;; 10610esac 10611]) 10612to_host_file_cmd=$lt_cv_to_host_file_cmd 10613AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 10614_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 10615 [0], [convert $build file names to $host format])dnl 10616 10617AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 10618AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 10619[#assume ordinary cross tools, or native build. 10620lt_cv_to_tool_file_cmd=func_convert_file_noop 10621case $host in 10622 *-*-mingw* ) 10623 case $build in 10624 *-*-mingw* ) # actually msys 10625 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 10626 ;; 10627 esac 10628 ;; 10629esac 10630]) 10631to_tool_file_cmd=$lt_cv_to_tool_file_cmd 10632AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 10633_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 10634 [0], [convert $build files to toolchain format])dnl 10635])# _LT_PATH_CONVERSION_FUNCTIONS 10636 10637# Helper functions for option handling. -*- Autoconf -*- 10638# 10639# Copyright (C) 2004-2005, 2007-2009, 2011-2018 Free Software 10640# Foundation, Inc. 10641# Written by Gary V. Vaughan, 2004 10642# 10643# This file is free software; the Free Software Foundation gives 10644# unlimited permission to copy and/or distribute it, with or without 10645# modifications, as long as this notice is preserved. 10646 10647# serial 8 ltoptions.m4 10648 10649# This is to help aclocal find these macros, as it can't see m4_define. 10650AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 10651 10652 10653# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 10654# ------------------------------------------ 10655m4_define([_LT_MANGLE_OPTION], 10656[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 10657 10658 10659# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 10660# --------------------------------------- 10661# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 10662# matching handler defined, dispatch to it. Other OPTION-NAMEs are 10663# saved as a flag. 10664m4_define([_LT_SET_OPTION], 10665[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 10666m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 10667 _LT_MANGLE_DEFUN([$1], [$2]), 10668 [m4_warning([Unknown $1 option '$2'])])[]dnl 10669]) 10670 10671 10672# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 10673# ------------------------------------------------------------ 10674# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 10675m4_define([_LT_IF_OPTION], 10676[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 10677 10678 10679# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 10680# ------------------------------------------------------- 10681# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 10682# are set. 10683m4_define([_LT_UNLESS_OPTIONS], 10684[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 10685 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 10686 [m4_define([$0_found])])])[]dnl 10687m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 10688])[]dnl 10689]) 10690 10691 10692# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 10693# ---------------------------------------- 10694# OPTION-LIST is a space-separated list of Libtool options associated 10695# with MACRO-NAME. If any OPTION has a matching handler declared with 10696# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 10697# the unknown option and exit. 10698m4_defun([_LT_SET_OPTIONS], 10699[# Set options 10700m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 10701 [_LT_SET_OPTION([$1], _LT_Option)]) 10702 10703m4_if([$1],[LT_INIT],[ 10704 dnl 10705 dnl Simply set some default values (i.e off) if boolean options were not 10706 dnl specified: 10707 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 10708 ]) 10709 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 10710 ]) 10711 dnl 10712 dnl If no reference was made to various pairs of opposing options, then 10713 dnl we run the default mode handler for the pair. For example, if neither 10714 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 10715 dnl archives by default: 10716 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 10717 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 10718 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 10719 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 10720 [_LT_ENABLE_FAST_INSTALL]) 10721 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 10722 [_LT_WITH_AIX_SONAME([aix])]) 10723 ]) 10724])# _LT_SET_OPTIONS 10725 10726 10727 10728# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 10729# ----------------------------------------- 10730m4_define([_LT_MANGLE_DEFUN], 10731[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 10732 10733 10734# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 10735# ----------------------------------------------- 10736m4_define([LT_OPTION_DEFINE], 10737[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 10738])# LT_OPTION_DEFINE 10739 10740 10741# dlopen 10742# ------ 10743LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 10744]) 10745 10746AU_DEFUN([AC_LIBTOOL_DLOPEN], 10747[_LT_SET_OPTION([LT_INIT], [dlopen]) 10748AC_DIAGNOSE([obsolete], 10749[$0: Remove this warning and the call to _LT_SET_OPTION when you 10750put the 'dlopen' option into LT_INIT's first parameter.]) 10751]) 10752 10753dnl aclocal-1.4 backwards compatibility: 10754dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 10755 10756 10757# win32-dll 10758# --------- 10759# Declare package support for building win32 dll's. 10760LT_OPTION_DEFINE([LT_INIT], [win32-dll], 10761[enable_win32_dll=yes 10762 10763case $host in 10764*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 10765 AC_CHECK_TOOL(AS, as, false) 10766 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 10767 AC_CHECK_TOOL(OBJDUMP, objdump, false) 10768 ;; 10769esac 10770 10771test -z "$AS" && AS=as 10772_LT_DECL([], [AS], [1], [Assembler program])dnl 10773 10774test -z "$DLLTOOL" && DLLTOOL=dlltool 10775_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 10776 10777test -z "$OBJDUMP" && OBJDUMP=objdump 10778_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 10779])# win32-dll 10780 10781AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 10782[AC_REQUIRE([AC_CANONICAL_HOST])dnl 10783_LT_SET_OPTION([LT_INIT], [win32-dll]) 10784AC_DIAGNOSE([obsolete], 10785[$0: Remove this warning and the call to _LT_SET_OPTION when you 10786put the 'win32-dll' option into LT_INIT's first parameter.]) 10787]) 10788 10789dnl aclocal-1.4 backwards compatibility: 10790dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 10791 10792 10793# _LT_ENABLE_SHARED([DEFAULT]) 10794# ---------------------------- 10795# implement the --enable-shared flag, and supports the 'shared' and 10796# 'disable-shared' LT_INIT options. 10797# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 10798m4_define([_LT_ENABLE_SHARED], 10799[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 10800AC_ARG_ENABLE([shared], 10801 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 10802 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 10803 [p=${PACKAGE-default} 10804 case $enableval in 10805 yes) enable_shared=yes ;; 10806 no) enable_shared=no ;; 10807 *) 10808 enable_shared=no 10809 # Look at the argument we got. We use all the common list separators. 10810 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10811 for pkg in $enableval; do 10812 IFS=$lt_save_ifs 10813 if test "X$pkg" = "X$p"; then 10814 enable_shared=yes 10815 fi 10816 done 10817 IFS=$lt_save_ifs 10818 ;; 10819 esac], 10820 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 10821 10822 _LT_DECL([build_libtool_libs], [enable_shared], [0], 10823 [Whether or not to build shared libraries]) 10824])# _LT_ENABLE_SHARED 10825 10826LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 10827LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 10828 10829# Old names: 10830AC_DEFUN([AC_ENABLE_SHARED], 10831[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 10832]) 10833 10834AC_DEFUN([AC_DISABLE_SHARED], 10835[_LT_SET_OPTION([LT_INIT], [disable-shared]) 10836]) 10837 10838AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 10839AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 10840 10841dnl aclocal-1.4 backwards compatibility: 10842dnl AC_DEFUN([AM_ENABLE_SHARED], []) 10843dnl AC_DEFUN([AM_DISABLE_SHARED], []) 10844 10845 10846 10847# _LT_ENABLE_STATIC([DEFAULT]) 10848# ---------------------------- 10849# implement the --enable-static flag, and support the 'static' and 10850# 'disable-static' LT_INIT options. 10851# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 10852m4_define([_LT_ENABLE_STATIC], 10853[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 10854AC_ARG_ENABLE([static], 10855 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 10856 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 10857 [p=${PACKAGE-default} 10858 case $enableval in 10859 yes) enable_static=yes ;; 10860 no) enable_static=no ;; 10861 *) 10862 enable_static=no 10863 # Look at the argument we got. We use all the common list separators. 10864 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10865 for pkg in $enableval; do 10866 IFS=$lt_save_ifs 10867 if test "X$pkg" = "X$p"; then 10868 enable_static=yes 10869 fi 10870 done 10871 IFS=$lt_save_ifs 10872 ;; 10873 esac], 10874 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 10875 10876 _LT_DECL([build_old_libs], [enable_static], [0], 10877 [Whether or not to build static libraries]) 10878])# _LT_ENABLE_STATIC 10879 10880LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 10881LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 10882 10883# Old names: 10884AC_DEFUN([AC_ENABLE_STATIC], 10885[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 10886]) 10887 10888AC_DEFUN([AC_DISABLE_STATIC], 10889[_LT_SET_OPTION([LT_INIT], [disable-static]) 10890]) 10891 10892AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 10893AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 10894 10895dnl aclocal-1.4 backwards compatibility: 10896dnl AC_DEFUN([AM_ENABLE_STATIC], []) 10897dnl AC_DEFUN([AM_DISABLE_STATIC], []) 10898 10899 10900 10901# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 10902# ---------------------------------- 10903# implement the --enable-fast-install flag, and support the 'fast-install' 10904# and 'disable-fast-install' LT_INIT options. 10905# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 10906m4_define([_LT_ENABLE_FAST_INSTALL], 10907[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 10908AC_ARG_ENABLE([fast-install], 10909 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 10910 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 10911 [p=${PACKAGE-default} 10912 case $enableval in 10913 yes) enable_fast_install=yes ;; 10914 no) enable_fast_install=no ;; 10915 *) 10916 enable_fast_install=no 10917 # Look at the argument we got. We use all the common list separators. 10918 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10919 for pkg in $enableval; do 10920 IFS=$lt_save_ifs 10921 if test "X$pkg" = "X$p"; then 10922 enable_fast_install=yes 10923 fi 10924 done 10925 IFS=$lt_save_ifs 10926 ;; 10927 esac], 10928 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 10929 10930_LT_DECL([fast_install], [enable_fast_install], [0], 10931 [Whether or not to optimize for fast installation])dnl 10932])# _LT_ENABLE_FAST_INSTALL 10933 10934LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 10935LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 10936 10937# Old names: 10938AU_DEFUN([AC_ENABLE_FAST_INSTALL], 10939[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 10940AC_DIAGNOSE([obsolete], 10941[$0: Remove this warning and the call to _LT_SET_OPTION when you put 10942the 'fast-install' option into LT_INIT's first parameter.]) 10943]) 10944 10945AU_DEFUN([AC_DISABLE_FAST_INSTALL], 10946[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 10947AC_DIAGNOSE([obsolete], 10948[$0: Remove this warning and the call to _LT_SET_OPTION when you put 10949the 'disable-fast-install' option into LT_INIT's first parameter.]) 10950]) 10951 10952dnl aclocal-1.4 backwards compatibility: 10953dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 10954dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 10955 10956 10957# _LT_WITH_AIX_SONAME([DEFAULT]) 10958# ---------------------------------- 10959# implement the --with-aix-soname flag, and support the `aix-soname=aix' 10960# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 10961# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 10962m4_define([_LT_WITH_AIX_SONAME], 10963[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 10964shared_archive_member_spec= 10965case $host,$enable_shared in 10966power*-*-aix[[5-9]]*,yes) 10967 AC_MSG_CHECKING([which variant of shared library versioning to provide]) 10968 AC_ARG_WITH([aix-soname], 10969 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 10970 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 10971 [case $withval in 10972 aix|svr4|both) 10973 ;; 10974 *) 10975 AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 10976 ;; 10977 esac 10978 lt_cv_with_aix_soname=$with_aix_soname], 10979 [AC_CACHE_VAL([lt_cv_with_aix_soname], 10980 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 10981 with_aix_soname=$lt_cv_with_aix_soname]) 10982 AC_MSG_RESULT([$with_aix_soname]) 10983 if test aix != "$with_aix_soname"; then 10984 # For the AIX way of multilib, we name the shared archive member 10985 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10986 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10987 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10988 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10989 if test 64 = "${OBJECT_MODE-32}"; then 10990 shared_archive_member_spec=shr_64 10991 else 10992 shared_archive_member_spec=shr 10993 fi 10994 fi 10995 ;; 10996*) 10997 with_aix_soname=aix 10998 ;; 10999esac 11000 11001_LT_DECL([], [shared_archive_member_spec], [0], 11002 [Shared archive member basename, for filename based shared library versioning on AIX])dnl 11003])# _LT_WITH_AIX_SONAME 11004 11005LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 11006LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 11007LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 11008 11009 11010# _LT_WITH_PIC([MODE]) 11011# -------------------- 11012# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 11013# LT_INIT options. 11014# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 11015m4_define([_LT_WITH_PIC], 11016[AC_ARG_WITH([pic], 11017 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 11018 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 11019 [lt_p=${PACKAGE-default} 11020 case $withval in 11021 yes|no) pic_mode=$withval ;; 11022 *) 11023 pic_mode=default 11024 # Look at the argument we got. We use all the common list separators. 11025 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11026 for lt_pkg in $withval; do 11027 IFS=$lt_save_ifs 11028 if test "X$lt_pkg" = "X$lt_p"; then 11029 pic_mode=yes 11030 fi 11031 done 11032 IFS=$lt_save_ifs 11033 ;; 11034 esac], 11035 [pic_mode=m4_default([$1], [default])]) 11036 11037_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 11038])# _LT_WITH_PIC 11039 11040LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 11041LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 11042 11043# Old name: 11044AU_DEFUN([AC_LIBTOOL_PICMODE], 11045[_LT_SET_OPTION([LT_INIT], [pic-only]) 11046AC_DIAGNOSE([obsolete], 11047[$0: Remove this warning and the call to _LT_SET_OPTION when you 11048put the 'pic-only' option into LT_INIT's first parameter.]) 11049]) 11050 11051dnl aclocal-1.4 backwards compatibility: 11052dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 11053 11054 11055m4_define([_LTDL_MODE], []) 11056LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 11057 [m4_define([_LTDL_MODE], [nonrecursive])]) 11058LT_OPTION_DEFINE([LTDL_INIT], [recursive], 11059 [m4_define([_LTDL_MODE], [recursive])]) 11060LT_OPTION_DEFINE([LTDL_INIT], [subproject], 11061 [m4_define([_LTDL_MODE], [subproject])]) 11062 11063m4_define([_LTDL_TYPE], []) 11064LT_OPTION_DEFINE([LTDL_INIT], [installable], 11065 [m4_define([_LTDL_TYPE], [installable])]) 11066LT_OPTION_DEFINE([LTDL_INIT], [convenience], 11067 [m4_define([_LTDL_TYPE], [convenience])]) 11068 11069# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 11070# 11071# Copyright (C) 2004-2005, 2007-2008, 2011-2018 Free Software 11072# Foundation, Inc. 11073# Written by Gary V. Vaughan, 2004 11074# 11075# This file is free software; the Free Software Foundation gives 11076# unlimited permission to copy and/or distribute it, with or without 11077# modifications, as long as this notice is preserved. 11078 11079# serial 6 ltsugar.m4 11080 11081# This is to help aclocal find these macros, as it can't see m4_define. 11082AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 11083 11084 11085# lt_join(SEP, ARG1, [ARG2...]) 11086# ----------------------------- 11087# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 11088# associated separator. 11089# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 11090# versions in m4sugar had bugs. 11091m4_define([lt_join], 11092[m4_if([$#], [1], [], 11093 [$#], [2], [[$2]], 11094 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 11095m4_define([_lt_join], 11096[m4_if([$#$2], [2], [], 11097 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 11098 11099 11100# lt_car(LIST) 11101# lt_cdr(LIST) 11102# ------------ 11103# Manipulate m4 lists. 11104# These macros are necessary as long as will still need to support 11105# Autoconf-2.59, which quotes differently. 11106m4_define([lt_car], [[$1]]) 11107m4_define([lt_cdr], 11108[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 11109 [$#], 1, [], 11110 [m4_dquote(m4_shift($@))])]) 11111m4_define([lt_unquote], $1) 11112 11113 11114# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 11115# ------------------------------------------ 11116# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. 11117# Note that neither SEPARATOR nor STRING are expanded; they are appended 11118# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 11119# No SEPARATOR is output if MACRO-NAME was previously undefined (different 11120# than defined and empty). 11121# 11122# This macro is needed until we can rely on Autoconf 2.62, since earlier 11123# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 11124m4_define([lt_append], 11125[m4_define([$1], 11126 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 11127 11128 11129 11130# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 11131# ---------------------------------------------------------- 11132# Produce a SEP delimited list of all paired combinations of elements of 11133# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 11134# has the form PREFIXmINFIXSUFFIXn. 11135# Needed until we can rely on m4_combine added in Autoconf 2.62. 11136m4_define([lt_combine], 11137[m4_if(m4_eval([$# > 3]), [1], 11138 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 11139[[m4_foreach([_Lt_prefix], [$2], 11140 [m4_foreach([_Lt_suffix], 11141 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 11142 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 11143 11144 11145# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 11146# ----------------------------------------------------------------------- 11147# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 11148# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 11149m4_define([lt_if_append_uniq], 11150[m4_ifdef([$1], 11151 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 11152 [lt_append([$1], [$2], [$3])$4], 11153 [$5])], 11154 [lt_append([$1], [$2], [$3])$4])]) 11155 11156 11157# lt_dict_add(DICT, KEY, VALUE) 11158# ----------------------------- 11159m4_define([lt_dict_add], 11160[m4_define([$1($2)], [$3])]) 11161 11162 11163# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 11164# -------------------------------------------- 11165m4_define([lt_dict_add_subkey], 11166[m4_define([$1($2:$3)], [$4])]) 11167 11168 11169# lt_dict_fetch(DICT, KEY, [SUBKEY]) 11170# ---------------------------------- 11171m4_define([lt_dict_fetch], 11172[m4_ifval([$3], 11173 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 11174 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 11175 11176 11177# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 11178# ----------------------------------------------------------------- 11179m4_define([lt_if_dict_fetch], 11180[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 11181 [$5], 11182 [$6])]) 11183 11184 11185# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 11186# -------------------------------------------------------------- 11187m4_define([lt_dict_filter], 11188[m4_if([$5], [], [], 11189 [lt_join(m4_quote(m4_default([$4], [[, ]])), 11190 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 11191 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 11192]) 11193 11194# ltversion.m4 -- version numbers -*- Autoconf -*- 11195# 11196# Copyright (C) 2004, 2011-2018 Free Software Foundation, Inc. 11197# Written by Scott James Remnant, 2004 11198# 11199# This file is free software; the Free Software Foundation gives 11200# unlimited permission to copy and/or distribute it, with or without 11201# modifications, as long as this notice is preserved. 11202 11203# @configure_input@ 11204 11205# serial 4221 ltversion.m4 11206# This file is part of GNU Libtool 11207 11208m4_define([LT_PACKAGE_VERSION], [2.4.6.42-b88ce]) 11209m4_define([LT_PACKAGE_REVISION], [2.4.6.42]) 11210 11211AC_DEFUN([LTVERSION_VERSION], 11212[macro_version='2.4.6.42-b88ce' 11213macro_revision='2.4.6.42' 11214_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 11215_LT_DECL(, macro_revision, 0) 11216]) 11217 11218# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 11219# 11220# Copyright (C) 2004-2005, 2007, 2009, 2011-2018 Free Software 11221# Foundation, Inc. 11222# Written by Scott James Remnant, 2004. 11223# 11224# This file is free software; the Free Software Foundation gives 11225# unlimited permission to copy and/or distribute it, with or without 11226# modifications, as long as this notice is preserved. 11227 11228# serial 5 lt~obsolete.m4 11229 11230# These exist entirely to fool aclocal when bootstrapping libtool. 11231# 11232# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), 11233# which have later been changed to m4_define as they aren't part of the 11234# exported API, or moved to Autoconf or Automake where they belong. 11235# 11236# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 11237# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 11238# using a macro with the same name in our local m4/libtool.m4 it'll 11239# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 11240# and doesn't know about Autoconf macros at all.) 11241# 11242# So we provide this file, which has a silly filename so it's always 11243# included after everything else. This provides aclocal with the 11244# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 11245# because those macros already exist, or will be overwritten later. 11246# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 11247# 11248# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 11249# Yes, that means every name once taken will need to remain here until 11250# we give up compatibility with versions before 1.7, at which point 11251# we need to keep only those names which we still refer to. 11252 11253# This is to help aclocal find these macros, as it can't see m4_define. 11254AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 11255 11256m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 11257m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 11258m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 11259m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 11260m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 11261m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 11262m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 11263m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 11264m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 11265m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 11266m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 11267m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 11268m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 11269m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 11270m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 11271m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 11272m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 11273m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 11274m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 11275m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 11276m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 11277m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 11278m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 11279m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 11280m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 11281m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 11282m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 11283m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 11284m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 11285m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 11286m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 11287m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 11288m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 11289m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 11290m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 11291m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 11292m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 11293m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 11294m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 11295m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 11296m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 11297m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 11298m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 11299m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 11300m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 11301m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 11302m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 11303m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 11304m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 11305m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 11306m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 11307m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 11308m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 11309m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 11310m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 11311m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 11312m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 11313m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 11314m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 11315m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 11316m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 11317 11318dnl Copyright (c) 2002-2015 11319dnl The Xfce development team. All rights reserved. 11320dnl 11321dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>. 11322dnl 11323dnl This program is free software; you can redistribute it and/or modify 11324dnl it under the terms of the GNU General Public License as published by 11325dnl the Free Software Foundation; either version 2 of the License, or 11326dnl (at your option) any later version. 11327dnl 11328dnl This program is distributed in the hope that it will be useful, 11329dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11330dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11331dnl GNU General Public License for more details. 11332dnl 11333dnl You should have received a copy of the GNU General Public License along 11334dnl with this program; if not, write to the Free Software Foundation, Inc., 11335dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 11336dnl 11337dnl xdt-depends 11338dnl ----------- 11339dnl Contains M4 macros to check for software dependencies. 11340dnl Partly based on prior work of the XDG contributors. 11341dnl 11342 11343 11344 11345dnl We need recent a autoconf version 11346AC_PREREQ([2.60]) 11347 11348 11349 11350dnl XDT_PROG_PKG_CONFIG() 11351dnl 11352dnl Checks for the freedesktop.org pkg-config 11353dnl utility and sets the PKG_CONFIG environment 11354dnl variable to the full path if found. 11355dnl 11356AC_DEFUN([XDT_PROG_PKG_CONFIG], 11357[ 11358 # minimum supported version of pkg-config 11359 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0 11360 11361 m4_ifdef([PKG_PROG_PKG_CONFIG], 11362 [ 11363 PKG_PROG_PKG_CONFIG([$xdt_cv_PKG_CONFIG_MIN_VERSION]) 11364 11365 if test x"$PKG_CONFIG" = x""; then 11366 echo 11367 echo "*** Your version of pkg-config is too old. You need atleast" 11368 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config" 11369 echo "*** from the freedesktop.org software repository at" 11370 echo "***" 11371 echo "*** http://www.freedesktop.org/software/pkgconfig" 11372 echo "***" 11373 exit 1; 11374 fi 11375 ], 11376 [ 11377 echo 11378 echo "*** The pkg-config utility could not be found on your system." 11379 echo "*** Make sure it is in your path, or set the PKG_CONFIG" 11380 echo "*** environment variable to the full path to pkg-config." 11381 echo "*** You can download pkg-config from the freedesktop.org" 11382 echo "*** software repository at" 11383 echo "***" 11384 echo "*** http://www.freedesktop.org/software/pkgconfig" 11385 echo "***" 11386 exit 1 11387 ]) 11388]) 11389 11390 11391 11392dnl XDT_CHECK_PACKAGE(varname, package, version, [action-if], [action-if-not]) 11393dnl 11394dnl Checks if "package" >= "version" is installed on the 11395dnl target system, using the pkg-config utility. If the 11396dnl dependency is met, "varname"_CFLAGS, "varname"_LIBS, 11397dnl "varname"_VERSION and "varname"_REQUIRED_VERSION 11398dnl will be set and marked for substition. 11399dnl 11400dnl "varname"_REQUIRED_VERSION will be set to the value of 11401dnl "version". This is mostly useful to automatically 11402dnl place the correct version information into the RPM 11403dnl .spec file. 11404dnl 11405dnl In addition, if the dependency is met, "action-if" will 11406dnl be executed if given. 11407dnl 11408dnl If the package check fails, "action-if-not" will be 11409dnl executed. If this parameter isn't specified, a diagnostic 11410dnl message will be printed and the configure script will 11411dnl be terminated with exit code 1. 11412dnl 11413AC_DEFUN([XDT_CHECK_PACKAGE], 11414[ 11415 XDT_PROG_PKG_CONFIG() 11416 11417 AC_MSG_CHECKING([for $2 >= $3]) 11418 if $PKG_CONFIG "--atleast-version=$3" "$2" >/dev/null 2>&1; then 11419 $1_VERSION=`$PKG_CONFIG --modversion "$2"` 11420 AC_MSG_RESULT([$$1_VERSION]) 11421 11422 AC_MSG_CHECKING([$1_CFLAGS]) 11423 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` 11424 AC_MSG_RESULT([$$1_CFLAGS]) 11425 11426 AC_MSG_CHECKING([$1_LIBS]) 11427 $1_LIBS=`$PKG_CONFIG --libs "$2"` 11428 AC_MSG_RESULT([$$1_LIBS]) 11429 11430 $1_REQUIRED_VERSION=$3 11431 11432 AC_SUBST([$1_VERSION]) 11433 AC_SUBST([$1_CFLAGS]) 11434 AC_SUBST([$1_LIBS]) 11435 AC_SUBST([$1_REQUIRED_VERSION]) 11436 11437 ifelse([$4], , , [$4]) 11438 elif $PKG_CONFIG --exists "$2" >/dev/null 2>&1; then 11439 xdt_cv_version=`$PKG_CONFIG --modversion "$2"` 11440 AC_MSG_RESULT([found, but $xdt_cv_version]) 11441 11442 ifelse([$5], , 11443 [ 11444 echo "*** The required package $2 was found on your system," 11445 echo "*** but the installed version ($xdt_cv_version) is too old." 11446 echo "*** Please upgrade $2 to atleast version $3, or adjust" 11447 echo "*** the PKG_CONFIG_PATH environment variable if you installed" 11448 echo "*** the new version of the package in a nonstandard prefix so" 11449 echo "*** pkg-config is able to find it." 11450 exit 1 11451 ], [$5]) 11452 else 11453 AC_MSG_RESULT([not found]) 11454 11455 ifelse([$5], , 11456 [ 11457 echo "*** The required package $2 was not found on your system." 11458 echo "*** Please install $2 (atleast version $3) or adjust" 11459 echo "*** the PKG_CONFIG_PATH environment variable if you" 11460 echo "*** installed the package in a nonstandard prefix so that" 11461 echo "*** pkg-config is able to find it." 11462 exit 1 11463 ], [$5]) 11464 fi 11465]) 11466 11467 11468 11469dnl XDT_CHECK_OPTIONAL_PACKAGE(varname, package, version, optionname, helpstring, [default]) 11470dnl 11471dnl Checks for an optional dependency on "package" >= "version". "default" 11472dnl can be "yes" or "no" (defaults to "yes" if not specified) and controls 11473dnl whether configure should check this dependency by default, or only if 11474dnl the user explicitly enables it using a command line switch. 11475dnl 11476dnl This macro automatically adds a commandline switch based on the "optionname" 11477dnl parameter (--enable-optionname/--disable-optionname), which allows the 11478dnl user to explicitly control whether this optional dependency should be 11479dnl enabled or not. The "helpstring" parameter gives a brief(!) description 11480dnl about this dependency. 11481dnl 11482dnl If the user chose to enable this dependency and the required package 11483dnl was found, this macro defines the variable "varname"_FOUND and sets it 11484dnl to the string "yes", in addition to the 4 variables set by XDT_CHECK_PACKAGE. 11485dnl But "varname"_FOUND will not be marked for substition. Furthermore, 11486dnl a CPP define HAVE_"varname" will be placed in config.h (or added to 11487dnl the cc command line, depending on your configure.ac) and set to 11488dnl 1. 11489dnl 11490AC_DEFUN([XDT_CHECK_OPTIONAL_PACKAGE], 11491[ 11492 AC_REQUIRE([XDT_PROG_PKG_CONFIG]) 11493 11494 AC_ARG_ENABLE([$4], 11495AC_HELP_STRING([--enable-$4], [Enable checking for $5 (default=m4_default([$6], [yes]))]) 11496AC_HELP_STRING([--disable-$4], [Disable checking for $5]), 11497 [xdt_cv_$1_check=$enableval], [xdt_cv_$1_check=m4_default([$6], [yes])]) 11498 11499 if test x"$xdt_cv_$1_check" = x"yes"; then 11500 if $PKG_CONFIG --exists "$2 >= $3" >/dev/null 2>&1; then 11501 XDT_CHECK_PACKAGE([$1], [$2], [$3], 11502 [ 11503 AC_DEFINE([HAVE_$1], [1], [Define if $2 >= $3 present]) 11504 $1_FOUND="yes" 11505 ]) 11506 else 11507 AC_MSG_CHECKING([for optional package $2 >= $3]) 11508 AC_MSG_RESULT([not found]) 11509 fi 11510 else 11511 AC_MSG_CHECKING([for optional package $2]) 11512 AC_MSG_RESULT([disabled]) 11513 fi 11514 11515 AM_CONDITIONAL([HAVE_$1], [test x"$$1_FOUND" = x"yes"]) 11516]) 11517 11518 11519 11520dnl XDT_CHECK_LIBX11() 11521dnl 11522dnl Executes various checks for X11. Sets LIBX11_CFLAGS, LIBX11_LDFLAGS 11523dnl and LIBX11_LIBS (and marks them for substitution). In addition 11524dnl HAVE_LIBX11 is set to 1 in config.h, if the X window system and 11525dnl the development files are detected on the target system. 11526dnl 11527AC_DEFUN([XDT_CHECK_LIBX11], 11528[ 11529 AC_REQUIRE([AC_PATH_XTRA]) 11530 11531 LIBX11_CFLAGS= LIBX11_LDFLAGS= LIBX11_LIBS= 11532 if test x"$no_x" != x"yes"; then 11533 AC_CHECK_LIB([X11], [main], 11534 [ 11535 AC_DEFINE([HAVE_LIBX11], [1], [Define if libX11 is available]) 11536 LIBX11_CFLAGS="$X_CFLAGS" 11537 for option in $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS; do 11538 case "$option" in 11539 -L*) 11540 path=`echo $option | sed 's/^-L//'` 11541 if test x"$path" != x""; then 11542 LIBX11_LDFLAGS="$LIBX11_LDFLAGS -L$path" 11543 fi 11544 ;; 11545 *) 11546 LIBX11_LIBS="$LIBX11_LIBS $option" 11547 ;; 11548 esac 11549 done 11550 if ! echo $LIBX11_LIBS | grep -- '-lX11' >/dev/null; then 11551 LIBX11_LIBS="$LIBX11_LIBS -lX11" 11552 fi 11553 ], [], [$X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS]) 11554 fi 11555 AC_SUBST([LIBX11_CFLAGS]) 11556 AC_SUBST([LIBX11_LDFLAGS]) 11557 AC_SUBST([LIBX11_LIBS]) 11558]) 11559 11560 11561 11562dnl XDT_CHECK_LIBX11_REQUIRE() 11563dnl 11564dnl Similar to XDT_CHECK_LIBX11(), but terminates with an error if 11565dnl the X window system and development files aren't detected on the 11566dnl target system. 11567dnl 11568AC_DEFUN([XDT_CHECK_LIBX11_REQUIRE], 11569[ 11570 AC_REQUIRE([XDT_CHECK_LIBX11]) 11571 11572 if test x"$no_x" = x"yes"; then 11573 AC_MSG_ERROR([X Window system libraries and header files are required]) 11574 fi 11575]) 11576 11577 11578 11579dnl XDT_CHECK_LIBSM() 11580dnl 11581dnl Checks whether the session management library is present on the 11582dnl target system, and sets LIBSM_CFLAGS, LIBSM_LDFLAGS and LIBSM_LIBS 11583dnl properly. In addition, HAVE_LIBSM will be set to 1 in config.h 11584dnl if libSM is detected. 11585dnl 11586AC_DEFUN([XDT_CHECK_LIBSM], 11587[ 11588 AC_REQUIRE([XDT_CHECK_LIBX11]) 11589 11590 LIBSM_CFLAGS= LIBSM_LDFLAGS= LIBSM_LIBS= 11591 if test x"$no_x" != x"yes"; then 11592 AC_CHECK_LIB([SM], [SmcSaveYourselfDone], 11593 [ 11594 AC_DEFINE([HAVE_LIBSM], [1], [Define if libSM is available]) 11595 LIBSM_CFLAGS="$LIBX11_CFLAGS" 11596 LIBSM_LDFLAGS="$LIBX11_LDFLAGS" 11597 LIBSM_LIBS="$LIBX11_LIBS" 11598 if ! echo $LIBSM_LIBS | grep -- '-lSM' >/dev/null; then 11599 LIBSM_LIBS="$LIBSM_LIBS -lSM -lICE" 11600 fi 11601 ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lICE]) 11602 fi 11603 AC_SUBST([LIBSM_CFLAGS]) 11604 AC_SUBST([LIBSM_LDFLAGS]) 11605 AC_SUBST([LIBSM_LIBS]) 11606]) 11607 11608 11609 11610dnl XDT_CHECK_LIBXPM() 11611dnl 11612dnl Checks if the Xpm library is present on the target system, and 11613dnl sets LIBXPM_CFLAGS, LIBXPM_LDFLAGS and LIBXPM_LIBS. In addition, 11614dnl HAVE_LIBXPM will be set to 1 in config.h if libXpm is detected. 11615dnl 11616AC_DEFUN([XDT_CHECK_LIBXPM], 11617[ 11618 AC_REQUIRE([XDT_CHECK_LIBX11]) 11619 11620 LIBXPM_CFLAGS= LIBXPM_LDFLAGS= LIBXPM_LIBS= 11621 if test "$no_x" != "yes"; then 11622 AC_CHECK_LIB([Xpm], [main], 11623 [ 11624 AC_DEFINE([HAVE_LIBXPM], [1], [Define if libXpm is available]) 11625 LIBXPM_CFLAGS="$LIBX11_CFLAGS" 11626 LIBXPM_LDFLAGS="$LIBX11_LDFLAGS" 11627 LIBXPM_LIBS="$LIBX11_LIBS" 11628 if ! echo $LIBXPM_LIBS | grep -- '-lXpm' >/dev/null; then 11629 LIBXPM_LIBS="$LIBXPM_LIBS -lXpm" 11630 fi 11631 ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lXpm]) 11632 fi 11633 AC_SUBST([LIBXPM_CFLAGS]) 11634 AC_SUBST([LIBXPM_LDFLAGS]) 11635 AC_SUBST([LIBXPM_LIBS]) 11636]) 11637 11638 11639 11640dnl XDT_CHECK_LIBXPM_REQUIRE() 11641dnl 11642dnl Similar to XDT_CHECK_LIBXPM(), but fails if the Xpm library isn't 11643dnl present on the target system. 11644dnl 11645AC_DEFUN([XDT_CHECK_LIBXPM_REQUIRE], 11646[ 11647 AC_REQUIRE([XDT_CHECK_LIBX11_REQUIRE]) 11648 AC_REQUIRE([XDT_CHECK_LIBXPM]) 11649 11650 if test x"$LIBXPM_LIBS" = x""; then 11651 AC_MSG_ERROR([The Xpm library was not found on your system]) 11652 fi 11653]) 11654 11655 11656dnl Copyright (c) 2002-2015 11657dnl The Xfce development team. All rights reserved. 11658dnl 11659dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>. 11660dnl 11661dnl This program is free software; you can redistribute it and/or modify 11662dnl it under the terms of the GNU General Public License as published by 11663dnl the Free Software Foundation; either version 2 of the License, or 11664dnl (at your option) any later version. 11665dnl 11666dnl This program is distributed in the hope that it will be useful, 11667dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11668dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11669dnl GNU General Public License for more details. 11670dnl 11671dnl You should have received a copy of the GNU General Public License along 11672dnl with this program; if not, write to the Free Software Foundation, Inc., 11673dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 11674dnl 11675dnl xdt-depends 11676dnl ----------- 11677dnl Contains M4 macros to check for software dependencies. 11678dnl Partly based on prior work of the XDG contributors. 11679dnl 11680 11681 11682 11683dnl We need recent a autoconf version 11684AC_PREREQ([2.60]) 11685 11686 11687dnl XDT_SUPPORTED_FLAGS(VAR, FLAGS) 11688dnl 11689dnl For each token in FLAGS, checks to be sure the compiler supports 11690dnl the flag, and if so, adds each one to VAR. 11691dnl 11692AC_DEFUN([XDT_SUPPORTED_FLAGS], 11693[ 11694 for flag in $2; do 11695 AC_MSG_CHECKING([if $CC supports $flag]) 11696 saved_CFLAGS="$CFLAGS" 11697 CFLAGS="$CFLAGS $flag" 11698 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ])], [flag_supported=yes], [flag_supported=no]) 11699 CFLAGS="$saved_CFLAGS" 11700 AC_MSG_RESULT([$flag_supported]) 11701 11702 if test "x$flag_supported" = "xyes"; then 11703 $1="$$1 $flag" 11704 fi 11705 done 11706]) 11707 11708 11709 11710dnl XDT_FEATURE_DEBUG(default_level=minimum) 11711dnl 11712AC_DEFUN([XDT_FEATURE_DEBUG], 11713[ 11714 dnl weird indentation to keep output indentation correct 11715 AC_ARG_ENABLE([debug], 11716 AC_HELP_STRING([--enable-debug@<:@=no|minimum|yes|full@:>@], 11717 [Build with debugging support @<:@default=m4_default([$1], [minimum])@:>@]) 11718AC_HELP_STRING([--disable-debug], [Include no debugging support]), 11719 [enable_debug=$enableval], [enable_debug=m4_default([$1], [minimum])]) 11720 11721 AC_MSG_CHECKING([whether to build with debugging support]) 11722 if test x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then 11723 AC_DEFINE([DEBUG], [1], [Define for debugging support]) 11724 11725 xdt_cv_additional_CFLAGS="-DXFCE_DISABLE_DEPRECATED \ 11726 -Wall -Wextra \ 11727 -Wno-missing-field-initializers \ 11728 -Wno-unused-parameter -Wold-style-definition \ 11729 -Wdeclaration-after-statement \ 11730 -Wmissing-declarations \ 11731 -Wmissing-noreturn -Wshadow -Wpointer-arith \ 11732 -Wcast-align -Wformat -Wformat-security -Wformat-y2k \ 11733 -Winit-self -Wmissing-include-dirs -Wundef \ 11734 -Wnested-externs" 11735 CPPFLAGS="$CPPFLAGS" 11736 11737 if test x`uname` = x"Linux"; then 11738 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -fstack-protector" 11739 fi 11740 11741 dnl # signal.h inline is crapy on openbsd 11742 if test x`uname` != x"OpenBSD"; then 11743 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -Wredundant-decls" 11744 fi 11745 11746 if test x"$enable_debug" = x"full"; then 11747 AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support]) 11748 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g -Werror" 11749 CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG" 11750 AC_MSG_RESULT([full]) 11751 else 11752 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g" 11753 AC_MSG_RESULT([yes]) 11754 fi 11755 11756 XDT_SUPPORTED_FLAGS([supported_CFLAGS], [$xdt_cv_additional_CFLAGS]) 11757 11758 ifelse([$CXX], , , [ 11759 dnl FIXME: should test on c++ compiler, but the following line causes 11760 dnl autoconf errors for projects that don't check for a 11761 dnl c++ compiler at all. 11762 dnl AC_LANG_PUSH([C++]) 11763 dnl XDT_SUPPORTED_FLAGS([supported_CXXFLAGS], [$xdt_cv_additional_CFLAGS]) 11764 dnl AC_LANG_POP() 11765 dnl instead, just use supported_CFLAGS... 11766 supported_CXXFLAGS="$supported_CFLAGS" 11767 ]) 11768 11769 CFLAGS="$CFLAGS $supported_CFLAGS" 11770 CXXFLAGS="$CXXFLAGS $supported_CXXFLAGS" 11771 else 11772 CPPFLAGS="$CPPFLAGS -DNDEBUG" 11773 11774 if test x"$enable_debug" = x"no"; then 11775 CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT" 11776 AC_MSG_RESULT([no]) 11777 else 11778 AC_MSG_RESULT([minimum]) 11779 fi 11780 fi 11781]) 11782 11783 11784dnl XDT_FEATURE_VISIBILITY() 11785dnl 11786dnl Checks to see if the compiler supports the 'visibility' attribute 11787dnl If so, adds -DHAVE_GNUC_VISIBILTY to CPPFLAGS. Also sets the 11788dnl automake conditional HAVE_GNUC_VISIBILITY. 11789dnl 11790AC_DEFUN([XDT_FEATURE_VISIBILITY], 11791[ 11792 AC_ARG_ENABLE([visibility], 11793 AC_HELP_STRING([--disable-visibility], 11794 [Don't use ELF visibility attributes]), 11795 [enable_visibility=$enableval], [enable_visibility=yes]) 11796 have_gnuc_visibility=no 11797 if test "x$enable_visibility" != "xno"; then 11798 XDT_SUPPORTED_FLAGS([xdt_vis_test_cflags], [-Wall -Werror -Wno-unused-parameter]) 11799 saved_CFLAGS="$CFLAGS" 11800 CFLAGS="$CFLAGS $xdt_vis_test_cflags" 11801 AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute]) 11802 AC_COMPILE_IFELSE([AC_LANG_SOURCE( 11803 [ 11804 void test_default (void); 11805 void test_hidden (void); 11806 11807 void __attribute__ ((visibility("default"))) test_default (void) {} 11808 void __attribute__ ((visibility("hidden"))) test_hidden (void) {} 11809 11810 int main (int argc, char **argv) { 11811 test_default (); 11812 test_hidden (); 11813 return 0; 11814 } 11815 ])], 11816 [ 11817 have_gnuc_visibility=yes 11818 AC_MSG_RESULT([yes]) 11819 ], 11820 [ 11821 AC_MSG_RESULT([no]) 11822 ]) 11823 CFLAGS="$saved_CFLAGS" 11824 fi 11825 11826 if test "x$have_gnuc_visibility" = "xyes"; then 11827 CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY" 11828 xdt_vis_hidden_cflags="" 11829 XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-xldscope=hidden]) 11830 if test "x$xdt_vis_hidden_cflags" = "x"; then 11831 XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden]) 11832 fi 11833 CFLAGS="$CFLAGS $xdt_vis_hidden_cflags" 11834 fi 11835 11836 AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test "x$have_gnuc_visibility" = "xyes"]) 11837]) 11838 11839dnl XDT_FEATURE_LINKER_OPTS 11840dnl 11841dnl Checks for and enables any special linker optimizations. 11842dnl 11843AC_DEFUN([XDT_FEATURE_LINKER_OPTS], 11844[ 11845 AC_ARG_ENABLE([linker-opts], 11846 AC_HELP_STRING([--disable-linker-opts], 11847 [Disable linker optimizations]), 11848 [enable_linker_opts=$enableval], [enable_linker_opts=yes]) 11849 11850 if test "x$enable_linker_opts" != "xno"; then 11851 if test x`uname` != x"OpenBSD"; then 11852 AC_MSG_CHECKING([whether $LD accepts --as-needed]) 11853 case `$LD --as-needed -v 2>&1 </dev/null` in 11854 *GNU* | *'with BFD'*) 11855 LDFLAGS="$LDFLAGS -Wl,--as-needed" 11856 AC_MSG_RESULT([yes]) 11857 ;; 11858 *) 11859 AC_MSG_RESULT([no]) 11860 ;; 11861 esac 11862 fi 11863 AC_MSG_CHECKING([whether $LD accepts -O1]) 11864 case `$LD -O1 -v 2>&1 </dev/null` in 11865 *GNU* | *'with BFD'*) 11866 LDFLAGS="$LDFLAGS -Wl,-O1" 11867 AC_MSG_RESULT([yes]) 11868 ;; 11869 *) 11870 AC_MSG_RESULT([no]) 11871 ;; 11872 esac 11873 fi 11874]) 11875 11876dnl Copyright (c) 2002-2015 11877dnl The Xfce development team. All rights reserved. 11878dnl 11879dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>. 11880dnl 11881dnl This program is free software; you can redistribute it and/or modify 11882dnl it under the terms of the GNU General Public License as published by 11883dnl the Free Software Foundation; either version 2 of the License, or 11884dnl (at your option) any later version. 11885dnl 11886dnl This program is distributed in the hope that it will be useful, 11887dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11888dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11889dnl GNU General Public License for more details. 11890dnl 11891dnl You should have received a copy of the GNU General Public License along 11892dnl with this program; if not, write to the Free Software Foundation, Inc., 11893dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 11894dnl 11895dnl xdt-i18n 11896dnl -------- 11897dnl Internalization M4 macros. 11898dnl 11899 11900 11901dnl XDT_I18N(LINGUAS [, PACKAGE]) 11902dnl 11903dnl This macro takes care of setting up everything for i18n support. 11904dnl 11905dnl If PACKAGE isn't specified, it defaults to the package tarname; see 11906dnl the description of AC_INIT() for an explanation of what makes up 11907dnl the package tarname. Normally, you don't need to specify PACKAGE, 11908dnl but you can stick with the default. 11909dnl 11910AC_DEFUN([XDT_I18N], 11911[ 11912 dnl Substitute GETTEXT_PACKAGE variable 11913 GETTEXT_PACKAGE=m4_default([$2], [AC_PACKAGE_TARNAME()]) 11914 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Name of default gettext domain]) 11915 AC_SUBST([GETTEXT_PACKAGE]) 11916 11917 dnl gettext and stuff 11918 ALL_LINGUAS="$1" 11919 AM_GLIB_GNU_GETTEXT() 11920 11921 dnl This is required on some Linux systems 11922 AC_CHECK_FUNC([bind_textdomain_codeset]) 11923 11924 dnl Determine where to install locale files 11925 AC_MSG_CHECKING([for locales directory]) 11926 AC_ARG_WITH([locales-dir], 11927 [ 11928 AC_HELP_STRING([--with-locales-dir=DIR], [Install locales into DIR]) 11929 ], [localedir=$withval], 11930 [ 11931 if test x"$CATOBJEXT" = x".mo"; then 11932 localedir=$libdir/locale 11933 else 11934 localedir=$datadir/locale 11935 fi 11936 ]) 11937 AC_MSG_RESULT([$localedir]) 11938 AC_SUBST([localedir]) 11939 11940 dnl Determine additional xgettext flags 11941 AC_MSG_CHECKING([for additional xgettext flags]) 11942 if test x"$XGETTEXT_ARGS" = x""; then 11943 XGETTEXT_ARGS="--keyword=Q_ --from-code=UTF-8"; 11944 else 11945 XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_ --from-code=UTF-8"; 11946 fi 11947 AC_SUBST([XGETTEXT_ARGS]) 11948 AC_MSG_RESULT([$XGETTEXT_ARGS]) 11949]) 11950 11951 11952