Changeset 2165 for branches/rel3/psModules/aclocal.m4
- Timestamp:
- Oct 15, 2004, 11:44:22 AM (22 years ago)
- File:
-
- 1 edited
-
branches/rel3/psModules/aclocal.m4 (modified) (100 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/rel3/psModules/aclocal.m4
r2157 r2165 1 # generated automatically by aclocal 1.8.3 -*- Autoconf -*-2 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 20041 # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*- 2 3 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 4 4 # Free Software Foundation, Inc. 5 5 # This file is free software; the Free Software Foundation … … 11 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12 12 # PARTICULAR PURPOSE. 13 14 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- 15 16 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. 17 18 # This program is free software; you can redistribute it and/or modify 19 # it under the terms of the GNU General Public License as published by 20 # the Free Software Foundation; either version 2, or (at your option) 21 # any later version. 22 23 # This program is distributed in the hope that it will be useful, 24 # but WITHOUT ANY WARRANTY; without even the implied warranty of 25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26 # GNU General Public License for more details. 27 28 # You should have received a copy of the GNU General Public License 29 # along with this program; if not, write to the Free Software 30 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 31 # 02111-1307, USA. 32 33 AC_PREREQ([2.52]) 34 35 # serial 6 36 37 # When config.status generates a header, we must update the stamp-h file. 38 # This file resides in the same directory as the config header 39 # that is generated. We must strip everything past the first ":", 40 # and everything past the last "/". 41 42 # _AM_DIRNAME(PATH) 43 # ----------------- 44 # Like AS_DIRNAME, only do it during macro expansion 45 AC_DEFUN([_AM_DIRNAME], 46 [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1, 47 m4_if(regexp([$1], [^//\([^/]\|$\)]), -1, 48 m4_if(regexp([$1], [^/.*]), -1, 49 [.], 50 patsubst([$1], [^\(/\).*], [\1])), 51 patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])), 52 patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl 53 ])# _AM_DIRNAME 54 55 56 # The stamp files are numbered to have different names. 57 # We could number them on a directory basis, but that's additional 58 # complications, let's have a unique counter. 59 m4_define([_AM_STAMP_Count], [0]) 60 61 62 # _AM_STAMP(HEADER) 63 # ----------------- 64 # The name of the stamp file for HEADER. 65 AC_DEFUN([_AM_STAMP], 66 [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl 67 AS_ESCAPE(_AM_DIRNAME(patsubst([$1], 68 [:.*])))/stamp-h[]_AM_STAMP_Count]) 69 70 71 # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS) 72 # ------------------------------------------------------------ 73 # We used to try to get a real timestamp in stamp-h. But the fear is that 74 # that will cause unnecessary cvs conflicts. 75 AC_DEFUN([_AM_CONFIG_HEADER], 76 [# Add the stamp file to the list of files AC keeps track of, 77 # along with our hook. 78 AC_CONFIG_HEADERS([$1], 79 [# update the timestamp 80 echo 'timestamp for $1' >"_AM_STAMP([$1])" 81 $2], 82 [$3]) 83 ])# _AM_CONFIG_HEADER 84 85 86 # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS) 87 # -------------------------------------------------------------- 88 AC_DEFUN([AM_CONFIG_HEADER], 89 [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])]) 90 ])# AM_CONFIG_HEADER 91 92 # Do all the work for Automake. -*- Autoconf -*- 93 94 # This macro actually does too much some checks are only needed if 95 # your package does certain things. But this isn't really a big deal. 96 97 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 98 # Free Software Foundation, Inc. 99 100 # This program is free software; you can redistribute it and/or modify 101 # it under the terms of the GNU General Public License as published by 102 # the Free Software Foundation; either version 2, or (at your option) 103 # any later version. 104 105 # This program is distributed in the hope that it will be useful, 106 # but WITHOUT ANY WARRANTY; without even the implied warranty of 107 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 108 # GNU General Public License for more details. 109 110 # You should have received a copy of the GNU General Public License 111 # along with this program; if not, write to the Free Software 112 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 113 # 02111-1307, USA. 114 115 # serial 8 116 117 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 118 # written in clear, in which case automake, when reading aclocal.m4, 119 # will think it sees a *use*, and therefore will trigger all it's 120 # C support machinery. Also note that it means that autoscan, seeing 121 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... 122 123 124 AC_PREREQ([2.52]) 125 126 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 127 # the ones we care about. 128 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 129 130 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 131 # AM_INIT_AUTOMAKE([OPTIONS]) 132 # ----------------------------------------------- 133 # The call with PACKAGE and VERSION arguments is the old style 134 # call (pre autoconf-2.50), which is being phased out. PACKAGE 135 # and VERSION should now be passed to AC_INIT and removed from 136 # the call to AM_INIT_AUTOMAKE. 137 # We support both call styles for the transition. After 138 # the next Automake release, Autoconf can make the AC_INIT 139 # arguments mandatory, and then we can depend on a new Autoconf 140 # release and drop the old call support. 141 AC_DEFUN([AM_INIT_AUTOMAKE], 142 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 143 AC_REQUIRE([AC_PROG_INSTALL])dnl 144 # test to see if srcdir already configured 145 if test "`cd $srcdir && pwd`" != "`pwd`" && 146 test -f $srcdir/config.status; then 147 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 148 fi 149 150 # Define the identity of the package. 151 dnl Distinguish between old-style and new-style calls. 152 m4_ifval([$2], 153 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 154 AC_SUBST([PACKAGE], [$1])dnl 155 AC_SUBST([VERSION], [$2])], 156 [_AM_SET_OPTIONS([$1])dnl 157 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl 158 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl 159 160 _AM_IF_OPTION([no-define],, 161 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 162 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 163 164 # Some tools Automake needs. 165 AC_REQUIRE([AM_SANITY_CHECK])dnl 166 AC_REQUIRE([AC_ARG_PROGRAM])dnl 167 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 168 AM_MISSING_PROG(AUTOCONF, autoconf) 169 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 170 AM_MISSING_PROG(AUTOHEADER, autoheader) 171 AM_MISSING_PROG(MAKEINFO, makeinfo) 172 AM_MISSING_PROG(AMTAR, tar) 173 AM_PROG_INSTALL_SH 174 AM_PROG_INSTALL_STRIP 175 # We need awk for the "check" target. The system "awk" is bad on 176 # some platforms. 177 AC_REQUIRE([AC_PROG_AWK])dnl 178 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 179 180 _AM_IF_OPTION([no-dependencies],, 181 [AC_PROVIDE_IFELSE([AC_PROG_][CC], 182 [_AM_DEPENDENCIES(CC)], 183 [define([AC_PROG_][CC], 184 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl 185 AC_PROVIDE_IFELSE([AC_PROG_][CXX], 186 [_AM_DEPENDENCIES(CXX)], 187 [define([AC_PROG_][CXX], 188 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl 189 ]) 190 ]) 191 192 # Copyright 2002 Free Software Foundation, Inc. 193 194 # This program is free software; you can redistribute it and/or modify 195 # it under the terms of the GNU General Public License as published by 196 # the Free Software Foundation; either version 2, or (at your option) 197 # any later version. 198 199 # This program is distributed in the hope that it will be useful, 200 # but WITHOUT ANY WARRANTY; without even the implied warranty of 201 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 202 # GNU General Public License for more details. 203 204 # You should have received a copy of the GNU General Public License 205 # along with this program; if not, write to the Free Software 206 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 207 208 # AM_AUTOMAKE_VERSION(VERSION) 209 # ---------------------------- 210 # Automake X.Y traces this macro to ensure aclocal.m4 has been 211 # generated from the m4 files accompanying Automake X.Y. 212 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"]) 213 214 # AM_SET_CURRENT_AUTOMAKE_VERSION 215 # ------------------------------- 216 # Call AM_AUTOMAKE_VERSION so it can be traced. 217 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 218 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 219 [AM_AUTOMAKE_VERSION([1.6.3])]) 220 221 # Helper functions for option handling. -*- Autoconf -*- 222 223 # Copyright 2001, 2002 Free Software Foundation, Inc. 224 225 # This program is free software; you can redistribute it and/or modify 226 # it under the terms of the GNU General Public License as published by 227 # the Free Software Foundation; either version 2, or (at your option) 228 # any later version. 229 230 # This program is distributed in the hope that it will be useful, 231 # but WITHOUT ANY WARRANTY; without even the implied warranty of 232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 233 # GNU General Public License for more details. 234 235 # You should have received a copy of the GNU General Public License 236 # along with this program; if not, write to the Free Software 237 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 238 # 02111-1307, USA. 239 240 # serial 2 241 242 # _AM_MANGLE_OPTION(NAME) 243 # ----------------------- 244 AC_DEFUN([_AM_MANGLE_OPTION], 245 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 246 247 # _AM_SET_OPTION(NAME) 248 # ------------------------------ 249 # Set option NAME. Presently that only means defining a flag for this option. 250 AC_DEFUN([_AM_SET_OPTION], 251 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 252 253 # _AM_SET_OPTIONS(OPTIONS) 254 # ---------------------------------- 255 # OPTIONS is a space-separated list of Automake options. 256 AC_DEFUN([_AM_SET_OPTIONS], 257 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 258 259 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 260 # ------------------------------------------- 261 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 262 AC_DEFUN([_AM_IF_OPTION], 263 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 264 265 # 266 # Check to make sure that the build environment is sane. 267 # 268 269 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. 270 271 # This program is free software; you can redistribute it and/or modify 272 # it under the terms of the GNU General Public License as published by 273 # the Free Software Foundation; either version 2, or (at your option) 274 # any later version. 275 276 # This program is distributed in the hope that it will be useful, 277 # but WITHOUT ANY WARRANTY; without even the implied warranty of 278 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 279 # GNU General Public License for more details. 280 281 # You should have received a copy of the GNU General Public License 282 # along with this program; if not, write to the Free Software 283 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 284 # 02111-1307, USA. 285 286 # serial 3 287 288 # AM_SANITY_CHECK 289 # --------------- 290 AC_DEFUN([AM_SANITY_CHECK], 291 [AC_MSG_CHECKING([whether build environment is sane]) 292 # Just in case 293 sleep 1 294 echo timestamp > conftest.file 295 # Do `set' in a subshell so we don't clobber the current shell's 296 # arguments. Must try -L first in case configure is actually a 297 # symlink; some systems play weird games with the mod time of symlinks 298 # (eg FreeBSD returns the mod time of the symlink's containing 299 # directory). 300 if ( 301 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 302 if test "$[*]" = "X"; then 303 # -L didn't work. 304 set X `ls -t $srcdir/configure conftest.file` 305 fi 306 rm -f conftest.file 307 if test "$[*]" != "X $srcdir/configure conftest.file" \ 308 && test "$[*]" != "X conftest.file $srcdir/configure"; then 309 310 # If neither matched, then we have a broken ls. This can happen 311 # if, for instance, CONFIG_SHELL is bash and it inherits a 312 # broken ls alias from the environment. This has actually 313 # happened. Such a system could not be considered "sane". 314 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 315 alias in your environment]) 316 fi 317 318 test "$[2]" = conftest.file 319 ) 320 then 321 # Ok. 322 : 323 else 324 AC_MSG_ERROR([newly created file is older than distributed files! 325 Check your system clock]) 326 fi 327 AC_MSG_RESULT(yes)]) 328 329 # -*- Autoconf -*- 330 331 332 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. 333 334 # This program is free software; you can redistribute it and/or modify 335 # it under the terms of the GNU General Public License as published by 336 # the Free Software Foundation; either version 2, or (at your option) 337 # any later version. 338 339 # This program is distributed in the hope that it will be useful, 340 # but WITHOUT ANY WARRANTY; without even the implied warranty of 341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 342 # GNU General Public License for more details. 343 344 # You should have received a copy of the GNU General Public License 345 # along with this program; if not, write to the Free Software 346 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 347 # 02111-1307, USA. 348 349 # serial 3 350 351 # AM_MISSING_PROG(NAME, PROGRAM) 352 # ------------------------------ 353 AC_DEFUN([AM_MISSING_PROG], 354 [AC_REQUIRE([AM_MISSING_HAS_RUN]) 355 $1=${$1-"${am_missing_run}$2"} 356 AC_SUBST($1)]) 357 358 359 # AM_MISSING_HAS_RUN 360 # ------------------ 361 # Define MISSING if not defined so far and test if it supports --run. 362 # If it does, set am_missing_run to use it, otherwise, to nothing. 363 AC_DEFUN([AM_MISSING_HAS_RUN], 364 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 365 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 366 # Use eval to expand $SHELL 367 if eval "$MISSING --run true"; then 368 am_missing_run="$MISSING --run " 369 else 370 am_missing_run= 371 AC_MSG_WARN([`missing' script is too old or missing]) 372 fi 373 ]) 374 375 # AM_AUX_DIR_EXPAND 376 377 # Copyright 2001 Free Software Foundation, Inc. 378 379 # This program is free software; you can redistribute it and/or modify 380 # it under the terms of the GNU General Public License as published by 381 # the Free Software Foundation; either version 2, or (at your option) 382 # any later version. 383 384 # This program is distributed in the hope that it will be useful, 385 # but WITHOUT ANY WARRANTY; without even the implied warranty of 386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 387 # GNU General Public License for more details. 388 389 # You should have received a copy of the GNU General Public License 390 # along with this program; if not, write to the Free Software 391 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 392 # 02111-1307, USA. 393 394 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 395 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 396 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. 397 # 398 # Of course, Automake must honor this variable whenever it calls a 399 # tool from the auxiliary directory. The problem is that $srcdir (and 400 # therefore $ac_aux_dir as well) can be either absolute or relative, 401 # depending on how configure is run. This is pretty annoying, since 402 # it makes $ac_aux_dir quite unusable in subdirectories: in the top 403 # source directory, any form will work fine, but in subdirectories a 404 # relative path needs to be adjusted first. 405 # 406 # $ac_aux_dir/missing 407 # fails when called from a subdirectory if $ac_aux_dir is relative 408 # $top_srcdir/$ac_aux_dir/missing 409 # fails if $ac_aux_dir is absolute, 410 # fails when called from a subdirectory in a VPATH build with 411 # a relative $ac_aux_dir 412 # 413 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 414 # are both prefixed by $srcdir. In an in-source build this is usually 415 # harmless because $srcdir is `.', but things will broke when you 416 # start a VPATH build or use an absolute $srcdir. 417 # 418 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 419 # iff we strip the leading $srcdir from $ac_aux_dir. That would be: 420 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 421 # and then we would define $MISSING as 422 # MISSING="\${SHELL} $am_aux_dir/missing" 423 # This will work as long as MISSING is not called from configure, because 424 # unfortunately $(top_srcdir) has no meaning in configure. 425 # However there are other variables, like CC, which are often used in 426 # configure, and could therefore not use this "fixed" $ac_aux_dir. 427 # 428 # Another solution, used here, is to always expand $ac_aux_dir to an 429 # absolute PATH. The drawback is that using absolute paths prevent a 430 # configured tree to be moved without reconfiguration. 431 432 # Rely on autoconf to set up CDPATH properly. 433 AC_PREREQ([2.50]) 434 435 AC_DEFUN([AM_AUX_DIR_EXPAND], [ 436 # expand $ac_aux_dir to an absolute path 437 am_aux_dir=`cd $ac_aux_dir && pwd` 438 ]) 439 440 # AM_PROG_INSTALL_SH 441 # ------------------ 442 # Define $install_sh. 443 444 # Copyright 2001 Free Software Foundation, Inc. 445 446 # This program is free software; you can redistribute it and/or modify 447 # it under the terms of the GNU General Public License as published by 448 # the Free Software Foundation; either version 2, or (at your option) 449 # any later version. 450 451 # This program is distributed in the hope that it will be useful, 452 # but WITHOUT ANY WARRANTY; without even the implied warranty of 453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 454 # GNU General Public License for more details. 455 456 # You should have received a copy of the GNU General Public License 457 # along with this program; if not, write to the Free Software 458 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 459 # 02111-1307, USA. 460 461 AC_DEFUN([AM_PROG_INSTALL_SH], 462 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 463 install_sh=${install_sh-"$am_aux_dir/install-sh"} 464 AC_SUBST(install_sh)]) 465 466 # AM_PROG_INSTALL_STRIP 467 468 # Copyright 2001 Free Software Foundation, Inc. 469 470 # This program is free software; you can redistribute it and/or modify 471 # it under the terms of the GNU General Public License as published by 472 # the Free Software Foundation; either version 2, or (at your option) 473 # any later version. 474 475 # This program is distributed in the hope that it will be useful, 476 # but WITHOUT ANY WARRANTY; without even the implied warranty of 477 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 478 # GNU General Public License for more details. 479 480 # You should have received a copy of the GNU General Public License 481 # along with this program; if not, write to the Free Software 482 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 483 # 02111-1307, USA. 484 485 # One issue with vendor `install' (even GNU) is that you can't 486 # specify the program used to strip binaries. This is especially 487 # annoying in cross-compiling environments, where the build's strip 488 # is unlikely to handle the host's binaries. 489 # Fortunately install-sh will honor a STRIPPROG variable, so we 490 # always use install-sh in `make install-strip', and initialize 491 # STRIPPROG with the value of the STRIP variable (set by the user). 492 AC_DEFUN([AM_PROG_INSTALL_STRIP], 493 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 494 # Installed binaries are usually stripped using `strip' when the user 495 # run `make install-strip'. However `strip' might not be the right 496 # tool to use in cross-compilation environments, therefore Automake 497 # will honor the `STRIP' environment variable to overrule this program. 498 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 499 if test "$cross_compiling" != no; then 500 AC_CHECK_TOOL([STRIP], [strip], :) 501 fi 502 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 503 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 504 505 # serial 4 -*- Autoconf -*- 506 507 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc. 508 509 # This program is free software; you can redistribute it and/or modify 510 # it under the terms of the GNU General Public License as published by 511 # the Free Software Foundation; either version 2, or (at your option) 512 # any later version. 513 514 # This program is distributed in the hope that it will be useful, 515 # but WITHOUT ANY WARRANTY; without even the implied warranty of 516 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 517 # GNU General Public License for more details. 518 519 # You should have received a copy of the GNU General Public License 520 # along with this program; if not, write to the Free Software 521 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 522 # 02111-1307, USA. 523 524 525 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 526 # written in clear, in which case automake, when reading aclocal.m4, 527 # will think it sees a *use*, and therefore will trigger all it's 528 # C support machinery. Also note that it means that autoscan, seeing 529 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... 530 531 532 533 # _AM_DEPENDENCIES(NAME) 534 # ---------------------- 535 # See how the compiler implements dependency checking. 536 # NAME is "CC", "CXX", "GCJ", or "OBJC". 537 # We try a few techniques and use that to set a single cache variable. 538 # 539 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 540 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 541 # dependency, and given that the user is not expected to run this macro, 542 # just rely on AC_PROG_CC. 543 AC_DEFUN([_AM_DEPENDENCIES], 544 [AC_REQUIRE([AM_SET_DEPDIR])dnl 545 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 546 AC_REQUIRE([AM_MAKE_INCLUDE])dnl 547 AC_REQUIRE([AM_DEP_TRACK])dnl 548 549 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 550 [$1], CXX, [depcc="$CXX" am_compiler_list=], 551 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 552 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 553 [depcc="$$1" am_compiler_list=]) 554 555 AC_CACHE_CHECK([dependency style of $depcc], 556 [am_cv_$1_dependencies_compiler_type], 557 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 558 # We make a subdir and do the tests there. Otherwise we can end up 559 # making bogus files that we don't know about and never remove. For 560 # instance it was reported that on HP-UX the gcc test will end up 561 # making a dummy file named `D' -- because `-MD' means `put the output 562 # in D'. 563 mkdir conftest.dir 564 # Copy depcomp to subdir because otherwise we won't find it if we're 565 # using a relative directory. 566 cp "$am_depcomp" conftest.dir 567 cd conftest.dir 568 569 am_cv_$1_dependencies_compiler_type=none 570 if test "$am_compiler_list" = ""; then 571 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 572 fi 573 for depmode in $am_compiler_list; do 574 # We need to recreate these files for each test, as the compiler may 575 # overwrite some of them when testing with obscure command lines. 576 # This happens at least with the AIX C compiler. 577 echo '#include "conftest.h"' > conftest.c 578 echo 'int i;' > conftest.h 579 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 580 581 case $depmode in 582 nosideeffect) 583 # after this tag, mechanisms are not by side-effect, so they'll 584 # only be used when explicitly requested 585 if test "x$enable_dependency_tracking" = xyes; then 586 continue 587 else 588 break 589 fi 590 ;; 591 none) break ;; 592 esac 593 # We check with `-c' and `-o' for the sake of the "dashmstdout" 594 # mode. It turns out that the SunPro C++ compiler does not properly 595 # handle `-M -o', and we need to detect this. 596 if depmode=$depmode \ 597 source=conftest.c object=conftest.o \ 598 depfile=conftest.Po tmpdepfile=conftest.TPo \ 599 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 600 grep conftest.h conftest.Po > /dev/null 2>&1 && 601 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 602 am_cv_$1_dependencies_compiler_type=$depmode 603 break 604 fi 605 done 606 607 cd .. 608 rm -rf conftest.dir 609 else 610 am_cv_$1_dependencies_compiler_type=none 611 fi 612 ]) 613 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 614 ]) 615 616 617 # AM_SET_DEPDIR 618 # ------------- 619 # Choose a directory name for dependency files. 620 # This macro is AC_REQUIREd in _AM_DEPENDENCIES 621 AC_DEFUN([AM_SET_DEPDIR], 622 [rm -f .deps 2>/dev/null 623 mkdir .deps 2>/dev/null 624 if test -d .deps; then 625 DEPDIR=.deps 626 else 627 # MS-DOS does not allow filenames that begin with a dot. 628 DEPDIR=_deps 629 fi 630 rmdir .deps 2>/dev/null 631 AC_SUBST([DEPDIR]) 632 ]) 633 634 635 # AM_DEP_TRACK 636 # ------------ 637 AC_DEFUN([AM_DEP_TRACK], 638 [AC_ARG_ENABLE(dependency-tracking, 639 [ --disable-dependency-tracking Speeds up one-time builds 640 --enable-dependency-tracking Do not reject slow dependency extractors]) 641 if test "x$enable_dependency_tracking" != xno; then 642 am_depcomp="$ac_aux_dir/depcomp" 643 AMDEPBACKSLASH='\' 644 fi 645 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 646 AC_SUBST([AMDEPBACKSLASH]) 647 ]) 648 649 # Generate code to set up dependency tracking. -*- Autoconf -*- 650 651 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 652 653 # This program is free software; you can redistribute it and/or modify 654 # it under the terms of the GNU General Public License as published by 655 # the Free Software Foundation; either version 2, or (at your option) 656 # any later version. 657 658 # This program is distributed in the hope that it will be useful, 659 # but WITHOUT ANY WARRANTY; without even the implied warranty of 660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 661 # GNU General Public License for more details. 662 663 # You should have received a copy of the GNU General Public License 664 # along with this program; if not, write to the Free Software 665 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 666 # 02111-1307, USA. 667 668 #serial 2 669 670 # _AM_OUTPUT_DEPENDENCY_COMMANDS 671 # ------------------------------ 672 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 673 [for mf in $CONFIG_FILES; do 674 # Strip MF so we end up with the name of the file. 675 mf=`echo "$mf" | sed -e 's/:.*$//'` 676 # Check whether this is an Automake generated Makefile or not. 677 # We used to match only the files named `Makefile.in', but 678 # some people rename them; so instead we look at the file content. 679 # Grep'ing the first line is not enough: some people post-process 680 # each Makefile.in and add a new line on top of each file to say so. 681 # So let's grep whole file. 682 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 683 dirpart=`AS_DIRNAME("$mf")` 684 else 685 continue 686 fi 687 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue 688 # Extract the definition of DEP_FILES from the Makefile without 689 # running `make'. 690 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 691 test -z "$DEPDIR" && continue 692 # When using ansi2knr, U may be empty or an underscore; expand it 693 U=`sed -n -e '/^U = / s///p' < "$mf"` 694 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 695 # We invoke sed twice because it is the simplest approach to 696 # changing $(DEPDIR) to its actual value in the expansion. 697 for file in `sed -n -e ' 698 /^DEP_FILES = .*\\\\$/ { 699 s/^DEP_FILES = // 700 :loop 701 s/\\\\$// 702 p 703 n 704 /\\\\$/ b loop 705 p 706 } 707 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 709 # Make sure the directory exists. 710 test -f "$dirpart/$file" && continue 711 fdir=`AS_DIRNAME(["$file"])` 712 AS_MKDIR_P([$dirpart/$fdir]) 713 # echo "creating $dirpart/$file" 714 echo '# dummy' > "$dirpart/$file" 715 done 716 done 717 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS 718 719 720 # AM_OUTPUT_DEPENDENCY_COMMANDS 721 # ----------------------------- 722 # This macro should only be invoked once -- use via AC_REQUIRE. 723 # 724 # This code is only required when automatic dependency tracking 725 # is enabled. FIXME. This creates each `.P' file that we will 726 # need in order to bootstrap the dependency handling code. 727 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 728 [AC_CONFIG_COMMANDS([depfiles], 729 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 730 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 731 ]) 732 733 # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*- 734 735 # This program is free software; you can redistribute it and/or modify 736 # it under the terms of the GNU General Public License as published by 737 # the Free Software Foundation; either version 2, or (at your option) 738 # any later version. 739 740 # This program is distributed in the hope that it will be useful, 741 # but WITHOUT ANY WARRANTY; without even the implied warranty of 742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 743 # GNU General Public License for more details. 744 745 # You should have received a copy of the GNU General Public License 746 # along with this program; if not, write to the Free Software 747 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 748 # 02111-1307, USA. 749 750 # serial 2 751 752 # AM_MAKE_INCLUDE() 753 # ----------------- 754 # Check to see how make treats includes. 755 AC_DEFUN([AM_MAKE_INCLUDE], 756 [am_make=${MAKE-make} 757 cat > confinc << 'END' 758 doit: 759 @echo done 760 END 761 # If we don't find an include directive, just comment out the code. 762 AC_MSG_CHECKING([for style of include used by $am_make]) 763 am__include="#" 764 am__quote= 765 _am_result=none 766 # First try GNU make style include. 767 echo "include confinc" > confmf 768 # We grep out `Entering directory' and `Leaving directory' 769 # messages which can occur if `w' ends up in MAKEFLAGS. 770 # In particular we don't look at `^make:' because GNU make might 771 # be invoked under some other name (usually "gmake"), in which 772 # case it prints its new name instead of `make'. 773 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 774 am__include=include 775 am__quote= 776 _am_result=GNU 777 fi 778 # Now try BSD make style include. 779 if test "$am__include" = "#"; then 780 echo '.include "confinc"' > confmf 781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 782 am__include=.include 783 am__quote="\"" 784 _am_result=BSD 785 fi 786 fi 787 AC_SUBST(am__include) 788 AC_SUBST(am__quote) 789 AC_MSG_RESULT($_am_result) 790 rm -f confinc confmf 791 ]) 792 793 # AM_CONDITIONAL -*- Autoconf -*- 794 795 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc. 796 797 # This program is free software; you can redistribute it and/or modify 798 # it under the terms of the GNU General Public License as published by 799 # the Free Software Foundation; either version 2, or (at your option) 800 # any later version. 801 802 # This program is distributed in the hope that it will be useful, 803 # but WITHOUT ANY WARRANTY; without even the implied warranty of 804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 805 # GNU General Public License for more details. 806 807 # You should have received a copy of the GNU General Public License 808 # along with this program; if not, write to the Free Software 809 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 810 # 02111-1307, USA. 811 812 # serial 5 813 814 AC_PREREQ(2.52) 815 816 # AM_CONDITIONAL(NAME, SHELL-CONDITION) 817 # ------------------------------------- 818 # Define a conditional. 819 AC_DEFUN([AM_CONDITIONAL], 820 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 821 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 822 AC_SUBST([$1_TRUE]) 823 AC_SUBST([$1_FALSE]) 824 if $2; then 825 $1_TRUE= 826 $1_FALSE='#' 827 else 828 $1_TRUE='#' 829 $1_FALSE= 830 fi 831 AC_CONFIG_COMMANDS_PRE( 832 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 833 AC_MSG_ERROR([conditional \"$1\" was never defined. 834 Usually this means the macro was only invoked conditionally.]) 835 fi])]) 13 836 14 837 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- … … 134 957 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 135 958 959 # Sed substitution to undo escaping of the cmd sep variable 960 unescape_variable_subst='s/\\\(${_S_}\)/\1/g' 961 136 962 # Sed substitution to avoid accidental globbing in evaled expressions 137 963 no_glob_subst='s/\*/\\\*/g' … … 183 1009 case $host_os in 184 1010 openbsd*) 185 old_postinstall_cmds="\$RANLIB -t \$oldlib ~$old_postinstall_cmds"1011 old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds" 186 1012 ;; 187 1013 *) 188 old_postinstall_cmds="\$RANLIB \$oldlib ~$old_postinstall_cmds"1014 old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds" 189 1015 ;; 190 1016 esac 191 old_archive_cmds="$old_archive_cmds ~\$RANLIB \$oldlib"1017 old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib" 192 1018 fi 193 1019 … … 492 1318 LD="${LD-ld} -m elf_i386" 493 1319 ;; 494 ppc64-*linux* |powerpc64-*linux*)1320 ppc64-*linux*) 495 1321 LD="${LD-ld} -m elf32ppclinux" 496 1322 ;; … … 556 1382 # Check whether the given compiler option works 557 1383 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 558 [AC_REQUIRE([LT_AC_PROG_SED]) 559 AC_CACHE_CHECK([$1], [$2], 1384 [AC_CACHE_CHECK([$1], [$2], 560 1385 [$2=no 561 1386 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) … … 633 1458 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 634 1459 i=0 635 test string="ABCD"1460 testring="ABCD" 636 1461 637 1462 case $build_os in … … 662 1487 ;; 663 1488 664 amigaos*)665 # On AmigaOS with pdksh, this test takes hours, literally.666 # So we just punt and use a minimum line length of 8192.667 lt_cv_sys_max_cmd_len=8192;668 ;;669 670 1489 *) 671 1490 # If test is not a shell built-in, we'll probably end up computing a 672 1491 # maximum length that is only half of the actual maximum length, but 673 1492 # we can't tell. 674 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$test string" 2>/dev/null` \675 = "XX$test string") >/dev/null 2>&1 &&676 new_result=`expr "X$test string" : ".*" 2>&1` &&1493 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ 1494 = "XX$testring") >/dev/null 2>&1 && 1495 new_result=`expr "X$testring" : ".*" 2>&1` && 677 1496 lt_cv_sys_max_cmd_len=$new_result && 678 1497 test $i != 17 # 1/2 MB should be enough 679 1498 do 680 1499 i=`expr $i + 1` 681 test string=$teststring$teststring1500 testring=$testring$testring 682 1501 done 683 test string=1502 testring= 684 1503 # Add a significant safety factor because C++ compilers can tack on massive 685 1504 # amounts of additional arguments before passing them to the linker. … … 831 1650 ]) 832 1651 ;; 833 1652 834 1653 *) 835 1654 AC_CHECK_FUNC([shl_load], … … 919 1738 mkdir out 920 1739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1740 1741 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 1742 # that will create temporary files in the current directory regardless of 1743 # the output directory. Thus, making CWD read-only will cause this test 1744 # to fail, enabling locking or at least warning the user not to do parallel 1745 # builds. 1746 chmod -w . 921 1747 922 1748 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 943 1769 fi 944 1770 chmod u+w . 945 $rm conftest* 946 # SGI C++ compiler will create directory out/ii_files/ for 947 # template instantiation 948 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 949 $rm out/* && rmdir out 1771 $rm conftest* out/* 1772 rmdir out 950 1773 cd .. 951 1774 rmdir conftest … … 1053 1876 # FIXME - insert some real tests, host_os isn't really good enough 1054 1877 case $host_os in 1055 darwin*)1878 NOT-darwin*) 1056 1879 if test -n "$STRIP" ; then 1057 1880 striplib="$STRIP -x" … … 1064 1887 AC_MSG_RESULT([no]) 1065 1888 ;; 1066 esac 1889 esac 1067 1890 fi 1068 1891 ])# AC_LIBTOOL_SYS_LIB_STRIP … … 1077 1900 libname_spec='lib$name' 1078 1901 soname_spec= 1079 shrext _cmds=".so"1902 shrext=".so" 1080 1903 postinstall_cmds= 1081 1904 postuninstall_cmds= … … 1165 1988 library_names_spec='$libname.ixlibrary $libname.a' 1166 1989 # Create ${libname}_ixlibrary.a entries in /sys/libs. 1167 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $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'1990 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $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' 1168 1991 ;; 1169 1992 … … 1190 2013 cygwin* | mingw* | pw32*) 1191 2014 version_type=windows 1192 shrext _cmds=".dll"2015 shrext=".dll" 1193 2016 need_version=no 1194 2017 need_lib_prefix=no … … 1198 2021 library_names_spec='$libname.dll.a' 1199 2022 # DLL is installed to $(libdir)/../bin by postinstall_cmds 1200 postinstall_cmds='base_file=`basename \${file}` ~1201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''` ~1202 dldir=$destdir/`dirname \$dlpath` ~1203 test -d \$dldir || mkdir -p \$dldir ~2023 postinstall_cmds='base_file=`basename \${file}`${_S_} 2024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_} 2025 dldir=$destdir/`dirname \$dlpath`${_S_} 2026 test -d \$dldir || mkdir -p \$dldir${_S_} 1204 2027 $install_prog $dir/$dlname \$dldir/$dlname' 1205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''` ~1206 dlpath=$dir/\$dldll ~2028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_} 2029 dlpath=$dir/\$dldll${_S_} 1207 2030 $rm \$dlpath' 1208 2031 shlibpath_overrides_runpath=yes … … 1212 2035 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 1213 2036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1214 sys_lib_search_path_spec="/ usr/lib /lib/w32api/lib /usr/local/lib"2037 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 1215 2038 ;; 1216 2039 mingw*) … … 1251 2074 need_lib_prefix=no 1252 2075 need_version=no 1253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2076 # FIXME: Relying on posixy $() will cause problems for 2077 # cross-compilation, but unfortunately the echo tests do not 2078 # yet detect zsh echo's removal of \ escapes. 2079 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext' 1254 2080 soname_spec='${libname}${release}${major}$shared_ext' 1255 2081 shlibpath_overrides_runpath=yes 1256 2082 shlibpath_var=DYLD_LIBRARY_PATH 1257 shrext _cmds='$(test .$module = .yes && echo .so || echo .dylib)'2083 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 1258 2084 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1259 if test "$GCC" = yes; then 1260 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 1261 else 1262 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 2085 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 2086 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 1263 2087 fi 1264 2088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' … … 1276 2100 freebsd1*) 1277 2101 dynamic_linker=no 1278 ;;1279 1280 kfreebsd*-gnu)1281 version_type=linux1282 need_lib_prefix=no1283 need_version=no1284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1285 soname_spec='${libname}${release}${shared_ext}$major'1286 shlibpath_var=LD_LIBRARY_PATH1287 shlibpath_overrides_runpath=no1288 hardcode_into_libs=yes1289 dynamic_linker='GNU ld.so'1290 2102 ;; 1291 2103 … … 1338 2150 case "$host_cpu" in 1339 2151 ia64*) 1340 shrext _cmds='.so'2152 shrext='.so' 1341 2153 hardcode_into_libs=yes 1342 2154 dynamic_linker="$host_os dld.so" … … 1353 2165 ;; 1354 2166 hppa*64*) 1355 shrext _cmds='.sl'2167 shrext='.sl' 1356 2168 hardcode_into_libs=yes 1357 2169 dynamic_linker="$host_os dld.sl" … … 1364 2176 ;; 1365 2177 *) 1366 shrext _cmds='.sl'2178 shrext='.sl' 1367 2179 dynamic_linker="$host_os dld.sl" 1368 2180 shlibpath_var=SHLIB_PATH … … 1433 2245 hardcode_into_libs=yes 1434 2246 1435 # find out which ABI we are using1436 libsuff=1437 case "$host_cpu" in1438 x86_64*|s390x*|powerpc64*)1439 echo '[#]line __oline__ "configure"' > conftest.$ac_ext1440 if AC_TRY_EVAL(ac_compile); then1441 case `/usr/bin/file conftest.$ac_objext` in1442 *64-bit*)1443 libsuff=641444 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"1445 ;;1446 esac1447 fi1448 rm -rf conftest*1449 ;;1450 esac1451 1452 # Append ld.so.conf contents to the search path1453 if test -f /etc/ld.so.conf; then1454 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`1455 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"1456 fi1457 1458 2247 # We used to test for /lib/ld.so.1 and disable shared libraries on 1459 2248 # powerpc, because MkLinux only supported shared libraries with the … … 1463 2252 # assume the GNU/Linux dynamic linker is in use. 1464 2253 dynamic_linker='GNU/Linux ld.so' 1465 ;;1466 1467 knetbsd*-gnu)1468 version_type=linux1469 need_lib_prefix=no1470 need_version=no1471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1472 soname_spec='${libname}${release}${shared_ext}$major'1473 shlibpath_var=LD_LIBRARY_PATH1474 shlibpath_overrides_runpath=no1475 hardcode_into_libs=yes1476 dynamic_linker='GNU ld.so'1477 2254 ;; 1478 2255 … … 1486 2263 dynamic_linker='NetBSD (a.out) ld.so' 1487 2264 else 1488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${ shared_ext}'2265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 1489 2266 soname_spec='${libname}${release}${shared_ext}$major' 1490 2267 dynamic_linker='NetBSD ld.elf_so' … … 1502 2279 ;; 1503 2280 1504 nto-qnx *)2281 nto-qnx) 1505 2282 version_type=linux 1506 2283 need_lib_prefix=no … … 1515 2292 version_type=sunos 1516 2293 need_lib_prefix=no 1517 need_version= yes2294 need_version=no 1518 2295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1519 2296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' … … 1535 2312 os2*) 1536 2313 libname_spec='$name' 1537 shrext _cmds=".dll"2314 shrext=".dll" 1538 2315 need_lib_prefix=no 1539 2316 library_names_spec='$libname${shared_ext} $libname.a' … … 1971 2748 # AC_PROG_LD 1972 2749 # ---------- 1973 # find the path nameto the GNU or non-GNU linker2750 # find the path to the GNU or non-GNU linker 1974 2751 AC_DEFUN([AC_PROG_LD], 1975 2752 [AC_ARG_WITH([gnu-ld], … … 1997 2774 [[\\/]]* | ?:[[\\/]]*) 1998 2775 re_direlt='/[[^/]][[^/]]*/\.\./' 1999 # Canonicalize the path nameof ld2776 # Canonicalize the path of ld 2000 2777 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2001 2778 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do … … 2060 2837 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2061 2838 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 2062 case ` $LD-v 2>&1 </dev/null` in2839 case `"$LD" -v 2>&1 </dev/null` in 2063 2840 *GNU* | *'with BFD'*) 2064 2841 lt_cv_prog_gnu_ld=yes … … 2085 2862 *) reload_flag=" $reload_flag" ;; 2086 2863 esac 2087 reload_cmds='$ LD$reload_flag-o $output$reload_objs'2864 reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs' 2088 2865 ])# AC_PROG_LD_RELOAD_FLAG 2089 2866 … … 2125 2902 ;; 2126 2903 2127 cygwin* )2128 # func_win32_libid is a shell function defined in ltmain.sh2904 cygwin* | mingw* | pw32*) 2905 # win32_libid is a shell function defined in ltmain.sh 2129 2906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2130 lt_cv_file_magic_cmd='func_win32_libid' 2131 ;; 2132 2133 mingw* | pw32*) 2134 # Base MSYS/MinGW do not provide the 'file' command needed by 2135 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2136 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2137 lt_cv_file_magic_cmd='$OBJDUMP -f' 2907 lt_cv_file_magic_cmd='win32_libid' 2138 2908 ;; 2139 2909 2140 2910 darwin* | rhapsody*) 2911 # this will be overwritten by pass_all, but leave it in just in case 2912 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 2913 lt_cv_file_magic_cmd='/usr/bin/file -L' 2914 case "$host_os" in 2915 rhapsody* | darwin1.[[012]]) 2916 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` 2917 ;; 2918 *) # Darwin 1.3 on 2919 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 2920 ;; 2921 esac 2141 2922 lt_cv_deplibs_check_method=pass_all 2142 2923 ;; 2143 2924 2144 freebsd* | kfreebsd*-gnu)2925 freebsd*) 2145 2926 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2146 2927 case $host_cpu in … … 2181 2962 2182 2963 irix5* | irix6* | nonstopux*) 2183 case $LD in 2184 *-32|*"-32 ") libmagic=32-bit;; 2185 *-n32|*"-n32 ") libmagic=N32;; 2186 *-64|*"-64 ") libmagic=64-bit;; 2187 *) libmagic=never-match;; 2964 case $host_os in 2965 irix5* | nonstopux*) 2966 # this will be overridden with pass_all, but let us keep it just in case 2967 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 2968 ;; 2969 *) 2970 case $LD in 2971 *-32|*"-32 ") libmagic=32-bit;; 2972 *-n32|*"-n32 ") libmagic=N32;; 2973 *-64|*"-64 ") libmagic=64-bit;; 2974 *) libmagic=never-match;; 2975 esac 2976 # this will be overridden with pass_all, but let us keep it just in case 2977 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" 2978 ;; 2188 2979 esac 2980 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 2189 2981 lt_cv_deplibs_check_method=pass_all 2190 2982 ;; … … 2193 2985 linux*) 2194 2986 case $host_cpu in 2195 alpha* |hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)2987 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) 2196 2988 lt_cv_deplibs_check_method=pass_all ;; 2197 2989 *) 2198 2990 # glibc up to 2.1.1 does not perform some relocations on ARM 2199 # this will be overridden with pass_all, but let us keep it just in case2200 2991 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; 2201 2992 esac 2202 2993 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 2203 lt_cv_deplibs_check_method=pass_all2204 2994 ;; 2205 2995 … … 2218 3008 ;; 2219 3009 2220 nto-qnx *)3010 nto-qnx) 2221 3011 lt_cv_deplibs_check_method=unknown 2222 3012 ;; … … 2233 3023 2234 3024 osf3* | osf4* | osf5*) 3025 # this will be overridden with pass_all, but let us keep it just in case 3026 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3027 lt_cv_file_magic_test_file=/shlib/libc.so 2235 3028 lt_cv_deplibs_check_method=pass_all 2236 3029 ;; … … 2242 3035 solaris*) 2243 3036 lt_cv_deplibs_check_method=pass_all 3037 lt_cv_file_magic_test_file=/lib/libc.so 2244 3038 ;; 2245 3039 … … 2281 3075 # AC_PROG_NM 2282 3076 # ---------- 2283 # find the path nameto a BSD-compatible name lister3077 # find the path to a BSD-compatible name lister 2284 3078 AC_DEFUN([AC_PROG_NM], 2285 3079 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, … … 2419 3213 [AC_REQUIRE([AC_PROG_CXX]) 2420 3214 AC_REQUIRE([AC_PROG_CXXCPP]) 2421 _LT_AC_SHELL_INIT([tagnames= ${tagnames+${tagnames},}CXX])3215 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`]) 2422 3216 ])# _LT_AC_LANG_CXX 2423 3217 … … 2435 3229 AC_DEFUN([_LT_AC_LANG_F77], 2436 3230 [AC_REQUIRE([AC_PROG_F77]) 2437 _LT_AC_SHELL_INIT([tagnames= ${tagnames+${tagnames},}F77])3231 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`]) 2438 3232 ])# _LT_AC_LANG_F77 2439 3233 … … 2456 3250 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 2457 3251 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 2458 _LT_AC_SHELL_INIT([tagnames= ${tagnames+${tagnames},}GCJ])3252 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`]) 2459 3253 ])# _LT_AC_LANG_GCJ 2460 3254 … … 2465 3259 AC_DEFUN([AC_LIBTOOL_RC], 2466 3260 [AC_REQUIRE([LT_AC_PROG_RC]) 2467 _LT_AC_SHELL_INIT([tagnames= ${tagnames+${tagnames},}RC])3261 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`]) 2468 3262 ])# AC_LIBTOOL_RC 2469 3263 … … 2507 3301 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then 2508 3302 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) 2509 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$ _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :3303 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : 2510 3304 else 2511 3305 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) … … 2530 3324 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 2531 3325 AC_LIBTOOL_PROG_LD_SHLIBS($1) 2532 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)2533 3326 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2534 3327 AC_LIBTOOL_SYS_LIB_STRIP 3328 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 2535 3329 AC_LIBTOOL_DLOPEN_SELF($1) 2536 3330 … … 2548 3342 test "$enable_shared" = yes && enable_static=no 2549 3343 if test -n "$RANLIB"; then 2550 archive_cmds="$archive_cmds ~\$RANLIB \$lib"3344 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib" 2551 3345 postinstall_cmds='$RANLIB $lib' 2552 3346 fi 2553 3347 ;; 2554 3348 2555 aix4* | aix5*)3349 aix4*) 2556 3350 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2557 3351 test "$enable_shared" = yes && enable_static=no … … 2559 3353 ;; 2560 3354 darwin* | rhapsody*) 2561 if test "$GCC" = yes; then3355 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 2562 3356 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2563 3357 case "$host_os" in … … 2565 3359 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 2566 3360 ;; 2567 *) # Darwin 1.3 on 2568 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2569 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2570 else 2571 case ${MACOSX_DEPLOYMENT_TARGET} in 2572 10.[[012]]) 2573 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2574 ;; 2575 10.*) 2576 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 2577 ;; 2578 esac 2579 fi 3361 darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0 3362 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3363 ;; 3364 *) # Darwin 7.0 on 3365 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in 3366 10.[[012]]) 3367 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3368 ;; 3369 *) # 10.3 on 3370 if test -z ${LD_TWOLEVEL_NAMESPACE}; then 3371 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3372 else 3373 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 3374 fi 3375 ;; 3376 esac 2580 3377 ;; 2581 3378 esac 2582 output_verbose_link_cmd='echo' 2583 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 2584 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3379 # FIXME: Relying on posixy $() will cause problems for 3380 # cross-compilation, but unfortunately the echo tests do not 3381 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 3382 # `"' quotes if we put them in here... so don't! 3383 output_verbose_link_cmd='echo' 3384 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 3385 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 2585 3386 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 2586 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'2587 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'3387 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3388 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2588 3389 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2589 3390 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes … … 2591 3392 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 2592 3393 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2593 else 2594 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2595 fi 2596 ;; 3394 fi 3395 ;; 2597 3396 esac 2598 3397 AC_MSG_RESULT([$enable_shared]) … … 2729 3528 # overridden to take advantage of the native linker features on 2730 3529 # the platform it is being used on. 2731 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'3530 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 2732 3531 fi 2733 3532 … … 2858 3657 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 2859 3658 # This is similar to how AIX traditionally builds it's shared libraries. 2860 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag} ~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'3659 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 2861 3660 fi 2862 3661 fi … … 2888 3687 echo EXPORTS > $output_objdir/$soname.def; 2889 3688 cat $export_symbols >> $output_objdir/$soname.def; 2890 fi ~3689 fi${_S_} 2891 3690 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 2892 3691 else … … 2896 3695 2897 3696 darwin* | rhapsody*) 2898 if test "$GXX" = yes; then3697 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 2899 3698 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2900 3699 case "$host_os" in … … 2902 3701 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 2903 3702 ;; 2904 *) # Darwin 1.3 on 2905 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2906 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3703 darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0 3704 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3705 ;; 3706 *) # Darwin 7.0 on 3707 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in 3708 10.[[012]]) 3709 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3710 ;; 3711 *) # 10.3 on 3712 if test -z ${LD_TWOLEVEL_NAMESPACE}; then 3713 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3714 else 3715 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 3716 fi 3717 ;; 3718 esac 3719 ;; 3720 esac 3721 lt_int_apple_cc_single_mod=no 3722 output_verbose_link_cmd='echo' 3723 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 3724 lt_int_apple_cc_single_mod=yes 3725 fi 3726 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3727 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 3728 else 3729 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 3730 fi 3731 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 3732 3733 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 3734 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3735 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2907 3736 else 2908 case ${MACOSX_DEPLOYMENT_TARGET} in 2909 10.[[012]]) 2910 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2911 ;; 2912 10.*) 2913 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 2914 ;; 2915 esac 3737 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2916 3738 fi 2917 ;; 2918 esac 2919 lt_int_apple_cc_single_mod=no 2920 output_verbose_link_cmd='echo' 2921 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 2922 lt_int_apple_cc_single_mod=yes 2923 fi 2924 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2925 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2926 else 2927 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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' 2928 fi 2929 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 2930 2931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 2932 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2933 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2934 else 2935 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2936 fi 2937 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3739 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2938 3740 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2939 3741 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes … … 2941 3743 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 2942 3744 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2943 else 2944 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2945 fi 3745 fi 2946 3746 ;; 2947 3747 … … 2970 3770 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2971 3771 ;; 2972 freebsd* | kfreebsd*-gnu)3772 freebsd*) 2973 3773 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 2974 3774 # conventions … … 2992 3792 ;; 2993 3793 aCC) 2994 _LT_AC_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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'3794 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname${_S_}$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 2995 3795 # Commands to make compiler produce verbose output that lists 2996 3796 # what "hidden" libraries, object files and flags are used when … … 3001 3801 # from the output so that they don't get included in the library 3002 3802 # dependencies. 3003 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; echo $list'3803 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; echo $list' 3004 3804 ;; 3005 3805 *) 3006 3806 if test "$GXX" = yes; then 3007 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname ~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'3807 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname${_S_}$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3008 3808 else 3009 3809 # FIXME: insert proper C++ library support … … 3294 4094 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3295 4095 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 3296 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done ~3297 echo "-hidden">> $lib.exp ~3298 $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 $objdir/so_locations -o $lib ~4096 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done${_S_} 4097 echo "-hidden">> $lib.exp${_S_} 4098 $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 $objdir/so_locations -o $lib${_S_} 3299 4099 $rm $lib.exp' 3300 4100 … … 3373 4173 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3374 4174 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3375 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~3376 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ~$rm $lib.exp'4175 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_} 4176 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp' 3377 4177 3378 4178 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 3419 4219 if $CC --version | grep -v '^2\.7' > /dev/null; then 3420 4220 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3421 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~3422 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ~$rm $lib.exp'4221 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_} 4222 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp' 3423 4223 3424 4224 # Commands to make compiler produce verbose output that lists … … 3430 4230 # platform. 3431 4231 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3432 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~3433 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ~$rm $lib.exp'4232 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_} 4233 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp' 3434 4234 3435 4235 # Commands to make compiler produce verbose output that lists … … 3480 4280 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3481 4281 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3482 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)3483 4282 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3484 4283 AC_LIBTOOL_SYS_LIB_STRIP 4284 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3485 4285 AC_LIBTOOL_DLOPEN_SELF($1) 3486 4286 … … 3700 4500 test "$enable_shared" = yes && enable_static=no 3701 4501 if test -n "$RANLIB"; then 3702 archive_cmds="$archive_cmds ~\$RANLIB \$lib"4502 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib" 3703 4503 postinstall_cmds='$RANLIB $lib' 3704 4504 fi 3705 4505 ;; 3706 aix4* | aix5*)4506 aix4*) 3707 4507 test "$enable_shared" = yes && enable_static=no 3708 4508 ;; … … 3724 4524 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3725 4525 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3726 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)3727 4526 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3728 4527 AC_LIBTOOL_SYS_LIB_STRIP 3729 4528 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3730 4529 3731 4530 AC_LIBTOOL_CONFIG($1) … … 3775 4574 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3776 4575 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3777 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)3778 4576 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3779 4577 AC_LIBTOOL_SYS_LIB_STRIP 4578 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3780 4579 AC_LIBTOOL_DLOPEN_SELF($1) 3781 4580 … … 3842 4641 if test -n "${ZSH_VERSION+set}" ; then 3843 4642 setopt NO_GLOB_SUBST 3844 fi 4643 fi 3845 4644 # Now quote all the things that may contain metacharacters while being 3846 4645 # careful not to overquote the AC_SUBSTed values. We take copies of the 3847 4646 # variables and quote the copies for generation of the libtool script. 3848 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 3849 SED SHELL STRIP \ 4647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 3850 4648 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 3851 4649 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ … … 3897 4695 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 3898 4696 _LT_AC_TAGVAR(module_cmds, $1) | \ 3899 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 4697 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 3900 4698 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 3901 4699 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ … … 3905 4703 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 3906 4704 # Double-quote double-evaled strings. 3907 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" \`\\\""4705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\"" 3908 4706 ;; 3909 4707 *) … … 3977 4775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 3978 4776 4777 # Set the command separator (default: ~) 4778 _S_=\${LIBTOOL_CMD_SEP-\~} 4779 3979 4780 # Shell to use when invoking shell scripts. 3980 4781 SHELL=$lt_SHELL … … 4028 4829 4029 4830 # A symbol stripping program 4030 STRIP=$ lt_STRIP4831 STRIP=$STRIP 4031 4832 4032 4833 # Used to examine libraries when file_magic_cmd begins "file" … … 4059 4860 4060 4861 # Shared library suffix (normally ".so"). 4061 shrext _cmds='$shrext_cmds'4862 shrext='$shrext' 4062 4863 4063 4864 # Executable file suffix (normally ""). … … 4303 5104 # `config.status --recheck' to rerun these tests and create the 4304 5105 # libtool script then. 4305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 4306 if test -f "$ltmain_in"; then 4307 test -f Makefile && make "$ltmain" 4308 fi 5106 test -f Makefile && make "$ltmain" 4309 5107 fi 4310 5108 ])# AC_LIBTOOL_CONFIG … … 4379 5177 ;; 4380 5178 solaris* | sysv5*) 4381 symcode='[[BD RT]]'5179 symcode='[[BDT]]' 4382 5180 ;; 4383 5181 sysv4) … … 4397 5195 case `$NM -V 2>&1` in 4398 5196 *GNU* | *'with BFD'*) 4399 symcode='[[ABCDGI RSTW]]' ;;5197 symcode='[[ABCDGISTW]]' ;; 4400 5198 esac 4401 5199 … … 4612 5410 esac 4613 5411 ;; 4614 freebsd* | kfreebsd*-gnu)5412 freebsd*) 4615 5413 # FreeBSD uses GNU C++ 4616 5414 ;; … … 4663 5461 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4664 5462 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4665 ;; 5463 ;; 4666 5464 cxx) 4667 5465 # Compaq C++ … … 4888 5686 linux*) 4889 5687 case $CC in 4890 icc * | ecc*)5688 icc|ecc) 4891 5689 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4892 5690 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4893 5691 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4894 5692 ;; 4895 ccc *)5693 ccc) 4896 5694 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4897 5695 # All Alpha code is PIC. … … 5023 5821 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 5024 5822 _LT_AC_TAGVAR(module_cmds, $1)= 5025 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5823 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5026 5824 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5027 5825 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' … … 5079 5877 5080 5878 amigaos*) 5081 _LT_AC_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)'5879 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)' 5082 5880 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5083 5881 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes … … 5121 5919 echo EXPORTS > $output_objdir/$soname.def; 5122 5920 cat $export_symbols >> $output_objdir/$soname.def; 5123 fi ~5921 fi${_S_} 5124 5922 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5125 5923 else … … 5165 5963 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5166 5964 ;; 5167 5168 linux*)5169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then5170 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5171 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"5172 supports_anon_versioning=no5173 case `$LD -v 2>/dev/null` in5174 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.115175 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...5176 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...5177 *\ 2.11.*) ;; # other 2.11 versions5178 *) supports_anon_versioning=yes ;;5179 esac5180 if test $supports_anon_versioning = yes; then5181 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~5182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~5183 $echo "local: *; };" >> $output_objdir/$libname.ver~5184 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'5185 else5186 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"5187 fi5188 else5189 _LT_AC_TAGVAR(ld_shlibs, $1)=no5190 fi5191 ;;5192 5965 5193 5966 *) … … 5218 5991 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5219 5992 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5220 _LT_AC_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'5993 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname' 5221 5994 # Note: this linker hardcodes the directories in LIBPATH if there 5222 5995 # are no directories specified by -L. … … 5340 6113 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5341 6114 # This is similar to how AIX traditionally builds it's shared libraries. 5342 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag} ~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'6115 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5343 6116 fi 5344 6117 fi … … 5346 6119 5347 6120 amigaos*) 5348 _LT_AC_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)'6121 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)' 5349 6122 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5350 6123 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes … … 5367 6140 libext=lib 5368 6141 # Tell ltmain to make .dll files, not .so files. 5369 shrext _cmds=".dll"6142 shrext=".dll" 5370 6143 # FIXME: Setting linknames here is a bad hack. 5371 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll ~linknames='6144 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames=' 5372 6145 # The linker will automatically build a .lib file if we build a DLL. 5373 6146 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' … … 5379 6152 5380 6153 darwin* | rhapsody*) 5381 if test "$GXX" = yes ; then6154 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 5382 6155 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5383 6156 case "$host_os" in … … 5385 6158 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 5386 6159 ;; 5387 *) # Darwin 1.3 on 5388 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 5389 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 5390 else 5391 case ${MACOSX_DEPLOYMENT_TARGET} in 5392 10.[[012]]) 5393 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 5394 ;; 5395 10.*) 5396 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 5397 ;; 5398 esac 5399 fi 6160 darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0 6161 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 6162 ;; 6163 *) # Darwin 7.0 on 6164 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in 6165 10.[[012]]) 6166 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 6167 ;; 6168 *) # 10.3 on 6169 if test -z ${LD_TWOLEVEL_NAMESPACE}; then 6170 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 6171 else 6172 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 6173 fi 6174 ;; 6175 esac 5400 6176 ;; 5401 6177 esac 6178 # FIXME: Relying on posixy $() will cause problems for 6179 # cross-compilation, but unfortunately the echo tests do not 6180 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 6181 # `"' quotes if we put them in here... so don't! 5402 6182 lt_int_apple_cc_single_mod=no 5403 6183 output_verbose_link_cmd='echo' … … 5406 6186 fi 5407 6187 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 5408 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'6188 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 5409 6189 else 5410 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'6190 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 5411 6191 fi 5412 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle$libobjs $deplibs$compiler_flags'6192 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 5413 6193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 5414 6194 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 5415 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym ~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'6195 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 5416 6196 else 5417 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym ~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'6197 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 5418 6198 fi 5419 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym ~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'6199 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 5420 6200 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5421 6201 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes … … 5423 6203 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 5424 6204 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5425 else 5426 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5427 fi 6205 fi 5428 6206 ;; 5429 6207 … … 5458 6236 5459 6237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5460 freebsd* | kfreebsd*-gnu)6238 freebsd*) 5461 6239 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5462 6240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 5467 6245 hpux9*) 5468 6246 if test "$GCC" = yes; then 5469 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname ~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'6247 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5470 6248 else 5471 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname ~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'6249 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5472 6250 fi 5473 6251 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' … … 5589 6367 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5590 6368 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5591 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def ~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'6369 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 5592 6370 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5593 6371 ;; … … 5613 6391 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5614 6392 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5615 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp ~5616 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib ~$rm $lib.exp'6393 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp${_S_} 6394 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib${_S_}$rm $lib.exp' 5617 6395 5618 6396 # Both c and cxx compiler support -rpath directly … … 5634 6412 if test "$GCC" = yes; then 5635 6413 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5636 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~5637 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags ~$rm $lib.exp'6414 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_} 6415 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp' 5638 6416 else 5639 6417 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5640 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~5641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags ~$rm $lib.exp'6418 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_} 6419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp' 5642 6420 fi 5643 6421 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 5728 6506 # object files and a static libstdc++, better avoid it by now 5729 6507 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5730 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~5731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags ~$rm $lib.exp'6508 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_} 6509 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp' 5732 6510 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5733 6511 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no … … 5765 6543 if test "$enable_shared" = yes && test "$GCC" = yes; then 5766 6544 case $_LT_AC_TAGVAR(archive_cmds, $1) in 5767 * '~'*)6545 *"$_S_"*) 5768 6546 # FIXME: we may have to deal with multi-command sequences. 5769 6547 ;; … … 5775 6553 $rm conftest* 5776 6554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5777 6555 5778 6556 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5779 6557 soname=conftest … … 5937 6715 ]) 5938 6716 5939 # -*- Autoconf -*-5940 # Copyright (C) 2002, 2003 Free Software Foundation, Inc.5941 # Generated from amversion.in; do not edit by hand.5942 5943 # This program is free software; you can redistribute it and/or modify5944 # it under the terms of the GNU General Public License as published by5945 # the Free Software Foundation; either version 2, or (at your option)5946 # any later version.5947 5948 # This program is distributed in the hope that it will be useful,5949 # but WITHOUT ANY WARRANTY; without even the implied warranty of5950 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the5951 # GNU General Public License for more details.5952 5953 # You should have received a copy of the GNU General Public License5954 # along with this program; if not, write to the Free Software5955 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA5956 5957 # AM_AUTOMAKE_VERSION(VERSION)5958 # ----------------------------5959 # Automake X.Y traces this macro to ensure aclocal.m4 has been5960 # generated from the m4 files accompanying Automake X.Y.5961 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])5962 5963 # AM_SET_CURRENT_AUTOMAKE_VERSION5964 # -------------------------------5965 # Call AM_AUTOMAKE_VERSION so it can be traced.5966 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.5967 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],5968 [AM_AUTOMAKE_VERSION([1.8.3])])5969 5970 # AM_AUX_DIR_EXPAND5971 5972 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.5973 5974 # This program is free software; you can redistribute it and/or modify5975 # it under the terms of the GNU General Public License as published by5976 # the Free Software Foundation; either version 2, or (at your option)5977 # any later version.5978 5979 # This program is distributed in the hope that it will be useful,5980 # but WITHOUT ANY WARRANTY; without even the implied warranty of5981 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the5982 # GNU General Public License for more details.5983 5984 # You should have received a copy of the GNU General Public License5985 # along with this program; if not, write to the Free Software5986 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA5987 # 02111-1307, USA.5988 5989 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets5990 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to5991 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.5992 #5993 # Of course, Automake must honor this variable whenever it calls a5994 # tool from the auxiliary directory. The problem is that $srcdir (and5995 # therefore $ac_aux_dir as well) can be either absolute or relative,5996 # depending on how configure is run. This is pretty annoying, since5997 # it makes $ac_aux_dir quite unusable in subdirectories: in the top5998 # source directory, any form will work fine, but in subdirectories a5999 # relative path needs to be adjusted first.6000 #6001 # $ac_aux_dir/missing6002 # fails when called from a subdirectory if $ac_aux_dir is relative6003 # $top_srcdir/$ac_aux_dir/missing6004 # fails if $ac_aux_dir is absolute,6005 # fails when called from a subdirectory in a VPATH build with6006 # a relative $ac_aux_dir6007 #6008 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir6009 # are both prefixed by $srcdir. In an in-source build this is usually6010 # harmless because $srcdir is `.', but things will broke when you6011 # start a VPATH build or use an absolute $srcdir.6012 #6013 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,6014 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:6015 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`6016 # and then we would define $MISSING as6017 # MISSING="\${SHELL} $am_aux_dir/missing"6018 # This will work as long as MISSING is not called from configure, because6019 # unfortunately $(top_srcdir) has no meaning in configure.6020 # However there are other variables, like CC, which are often used in6021 # configure, and could therefore not use this "fixed" $ac_aux_dir.6022 #6023 # Another solution, used here, is to always expand $ac_aux_dir to an6024 # absolute PATH. The drawback is that using absolute paths prevent a6025 # configured tree to be moved without reconfiguration.6026 6027 AC_DEFUN([AM_AUX_DIR_EXPAND],6028 [dnl Rely on autoconf to set up CDPATH properly.6029 AC_PREREQ([2.50])dnl6030 # expand $ac_aux_dir to an absolute path6031 am_aux_dir=`cd $ac_aux_dir && pwd`6032 ])6033 6034 # AM_CONDITIONAL -*- Autoconf -*-6035 6036 # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.6037 6038 # This program is free software; you can redistribute it and/or modify6039 # it under the terms of the GNU General Public License as published by6040 # the Free Software Foundation; either version 2, or (at your option)6041 # any later version.6042 6043 # This program is distributed in the hope that it will be useful,6044 # but WITHOUT ANY WARRANTY; without even the implied warranty of6045 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6046 # GNU General Public License for more details.6047 6048 # You should have received a copy of the GNU General Public License6049 # along with this program; if not, write to the Free Software6050 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6051 # 02111-1307, USA.6052 6053 # serial 66054 6055 # AM_CONDITIONAL(NAME, SHELL-CONDITION)6056 # -------------------------------------6057 # Define a conditional.6058 AC_DEFUN([AM_CONDITIONAL],6059 [AC_PREREQ(2.52)dnl6060 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],6061 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl6062 AC_SUBST([$1_TRUE])6063 AC_SUBST([$1_FALSE])6064 if $2; then6065 $1_TRUE=6066 $1_FALSE='#'6067 else6068 $1_TRUE='#'6069 $1_FALSE=6070 fi6071 AC_CONFIG_COMMANDS_PRE(6072 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then6073 AC_MSG_ERROR([conditional "$1" was never defined.6074 Usually this means the macro was only invoked conditionally.])6075 fi])])6076 6077 # serial 7 -*- Autoconf -*-6078 6079 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 20046080 # Free Software Foundation, Inc.6081 6082 # This program is free software; you can redistribute it and/or modify6083 # it under the terms of the GNU General Public License as published by6084 # the Free Software Foundation; either version 2, or (at your option)6085 # any later version.6086 6087 # This program is distributed in the hope that it will be useful,6088 # but WITHOUT ANY WARRANTY; without even the implied warranty of6089 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6090 # GNU General Public License for more details.6091 6092 # You should have received a copy of the GNU General Public License6093 # along with this program; if not, write to the Free Software6094 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6095 # 02111-1307, USA.6096 6097 6098 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be6099 # written in clear, in which case automake, when reading aclocal.m4,6100 # will think it sees a *use*, and therefore will trigger all it's6101 # C support machinery. Also note that it means that autoscan, seeing6102 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...6103 6104 6105 6106 # _AM_DEPENDENCIES(NAME)6107 # ----------------------6108 # See how the compiler implements dependency checking.6109 # NAME is "CC", "CXX", "GCJ", or "OBJC".6110 # We try a few techniques and use that to set a single cache variable.6111 #6112 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was6113 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular6114 # dependency, and given that the user is not expected to run this macro,6115 # just rely on AC_PROG_CC.6116 AC_DEFUN([_AM_DEPENDENCIES],6117 [AC_REQUIRE([AM_SET_DEPDIR])dnl6118 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl6119 AC_REQUIRE([AM_MAKE_INCLUDE])dnl6120 AC_REQUIRE([AM_DEP_TRACK])dnl6121 6122 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],6123 [$1], CXX, [depcc="$CXX" am_compiler_list=],6124 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],6125 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],6126 [depcc="$$1" am_compiler_list=])6127 6128 AC_CACHE_CHECK([dependency style of $depcc],6129 [am_cv_$1_dependencies_compiler_type],6130 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then6131 # We make a subdir and do the tests there. Otherwise we can end up6132 # making bogus files that we don't know about and never remove. For6133 # instance it was reported that on HP-UX the gcc test will end up6134 # making a dummy file named `D' -- because `-MD' means `put the output6135 # in D'.6136 mkdir conftest.dir6137 # Copy depcomp to subdir because otherwise we won't find it if we're6138 # using a relative directory.6139 cp "$am_depcomp" conftest.dir6140 cd conftest.dir6141 # We will build objects and dependencies in a subdirectory because6142 # it helps to detect inapplicable dependency modes. For instance6143 # both Tru64's cc and ICC support -MD to output dependencies as a6144 # side effect of compilation, but ICC will put the dependencies in6145 # the current directory while Tru64 will put them in the object6146 # directory.6147 mkdir sub6148 6149 am_cv_$1_dependencies_compiler_type=none6150 if test "$am_compiler_list" = ""; then6151 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`6152 fi6153 for depmode in $am_compiler_list; do6154 # Setup a source with many dependencies, because some compilers6155 # like to wrap large dependency lists on column 80 (with \), and6156 # we should not choose a depcomp mode which is confused by this.6157 #6158 # We need to recreate these files for each test, as the compiler may6159 # overwrite some of them when testing with obscure command lines.6160 # This happens at least with the AIX C compiler.6161 : > sub/conftest.c6162 for i in 1 2 3 4 5 6; do6163 echo '#include "conftst'$i'.h"' >> sub/conftest.c6164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with6165 # Solaris 8's {/usr,}/bin/sh.6166 touch sub/conftst$i.h6167 done6168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf6169 6170 case $depmode in6171 nosideeffect)6172 # after this tag, mechanisms are not by side-effect, so they'll6173 # only be used when explicitly requested6174 if test "x$enable_dependency_tracking" = xyes; then6175 continue6176 else6177 break6178 fi6179 ;;6180 none) break ;;6181 esac6182 # We check with `-c' and `-o' for the sake of the "dashmstdout"6183 # mode. It turns out that the SunPro C++ compiler does not properly6184 # handle `-M -o', and we need to detect this.6185 if depmode=$depmode \6186 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \6187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \6188 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \6189 >/dev/null 2>conftest.err &&6190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&6191 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&6192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then6193 # icc doesn't choke on unknown options, it will just issue warnings6194 # (even with -Werror). So we grep stderr for any message6195 # that says an option was ignored.6196 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else6197 am_cv_$1_dependencies_compiler_type=$depmode6198 break6199 fi6200 fi6201 done6202 6203 cd ..6204 rm -rf conftest.dir6205 else6206 am_cv_$1_dependencies_compiler_type=none6207 fi6208 ])6209 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])6210 AM_CONDITIONAL([am__fastdep$1], [6211 test "x$enable_dependency_tracking" != xno \6212 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])6213 ])6214 6215 6216 # AM_SET_DEPDIR6217 # -------------6218 # Choose a directory name for dependency files.6219 # This macro is AC_REQUIREd in _AM_DEPENDENCIES6220 AC_DEFUN([AM_SET_DEPDIR],6221 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl6222 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl6223 ])6224 6225 6226 # AM_DEP_TRACK6227 # ------------6228 AC_DEFUN([AM_DEP_TRACK],6229 [AC_ARG_ENABLE(dependency-tracking,6230 [ --disable-dependency-tracking speeds up one-time build6231 --enable-dependency-tracking do not reject slow dependency extractors])6232 if test "x$enable_dependency_tracking" != xno; then6233 am_depcomp="$ac_aux_dir/depcomp"6234 AMDEPBACKSLASH='\'6235 fi6236 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])6237 AC_SUBST([AMDEPBACKSLASH])6238 ])6239 6240 # Generate code to set up dependency tracking. -*- Autoconf -*-6241 6242 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.6243 6244 # This program is free software; you can redistribute it and/or modify6245 # it under the terms of the GNU General Public License as published by6246 # the Free Software Foundation; either version 2, or (at your option)6247 # any later version.6248 6249 # This program is distributed in the hope that it will be useful,6250 # but WITHOUT ANY WARRANTY; without even the implied warranty of6251 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6252 # GNU General Public License for more details.6253 6254 # You should have received a copy of the GNU General Public License6255 # along with this program; if not, write to the Free Software6256 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6257 # 02111-1307, USA.6258 6259 #serial 26260 6261 # _AM_OUTPUT_DEPENDENCY_COMMANDS6262 # ------------------------------6263 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],6264 [for mf in $CONFIG_FILES; do6265 # Strip MF so we end up with the name of the file.6266 mf=`echo "$mf" | sed -e 's/:.*$//'`6267 # Check whether this is an Automake generated Makefile or not.6268 # We used to match only the files named `Makefile.in', but6269 # some people rename them; so instead we look at the file content.6270 # Grep'ing the first line is not enough: some people post-process6271 # each Makefile.in and add a new line on top of each file to say so.6272 # So let's grep whole file.6273 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then6274 dirpart=`AS_DIRNAME("$mf")`6275 else6276 continue6277 fi6278 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue6279 # Extract the definition of DEP_FILES from the Makefile without6280 # running `make'.6281 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`6282 test -z "$DEPDIR" && continue6283 # When using ansi2knr, U may be empty or an underscore; expand it6284 U=`sed -n 's/^U = //p' < "$mf"`6285 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"6286 # We invoke sed twice because it is the simplest approach to6287 # changing $(DEPDIR) to its actual value in the expansion.6288 for file in `sed -n '6289 /^DEP_FILES = .*\\\\$/ {6290 s/^DEP_FILES = //6291 :loop6292 s/\\\\$//6293 p6294 n6295 /\\\\$/ b loop6296 p6297 }6298 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \6299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do6300 # Make sure the directory exists.6301 test -f "$dirpart/$file" && continue6302 fdir=`AS_DIRNAME(["$file"])`6303 AS_MKDIR_P([$dirpart/$fdir])6304 # echo "creating $dirpart/$file"6305 echo '# dummy' > "$dirpart/$file"6306 done6307 done6308 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS6309 6310 6311 # AM_OUTPUT_DEPENDENCY_COMMANDS6312 # -----------------------------6313 # This macro should only be invoked once -- use via AC_REQUIRE.6314 #6315 # This code is only required when automatic dependency tracking6316 # is enabled. FIXME. This creates each `.P' file that we will6317 # need in order to bootstrap the dependency handling code.6318 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],6319 [AC_CONFIG_COMMANDS([depfiles],6320 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],6321 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])6322 ])6323 6324 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-6325 6326 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.6327 6328 # This program is free software; you can redistribute it and/or modify6329 # it under the terms of the GNU General Public License as published by6330 # the Free Software Foundation; either version 2, or (at your option)6331 # any later version.6332 6333 # This program is distributed in the hope that it will be useful,6334 # but WITHOUT ANY WARRANTY; without even the implied warranty of6335 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6336 # GNU General Public License for more details.6337 6338 # You should have received a copy of the GNU General Public License6339 # along with this program; if not, write to the Free Software6340 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6341 # 02111-1307, USA.6342 6343 # serial 76344 6345 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.6346 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])6347 6348 # Do all the work for Automake. -*- Autoconf -*-6349 6350 # This macro actually does too much some checks are only needed if6351 # your package does certain things. But this isn't really a big deal.6352 6353 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 20036354 # Free Software Foundation, Inc.6355 6356 # This program is free software; you can redistribute it and/or modify6357 # it under the terms of the GNU General Public License as published by6358 # the Free Software Foundation; either version 2, or (at your option)6359 # any later version.6360 6361 # This program is distributed in the hope that it will be useful,6362 # but WITHOUT ANY WARRANTY; without even the implied warranty of6363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6364 # GNU General Public License for more details.6365 6366 # You should have received a copy of the GNU General Public License6367 # along with this program; if not, write to the Free Software6368 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6369 # 02111-1307, USA.6370 6371 # serial 116372 6373 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])6374 # AM_INIT_AUTOMAKE([OPTIONS])6375 # -----------------------------------------------6376 # The call with PACKAGE and VERSION arguments is the old style6377 # call (pre autoconf-2.50), which is being phased out. PACKAGE6378 # and VERSION should now be passed to AC_INIT and removed from6379 # the call to AM_INIT_AUTOMAKE.6380 # We support both call styles for the transition. After6381 # the next Automake release, Autoconf can make the AC_INIT6382 # arguments mandatory, and then we can depend on a new Autoconf6383 # release and drop the old call support.6384 AC_DEFUN([AM_INIT_AUTOMAKE],6385 [AC_PREREQ([2.50])dnl6386 dnl Autoconf wants to disallow AM_ names. We explicitly allow6387 dnl the ones we care about.6388 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl6389 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl6390 AC_REQUIRE([AC_PROG_INSTALL])dnl6391 # test to see if srcdir already configured6392 if test "`cd $srcdir && pwd`" != "`pwd`" &&6393 test -f $srcdir/config.status; then6394 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])6395 fi6396 6397 # test whether we have cygpath6398 if test -z "$CYGPATH_W"; then6399 if (cygpath --version) >/dev/null 2>/dev/null; then6400 CYGPATH_W='cygpath -w'6401 else6402 CYGPATH_W=echo6403 fi6404 fi6405 AC_SUBST([CYGPATH_W])6406 6407 # Define the identity of the package.6408 dnl Distinguish between old-style and new-style calls.6409 m4_ifval([$2],6410 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl6411 AC_SUBST([PACKAGE], [$1])dnl6412 AC_SUBST([VERSION], [$2])],6413 [_AM_SET_OPTIONS([$1])dnl6414 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl6415 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl6416 6417 _AM_IF_OPTION([no-define],,6418 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])6419 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl6420 6421 # Some tools Automake needs.6422 AC_REQUIRE([AM_SANITY_CHECK])dnl6423 AC_REQUIRE([AC_ARG_PROGRAM])dnl6424 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})6425 AM_MISSING_PROG(AUTOCONF, autoconf)6426 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})6427 AM_MISSING_PROG(AUTOHEADER, autoheader)6428 AM_MISSING_PROG(MAKEINFO, makeinfo)6429 AM_MISSING_PROG(AMTAR, tar)6430 AM_PROG_INSTALL_SH6431 AM_PROG_INSTALL_STRIP6432 AC_REQUIRE([AM_PROG_MKDIR_P])dnl6433 # We need awk for the "check" target. The system "awk" is bad on6434 # some platforms.6435 AC_REQUIRE([AC_PROG_AWK])dnl6436 AC_REQUIRE([AC_PROG_MAKE_SET])dnl6437 AC_REQUIRE([AM_SET_LEADING_DOT])dnl6438 6439 _AM_IF_OPTION([no-dependencies],,6440 [AC_PROVIDE_IFELSE([AC_PROG_CC],6441 [_AM_DEPENDENCIES(CC)],6442 [define([AC_PROG_CC],6443 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl6444 AC_PROVIDE_IFELSE([AC_PROG_CXX],6445 [_AM_DEPENDENCIES(CXX)],6446 [define([AC_PROG_CXX],6447 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl6448 ])6449 ])6450 6451 6452 # When config.status generates a header, we must update the stamp-h file.6453 # This file resides in the same directory as the config header6454 # that is generated. The stamp files are numbered to have different names.6455 6456 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the6457 # loop where config.status creates the headers, so we can generate6458 # our stamp files there.6459 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],6460 [# Compute $1's index in $config_headers.6461 _am_stamp_count=16462 for _am_header in $config_headers :; do6463 case $_am_header in6464 $1 | $1:* )6465 break ;;6466 * )6467 _am_stamp_count=`expr $_am_stamp_count + 1` ;;6468 esac6469 done6470 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])6471 6472 # AM_PROG_INSTALL_SH6473 # ------------------6474 # Define $install_sh.6475 6476 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.6477 6478 # This program is free software; you can redistribute it and/or modify6479 # it under the terms of the GNU General Public License as published by6480 # the Free Software Foundation; either version 2, or (at your option)6481 # any later version.6482 6483 # This program is distributed in the hope that it will be useful,6484 # but WITHOUT ANY WARRANTY; without even the implied warranty of6485 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6486 # GNU General Public License for more details.6487 6488 # You should have received a copy of the GNU General Public License6489 # along with this program; if not, write to the Free Software6490 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6491 # 02111-1307, USA.6492 6493 AC_DEFUN([AM_PROG_INSTALL_SH],6494 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl6495 install_sh=${install_sh-"$am_aux_dir/install-sh"}6496 AC_SUBST(install_sh)])6497 6498 # -*- Autoconf -*-6499 # Copyright (C) 2003 Free Software Foundation, Inc.6500 6501 # This program is free software; you can redistribute it and/or modify6502 # it under the terms of the GNU General Public License as published by6503 # the Free Software Foundation; either version 2, or (at your option)6504 # any later version.6505 6506 # This program is distributed in the hope that it will be useful,6507 # but WITHOUT ANY WARRANTY; without even the implied warranty of6508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6509 # GNU General Public License for more details.6510 6511 # You should have received a copy of the GNU General Public License6512 # along with this program; if not, write to the Free Software6513 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6514 # 02111-1307, USA.6515 6516 # serial 16517 6518 # Check whether the underlying file-system supports filenames6519 # with a leading dot. For instance MS-DOS doesn't.6520 AC_DEFUN([AM_SET_LEADING_DOT],6521 [rm -rf .tst 2>/dev/null6522 mkdir .tst 2>/dev/null6523 if test -d .tst; then6524 am__leading_dot=.6525 else6526 am__leading_dot=_6527 fi6528 rmdir .tst 2>/dev/null6529 AC_SUBST([am__leading_dot])])6530 6531 # Check to see how 'make' treats includes. -*- Autoconf -*-6532 6533 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.6534 6535 # This program is free software; you can redistribute it and/or modify6536 # it under the terms of the GNU General Public License as published by6537 # the Free Software Foundation; either version 2, or (at your option)6538 # any later version.6539 6540 # This program is distributed in the hope that it will be useful,6541 # but WITHOUT ANY WARRANTY; without even the implied warranty of6542 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6543 # GNU General Public License for more details.6544 6545 # You should have received a copy of the GNU General Public License6546 # along with this program; if not, write to the Free Software6547 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6548 # 02111-1307, USA.6549 6550 # serial 26551 6552 # AM_MAKE_INCLUDE()6553 # -----------------6554 # Check to see how make treats includes.6555 AC_DEFUN([AM_MAKE_INCLUDE],6556 [am_make=${MAKE-make}6557 cat > confinc << 'END'6558 am__doit:6559 @echo done6560 .PHONY: am__doit6561 END6562 # If we don't find an include directive, just comment out the code.6563 AC_MSG_CHECKING([for style of include used by $am_make])6564 am__include="#"6565 am__quote=6566 _am_result=none6567 # First try GNU make style include.6568 echo "include confinc" > confmf6569 # We grep out `Entering directory' and `Leaving directory'6570 # messages which can occur if `w' ends up in MAKEFLAGS.6571 # In particular we don't look at `^make:' because GNU make might6572 # be invoked under some other name (usually "gmake"), in which6573 # case it prints its new name instead of `make'.6574 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then6575 am__include=include6576 am__quote=6577 _am_result=GNU6578 fi6579 # Now try BSD make style include.6580 if test "$am__include" = "#"; then6581 echo '.include "confinc"' > confmf6582 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then6583 am__include=.include6584 am__quote="\""6585 _am_result=BSD6586 fi6587 fi6588 AC_SUBST([am__include])6589 AC_SUBST([am__quote])6590 AC_MSG_RESULT([$_am_result])6591 rm -f confinc confmf6592 ])6593 6594 # -*- Autoconf -*-6595 6596 6597 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.6598 6599 # This program is free software; you can redistribute it and/or modify6600 # it under the terms of the GNU General Public License as published by6601 # the Free Software Foundation; either version 2, or (at your option)6602 # any later version.6603 6604 # This program is distributed in the hope that it will be useful,6605 # but WITHOUT ANY WARRANTY; without even the implied warranty of6606 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6607 # GNU General Public License for more details.6608 6609 # You should have received a copy of the GNU General Public License6610 # along with this program; if not, write to the Free Software6611 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6612 # 02111-1307, USA.6613 6614 # serial 36615 6616 # AM_MISSING_PROG(NAME, PROGRAM)6617 # ------------------------------6618 AC_DEFUN([AM_MISSING_PROG],6619 [AC_REQUIRE([AM_MISSING_HAS_RUN])6620 $1=${$1-"${am_missing_run}$2"}6621 AC_SUBST($1)])6622 6623 6624 # AM_MISSING_HAS_RUN6625 # ------------------6626 # Define MISSING if not defined so far and test if it supports --run.6627 # If it does, set am_missing_run to use it, otherwise, to nothing.6628 AC_DEFUN([AM_MISSING_HAS_RUN],6629 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl6630 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"6631 # Use eval to expand $SHELL6632 if eval "$MISSING --run true"; then6633 am_missing_run="$MISSING --run "6634 else6635 am_missing_run=6636 AC_MSG_WARN([`missing' script is too old or missing])6637 fi6638 ])6639 6640 # AM_PROG_MKDIR_P6641 # ---------------6642 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.6643 6644 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.6645 6646 # This program is free software; you can redistribute it and/or modify6647 # it under the terms of the GNU General Public License as published by6648 # the Free Software Foundation; either version 2, or (at your option)6649 # any later version.6650 6651 # This program is distributed in the hope that it will be useful,6652 # but WITHOUT ANY WARRANTY; without even the implied warranty of6653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6654 # GNU General Public License for more details.6655 6656 # You should have received a copy of the GNU General Public License6657 # along with this program; if not, write to the Free Software6658 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6659 # 02111-1307, USA.6660 6661 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories6662 # created by `make install' are always world readable, even if the6663 # installer happens to have an overly restrictive umask (e.g. 077).6664 # This was a mistake. There are at least two reasons why we must not6665 # use `-m 0755':6666 # - it causes special bits like SGID to be ignored,6667 # - it may be too restrictive (some setups expect 775 directories).6668 #6669 # Do not use -m 0755 and let people choose whatever they expect by6670 # setting umask.6671 #6672 # We cannot accept any implementation of `mkdir' that recognizes `-p'.6673 # Some implementations (such as Solaris 8's) are not thread-safe: if a6674 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'6675 # concurrently, both version can detect that a/ is missing, but only6676 # one can create it and the other will error out. Consequently we6677 # restrict ourselves to GNU make (using the --version option ensures6678 # this.)6679 AC_DEFUN([AM_PROG_MKDIR_P],6680 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then6681 # Keeping the `.' argument allows $(mkdir_p) to be used without6682 # argument. Indeed, we sometimes output rules like6683 # $(mkdir_p) $(somedir)6684 # where $(somedir) is conditionally defined.6685 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more6686 # expensive solution, as it forces Make to start a sub-shell.)6687 mkdir_p='mkdir -p -- .'6688 else6689 # On NextStep and OpenStep, the `mkdir' command does not6690 # recognize any option. It will interpret all options as6691 # directories to create, and then abort because `.' already6692 # exists.6693 for d in ./-p ./--version;6694 do6695 test -d $d && rmdir $d6696 done6697 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.6698 if test -f "$ac_aux_dir/mkinstalldirs"; then6699 mkdir_p='$(mkinstalldirs)'6700 else6701 mkdir_p='$(install_sh) -d'6702 fi6703 fi6704 AC_SUBST([mkdir_p])])6705 6706 # Helper functions for option handling. -*- Autoconf -*-6707 6708 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.6709 6710 # This program is free software; you can redistribute it and/or modify6711 # it under the terms of the GNU General Public License as published by6712 # the Free Software Foundation; either version 2, or (at your option)6713 # any later version.6714 6715 # This program is distributed in the hope that it will be useful,6716 # but WITHOUT ANY WARRANTY; without even the implied warranty of6717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6718 # GNU General Public License for more details.6719 6720 # You should have received a copy of the GNU General Public License6721 # along with this program; if not, write to the Free Software6722 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6723 # 02111-1307, USA.6724 6725 # serial 26726 6727 # _AM_MANGLE_OPTION(NAME)6728 # -----------------------6729 AC_DEFUN([_AM_MANGLE_OPTION],6730 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])6731 6732 # _AM_SET_OPTION(NAME)6733 # ------------------------------6734 # Set option NAME. Presently that only means defining a flag for this option.6735 AC_DEFUN([_AM_SET_OPTION],6736 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])6737 6738 # _AM_SET_OPTIONS(OPTIONS)6739 # ----------------------------------6740 # OPTIONS is a space-separated list of Automake options.6741 AC_DEFUN([_AM_SET_OPTIONS],6742 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])6743 6744 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])6745 # -------------------------------------------6746 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.6747 AC_DEFUN([_AM_IF_OPTION],6748 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])6749 6750 #6751 # Check to make sure that the build environment is sane.6752 #6753 6754 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.6755 6756 # This program is free software; you can redistribute it and/or modify6757 # it under the terms of the GNU General Public License as published by6758 # the Free Software Foundation; either version 2, or (at your option)6759 # any later version.6760 6761 # This program is distributed in the hope that it will be useful,6762 # but WITHOUT ANY WARRANTY; without even the implied warranty of6763 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6764 # GNU General Public License for more details.6765 6766 # You should have received a copy of the GNU General Public License6767 # along with this program; if not, write to the Free Software6768 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6769 # 02111-1307, USA.6770 6771 # serial 36772 6773 # AM_SANITY_CHECK6774 # ---------------6775 AC_DEFUN([AM_SANITY_CHECK],6776 [AC_MSG_CHECKING([whether build environment is sane])6777 # Just in case6778 sleep 16779 echo timestamp > conftest.file6780 # Do `set' in a subshell so we don't clobber the current shell's6781 # arguments. Must try -L first in case configure is actually a6782 # symlink; some systems play weird games with the mod time of symlinks6783 # (eg FreeBSD returns the mod time of the symlink's containing6784 # directory).6785 if (6786 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`6787 if test "$[*]" = "X"; then6788 # -L didn't work.6789 set X `ls -t $srcdir/configure conftest.file`6790 fi6791 rm -f conftest.file6792 if test "$[*]" != "X $srcdir/configure conftest.file" \6793 && test "$[*]" != "X conftest.file $srcdir/configure"; then6794 6795 # If neither matched, then we have a broken ls. This can happen6796 # if, for instance, CONFIG_SHELL is bash and it inherits a6797 # broken ls alias from the environment. This has actually6798 # happened. Such a system could not be considered "sane".6799 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken6800 alias in your environment])6801 fi6802 6803 test "$[2]" = conftest.file6804 )6805 then6806 # Ok.6807 :6808 else6809 AC_MSG_ERROR([newly created file is older than distributed files!6810 Check your system clock])6811 fi6812 AC_MSG_RESULT(yes)])6813 6814 # AM_PROG_INSTALL_STRIP6815 6816 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.6817 6818 # This program is free software; you can redistribute it and/or modify6819 # it under the terms of the GNU General Public License as published by6820 # the Free Software Foundation; either version 2, or (at your option)6821 # any later version.6822 6823 # This program is distributed in the hope that it will be useful,6824 # but WITHOUT ANY WARRANTY; without even the implied warranty of6825 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6826 # GNU General Public License for more details.6827 6828 # You should have received a copy of the GNU General Public License6829 # along with this program; if not, write to the Free Software6830 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6831 # 02111-1307, USA.6832 6833 # One issue with vendor `install' (even GNU) is that you can't6834 # specify the program used to strip binaries. This is especially6835 # annoying in cross-compiling environments, where the build's strip6836 # is unlikely to handle the host's binaries.6837 # Fortunately install-sh will honor a STRIPPROG variable, so we6838 # always use install-sh in `make install-strip', and initialize6839 # STRIPPROG with the value of the STRIP variable (set by the user).6840 AC_DEFUN([AM_PROG_INSTALL_STRIP],6841 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl6842 # Installed binaries are usually stripped using `strip' when the user6843 # run `make install-strip'. However `strip' might not be the right6844 # tool to use in cross-compilation environments, therefore Automake6845 # will honor the `STRIP' environment variable to overrule this program.6846 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.6847 if test "$cross_compiling" != no; then6848 AC_CHECK_TOOL([STRIP], [strip], :)6849 fi6850 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"6851 AC_SUBST([INSTALL_STRIP_PROGRAM])])6852
Note:
See TracChangeset
for help on using the changeset viewer.
