Changeset 18603
- Timestamp:
- 09/17/16 18:59:54 (8 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/.aux_dir/ltmain.sh
r14328 r18603 1 2 # libtool (GNU libtool) 2.4.2 1 #! /bin/sh 2 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in 3 ## by inline-source v2014-01-03.01 4 5 # libtool (GNU libtool) 2.4.6 6 # Provide generalized library-building support services. 3 7 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 4 8 5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 6 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. 9 # Copyright (C) 1996-2015 Free Software Foundation, Inc. 7 10 # This is free software; see the source for copying conditions. There is NO 8 11 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. … … 24 27 # 25 28 # You should have received a copy of the GNU General Public License 26 # along with GNU Libtool; see the file COPYING. If not, a copy 27 # can be downloaded from http://www.gnu.org/licenses/gpl.html, 28 # or obtained by writing to the Free Software Foundation, Inc., 29 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 30 31 # Usage: $progname [OPTION]... [MODE-ARG]... 32 # 33 # Provide generalized library-building support services. 34 # 35 # --config show all configuration variables 36 # --debug enable verbose shell tracing 37 # -n, --dry-run display commands without modifying any files 38 # --features display basic configuration information and exit 39 # --mode=MODE use operation mode MODE 40 # --preserve-dup-deps don't remove duplicate dependency libraries 41 # --quiet, --silent don't print informational messages 42 # --no-quiet, --no-silent 43 # print informational messages (default) 44 # --no-warn don't display warning messages 45 # --tag=TAG use configuration variables from tag TAG 46 # -v, --verbose print more informational messages than default 47 # --no-verbose don't print the extra informational messages 48 # --version print version information 49 # -h, --help, --help-all print short, long, or detailed help message 50 # 51 # MODE must be one of the following: 52 # 53 # clean remove files from the build directory 54 # compile compile a source file into a libtool object 55 # execute automatically set library path, then run a program 56 # finish complete the installation of libtool libraries 57 # install install libraries or executables 58 # link create a library or an executable 59 # uninstall remove libraries from an installed directory 60 # 61 # MODE-ARGS vary depending on the MODE. When passed as first option, 62 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. 63 # Try `$progname --help --mode=MODE' for a more detailed description of MODE. 64 # 65 # When reporting a bug, please describe a test case to reproduce it and 66 # include the following information: 67 # 68 # host-triplet: $host 69 # shell: $SHELL 70 # compiler: $LTCC 71 # compiler flags: $LTCFLAGS 72 # linker: $LD (gnu? $with_gnu_ld) 73 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1 74 # automake: $automake_version 75 # autoconf: $autoconf_version 76 # 77 # Report bugs to <bug-libtool@gnu.org>. 78 # GNU libtool home page: <http://www.gnu.org/software/libtool/>. 79 # General help using GNU software: <http://www.gnu.org/gethelp/>. 29 # along with this program. If not, see <http://www.gnu.org/licenses/>. 30 80 31 81 32 PROGRAM=libtool 82 33 PACKAGE=libtool 83 VERSION="2.4.2 Debian-2.4.2-1ubuntu1" 84 TIMESTAMP="" 85 package_revision=1.3337 86 87 # Be Bourne compatible 88 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 34 VERSION="2.4.6 Debian-2.4.6-0.1" 35 package_revision=2.4.6 36 37 38 ## ------ ## 39 ## Usage. ## 40 ## ------ ## 41 42 # Run './libtool --help' for help with using this script from the 43 # command line. 44 45 46 ## ------------------------------- ## 47 ## User overridable command paths. ## 48 ## ------------------------------- ## 49 50 # After configure completes, it has a better idea of some of the 51 # shell tools we need than the defaults used by the functions shared 52 # with bootstrap, so set those here where they can still be over- 53 # ridden by the user, but otherwise take precedence. 54 55 : ${AUTOCONF="autoconf"} 56 : ${AUTOMAKE="automake"} 57 58 59 ## -------------------------- ## 60 ## Source external libraries. ## 61 ## -------------------------- ## 62 63 # Much of our low-level functionality needs to be sourced from external 64 # libraries, which are installed to $pkgauxdir. 65 66 # Set a version string for this script. 67 scriptversion=2015-01-20.17; # UTC 68 69 # General shell script boiler plate, and helper functions. 70 # Written by Gary V. Vaughan, 2004 71 72 # Copyright (C) 2004-2015 Free Software Foundation, Inc. 73 # This is free software; see the source for copying conditions. There is NO 74 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 75 76 # This program is free software; you can redistribute it and/or modify 77 # it under the terms of the GNU General Public License as published by 78 # the Free Software Foundation; either version 3 of the License, or 79 # (at your option) any later version. 80 81 # As a special exception to the GNU General Public License, if you distribute 82 # this file as part of a program or library that is built using GNU Libtool, 83 # you may include this file under the same distribution terms that you use 84 # for the rest of that program. 85 86 # This program is distributed in the hope that it will be useful, 87 # but WITHOUT ANY WARRANTY; without even the implied warranty of 88 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU 89 # General Public License for more details. 90 91 # You should have received a copy of the GNU General Public License 92 # along with this program. If not, see <http://www.gnu.org/licenses/>. 93 94 # Please report bugs or propose patches to gary@gnu.org. 95 96 97 ## ------ ## 98 ## Usage. ## 99 ## ------ ## 100 101 # Evaluate this file near the top of your script to gain access to 102 # the functions and variables defined here: 103 # 104 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh 105 # 106 # If you need to override any of the default environment variable 107 # settings, do that before evaluating this file. 108 109 110 ## -------------------- ## 111 ## Shell normalisation. ## 112 ## -------------------- ## 113 114 # Some shells need a little help to be as Bourne compatible as possible. 115 # Before doing anything else, make sure all that help has been provided! 116 117 DUALCASE=1; export DUALCASE # for MKS sh 118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 89 119 emulate sh 90 120 NULLCMD=: 91 # Zsh 3.x and 4.x performsword splitting on ${1+"$@"}, which121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 92 122 # is contrary to our usage. Disable this feature. 93 123 alias -g '${1+"$@"}'='"$@"' 94 124 setopt NO_GLOB_SUBST 95 125 else 96 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac126 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac 97 127 fi 98 BIN_SH=xpg4; export BIN_SH # for Tru64 99 DUALCASE=1; export DUALCASE # for MKS sh 100 101 # A function that is used when there is no print builtin or printf. 102 func_fallback_echo () 103 { 104 eval 'cat <<_LTECHO_EOF 105 $1 106 _LTECHO_EOF' 107 } 108 109 # NLS nuisances: We save the old values to restore during execute mode. 110 lt_user_locale= 111 lt_safe_locale= 112 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES 128 129 # NLS nuisances: We save the old values in case they are required later. 130 _G_user_locale= 131 _G_safe_locale= 132 for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES 113 133 do 114 eval "if test \"\${$lt_var+set}\" = set; then115 save_$ lt_var=\$$lt_var116 $ lt_var=C117 export $ lt_var118 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"119 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"134 eval "if test set = \"\${$_G_var+set}\"; then 135 save_$_G_var=\$$_G_var 136 $_G_var=C 137 export $_G_var 138 _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" 139 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" 120 140 fi" 121 141 done 122 LC_ALL=C 123 LANGUAGE=C 124 export LANGUAGE LC_ALL 125 126 $lt_unset CDPATH 127 142 143 # CDPATH. 144 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 145 146 # Make sure IFS has a sensible default 147 sp=' ' 148 nl=' 149 ' 150 IFS="$sp $nl" 151 152 # There are apparently some retarded systems that use ';' as a PATH separator! 153 if test "${PATH_SEPARATOR+set}" != set; then 154 PATH_SEPARATOR=: 155 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 156 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 157 PATH_SEPARATOR=';' 158 } 159 fi 160 161 162 163 ## ------------------------- ## 164 ## Locate command utilities. ## 165 ## ------------------------- ## 166 167 168 # func_executable_p FILE 169 # ---------------------- 170 # Check that FILE is an executable regular file. 171 func_executable_p () 172 { 173 test -f "$1" && test -x "$1" 174 } 175 176 177 # func_path_progs PROGS_LIST CHECK_FUNC [PATH] 178 # -------------------------------------------- 179 # Search for either a program that responds to --version with output 180 # containing "GNU", or else returned by CHECK_FUNC otherwise, by 181 # trying all the directories in PATH with each of the elements of 182 # PROGS_LIST. 183 # 184 # CHECK_FUNC should accept the path to a candidate program, and 185 # set $func_check_prog_result if it truncates its output less than 186 # $_G_path_prog_max characters. 187 func_path_progs () 188 { 189 _G_progs_list=$1 190 _G_check_func=$2 191 _G_PATH=${3-"$PATH"} 192 193 _G_path_prog_max=0 194 _G_path_prog_found=false 195 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} 196 for _G_dir in $_G_PATH; do 197 IFS=$_G_save_IFS 198 test -z "$_G_dir" && _G_dir=. 199 for _G_prog_name in $_G_progs_list; do 200 for _exeext in '' .EXE; do 201 _G_path_prog=$_G_dir/$_G_prog_name$_exeext 202 func_executable_p "$_G_path_prog" || continue 203 case `"$_G_path_prog" --version 2>&1` in 204 *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; 205 *) $_G_check_func $_G_path_prog 206 func_path_progs_result=$func_check_prog_result 207 ;; 208 esac 209 $_G_path_prog_found && break 3 210 done 211 done 212 done 213 IFS=$_G_save_IFS 214 test -z "$func_path_progs_result" && { 215 echo "no acceptable sed could be found in \$PATH" >&2 216 exit 1 217 } 218 } 219 220 221 # We want to be able to use the functions in this file before configure 222 # has figured out where the best binaries are kept, which means we have 223 # to search for them ourselves - except when the results are already set 224 # where we skip the searches. 225 226 # Unless the user overrides by setting SED, search the path for either GNU 227 # sed, or the sed that truncates its output the least. 228 test -z "$SED" && { 229 _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 230 for _G_i in 1 2 3 4 5 6 7; do 231 _G_sed_script=$_G_sed_script$nl$_G_sed_script 232 done 233 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed 234 _G_sed_script= 235 236 func_check_prog_sed () 237 { 238 _G_path_prog=$1 239 240 _G_count=0 241 printf 0123456789 >conftest.in 242 while : 243 do 244 cat conftest.in conftest.in >conftest.tmp 245 mv conftest.tmp conftest.in 246 cp conftest.in conftest.nl 247 echo '' >> conftest.nl 248 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break 249 diff conftest.out conftest.nl >/dev/null 2>&1 || break 250 _G_count=`expr $_G_count + 1` 251 if test "$_G_count" -gt "$_G_path_prog_max"; then 252 # Best one so far, save it but keep looking for a better one 253 func_check_prog_result=$_G_path_prog 254 _G_path_prog_max=$_G_count 255 fi 256 # 10*(2^10) chars as input seems more than enough 257 test 10 -lt "$_G_count" && break 258 done 259 rm -f conftest.in conftest.tmp conftest.nl conftest.out 260 } 261 262 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin 263 rm -f conftest.sed 264 SED=$func_path_progs_result 265 } 266 267 268 # Unless the user overrides by setting GREP, search the path for either GNU 269 # grep, or the grep that truncates its output the least. 270 test -z "$GREP" && { 271 func_check_prog_grep () 272 { 273 _G_path_prog=$1 274 275 _G_count=0 276 _G_path_prog_max=0 277 printf 0123456789 >conftest.in 278 while : 279 do 280 cat conftest.in conftest.in >conftest.tmp 281 mv conftest.tmp conftest.in 282 cp conftest.in conftest.nl 283 echo 'GREP' >> conftest.nl 284 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break 285 diff conftest.out conftest.nl >/dev/null 2>&1 || break 286 _G_count=`expr $_G_count + 1` 287 if test "$_G_count" -gt "$_G_path_prog_max"; then 288 # Best one so far, save it but keep looking for a better one 289 func_check_prog_result=$_G_path_prog 290 _G_path_prog_max=$_G_count 291 fi 292 # 10*(2^10) chars as input seems more than enough 293 test 10 -lt "$_G_count" && break 294 done 295 rm -f conftest.in conftest.tmp conftest.nl conftest.out 296 } 297 298 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin 299 GREP=$func_path_progs_result 300 } 301 302 303 ## ------------------------------- ## 304 ## User overridable command paths. ## 305 ## ------------------------------- ## 306 307 # All uppercase variable names are used for environment variables. These 308 # variables can be overridden by the user before calling a script that 309 # uses them if a suitable command of that name is not already available 310 # in the command search PATH. 311 312 : ${CP="cp -f"} 313 : ${ECHO="printf %s\n"} 314 : ${EGREP="$GREP -E"} 315 : ${FGREP="$GREP -F"} 316 : ${LN_S="ln -s"} 317 : ${MAKE="make"} 318 : ${MKDIR="mkdir"} 319 : ${MV="mv -f"} 320 : ${RM="rm -f"} 321 : ${SHELL="${CONFIG_SHELL-/bin/sh}"} 322 323 324 ## -------------------- ## 325 ## Useful sed snippets. ## 326 ## -------------------- ## 327 328 sed_dirname='s|/[^/]*$||' 329 sed_basename='s|^.*/||' 330 331 # Sed substitution that helps us do robust quoting. It backslashifies 332 # metacharacters that are still active within double-quoted strings. 333 sed_quote_subst='s|\([`"$\\]\)|\\\1|g' 334 335 # Same as above, but do not quote variable references. 336 sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' 337 338 # Sed substitution that turns a string into a regex matching for the 339 # string literally. 340 sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' 341 342 # Sed substitution that converts a w32 file name or path 343 # that contains forward slashes, into one that contains 344 # (escaped) backslashes. A very naive implementation. 345 sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' 346 347 # Re-'\' parameter expansions in output of sed_double_quote_subst that 348 # were '\'-ed in input to the same. If an odd number of '\' preceded a 349 # '$' in input to sed_double_quote_subst, that '$' was protected from 350 # expansion. Since each input '\' is now two '\'s, look for any number 351 # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. 352 _G_bs='\\' 353 _G_bs2='\\\\' 354 _G_bs4='\\\\\\\\' 355 _G_dollar='\$' 356 sed_double_backslash="\ 357 s/$_G_bs4/&\\ 358 /g 359 s/^$_G_bs2$_G_dollar/$_G_bs&/ 360 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g 361 s/\n//g" 362 363 364 ## ----------------- ## 365 ## Global variables. ## 366 ## ----------------- ## 367 368 # Except for the global variables explicitly listed below, the following 369 # functions in the '^func_' namespace, and the '^require_' namespace 370 # variables initialised in the 'Resource management' section, sourcing 371 # this file will not pollute your global namespace with anything 372 # else. There's no portable way to scope variables in Bourne shell 373 # though, so actually running these functions will sometimes place 374 # results into a variable named after the function, and often use 375 # temporary variables in the '^_G_' namespace. If you are careful to 376 # avoid using those namespaces casually in your sourcing script, things 377 # should continue to work as you expect. And, of course, you can freely 378 # overwrite any of the functions or variables defined here before 379 # calling anything to customize them. 380 381 EXIT_SUCCESS=0 382 EXIT_FAILURE=1 383 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. 384 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. 385 386 # Allow overriding, eg assuming that you follow the convention of 387 # putting '$debug_cmd' at the start of all your functions, you can get 388 # bash to show function call trace with: 389 # 390 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name 391 debug_cmd=${debug_cmd-":"} 392 exit_cmd=: 393 394 # By convention, finish your script with: 395 # 396 # exit $exit_status 397 # 398 # so that you can set exit_status to non-zero if you want to indicate 399 # something went wrong during execution without actually bailing out at 400 # the point of failure. 401 exit_status=$EXIT_SUCCESS 128 402 129 403 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh … … 132 406 # positional parameter $0, within a function call, is the name of the 133 407 # function. 134 progpath="$0" 135 136 137 138 : ${CP="cp -f"} 139 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} 140 : ${MAKE="make"} 141 : ${MKDIR="mkdir"} 142 : ${MV="mv -f"} 143 : ${RM="rm -f"} 144 : ${SHELL="${CONFIG_SHELL-/bin/sh}"} 145 : ${Xsed="$SED -e 1s/^X//"} 146 147 # Global variables: 148 EXIT_SUCCESS=0 149 EXIT_FAILURE=1 150 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. 151 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. 152 153 exit_status=$EXIT_SUCCESS 154 155 # Make sure IFS has a sensible default 156 lt_nl=' 157 ' 158 IFS=" $lt_nl" 159 160 dirname="s,/[^/]*$,," 161 basename="s,^.*/,," 162 163 # func_dirname file append nondir_replacement 408 progpath=$0 409 410 # The name of this program. 411 progname=`$ECHO "$progpath" |$SED "$sed_basename"` 412 413 # Make sure we have an absolute progpath for reexecution: 414 case $progpath in 415 [\\/]*|[A-Za-z]:\\*) ;; 416 *[\\/]*) 417 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` 418 progdir=`cd "$progdir" && pwd` 419 progpath=$progdir/$progname 420 ;; 421 *) 422 _G_IFS=$IFS 423 IFS=${PATH_SEPARATOR-:} 424 for progdir in $PATH; do 425 IFS=$_G_IFS 426 test -x "$progdir/$progname" && break 427 done 428 IFS=$_G_IFS 429 test -n "$progdir" || progdir=`pwd` 430 progpath=$progdir/$progname 431 ;; 432 esac 433 434 435 ## ----------------- ## 436 ## Standard options. ## 437 ## ----------------- ## 438 439 # The following options affect the operation of the functions defined 440 # below, and should be set appropriately depending on run-time para- 441 # meters passed on the command line. 442 443 opt_dry_run=false 444 opt_quiet=false 445 opt_verbose=false 446 447 # Categories 'all' and 'none' are always available. Append any others 448 # you will pass as the first argument to func_warning from your own 449 # code. 450 warning_categories= 451 452 # By default, display warnings according to 'opt_warning_types'. Set 453 # 'warning_func' to ':' to elide all warnings, or func_fatal_error to 454 # treat the next displayed warning as a fatal error. 455 warning_func=func_warn_and_continue 456 457 # Set to 'all' to display all warnings, 'none' to suppress all 458 # warnings, or a space delimited list of some subset of 459 # 'warning_categories' to display only the listed warnings. 460 opt_warning_types=all 461 462 463 ## -------------------- ## 464 ## Resource management. ## 465 ## -------------------- ## 466 467 # This section contains definitions for functions that each ensure a 468 # particular resource (a file, or a non-empty configuration variable for 469 # example) is available, and if appropriate to extract default values 470 # from pertinent package files. Call them using their associated 471 # 'require_*' variable to ensure that they are executed, at most, once. 472 # 473 # It's entirely deliberate that calling these functions can set 474 # variables that don't obey the namespace limitations obeyed by the rest 475 # of this file, in order that that they be as useful as possible to 476 # callers. 477 478 479 # require_term_colors 480 # ------------------- 481 # Allow display of bold text on terminals that support it. 482 require_term_colors=func_require_term_colors 483 func_require_term_colors () 484 { 485 $debug_cmd 486 487 test -t 1 && { 488 # COLORTERM and USE_ANSI_COLORS environment variables take 489 # precedence, because most terminfo databases neglect to describe 490 # whether color sequences are supported. 491 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} 492 493 if test 1 = "$USE_ANSI_COLORS"; then 494 # Standard ANSI escape sequences 495 tc_reset='[0m' 496 tc_bold='[1m'; tc_standout='[7m' 497 tc_red='[31m'; tc_green='[32m' 498 tc_blue='[34m'; tc_cyan='[36m' 499 else 500 # Otherwise trust the terminfo database after all. 501 test -n "`tput sgr0 2>/dev/null`" && { 502 tc_reset=`tput sgr0` 503 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` 504 tc_standout=$tc_bold 505 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` 506 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` 507 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` 508 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` 509 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` 510 } 511 fi 512 } 513 514 require_term_colors=: 515 } 516 517 518 ## ----------------- ## 519 ## Function library. ## 520 ## ----------------- ## 521 522 # This section contains a variety of useful functions to call in your 523 # scripts. Take note of the portable wrappers for features provided by 524 # some modern shells, which will fall back to slower equivalents on 525 # less featureful shells. 526 527 528 # func_append VAR VALUE 529 # --------------------- 530 # Append VALUE onto the existing contents of VAR. 531 532 # We should try to minimise forks, especially on Windows where they are 533 # unreasonably slow, so skip the feature probes when bash or zsh are 534 # being used: 535 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then 536 : ${_G_HAVE_ARITH_OP="yes"} 537 : ${_G_HAVE_XSI_OPS="yes"} 538 # The += operator was introduced in bash 3.1 539 case $BASH_VERSION in 540 [12].* | 3.0 | 3.0*) ;; 541 *) 542 : ${_G_HAVE_PLUSEQ_OP="yes"} 543 ;; 544 esac 545 fi 546 547 # _G_HAVE_PLUSEQ_OP 548 # Can be empty, in which case the shell is probed, "yes" if += is 549 # useable or anything else if it does not work. 550 test -z "$_G_HAVE_PLUSEQ_OP" \ 551 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ 552 && _G_HAVE_PLUSEQ_OP=yes 553 554 if test yes = "$_G_HAVE_PLUSEQ_OP" 555 then 556 # This is an XSI compatible shell, allowing a faster implementation... 557 eval 'func_append () 558 { 559 $debug_cmd 560 561 eval "$1+=\$2" 562 }' 563 else 564 # ...otherwise fall back to using expr, which is often a shell builtin. 565 func_append () 566 { 567 $debug_cmd 568 569 eval "$1=\$$1\$2" 570 } 571 fi 572 573 574 # func_append_quoted VAR VALUE 575 # ---------------------------- 576 # Quote VALUE and append to the end of shell variable VAR, separated 577 # by a space. 578 if test yes = "$_G_HAVE_PLUSEQ_OP"; then 579 eval 'func_append_quoted () 580 { 581 $debug_cmd 582 583 func_quote_for_eval "$2" 584 eval "$1+=\\ \$func_quote_for_eval_result" 585 }' 586 else 587 func_append_quoted () 588 { 589 $debug_cmd 590 591 func_quote_for_eval "$2" 592 eval "$1=\$$1\\ \$func_quote_for_eval_result" 593 } 594 fi 595 596 597 # func_append_uniq VAR VALUE 598 # -------------------------- 599 # Append unique VALUE onto the existing contents of VAR, assuming 600 # entries are delimited by the first character of VALUE. For example: 601 # 602 # func_append_uniq options " --another-option option-argument" 603 # 604 # will only append to $options if " --another-option option-argument " 605 # is not already present somewhere in $options already (note spaces at 606 # each end implied by leading space in second argument). 607 func_append_uniq () 608 { 609 $debug_cmd 610 611 eval _G_current_value='`$ECHO $'$1'`' 612 _G_delim=`expr "$2" : '\(.\)'` 613 614 case $_G_delim$_G_current_value$_G_delim in 615 *"$2$_G_delim"*) ;; 616 *) func_append "$@" ;; 617 esac 618 } 619 620 621 # func_arith TERM... 622 # ------------------ 623 # Set func_arith_result to the result of evaluating TERMs. 624 test -z "$_G_HAVE_ARITH_OP" \ 625 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ 626 && _G_HAVE_ARITH_OP=yes 627 628 if test yes = "$_G_HAVE_ARITH_OP"; then 629 eval 'func_arith () 630 { 631 $debug_cmd 632 633 func_arith_result=$(( $* )) 634 }' 635 else 636 func_arith () 637 { 638 $debug_cmd 639 640 func_arith_result=`expr "$@"` 641 } 642 fi 643 644 645 # func_basename FILE 646 # ------------------ 647 # Set func_basename_result to FILE with everything up to and including 648 # the last / stripped. 649 if test yes = "$_G_HAVE_XSI_OPS"; then 650 # If this shell supports suffix pattern removal, then use it to avoid 651 # forking. Hide the definitions single quotes in case the shell chokes 652 # on unsupported syntax... 653 _b='func_basename_result=${1##*/}' 654 _d='case $1 in 655 */*) func_dirname_result=${1%/*}$2 ;; 656 * ) func_dirname_result=$3 ;; 657 esac' 658 659 else 660 # ...otherwise fall back to using sed. 661 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' 662 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` 663 if test "X$func_dirname_result" = "X$1"; then 664 func_dirname_result=$3 665 else 666 func_append func_dirname_result "$2" 667 fi' 668 fi 669 670 eval 'func_basename () 671 { 672 $debug_cmd 673 674 '"$_b"' 675 }' 676 677 678 # func_dirname FILE APPEND NONDIR_REPLACEMENT 679 # ------------------------------------------- 164 680 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 165 681 # otherwise set result to NONDIR_REPLACEMENT. 166 func_dirname () 167 { 168 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 169 if test "X$func_dirname_result" = "X${1}"; then 170 func_dirname_result="${3}" 171 else 172 func_dirname_result="$func_dirname_result${2}" 173 fi 174 } # func_dirname may be replaced by extended shell implementation 175 176 177 # func_basename file 178 func_basename () 179 { 180 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 181 } # func_basename may be replaced by extended shell implementation 182 183 184 # func_dirname_and_basename file append nondir_replacement 185 # perform func_basename and func_dirname in a single function 682 eval 'func_dirname () 683 { 684 $debug_cmd 685 686 '"$_d"' 687 }' 688 689 690 # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT 691 # -------------------------------------------------------- 692 # Perform func_basename and func_dirname in a single function 186 693 # call: 187 694 # dirname: Compute the dirname of FILE. If nonempty, … … 191 698 # basename: Compute filename of FILE. 192 699 # value retuned in "$func_basename_result" 193 # Implementation must be kept synchronized with func_dirname 194 # and func_basename. For efficiency, we do not delegate to 195 # those functions but instead duplicate the functionality here. 196 func_dirname_and_basename () 197 { 198 # Extract subdirectory from the argument. 199 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` 200 if test "X$func_dirname_result" = "X${1}"; then 201 func_dirname_result="${3}" 700 # For efficiency, we do not delegate to the functions above but instead 701 # duplicate the functionality here. 702 eval 'func_dirname_and_basename () 703 { 704 $debug_cmd 705 706 '"$_b"' 707 '"$_d"' 708 }' 709 710 711 # func_echo ARG... 712 # ---------------- 713 # Echo program name prefixed message. 714 func_echo () 715 { 716 $debug_cmd 717 718 _G_message=$* 719 720 func_echo_IFS=$IFS 721 IFS=$nl 722 for _G_line in $_G_message; do 723 IFS=$func_echo_IFS 724 $ECHO "$progname: $_G_line" 725 done 726 IFS=$func_echo_IFS 727 } 728 729 730 # func_echo_all ARG... 731 # -------------------- 732 # Invoke $ECHO with all args, space-separated. 733 func_echo_all () 734 { 735 $ECHO "$*" 736 } 737 738 739 # func_echo_infix_1 INFIX ARG... 740 # ------------------------------ 741 # Echo program name, followed by INFIX on the first line, with any 742 # additional lines not showing INFIX. 743 func_echo_infix_1 () 744 { 745 $debug_cmd 746 747 $require_term_colors 748 749 _G_infix=$1; shift 750 _G_indent=$_G_infix 751 _G_prefix="$progname: $_G_infix: " 752 _G_message=$* 753 754 # Strip color escape sequences before counting printable length 755 for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" 756 do 757 test -n "$_G_tc" && { 758 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` 759 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` 760 } 761 done 762 _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes 763 764 func_echo_infix_1_IFS=$IFS 765 IFS=$nl 766 for _G_line in $_G_message; do 767 IFS=$func_echo_infix_1_IFS 768 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 769 _G_prefix=$_G_indent 770 done 771 IFS=$func_echo_infix_1_IFS 772 } 773 774 775 # func_error ARG... 776 # ----------------- 777 # Echo program name prefixed message to standard error. 778 func_error () 779 { 780 $debug_cmd 781 782 $require_term_colors 783 784 func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 785 } 786 787 788 # func_fatal_error ARG... 789 # ----------------------- 790 # Echo program name prefixed message to standard error, and exit. 791 func_fatal_error () 792 { 793 $debug_cmd 794 795 func_error "$*" 796 exit $EXIT_FAILURE 797 } 798 799 800 # func_grep EXPRESSION FILENAME 801 # ----------------------------- 802 # Check whether EXPRESSION matches any line of FILENAME, without output. 803 func_grep () 804 { 805 $debug_cmd 806 807 $GREP "$1" "$2" >/dev/null 2>&1 808 } 809 810 811 # func_len STRING 812 # --------------- 813 # Set func_len_result to the length of STRING. STRING may not 814 # start with a hyphen. 815 test -z "$_G_HAVE_XSI_OPS" \ 816 && (eval 'x=a/b/c; 817 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ 818 && _G_HAVE_XSI_OPS=yes 819 820 if test yes = "$_G_HAVE_XSI_OPS"; then 821 eval 'func_len () 822 { 823 $debug_cmd 824 825 func_len_result=${#1} 826 }' 827 else 828 func_len () 829 { 830 $debug_cmd 831 832 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 833 } 834 fi 835 836 837 # func_mkdir_p DIRECTORY-PATH 838 # --------------------------- 839 # Make sure the entire path to DIRECTORY-PATH is available. 840 func_mkdir_p () 841 { 842 $debug_cmd 843 844 _G_directory_path=$1 845 _G_dir_list= 846 847 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then 848 849 # Protect directory names starting with '-' 850 case $_G_directory_path in 851 -*) _G_directory_path=./$_G_directory_path ;; 852 esac 853 854 # While some portion of DIR does not yet exist... 855 while test ! -d "$_G_directory_path"; do 856 # ...make a list in topmost first order. Use a colon delimited 857 # list incase some portion of path contains whitespace. 858 _G_dir_list=$_G_directory_path:$_G_dir_list 859 860 # If the last portion added has no slash in it, the list is done 861 case $_G_directory_path in */*) ;; *) break ;; esac 862 863 # ...otherwise throw away the child directory and loop 864 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` 865 done 866 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` 867 868 func_mkdir_p_IFS=$IFS; IFS=: 869 for _G_dir in $_G_dir_list; do 870 IFS=$func_mkdir_p_IFS 871 # mkdir can fail with a 'File exist' error if two processes 872 # try to create one of the directories concurrently. Don't 873 # stop in that case! 874 $MKDIR "$_G_dir" 2>/dev/null || : 875 done 876 IFS=$func_mkdir_p_IFS 877 878 # Bail out if we (or some other process) failed to create a directory. 879 test -d "$_G_directory_path" || \ 880 func_fatal_error "Failed to create '$1'" 881 fi 882 } 883 884 885 # func_mktempdir [BASENAME] 886 # ------------------------- 887 # Make a temporary directory that won't clash with other running 888 # libtool processes, and avoids race conditions if possible. If 889 # given, BASENAME is the basename for that directory. 890 func_mktempdir () 891 { 892 $debug_cmd 893 894 _G_template=${TMPDIR-/tmp}/${1-$progname} 895 896 if test : = "$opt_dry_run"; then 897 # Return a directory name, but don't create it in dry-run mode 898 _G_tmpdir=$_G_template-$$ 202 899 else 203 func_dirname_result="$func_dirname_result${2}" 900 901 # If mktemp works, use that first and foremost 902 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` 903 904 if test ! -d "$_G_tmpdir"; then 905 # Failing that, at least try and use $RANDOM to avoid a race 906 _G_tmpdir=$_G_template-${RANDOM-0}$$ 907 908 func_mktempdir_umask=`umask` 909 umask 0077 910 $MKDIR "$_G_tmpdir" 911 umask $func_mktempdir_umask 912 fi 913 914 # If we're not in dry-run mode, bomb out on failure 915 test -d "$_G_tmpdir" || \ 916 func_fatal_error "cannot create temporary directory '$_G_tmpdir'" 204 917 fi 205 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` 206 } # func_dirname_and_basename may be replaced by extended shell implementation 207 208 209 # func_stripname prefix suffix name 210 # strip PREFIX and SUFFIX off of NAME. 211 # PREFIX and SUFFIX must not contain globbing or regex special 212 # characters, hashes, percent signs, but SUFFIX may contain a leading 213 # dot (in which case that matches only a dot). 214 # func_strip_suffix prefix name 215 func_stripname () 216 { 217 case ${2} in 218 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 219 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 220 esac 221 } # func_stripname may be replaced by extended shell implementation 222 223 224 # These SED scripts presuppose an absolute path with a trailing slash. 225 pathcar='s,^/\([^/]*\).*$,\1,' 226 pathcdr='s,^/[^/]*,,' 227 removedotparts=':dotsl 228 s@/\./@/@g 229 t dotsl 230 s,/\.$,/,' 231 collapseslashes='s@/\{1,\}@/@g' 232 finalslash='s,/*$,/,' 918 919 $ECHO "$_G_tmpdir" 920 } 921 233 922 234 923 # func_normal_abspath PATH 924 # ------------------------ 235 925 # Remove doubled-up and trailing slashes, "." path components, 236 926 # and cancel out any ".." path components in PATH after making 237 927 # it an absolute path. 238 # value returned in "$func_normal_abspath_result"239 928 func_normal_abspath () 240 929 { 241 # Start from root dir and reassemble the path.242 func_normal_abspath_result= 243 func_normal_abspath_tpath=$1244 func_normal_abspath_altnamespace=245 case $func_normal_abspath_tpath in246 "")247 # Empty path, that just means $cwd. 248 func_stripname '' '/' "`pwd`" 249 func_normal_abspath_result=$func_stripname_result 250 return251 ;;252 # The next three entries are used to spot a run of precisely 253 # two leading slashes without using negated character classes;254 # we take advantage of case's first-match behaviour.255 ///*)256 # Unusual form of absolute path, do nothing.257 ;;258 //*)259 # Not necessarily an ordinary path; POSIX reserves leading '//'260 # and for example Cygwin uses it to access remote file shares261 # over CIFS/SMB, so we conserve a leading double slash if found.262 func_normal_abspath_altnamespace=/263 ;;264 /*)265 # Absolute path, do nothing.266 ;;267 *)268 # Relative path, prepend $cwd.269 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath270 ;;271 esac272 # Cancel out all the simple stuff to save iterations. We also want273 # the path to end with a slash for ease of parsing, so make sure274 # there is one (and only one) here.275 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \276 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`277 while :; do278 # Processed it all yet?279 if test "$func_normal_abspath_tpath" = / ; then280 # If we ascended to the root using ".." the result may be empty now.281 if test -z "$func_normal_abspath_result" ; then282 func_normal_abspath_result=/283 fi284 break 285 fi286 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \287 -e "$pathcar"`930 $debug_cmd 931 932 # These SED scripts presuppose an absolute path with a trailing slash. 933 _G_pathcar='s|^/\([^/]*\).*$|\1|' 934 _G_pathcdr='s|^/[^/]*||' 935 _G_removedotparts=':dotsl 936 s|/\./|/|g 937 t dotsl 938 s|/\.$|/|' 939 _G_collapseslashes='s|/\{1,\}|/|g' 940 _G_finalslash='s|/*$|/|' 941 942 # Start from root dir and reassemble the path. 943 func_normal_abspath_result= 944 func_normal_abspath_tpath=$1 945 func_normal_abspath_altnamespace= 946 case $func_normal_abspath_tpath in 947 "") 948 # Empty path, that just means $cwd. 949 func_stripname '' '/' "`pwd`" 950 func_normal_abspath_result=$func_stripname_result 951 return 952 ;; 953 # The next three entries are used to spot a run of precisely 954 # two leading slashes without using negated character classes; 955 # we take advantage of case's first-match behaviour. 956 ///*) 957 # Unusual form of absolute path, do nothing. 958 ;; 959 //*) 960 # Not necessarily an ordinary path; POSIX reserves leading '//' 961 # and for example Cygwin uses it to access remote file shares 962 # over CIFS/SMB, so we conserve a leading double slash if found. 963 func_normal_abspath_altnamespace=/ 964 ;; 965 /*) 966 # Absolute path, do nothing. 967 ;; 968 *) 969 # Relative path, prepend $cwd. 970 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath 971 ;; 972 esac 973 974 # Cancel out all the simple stuff to save iterations. We also want 975 # the path to end with a slash for ease of parsing, so make sure 976 # there is one (and only one) here. 288 977 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ 289 -e "$pathcdr"` 290 # Figure out what to do with it 291 case $func_normal_abspath_tcomponent in 292 "") 293 # Trailing empty path component, ignore it. 294 ;; 295 ..) 296 # Parent dir; strip last assembled component from result. 297 func_dirname "$func_normal_abspath_result" 298 func_normal_abspath_result=$func_dirname_result 299 ;; 300 *) 301 # Actual path component, append it. 302 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent 303 ;; 304 esac 305 done 306 # Restore leading double-slash if one was found on entry. 307 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result 308 } 309 310 # func_relative_path SRCDIR DSTDIR 311 # generates a relative path from SRCDIR to DSTDIR, with a trailing 312 # slash if non-empty, suitable for immediately appending a filename 313 # without needing to append a separator. 314 # value returned in "$func_relative_path_result" 315 func_relative_path () 316 { 317 func_relative_path_result= 318 func_normal_abspath "$1" 319 func_relative_path_tlibdir=$func_normal_abspath_result 320 func_normal_abspath "$2" 321 func_relative_path_tbindir=$func_normal_abspath_result 322 323 # Ascend the tree starting from libdir 324 while :; do 325 # check if we have found a prefix of bindir 326 case $func_relative_path_tbindir in 327 $func_relative_path_tlibdir) 328 # found an exact match 329 func_relative_path_tcancelled= 330 break 331 ;; 332 $func_relative_path_tlibdir*) 333 # found a matching prefix 334 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" 335 func_relative_path_tcancelled=$func_stripname_result 336 if test -z "$func_relative_path_result"; then 337 func_relative_path_result=. 978 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` 979 while :; do 980 # Processed it all yet? 981 if test / = "$func_normal_abspath_tpath"; then 982 # If we ascended to the root using ".." the result may be empty now. 983 if test -z "$func_normal_abspath_result"; then 984 func_normal_abspath_result=/ 338 985 fi 339 986 break 340 ;; 341 *) 342 func_dirname $func_relative_path_tlibdir 343 func_relative_path_tlibdir=${func_dirname_result} 344 if test "x$func_relative_path_tlibdir" = x ; then 345 # Have to descend all the way to the root! 346 func_relative_path_result=../$func_relative_path_result 347 func_relative_path_tcancelled=$func_relative_path_tbindir 348 break 349 fi 350 func_relative_path_result=../$func_relative_path_result 351 ;; 352 esac 353 done 354 355 # Now calculate path; take care to avoid doubling-up slashes. 356 func_stripname '' '/' "$func_relative_path_result" 357 func_relative_path_result=$func_stripname_result 358 func_stripname '/' '/' "$func_relative_path_tcancelled" 359 if test "x$func_stripname_result" != x ; then 360 func_relative_path_result=${func_relative_path_result}/${func_stripname_result} 361 fi 362 363 # Normalisation. If bindir is libdir, return empty string, 364 # else relative path ending with a slash; either way, target 365 # file name can be directly appended. 366 if test ! -z "$func_relative_path_result"; then 367 func_stripname './' '' "$func_relative_path_result/" 368 func_relative_path_result=$func_stripname_result 369 fi 370 } 371 372 # The name of this program: 373 func_dirname_and_basename "$progpath" 374 progname=$func_basename_result 375 376 # Make sure we have an absolute path for reexecution: 377 case $progpath in 378 [\\/]*|[A-Za-z]:\\*) ;; 379 *[\\/]*) 380 progdir=$func_dirname_result 381 progdir=`cd "$progdir" && pwd` 382 progpath="$progdir/$progname" 383 ;; 384 *) 385 save_IFS="$IFS" 386 IFS=${PATH_SEPARATOR-:} 387 for progdir in $PATH; do 388 IFS="$save_IFS" 389 test -x "$progdir/$progname" && break 390 done 391 IFS="$save_IFS" 392 test -n "$progdir" || progdir=`pwd` 393 progpath="$progdir/$progname" 394 ;; 395 esac 396 397 # Sed substitution that helps us do robust quoting. It backslashifies 398 # metacharacters that are still active within double-quoted strings. 399 Xsed="${SED}"' -e 1s/^X//' 400 sed_quote_subst='s/\([`"$\\]\)/\\\1/g' 401 402 # Same as above, but do not quote variable references. 403 double_quote_subst='s/\(["`\\]\)/\\\1/g' 404 405 # Sed substitution that turns a string into a regex matching for the 406 # string literally. 407 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' 408 409 # Sed substitution that converts a w32 file name or path 410 # which contains forward slashes, into one that contains 411 # (escaped) backslashes. A very naive implementation. 412 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' 413 414 # Re-`\' parameter expansions in output of double_quote_subst that were 415 # `\'-ed in input to the same. If an odd number of `\' preceded a '$' 416 # in input to double_quote_subst, that '$' was protected from expansion. 417 # Since each input `\' is now two `\'s, look for any number of runs of 418 # four `\'s followed by two `\'s and then a '$'. `\' that '$'. 419 bs='\\' 420 bs2='\\\\' 421 bs4='\\\\\\\\' 422 dollar='\$' 423 sed_double_backslash="\ 424 s/$bs4/&\\ 425 /g 426 s/^$bs2$dollar/$bs&/ 427 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g 428 s/\n//g" 429 430 # Standard options: 431 opt_dry_run=false 432 opt_help=false 433 opt_quiet=false 434 opt_verbose=false 435 opt_warning=: 436 437 # func_echo arg... 438 # Echo program name prefixed message, along with the current mode 439 # name if it has been set yet. 440 func_echo () 441 { 442 $ECHO "$progname: ${opt_mode+$opt_mode: }$*" 443 } 444 445 # func_verbose arg... 446 # Echo program name prefixed message in verbose mode only. 447 func_verbose () 448 { 449 $opt_verbose && func_echo ${1+"$@"} 987 fi 988 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ 989 -e "$_G_pathcar"` 990 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ 991 -e "$_G_pathcdr"` 992 # Figure out what to do with it 993 case $func_normal_abspath_tcomponent in 994 "") 995 # Trailing empty path component, ignore it. 996 ;; 997 ..) 998 # Parent dir; strip last assembled component from result. 999 func_dirname "$func_normal_abspath_result" 1000 func_normal_abspath_result=$func_dirname_result 1001 ;; 1002 *) 1003 # Actual path component, append it. 1004 func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" 1005 ;; 1006 esac 1007 done 1008 # Restore leading double-slash if one was found on entry. 1009 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result 1010 } 1011 1012 1013 # func_notquiet ARG... 1014 # -------------------- 1015 # Echo program name prefixed message only when not in quiet mode. 1016 func_notquiet () 1017 { 1018 $debug_cmd 1019 1020 $opt_quiet || func_echo ${1+"$@"} 450 1021 451 1022 # A bug in bash halts the script if the last line of a function … … 455 1026 } 456 1027 457 # func_echo_all arg... 458 # Invoke $ECHO with all args, space-separated. 459 func_echo_all () 460 { 461 $ECHO "$*" 462 } 463 464 # func_error arg... 465 # Echo program name prefixed message to standard error. 466 func_error () 467 { 468 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 469 } 470 471 # func_warning arg... 472 # Echo program name prefixed warning message to standard error. 473 func_warning () 474 { 475 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 476 477 # bash bug again: 1028 1029 # func_relative_path SRCDIR DSTDIR 1030 # -------------------------------- 1031 # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. 1032 func_relative_path () 1033 { 1034 $debug_cmd 1035 1036 func_relative_path_result= 1037 func_normal_abspath "$1" 1038 func_relative_path_tlibdir=$func_normal_abspath_result 1039 func_normal_abspath "$2" 1040 func_relative_path_tbindir=$func_normal_abspath_result 1041 1042 # Ascend the tree starting from libdir 1043 while :; do 1044 # check if we have found a prefix of bindir 1045 case $func_relative_path_tbindir in 1046 $func_relative_path_tlibdir) 1047 # found an exact match 1048 func_relative_path_tcancelled= 1049 break 1050 ;; 1051 $func_relative_path_tlibdir*) 1052 # found a matching prefix 1053 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" 1054 func_relative_path_tcancelled=$func_stripname_result 1055 if test -z "$func_relative_path_result"; then 1056 func_relative_path_result=. 1057 fi 1058 break 1059 ;; 1060 *) 1061 func_dirname $func_relative_path_tlibdir 1062 func_relative_path_tlibdir=$func_dirname_result 1063 if test -z "$func_relative_path_tlibdir"; then 1064 # Have to descend all the way to the root! 1065 func_relative_path_result=../$func_relative_path_result 1066 func_relative_path_tcancelled=$func_relative_path_tbindir 1067 break 1068 fi 1069 func_relative_path_result=../$func_relative_path_result 1070 ;; 1071 esac 1072 done 1073 1074 # Now calculate path; take care to avoid doubling-up slashes. 1075 func_stripname '' '/' "$func_relative_path_result" 1076 func_relative_path_result=$func_stripname_result 1077 func_stripname '/' '/' "$func_relative_path_tcancelled" 1078 if test -n "$func_stripname_result"; then 1079 func_append func_relative_path_result "/$func_stripname_result" 1080 fi 1081 1082 # Normalisation. If bindir is libdir, return '.' else relative path. 1083 if test -n "$func_relative_path_result"; then 1084 func_stripname './' '' "$func_relative_path_result" 1085 func_relative_path_result=$func_stripname_result 1086 fi 1087 1088 test -n "$func_relative_path_result" || func_relative_path_result=. 1089 478 1090 : 479 1091 } 480 1092 481 # func_fatal_error arg... 482 # Echo program name prefixed message to standard error, and exit. 483 func_fatal_error () 484 { 485 func_error ${1+"$@"} 486 exit $EXIT_FAILURE 487 } 488 489 # func_fatal_help arg... 490 # Echo program name prefixed message to standard error, followed by 491 # a help hint, and exit. 492 func_fatal_help () 493 { 494 func_error ${1+"$@"} 495 func_fatal_error "$help" 496 } 497 help="Try \`$progname --help' for more information." ## default 498 499 500 # func_grep expression filename 501 # Check whether EXPRESSION matches any line of FILENAME, without output. 502 func_grep () 503 { 504 $GREP "$1" "$2" >/dev/null 2>&1 505 } 506 507 508 # func_mkdir_p directory-path 509 # Make sure the entire path to DIRECTORY-PATH is available. 510 func_mkdir_p () 511 { 512 my_directory_path="$1" 513 my_dir_list= 514 515 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then 516 517 # Protect directory names starting with `-' 518 case $my_directory_path in 519 -*) my_directory_path="./$my_directory_path" ;; 1093 1094 # func_quote_for_eval ARG... 1095 # -------------------------- 1096 # Aesthetically quote ARGs to be evaled later. 1097 # This function returns two values: 1098 # i) func_quote_for_eval_result 1099 # double-quoted, suitable for a subsequent eval 1100 # ii) func_quote_for_eval_unquoted_result 1101 # has all characters that are still active within double 1102 # quotes backslashified. 1103 func_quote_for_eval () 1104 { 1105 $debug_cmd 1106 1107 func_quote_for_eval_unquoted_result= 1108 func_quote_for_eval_result= 1109 while test 0 -lt $#; do 1110 case $1 in 1111 *[\\\`\"\$]*) 1112 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; 1113 *) 1114 _G_unquoted_arg=$1 ;; 520 1115 esac 521 522 # While some portion of DIR does not yet exist... 523 while test ! -d "$my_directory_path"; do 524 # ...make a list in topmost first order. Use a colon delimited 525 # list incase some portion of path contains whitespace. 526 my_dir_list="$my_directory_path:$my_dir_list" 527 528 # If the last portion added has no slash in it, the list is done 529 case $my_directory_path in */*) ;; *) break ;; esac 530 531 # ...otherwise throw away the child directory and loop 532 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` 533 done 534 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` 535 536 save_mkdir_p_IFS="$IFS"; IFS=':' 537 for my_dir in $my_dir_list; do 538 IFS="$save_mkdir_p_IFS" 539 # mkdir can fail with a `File exist' error if two processes 540 # try to create one of the directories concurrently. Don't 541 # stop in that case! 542 $MKDIR "$my_dir" 2>/dev/null || : 543 done 544 IFS="$save_mkdir_p_IFS" 545 546 # Bail out if we (or some other process) failed to create a directory. 547 test -d "$my_directory_path" || \ 548 func_fatal_error "Failed to create \`$1'" 549 fi 550 } 551 552 553 # func_mktempdir [string] 554 # Make a temporary directory that won't clash with other running 555 # libtool processes, and avoids race conditions if possible. If 556 # given, STRING is the basename for that directory. 557 func_mktempdir () 558 { 559 my_template="${TMPDIR-/tmp}/${1-$progname}" 560 561 if test "$opt_dry_run" = ":"; then 562 # Return a directory name, but don't create it in dry-run mode 563 my_tmpdir="${my_template}-$$" 564 else 565 566 # If mktemp works, use that first and foremost 567 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` 568 569 if test ! -d "$my_tmpdir"; then 570 # Failing that, at least try and use $RANDOM to avoid a race 571 my_tmpdir="${my_template}-${RANDOM-0}$$" 572 573 save_mktempdir_umask=`umask` 574 umask 0077 575 $MKDIR "$my_tmpdir" 576 umask $save_mktempdir_umask 1116 if test -n "$func_quote_for_eval_unquoted_result"; then 1117 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" 1118 else 1119 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" 577 1120 fi 578 1121 579 # If we're not in dry-run mode, bomb out on failure 580 test -d "$my_tmpdir" || \ 581 func_fatal_error "cannot create temporary directory \`$my_tmpdir'" 582 fi 583 584 $ECHO "$my_tmpdir" 585 } 586 587 588 # func_quote_for_eval arg 589 # Aesthetically quote ARG to be evaled later. 590 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT 591 # is double-quoted, suitable for a subsequent eval, whereas 592 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters 593 # which are still active within double quotes backslashified. 594 func_quote_for_eval () 595 { 596 case $1 in 597 *[\\\`\"\$]*) 598 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; 599 *) 600 func_quote_for_eval_unquoted_result="$1" ;; 601 esac 602 603 case $func_quote_for_eval_unquoted_result in 604 # Double-quote args containing shell metacharacters to delay 605 # word splitting, command substitution and and variable 606 # expansion for a subsequent eval. 607 # Many Bourne shells cannot handle close brackets correctly 608 # in scan sets, so we specify it separately. 609 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 610 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" 611 ;; 612 *) 613 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" 614 esac 615 } 616 617 618 # func_quote_for_expand arg 1122 case $_G_unquoted_arg in 1123 # Double-quote args containing shell metacharacters to delay 1124 # word splitting, command substitution and variable expansion 1125 # for a subsequent eval. 1126 # Many Bourne shells cannot handle close brackets correctly 1127 # in scan sets, so we specify it separately. 1128 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 1129 _G_quoted_arg=\"$_G_unquoted_arg\" 1130 ;; 1131 *) 1132 _G_quoted_arg=$_G_unquoted_arg 1133 ;; 1134 esac 1135 1136 if test -n "$func_quote_for_eval_result"; then 1137 func_append func_quote_for_eval_result " $_G_quoted_arg" 1138 else 1139 func_append func_quote_for_eval_result "$_G_quoted_arg" 1140 fi 1141 shift 1142 done 1143 } 1144 1145 1146 # func_quote_for_expand ARG 1147 # ------------------------- 619 1148 # Aesthetically quote ARG to be evaled later; same as above, 620 1149 # but do not quote variable references. 621 1150 func_quote_for_expand () 622 1151 { 1152 $debug_cmd 1153 623 1154 case $1 in 624 1155 *[\\\`\"]*) 625 my_arg=`$ECHO "$1" | $SED \626 -e "$ double_quote_subst" -e "$sed_double_backslash"` ;;1156 _G_arg=`$ECHO "$1" | $SED \ 1157 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; 627 1158 *) 628 my_arg="$1";;1159 _G_arg=$1 ;; 629 1160 esac 630 1161 631 case $ my_arg in1162 case $_G_arg in 632 1163 # Double-quote args containing shell metacharacters to delay 633 1164 # word splitting and command substitution for a subsequent eval. … … 635 1166 # in scan sets, so we specify it separately. 636 1167 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 637 my_arg="\"$my_arg\""1168 _G_arg=\"$_G_arg\" 638 1169 ;; 639 1170 esac 640 1171 641 func_quote_for_expand_result="$my_arg" 642 } 643 644 645 # func_show_eval cmd [fail_exp] 646 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is 1172 func_quote_for_expand_result=$_G_arg 1173 } 1174 1175 1176 # func_stripname PREFIX SUFFIX NAME 1177 # --------------------------------- 1178 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. 1179 # PREFIX and SUFFIX must not contain globbing or regex special 1180 # characters, hashes, percent signs, but SUFFIX may contain a leading 1181 # dot (in which case that matches only a dot). 1182 if test yes = "$_G_HAVE_XSI_OPS"; then 1183 eval 'func_stripname () 1184 { 1185 $debug_cmd 1186 1187 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 1188 # positional parameters, so assign one to ordinary variable first. 1189 func_stripname_result=$3 1190 func_stripname_result=${func_stripname_result#"$1"} 1191 func_stripname_result=${func_stripname_result%"$2"} 1192 }' 1193 else 1194 func_stripname () 1195 { 1196 $debug_cmd 1197 1198 case $2 in 1199 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; 1200 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; 1201 esac 1202 } 1203 fi 1204 1205 1206 # func_show_eval CMD [FAIL_EXP] 1207 # ----------------------------- 1208 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is 647 1209 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP 648 1210 # is given, then evaluate it. 649 1211 func_show_eval () 650 1212 { 651 my_cmd="$1" 652 my_fail_exp="${2-:}" 653 654 ${opt_silent-false} || { 655 func_quote_for_expand "$my_cmd" 656 eval "func_echo $func_quote_for_expand_result" 1213 $debug_cmd 1214 1215 _G_cmd=$1 1216 _G_fail_exp=${2-':'} 1217 1218 func_quote_for_expand "$_G_cmd" 1219 eval "func_notquiet $func_quote_for_expand_result" 1220 1221 $opt_dry_run || { 1222 eval "$_G_cmd" 1223 _G_status=$? 1224 if test 0 -ne "$_G_status"; then 1225 eval "(exit $_G_status); $_G_fail_exp" 1226 fi 657 1227 } 658 659 if ${opt_dry_run-false}; then :; else 660 eval "$my_cmd" 661 my_status=$? 662 if test "$my_status" -eq 0; then :; else 663 eval "(exit $my_status); $my_fail_exp" 664 fi 665 fi 666 } 667 668 669 # func_show_eval_locale cmd [fail_exp] 670 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is 1228 } 1229 1230 1231 # func_show_eval_locale CMD [FAIL_EXP] 1232 # ------------------------------------ 1233 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is 671 1234 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP 672 1235 # is given, then evaluate it. Use the saved locale for evaluation. 673 1236 func_show_eval_locale () 674 1237 { 675 my_cmd="$1" 676 my_fail_exp="${2-:}" 677 678 ${opt_silent-false} || { 679 func_quote_for_expand "$my_cmd" 1238 $debug_cmd 1239 1240 _G_cmd=$1 1241 _G_fail_exp=${2-':'} 1242 1243 $opt_quiet || { 1244 func_quote_for_expand "$_G_cmd" 680 1245 eval "func_echo $func_quote_for_expand_result" 681 1246 } 682 1247 683 if ${opt_dry_run-false}; then :; else684 eval "$ lt_user_locale685 $ my_cmd"686 my_status=$?687 eval "$ lt_safe_locale"688 if test "$my_status" -eq 0; then :; else689 eval "(exit $ my_status); $my_fail_exp"1248 $opt_dry_run || { 1249 eval "$_G_user_locale 1250 $_G_cmd" 1251 _G_status=$? 1252 eval "$_G_safe_locale" 1253 if test 0 -ne "$_G_status"; then 1254 eval "(exit $_G_status); $_G_fail_exp" 690 1255 fi 691 fi 692 } 1256 } 1257 } 1258 693 1259 694 1260 # func_tr_sh 1261 # ---------- 695 1262 # Turn $1 into a string suitable for a shell variable name. 696 1263 # Result is stored in $func_tr_sh_result. All characters … … 699 1266 func_tr_sh () 700 1267 { 701 case $1 in 702 [0-9]* | *[!a-zA-Z0-9_]*) 703 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` 704 ;; 705 * ) 706 func_tr_sh_result=$1 707 ;; 708 esac 709 } 710 711 712 # func_version 713 # Echo version message to standard output and exit. 714 func_version () 715 { 716 $opt_debug 717 718 $SED -n '/(C)/!b go 719 :more 720 /\./!{ 721 N 722 s/\n# / / 723 b more 724 } 725 :go 726 /^# '$PROGRAM' (GNU /,/# warranty; / { 727 s/^# // 728 s/^# *$// 729 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ 730 p 731 }' < "$progpath" 732 exit $? 733 } 734 735 # func_usage 736 # Echo short help message to standard output and exit. 737 func_usage () 738 { 739 $opt_debug 740 741 $SED -n '/^# Usage:/,/^# *.*--help/ { 742 s/^# // 743 s/^# *$// 744 s/\$progname/'$progname'/ 745 p 746 }' < "$progpath" 747 echo 748 $ECHO "run \`$progname --help | more' for full usage" 749 exit $? 750 } 751 752 # func_help [NOEXIT] 753 # Echo long help message to standard output and exit, 754 # unless 'noexit' is passed as argument. 1268 $debug_cmd 1269 1270 case $1 in 1271 [0-9]* | *[!a-zA-Z0-9_]*) 1272 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` 1273 ;; 1274 * ) 1275 func_tr_sh_result=$1 1276 ;; 1277 esac 1278 } 1279 1280 1281 # func_verbose ARG... 1282 # ------------------- 1283 # Echo program name prefixed message in verbose mode only. 1284 func_verbose () 1285 { 1286 $debug_cmd 1287 1288 $opt_verbose && func_echo "$*" 1289 1290 : 1291 } 1292 1293 1294 # func_warn_and_continue ARG... 1295 # ----------------------------- 1296 # Echo program name prefixed warning message to standard error. 1297 func_warn_and_continue () 1298 { 1299 $debug_cmd 1300 1301 $require_term_colors 1302 1303 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 1304 } 1305 1306 1307 # func_warning CATEGORY ARG... 1308 # ---------------------------- 1309 # Echo program name prefixed warning message to standard error. Warning 1310 # messages can be filtered according to CATEGORY, where this function 1311 # elides messages where CATEGORY is not listed in the global variable 1312 # 'opt_warning_types'. 1313 func_warning () 1314 { 1315 $debug_cmd 1316 1317 # CATEGORY must be in the warning_categories list! 1318 case " $warning_categories " in 1319 *" $1 "*) ;; 1320 *) func_internal_error "invalid warning category '$1'" ;; 1321 esac 1322 1323 _G_category=$1 1324 shift 1325 1326 case " $opt_warning_types " in 1327 *" $_G_category "*) $warning_func ${1+"$@"} ;; 1328 esac 1329 } 1330 1331 1332 # func_sort_ver VER1 VER2 1333 # ----------------------- 1334 # 'sort -V' is not generally available. 1335 # Note this deviates from the version comparison in automake 1336 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a 1337 # but this should suffice as we won't be specifying old 1338 # version formats or redundant trailing .0 in bootstrap.conf. 1339 # If we did want full compatibility then we should probably 1340 # use m4_version_compare from autoconf. 1341 func_sort_ver () 1342 { 1343 $debug_cmd 1344 1345 printf '%s\n%s\n' "$1" "$2" \ 1346 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n 1347 } 1348 1349 # func_lt_ver PREV CURR 1350 # --------------------- 1351 # Return true if PREV and CURR are in the correct order according to 1352 # func_sort_ver, otherwise false. Use it like this: 1353 # 1354 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." 1355 func_lt_ver () 1356 { 1357 $debug_cmd 1358 1359 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` 1360 } 1361 1362 1363 # Local variables: 1364 # mode: shell-script 1365 # sh-indentation: 2 1366 # eval: (add-hook 'before-save-hook 'time-stamp) 1367 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" 1368 # time-stamp-time-zone: "UTC" 1369 # End: 1370 #! /bin/sh 1371 1372 # Set a version string for this script. 1373 scriptversion=2014-01-07.03; # UTC 1374 1375 # A portable, pluggable option parser for Bourne shell. 1376 # Written by Gary V. Vaughan, 2010 1377 1378 # Copyright (C) 2010-2015 Free Software Foundation, Inc. 1379 # This is free software; see the source for copying conditions. There is NO 1380 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 1381 1382 # This program is free software: you can redistribute it and/or modify 1383 # it under the terms of the GNU General Public License as published by 1384 # the Free Software Foundation, either version 3 of the License, or 1385 # (at your option) any later version. 1386 1387 # This program is distributed in the hope that it will be useful, 1388 # but WITHOUT ANY WARRANTY; without even the implied warranty of 1389 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1390 # GNU General Public License for more details. 1391 1392 # You should have received a copy of the GNU General Public License 1393 # along with this program. If not, see <http://www.gnu.org/licenses/>. 1394 1395 # Please report bugs or propose patches to gary@gnu.org. 1396 1397 1398 ## ------ ## 1399 ## Usage. ## 1400 ## ------ ## 1401 1402 # This file is a library for parsing options in your shell scripts along 1403 # with assorted other useful supporting features that you can make use 1404 # of too. 1405 # 1406 # For the simplest scripts you might need only: 1407 # 1408 # #!/bin/sh 1409 # . relative/path/to/funclib.sh 1410 # . relative/path/to/options-parser 1411 # scriptversion=1.0 1412 # func_options ${1+"$@"} 1413 # eval set dummy "$func_options_result"; shift 1414 # ...rest of your script... 1415 # 1416 # In order for the '--version' option to work, you will need to have a 1417 # suitably formatted comment like the one at the top of this file 1418 # starting with '# Written by ' and ending with '# warranty; '. 1419 # 1420 # For '-h' and '--help' to work, you will also need a one line 1421 # description of your script's purpose in a comment directly above the 1422 # '# Written by ' line, like the one at the top of this file. 1423 # 1424 # The default options also support '--debug', which will turn on shell 1425 # execution tracing (see the comment above debug_cmd below for another 1426 # use), and '--verbose' and the func_verbose function to allow your script 1427 # to display verbose messages only when your user has specified 1428 # '--verbose'. 1429 # 1430 # After sourcing this file, you can plug processing for additional 1431 # options by amending the variables from the 'Configuration' section 1432 # below, and following the instructions in the 'Option parsing' 1433 # section further down. 1434 1435 ## -------------- ## 1436 ## Configuration. ## 1437 ## -------------- ## 1438 1439 # You should override these variables in your script after sourcing this 1440 # file so that they reflect the customisations you have added to the 1441 # option parser. 1442 1443 # The usage line for option parsing errors and the start of '-h' and 1444 # '--help' output messages. You can embed shell variables for delayed 1445 # expansion at the time the message is displayed, but you will need to 1446 # quote other shell meta-characters carefully to prevent them being 1447 # expanded when the contents are evaled. 1448 usage='$progpath [OPTION]...' 1449 1450 # Short help message in response to '-h' and '--help'. Add to this or 1451 # override it after sourcing this library to reflect the full set of 1452 # options your script accepts. 1453 usage_message="\ 1454 --debug enable verbose shell tracing 1455 -W, --warnings=CATEGORY 1456 report the warnings falling in CATEGORY [all] 1457 -v, --verbose verbosely report processing 1458 --version print version information and exit 1459 -h, --help print short or long help message and exit 1460 " 1461 1462 # Additional text appended to 'usage_message' in response to '--help'. 1463 long_help_message=" 1464 Warning categories include: 1465 'all' show all warnings 1466 'none' turn off all the warnings 1467 'error' warnings are treated as fatal errors" 1468 1469 # Help message printed before fatal option parsing errors. 1470 fatal_help="Try '\$progname --help' for more information." 1471 1472 1473 1474 ## ------------------------- ## 1475 ## Hook function management. ## 1476 ## ------------------------- ## 1477 1478 # This section contains functions for adding, removing, and running hooks 1479 # to the main code. A hook is just a named list of of function, that can 1480 # be run in order later on. 1481 1482 # func_hookable FUNC_NAME 1483 # ----------------------- 1484 # Declare that FUNC_NAME will run hooks added with 1485 # 'func_add_hook FUNC_NAME ...'. 1486 func_hookable () 1487 { 1488 $debug_cmd 1489 1490 func_append hookable_fns " $1" 1491 } 1492 1493 1494 # func_add_hook FUNC_NAME HOOK_FUNC 1495 # --------------------------------- 1496 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must 1497 # first have been declared "hookable" by a call to 'func_hookable'. 1498 func_add_hook () 1499 { 1500 $debug_cmd 1501 1502 case " $hookable_fns " in 1503 *" $1 "*) ;; 1504 *) func_fatal_error "'$1' does not accept hook functions." ;; 1505 esac 1506 1507 eval func_append ${1}_hooks '" $2"' 1508 } 1509 1510 1511 # func_remove_hook FUNC_NAME HOOK_FUNC 1512 # ------------------------------------ 1513 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME. 1514 func_remove_hook () 1515 { 1516 $debug_cmd 1517 1518 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' 1519 } 1520 1521 1522 # func_run_hooks FUNC_NAME [ARG]... 1523 # --------------------------------- 1524 # Run all hook functions registered to FUNC_NAME. 1525 # It is assumed that the list of hook functions contains nothing more 1526 # than a whitespace-delimited list of legal shell function names, and 1527 # no effort is wasted trying to catch shell meta-characters or preserve 1528 # whitespace. 1529 func_run_hooks () 1530 { 1531 $debug_cmd 1532 1533 case " $hookable_fns " in 1534 *" $1 "*) ;; 1535 *) func_fatal_error "'$1' does not support hook funcions.n" ;; 1536 esac 1537 1538 eval _G_hook_fns=\$$1_hooks; shift 1539 1540 for _G_hook in $_G_hook_fns; do 1541 eval $_G_hook '"$@"' 1542 1543 # store returned options list back into positional 1544 # parameters for next 'cmd' execution. 1545 eval _G_hook_result=\$${_G_hook}_result 1546 eval set dummy "$_G_hook_result"; shift 1547 done 1548 1549 func_quote_for_eval ${1+"$@"} 1550 func_run_hooks_result=$func_quote_for_eval_result 1551 } 1552 1553 1554 1555 ## --------------- ## 1556 ## Option parsing. ## 1557 ## --------------- ## 1558 1559 # In order to add your own option parsing hooks, you must accept the 1560 # full positional parameter list in your hook function, remove any 1561 # options that you action, and then pass back the remaining unprocessed 1562 # options in '<hooked_function_name>_result', escaped suitably for 1563 # 'eval'. Like this: 1564 # 1565 # my_options_prep () 1566 # { 1567 # $debug_cmd 1568 # 1569 # # Extend the existing usage message. 1570 # usage_message=$usage_message' 1571 # -s, --silent don'\''t print informational messages 1572 # ' 1573 # 1574 # func_quote_for_eval ${1+"$@"} 1575 # my_options_prep_result=$func_quote_for_eval_result 1576 # } 1577 # func_add_hook func_options_prep my_options_prep 1578 # 1579 # 1580 # my_silent_option () 1581 # { 1582 # $debug_cmd 1583 # 1584 # # Note that for efficiency, we parse as many options as we can 1585 # # recognise in a loop before passing the remainder back to the 1586 # # caller on the first unrecognised argument we encounter. 1587 # while test $# -gt 0; do 1588 # opt=$1; shift 1589 # case $opt in 1590 # --silent|-s) opt_silent=: ;; 1591 # # Separate non-argument short options: 1592 # -s*) func_split_short_opt "$_G_opt" 1593 # set dummy "$func_split_short_opt_name" \ 1594 # "-$func_split_short_opt_arg" ${1+"$@"} 1595 # shift 1596 # ;; 1597 # *) set dummy "$_G_opt" "$*"; shift; break ;; 1598 # esac 1599 # done 1600 # 1601 # func_quote_for_eval ${1+"$@"} 1602 # my_silent_option_result=$func_quote_for_eval_result 1603 # } 1604 # func_add_hook func_parse_options my_silent_option 1605 # 1606 # 1607 # my_option_validation () 1608 # { 1609 # $debug_cmd 1610 # 1611 # $opt_silent && $opt_verbose && func_fatal_help "\ 1612 # '--silent' and '--verbose' options are mutually exclusive." 1613 # 1614 # func_quote_for_eval ${1+"$@"} 1615 # my_option_validation_result=$func_quote_for_eval_result 1616 # } 1617 # func_add_hook func_validate_options my_option_validation 1618 # 1619 # You'll alse need to manually amend $usage_message to reflect the extra 1620 # options you parse. It's preferable to append if you can, so that 1621 # multiple option parsing hooks can be added safely. 1622 1623 1624 # func_options [ARG]... 1625 # --------------------- 1626 # All the functions called inside func_options are hookable. See the 1627 # individual implementations for details. 1628 func_hookable func_options 1629 func_options () 1630 { 1631 $debug_cmd 1632 1633 func_options_prep ${1+"$@"} 1634 eval func_parse_options \ 1635 ${func_options_prep_result+"$func_options_prep_result"} 1636 eval func_validate_options \ 1637 ${func_parse_options_result+"$func_parse_options_result"} 1638 1639 eval func_run_hooks func_options \ 1640 ${func_validate_options_result+"$func_validate_options_result"} 1641 1642 # save modified positional parameters for caller 1643 func_options_result=$func_run_hooks_result 1644 } 1645 1646 1647 # func_options_prep [ARG]... 1648 # -------------------------- 1649 # All initialisations required before starting the option parse loop. 1650 # Note that when calling hook functions, we pass through the list of 1651 # positional parameters. If a hook function modifies that list, and 1652 # needs to propogate that back to rest of this script, then the complete 1653 # modified list must be put in 'func_run_hooks_result' before 1654 # returning. 1655 func_hookable func_options_prep 1656 func_options_prep () 1657 { 1658 $debug_cmd 1659 1660 # Option defaults: 1661 opt_verbose=false 1662 opt_warning_types= 1663 1664 func_run_hooks func_options_prep ${1+"$@"} 1665 1666 # save modified positional parameters for caller 1667 func_options_prep_result=$func_run_hooks_result 1668 } 1669 1670 1671 # func_parse_options [ARG]... 1672 # --------------------------- 1673 # The main option parsing loop. 1674 func_hookable func_parse_options 1675 func_parse_options () 1676 { 1677 $debug_cmd 1678 1679 func_parse_options_result= 1680 1681 # this just eases exit handling 1682 while test $# -gt 0; do 1683 # Defer to hook functions for initial option parsing, so they 1684 # get priority in the event of reusing an option name. 1685 func_run_hooks func_parse_options ${1+"$@"} 1686 1687 # Adjust func_parse_options positional parameters to match 1688 eval set dummy "$func_run_hooks_result"; shift 1689 1690 # Break out of the loop if we already parsed every option. 1691 test $# -gt 0 || break 1692 1693 _G_opt=$1 1694 shift 1695 case $_G_opt in 1696 --debug|-x) debug_cmd='set -x' 1697 func_echo "enabling shell trace mode" 1698 $debug_cmd 1699 ;; 1700 1701 --no-warnings|--no-warning|--no-warn) 1702 set dummy --warnings none ${1+"$@"} 1703 shift 1704 ;; 1705 1706 --warnings|--warning|-W) 1707 test $# = 0 && func_missing_arg $_G_opt && break 1708 case " $warning_categories $1" in 1709 *" $1 "*) 1710 # trailing space prevents matching last $1 above 1711 func_append_uniq opt_warning_types " $1" 1712 ;; 1713 *all) 1714 opt_warning_types=$warning_categories 1715 ;; 1716 *none) 1717 opt_warning_types=none 1718 warning_func=: 1719 ;; 1720 *error) 1721 opt_warning_types=$warning_categories 1722 warning_func=func_fatal_error 1723 ;; 1724 *) 1725 func_fatal_error \ 1726 "unsupported warning category: '$1'" 1727 ;; 1728 esac 1729 shift 1730 ;; 1731 1732 --verbose|-v) opt_verbose=: ;; 1733 --version) func_version ;; 1734 -\?|-h) func_usage ;; 1735 --help) func_help ;; 1736 1737 # Separate optargs to long options (plugins may need this): 1738 --*=*) func_split_equals "$_G_opt" 1739 set dummy "$func_split_equals_lhs" \ 1740 "$func_split_equals_rhs" ${1+"$@"} 1741 shift 1742 ;; 1743 1744 # Separate optargs to short options: 1745 -W*) 1746 func_split_short_opt "$_G_opt" 1747 set dummy "$func_split_short_opt_name" \ 1748 "$func_split_short_opt_arg" ${1+"$@"} 1749 shift 1750 ;; 1751 1752 # Separate non-argument short options: 1753 -\?*|-h*|-v*|-x*) 1754 func_split_short_opt "$_G_opt" 1755 set dummy "$func_split_short_opt_name" \ 1756 "-$func_split_short_opt_arg" ${1+"$@"} 1757 shift 1758 ;; 1759 1760 --) break ;; 1761 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; 1762 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; 1763 esac 1764 done 1765 1766 # save modified positional parameters for caller 1767 func_quote_for_eval ${1+"$@"} 1768 func_parse_options_result=$func_quote_for_eval_result 1769 } 1770 1771 1772 # func_validate_options [ARG]... 1773 # ------------------------------ 1774 # Perform any sanity checks on option settings and/or unconsumed 1775 # arguments. 1776 func_hookable func_validate_options 1777 func_validate_options () 1778 { 1779 $debug_cmd 1780 1781 # Display all warnings if -W was not given. 1782 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" 1783 1784 func_run_hooks func_validate_options ${1+"$@"} 1785 1786 # Bail if the options were screwed! 1787 $exit_cmd $EXIT_FAILURE 1788 1789 # save modified positional parameters for caller 1790 func_validate_options_result=$func_run_hooks_result 1791 } 1792 1793 1794 1795 ## ----------------- ## 1796 ## Helper functions. ## 1797 ## ----------------- ## 1798 1799 # This section contains the helper functions used by the rest of the 1800 # hookable option parser framework in ascii-betical order. 1801 1802 1803 # func_fatal_help ARG... 1804 # ---------------------- 1805 # Echo program name prefixed message to standard error, followed by 1806 # a help hint, and exit. 1807 func_fatal_help () 1808 { 1809 $debug_cmd 1810 1811 eval \$ECHO \""Usage: $usage"\" 1812 eval \$ECHO \""$fatal_help"\" 1813 func_error ${1+"$@"} 1814 exit $EXIT_FAILURE 1815 } 1816 1817 1818 # func_help 1819 # --------- 1820 # Echo long help message to standard output and exit. 755 1821 func_help () 756 1822 { 757 $opt_debug 758 759 $SED -n '/^# Usage:/,/# Report bugs to/ { 760 :print 761 s/^# // 762 s/^# *$// 763 s*\$progname*'$progname'* 764 s*\$host*'"$host"'* 765 s*\$SHELL*'"$SHELL"'* 766 s*\$LTCC*'"$LTCC"'* 767 s*\$LTCFLAGS*'"$LTCFLAGS"'* 768 s*\$LD*'"$LD"'* 769 s/\$with_gnu_ld/'"$with_gnu_ld"'/ 770 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ 771 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ 772 p 773 d 774 } 775 /^# .* home page:/b print 776 /^# General help using/b print 777 ' < "$progpath" 778 ret=$? 779 if test -z "$1"; then 780 exit $ret 781 fi 782 } 783 784 # func_missing_arg argname 1823 $debug_cmd 1824 1825 func_usage_message 1826 $ECHO "$long_help_message" 1827 exit 0 1828 } 1829 1830 1831 # func_missing_arg ARGNAME 1832 # ------------------------ 785 1833 # Echo program name prefixed message to standard error and set global 786 1834 # exit_cmd. 787 1835 func_missing_arg () 788 1836 { 789 $ opt_debug790 791 func_error " missing argument for $1."1837 $debug_cmd 1838 1839 func_error "Missing argument for '$1'." 792 1840 exit_cmd=exit 793 1841 } 794 1842 795 1843 796 # func_split_short_opt shortopt 1844 # func_split_equals STRING 1845 # ------------------------ 1846 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after 1847 # splitting STRING at the '=' sign. 1848 test -z "$_G_HAVE_XSI_OPS" \ 1849 && (eval 'x=a/b/c; 1850 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ 1851 && _G_HAVE_XSI_OPS=yes 1852 1853 if test yes = "$_G_HAVE_XSI_OPS" 1854 then 1855 # This is an XSI compatible shell, allowing a faster implementation... 1856 eval 'func_split_equals () 1857 { 1858 $debug_cmd 1859 1860 func_split_equals_lhs=${1%%=*} 1861 func_split_equals_rhs=${1#*=} 1862 test "x$func_split_equals_lhs" = "x$1" \ 1863 && func_split_equals_rhs= 1864 }' 1865 else 1866 # ...otherwise fall back to using expr, which is often a shell builtin. 1867 func_split_equals () 1868 { 1869 $debug_cmd 1870 1871 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` 1872 func_split_equals_rhs= 1873 test "x$func_split_equals_lhs" = "x$1" \ 1874 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` 1875 } 1876 fi #func_split_equals 1877 1878 1879 # func_split_short_opt SHORTOPT 1880 # ----------------------------- 797 1881 # Set func_split_short_opt_name and func_split_short_opt_arg shell 798 1882 # variables after splitting SHORTOPT after the 2nd character. 799 func_split_short_opt () 800 { 801 my_sed_short_opt='1s/^\(..\).*$/\1/;q' 802 my_sed_short_rest='1s/^..\(.*\)$/\1/;q' 803 804 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` 805 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` 806 } # func_split_short_opt may be replaced by extended shell implementation 807 808 809 # func_split_long_opt longopt 810 # Set func_split_long_opt_name and func_split_long_opt_arg shell 811 # variables after splitting LONGOPT at the `=' sign. 812 func_split_long_opt () 813 { 814 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' 815 my_sed_long_arg='1s/^--[^=]*=//' 816 817 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` 818 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` 819 } # func_split_long_opt may be replaced by extended shell implementation 820 821 exit_cmd=: 822 823 824 825 826 827 magic="%%%MAGIC variable%%%" 828 magic_exe="%%%MAGIC EXE variable%%%" 829 830 # Global variables. 831 nonopt= 832 preserve_args= 833 lo2o="s/\\.lo\$/.${objext}/" 834 o2lo="s/\\.${objext}\$/.lo/" 835 extracted_archives= 836 extracted_serial=0 837 838 # If this variable is set in any of the actions, the command in it 839 # will be execed at the end. This prevents here-documents from being 840 # left over by shells. 841 exec_cmd= 842 843 # func_append var value 844 # Append VALUE to the end of shell variable VAR. 845 func_append () 846 { 847 eval "${1}=\$${1}\${2}" 848 } # func_append may be replaced by extended shell implementation 849 850 # func_append_quoted var value 851 # Quote VALUE and append to the end of shell variable VAR, separated 852 # by a space. 853 func_append_quoted () 854 { 855 func_quote_for_eval "${2}" 856 eval "${1}=\$${1}\\ \$func_quote_for_eval_result" 857 } # func_append_quoted may be replaced by extended shell implementation 858 859 860 # func_arith arithmetic-term... 861 func_arith () 862 { 863 func_arith_result=`expr "${@}"` 864 } # func_arith may be replaced by extended shell implementation 865 866 867 # func_len string 868 # STRING may not start with a hyphen. 869 func_len () 870 { 871 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` 872 } # func_len may be replaced by extended shell implementation 873 874 875 # func_lo2o object 876 func_lo2o () 877 { 878 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 879 } # func_lo2o may be replaced by extended shell implementation 880 881 882 # func_xform libobj-or-source 883 func_xform () 884 { 885 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 886 } # func_xform may be replaced by extended shell implementation 887 888 889 # func_fatal_configuration arg... 1883 if test yes = "$_G_HAVE_XSI_OPS" 1884 then 1885 # This is an XSI compatible shell, allowing a faster implementation... 1886 eval 'func_split_short_opt () 1887 { 1888 $debug_cmd 1889 1890 func_split_short_opt_arg=${1#??} 1891 func_split_short_opt_name=${1%"$func_split_short_opt_arg"} 1892 }' 1893 else 1894 # ...otherwise fall back to using expr, which is often a shell builtin. 1895 func_split_short_opt () 1896 { 1897 $debug_cmd 1898 1899 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'` 1900 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` 1901 } 1902 fi #func_split_short_opt 1903 1904 1905 # func_usage 1906 # ---------- 1907 # Echo short help message to standard output and exit. 1908 func_usage () 1909 { 1910 $debug_cmd 1911 1912 func_usage_message 1913 $ECHO "Run '$progname --help |${PAGER-more}' for full usage" 1914 exit 0 1915 } 1916 1917 1918 # func_usage_message 1919 # ------------------ 1920 # Echo short help message to standard output. 1921 func_usage_message () 1922 { 1923 $debug_cmd 1924 1925 eval \$ECHO \""Usage: $usage"\" 1926 echo 1927 $SED -n 's|^# || 1928 /^Written by/{ 1929 x;p;x 1930 } 1931 h 1932 /^Written by/q' < "$progpath" 1933 echo 1934 eval \$ECHO \""$usage_message"\" 1935 } 1936 1937 1938 # func_version 1939 # ------------ 1940 # Echo version message to standard output and exit. 1941 func_version () 1942 { 1943 $debug_cmd 1944 1945 printf '%s\n' "$progname $scriptversion" 1946 $SED -n ' 1947 /(C)/!b go 1948 :more 1949 /\./!{ 1950 N 1951 s|\n# | | 1952 b more 1953 } 1954 :go 1955 /^# Written by /,/# warranty; / { 1956 s|^# || 1957 s|^# *$|| 1958 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| 1959 p 1960 } 1961 /^# Written by / { 1962 s|^# || 1963 p 1964 } 1965 /^warranty; /q' < "$progpath" 1966 1967 exit $? 1968 } 1969 1970 1971 # Local variables: 1972 # mode: shell-script 1973 # sh-indentation: 2 1974 # eval: (add-hook 'before-save-hook 'time-stamp) 1975 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" 1976 # time-stamp-time-zone: "UTC" 1977 # End: 1978 1979 # Set a version string. 1980 scriptversion='(GNU libtool) 2.4.6' 1981 1982 1983 # func_echo ARG... 1984 # ---------------- 1985 # Libtool also displays the current mode in messages, so override 1986 # funclib.sh func_echo with this custom definition. 1987 func_echo () 1988 { 1989 $debug_cmd 1990 1991 _G_message=$* 1992 1993 func_echo_IFS=$IFS 1994 IFS=$nl 1995 for _G_line in $_G_message; do 1996 IFS=$func_echo_IFS 1997 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" 1998 done 1999 IFS=$func_echo_IFS 2000 } 2001 2002 2003 # func_warning ARG... 2004 # ------------------- 2005 # Libtool warnings are not categorized, so override funclib.sh 2006 # func_warning with this simpler definition. 2007 func_warning () 2008 { 2009 $debug_cmd 2010 2011 $warning_func ${1+"$@"} 2012 } 2013 2014 2015 ## ---------------- ## 2016 ## Options parsing. ## 2017 ## ---------------- ## 2018 2019 # Hook in the functions to make sure our own options are parsed during 2020 # the option parsing loop. 2021 2022 usage='$progpath [OPTION]... [MODE-ARG]...' 2023 2024 # Short help message in response to '-h'. 2025 usage_message="Options: 2026 --config show all configuration variables 2027 --debug enable verbose shell tracing 2028 -n, --dry-run display commands without modifying any files 2029 --features display basic configuration information and exit 2030 --mode=MODE use operation mode MODE 2031 --no-warnings equivalent to '-Wnone' 2032 --preserve-dup-deps don't remove duplicate dependency libraries 2033 --quiet, --silent don't print informational messages 2034 --tag=TAG use configuration variables from tag TAG 2035 -v, --verbose print more informational messages than default 2036 --version print version information 2037 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] 2038 -h, --help, --help-all print short, long, or detailed help message 2039 " 2040 2041 # Additional text appended to 'usage_message' in response to '--help'. 2042 func_help () 2043 { 2044 $debug_cmd 2045 2046 func_usage_message 2047 $ECHO "$long_help_message 2048 2049 MODE must be one of the following: 2050 2051 clean remove files from the build directory 2052 compile compile a source file into a libtool object 2053 execute automatically set library path, then run a program 2054 finish complete the installation of libtool libraries 2055 install install libraries or executables 2056 link create a library or an executable 2057 uninstall remove libraries from an installed directory 2058 2059 MODE-ARGS vary depending on the MODE. When passed as first option, 2060 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. 2061 Try '$progname --help --mode=MODE' for a more detailed description of MODE. 2062 2063 When reporting a bug, please describe a test case to reproduce it and 2064 include the following information: 2065 2066 host-triplet: $host 2067 shell: $SHELL 2068 compiler: $LTCC 2069 compiler flags: $LTCFLAGS 2070 linker: $LD (gnu? $with_gnu_ld) 2071 version: $progname (GNU libtool) 2.4.6 2072 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` 2073 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` 2074 2075 Report bugs to <bug-libtool@gnu.org>. 2076 GNU libtool home page: <http://www.gnu.org/s/libtool/>. 2077 General help using GNU software: <http://www.gnu.org/gethelp/>." 2078 exit 0 2079 } 2080 2081 2082 # func_lo2o OBJECT-NAME 2083 # --------------------- 2084 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific 2085 # object suffix. 2086 2087 lo2o=s/\\.lo\$/.$objext/ 2088 o2lo=s/\\.$objext\$/.lo/ 2089 2090 if test yes = "$_G_HAVE_XSI_OPS"; then 2091 eval 'func_lo2o () 2092 { 2093 case $1 in 2094 *.lo) func_lo2o_result=${1%.lo}.$objext ;; 2095 * ) func_lo2o_result=$1 ;; 2096 esac 2097 }' 2098 2099 # func_xform LIBOBJ-OR-SOURCE 2100 # --------------------------- 2101 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) 2102 # suffix to a '.lo' libtool-object suffix. 2103 eval 'func_xform () 2104 { 2105 func_xform_result=${1%.*}.lo 2106 }' 2107 else 2108 # ...otherwise fall back to using sed. 2109 func_lo2o () 2110 { 2111 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` 2112 } 2113 2114 func_xform () 2115 { 2116 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` 2117 } 2118 fi 2119 2120 2121 # func_fatal_configuration ARG... 2122 # ------------------------------- 890 2123 # Echo program name prefixed message to standard error, followed by 891 2124 # a configuration failure hint, and exit. 892 2125 func_fatal_configuration () 893 2126 { 894 func_ error ${1+"$@"}895 func_error "See the $PACKAGE documentation for more information."896 func_fatal_error"Fatal configuration error."2127 func__fatal_error ${1+"$@"} \ 2128 "See the $PACKAGE documentation for more information." \ 2129 "Fatal configuration error." 897 2130 } 898 2131 899 2132 900 2133 # func_config 2134 # ----------- 901 2135 # Display the configuration for all the tags in this script. 902 2136 func_config () … … 916 2150 } 917 2151 2152 918 2153 # func_features 2154 # ------------- 919 2155 # Display the features supported by this script. 920 2156 func_features () 921 2157 { 922 2158 echo "host: $host" 923 if test "$build_libtool_libs" = yes; then2159 if test yes = "$build_libtool_libs"; then 924 2160 echo "enable shared libraries" 925 2161 else 926 2162 echo "disable shared libraries" 927 2163 fi 928 if test "$build_old_libs" = yes; then2164 if test yes = "$build_old_libs"; then 929 2165 echo "enable static libraries" 930 2166 else … … 935 2171 } 936 2172 937 # func_enable_tag tagname 2173 2174 # func_enable_tag TAGNAME 2175 # ----------------------- 938 2176 # Verify that TAGNAME is valid, and either flag an error and exit, or 939 2177 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist … … 941 2179 func_enable_tag () 942 2180 { 943 # Global variable:944 tagname="$1"945 946 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"947 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"948 sed_extractcf="/$re_begincf/,/$re_endcf/p"949 950 # Validate tagname.951 case $tagname in952 *[!-_A-Za-z0-9,/]*)953 func_fatal_error "invalid tag name: $tagname"954 ;;955 esac956 957 # Don't test for the "default" C tag, as we know it's958 # there but not specially marked.959 case $tagname in960 CC) ;;2181 # Global variable: 2182 tagname=$1 2183 2184 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" 2185 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" 2186 sed_extractcf=/$re_begincf/,/$re_endcf/p 2187 2188 # Validate tagname. 2189 case $tagname in 2190 *[!-_A-Za-z0-9,/]*) 2191 func_fatal_error "invalid tag name: $tagname" 2192 ;; 2193 esac 2194 2195 # Don't test for the "default" C tag, as we know it's 2196 # there but not specially marked. 2197 case $tagname in 2198 CC) ;; 961 2199 *) 962 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then 963 taglist="$taglist $tagname" 964 965 # Evaluate the configuration. Be careful to quote the path 966 # and the sed script, to avoid splitting on whitespace, but 967 # also don't use non-portable quotes within backquotes within 968 # quotes we have to do it in 2 steps: 969 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` 970 eval "$extractedcf" 971 else 972 func_error "ignoring unknown tag $tagname" 973 fi 974 ;; 975 esac 976 } 2200 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then 2201 taglist="$taglist $tagname" 2202 2203 # Evaluate the configuration. Be careful to quote the path 2204 # and the sed script, to avoid splitting on whitespace, but 2205 # also don't use non-portable quotes within backquotes within 2206 # quotes we have to do it in 2 steps: 2207 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` 2208 eval "$extractedcf" 2209 else 2210 func_error "ignoring unknown tag $tagname" 2211 fi 2212 ;; 2213 esac 2214 } 2215 977 2216 978 2217 # func_check_version_match 2218 # ------------------------ 979 2219 # Ensure that we are using m4 macros, and libtool script from the same 980 2220 # release of libtool. 981 2221 func_check_version_match () 982 2222 { 983 if test "$package_revision" != "$macro_revision"; then984 if test "$VERSION" != "$macro_version"; then985 if test -z "$macro_version"; then986 cat >&2 <<_LT_EOF2223 if test "$package_revision" != "$macro_revision"; then 2224 if test "$VERSION" != "$macro_version"; then 2225 if test -z "$macro_version"; then 2226 cat >&2 <<_LT_EOF 987 2227 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the 988 2228 $progname: definition of this LT_INIT comes from an older release. … … 990 2230 $progname: and run autoconf again. 991 2231 _LT_EOF 992 else993 cat >&2 <<_LT_EOF2232 else 2233 cat >&2 <<_LT_EOF 994 2234 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the 995 2235 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. … … 997 2237 $progname: and run autoconf again. 998 2238 _LT_EOF 999 fi1000 else1001 cat >&2 <<_LT_EOF2239 fi 2240 else 2241 cat >&2 <<_LT_EOF 1002 2242 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, 1003 2243 $progname: but the definition of this LT_INIT comes from revision $macro_revision. … … 1005 2245 $progname: of $PACKAGE $VERSION and run autoconf again. 1006 2246 _LT_EOF 2247 fi 2248 2249 exit $EXIT_MISMATCH 1007 2250 fi 1008 1009 exit $EXIT_MISMATCH 1010 fi 1011 } 1012 1013 1014 # Shorthand for --mode=foo, only valid as the first argument 1015 case $1 in 1016 clean|clea|cle|cl) 1017 shift; set dummy --mode clean ${1+"$@"}; shift 1018 ;; 1019 compile|compil|compi|comp|com|co|c) 1020 shift; set dummy --mode compile ${1+"$@"}; shift 1021 ;; 1022 execute|execut|execu|exec|exe|ex|e) 1023 shift; set dummy --mode execute ${1+"$@"}; shift 1024 ;; 1025 finish|finis|fini|fin|fi|f) 1026 shift; set dummy --mode finish ${1+"$@"}; shift 1027 ;; 1028 install|instal|insta|inst|ins|in|i) 1029 shift; set dummy --mode install ${1+"$@"}; shift 1030 ;; 1031 link|lin|li|l) 1032 shift; set dummy --mode link ${1+"$@"}; shift 1033 ;; 1034 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) 1035 shift; set dummy --mode uninstall ${1+"$@"}; shift 1036 ;; 1037 esac 1038 1039 1040 1041 # Option defaults: 1042 opt_debug=: 1043 opt_dry_run=false 1044 opt_config=false 1045 opt_preserve_dup_deps=false 1046 opt_features=false 1047 opt_finish=false 1048 opt_help=false 1049 opt_help_all=false 1050 opt_silent=: 1051 opt_warning=: 1052 opt_verbose=: 1053 opt_silent=false 1054 opt_verbose=false 1055 1056 1057 # Parse options once, thoroughly. This comes as soon as possible in the 1058 # script to make things like `--version' happen as quickly as we can. 1059 { 1060 # this just eases exit handling 1061 while test $# -gt 0; do 1062 opt="$1" 1063 shift 1064 case $opt in 1065 --debug|-x) opt_debug='set -x' 1066 func_echo "enabling shell trace mode" 1067 $opt_debug 1068 ;; 1069 --dry-run|--dryrun|-n) 1070 opt_dry_run=: 1071 ;; 1072 --config) 1073 opt_config=: 1074 func_config 1075 ;; 1076 --dlopen|-dlopen) 1077 optarg="$1" 1078 opt_dlopen="${opt_dlopen+$opt_dlopen 1079 }$optarg" 1080 shift 1081 ;; 1082 --preserve-dup-deps) 1083 opt_preserve_dup_deps=: 1084 ;; 1085 --features) 1086 opt_features=: 1087 func_features 1088 ;; 1089 --finish) 1090 opt_finish=: 1091 set dummy --mode finish ${1+"$@"}; shift 1092 ;; 1093 --help) 1094 opt_help=: 1095 ;; 1096 --help-all) 1097 opt_help_all=: 1098 opt_help=': help-all' 1099 ;; 1100 --mode) 1101 test $# = 0 && func_missing_arg $opt && break 1102 optarg="$1" 1103 opt_mode="$optarg" 1104 case $optarg in 1105 # Valid mode arguments: 1106 clean|compile|execute|finish|install|link|relink|uninstall) ;; 1107 1108 # Catch anything else as an error 1109 *) func_error "invalid argument for $opt" 1110 exit_cmd=exit 1111 break 1112 ;; 1113 esac 1114 shift 1115 ;; 1116 --no-silent|--no-quiet) 1117 opt_silent=false 1118 func_append preserve_args " $opt" 1119 ;; 1120 --no-warning|--no-warn) 1121 opt_warning=false 1122 func_append preserve_args " $opt" 1123 ;; 1124 --no-verbose) 1125 opt_verbose=false 1126 func_append preserve_args " $opt" 1127 ;; 1128 --silent|--quiet) 1129 opt_silent=: 1130 func_append preserve_args " $opt" 1131 opt_verbose=false 1132 ;; 1133 --verbose|-v) 1134 opt_verbose=: 1135 func_append preserve_args " $opt" 1136 opt_silent=false 1137 ;; 1138 --tag) 1139 test $# = 0 && func_missing_arg $opt && break 1140 optarg="$1" 1141 opt_tag="$optarg" 1142 func_append preserve_args " $opt $optarg" 1143 func_enable_tag "$optarg" 1144 shift 1145 ;; 1146 1147 -\?|-h) func_usage ;; 1148 --help) func_help ;; 1149 --version) func_version ;; 1150 1151 # Separate optargs to long options: 1152 --*=*) 1153 func_split_long_opt "$opt" 1154 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} 1155 shift 1156 ;; 1157 1158 # Separate non-argument short options: 1159 -\?*|-h*|-n*|-v*) 1160 func_split_short_opt "$opt" 1161 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} 1162 shift 1163 ;; 1164 1165 --) break ;; 1166 -*) func_fatal_help "unrecognized option \`$opt'" ;; 1167 *) set dummy "$opt" ${1+"$@"}; shift; break ;; 2251 } 2252 2253 2254 # libtool_options_prep [ARG]... 2255 # ----------------------------- 2256 # Preparation for options parsed by libtool. 2257 libtool_options_prep () 2258 { 2259 $debug_mode 2260 2261 # Option defaults: 2262 opt_config=false 2263 opt_dlopen= 2264 opt_dry_run=false 2265 opt_help=false 2266 opt_mode= 2267 opt_preserve_dup_deps=false 2268 opt_quiet=false 2269 2270 nonopt= 2271 preserve_args= 2272 2273 # Shorthand for --mode=foo, only valid as the first argument 2274 case $1 in 2275 clean|clea|cle|cl) 2276 shift; set dummy --mode clean ${1+"$@"}; shift 2277 ;; 2278 compile|compil|compi|comp|com|co|c) 2279 shift; set dummy --mode compile ${1+"$@"}; shift 2280 ;; 2281 execute|execut|execu|exec|exe|ex|e) 2282 shift; set dummy --mode execute ${1+"$@"}; shift 2283 ;; 2284 finish|finis|fini|fin|fi|f) 2285 shift; set dummy --mode finish ${1+"$@"}; shift 2286 ;; 2287 install|instal|insta|inst|ins|in|i) 2288 shift; set dummy --mode install ${1+"$@"}; shift 2289 ;; 2290 link|lin|li|l) 2291 shift; set dummy --mode link ${1+"$@"}; shift 2292 ;; 2293 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) 2294 shift; set dummy --mode uninstall ${1+"$@"}; shift 2295 ;; 1168 2296 esac 1169 done 1170 1171 # Validate options: 1172 1173 # save first non-option argument 1174 if test "$#" -gt 0; then 1175 nonopt="$opt" 1176 shift 1177 fi 1178 1179 # preserve --debug 1180 test "$opt_debug" = : || func_append preserve_args " --debug" 1181 1182 case $host in 1183 *cygwin* | *mingw* | *pw32* | *cegcc*) 1184 # don't eliminate duplications in $postdeps and $predeps 1185 opt_duplicate_compiler_generated_deps=: 1186 ;; 1187 *) 1188 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps 1189 ;; 1190 esac 1191 1192 $opt_help || { 1193 # Sanity checks first: 1194 func_check_version_match 1195 1196 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then 1197 func_fatal_configuration "not configured to build any kind of library" 2297 2298 # Pass back the list of options. 2299 func_quote_for_eval ${1+"$@"} 2300 libtool_options_prep_result=$func_quote_for_eval_result 2301 } 2302 func_add_hook func_options_prep libtool_options_prep 2303 2304 2305 # libtool_parse_options [ARG]... 2306 # --------------------------------- 2307 # Provide handling for libtool specific options. 2308 libtool_parse_options () 2309 { 2310 $debug_cmd 2311 2312 # Perform our own loop to consume as many options as possible in 2313 # each iteration. 2314 while test $# -gt 0; do 2315 _G_opt=$1 2316 shift 2317 case $_G_opt in 2318 --dry-run|--dryrun|-n) 2319 opt_dry_run=: 2320 ;; 2321 2322 --config) func_config ;; 2323 2324 --dlopen|-dlopen) 2325 opt_dlopen="${opt_dlopen+$opt_dlopen 2326 }$1" 2327 shift 2328 ;; 2329 2330 --preserve-dup-deps) 2331 opt_preserve_dup_deps=: ;; 2332 2333 --features) func_features ;; 2334 2335 --finish) set dummy --mode finish ${1+"$@"}; shift ;; 2336 2337 --help) opt_help=: ;; 2338 2339 --help-all) opt_help=': help-all' ;; 2340 2341 --mode) test $# = 0 && func_missing_arg $_G_opt && break 2342 opt_mode=$1 2343 case $1 in 2344 # Valid mode arguments: 2345 clean|compile|execute|finish|install|link|relink|uninstall) ;; 2346 2347 # Catch anything else as an error 2348 *) func_error "invalid argument for $_G_opt" 2349 exit_cmd=exit 2350 break 2351 ;; 2352 esac 2353 shift 2354 ;; 2355 2356 --no-silent|--no-quiet) 2357 opt_quiet=false 2358 func_append preserve_args " $_G_opt" 2359 ;; 2360 2361 --no-warnings|--no-warning|--no-warn) 2362 opt_warning=false 2363 func_append preserve_args " $_G_opt" 2364 ;; 2365 2366 --no-verbose) 2367 opt_verbose=false 2368 func_append preserve_args " $_G_opt" 2369 ;; 2370 2371 --silent|--quiet) 2372 opt_quiet=: 2373 opt_verbose=false 2374 func_append preserve_args " $_G_opt" 2375 ;; 2376 2377 --tag) test $# = 0 && func_missing_arg $_G_opt && break 2378 opt_tag=$1 2379 func_append preserve_args " $_G_opt $1" 2380 func_enable_tag "$1" 2381 shift 2382 ;; 2383 2384 --verbose|-v) opt_quiet=false 2385 opt_verbose=: 2386 func_append preserve_args " $_G_opt" 2387 ;; 2388 2389 # An option not handled by this hook function: 2390 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; 2391 esac 2392 done 2393 2394 2395 # save modified positional parameters for caller 2396 func_quote_for_eval ${1+"$@"} 2397 libtool_parse_options_result=$func_quote_for_eval_result 2398 } 2399 func_add_hook func_parse_options libtool_parse_options 2400 2401 2402 2403 # libtool_validate_options [ARG]... 2404 # --------------------------------- 2405 # Perform any sanity checks on option settings and/or unconsumed 2406 # arguments. 2407 libtool_validate_options () 2408 { 2409 # save first non-option argument 2410 if test 0 -lt $#; then 2411 nonopt=$1 2412 shift 1198 2413 fi 1199 2414 1200 # Darwin sucks 1201 eval std_shrext=\"$shrext_cmds\" 1202 1203 # Only execute mode is allowed to have -dlopen flags. 1204 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then 1205 func_error "unrecognized option \`-dlopen'" 1206 $ECHO "$help" 1>&2 1207 exit $EXIT_FAILURE 1208 fi 1209 1210 # Change the help message to a mode-specific one. 1211 generic_help="$help" 1212 help="Try \`$progname --help --mode=$opt_mode' for more information." 1213 } 1214 1215 1216 # Bail if the options were screwed 1217 $exit_cmd $EXIT_FAILURE 1218 } 1219 2415 # preserve --debug 2416 test : = "$debug_cmd" || func_append preserve_args " --debug" 2417 2418 case $host in 2419 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 2420 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 2421 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) 2422 # don't eliminate duplications in $postdeps and $predeps 2423 opt_duplicate_compiler_generated_deps=: 2424 ;; 2425 *) 2426 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps 2427 ;; 2428 esac 2429 2430 $opt_help || { 2431 # Sanity checks first: 2432 func_check_version_match 2433 2434 test yes != "$build_libtool_libs" \ 2435 && test yes != "$build_old_libs" \ 2436 && func_fatal_configuration "not configured to build any kind of library" 2437 2438 # Darwin sucks 2439 eval std_shrext=\"$shrext_cmds\" 2440 2441 # Only execute mode is allowed to have -dlopen flags. 2442 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then 2443 func_error "unrecognized option '-dlopen'" 2444 $ECHO "$help" 1>&2 2445 exit $EXIT_FAILURE 2446 fi 2447 2448 # Change the help message to a mode-specific one. 2449 generic_help=$help 2450 help="Try '$progname --help --mode=$opt_mode' for more information." 2451 } 2452 2453 # Pass back the unparsed argument list 2454 func_quote_for_eval ${1+"$@"} 2455 libtool_validate_options_result=$func_quote_for_eval_result 2456 } 2457 func_add_hook func_validate_options libtool_validate_options 2458 2459 2460 # Process options as early as possible so that --help and --version 2461 # can return quickly. 2462 func_options ${1+"$@"} 2463 eval set dummy "$func_options_result"; shift 1220 2464 1221 2465 … … 1225 2469 ## ----------- ## 1226 2470 2471 magic='%%%MAGIC variable%%%' 2472 magic_exe='%%%MAGIC EXE variable%%%' 2473 2474 # Global variables. 2475 extracted_archives= 2476 extracted_serial=0 2477 2478 # If this variable is set in any of the actions, the command in it 2479 # will be execed at the end. This prevents here-documents from being 2480 # left over by shells. 2481 exec_cmd= 2482 2483 2484 # A function that is used when there is no print builtin or printf. 2485 func_fallback_echo () 2486 { 2487 eval 'cat <<_LTECHO_EOF 2488 $1 2489 _LTECHO_EOF' 2490 } 2491 2492 # func_generated_by_libtool 2493 # True iff stdin has been generated by Libtool. This function is only 2494 # a basic sanity check; it will hardly flush out determined imposters. 2495 func_generated_by_libtool_p () 2496 { 2497 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 2498 } 2499 1227 2500 # func_lalib_p file 1228 # True iff FILE is a libtool `.la' library or `.lo' object file.2501 # True iff FILE is a libtool '.la' library or '.lo' object file. 1229 2502 # This function is only a basic sanity check; it will hardly flush out 1230 2503 # determined imposters. … … 1232 2505 { 1233 2506 test -f "$1" && 1234 $SED -e 4q "$1" 2>/dev/null \ 1235 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 2507 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p 1236 2508 } 1237 2509 1238 2510 # func_lalib_unsafe_p file 1239 # True iff FILE is a libtool `.la' library or `.lo' object file.2511 # True iff FILE is a libtool '.la' library or '.lo' object file. 1240 2512 # This function implements the same check as func_lalib_p without 1241 2513 # resorting to external programs. To this end, it redirects stdin and 1242 2514 # closes it afterwards, without saving the original file descriptor. 1243 2515 # As a safety measure, use it only where a negative result would be 1244 # fatal anyway. Works if `file' does not exist.2516 # fatal anyway. Works if 'file' does not exist. 1245 2517 func_lalib_unsafe_p () 1246 2518 { … … 1250 2522 do 1251 2523 read lalib_p_line 1252 case "$lalib_p_line"in2524 case $lalib_p_line in 1253 2525 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; 1254 2526 esac … … 1256 2528 exec 0<&5 5<&- 1257 2529 fi 1258 test "$lalib_p" = yes2530 test yes = "$lalib_p" 1259 2531 } 1260 2532 … … 1265 2537 func_ltwrapper_script_p () 1266 2538 { 1267 func_lalib_p "$1" 2539 test -f "$1" && 2540 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p 1268 2541 } 1269 2542 … … 1290 2563 func_dirname_and_basename "$1" "" "." 1291 2564 func_stripname '' '.exe' "$func_basename_result" 1292 func_ltwrapper_scriptname_result= "$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"2565 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper 1293 2566 } 1294 2567 … … 1309 2582 func_execute_cmds () 1310 2583 { 1311 $opt_debug 2584 $debug_cmd 2585 1312 2586 save_ifs=$IFS; IFS='~' 1313 2587 for cmd in $1; do 2588 IFS=$sp$nl 2589 eval cmd=\"$cmd\" 1314 2590 IFS=$save_ifs 1315 eval cmd=\"$cmd\"1316 2591 func_show_eval "$cmd" "${2-:}" 1317 2592 done … … 1325 2600 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe 1326 2601 # behavior happens only for exec(3), not for open(2)! Also, sourcing 1327 # `FILE.' does not work on cygwin managed mounts.2602 # 'FILE.' does not work on cygwin managed mounts. 1328 2603 func_source () 1329 2604 { 1330 $opt_debug 2605 $debug_cmd 2606 1331 2607 case $1 in 1332 2608 */* | *\\*) . "$1" ;; … … 1355 2631 func_replace_sysroot () 1356 2632 { 1357 case "$lt_sysroot:$1"in2633 case $lt_sysroot:$1 in 1358 2634 ?*:"$lt_sysroot"*) 1359 2635 func_stripname "$lt_sysroot" '' "$1" 1360 func_replace_sysroot_result= "=$func_stripname_result"2636 func_replace_sysroot_result='='$func_stripname_result 1361 2637 ;; 1362 2638 *) … … 1375 2651 func_infer_tag () 1376 2652 { 1377 $opt_debug 2653 $debug_cmd 2654 1378 2655 if test -n "$available_tags" && test -z "$tagname"; then 1379 2656 CC_quoted= … … 1394 2671 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then 1395 2672 # Evaluate the configuration. 1396 eval "`$ {SED}-n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"2673 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" 1397 2674 CC_quoted= 1398 2675 for arg in $CC; do … … 1419 2696 if test -z "$tagname"; then 1420 2697 func_echo "unable to infer tagged configuration" 1421 func_fatal_error "specify a tag with \`--tag'"2698 func_fatal_error "specify a tag with '--tag'" 1422 2699 # else 1423 2700 # func_verbose "using $tagname tagged configuration" … … 1435 2712 func_write_libtool_object () 1436 2713 { 1437 write_libobj=$ {1}1438 if test "$build_libtool_libs" = yes; then1439 write_lobj=\'$ {2}\'2714 write_libobj=$1 2715 if test yes = "$build_libtool_libs"; then 2716 write_lobj=\'$2\' 1440 2717 else 1441 2718 write_lobj=none 1442 2719 fi 1443 2720 1444 if test "$build_old_libs" = yes; then1445 write_oldobj=\'$ {3}\'2721 if test yes = "$build_old_libs"; then 2722 write_oldobj=\'$3\' 1446 2723 else 1447 2724 write_oldobj=none … … 1451 2728 cat >${write_libobj}T <<EOF 1452 2729 # $write_libobj - a libtool object file 1453 # Generated by $PROGRAM (GNU $PACKAGE $TIMESTAMP) $VERSION2730 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION 1454 2731 # 1455 2732 # Please DO NOT delete this file! … … 1463 2740 1464 2741 EOF 1465 $MV "${write_libobj}T" "$ {write_libobj}"2742 $MV "${write_libobj}T" "$write_libobj" 1466 2743 } 1467 2744 } … … 1483 2760 func_convert_core_file_wine_to_w32 () 1484 2761 { 1485 $opt_debug 1486 func_convert_core_file_wine_to_w32_result="$1" 2762 $debug_cmd 2763 2764 func_convert_core_file_wine_to_w32_result=$1 1487 2765 if test -n "$1"; then 1488 2766 # Unfortunately, winepath does not exit with a non-zero error code, so we … … 1492 2770 # zero AND non-empty stdout, which explains the odd construction: 1493 2771 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null` 1494 if test "$?" -eq 0 && test -n "$ {func_convert_core_file_wine_to_w32_tmp}"; then2772 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then 1495 2773 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | 1496 $SED -e "$ lt_sed_naive_backslashify"`2774 $SED -e "$sed_naive_backslashify"` 1497 2775 else 1498 2776 func_convert_core_file_wine_to_w32_result= … … 1515 2793 func_convert_core_path_wine_to_w32 () 1516 2794 { 1517 $opt_debug 2795 $debug_cmd 2796 1518 2797 # unfortunately, winepath doesn't convert paths, only file names 1519 func_convert_core_path_wine_to_w32_result= ""2798 func_convert_core_path_wine_to_w32_result= 1520 2799 if test -n "$1"; then 1521 2800 oldIFS=$IFS … … 1524 2803 IFS=$oldIFS 1525 2804 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" 1526 if test -n "$func_convert_core_file_wine_to_w32_result" 2805 if test -n "$func_convert_core_file_wine_to_w32_result"; then 1527 2806 if test -z "$func_convert_core_path_wine_to_w32_result"; then 1528 func_convert_core_path_wine_to_w32_result= "$func_convert_core_file_wine_to_w32_result"2807 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result 1529 2808 else 1530 2809 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" … … 1555 2834 func_cygpath () 1556 2835 { 1557 $opt_debug 2836 $debug_cmd 2837 1558 2838 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then 1559 2839 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` … … 1564 2844 else 1565 2845 func_cygpath_result= 1566 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"2846 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" 1567 2847 fi 1568 2848 } … … 1575 2855 func_convert_core_msys_to_w32 () 1576 2856 { 1577 $opt_debug 2857 $debug_cmd 2858 1578 2859 # awkward: cmd appends spaces to result 1579 2860 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | 1580 $SED -e 's/[ ]*$//' -e "$ lt_sed_naive_backslashify"`2861 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` 1581 2862 } 1582 2863 #end: func_convert_core_msys_to_w32 … … 1589 2870 func_convert_file_check () 1590 2871 { 1591 $opt_debug 1592 if test -z "$2" && test -n "$1" ; then 2872 $debug_cmd 2873 2874 if test -z "$2" && test -n "$1"; then 1593 2875 func_error "Could not determine host file name corresponding to" 1594 func_error " \`$1'"2876 func_error " '$1'" 1595 2877 func_error "Continuing, but uninstalled executables may not work." 1596 2878 # Fallback: 1597 func_to_host_file_result= "$1"2879 func_to_host_file_result=$1 1598 2880 fi 1599 2881 } … … 1607 2889 func_convert_path_check () 1608 2890 { 1609 $opt_debug 2891 $debug_cmd 2892 1610 2893 if test -z "$4" && test -n "$3"; then 1611 2894 func_error "Could not determine the host path corresponding to" 1612 func_error " \`$3'"2895 func_error " '$3'" 1613 2896 func_error "Continuing, but uninstalled executables may not work." 1614 2897 # Fallback. This is a deliberately simplistic "conversion" and … … 1619 2902 $SED -e "$lt_replace_pathsep_chars"` 1620 2903 else 1621 func_to_host_path_result= "$3"2904 func_to_host_path_result=$3 1622 2905 fi 1623 2906 fi … … 1631 2914 func_convert_path_front_back_pathsep () 1632 2915 { 1633 $opt_debug 2916 $debug_cmd 2917 1634 2918 case $4 in 1635 $1 ) func_to_host_path_result= "$3$func_to_host_path_result"2919 $1 ) func_to_host_path_result=$3$func_to_host_path_result 1636 2920 ;; 1637 2921 esac … … 1647 2931 # $build to $host FILE NAME CONVERSION FUNCTIONS # 1648 2932 ################################################## 1649 # invoked via `$to_host_file_cmd ARG'2933 # invoked via '$to_host_file_cmd ARG' 1650 2934 # 1651 2935 # In each case, ARG is the path to be converted from $build to $host format. … … 1658 2942 func_to_host_file () 1659 2943 { 1660 $opt_debug 2944 $debug_cmd 2945 1661 2946 $to_host_file_cmd "$1" 1662 2947 } … … 1670 2955 func_to_tool_file () 1671 2956 { 1672 $opt_debug 2957 $debug_cmd 2958 1673 2959 case ,$2, in 1674 2960 *,"$to_tool_file_cmd",*) … … 1688 2974 func_convert_file_noop () 1689 2975 { 1690 func_to_host_file_result= "$1"2976 func_to_host_file_result=$1 1691 2977 } 1692 2978 # end func_convert_file_noop … … 1699 2985 func_convert_file_msys_to_w32 () 1700 2986 { 1701 $opt_debug 1702 func_to_host_file_result="$1" 2987 $debug_cmd 2988 2989 func_to_host_file_result=$1 1703 2990 if test -n "$1"; then 1704 2991 func_convert_core_msys_to_w32 "$1" 1705 func_to_host_file_result= "$func_convert_core_msys_to_w32_result"2992 func_to_host_file_result=$func_convert_core_msys_to_w32_result 1706 2993 fi 1707 2994 func_convert_file_check "$1" "$func_to_host_file_result" … … 1715 3002 func_convert_file_cygwin_to_w32 () 1716 3003 { 1717 $opt_debug 1718 func_to_host_file_result="$1" 3004 $debug_cmd 3005 3006 func_to_host_file_result=$1 1719 3007 if test -n "$1"; then 1720 3008 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use … … 1732 3020 func_convert_file_nix_to_w32 () 1733 3021 { 1734 $opt_debug 1735 func_to_host_file_result="$1" 3022 $debug_cmd 3023 3024 func_to_host_file_result=$1 1736 3025 if test -n "$1"; then 1737 3026 func_convert_core_file_wine_to_w32 "$1" 1738 func_to_host_file_result= "$func_convert_core_file_wine_to_w32_result"3027 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result 1739 3028 fi 1740 3029 func_convert_file_check "$1" "$func_to_host_file_result" … … 1748 3037 func_convert_file_msys_to_cygwin () 1749 3038 { 1750 $opt_debug 1751 func_to_host_file_result="$1" 3039 $debug_cmd 3040 3041 func_to_host_file_result=$1 1752 3042 if test -n "$1"; then 1753 3043 func_convert_core_msys_to_w32 "$1" 1754 3044 func_cygpath -u "$func_convert_core_msys_to_w32_result" 1755 func_to_host_file_result= "$func_cygpath_result"3045 func_to_host_file_result=$func_cygpath_result 1756 3046 fi 1757 3047 func_convert_file_check "$1" "$func_to_host_file_result" … … 1766 3056 func_convert_file_nix_to_cygwin () 1767 3057 { 1768 $opt_debug 1769 func_to_host_file_result="$1" 3058 $debug_cmd 3059 3060 func_to_host_file_result=$1 1770 3061 if test -n "$1"; then 1771 3062 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. 1772 3063 func_convert_core_file_wine_to_w32 "$1" 1773 3064 func_cygpath -u "$func_convert_core_file_wine_to_w32_result" 1774 func_to_host_file_result= "$func_cygpath_result"3065 func_to_host_file_result=$func_cygpath_result 1775 3066 fi 1776 3067 func_convert_file_check "$1" "$func_to_host_file_result" … … 1782 3073 # $build to $host PATH CONVERSION FUNCTIONS # 1783 3074 ############################################# 1784 # invoked via `$to_host_path_cmd ARG'3075 # invoked via '$to_host_path_cmd ARG' 1785 3076 # 1786 3077 # In each case, ARG is the path to be converted from $build to $host format. … … 1806 3097 func_init_to_host_path_cmd () 1807 3098 { 1808 $opt_debug 3099 $debug_cmd 3100 1809 3101 if test -z "$to_host_path_cmd"; then 1810 3102 func_stripname 'func_convert_file_' '' "$to_host_file_cmd" 1811 to_host_path_cmd= "func_convert_path_${func_stripname_result}"3103 to_host_path_cmd=func_convert_path_$func_stripname_result 1812 3104 fi 1813 3105 } … … 1819 3111 func_to_host_path () 1820 3112 { 1821 $opt_debug 3113 $debug_cmd 3114 1822 3115 func_init_to_host_path_cmd 1823 3116 $to_host_path_cmd "$1" … … 1830 3123 func_convert_path_noop () 1831 3124 { 1832 func_to_host_path_result= "$1"3125 func_to_host_path_result=$1 1833 3126 } 1834 3127 # end func_convert_path_noop … … 1841 3134 func_convert_path_msys_to_w32 () 1842 3135 { 1843 $opt_debug 1844 func_to_host_path_result="$1" 3136 $debug_cmd 3137 3138 func_to_host_path_result=$1 1845 3139 if test -n "$1"; then 1846 3140 # Remove leading and trailing path separator characters from ARG. MSYS … … 1850 3144 func_to_host_path_tmp1=$func_stripname_result 1851 3145 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" 1852 func_to_host_path_result= "$func_convert_core_msys_to_w32_result"3146 func_to_host_path_result=$func_convert_core_msys_to_w32_result 1853 3147 func_convert_path_check : ";" \ 1854 3148 "$func_to_host_path_tmp1" "$func_to_host_path_result" … … 1864 3158 func_convert_path_cygwin_to_w32 () 1865 3159 { 1866 $opt_debug 1867 func_to_host_path_result="$1" 3160 $debug_cmd 3161 3162 func_to_host_path_result=$1 1868 3163 if test -n "$1"; then 1869 3164 # See func_convert_path_msys_to_w32: … … 1884 3179 func_convert_path_nix_to_w32 () 1885 3180 { 1886 $opt_debug 1887 func_to_host_path_result="$1" 3181 $debug_cmd 3182 3183 func_to_host_path_result=$1 1888 3184 if test -n "$1"; then 1889 3185 # See func_convert_path_msys_to_w32: … … 1891 3187 func_to_host_path_tmp1=$func_stripname_result 1892 3188 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" 1893 func_to_host_path_result= "$func_convert_core_path_wine_to_w32_result"3189 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result 1894 3190 func_convert_path_check : ";" \ 1895 3191 "$func_to_host_path_tmp1" "$func_to_host_path_result" … … 1905 3201 func_convert_path_msys_to_cygwin () 1906 3202 { 1907 $opt_debug 1908 func_to_host_path_result="$1" 3203 $debug_cmd 3204 3205 func_to_host_path_result=$1 1909 3206 if test -n "$1"; then 1910 3207 # See func_convert_path_msys_to_w32: … … 1913 3210 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" 1914 3211 func_cygpath -u -p "$func_convert_core_msys_to_w32_result" 1915 func_to_host_path_result= "$func_cygpath_result"3212 func_to_host_path_result=$func_cygpath_result 1916 3213 func_convert_path_check : : \ 1917 3214 "$func_to_host_path_tmp1" "$func_to_host_path_result" … … 1928 3225 func_convert_path_nix_to_cygwin () 1929 3226 { 1930 $opt_debug 1931 func_to_host_path_result="$1" 3227 $debug_cmd 3228 3229 func_to_host_path_result=$1 1932 3230 if test -n "$1"; then 1933 3231 # Remove leading and trailing path separator characters from … … 1938 3236 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" 1939 3237 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" 1940 func_to_host_path_result= "$func_cygpath_result"3238 func_to_host_path_result=$func_cygpath_result 1941 3239 func_convert_path_check : : \ 1942 3240 "$func_to_host_path_tmp1" "$func_to_host_path_result" … … 1947 3245 1948 3246 3247 # func_dll_def_p FILE 3248 # True iff FILE is a Windows DLL '.def' file. 3249 # Keep in sync with _LT_DLL_DEF_P in libtool.m4 3250 func_dll_def_p () 3251 { 3252 $debug_cmd 3253 3254 func_dll_def_p_tmp=`$SED -n \ 3255 -e 's/^[ ]*//' \ 3256 -e '/^\(;.*\)*$/d' \ 3257 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ 3258 -e q \ 3259 "$1"` 3260 test DEF = "$func_dll_def_p_tmp" 3261 } 3262 3263 1949 3264 # func_mode_compile arg... 1950 3265 func_mode_compile () 1951 3266 { 1952 $opt_debug 3267 $debug_cmd 3268 1953 3269 # Get the compilation command and the source file. 1954 3270 base_compile= 1955 srcfile= "$nonopt"# always keep a non-empty value in "srcfile"3271 srcfile=$nonopt # always keep a non-empty value in "srcfile" 1956 3272 suppress_opt=yes 1957 3273 suppress_output= … … 1966 3282 arg ) 1967 3283 # do not "continue". Instead, add this to base_compile 1968 lastarg= "$arg"3284 lastarg=$arg 1969 3285 arg_mode=normal 1970 3286 ;; 1971 3287 1972 3288 target ) 1973 libobj= "$arg"3289 libobj=$arg 1974 3290 arg_mode=normal 1975 3291 continue … … 1981 3297 -o) 1982 3298 test -n "$libobj" && \ 1983 func_fatal_error "you cannot specify \`-o' more than once"3299 func_fatal_error "you cannot specify '-o' more than once" 1984 3300 arg_mode=target 1985 3301 continue … … 2010 3326 args=$func_stripname_result 2011 3327 lastarg= 2012 save_ifs= "$IFS"; IFS=','3328 save_ifs=$IFS; IFS=, 2013 3329 for arg in $args; do 2014 IFS= "$save_ifs"3330 IFS=$save_ifs 2015 3331 func_append_quoted lastarg "$arg" 2016 3332 done 2017 IFS= "$save_ifs"3333 IFS=$save_ifs 2018 3334 func_stripname ' ' '' "$lastarg" 2019 3335 lastarg=$func_stripname_result … … 2028 3344 # The previous "srcfile" becomes the current argument. 2029 3345 # 2030 lastarg= "$srcfile"2031 srcfile= "$arg"3346 lastarg=$srcfile 3347 srcfile=$arg 2032 3348 ;; 2033 3349 esac # case $arg … … 2044 3360 ;; 2045 3361 target) 2046 func_fatal_error "you must specify a target with \`-o'"3362 func_fatal_error "you must specify a target with '-o'" 2047 3363 ;; 2048 3364 *) … … 2050 3366 test -z "$libobj" && { 2051 3367 func_basename "$srcfile" 2052 libobj= "$func_basename_result"3368 libobj=$func_basename_result 2053 3369 } 2054 3370 ;; … … 2070 3386 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; 2071 3387 *) 2072 func_fatal_error "cannot determine name of library object from \`$libobj'"3388 func_fatal_error "cannot determine name of library object from '$libobj'" 2073 3389 ;; 2074 3390 esac … … 2079 3395 case $arg in 2080 3396 -shared) 2081 test "$build_libtool_libs" != yes &&\2082 func_fatal_configuration "cannot build a shared library"3397 test yes = "$build_libtool_libs" \ 3398 || func_fatal_configuration "cannot build a shared library" 2083 3399 build_old_libs=no 2084 3400 continue … … 2106 3422 test "X$libobj" != "X$func_quote_for_eval_result" \ 2107 3423 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ 2108 && func_warning "libobj name \`$libobj' may not contain shell special characters."3424 && func_warning "libobj name '$libobj' may not contain shell special characters." 2109 3425 func_dirname_and_basename "$obj" "/" "" 2110 objname= "$func_basename_result"2111 xdir= "$func_dirname_result"2112 lobj=$ {xdir}$objdir/$objname3426 objname=$func_basename_result 3427 xdir=$func_dirname_result 3428 lobj=$xdir$objdir/$objname 2113 3429 2114 3430 test -z "$base_compile" && \ … … 2116 3432 2117 3433 # Delete any leftover library objects. 2118 if test "$build_old_libs" = yes; then3434 if test yes = "$build_old_libs"; then 2119 3435 removelist="$obj $lobj $libobj ${libobj}T" 2120 3436 else … … 2128 3444 ;; 2129 3445 esac 2130 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then3446 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then 2131 3447 # non-PIC code in shared libraries is not supported 2132 3448 pic_mode=default … … 2135 3451 # Calculate the filename of the output object if compiler does 2136 3452 # not support -o with -c 2137 if test "$compiler_c_o" = no; then2138 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$ {objext}2139 lockfile= "$output_obj.lock"3453 if test no = "$compiler_c_o"; then 3454 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext 3455 lockfile=$output_obj.lock 2140 3456 else 2141 3457 output_obj= … … 2146 3462 # Lock this critical section if it is needed 2147 3463 # We use this script file to make the link, it avoids creating a new file 2148 if test "$need_locks" = yes; then3464 if test yes = "$need_locks"; then 2149 3465 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do 2150 3466 func_echo "Waiting for $lockfile to be removed" 2151 3467 sleep 2 2152 3468 done 2153 elif test "$need_locks" = warn; then3469 elif test warn = "$need_locks"; then 2154 3470 if test -f "$lockfile"; then 2155 3471 $ECHO "\ … … 2159 3475 This indicates that another process is trying to use the same 2160 3476 temporary object file, and libtool could not work around it because 2161 your compiler does not support \`-c' and \`-o' together. If you3477 your compiler does not support '-c' and '-o' together. If you 2162 3478 repeat this compilation, it may succeed, by chance, but you had better 2163 3479 avoid parallel builds (make -j) in this platform, or get a better … … 2181 3497 2182 3498 # Only build a PIC object if we are building libtool libraries. 2183 if test "$build_libtool_libs" = yes; then3499 if test yes = "$build_libtool_libs"; then 2184 3500 # Without this assignment, base_compile gets emptied. 2185 3501 fbsd_hideous_sh_bug=$base_compile 2186 3502 2187 if test "$pic_mode" != no; then3503 if test no != "$pic_mode"; then 2188 3504 command="$base_compile $qsrcfile $pic_flag" 2189 3505 else … … 2202 3518 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' 2203 3519 2204 if test "$need_locks" = warn&&3520 if test warn = "$need_locks" && 2205 3521 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then 2206 3522 $ECHO "\ … … 2213 3529 This indicates that another process is trying to use the same 2214 3530 temporary object file, and libtool could not work around it because 2215 your compiler does not support \`-c' and \`-o' together. If you3531 your compiler does not support '-c' and '-o' together. If you 2216 3532 repeat this compilation, it may succeed, by chance, but you had better 2217 3533 avoid parallel builds (make -j) in this platform, or get a better … … 2229 3545 2230 3546 # Allow error messages only from the first compilation. 2231 if test "$suppress_opt" = yes; then3547 if test yes = "$suppress_opt"; then 2232 3548 suppress_output=' >/dev/null 2>&1' 2233 3549 fi … … 2235 3551 2236 3552 # Only build a position-dependent object if we build old libraries. 2237 if test "$build_old_libs" = yes; then2238 if test "$pic_mode" != yes; then3553 if test yes = "$build_old_libs"; then 3554 if test yes != "$pic_mode"; then 2239 3555 # Don't build PIC code 2240 3556 command="$base_compile $qsrcfile$pie_flag" … … 2242 3558 command="$base_compile $qsrcfile $pic_flag" 2243 3559 fi 2244 if test "$compiler_c_o" = yes; then3560 if test yes = "$compiler_c_o"; then 2245 3561 func_append command " -o $obj" 2246 3562 fi … … 2251 3567 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 2252 3568 2253 if test "$need_locks" = warn&&3569 if test warn = "$need_locks" && 2254 3570 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then 2255 3571 $ECHO "\ … … 2262 3578 This indicates that another process is trying to use the same 2263 3579 temporary object file, and libtool could not work around it because 2264 your compiler does not support \`-c' and \`-o' together. If you3580 your compiler does not support '-c' and '-o' together. If you 2265 3581 repeat this compilation, it may succeed, by chance, but you had better 2266 3582 avoid parallel builds (make -j) in this platform, or get a better … … 2282 3598 2283 3599 # Unlock the critical section if it was locked 2284 if test "$need_locks" != no; then3600 if test no != "$need_locks"; then 2285 3601 removelist=$lockfile 2286 3602 $RM "$lockfile" … … 2292 3608 2293 3609 $opt_help || { 2294 test "$opt_mode" = compile&& func_mode_compile ${1+"$@"}3610 test compile = "$opt_mode" && func_mode_compile ${1+"$@"} 2295 3611 } 2296 3612 … … 2312 3628 2313 3629 RM is the name of the program to use to delete files associated with each FILE 2314 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed3630 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed 2315 3631 to RM. 2316 3632 … … 2331 3647 -prefer-pic try to build PIC objects only 2332 3648 -prefer-non-pic try to build non-PIC objects only 2333 -shared do not build a \`.o' file suitable for static linking2334 -static only build a \`.o' file suitable for static linking3649 -shared do not build a '.o' file suitable for static linking 3650 -static only build a '.o' file suitable for static linking 2335 3651 -Wc,FLAG pass FLAG directly to the compiler 2336 3652 2337 COMPILE-COMMAND is a command to be used in creating a \`standard' object file3653 COMPILE-COMMAND is a command to be used in creating a 'standard' object file 2338 3654 from the given SOURCEFILE. 2339 3655 2340 3656 The output file name is determined by removing the directory component from 2341 SOURCEFILE, then substituting the C source code suffix \`.c' with the2342 library object suffix, \`.lo'."3657 SOURCEFILE, then substituting the C source code suffix '.c' with the 3658 library object suffix, '.lo'." 2343 3659 ;; 2344 3660 … … 2353 3669 -dlopen FILE add the directory containing FILE to the library path 2354 3670 2355 This mode sets the library path environment variable according to \`-dlopen'3671 This mode sets the library path environment variable according to '-dlopen' 2356 3672 flags. 2357 3673 … … 2372 3688 2373 3689 The commands that this mode executes may require superuser privileges. Use 2374 the \`--dry-run' option if you just want to see what would be executed."3690 the '--dry-run' option if you just want to see what would be executed." 2375 3691 ;; 2376 3692 … … 2382 3698 2383 3699 INSTALL-COMMAND is the installation command. The first component should be 2384 either the \`install' or \`cp' program.3700 either the 'install' or 'cp' program. 2385 3701 2386 3702 The following components of INSTALL-COMMAND are treated specially: … … 2408 3724 -bindir BINDIR specify path to binaries directory (for systems where 2409 3725 libraries must be found in the PATH setting at runtime) 2410 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime3726 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime 2411 3727 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols 2412 3728 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) … … 2422 3738 -no-undefined declare that a library does not refer to external symbols 2423 3739 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects 2424 -objectlist FILE Use a list of object files found in FILE to specify objects 3740 -objectlist FILE use a list of object files found in FILE to specify objects 3741 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) 2425 3742 -precious-files-regex REGEX 2426 3743 don't remove output files matching REGEX … … 2442 3759 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) 2443 3760 2444 All other options (arguments beginning with \`-') are ignored.2445 2446 Every other argument is treated as a filename. Files ending in \`.la' are3761 All other options (arguments beginning with '-') are ignored. 3762 3763 Every other argument is treated as a filename. Files ending in '.la' are 2447 3764 treated as uninstalled libtool libraries, other files are standard or library 2448 3765 object files. 2449 3766 2450 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,2451 only library objects ( \`.lo' files) may be specified, and \`-rpath' is3767 If the OUTPUT-FILE ends in '.la', then a libtool library is created, 3768 only library objects ('.lo' files) may be specified, and '-rpath' is 2452 3769 required, except when creating a convenience library. 2453 3770 2454 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created2455 using \`ar' and \`ranlib', or on Windows using \`lib'.2456 2457 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file3771 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created 3772 using 'ar' and 'ranlib', or on Windows using 'lib'. 3773 3774 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file 2458 3775 is created, otherwise an executable program is created." 2459 3776 ;; … … 2466 3783 2467 3784 RM is the name of the program to use to delete files associated with each FILE 2468 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed3785 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed 2469 3786 to RM. 2470 3787 … … 2474 3791 2475 3792 *) 2476 func_fatal_help "invalid operation mode \`$opt_mode'"3793 func_fatal_help "invalid operation mode '$opt_mode'" 2477 3794 ;; 2478 3795 esac 2479 3796 2480 3797 echo 2481 $ECHO "Try \`$progname --help' for more information about other modes."3798 $ECHO "Try '$progname --help' for more information about other modes." 2482 3799 } 2483 3800 2484 3801 # Now that we've collected a possible --mode arg, show help if necessary 2485 3802 if $opt_help; then 2486 if test "$opt_help" = :; then3803 if test : = "$opt_help"; then 2487 3804 func_mode_help 2488 3805 else … … 2492 3809 func_mode_help 2493 3810 done 2494 } | sed-n '1p; 2,$s/^Usage:/ or: /p'3811 } | $SED -n '1p; 2,$s/^Usage:/ or: /p' 2495 3812 { 2496 3813 func_help noexit … … 2500 3817 done 2501 3818 } | 2502 sed'1d3819 $SED '1d 2503 3820 /^When reporting/,/^Report/{ 2504 3821 H … … 2517 3834 func_mode_execute () 2518 3835 { 2519 $opt_debug 3836 $debug_cmd 3837 2520 3838 # The first argument is the command name. 2521 cmd= "$nonopt"3839 cmd=$nonopt 2522 3840 test -z "$cmd" && \ 2523 3841 func_fatal_help "you must specify a COMMAND" … … 2526 3844 for file in $opt_dlopen; do 2527 3845 test -f "$file" \ 2528 || func_fatal_help " \`$file' is not a file"3846 || func_fatal_help "'$file' is not a file" 2529 3847 2530 3848 dir= … … 2536 3854 # Check to see that this really is a libtool archive. 2537 3855 func_lalib_unsafe_p "$file" \ 2538 || func_fatal_help " \`$lib' is not a valid libtool archive"3856 || func_fatal_help "'$lib' is not a valid libtool archive" 2539 3857 2540 3858 # Read the libtool library. … … 2547 3865 # Warn if it was a shared library. 2548 3866 test -n "$library_names" && \ 2549 func_warning " \`$file' was not linked with \`-export-dynamic'"3867 func_warning "'$file' was not linked with '-export-dynamic'" 2550 3868 continue 2551 3869 fi 2552 3870 2553 3871 func_dirname "$file" "" "." 2554 dir= "$func_dirname_result"3872 dir=$func_dirname_result 2555 3873 2556 3874 if test -f "$dir/$objdir/$dlname"; then … … 2558 3876 else 2559 3877 if test ! -f "$dir/$dlname"; then 2560 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"3878 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" 2561 3879 fi 2562 3880 fi … … 2566 3884 # Just add the directory containing the .lo file. 2567 3885 func_dirname "$file" "" "." 2568 dir= "$func_dirname_result"3886 dir=$func_dirname_result 2569 3887 ;; 2570 3888 2571 3889 *) 2572 func_warning " \`-dlopen' is ignored for non-libtool libraries and objects"3890 func_warning "'-dlopen' is ignored for non-libtool libraries and objects" 2573 3891 continue 2574 3892 ;; … … 2577 3895 # Get the absolute pathname. 2578 3896 absdir=`cd "$dir" && pwd` 2579 test -n "$absdir" && dir= "$absdir"3897 test -n "$absdir" && dir=$absdir 2580 3898 2581 3899 # Now add the directory to shlibpath_var. … … 2589 3907 # This variable tells wrapper scripts just to set shlibpath_var 2590 3908 # rather than running their programs. 2591 libtool_execute_magic= "$magic"3909 libtool_execute_magic=$magic 2592 3910 2593 3911 # Check if any of the arguments is a wrapper script. … … 2602 3920 func_source "$file" 2603 3921 # Transform arg to wrapped name. 2604 file= "$progdir/$program"3922 file=$progdir/$program 2605 3923 elif func_ltwrapper_executable_p "$file"; then 2606 3924 func_ltwrapper_scriptname "$file" 2607 3925 func_source "$func_ltwrapper_scriptname_result" 2608 3926 # Transform arg to wrapped name. 2609 file= "$progdir/$program"3927 file=$progdir/$program 2610 3928 fi 2611 3929 ;; … … 2615 3933 done 2616 3934 2617 if test "X$opt_dry_run" = Xfalse; then 3935 if $opt_dry_run; then 3936 # Display what would be done. 3937 if test -n "$shlibpath_var"; then 3938 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" 3939 echo "export $shlibpath_var" 3940 fi 3941 $ECHO "$cmd$args" 3942 exit $EXIT_SUCCESS 3943 else 2618 3944 if test -n "$shlibpath_var"; then 2619 3945 # Export the shlibpath_var. … … 2632 3958 2633 3959 # Now prepare to actually exec the command. 2634 exec_cmd="\$cmd$args" 2635 else 2636 # Display what would be done. 2637 if test -n "$shlibpath_var"; then 2638 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" 2639 echo "export $shlibpath_var" 2640 fi 2641 $ECHO "$cmd$args" 2642 exit $EXIT_SUCCESS 3960 exec_cmd=\$cmd$args 2643 3961 fi 2644 3962 } 2645 3963 2646 test "$opt_mode" = execute&& func_mode_execute ${1+"$@"}3964 test execute = "$opt_mode" && func_mode_execute ${1+"$@"} 2647 3965 2648 3966 … … 2650 3968 func_mode_finish () 2651 3969 { 2652 $opt_debug 3970 $debug_cmd 3971 2653 3972 libs= 2654 3973 libdirs= … … 2664 3983 func_append libs " $opt" 2665 3984 else 2666 func_warning " \`$opt' is not a valid libtool archive"3985 func_warning "'$opt' is not a valid libtool archive" 2667 3986 fi 2668 3987 2669 3988 else 2670 func_fatal_error "invalid argument \`$opt'"3989 func_fatal_error "invalid argument '$opt'" 2671 3990 fi 2672 3991 done … … 2683 4002 if $opt_dry_run; then 2684 4003 for lib in $libs; do 2685 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"4004 echo "removing references to $lt_sysroot and '=' prefixes from $lib" 2686 4005 done 2687 4006 else 2688 4007 tmpdir=`func_mktempdir` 2689 4008 for lib in $libs; do 2690 sed -e "${sysroot_cmd}s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \4009 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ 2691 4010 > $tmpdir/tmp-la 2692 4011 mv -f $tmpdir/tmp-la $lib … … 2713 4032 2714 4033 # Exit here if they wanted silent mode. 2715 $opt_ silent && exit $EXIT_SUCCESS4034 $opt_quiet && exit $EXIT_SUCCESS 2716 4035 2717 4036 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then … … 2724 4043 echo "If you ever happen to want to link against installed libraries" 2725 4044 echo "in a given directory, LIBDIR, you must either use libtool, and" 2726 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"4045 echo "specify the full pathname of the library, or use the '-LLIBDIR'" 2727 4046 echo "flag during linking and do at least one of the following:" 2728 4047 if test -n "$shlibpath_var"; then 2729 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"4048 echo " - add LIBDIR to the '$shlibpath_var' environment variable" 2730 4049 echo " during execution" 2731 4050 fi 2732 4051 if test -n "$runpath_var"; then 2733 echo " - add LIBDIR to the \`$runpath_var' environment variable"4052 echo " - add LIBDIR to the '$runpath_var' environment variable" 2734 4053 echo " during linking" 2735 4054 fi … … 2738 4057 eval flag=\"$hardcode_libdir_flag_spec\" 2739 4058 2740 $ECHO " - use the \`$flag' linker flag"4059 $ECHO " - use the '$flag' linker flag" 2741 4060 fi 2742 4061 if test -n "$admincmds"; then … … 2744 4063 fi 2745 4064 if test -f /etc/ld.so.conf; then 2746 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"4065 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" 2747 4066 fi 2748 4067 echo … … 2763 4082 } 2764 4083 2765 test "$opt_mode" = finish&& func_mode_finish ${1+"$@"}4084 test finish = "$opt_mode" && func_mode_finish ${1+"$@"} 2766 4085 2767 4086 … … 2769 4088 func_mode_install () 2770 4089 { 2771 $opt_debug 4090 $debug_cmd 4091 2772 4092 # There may be an optional sh(1) argument at the beginning of 2773 4093 # install_prog (especially on Windows NT). 2774 if test "$ nonopt" = "$SHELL" || test "$nonopt" = /bin/sh||4094 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || 2775 4095 # Allow the use of GNU shtool's install command. 2776 case $nonopt in *shtool*) :;; *) false;; esac; then 4096 case $nonopt in *shtool*) :;; *) false;; esac 4097 then 2777 4098 # Aesthetically quote it. 2778 4099 func_quote_for_eval "$nonopt" … … 2801 4122 prev= 2802 4123 install_type= 2803 isdir= no4124 isdir=false 2804 4125 stripme= 2805 4126 no_mode=: … … 2814 4135 2815 4136 case $arg in 2816 -d) isdir= yes;;4137 -d) isdir=: ;; 2817 4138 -f) 2818 4139 if $install_cp; then :; else … … 2832 4153 # If the previous option needed an argument, then skip it. 2833 4154 if test -n "$prev"; then 2834 if test "x$prev" = x-m&& test -n "$install_override_mode"; then4155 if test X-m = "X$prev" && test -n "$install_override_mode"; then 2835 4156 arg2=$install_override_mode 2836 4157 no_mode=false … … 2857 4178 2858 4179 test -n "$prev" && \ 2859 func_fatal_help "the \`$prev' option requires an argument"4180 func_fatal_help "the '$prev' option requires an argument" 2860 4181 2861 4182 if test -n "$install_override_mode" && $no_mode; then … … 2879 4200 2880 4201 # Check to see that the destination is a directory. 2881 test -d "$dest" && isdir= yes2882 if test "$isdir" = yes; then2883 destdir= "$dest"4202 test -d "$dest" && isdir=: 4203 if $isdir; then 4204 destdir=$dest 2884 4205 destname= 2885 4206 else 2886 4207 func_dirname_and_basename "$dest" "" "." 2887 destdir= "$func_dirname_result"2888 destname= "$func_basename_result"4208 destdir=$func_dirname_result 4209 destname=$func_basename_result 2889 4210 2890 4211 # Not a directory, so check to see that there is only one file specified. 2891 4212 set dummy $files; shift 2892 4213 test "$#" -gt 1 && \ 2893 func_fatal_help " \`$dest' is not a directory"4214 func_fatal_help "'$dest' is not a directory" 2894 4215 fi 2895 4216 case $destdir in … … 2900 4221 *.lo) ;; 2901 4222 *) 2902 func_fatal_help " \`$destdir' must be an absolute directory name"4223 func_fatal_help "'$destdir' must be an absolute directory name" 2903 4224 ;; 2904 4225 esac … … 2909 4230 # This variable tells wrapper scripts just to set variables rather 2910 4231 # than running their programs. 2911 libtool_install_magic= "$magic"4232 libtool_install_magic=$magic 2912 4233 2913 4234 staticlibs= … … 2929 4250 # Check to see that this really is a libtool archive. 2930 4251 func_lalib_unsafe_p "$file" \ 2931 || func_fatal_help " \`$file' is not a valid libtool archive"4252 || func_fatal_help "'$file' is not a valid libtool archive" 2932 4253 2933 4254 library_names= … … 2951 4272 2952 4273 func_dirname "$file" "/" "" 2953 dir= "$func_dirname_result"4274 dir=$func_dirname_result 2954 4275 func_append dir "$objdir" 2955 4276 … … 2965 4286 # but it's something to keep an eye on. 2966 4287 test "$inst_prefix_dir" = "$destdir" && \ 2967 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"4288 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" 2968 4289 2969 4290 if test -n "$inst_prefix_dir"; then … … 2974 4295 fi 2975 4296 2976 func_warning "relinking \`$file'"4297 func_warning "relinking '$file'" 2977 4298 func_show_eval "$relink_command" \ 2978 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'4299 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' 2979 4300 fi 2980 4301 … … 2982 4303 set dummy $library_names; shift 2983 4304 if test -n "$1"; then 2984 realname= "$1"4305 realname=$1 2985 4306 shift 2986 4307 2987 srcname= "$realname"2988 test -n "$relink_command" && srcname= "$realname"T4308 srcname=$realname 4309 test -n "$relink_command" && srcname=${realname}T 2989 4310 2990 4311 # Install the shared library and build the symlinks. 2991 4312 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 2992 4313 'exit $?' 2993 tstripme= "$stripme"4314 tstripme=$stripme 2994 4315 case $host_os in 2995 4316 cygwin* | mingw* | pw32* | cegcc*) 2996 4317 case $realname in 2997 4318 *.dll.a) 2998 tstripme="" 4319 tstripme= 4320 ;; 4321 esac 4322 ;; 4323 os2*) 4324 case $realname in 4325 *_dll.a) 4326 tstripme= 2999 4327 ;; 3000 4328 esac … … 3007 4335 if test "$#" -gt 0; then 3008 4336 # Delete the old symlinks, and create new ones. 3009 # Try `ln -sf' first, because the `ln' binary might depend on4337 # Try 'ln -sf' first, because the 'ln' binary might depend on 3010 4338 # the symlink we replace! Solaris /bin/ln does not understand -f, 3011 4339 # so we also need to try rm && ln -s. … … 3018 4346 3019 4347 # Do each command in the postinstall commands. 3020 lib= "$destdir/$realname"4348 lib=$destdir/$realname 3021 4349 func_execute_cmds "$postinstall_cmds" 'exit $?' 3022 4350 fi … … 3024 4352 # Install the pseudo-library for information purposes. 3025 4353 func_basename "$file" 3026 name= "$func_basename_result"3027 instname= "$dir/$name"i4354 name=$func_basename_result 4355 instname=$dir/${name}i 3028 4356 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' 3029 4357 … … 3037 4365 # Figure out destination file name, if it wasn't already specified. 3038 4366 if test -n "$destname"; then 3039 destfile= "$destdir/$destname"4367 destfile=$destdir/$destname 3040 4368 else 3041 4369 func_basename "$file" 3042 destfile= "$func_basename_result"3043 destfile= "$destdir/$destfile"4370 destfile=$func_basename_result 4371 destfile=$destdir/$destfile 3044 4372 fi 3045 4373 … … 3051 4379 ;; 3052 4380 *.$objext) 3053 staticdest= "$destfile"4381 staticdest=$destfile 3054 4382 destfile= 3055 4383 ;; 3056 4384 *) 3057 func_fatal_help "cannot copy a libtool object to \`$destfile'"4385 func_fatal_help "cannot copy a libtool object to '$destfile'" 3058 4386 ;; 3059 4387 esac … … 3064 4392 3065 4393 # Install the old object if enabled. 3066 if test "$build_old_libs" = yes; then4394 if test yes = "$build_old_libs"; then 3067 4395 # Deduce the name of the old-style object file. 3068 4396 func_lo2o "$file" … … 3076 4404 # Figure out destination file name, if it wasn't already specified. 3077 4405 if test -n "$destname"; then 3078 destfile= "$destdir/$destname"4406 destfile=$destdir/$destname 3079 4407 else 3080 4408 func_basename "$file" 3081 destfile= "$func_basename_result"3082 destfile= "$destdir/$destfile"4409 destfile=$func_basename_result 4410 destfile=$destdir/$destfile 3083 4411 fi 3084 4412 … … 3086 4414 # because it is most likely a libtool script we actually want to 3087 4415 # install 3088 stripped_ext= ""4416 stripped_ext= 3089 4417 case $file in 3090 4418 *.exe) … … 3092 4420 func_stripname '' '.exe' "$file" 3093 4421 file=$func_stripname_result 3094 stripped_ext= ".exe"4422 stripped_ext=.exe 3095 4423 fi 3096 4424 ;; … … 3120 4448 # Check the variables that should have been set. 3121 4449 test -z "$generated_by_libtool_version" && \ 3122 func_fatal_error "invalid libtool wrapper script \`$wrapper'"3123 3124 finalize= yes4450 func_fatal_error "invalid libtool wrapper script '$wrapper'" 4451 4452 finalize=: 3125 4453 for lib in $notinst_deplibs; do 3126 4454 # Check to see that each library is installed. … … 3129 4457 func_source "$lib" 3130 4458 fi 3131 libfile= "$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test4459 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` 3132 4460 if test -n "$libdir" && test ! -f "$libfile"; then 3133 func_warning " \`$lib' has not been installed in \`$libdir'"3134 finalize= no4461 func_warning "'$lib' has not been installed in '$libdir'" 4462 finalize=false 3135 4463 fi 3136 4464 done … … 3140 4468 3141 4469 outputname= 3142 if test "$fast_install" = no&& test -n "$relink_command"; then4470 if test no = "$fast_install" && test -n "$relink_command"; then 3143 4471 $opt_dry_run || { 3144 if test "$finalize" = yes; then4472 if $finalize; then 3145 4473 tmpdir=`func_mktempdir` 3146 4474 func_basename "$file$stripped_ext" 3147 file= "$func_basename_result"3148 outputname= "$tmpdir/$file"4475 file=$func_basename_result 4476 outputname=$tmpdir/$file 3149 4477 # Replace the output file specification. 3150 4478 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` 3151 4479 3152 $opt_ silent || {4480 $opt_quiet || { 3153 4481 func_quote_for_expand "$relink_command" 3154 4482 eval "func_echo $func_quote_for_expand_result" … … 3156 4484 if eval "$relink_command"; then : 3157 4485 else 3158 func_error "error: relink \`$file' with the above command before installing it"4486 func_error "error: relink '$file' with the above command before installing it" 3159 4487 $opt_dry_run || ${RM}r "$tmpdir" 3160 4488 continue 3161 4489 fi 3162 file= "$outputname"4490 file=$outputname 3163 4491 else 3164 func_warning "cannot relink \`$file'"4492 func_warning "cannot relink '$file'" 3165 4493 fi 3166 4494 } … … 3199 4527 for file in $staticlibs; do 3200 4528 func_basename "$file" 3201 name= "$func_basename_result"4529 name=$func_basename_result 3202 4530 3203 4531 # Set up the ranlib parameters. 3204 oldlib= "$destdir/$name"4532 oldlib=$destdir/$name 3205 4533 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 3206 4534 tool_oldlib=$func_to_tool_file_result … … 3217 4545 3218 4546 test -n "$future_libdirs" && \ 3219 func_warning "remember to run \`$progname --finish$future_libdirs'"4547 func_warning "remember to run '$progname --finish$future_libdirs'" 3220 4548 3221 4549 if test -n "$current_libdirs"; then 3222 4550 # Maybe just do a dry run. 3223 4551 $opt_dry_run && current_libdirs=" -n$current_libdirs" 3224 exec_cmd='$SHELL $progpath$preserve_args --finish$current_libdirs'4552 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' 3225 4553 else 3226 4554 exit $EXIT_SUCCESS … … 3228 4556 } 3229 4557 3230 test "$opt_mode" = install&& func_mode_install ${1+"$@"}4558 test install = "$opt_mode" && func_mode_install ${1+"$@"} 3231 4559 3232 4560 … … 3236 4564 func_generate_dlsyms () 3237 4565 { 3238 $opt_debug 3239 my_outputname="$1" 3240 my_originator="$2" 3241 my_pic_p="${3-no}" 3242 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` 4566 $debug_cmd 4567 4568 my_outputname=$1 4569 my_originator=$2 4570 my_pic_p=${3-false} 4571 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` 3243 4572 my_dlsyms= 3244 4573 3245 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then4574 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then 3246 4575 if test -n "$NM" && test -n "$global_symbol_pipe"; then 3247 my_dlsyms= "${my_outputname}S.c"4576 my_dlsyms=${my_outputname}S.c 3248 4577 else 3249 4578 func_error "not configured to extract global symbols from dlpreopened files" … … 3256 4585 *.c) 3257 4586 # Discover the nlist of each of the dlfiles. 3258 nlist= "$output_objdir/${my_outputname}.nm"4587 nlist=$output_objdir/$my_outputname.nm 3259 4588 3260 4589 func_show_eval "$RM $nlist ${nlist}S ${nlist}T" … … 3264 4593 3265 4594 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ 3266 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */3267 /* Generated by $PROGRAM (GNU $PACKAGE $TIMESTAMP) $VERSION */4595 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ 4596 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ 3268 4597 3269 4598 #ifdef __cplusplus … … 3271 4600 #endif 3272 4601 3273 #if defined (__GNUC__)&& (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))4602 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) 3274 4603 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" 3275 4604 #endif 3276 4605 3277 4606 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 3278 #if defined (_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)3279 /* DATA imports from DLLs on WIN32 c on't be const, because runtime4607 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 4608 /* DATA imports from DLLs on WIN32 can't be const, because runtime 3280 4609 relocations are performed -- see ld's documentation on pseudo-relocs. */ 3281 4610 # define LT_DLSYM_CONST 3282 #elif defined (__osf__)4611 #elif defined __osf__ 3283 4612 /* This system does not cope well with relocations in const data. */ 3284 4613 # define LT_DLSYM_CONST … … 3287 4616 #endif 3288 4617 4618 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) 4619 3289 4620 /* External symbol declarations for the compiler. */\ 3290 4621 " 3291 4622 3292 if test "$dlself" = yes; then3293 func_verbose "generating symbol list for \`$output'"4623 if test yes = "$dlself"; then 4624 func_verbose "generating symbol list for '$output'" 3294 4625 3295 4626 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" … … 3299 4630 for progfile in $progfiles; do 3300 4631 func_to_tool_file "$progfile" func_convert_file_msys_to_w32 3301 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"4632 func_verbose "extracting global C symbols from '$func_to_tool_file_result'" 3302 4633 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" 3303 4634 done … … 3319 4650 # Prepare the list of exported symbols 3320 4651 if test -z "$export_symbols"; then 3321 export_symbols= "$output_objdir/$outputname.exp"4652 export_symbols=$output_objdir/$outputname.exp 3322 4653 $opt_dry_run || { 3323 4654 $RM $export_symbols 3324 eval "$ {SED}-n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'4655 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' 3325 4656 case $host in 3326 4657 *cygwin* | *mingw* | *cegcc* ) … … 3332 4663 else 3333 4664 $opt_dry_run || { 3334 eval "$ {SED}-e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'4665 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' 3335 4666 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' 3336 4667 eval '$MV "$nlist"T "$nlist"' … … 3346 4677 3347 4678 for dlprefile in $dlprefiles; do 3348 func_verbose "extracting global C symbols from \`$dlprefile'"4679 func_verbose "extracting global C symbols from '$dlprefile'" 3349 4680 func_basename "$dlprefile" 3350 name= "$func_basename_result"4681 name=$func_basename_result 3351 4682 case $host in 3352 4683 *cygwin* | *mingw* | *cegcc* ) … … 3355 4686 func_tr_sh "$dlprefile" 3356 4687 eval "curr_lafile=\$libfile_$func_tr_sh_result" 3357 dlprefile_dlbasename= ""4688 dlprefile_dlbasename= 3358 4689 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then 3359 4690 # Use subshell, to avoid clobbering current variable values 3360 4691 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` 3361 if test -n "$dlprefile_dlname" 4692 if test -n "$dlprefile_dlname"; then 3362 4693 func_basename "$dlprefile_dlname" 3363 dlprefile_dlbasename= "$func_basename_result"4694 dlprefile_dlbasename=$func_basename_result 3364 4695 else 3365 4696 # no lafile. user explicitly requested -dlpreopen <import library>. … … 3369 4700 fi 3370 4701 $opt_dry_run || { 3371 if test -n "$dlprefile_dlbasename" 4702 if test -n "$dlprefile_dlbasename"; then 3372 4703 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' 3373 4704 else … … 3425 4756 fi 3426 4757 4758 func_show_eval '$RM "${nlist}I"' 4759 if test -n "$global_symbol_to_import"; then 4760 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' 4761 fi 4762 3427 4763 echo >> "$output_objdir/$my_dlsyms" "\ 3428 4764 … … 3433 4769 } lt_dlsymlist; 3434 4770 extern LT_DLSYM_CONST lt_dlsymlist 3435 lt_${my_prefix}_LTX_preloaded_symbols[]; 4771 lt_${my_prefix}_LTX_preloaded_symbols[];\ 4772 " 4773 4774 if test -s "$nlist"I; then 4775 echo >> "$output_objdir/$my_dlsyms" "\ 4776 static void lt_syminit(void) 4777 { 4778 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; 4779 for (; symbol->name; ++symbol) 4780 {" 4781 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" 4782 echo >> "$output_objdir/$my_dlsyms" "\ 4783 } 4784 }" 4785 fi 4786 echo >> "$output_objdir/$my_dlsyms" "\ 3436 4787 LT_DLSYM_CONST lt_dlsymlist 3437 4788 lt_${my_prefix}_LTX_preloaded_symbols[] = 3438 {\ 3439 { \"$my_originator\", (void *) 0 }," 4789 { {\"$my_originator\", (void *) 0}," 4790 4791 if test -s "$nlist"I; then 4792 echo >> "$output_objdir/$my_dlsyms" "\ 4793 {\"@INIT@\", (void *) <_syminit}," 4794 fi 3440 4795 3441 4796 case $need_lib_prefix in … … 3479 4834 pic_flag_for_symtable=" $pic_flag" ;; 3480 4835 *) 3481 if test "X$my_pic_p" != Xno; then 3482 pic_flag_for_symtable=" $pic_flag" 3483 fi 4836 $my_pic_p && pic_flag_for_symtable=" $pic_flag" 3484 4837 ;; 3485 4838 esac … … 3498 4851 3499 4852 # Clean up the generated files. 3500 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" '4853 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' 3501 4854 3502 4855 # Transform the symbol file into the correct name. 3503 symfileobj= "$output_objdir/${my_outputname}S.$objext"4856 symfileobj=$output_objdir/${my_outputname}S.$objext 3504 4857 case $host in 3505 4858 *cygwin* | *mingw* | *cegcc* ) … … 3519 4872 ;; 3520 4873 *) 3521 func_fatal_error "unknown suffix for \`$my_dlsyms'"4874 func_fatal_error "unknown suffix for '$my_dlsyms'" 3522 4875 ;; 3523 4876 esac … … 3531 4884 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` 3532 4885 fi 4886 } 4887 4888 # func_cygming_gnu_implib_p ARG 4889 # This predicate returns with zero status (TRUE) if 4890 # ARG is a GNU/binutils-style import library. Returns 4891 # with nonzero status (FALSE) otherwise. 4892 func_cygming_gnu_implib_p () 4893 { 4894 $debug_cmd 4895 4896 func_to_tool_file "$1" func_convert_file_msys_to_w32 4897 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` 4898 test -n "$func_cygming_gnu_implib_tmp" 4899 } 4900 4901 # func_cygming_ms_implib_p ARG 4902 # This predicate returns with zero status (TRUE) if 4903 # ARG is an MS-style import library. Returns 4904 # with nonzero status (FALSE) otherwise. 4905 func_cygming_ms_implib_p () 4906 { 4907 $debug_cmd 4908 4909 func_to_tool_file "$1" func_convert_file_msys_to_w32 4910 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` 4911 test -n "$func_cygming_ms_implib_tmp" 3533 4912 } 3534 4913 … … 3542 4921 func_win32_libid () 3543 4922 { 3544 $opt_debug 3545 win32_libid_type="unknown" 4923 $debug_cmd 4924 4925 win32_libid_type=unknown 3546 4926 win32_fileres=`file -L $1 2>/dev/null` 3547 4927 case $win32_fileres in … … 3553 4933 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | 3554 4934 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then 3555 func_to_tool_file "$1" func_convert_file_msys_to_w32 3556 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | 3557 $SED -n -e ' 4935 case $nm_interface in 4936 "MS dumpbin") 4937 if func_cygming_ms_implib_p "$1" || 4938 func_cygming_gnu_implib_p "$1" 4939 then 4940 win32_nmres=import 4941 else 4942 win32_nmres= 4943 fi 4944 ;; 4945 *) 4946 func_to_tool_file "$1" func_convert_file_msys_to_w32 4947 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | 4948 $SED -n -e ' 3558 4949 1,100{ 3559 4950 / I /{ 3560 s ,.*,import,4951 s|.*|import| 3561 4952 p 3562 4953 q 3563 4954 } 3564 4955 }'` 4956 ;; 4957 esac 3565 4958 case $win32_nmres in 3566 4959 import*) win32_libid_type="x86 archive import";; … … 3594 4987 func_cygming_dll_for_implib () 3595 4988 { 3596 $opt_debug 4989 $debug_cmd 4990 3597 4991 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` 3598 4992 } … … 3611 5005 func_cygming_dll_for_implib_fallback_core () 3612 5006 { 3613 $opt_debug 5007 $debug_cmd 5008 3614 5009 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` 3615 5010 $OBJDUMP -s --section "$1" "$2" 2>/dev/null | … … 3647 5042 # we now have a list, one entry per line, of the stringified 3648 5043 # contents of the appropriate section of all members of the 3649 # archive whichpossess that section. Heuristic: eliminate3650 # all those whichhave a first or second character that is5044 # archive that possess that section. Heuristic: eliminate 5045 # all those that have a first or second character that is 3651 5046 # a '.' (that is, objdump's representation of an unprintable 3652 5047 # character.) This should work for all archives with less than … … 3657 5052 # Of those that remain, print the first one. 3658 5053 $SED -e '/^\./d;/^.\./d;q' 3659 }3660 3661 # func_cygming_gnu_implib_p ARG3662 # This predicate returns with zero status (TRUE) if3663 # ARG is a GNU/binutils-style import library. Returns3664 # with nonzero status (FALSE) otherwise.3665 func_cygming_gnu_implib_p ()3666 {3667 $opt_debug3668 func_to_tool_file "$1" func_convert_file_msys_to_w323669 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`3670 test -n "$func_cygming_gnu_implib_tmp"3671 }3672 3673 # func_cygming_ms_implib_p ARG3674 # This predicate returns with zero status (TRUE) if3675 # ARG is an MS-style import library. Returns3676 # with nonzero status (FALSE) otherwise.3677 func_cygming_ms_implib_p ()3678 {3679 $opt_debug3680 func_to_tool_file "$1" func_convert_file_msys_to_w323681 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`3682 test -n "$func_cygming_ms_implib_tmp"3683 5054 } 3684 5055 … … 3696 5067 func_cygming_dll_for_implib_fallback () 3697 5068 { 3698 $opt_debug 3699 if func_cygming_gnu_implib_p "$1" ; then 5069 $debug_cmd 5070 5071 if func_cygming_gnu_implib_p "$1"; then 3700 5072 # binutils import library 3701 5073 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` 3702 elif func_cygming_ms_implib_p "$1" 5074 elif func_cygming_ms_implib_p "$1"; then 3703 5075 # ms-generated import library 3704 5076 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` 3705 5077 else 3706 5078 # unknown 3707 sharedlib_from_linklib_result= ""5079 sharedlib_from_linklib_result= 3708 5080 fi 3709 5081 } … … 3713 5085 func_extract_an_archive () 3714 5086 { 3715 $opt_debug 3716 f_ex_an_ar_dir="$1"; shift 3717 f_ex_an_ar_oldlib="$1" 3718 if test "$lock_old_archive_extraction" = yes; then 5087 $debug_cmd 5088 5089 f_ex_an_ar_dir=$1; shift 5090 f_ex_an_ar_oldlib=$1 5091 if test yes = "$lock_old_archive_extraction"; then 3719 5092 lockfile=$f_ex_an_ar_oldlib.lock 3720 5093 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do … … 3725 5098 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 3726 5099 'stat=$?; rm -f "$lockfile"; exit $stat' 3727 if test "$lock_old_archive_extraction" = yes; then5100 if test yes = "$lock_old_archive_extraction"; then 3728 5101 $opt_dry_run || rm -f "$lockfile" 3729 5102 fi … … 3739 5112 func_extract_archives () 3740 5113 { 3741 $opt_debug 3742 my_gentop="$1"; shift 5114 $debug_cmd 5115 5116 my_gentop=$1; shift 3743 5117 my_oldlibs=${1+"$@"} 3744 my_oldobjs= ""3745 my_xlib= ""3746 my_xabs= ""3747 my_xdir= ""5118 my_oldobjs= 5119 my_xlib= 5120 my_xabs= 5121 my_xdir= 3748 5122 3749 5123 for my_xlib in $my_oldlibs; do 3750 5124 # Extract the objects. 3751 5125 case $my_xlib in 3752 [\\/]* | [A-Za-z]:[\\/]*) my_xabs= "$my_xlib";;5126 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; 3753 5127 *) my_xabs=`pwd`"/$my_xlib" ;; 3754 5128 esac 3755 5129 func_basename "$my_xlib" 3756 my_xlib= "$func_basename_result"5130 my_xlib=$func_basename_result 3757 5131 my_xlib_u=$my_xlib 3758 5132 while :; do … … 3766 5140 done 3767 5141 extracted_archives="$extracted_archives $my_xlib_u" 3768 my_xdir= "$my_gentop/$my_xlib_u"5142 my_xdir=$my_gentop/$my_xlib_u 3769 5143 3770 5144 func_mkdir_p "$my_xdir" … … 3779 5153 darwin_archive=$my_xabs 3780 5154 darwin_curdir=`pwd` 3781 darwin_base_archive=`basename "$darwin_archive"` 5155 func_basename "$darwin_archive" 5156 darwin_base_archive=$func_basename_result 3782 5157 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` 3783 5158 if test -n "$darwin_arches"; then … … 3785 5160 darwin_arch= 3786 5161 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" 3787 for darwin_arch in $darwin_arches 3788 func_mkdir_p "unfat-$$/$ {darwin_base_archive}-${darwin_arch}"3789 $LIPO -thin $darwin_arch -output "unfat-$$/$ {darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"3790 cd "unfat-$$/$ {darwin_base_archive}-${darwin_arch}"3791 func_extract_an_archive "`pwd`" "$ {darwin_base_archive}"5162 for darwin_arch in $darwin_arches; do 5163 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" 5164 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" 5165 cd "unfat-$$/$darwin_base_archive-$darwin_arch" 5166 func_extract_an_archive "`pwd`" "$darwin_base_archive" 3792 5167 cd "$darwin_curdir" 3793 $RM "unfat-$$/$ {darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"5168 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" 3794 5169 done # $darwin_arches 3795 5170 ## Okay now we've a bunch of thin objects, gotta fatten them up :) 3796 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$ basename" | sort -u`5171 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` 3797 5172 darwin_file= 3798 5173 darwin_files= … … 3816 5191 done 3817 5192 3818 func_extract_archives_result= "$my_oldobjs"5193 func_extract_archives_result=$my_oldobjs 3819 5194 } 3820 5195 … … 3831 5206 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR 3832 5207 # variable will take. If 'yes', then the emitted script 3833 # will assume that the directory in whichit is stored is5208 # will assume that the directory where it is stored is 3834 5209 # the $objdir directory. This is a cygwin/mingw-specific 3835 5210 # behavior. … … 3842 5217 3843 5218 # $output - temporary wrapper script for $objdir/$outputname 3844 # Generated by $PROGRAM (GNU $PACKAGE $TIMESTAMP) $VERSION5219 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION 3845 5220 # 3846 5221 # The $output program cannot be directly executed until all the libtool … … 3899 5274 # Very basic option parsing. These options are (a) specific to 3900 5275 # the libtool wrapper, (b) are identical between the wrapper 3901 # /script/ and the wrapper /executable/ whichis used only on5276 # /script/ and the wrapper /executable/ that is used only on 3902 5277 # windows platforms, and (c) all begin with the string "--lt-" 3903 # (application programs are unlikely to have options whichmatch5278 # (application programs are unlikely to have options that match 3904 5279 # this pattern). 3905 5280 # … … 3934 5309 # Print the debug banner immediately: 3935 5310 if test -n \"\$lt_option_debug\"; then 3936 echo \"$ {outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&25311 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 3937 5312 fi 3938 5313 } … … 3945 5320 for lt_arg 3946 5321 do 3947 \$ECHO \"$ {outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"5322 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" 3948 5323 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` 3949 5324 done … … 3959 5334 $ECHO "\ 3960 5335 if test -n \"\$lt_option_debug\"; then 3961 \$ECHO \"$ {outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&25336 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 3962 5337 func_lt_dump_args \${1+\"\$@\"} 1>&2 3963 5338 fi … … 3969 5344 $ECHO "\ 3970 5345 if test -n \"\$lt_option_debug\"; then 3971 \$ECHO \"$ {outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&25346 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 3972 5347 func_lt_dump_args \${1+\"\$@\"} 1>&2 3973 5348 fi … … 4044 5419 " 4045 5420 4046 if test "$fast_install" = yes; then5421 if test yes = "$fast_install"; then 4047 5422 $ECHO "\ 4048 5423 program=lt-'$outputname'$exeext … … 4050 5425 4051 5426 if test ! -f \"\$progdir/\$program\" || 4052 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $ {SED}1q\`; \\5427 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ 4053 5428 test \"X\$file\" != \"X\$progdir/\$program\"; }; then 4054 5429 … … 4067 5442 if relink_command_output=\`eval \$relink_command 2>&1\`; then : 4068 5443 else 4069 $ECHO \"\$relink_command_output\" >&25444 \$ECHO \"\$relink_command_output\" >&2 4070 5445 $RM \"\$progdir/\$file\" 4071 5446 exit 1 … … 4102 5477 4103 5478 # Export our shlibpath_var if we have one. 4104 if test "$shlibpath_overrides_runpath" = yes&& test -n "$shlibpath_var" && test -n "$temp_rpath"; then5479 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then 4105 5480 $ECHO "\ 4106 5481 # Add our own library path to $shlibpath_var … … 4122 5497 else 4123 5498 # The program doesn't exist. 4124 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&25499 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 4125 5500 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 4126 5501 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 … … 4141 5516 4142 5517 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname 4143 Generated by $PROGRAM (GNU $PACKAGE $TIMESTAMP) $VERSION5518 Generated by $PROGRAM (GNU $PACKAGE) $VERSION 4144 5519 4145 5520 The $output program cannot be directly executed until all the libtool … … 4176 5551 #include <sys/stat.h> 4177 5552 5553 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) 5554 4178 5555 /* declarations of non-ANSI functions */ 4179 #if defined (__MINGW32__)5556 #if defined __MINGW32__ 4180 5557 # ifdef __STRICT_ANSI__ 4181 5558 int _putenv (const char *); 4182 5559 # endif 4183 #elif defined (__CYGWIN__)5560 #elif defined __CYGWIN__ 4184 5561 # ifdef __STRICT_ANSI__ 4185 5562 char *realpath (const char *, char *); … … 4187 5564 int setenv (const char *, const char *, int); 4188 5565 # endif 4189 /* #elif defined (other platforms)... */5566 /* #elif defined other_platform || defined ... */ 4190 5567 #endif 4191 5568 4192 5569 /* portability defines, excluding path handling macros */ 4193 #if defined (_MSC_VER)5570 #if defined _MSC_VER 4194 5571 # define setmode _setmode 4195 5572 # define stat _stat … … 4198 5575 # define putenv _putenv 4199 5576 # define S_IXUSR _S_IEXEC 4200 # ifndef _INTPTR_T_DEFINED 4201 # define _INTPTR_T_DEFINED 4202 # define intptr_t int 4203 # endif 4204 #elif defined(__MINGW32__) 5577 #elif defined __MINGW32__ 4205 5578 # define setmode _setmode 4206 5579 # define stat _stat … … 4208 5581 # define getcwd _getcwd 4209 5582 # define putenv _putenv 4210 #elif defined (__CYGWIN__)5583 #elif defined __CYGWIN__ 4211 5584 # define HAVE_SETENV 4212 5585 # define FOPEN_WB "wb" 4213 /* #elif defined (other platforms)... */5586 /* #elif defined other platforms ... */ 4214 5587 #endif 4215 5588 4216 #if defined (PATH_MAX)5589 #if defined PATH_MAX 4217 5590 # define LT_PATHMAX PATH_MAX 4218 #elif defined (MAXPATHLEN)5591 #elif defined MAXPATHLEN 4219 5592 # define LT_PATHMAX MAXPATHLEN 4220 5593 #else … … 4235 5608 #endif 4236 5609 4237 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__)|| \4238 defined (__OS2__)5610 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ 5611 defined __OS2__ 4239 5612 # define HAVE_DOS_BASED_FILE_SYSTEM 4240 5613 # define FOPEN_WB "wb" … … 4269 5642 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) 4270 5643 #define XFREE(stale) do { \ 4271 if (stale) { free ( (void *)stale); stale = 0; } \5644 if (stale) { free (stale); stale = 0; } \ 4272 5645 } while (0) 4273 5646 4274 #if defined (LT_DEBUGWRAPPER)5647 #if defined LT_DEBUGWRAPPER 4275 5648 static int lt_debug = 1; 4276 5649 #else … … 4301 5674 4302 5675 cat <<EOF 4303 volatile const char * MAGIC_EXE = "$magic_exe"; 5676 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 5677 # define externally_visible volatile 5678 #else 5679 # define externally_visible __attribute__((externally_visible)) volatile 5680 #endif 5681 externally_visible const char * MAGIC_EXE = "$magic_exe"; 4304 5682 const char * LIB_PATH_VARNAME = "$shlibpath_var"; 4305 5683 EOF 4306 5684 4307 if test "$shlibpath_overrides_runpath" = yes&& test -n "$shlibpath_var" && test -n "$temp_rpath"; then5685 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then 4308 5686 func_to_host_path "$temp_rpath" 4309 5687 cat <<EOF … … 4329 5707 fi 4330 5708 4331 if test "$fast_install" = yes; then5709 if test yes = "$fast_install"; then 4332 5710 cat <<EOF 4333 5711 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */ … … 4358 5736 char *target_name; 4359 5737 char *lt_argv_zero; 4360 int ptr_trval = 127;5738 int rval = 127; 4361 5739 4362 5740 int i; 4363 5741 4364 5742 program_name = (char *) xstrdup (base_name (argv[0])); 4365 newargz = XMALLOC (char *, argc + 1);5743 newargz = XMALLOC (char *, (size_t) argc + 1); 4366 5744 4367 5745 /* very simple arg parsing; don't want to rely on getopt … … 4372 5750 for (i = 1; i < argc; i++) 4373 5751 { 4374 if ( strcmp (argv[i], dumpscript_opt) == 0)5752 if (STREQ (argv[i], dumpscript_opt)) 4375 5753 { 4376 5754 EOF 4377 case "$host"in5755 case $host in 4378 5756 *mingw* | *cygwin* ) 4379 5757 # make stdout use "unix" line endings … … 4386 5764 return 0; 4387 5765 } 4388 if ( strcmp (argv[i], debug_opt) == 0)5766 if (STREQ (argv[i], debug_opt)) 4389 5767 { 4390 5768 lt_debug = 1; 4391 5769 continue; 4392 5770 } 4393 if ( strcmp (argv[i], ltwrapper_option_prefix) == 0)5771 if (STREQ (argv[i], ltwrapper_option_prefix)) 4394 5772 { 4395 5773 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX … … 4414 5792 cat <<EOF 4415 5793 /* The GNU banner must be the first non-error debug message */ 4416 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE $TIMESTAMP) $VERSION\n");5794 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n"); 4417 5795 EOF 4418 5796 cat <<"EOF" … … 4525 5903 /* execv doesn't actually work on mingw as expected on unix */ 4526 5904 newargz = prepare_spawn (newargz); 4527 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);5905 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); 4528 5906 if (rval == -1) 4529 5907 { … … 4570 5948 const char *base; 4571 5949 4572 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)5950 #if defined HAVE_DOS_BASED_FILE_SYSTEM 4573 5951 /* Skip over the disk name in MSDOS pathnames. */ 4574 5952 if (isalpha ((unsigned char) name[0]) && name[1] == ':') … … 4629 6007 /* static buffer for getcwd */ 4630 6008 char tmp[LT_PATHMAX + 1]; 4631 int tmp_len;6009 size_t tmp_len; 4632 6010 char *concat_name; 4633 6011 … … 4639 6017 4640 6018 /* Absolute path? */ 4641 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)6019 #if defined HAVE_DOS_BASED_FILE_SYSTEM 4642 6020 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') 4643 6021 { … … 4657 6035 XFREE (concat_name); 4658 6036 } 4659 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)6037 #if defined HAVE_DOS_BASED_FILE_SYSTEM 4660 6038 } 4661 6039 #endif … … 4680 6058 if (IS_PATH_SEPARATOR (*q)) 4681 6059 break; 4682 p_len = q - p;6060 p_len = (size_t) (q - p); 4683 6061 p_next = (*q == '\0' ? q : q + 1); 4684 6062 if (p_len == 0) … … 4799 6177 { 4800 6178 str += len - patlen; 4801 if ( strcmp (str, pat) == 0)6179 if (STREQ (str, pat)) 4802 6180 *str = '\0'; 4803 6181 } … … 4864 6242 setenv (name, str, 1); 4865 6243 #else 4866 int len = strlen (name) + 1 + strlen (value) + 1;6244 size_t len = strlen (name) + 1 + strlen (value) + 1; 4867 6245 char *str = XMALLOC (char, len); 4868 6246 sprintf (str, "%s=%s", name, value); … … 4881 6259 if (orig_value && *orig_value) 4882 6260 { 4883 int orig_value_len = strlen (orig_value);4884 int add_len = strlen (add);6261 size_t orig_value_len = strlen (orig_value); 6262 size_t add_len = strlen (add); 4885 6263 new_value = XMALLOC (char, add_len + orig_value_len + 1); 4886 6264 if (to_end) … … 4913 6291 char *new_value = lt_extend_str (getenv (name), value, 0); 4914 6292 /* some systems can't cope with a ':'-terminated path #' */ 4915 int len = strlen (new_value);4916 while (( (len = strlen (new_value))> 0) && IS_PATH_SEPARATOR (new_value[len-1]))6293 size_t len = strlen (new_value); 6294 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) 4917 6295 { 4918 new_value[ len-1] = '\0';6296 new_value[--len] = '\0'; 4919 6297 } 4920 6298 lt_setenv (name, new_value); … … 5083 6461 func_win32_import_lib_p () 5084 6462 { 5085 $opt_debug 6463 $debug_cmd 6464 5086 6465 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in 5087 6466 *import*) : ;; … … 5090 6469 } 5091 6470 6471 # func_suncc_cstd_abi 6472 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! 6473 # Several compiler flags select an ABI that is incompatible with the 6474 # Cstd library. Avoid specifying it if any are in CXXFLAGS. 6475 func_suncc_cstd_abi () 6476 { 6477 $debug_cmd 6478 6479 case " $compile_command " in 6480 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) 6481 suncc_use_cstd_abi=no 6482 ;; 6483 *) 6484 suncc_use_cstd_abi=yes 6485 ;; 6486 esac 6487 } 6488 5092 6489 # func_mode_link arg... 5093 6490 func_mode_link () 5094 6491 { 5095 $opt_debug 6492 $debug_cmd 6493 5096 6494 case $host in 5097 6495 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) 5098 6496 # It is impossible to link a dll without this setting, and 5099 6497 # we shouldn't force the makefile maintainer to figure out 5100 # wh ichsystem we are compiling for in order to pass an extra6498 # what system we are compiling for in order to pass an extra 5101 6499 # flag for every libtool invocation. 5102 6500 # allow_undefined=no 5103 6501 5104 6502 # FIXME: Unfortunately, there are problems with the above when trying 5105 # to make a dll whichhas undefined symbols, in which case not6503 # to make a dll that has undefined symbols, in which case not 5106 6504 # even a static library is built. For now, we need to specify 5107 6505 # -no-undefined on the libtool link line when we can be certain … … 5147 6545 no_install=no 5148 6546 objs= 6547 os2dllname= 5149 6548 non_pic_objects= 5150 6549 precious_files_regex= 5151 6550 prefer_static_libs=no 5152 preload= no6551 preload=false 5153 6552 prev= 5154 6553 prevarg= … … 5162 6561 vinfo_number=no 5163 6562 weak_libs= 5164 single_module= "${wl}-single_module"6563 single_module=$wl-single_module 5165 6564 func_infer_tag $base_compile 5166 6565 … … 5170 6569 case $arg in 5171 6570 -shared) 5172 test "$build_libtool_libs" != yes &&\5173 func_fatal_configuration "cannot build a shared library"6571 test yes != "$build_libtool_libs" \ 6572 && func_fatal_configuration "cannot build a shared library" 5174 6573 build_old_libs=no 5175 6574 break … … 5178 6577 case $arg in 5179 6578 -all-static) 5180 if test "$build_libtool_libs" = yes&& test -z "$link_static_flag"; then6579 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then 5181 6580 func_warning "complete static linking is impossible in this configuration" 5182 6581 fi … … 5211 6610 # Go through the arguments, transforming them on the way. 5212 6611 while test "$#" -gt 0; do 5213 arg= "$1"6612 arg=$1 5214 6613 shift 5215 6614 func_quote_for_eval "$arg" … … 5228 6627 case $prev in 5229 6628 bindir) 5230 bindir= "$arg"6629 bindir=$arg 5231 6630 prev= 5232 6631 continue 5233 6632 ;; 5234 6633 dlfiles|dlprefiles) 5235 if test "$preload" = no; then6634 $preload || { 5236 6635 # Add the symbol object into the linking commands. 5237 6636 func_append compile_command " @SYMFILE@" 5238 6637 func_append finalize_command " @SYMFILE@" 5239 preload= yes5240 fi6638 preload=: 6639 } 5241 6640 case $arg in 5242 6641 *.la | *.lo) ;; # We handle these cases below. 5243 6642 force) 5244 if test "$dlself" = no; then6643 if test no = "$dlself"; then 5245 6644 dlself=needless 5246 6645 export_dynamic=yes … … 5250 6649 ;; 5251 6650 self) 5252 if test "$prev" = dlprefiles; then6651 if test dlprefiles = "$prev"; then 5253 6652 dlself=yes 5254 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then6653 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then 5255 6654 dlself=yes 5256 6655 else … … 5262 6661 ;; 5263 6662 *) 5264 if test "$prev" = dlfiles; then6663 if test dlfiles = "$prev"; then 5265 6664 func_append dlfiles " $arg" 5266 6665 else … … 5273 6672 ;; 5274 6673 expsyms) 5275 export_symbols= "$arg"6674 export_symbols=$arg 5276 6675 test -f "$arg" \ 5277 || func_fatal_error "symbol file \`$arg' does not exist"6676 || func_fatal_error "symbol file '$arg' does not exist" 5278 6677 prev= 5279 6678 continue 5280 6679 ;; 5281 6680 expsyms_regex) 5282 export_symbols_regex= "$arg"6681 export_symbols_regex=$arg 5283 6682 prev= 5284 6683 continue … … 5298 6697 ;; 5299 6698 inst_prefix) 5300 inst_prefix_dir="$arg" 6699 inst_prefix_dir=$arg 6700 prev= 6701 continue 6702 ;; 6703 mllvm) 6704 # Clang does not use LLVM to link, so we can simply discard any 6705 # '-mllvm $arg' options when doing the link step. 5301 6706 prev= 5302 6707 continue … … 5322 6727 if test -z "$pic_object" || 5323 6728 test -z "$non_pic_object" || 5324 test "$pic_object" = none&&5325 test "$non_pic_object" = none; then5326 func_fatal_error "cannot find name of object for \`$arg'"6729 test none = "$pic_object" && 6730 test none = "$non_pic_object"; then 6731 func_fatal_error "cannot find name of object for '$arg'" 5327 6732 fi 5328 6733 5329 6734 # Extract subdirectory from the argument. 5330 6735 func_dirname "$arg" "/" "" 5331 xdir= "$func_dirname_result"5332 5333 if test "$pic_object" != none; then6736 xdir=$func_dirname_result 6737 6738 if test none != "$pic_object"; then 5334 6739 # Prepend the subdirectory the object is found in. 5335 pic_object= "$xdir$pic_object"5336 5337 if test "$prev" = dlfiles; then5338 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then6740 pic_object=$xdir$pic_object 6741 6742 if test dlfiles = "$prev"; then 6743 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then 5339 6744 func_append dlfiles " $pic_object" 5340 6745 prev= … … 5347 6752 5348 6753 # CHECK ME: I think I busted this. -Ossama 5349 if test "$prev" = dlprefiles; then6754 if test dlprefiles = "$prev"; then 5350 6755 # Preload the old-style object. 5351 6756 func_append dlprefiles " $pic_object" … … 5355 6760 # A PIC object. 5356 6761 func_append libobjs " $pic_object" 5357 arg= "$pic_object"6762 arg=$pic_object 5358 6763 fi 5359 6764 5360 6765 # Non-PIC object. 5361 if test "$non_pic_object" != none; then6766 if test none != "$non_pic_object"; then 5362 6767 # Prepend the subdirectory the object is found in. 5363 non_pic_object= "$xdir$non_pic_object"6768 non_pic_object=$xdir$non_pic_object 5364 6769 5365 6770 # A standard non-PIC object 5366 6771 func_append non_pic_objects " $non_pic_object" 5367 if test -z "$pic_object" || test "$pic_object" = none; then5368 arg= "$non_pic_object"6772 if test -z "$pic_object" || test none = "$pic_object"; then 6773 arg=$non_pic_object 5369 6774 fi 5370 6775 else 5371 6776 # If the PIC object exists, use it instead. 5372 6777 # $xdir was prepended to $pic_object above. 5373 non_pic_object= "$pic_object"6778 non_pic_object=$pic_object 5374 6779 func_append non_pic_objects " $non_pic_object" 5375 6780 fi … … 5379 6784 # Extract subdirectory from the argument. 5380 6785 func_dirname "$arg" "/" "" 5381 xdir= "$func_dirname_result"6786 xdir=$func_dirname_result 5382 6787 5383 6788 func_lo2o "$arg" … … 5387 6792 func_append non_pic_objects " $non_pic_object" 5388 6793 else 5389 func_fatal_error " \`$arg' is not a valid libtool object"6794 func_fatal_error "'$arg' is not a valid libtool object" 5390 6795 fi 5391 6796 fi 5392 6797 done 5393 6798 else 5394 func_fatal_error "link input file \`$arg' does not exist"6799 func_fatal_error "link input file '$arg' does not exist" 5395 6800 fi 5396 6801 arg=$save_arg … … 5398 6803 continue 5399 6804 ;; 6805 os2dllname) 6806 os2dllname=$arg 6807 prev= 6808 continue 6809 ;; 5400 6810 precious_regex) 5401 precious_files_regex= "$arg"6811 precious_files_regex=$arg 5402 6812 prev= 5403 6813 continue 5404 6814 ;; 5405 6815 release) 5406 release= "-$arg"6816 release=-$arg 5407 6817 prev= 5408 6818 continue … … 5416 6826 ;; 5417 6827 esac 5418 if test "$prev" = rpath; then6828 if test rpath = "$prev"; then 5419 6829 case "$rpath " in 5420 6830 *" $arg "*) ;; … … 5431 6841 ;; 5432 6842 shrext) 5433 shrext_cmds= "$arg"6843 shrext_cmds=$arg 5434 6844 prev= 5435 6845 continue … … 5471 6881 fi # test -n "$prev" 5472 6882 5473 prevarg= "$arg"6883 prevarg=$arg 5474 6884 5475 6885 case $arg in … … 5485 6895 -allow-undefined) 5486 6896 # FIXME: remove this flag sometime in the future. 5487 func_fatal_error " \`-allow-undefined' must not be used because it is the default"6897 func_fatal_error "'-allow-undefined' must not be used because it is the default" 5488 6898 ;; 5489 6899 … … 5517 6927 func_fatal_error "more than one -exported-symbols argument is not allowed" 5518 6928 fi 5519 if test "X$arg" = "X-export-symbols"; then6929 if test X-export-symbols = "X$arg"; then 5520 6930 prev=expsyms 5521 6931 else … … 5551 6961 if test -z "$func_stripname_result"; then 5552 6962 if test "$#" -gt 0; then 5553 func_fatal_error "require no space between \`-L' and \`$1'"6963 func_fatal_error "require no space between '-L' and '$1'" 5554 6964 else 5555 func_fatal_error "need path for \`-L' option"6965 func_fatal_error "need path for '-L' option" 5556 6966 fi 5557 6967 fi … … 5564 6974 absdir=`cd "$dir" && pwd` 5565 6975 test -z "$absdir" && \ 5566 func_fatal_error "cannot determine absolute directory name of \`$dir'"5567 dir= "$absdir"6976 func_fatal_error "cannot determine absolute directory name of '$dir'" 6977 dir=$absdir 5568 6978 ;; 5569 6979 esac … … 5600 7010 5601 7011 -l*) 5602 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then7012 if test X-lc = "X$arg" || test X-lm = "X$arg"; then 5603 7013 case $host in 5604 7014 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) … … 5608 7018 *-*-os2*) 5609 7019 # These systems don't actually have a C library (as such) 5610 test "X$arg" = "X-lc" && continue7020 test X-lc = "X$arg" && continue 5611 7021 ;; 5612 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* )7022 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) 5613 7023 # Do not include libc due to us having libc/libc_r. 5614 test "X$arg" = "X-lc" && continue7024 test X-lc = "X$arg" && continue 5615 7025 ;; 5616 7026 *-*-rhapsody* | *-*-darwin1.[012]) … … 5621 7031 *-*-sco3.2v5* | *-*-sco5v6*) 5622 7032 # Causes problems with __ctype 5623 test "X$arg" = "X-lc" && continue7033 test X-lc = "X$arg" && continue 5624 7034 ;; 5625 7035 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) 5626 7036 # Compiler inserts libc in the correct place for threads to work 5627 test "X$arg" = "X-lc" && continue7037 test X-lc = "X$arg" && continue 5628 7038 ;; 5629 7039 esac 5630 elif test "X$arg" = "X-lc_r"; then7040 elif test X-lc_r = "X$arg"; then 5631 7041 case $host in 5632 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* )7042 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) 5633 7043 # Do not include libc_r directly, use -pthread flag. 5634 7044 continue … … 5637 7047 fi 5638 7048 func_append deplibs " $arg" 7049 continue 7050 ;; 7051 7052 -mllvm) 7053 prev=mllvm 5639 7054 continue 5640 7055 ;; … … 5669 7084 5670 7085 -multi_module) 5671 single_module= "${wl}-multi_module"7086 single_module=$wl-multi_module 5672 7087 continue 5673 7088 ;; … … 5683 7098 # The PATH hackery in wrapper scripts is required on Windows 5684 7099 # and Darwin in order for the loader to find any dlls it needs. 5685 func_warning " \`-no-install' is ignored for $host"5686 func_warning "assuming \`-no-fast-install' instead"7100 func_warning "'-no-install' is ignored for $host" 7101 func_warning "assuming '-no-fast-install' instead" 5687 7102 fast_install=no 5688 7103 ;; … … 5699 7114 -objectlist) 5700 7115 prev=objectlist 7116 continue 7117 ;; 7118 7119 -os2dllname) 7120 prev=os2dllname 5701 7121 continue 5702 7122 ;; … … 5789 7209 args=$func_stripname_result 5790 7210 arg= 5791 save_ifs= "$IFS"; IFS=','7211 save_ifs=$IFS; IFS=, 5792 7212 for flag in $args; do 5793 IFS= "$save_ifs"7213 IFS=$save_ifs 5794 7214 func_quote_for_eval "$flag" 5795 7215 func_append arg " $func_quote_for_eval_result" 5796 7216 func_append compiler_flags " $func_quote_for_eval_result" 5797 7217 done 5798 IFS= "$save_ifs"7218 IFS=$save_ifs 5799 7219 func_stripname ' ' '' "$arg" 5800 7220 arg=$func_stripname_result … … 5805 7225 args=$func_stripname_result 5806 7226 arg= 5807 save_ifs= "$IFS"; IFS=','7227 save_ifs=$IFS; IFS=, 5808 7228 for flag in $args; do 5809 IFS= "$save_ifs"7229 IFS=$save_ifs 5810 7230 func_quote_for_eval "$flag" 5811 7231 func_append arg " $wl$func_quote_for_eval_result" … … 5813 7233 func_append linker_flags " $func_quote_for_eval_result" 5814 7234 done 5815 IFS= "$save_ifs"7235 IFS=$save_ifs 5816 7236 func_stripname ' ' '' "$arg" 5817 7237 arg=$func_stripname_result … … 5836 7256 -msg_*) 5837 7257 func_quote_for_eval "$arg" 5838 arg= "$func_quote_for_eval_result"7258 arg=$func_quote_for_eval_result 5839 7259 ;; 5840 7260 … … 5848 7268 # -F/path path to uninstalled frameworks, gcc on darwin 5849 7269 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC 7270 # -fstack-protector* stack protector flags for GCC 5850 7271 # @file GCC response files 5851 7272 # -tp=* Portland pgcc target processor selection 5852 7273 # --sysroot=* for sysroot support 5853 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization 7274 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization 7275 # -specs=* GCC specs files 7276 # -stdlib=* select c++ std lib with clang 7277 # -fsanitize=* Clang/GCC memory and address sanitizer 5854 7278 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ 5855 7279 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ 5856 -O*|-flto*|-fwhopr*|-fuse-linker-plugin) 7280 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ 7281 -specs=*|-fsanitize=*) 5857 7282 func_quote_for_eval "$arg" 5858 arg= "$func_quote_for_eval_result"7283 arg=$func_quote_for_eval_result 5859 7284 func_append compile_command " $arg" 5860 7285 func_append finalize_command " $arg" … … 5863 7288 ;; 5864 7289 7290 -Z*) 7291 if test os2 = "`expr $host : '.*\(os2\)'`"; then 7292 # OS/2 uses -Zxxx to specify OS/2-specific options 7293 compiler_flags="$compiler_flags $arg" 7294 func_append compile_command " $arg" 7295 func_append finalize_command " $arg" 7296 case $arg in 7297 -Zlinker | -Zstack) 7298 prev=xcompiler 7299 ;; 7300 esac 7301 continue 7302 else 7303 # Otherwise treat like 'Some other compiler flag' below 7304 func_quote_for_eval "$arg" 7305 arg=$func_quote_for_eval_result 7306 fi 7307 ;; 7308 5865 7309 # Some other compiler flag. 5866 7310 -* | +*) 5867 7311 func_quote_for_eval "$arg" 5868 arg= "$func_quote_for_eval_result"7312 arg=$func_quote_for_eval_result 5869 7313 ;; 5870 7314 … … 5887 7331 if test -z "$pic_object" || 5888 7332 test -z "$non_pic_object" || 5889 test "$pic_object" = none&&5890 test "$non_pic_object" = none; then5891 func_fatal_error "cannot find name of object for \`$arg'"7333 test none = "$pic_object" && 7334 test none = "$non_pic_object"; then 7335 func_fatal_error "cannot find name of object for '$arg'" 5892 7336 fi 5893 7337 5894 7338 # Extract subdirectory from the argument. 5895 7339 func_dirname "$arg" "/" "" 5896 xdir= "$func_dirname_result"5897 5898 if test "$pic_object" != none; then7340 xdir=$func_dirname_result 7341 7342 test none = "$pic_object" || { 5899 7343 # Prepend the subdirectory the object is found in. 5900 pic_object= "$xdir$pic_object"5901 5902 if test "$prev" = dlfiles; then5903 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then7344 pic_object=$xdir$pic_object 7345 7346 if test dlfiles = "$prev"; then 7347 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then 5904 7348 func_append dlfiles " $pic_object" 5905 7349 prev= … … 5912 7356 5913 7357 # CHECK ME: I think I busted this. -Ossama 5914 if test "$prev" = dlprefiles; then7358 if test dlprefiles = "$prev"; then 5915 7359 # Preload the old-style object. 5916 7360 func_append dlprefiles " $pic_object" … … 5920 7364 # A PIC object. 5921 7365 func_append libobjs " $pic_object" 5922 arg= "$pic_object"5923 fi7366 arg=$pic_object 7367 } 5924 7368 5925 7369 # Non-PIC object. 5926 if test "$non_pic_object" != none; then7370 if test none != "$non_pic_object"; then 5927 7371 # Prepend the subdirectory the object is found in. 5928 non_pic_object= "$xdir$non_pic_object"7372 non_pic_object=$xdir$non_pic_object 5929 7373 5930 7374 # A standard non-PIC object 5931 7375 func_append non_pic_objects " $non_pic_object" 5932 if test -z "$pic_object" || test "$pic_object" = none; then5933 arg= "$non_pic_object"7376 if test -z "$pic_object" || test none = "$pic_object"; then 7377 arg=$non_pic_object 5934 7378 fi 5935 7379 else 5936 7380 # If the PIC object exists, use it instead. 5937 7381 # $xdir was prepended to $pic_object above. 5938 non_pic_object= "$pic_object"7382 non_pic_object=$pic_object 5939 7383 func_append non_pic_objects " $non_pic_object" 5940 7384 fi … … 5944 7388 # Extract subdirectory from the argument. 5945 7389 func_dirname "$arg" "/" "" 5946 xdir= "$func_dirname_result"7390 xdir=$func_dirname_result 5947 7391 5948 7392 func_lo2o "$arg" … … 5952 7396 func_append non_pic_objects " $non_pic_object" 5953 7397 else 5954 func_fatal_error " \`$arg' is not a valid libtool object"7398 func_fatal_error "'$arg' is not a valid libtool object" 5955 7399 fi 5956 7400 fi … … 5968 7412 5969 7413 func_resolve_sysroot "$arg" 5970 if test "$prev" = dlfiles; then7414 if test dlfiles = "$prev"; then 5971 7415 # This library was specified with -dlopen. 5972 7416 func_append dlfiles " $func_resolve_sysroot_result" 5973 7417 prev= 5974 elif test "$prev" = dlprefiles; then7418 elif test dlprefiles = "$prev"; then 5975 7419 # The library was specified with -dlpreopen. 5976 7420 func_append dlprefiles " $func_resolve_sysroot_result" … … 5987 7431 # to be aesthetically quoted because they are evaled later. 5988 7432 func_quote_for_eval "$arg" 5989 arg= "$func_quote_for_eval_result"7433 arg=$func_quote_for_eval_result 5990 7434 ;; 5991 7435 esac # arg … … 5999 7443 6000 7444 test -n "$prev" && \ 6001 func_fatal_help "the \`$prevarg' option requires an argument"6002 6003 if test "$export_dynamic" = yes&& test -n "$export_dynamic_flag_spec"; then7445 func_fatal_help "the '$prevarg' option requires an argument" 7446 7447 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then 6004 7448 eval arg=\"$export_dynamic_flag_spec\" 6005 7449 func_append compile_command " $arg" … … 6010 7454 # calculate the name of the file, without its directory 6011 7455 func_basename "$output" 6012 outputname= "$func_basename_result"6013 libobjs_save= "$libobjs"7456 outputname=$func_basename_result 7457 libobjs_save=$libobjs 6014 7458 6015 7459 if test -n "$shlibpath_var"; then 6016 7460 # get the directories listed in $shlibpath_var 6017 eval shlib_search_path=\`\$ECHO \"\$ {$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`7461 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` 6018 7462 else 6019 7463 shlib_search_path= … … 6022 7466 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" 6023 7467 7468 # Definition is injected by LT_CONFIG during libtool generation. 7469 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" 7470 6024 7471 func_dirname "$output" "/" "" 6025 output_objdir= "$func_dirname_result$objdir"7472 output_objdir=$func_dirname_result$objdir 6026 7473 func_to_tool_file "$output_objdir/" 6027 7474 tool_output_objdir=$func_to_tool_file_result … … 6046 7493 # that are linked more than once (e.g. -la -lb -la) 6047 7494 for deplib in $deplibs; do 6048 if $opt_preserve_dup_deps 7495 if $opt_preserve_dup_deps; then 6049 7496 case "$libs " in 6050 7497 *" $deplib "*) func_append specialdeplibs " $deplib" ;; … … 6054 7501 done 6055 7502 6056 if test "$linkmode" = lib; then7503 if test lib = "$linkmode"; then 6057 7504 libs="$predeps $libs $compiler_lib_search_path $postdeps" 6058 7505 … … 6086 7533 *.la) ;; 6087 7534 *) 6088 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"7535 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" 6089 7536 ;; 6090 7537 esac … … 6094 7541 compile_deplibs= 6095 7542 finalize_deplibs= 6096 alldeplibs= no7543 alldeplibs=false 6097 7544 newdlfiles= 6098 7545 newdlprefiles= … … 6106 7553 # The preopen pass in lib mode reverses $deplibs; put it back here 6107 7554 # so that -L comes before libs that need it for instance... 6108 if test "$linkmode,$pass" = "lib,link"; then7555 if test lib,link = "$linkmode,$pass"; then 6109 7556 ## FIXME: Find the place where the list is rebuilt in the wrong 6110 7557 ## order, and fix it there properly … … 6113 7560 tmp_deplibs="$deplib $tmp_deplibs" 6114 7561 done 6115 deplibs= "$tmp_deplibs"7562 deplibs=$tmp_deplibs 6116 7563 fi 6117 7564 6118 if test "$linkmode,$pass" = "lib,link" ||6119 test "$linkmode,$pass" = "prog,scan"; then6120 libs= "$deplibs"7565 if test lib,link = "$linkmode,$pass" || 7566 test prog,scan = "$linkmode,$pass"; then 7567 libs=$deplibs 6121 7568 deplibs= 6122 7569 fi 6123 if test "$linkmode" = prog; then7570 if test prog = "$linkmode"; then 6124 7571 case $pass in 6125 dlopen) libs= "$dlfiles";;6126 dlpreopen) libs= "$dlprefiles";;7572 dlopen) libs=$dlfiles ;; 7573 dlpreopen) libs=$dlprefiles ;; 6127 7574 link) 6128 7575 libs="$deplibs %DEPLIBS%" … … 6131 7578 esac 6132 7579 fi 6133 if test "$linkmode,$pass" = "lib,dlpreopen"; then7580 if test lib,dlpreopen = "$linkmode,$pass"; then 6134 7581 # Collect and forward deplibs of preopened libtool libs 6135 7582 for lib in $dlprefiles; do … … 6152 7599 done 6153 7600 done 6154 libs= "$dlprefiles"7601 libs=$dlprefiles 6155 7602 fi 6156 if test "$pass" = dlopen; then7603 if test dlopen = "$pass"; then 6157 7604 # Collect dlpreopened libraries 6158 save_deplibs= "$deplibs"7605 save_deplibs=$deplibs 6159 7606 deplibs= 6160 7607 fi … … 6162 7609 for deplib in $libs; do 6163 7610 lib= 6164 found= no7611 found=false 6165 7612 case $deplib in 6166 7613 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ 6167 7614 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) 6168 if test "$linkmode,$pass" = "prog,link"; then7615 if test prog,link = "$linkmode,$pass"; then 6169 7616 compile_deplibs="$deplib $compile_deplibs" 6170 7617 finalize_deplibs="$deplib $finalize_deplibs" 6171 7618 else 6172 7619 func_append compiler_flags " $deplib" 6173 if test "$linkmode" = lib; then7620 if test lib = "$linkmode"; then 6174 7621 case "$new_inherited_linker_flags " in 6175 7622 *" $deplib "*) ;; … … 6181 7628 ;; 6182 7629 -l*) 6183 if test "$linkmode" != lib && test "$linkmode" != prog; then6184 func_warning " \`-l' is ignored for archives/objects"7630 if test lib != "$linkmode" && test prog != "$linkmode"; then 7631 func_warning "'-l' is ignored for archives/objects" 6185 7632 continue 6186 7633 fi 6187 7634 func_stripname '-l' '' "$deplib" 6188 7635 name=$func_stripname_result 6189 if test "$linkmode" = lib; then7636 if test lib = "$linkmode"; then 6190 7637 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" 6191 7638 else … … 6195 7642 for search_ext in .la $std_shrext .so .a; do 6196 7643 # Search the libtool library 6197 lib= "$searchdir/lib${name}${search_ext}"7644 lib=$searchdir/lib$name$search_ext 6198 7645 if test -f "$lib"; then 6199 if test "$search_ext" = ".la"; then6200 found= yes7646 if test .la = "$search_ext"; then 7647 found=: 6201 7648 else 6202 found= no7649 found=false 6203 7650 fi 6204 7651 break 2 … … 6206 7653 done 6207 7654 done 6208 if test "$found" != yes; then 6209 # deplib doesn't seem to be a libtool library 6210 if test "$linkmode,$pass" = "prog,link"; then 6211 compile_deplibs="$deplib $compile_deplibs" 6212 finalize_deplibs="$deplib $finalize_deplibs" 6213 else 6214 deplibs="$deplib $deplibs" 6215 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" 6216 fi 6217 continue 6218 else # deplib is a libtool library 7655 if $found; then 7656 # deplib is a libtool library 6219 7657 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, 6220 7658 # We need to do some special things here, and not later. 6221 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes"; then7659 if test yes = "$allow_libtool_libs_with_static_runtimes"; then 6222 7660 case " $predeps $postdeps " in 6223 7661 *" $deplib "*) … … 6227 7665 func_source "$lib" 6228 7666 for l in $old_library $library_names; do 6229 ll= "$l"7667 ll=$l 6230 7668 done 6231 if test "X$ll" = "X$old_library" 6232 found= no7669 if test "X$ll" = "X$old_library"; then # only static version available 7670 found=false 6233 7671 func_dirname "$lib" "" "." 6234 ladir= "$func_dirname_result"7672 ladir=$func_dirname_result 6235 7673 lib=$ladir/$old_library 6236 if test "$linkmode,$pass" = "prog,link"; then7674 if test prog,link = "$linkmode,$pass"; then 6237 7675 compile_deplibs="$deplib $compile_deplibs" 6238 7676 finalize_deplibs="$deplib $finalize_deplibs" 6239 7677 else 6240 7678 deplibs="$deplib $deplibs" 6241 test "$linkmode" = lib&& newdependency_libs="$deplib $newdependency_libs"7679 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" 6242 7680 fi 6243 7681 continue … … 6248 7686 esac 6249 7687 fi 7688 else 7689 # deplib doesn't seem to be a libtool library 7690 if test prog,link = "$linkmode,$pass"; then 7691 compile_deplibs="$deplib $compile_deplibs" 7692 finalize_deplibs="$deplib $finalize_deplibs" 7693 else 7694 deplibs="$deplib $deplibs" 7695 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" 7696 fi 7697 continue 6250 7698 fi 6251 7699 ;; # -l 6252 7700 *.ltframework) 6253 if test "$linkmode,$pass" = "prog,link"; then7701 if test prog,link = "$linkmode,$pass"; then 6254 7702 compile_deplibs="$deplib $compile_deplibs" 6255 7703 finalize_deplibs="$deplib $finalize_deplibs" 6256 7704 else 6257 7705 deplibs="$deplib $deplibs" 6258 if test "$linkmode" = lib; then7706 if test lib = "$linkmode"; then 6259 7707 case "$new_inherited_linker_flags " in 6260 7708 *" $deplib "*) ;; … … 6269 7717 lib) 6270 7718 deplibs="$deplib $deplibs" 6271 test "$pass" = conv&& continue7719 test conv = "$pass" && continue 6272 7720 newdependency_libs="$deplib $newdependency_libs" 6273 7721 func_stripname '-L' '' "$deplib" … … 6276 7724 ;; 6277 7725 prog) 6278 if test "$pass" = conv; then7726 if test conv = "$pass"; then 6279 7727 deplibs="$deplib $deplibs" 6280 7728 continue 6281 7729 fi 6282 if test "$pass" = scan; then7730 if test scan = "$pass"; then 6283 7731 deplibs="$deplib $deplibs" 6284 7732 else … … 6291 7739 ;; 6292 7740 *) 6293 func_warning " \`-L' is ignored for archives/objects"7741 func_warning "'-L' is ignored for archives/objects" 6294 7742 ;; 6295 7743 esac # linkmode … … 6297 7745 ;; # -L 6298 7746 -R*) 6299 if test "$pass" = link; then7747 if test link = "$pass"; then 6300 7748 func_stripname '-R' '' "$deplib" 6301 7749 func_resolve_sysroot "$func_stripname_result" … … 6315 7763 ;; 6316 7764 *.$libext) 6317 if test "$pass" = conv; then7765 if test conv = "$pass"; then 6318 7766 deplibs="$deplib $deplibs" 6319 7767 continue … … 6326 7774 *" $deplib "*) ;; 6327 7775 *) 6328 valid_a_lib= no7776 valid_a_lib=false 6329 7777 case $deplibs_check_method in 6330 7778 match_pattern*) … … 6333 7781 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ 6334 7782 | $EGREP "$match_pattern_regex" > /dev/null; then 6335 valid_a_lib= yes7783 valid_a_lib=: 6336 7784 fi 6337 7785 ;; 6338 7786 pass_all) 6339 valid_a_lib= yes7787 valid_a_lib=: 6340 7788 ;; 6341 7789 esac 6342 if test "$valid_a_lib" != yes; then 7790 if $valid_a_lib; then 7791 echo 7792 $ECHO "*** Warning: Linking the shared library $output against the" 7793 $ECHO "*** static library $deplib is not portable!" 7794 deplibs="$deplib $deplibs" 7795 else 6343 7796 echo 6344 7797 $ECHO "*** Warning: Trying to link with static lib archive $deplib." … … 6348 7801 echo "*** because the file extensions .$libext of this argument makes me believe" 6349 7802 echo "*** that it is just a static archive that I should not use here." 6350 else6351 echo6352 $ECHO "*** Warning: Linking the shared library $output against the"6353 $ECHO "*** static library $deplib is not portable!"6354 deplibs="$deplib $deplibs"6355 7803 fi 6356 7804 ;; … … 6359 7807 ;; 6360 7808 prog) 6361 if test "$pass" != link; then7809 if test link != "$pass"; then 6362 7810 deplibs="$deplib $deplibs" 6363 7811 else … … 6370 7818 ;; # *.$libext 6371 7819 *.lo | *.$objext) 6372 if test "$pass" = conv; then7820 if test conv = "$pass"; then 6373 7821 deplibs="$deplib $deplibs" 6374 elif test "$linkmode" = prog; then6375 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then7822 elif test prog = "$linkmode"; then 7823 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then 6376 7824 # If there is no dlopen support or we're linking statically, 6377 7825 # we need to preload. … … 6386 7834 ;; 6387 7835 %DEPLIBS%) 6388 alldeplibs= yes7836 alldeplibs=: 6389 7837 continue 6390 7838 ;; 6391 7839 esac # case $deplib 6392 7840 6393 if test "$found" = yes || test -f "$lib"; then : 6394 else 6395 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" 6396 fi 7841 $found || test -f "$lib" \ 7842 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" 6397 7843 6398 7844 # Check to see that this really is a libtool archive. 6399 7845 func_lalib_unsafe_p "$lib" \ 6400 || func_fatal_error " \`$lib' is not a valid libtool archive"7846 || func_fatal_error "'$lib' is not a valid libtool archive" 6401 7847 6402 7848 func_dirname "$lib" "" "." 6403 ladir= "$func_dirname_result"7849 ladir=$func_dirname_result 6404 7850 6405 7851 dlname= … … 6431 7877 fi 6432 7878 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` 6433 if test "$linkmode,$pass" = "lib,link" ||6434 test "$linkmode,$pass" = "prog,scan" ||6435 { test "$linkmode" != prog && test "$linkmode" != lib; }; then7879 if test lib,link = "$linkmode,$pass" || 7880 test prog,scan = "$linkmode,$pass" || 7881 { test prog != "$linkmode" && test lib != "$linkmode"; }; then 6436 7882 test -n "$dlopen" && func_append dlfiles " $dlopen" 6437 7883 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" 6438 7884 fi 6439 7885 6440 if test "$pass" = conv; then7886 if test conv = "$pass"; then 6441 7887 # Only check for convenience libraries 6442 7888 deplibs="$lib $deplibs" 6443 7889 if test -z "$libdir"; then 6444 7890 if test -z "$old_library"; then 6445 func_fatal_error "cannot find name of link library for \`$lib'"7891 func_fatal_error "cannot find name of link library for '$lib'" 6446 7892 fi 6447 7893 # It is a libtool convenience library, so add in its objects. … … 6451 7897 for deplib in $dependency_libs; do 6452 7898 deplibs="$deplib $deplibs" 6453 if $opt_preserve_dup_deps 7899 if $opt_preserve_dup_deps; then 6454 7900 case "$tmp_libs " in 6455 7901 *" $deplib "*) func_append specialdeplibs " $deplib" ;; … … 6458 7904 func_append tmp_libs " $deplib" 6459 7905 done 6460 elif test "$linkmode" != prog && test "$linkmode" != lib; then6461 func_fatal_error " \`$lib' is not a convenience library"7906 elif test prog != "$linkmode" && test lib != "$linkmode"; then 7907 func_fatal_error "'$lib' is not a convenience library" 6462 7908 fi 6463 7909 continue … … 6468 7914 linklib= 6469 7915 if test -n "$old_library" && 6470 { test "$prefer_static_libs" = yes||6471 test "$prefer_static_libs,$installed" = "built,no"; }; then7916 { test yes = "$prefer_static_libs" || 7917 test built,no = "$prefer_static_libs,$installed"; }; then 6472 7918 linklib=$old_library 6473 7919 else 6474 7920 for l in $old_library $library_names; do 6475 linklib= "$l"7921 linklib=$l 6476 7922 done 6477 7923 fi 6478 7924 if test -z "$linklib"; then 6479 func_fatal_error "cannot find name of link library for \`$lib'"7925 func_fatal_error "cannot find name of link library for '$lib'" 6480 7926 fi 6481 7927 6482 7928 # This library was specified with -dlopen. 6483 if test "$pass" = dlopen; then 6484 if test -z "$libdir"; then 6485 func_fatal_error "cannot -dlopen a convenience library: \`$lib'" 6486 fi 7929 if test dlopen = "$pass"; then 7930 test -z "$libdir" \ 7931 && func_fatal_error "cannot -dlopen a convenience library: '$lib'" 6487 7932 if test -z "$dlname" || 6488 test "$dlopen_support" != yes || 6489 test "$build_libtool_libs" = no; then 7933 test yes != "$dlopen_support" || 7934 test no = "$build_libtool_libs" 7935 then 6490 7936 # If there is no dlname, no dlopen support or we're linking 6491 7937 # statically, we need to preload. We also need to preload any … … 6501 7947 # We need an absolute path. 6502 7948 case $ladir in 6503 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir= "$ladir";;7949 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; 6504 7950 *) 6505 7951 abs_ladir=`cd "$ladir" && pwd` 6506 7952 if test -z "$abs_ladir"; then 6507 func_warning "cannot determine absolute directory name of \`$ladir'"7953 func_warning "cannot determine absolute directory name of '$ladir'" 6508 7954 func_warning "passing it literally to the linker, although it might fail" 6509 abs_ladir= "$ladir"7955 abs_ladir=$ladir 6510 7956 fi 6511 7957 ;; 6512 7958 esac 6513 7959 func_basename "$lib" 6514 laname= "$func_basename_result"7960 laname=$func_basename_result 6515 7961 6516 7962 # Find the relevant object directory and library name. 6517 if test "X$installed" = Xyes; then7963 if test yes = "$installed"; then 6518 7964 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then 6519 func_warning "library \`$lib' was moved."6520 dir= "$ladir"6521 absdir= "$abs_ladir"6522 libdir= "$abs_ladir"7965 func_warning "library '$lib' was moved." 7966 dir=$ladir 7967 absdir=$abs_ladir 7968 libdir=$abs_ladir 6523 7969 else 6524 dir= "$lt_sysroot$libdir"6525 absdir= "$lt_sysroot$libdir"7970 dir=$lt_sysroot$libdir 7971 absdir=$lt_sysroot$libdir 6526 7972 fi 6527 test "X$hardcode_automatic" = Xyes&& avoidtemprpath=yes7973 test yes = "$hardcode_automatic" && avoidtemprpath=yes 6528 7974 else 6529 7975 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then 6530 dir= "$ladir"6531 absdir= "$abs_ladir"7976 dir=$ladir 7977 absdir=$abs_ladir 6532 7978 # Remove this search path later 6533 7979 func_append notinst_path " $abs_ladir" 6534 7980 else 6535 dir= "$ladir/$objdir"6536 absdir= "$abs_ladir/$objdir"7981 dir=$ladir/$objdir 7982 absdir=$abs_ladir/$objdir 6537 7983 # Remove this search path later 6538 7984 func_append notinst_path " $abs_ladir" … … 6543 7989 6544 7990 # This library was specified with -dlpreopen. 6545 if test "$pass" = dlpreopen; then6546 if test -z "$libdir" && test "$linkmode" = prog; then6547 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"7991 if test dlpreopen = "$pass"; then 7992 if test -z "$libdir" && test prog = "$linkmode"; then 7993 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" 6548 7994 fi 6549 case "$host"in7995 case $host in 6550 7996 # special handling for platforms with PE-DLLs. 6551 7997 *cygwin* | *mingw* | *cegcc* ) … … 6591 8037 if test -z "$libdir"; then 6592 8038 # Link the convenience library 6593 if test "$linkmode" = lib; then8039 if test lib = "$linkmode"; then 6594 8040 deplibs="$dir/$old_library $deplibs" 6595 elif test "$linkmode,$pass" = "prog,link"; then8041 elif test prog,link = "$linkmode,$pass"; then 6596 8042 compile_deplibs="$dir/$old_library $compile_deplibs" 6597 8043 finalize_deplibs="$dir/$old_library $finalize_deplibs" … … 6603 8049 6604 8050 6605 if test "$linkmode" = prog && test "$pass" != link; then8051 if test prog = "$linkmode" && test link != "$pass"; then 6606 8052 func_append newlib_search_path " $ladir" 6607 8053 deplibs="$lib $deplibs" 6608 8054 6609 linkalldeplibs= no6610 if test "$link_all_deplibs" != no|| test -z "$library_names" ||6611 test "$build_libtool_libs" = no; then6612 linkalldeplibs= yes8055 linkalldeplibs=false 8056 if test no != "$link_all_deplibs" || test -z "$library_names" || 8057 test no = "$build_libtool_libs"; then 8058 linkalldeplibs=: 6613 8059 fi 6614 8060 … … 6622 8068 esac 6623 8069 # Need to link against all dependency_libs? 6624 if test "$linkalldeplibs" = yes; then8070 if $linkalldeplibs; then 6625 8071 deplibs="$deplib $deplibs" 6626 8072 else … … 6629 8075 newdependency_libs="$deplib $newdependency_libs" 6630 8076 fi 6631 if $opt_preserve_dup_deps 8077 if $opt_preserve_dup_deps; then 6632 8078 case "$tmp_libs " in 6633 8079 *" $deplib "*) func_append specialdeplibs " $deplib" ;; … … 6639 8085 fi # $linkmode = prog... 6640 8086 6641 if test "$linkmode,$pass" = "prog,link"; then8087 if test prog,link = "$linkmode,$pass"; then 6642 8088 if test -n "$library_names" && 6643 { { test "$prefer_static_libs" = no||6644 test "$prefer_static_libs,$installed" = "built,yes"; } ||8089 { { test no = "$prefer_static_libs" || 8090 test built,yes = "$prefer_static_libs,$installed"; } || 6645 8091 test -z "$old_library"; }; then 6646 8092 # We need to hardcode the library path 6647 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" 8093 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then 6648 8094 # Make sure the rpath contains only unique directories. 6649 case "$temp_rpath:"in8095 case $temp_rpath: in 6650 8096 *"$absdir:"*) ;; 6651 8097 *) func_append temp_rpath "$absdir:" ;; … … 6676 8122 fi # $linkmode,$pass = prog,link... 6677 8123 6678 if test "$alldeplibs" = yes &&6679 { test "$deplibs_check_method" = pass_all||6680 { test "$build_libtool_libs" = yes&&8124 if $alldeplibs && 8125 { test pass_all = "$deplibs_check_method" || 8126 { test yes = "$build_libtool_libs" && 6681 8127 test -n "$library_names"; }; }; then 6682 8128 # We only need to search for static libraries … … 6687 8133 link_static=no # Whether the deplib will be linked statically 6688 8134 use_static_libs=$prefer_static_libs 6689 if test "$use_static_libs" = built && test "$installed" = yes; then8135 if test built = "$use_static_libs" && test yes = "$installed"; then 6690 8136 use_static_libs=no 6691 8137 fi 6692 8138 if test -n "$library_names" && 6693 { test "$use_static_libs" = no|| test -z "$old_library"; }; then8139 { test no = "$use_static_libs" || test -z "$old_library"; }; then 6694 8140 case $host in 6695 *cygwin* | *mingw* | *cegcc* )8141 *cygwin* | *mingw* | *cegcc* | *os2*) 6696 8142 # No point in relinking DLLs because paths are not encoded 6697 8143 func_append notinst_deplibs " $lib" … … 6699 8145 ;; 6700 8146 *) 6701 if test "$installed" = no; then8147 if test no = "$installed"; then 6702 8148 func_append notinst_deplibs " $lib" 6703 8149 need_relink=yes … … 6709 8155 # Warn about portability, can't link against -module's on some 6710 8156 # systems (darwin). Don't bleat about dlopened modules though! 6711 dlopenmodule= ""8157 dlopenmodule= 6712 8158 for dlpremoduletest in $dlprefiles; do 6713 8159 if test "X$dlpremoduletest" = "X$lib"; then 6714 dlopenmodule= "$dlpremoduletest"8160 dlopenmodule=$dlpremoduletest 6715 8161 break 6716 8162 fi 6717 8163 done 6718 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then6719 if test "$linkmode" != prog; then6720 echo6721 #$ECHO "*** Warning: Linking the executable $output against the loadable module"6722 #else6723 $ECHO "*** Warning: Linking the shared library $output against the loadable module"6724 $ECHO "*** $linklib is not portable!"6725 fi6726 fi6727 if test "$linkmode" = lib&&6728 test "$hardcode_into_libs" = yes; then8164 #if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then 8165 # echo 8166 # if test prog = "$linkmode"; then 8167 # $ECHO "*** Warning: Linking the executable $output against the loadable module" 8168 # else 8169 # $ECHO "*** Warning: Linking the shared library $output against the loadable module" 8170 # fi 8171 # $ECHO "*** $linklib is not portable!" 8172 #fi 8173 if test lib = "$linkmode" && 8174 test yes = "$hardcode_into_libs"; then 6729 8175 # Hardcode the library path. 6730 8176 # Skip directories that are in the system default run-time … … 6754 8200 set dummy $library_names 6755 8201 shift 6756 realname= "$1"8202 realname=$1 6757 8203 shift 6758 8204 libname=`eval "\\$ECHO \"$libname_spec\""` 6759 8205 # use dlname if we got it. it's perfectly good, no? 6760 8206 if test -n "$dlname"; then 6761 soname= "$dlname"8207 soname=$dlname 6762 8208 elif test -n "$soname_spec"; then 6763 8209 # bleh windows 6764 8210 case $host in 6765 *cygwin* | mingw* | *cegcc* )8211 *cygwin* | mingw* | *cegcc* | *os2*) 6766 8212 func_arith $current - $age 6767 8213 major=$func_arith_result 6768 versuffix= "-$major"8214 versuffix=-$major 6769 8215 ;; 6770 8216 esac 6771 8217 eval soname=\"$soname_spec\" 6772 8218 else 6773 soname= "$realname"8219 soname=$realname 6774 8220 fi 6775 8221 6776 8222 # Make a new name for the extract_expsyms_cmds to use 6777 soroot= "$soname"8223 soroot=$soname 6778 8224 func_basename "$soroot" 6779 soname= "$func_basename_result"8225 soname=$func_basename_result 6780 8226 func_stripname 'lib' '.dll' "$soname" 6781 8227 newlib=libimp-$func_stripname_result.a … … 6784 8230 if test -f "$output_objdir/$soname-def"; then : 6785 8231 else 6786 func_verbose "extracting exported symbol list from \`$soname'"8232 func_verbose "extracting exported symbol list from '$soname'" 6787 8233 func_execute_cmds "$extract_expsyms_cmds" 'exit $?' 6788 8234 fi … … 6790 8236 # Create $newlib 6791 8237 if test -f "$output_objdir/$newlib"; then :; else 6792 func_verbose "generating import library for \`$soname'"8238 func_verbose "generating import library for '$soname'" 6793 8239 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' 6794 8240 fi … … 6798 8244 fi # test -n "$old_archive_from_expsyms_cmds" 6799 8245 6800 if test "$linkmode" = prog || test "$opt_mode" != relink; then8246 if test prog = "$linkmode" || test relink != "$opt_mode"; then 6801 8247 add_shlibpath= 6802 8248 add_dir= … … 6805 8251 case $hardcode_action in 6806 8252 immediate | unsupported) 6807 if test "$hardcode_direct" = no; then6808 add= "$dir/$linklib"8253 if test no = "$hardcode_direct"; then 8254 add=$dir/$linklib 6809 8255 case $host in 6810 *-*-sco3.2v5.0.[024]*) add_dir= "-L$dir";;6811 *-*-sysv4*uw2*) add_dir= "-L$dir";;8256 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; 8257 *-*-sysv4*uw2*) add_dir=-L$dir ;; 6812 8258 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ 6813 *-*-unixware7*) add_dir= "-L$dir";;8259 *-*-unixware7*) add_dir=-L$dir ;; 6814 8260 *-*-darwin* ) 6815 # if the lib is a (non-dlopened) module then we can 8261 # if the lib is a (non-dlopened) module then we cannot 6816 8262 # link against it, someone is ignoring the earlier warnings 6817 8263 if /usr/bin/file -L $add 2> /dev/null | 6818 $GREP ": [^:]* bundle" >/dev/null 8264 $GREP ": [^:]* bundle" >/dev/null; then 6819 8265 if test "X$dlopenmodule" != "X$lib"; then 6820 8266 $ECHO "*** Warning: lib $linklib is a module, not a shared library" 6821 if test -z "$old_library" 8267 if test -z "$old_library"; then 6822 8268 echo 6823 8269 echo "*** And there doesn't seem to be a static archive available" 6824 8270 echo "*** The link will probably fail, sorry" 6825 8271 else 6826 add= "$dir/$old_library"8272 add=$dir/$old_library 6827 8273 fi 6828 8274 elif test -n "$old_library"; then 6829 add= "$dir/$old_library"8275 add=$dir/$old_library 6830 8276 fi 6831 8277 fi 6832 8278 esac 6833 elif test "$hardcode_minus_L" = no; then8279 elif test no = "$hardcode_minus_L"; then 6834 8280 case $host in 6835 *-*-sunos*) add_shlibpath= "$dir";;8281 *-*-sunos*) add_shlibpath=$dir ;; 6836 8282 esac 6837 add_dir= "-L$dir"6838 add= "-l$name"6839 elif test "$hardcode_shlibpath_var" = no; then6840 add_shlibpath= "$dir"6841 add= "-l$name"8283 add_dir=-L$dir 8284 add=-l$name 8285 elif test no = "$hardcode_shlibpath_var"; then 8286 add_shlibpath=$dir 8287 add=-l$name 6842 8288 else 6843 8289 lib_linked=no … … 6845 8291 ;; 6846 8292 relink) 6847 if test "$hardcode_direct" = yes&&6848 test "$hardcode_direct_absolute" = no; then6849 add= "$dir/$linklib"6850 elif test "$hardcode_minus_L" = yes; then6851 add_dir= "-L$absdir"8293 if test yes = "$hardcode_direct" && 8294 test no = "$hardcode_direct_absolute"; then 8295 add=$dir/$linklib 8296 elif test yes = "$hardcode_minus_L"; then 8297 add_dir=-L$absdir 6852 8298 # Try looking first in the location we're being installed to. 6853 8299 if test -n "$inst_prefix_dir"; then … … 6858 8304 esac 6859 8305 fi 6860 add= "-l$name"6861 elif test "$hardcode_shlibpath_var" = yes; then6862 add_shlibpath= "$dir"6863 add= "-l$name"8306 add=-l$name 8307 elif test yes = "$hardcode_shlibpath_var"; then 8308 add_shlibpath=$dir 8309 add=-l$name 6864 8310 else 6865 8311 lib_linked=no … … 6869 8315 esac 6870 8316 6871 if test "$lib_linked" != yes; then8317 if test yes != "$lib_linked"; then 6872 8318 func_fatal_configuration "unsupported hardcode properties" 6873 8319 fi … … 6879 8325 esac 6880 8326 fi 6881 if test "$linkmode" = prog; then8327 if test prog = "$linkmode"; then 6882 8328 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" 6883 8329 test -n "$add" && compile_deplibs="$add $compile_deplibs" … … 6885 8331 test -n "$add_dir" && deplibs="$add_dir $deplibs" 6886 8332 test -n "$add" && deplibs="$add $deplibs" 6887 if test "$hardcode_direct" != yes&&6888 test "$hardcode_minus_L" != yes&&6889 test "$hardcode_shlibpath_var" = yes; then8333 if test yes != "$hardcode_direct" && 8334 test yes != "$hardcode_minus_L" && 8335 test yes = "$hardcode_shlibpath_var"; then 6890 8336 case :$finalize_shlibpath: in 6891 8337 *":$libdir:"*) ;; … … 6896 8342 fi 6897 8343 6898 if test "$linkmode" = prog || test "$opt_mode" = relink; then8344 if test prog = "$linkmode" || test relink = "$opt_mode"; then 6899 8345 add_shlibpath= 6900 8346 add_dir= 6901 8347 add= 6902 8348 # Finalize command for both is simple: just hardcode it. 6903 if test "$hardcode_direct" = yes&&6904 test "$hardcode_direct_absolute" = no; then6905 add= "$libdir/$linklib"6906 elif test "$hardcode_minus_L" = yes; then6907 add_dir= "-L$libdir"6908 add= "-l$name"6909 elif test "$hardcode_shlibpath_var" = yes; then8349 if test yes = "$hardcode_direct" && 8350 test no = "$hardcode_direct_absolute"; then 8351 add=$libdir/$linklib 8352 elif test yes = "$hardcode_minus_L"; then 8353 add_dir=-L$libdir 8354 add=-l$name 8355 elif test yes = "$hardcode_shlibpath_var"; then 6910 8356 case :$finalize_shlibpath: in 6911 8357 *":$libdir:"*) ;; 6912 8358 *) func_append finalize_shlibpath "$libdir:" ;; 6913 8359 esac 6914 add= "-l$name"6915 elif test "$hardcode_automatic" = yes; then8360 add=-l$name 8361 elif test yes = "$hardcode_automatic"; then 6916 8362 if test -n "$inst_prefix_dir" && 6917 test -f "$inst_prefix_dir$libdir/$linklib" 6918 add= "$inst_prefix_dir$libdir/$linklib"8363 test -f "$inst_prefix_dir$libdir/$linklib"; then 8364 add=$inst_prefix_dir$libdir/$linklib 6919 8365 else 6920 add= "$libdir/$linklib"8366 add=$libdir/$linklib 6921 8367 fi 6922 8368 else 6923 8369 # We cannot seem to hardcode it, guess we'll fake it. 6924 add_dir= "-L$libdir"8370 add_dir=-L$libdir 6925 8371 # Try looking first in the location we're being installed to. 6926 8372 if test -n "$inst_prefix_dir"; then … … 6931 8377 esac 6932 8378 fi 6933 add= "-l$name"8379 add=-l$name 6934 8380 fi 6935 8381 6936 if test "$linkmode" = prog; then8382 if test prog = "$linkmode"; then 6937 8383 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" 6938 8384 test -n "$add" && finalize_deplibs="$add $finalize_deplibs" … … 6942 8388 fi 6943 8389 fi 6944 elif test "$linkmode" = prog; then8390 elif test prog = "$linkmode"; then 6945 8391 # Here we assume that one of hardcode_direct or hardcode_minus_L 6946 8392 # is not unsupported. This is valid on all known static and 6947 8393 # shared platforms. 6948 if test "$hardcode_direct" != unsupported; then6949 test -n "$old_library" && linklib= "$old_library"8394 if test unsupported != "$hardcode_direct"; then 8395 test -n "$old_library" && linklib=$old_library 6950 8396 compile_deplibs="$dir/$linklib $compile_deplibs" 6951 8397 finalize_deplibs="$dir/$linklib $finalize_deplibs" … … 6954 8400 finalize_deplibs="-l$name -L$dir $finalize_deplibs" 6955 8401 fi 6956 elif test "$build_libtool_libs" = yes; then8402 elif test yes = "$build_libtool_libs"; then 6957 8403 # Not a shared library 6958 if test "$deplibs_check_method" != pass_all; then8404 if test pass_all != "$deplibs_check_method"; then 6959 8405 # We're trying link a shared library against a static one 6960 8406 # but the system doesn't support it. … … 6963 8409 # that the program can be linked against the static library. 6964 8410 echo 6965 $ECHO "*** Warning: This system can 8411 $ECHO "*** Warning: This system cannot link to static lib archive $lib." 6966 8412 echo "*** I have the capability to make that library automatically link in when" 6967 8413 echo "*** you link to this library. But I can only do this if you have a" 6968 8414 echo "*** shared version of the library, which you do not appear to have." 6969 if test "$module" = yes; then8415 if test yes = "$module"; then 6970 8416 echo "*** But as you try to build a module library, libtool will still create " 6971 8417 echo "*** a static module, that should work as long as the dlopening application" … … 6974 8420 echo 6975 8421 echo "*** However, this would only work if libtool was able to extract symbol" 6976 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"8422 echo "*** lists from a program, using 'nm' or equivalent, but libtool could" 6977 8423 echo "*** not find such a program. So, this module is probably useless." 6978 echo "*** \`nm' from GNU binutils and a full rebuild may help."8424 echo "*** 'nm' from GNU binutils and a full rebuild may help." 6979 8425 fi 6980 if test "$build_old_libs" = no; then8426 if test no = "$build_old_libs"; then 6981 8427 build_libtool_libs=module 6982 8428 build_old_libs=yes … … 6991 8437 fi # link shared/static library? 6992 8438 6993 if test "$linkmode" = lib; then8439 if test lib = "$linkmode"; then 6994 8440 if test -n "$dependency_libs" && 6995 { test "$hardcode_into_libs" != yes||6996 test "$build_old_libs" = yes||6997 test "$link_static" = yes; }; then8441 { test yes != "$hardcode_into_libs" || 8442 test yes = "$build_old_libs" || 8443 test yes = "$link_static"; }; then 6998 8444 # Extract -R from dependency_libs 6999 8445 temp_deplibs= … … 7009 8455 esac 7010 8456 done 7011 dependency_libs= "$temp_deplibs"8457 dependency_libs=$temp_deplibs 7012 8458 fi 7013 8459 7014 8460 func_append newlib_search_path " $absdir" 7015 8461 # Link against this library 7016 test "$link_static" = no&& newdependency_libs="$abs_ladir/$laname $newdependency_libs"8462 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" 7017 8463 # ... and its dependency_libs 7018 8464 tmp_libs= … … 7024 8470 *) func_resolve_sysroot "$deplib" ;; 7025 8471 esac 7026 if $opt_preserve_dup_deps 8472 if $opt_preserve_dup_deps; then 7027 8473 case "$tmp_libs " in 7028 8474 *" $func_resolve_sysroot_result "*) … … 7033 8479 done 7034 8480 7035 if test "$link_all_deplibs" != no; then8481 if test no != "$link_all_deplibs"; then 7036 8482 # Add the search paths of all dependency libraries 7037 8483 for deplib in $dependency_libs; do 7038 8484 path= 7039 8485 case $deplib in 7040 -L*) path= "$deplib";;8486 -L*) path=$deplib ;; 7041 8487 *.la) 7042 8488 func_resolve_sysroot "$deplib" … … 7046 8492 # We need an absolute path. 7047 8493 case $dir in 7048 [\\/]* | [A-Za-z]:[\\/]*) absdir= "$dir";;8494 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; 7049 8495 *) 7050 8496 absdir=`cd "$dir" && pwd` 7051 8497 if test -z "$absdir"; then 7052 func_warning "cannot determine absolute directory name of \`$dir'"7053 absdir= "$dir"8498 func_warning "cannot determine absolute directory name of '$dir'" 8499 absdir=$dir 7054 8500 fi 7055 8501 ;; … … 7059 8505 *-*-darwin*) 7060 8506 depdepl= 7061 eval deplibrary_names=`$ {SED}-n -e 's/^library_names=\(.*\)$/\1/p' $deplib`7062 if test -n "$deplibrary_names" 7063 for tmp in $deplibrary_names 8507 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` 8508 if test -n "$deplibrary_names"; then 8509 for tmp in $deplibrary_names; do 7064 8510 depdepl=$tmp 7065 8511 done 7066 if test -f "$absdir/$objdir/$depdepl" 7067 depdepl= "$absdir/$objdir/$depdepl"7068 darwin_install_name=`$ {OTOOL}-L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`8512 if test -f "$absdir/$objdir/$depdepl"; then 8513 depdepl=$absdir/$objdir/$depdepl 8514 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` 7069 8515 if test -z "$darwin_install_name"; then 7070 darwin_install_name=`$ {OTOOL64}-L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`8516 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` 7071 8517 fi 7072 func_append compiler_flags " $ {wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"7073 func_append linker_flags " -dylib_file $ {darwin_install_name}:${depdepl}"8518 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" 8519 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" 7074 8520 path= 7075 8521 fi … … 7077 8523 ;; 7078 8524 *) 7079 path= "-L$absdir/$objdir"8525 path=-L$absdir/$objdir 7080 8526 ;; 7081 8527 esac 7082 8528 else 7083 eval libdir=`$ {SED}-n -e 's/^libdir=\(.*\)$/\1/p' $deplib`8529 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` 7084 8530 test -z "$libdir" && \ 7085 func_fatal_error " \`$deplib' is not a valid libtool archive"8531 func_fatal_error "'$deplib' is not a valid libtool archive" 7086 8532 test "$absdir" != "$libdir" && \ 7087 func_warning " \`$deplib' seems to be moved"7088 7089 path= "-L$absdir"8533 func_warning "'$deplib' seems to be moved" 8534 8535 path=-L$absdir 7090 8536 fi 7091 8537 ;; … … 7099 8545 fi # linkmode = lib 7100 8546 done # for deplib in $libs 7101 if test "$pass" = link; then7102 if test "$linkmode" = "prog"; then8547 if test link = "$pass"; then 8548 if test prog = "$linkmode"; then 7103 8549 compile_deplibs="$new_inherited_linker_flags $compile_deplibs" 7104 8550 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" … … 7107 8553 fi 7108 8554 fi 7109 dependency_libs= "$newdependency_libs"7110 if test "$pass" = dlpreopen; then8555 dependency_libs=$newdependency_libs 8556 if test dlpreopen = "$pass"; then 7111 8557 # Link the dlpreopened libraries before other libraries 7112 8558 for deplib in $save_deplibs; do … … 7114 8560 done 7115 8561 fi 7116 if test "$pass" != dlopen; then7117 if test "$pass" != conv; then8562 if test dlopen != "$pass"; then 8563 test conv = "$pass" || { 7118 8564 # Make sure lib_search_path contains only unique directories. 7119 8565 lib_search_path= … … 7125 8571 done 7126 8572 newlib_search_path= 7127 fi7128 7129 if test "$linkmode,$pass" != "prog,link"; then7130 vars=" deplibs"8573 } 8574 8575 if test prog,link = "$linkmode,$pass"; then 8576 vars="compile_deplibs finalize_deplibs" 7131 8577 else 7132 vars= "compile_deplibs finalize_deplibs"8578 vars=deplibs 7133 8579 fi 7134 8580 for var in $vars dependency_libs; do … … 7188 8634 done # for var 7189 8635 fi 8636 8637 # Add Sun CC postdeps if required: 8638 test CXX = "$tagname" && { 8639 case $host_os in 8640 linux*) 8641 case `$CC -V 2>&1 | sed 5q` in 8642 *Sun\ C*) # Sun C++ 5.9 8643 func_suncc_cstd_abi 8644 8645 if test no != "$suncc_use_cstd_abi"; then 8646 func_append postdeps ' -library=Cstd -library=Crun' 8647 fi 8648 ;; 8649 esac 8650 ;; 8651 8652 solaris*) 8653 func_cc_basename "$CC" 8654 case $func_cc_basename_result in 8655 CC* | sunCC*) 8656 func_suncc_cstd_abi 8657 8658 if test no != "$suncc_use_cstd_abi"; then 8659 func_append postdeps ' -library=Cstd -library=Crun' 8660 fi 8661 ;; 8662 esac 8663 ;; 8664 esac 8665 } 8666 7190 8667 # Last step: remove runtime libs from dependency_libs 7191 8668 # (they stay in deplibs) 7192 8669 tmp_libs= 7193 for i in $dependency_libs 8670 for i in $dependency_libs; do 7194 8671 case " $predeps $postdeps $compiler_lib_search_path " in 7195 8672 *" $i "*) 7196 i= ""8673 i= 7197 8674 ;; 7198 8675 esac 7199 if test -n "$i" 8676 if test -n "$i"; then 7200 8677 func_append tmp_libs " $i" 7201 8678 fi … … 7203 8680 dependency_libs=$tmp_libs 7204 8681 done # for pass 7205 if test "$linkmode" = prog; then7206 dlfiles= "$newdlfiles"8682 if test prog = "$linkmode"; then 8683 dlfiles=$newdlfiles 7207 8684 fi 7208 if test "$linkmode" = prog || test "$linkmode" = lib; then7209 dlprefiles= "$newdlprefiles"8685 if test prog = "$linkmode" || test lib = "$linkmode"; then 8686 dlprefiles=$newdlprefiles 7210 8687 fi 7211 8688 7212 8689 case $linkmode in 7213 8690 oldlib) 7214 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then7215 func_warning " \`-dlopen' is ignored for archives"8691 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then 8692 func_warning "'-dlopen' is ignored for archives" 7216 8693 fi 7217 8694 7218 8695 case " $deplibs" in 7219 8696 *\ -l* | *\ -L*) 7220 func_warning " \`-l' and \`-L' are ignored for archives" ;;8697 func_warning "'-l' and '-L' are ignored for archives" ;; 7221 8698 esac 7222 8699 7223 8700 test -n "$rpath" && \ 7224 func_warning " \`-rpath' is ignored for archives"8701 func_warning "'-rpath' is ignored for archives" 7225 8702 7226 8703 test -n "$xrpath" && \ 7227 func_warning " \`-R' is ignored for archives"8704 func_warning "'-R' is ignored for archives" 7228 8705 7229 8706 test -n "$vinfo" && \ 7230 func_warning " \`-version-info/-version-number' is ignored for archives"8707 func_warning "'-version-info/-version-number' is ignored for archives" 7231 8708 7232 8709 test -n "$release" && \ 7233 func_warning " \`-release' is ignored for archives"8710 func_warning "'-release' is ignored for archives" 7234 8711 7235 8712 test -n "$export_symbols$export_symbols_regex" && \ 7236 func_warning " \`-export-symbols' is ignored for archives"8713 func_warning "'-export-symbols' is ignored for archives" 7237 8714 7238 8715 # Now set the variables for building old libraries. 7239 8716 build_libtool_libs=no 7240 oldlibs= "$output"8717 oldlibs=$output 7241 8718 func_append objs "$old_deplibs" 7242 8719 ;; 7243 8720 7244 8721 lib) 7245 # Make sure we only generate libraries of the form `libNAME.la'.8722 # Make sure we only generate libraries of the form 'libNAME.la'. 7246 8723 case $outputname in 7247 8724 lib*) … … 7252 8729 ;; 7253 8730 *) 7254 test "$module" = no &&\7255 func_fatal_help "libtool library \`$output' must begin with \`lib'"7256 7257 if test "$need_lib_prefix" != no; then8731 test no = "$module" \ 8732 && func_fatal_help "libtool library '$output' must begin with 'lib'" 8733 8734 if test no != "$need_lib_prefix"; then 7258 8735 # Add the "lib" prefix for modules if required 7259 8736 func_stripname '' '.la' "$outputname" … … 7269 8746 7270 8747 if test -n "$objs"; then 7271 if test "$deplibs_check_method" != pass_all; then7272 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"8748 if test pass_all != "$deplibs_check_method"; then 8749 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" 7273 8750 else 7274 8751 echo … … 7279 8756 fi 7280 8757 7281 test "$dlself" != no &&\7282 func_warning "\`-dlopen self' is ignored for libtool libraries"8758 test no = "$dlself" \ 8759 || func_warning "'-dlopen self' is ignored for libtool libraries" 7283 8760 7284 8761 set dummy $rpath 7285 8762 shift 7286 test "$#" -gt 1 &&\7287 func_warning "ignoring multiple \`-rpath's for a libtool library"7288 7289 install_libdir= "$1"8763 test 1 -lt "$#" \ 8764 && func_warning "ignoring multiple '-rpath's for a libtool library" 8765 8766 install_libdir=$1 7290 8767 7291 8768 oldlibs= 7292 8769 if test -z "$rpath"; then 7293 if test "$build_libtool_libs" = yes; then8770 if test yes = "$build_libtool_libs"; then 7294 8771 # Building a libtool convenience library. 7295 # Some compilers have problems with a `.al' extension so8772 # Some compilers have problems with a '.al' extension so 7296 8773 # convenience libraries should have the same extension an 7297 8774 # archive normally would. … … 7302 8779 7303 8780 test -n "$vinfo" && \ 7304 func_warning " \`-version-info/-version-number' is ignored for convenience libraries"8781 func_warning "'-version-info/-version-number' is ignored for convenience libraries" 7305 8782 7306 8783 test -n "$release" && \ 7307 func_warning " \`-release' is ignored for convenience libraries"8784 func_warning "'-release' is ignored for convenience libraries" 7308 8785 else 7309 8786 7310 8787 # Parse the version information argument. 7311 save_ifs= "$IFS"; IFS=':'8788 save_ifs=$IFS; IFS=: 7312 8789 set dummy $vinfo 0 0 0 7313 8790 shift 7314 IFS= "$save_ifs"8791 IFS=$save_ifs 7315 8792 7316 8793 test -n "$7" && \ 7317 func_fatal_help "too many parameters to \`-version-info'"8794 func_fatal_help "too many parameters to '-version-info'" 7318 8795 7319 8796 # convert absolute version numbers to libtool ages … … 7323 8800 case $vinfo_number in 7324 8801 yes) 7325 number_major= "$1"7326 number_minor= "$2"7327 number_revision= "$3"8802 number_major=$1 8803 number_minor=$2 8804 number_revision=$3 7328 8805 # 7329 8806 # There are really only two kinds -- those that … … 7331 8808 # and those that subtract age and use age as 7332 8809 # a minor version. But, then there is irix 7333 # whichhas an extra 1 added just for fun8810 # that has an extra 1 added just for fun 7334 8811 # 7335 8812 case $version_type in 7336 8813 # correct linux to gnu/linux during the next big refactor 7337 darwin| linux|osf|windows|none)8814 darwin|freebsd-elf|linux|osf|windows|none) 7338 8815 func_arith $number_major + $number_minor 7339 8816 current=$func_arith_result 7340 age= "$number_minor"7341 revision= "$number_revision"8817 age=$number_minor 8818 revision=$number_revision 7342 8819 ;; 7343 freebsd-aout| freebsd-elf|qnx|sunos)7344 current= "$number_major"7345 revision= "$number_minor"7346 age= "0"8820 freebsd-aout|qnx|sunos) 8821 current=$number_major 8822 revision=$number_minor 8823 age=0 7347 8824 ;; 7348 8825 irix|nonstopux) 7349 8826 func_arith $number_major + $number_minor 7350 8827 current=$func_arith_result 7351 age= "$number_minor"7352 revision= "$number_minor"8828 age=$number_minor 8829 revision=$number_minor 7353 8830 lt_irix_increment=no 7354 8831 ;; 7355 8832 *) 7356 func_fatal_configuration "$modename: unknown library version type \`$version_type'"8833 func_fatal_configuration "$modename: unknown library version type '$version_type'" 7357 8834 ;; 7358 8835 esac 7359 8836 ;; 7360 8837 no) 7361 current= "$1"7362 revision= "$2"7363 age= "$3"8838 current=$1 8839 revision=$2 8840 age=$3 7364 8841 ;; 7365 8842 esac … … 7369 8846 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; 7370 8847 *) 7371 func_error "CURRENT \`$current' must be a nonnegative integer"7372 func_fatal_error " \`$vinfo' is not valid version information"8848 func_error "CURRENT '$current' must be a nonnegative integer" 8849 func_fatal_error "'$vinfo' is not valid version information" 7373 8850 ;; 7374 8851 esac … … 7377 8854 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; 7378 8855 *) 7379 func_error "REVISION \`$revision' must be a nonnegative integer"7380 func_fatal_error " \`$vinfo' is not valid version information"8856 func_error "REVISION '$revision' must be a nonnegative integer" 8857 func_fatal_error "'$vinfo' is not valid version information" 7381 8858 ;; 7382 8859 esac … … 7385 8862 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; 7386 8863 *) 7387 func_error "AGE \`$age' must be a nonnegative integer"7388 func_fatal_error " \`$vinfo' is not valid version information"8864 func_error "AGE '$age' must be a nonnegative integer" 8865 func_fatal_error "'$vinfo' is not valid version information" 7389 8866 ;; 7390 8867 esac 7391 8868 7392 8869 if test "$age" -gt "$current"; then 7393 func_error "AGE \`$age' is greater than the current interface number \`$current'"7394 func_fatal_error " \`$vinfo' is not valid version information"8870 func_error "AGE '$age' is greater than the current interface number '$current'" 8871 func_fatal_error "'$vinfo' is not valid version information" 7395 8872 fi 7396 8873 … … 7407 8884 func_arith $current - $age 7408 8885 major=.$func_arith_result 7409 versuffix= "$major.$age.$revision"8886 versuffix=$major.$age.$revision 7410 8887 # Darwin ld doesn't like 0 for these options... 7411 8888 func_arith $current + 1 7412 8889 minor_current=$func_arith_result 7413 xlcverstring="$ {wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"8890 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" 7414 8891 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" 8892 # On Darwin other compilers 8893 case $CC in 8894 nagfor*) 8895 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" 8896 ;; 8897 *) 8898 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" 8899 ;; 8900 esac 7415 8901 ;; 7416 8902 7417 8903 freebsd-aout) 7418 major= ".$current"7419 versuffix= ".$current.$revision";8904 major=.$current 8905 versuffix=.$current.$revision 7420 8906 ;; 7421 8907 7422 8908 freebsd-elf) 7423 major=".$current" 7424 versuffix=".$current" 8909 func_arith $current - $age 8910 major=.$func_arith_result 8911 versuffix=$major.$age.$revision 7425 8912 ;; 7426 8913 7427 8914 irix | nonstopux) 7428 if test "X$lt_irix_increment" = "Xno"; then8915 if test no = "$lt_irix_increment"; then 7429 8916 func_arith $current - $age 7430 8917 else … … 7437 8924 *) verstring_prefix=sgi ;; 7438 8925 esac 7439 verstring= "$verstring_prefix$major.$revision"8926 verstring=$verstring_prefix$major.$revision 7440 8927 7441 8928 # Add in all the interfaces that we are compatible with. 7442 8929 loop=$revision 7443 while test "$loop" -ne 0; do8930 while test 0 -ne "$loop"; do 7444 8931 func_arith $revision - $loop 7445 8932 iface=$func_arith_result 7446 8933 func_arith $loop - 1 7447 8934 loop=$func_arith_result 7448 verstring= "$verstring_prefix$major.$iface:$verstring"8935 verstring=$verstring_prefix$major.$iface:$verstring 7449 8936 done 7450 8937 7451 # Before this point, $major must not contain `.'.8938 # Before this point, $major must not contain '.'. 7452 8939 major=.$major 7453 versuffix= "$major.$revision"8940 versuffix=$major.$revision 7454 8941 ;; 7455 8942 … … 7457 8944 func_arith $current - $age 7458 8945 major=.$func_arith_result 7459 versuffix= "$major.$age.$revision"8946 versuffix=$major.$age.$revision 7460 8947 ;; 7461 8948 … … 7463 8950 func_arith $current - $age 7464 8951 major=.$func_arith_result 7465 versuffix= ".$current.$age.$revision"7466 verstring= "$current.$age.$revision"8952 versuffix=.$current.$age.$revision 8953 verstring=$current.$age.$revision 7467 8954 7468 8955 # Add in all the interfaces that we are compatible with. 7469 8956 loop=$age 7470 while test "$loop" -ne 0; do8957 while test 0 -ne "$loop"; do 7471 8958 func_arith $current - $loop 7472 8959 iface=$func_arith_result 7473 8960 func_arith $loop - 1 7474 8961 loop=$func_arith_result 7475 verstring= "$verstring:${iface}.0"8962 verstring=$verstring:$iface.0 7476 8963 done 7477 8964 7478 8965 # Make executables depend on our current version. 7479 func_append verstring ":$ {current}.0"8966 func_append verstring ":$current.0" 7480 8967 ;; 7481 8968 7482 8969 qnx) 7483 major= ".$current"7484 versuffix= ".$current"8970 major=.$current 8971 versuffix=.$current 7485 8972 ;; 7486 8973 8974 sco) 8975 major=.$current 8976 versuffix=.$current 8977 ;; 8978 7487 8979 sunos) 7488 major= ".$current"7489 versuffix= ".$current.$revision"8980 major=.$current 8981 versuffix=.$current.$revision 7490 8982 ;; 7491 8983 7492 8984 windows) 7493 8985 # Use '-' rather than '.', since we only want one 7494 # extension on DOS 8.3 file systems.8986 # extension on DOS 8.3 file systems. 7495 8987 func_arith $current - $age 7496 8988 major=$func_arith_result 7497 versuffix= "-$major"8989 versuffix=-$major 7498 8990 ;; 7499 8991 7500 8992 *) 7501 func_fatal_configuration "unknown library version type \`$version_type'"8993 func_fatal_configuration "unknown library version type '$version_type'" 7502 8994 ;; 7503 8995 esac … … 7513 9005 ;; 7514 9006 *) 7515 verstring= "0.0"9007 verstring=0.0 7516 9008 ;; 7517 9009 esac 7518 if test "$need_version" = no; then9010 if test no = "$need_version"; then 7519 9011 versuffix= 7520 9012 else 7521 versuffix= ".0.0"9013 versuffix=.0.0 7522 9014 fi 7523 9015 fi 7524 9016 7525 9017 # Remove version info from name if versioning should be avoided 7526 if test "$avoid_version" = yes && test "$need_version" = no; then9018 if test yes,no = "$avoid_version,$need_version"; then 7527 9019 major= 7528 9020 versuffix= 7529 verstring= ""9021 verstring= 7530 9022 fi 7531 9023 7532 9024 # Check to see if the archive will have undefined symbols. 7533 if test "$allow_undefined" = yes; then 7534 if test "$allow_undefined_flag" = unsupported; then 7535 func_warning "undefined symbols not allowed in $host shared libraries" 7536 build_libtool_libs=no 7537 build_old_libs=yes 9025 if test yes = "$allow_undefined"; then 9026 if test unsupported = "$allow_undefined_flag"; then 9027 if test yes = "$build_old_libs"; then 9028 func_warning "undefined symbols not allowed in $host shared libraries; building static only" 9029 build_libtool_libs=no 9030 else 9031 func_fatal_error "can't build $host shared library unless -no-undefined is specified" 9032 fi 7538 9033 fi 7539 9034 else 7540 9035 # Don't allow undefined symbols. 7541 allow_undefined_flag= "$no_undefined_flag"9036 allow_undefined_flag=$no_undefined_flag 7542 9037 fi 7543 9038 7544 9039 fi 7545 9040 7546 func_generate_dlsyms "$libname" "$libname" "yes"9041 func_generate_dlsyms "$libname" "$libname" : 7547 9042 func_append libobjs " $symfileobj" 7548 test " X$libobjs" = "X" && libobjs=7549 7550 if test "$opt_mode" != relink; then9043 test " " = "$libobjs" && libobjs= 9044 9045 if test relink != "$opt_mode"; then 7551 9046 # Remove our outputs, but don't remove object files since they 7552 9047 # may have been created when compiling PIC objects. … … 7557 9052 *.$objext | *.gcno) 7558 9053 ;; 7559 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$ {libname}${release}.*)7560 if test "X$precious_files_regex" != "X"; then9054 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) 9055 if test -n "$precious_files_regex"; then 7561 9056 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 7562 9057 then … … 7574 9069 7575 9070 # Now set the variables for building old libraries. 7576 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience; then9071 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then 7577 9072 func_append oldlibs " $output_objdir/$libname.$libext" 7578 9073 7579 9074 # Transform .lo files to .o files. 7580 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$ {libext}$/d; $lo2o" | $NL2SP`9075 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` 7581 9076 fi 7582 9077 … … 7599 9094 esac 7600 9095 done 7601 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then9096 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then 7602 9097 dependency_libs="$temp_xrpath $dependency_libs" 7603 9098 fi … … 7605 9100 7606 9101 # Make sure dlfiles contains only unique files that won't be dlpreopened 7607 old_dlfiles= "$dlfiles"9102 old_dlfiles=$dlfiles 7608 9103 dlfiles= 7609 9104 for lib in $old_dlfiles; do … … 7615 9110 7616 9111 # Make sure dlprefiles contains only unique files 7617 old_dlprefiles= "$dlprefiles"9112 old_dlprefiles=$dlprefiles 7618 9113 dlprefiles= 7619 9114 for lib in $old_dlprefiles; do … … 7624 9119 done 7625 9120 7626 if test "$build_libtool_libs" = yes; then9121 if test yes = "$build_libtool_libs"; then 7627 9122 if test -n "$rpath"; then 7628 9123 case $host in … … 7648 9143 *) 7649 9144 # Add libc to deplibs on all other systems if necessary. 7650 if test "$build_libtool_need_lc" = "yes"; then9145 if test yes = "$build_libtool_need_lc"; then 7651 9146 func_append deplibs " -lc" 7652 9147 fi … … 7664 9159 # release should show up in the -l (ie -lgmp5) so we don't want to 7665 9160 # add it in twice. Is that correct? 7666 release= ""7667 versuffix= ""7668 major= ""9161 release= 9162 versuffix= 9163 major= 7669 9164 newdeplibs= 7670 9165 droppeddeps=no … … 7695 9190 func_stripname -l '' "$i" 7696 9191 name=$func_stripname_result 7697 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes"; then9192 if test yes = "$allow_libtool_libs_with_static_runtimes"; then 7698 9193 case " $predeps $postdeps " in 7699 9194 *" $i "*) 7700 9195 func_append newdeplibs " $i" 7701 i= ""9196 i= 7702 9197 ;; 7703 9198 esac 7704 9199 fi 7705 if test -n "$i" 9200 if test -n "$i"; then 7706 9201 libname=`eval "\\$ECHO \"$libname_spec\""` 7707 9202 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` 7708 9203 set dummy $deplib_matches; shift 7709 9204 deplib_match=$1 7710 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 9205 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then 7711 9206 func_append newdeplibs " $i" 7712 9207 else … … 7738 9233 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then 7739 9234 ldd_output=`ldd conftest` 7740 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes"; then9235 if test yes = "$allow_libtool_libs_with_static_runtimes"; then 7741 9236 case " $predeps $postdeps " in 7742 9237 *" $i "*) 7743 9238 func_append newdeplibs " $i" 7744 i= ""9239 i= 7745 9240 ;; 7746 9241 esac 7747 9242 fi 7748 if test -n "$i" 9243 if test -n "$i"; then 7749 9244 libname=`eval "\\$ECHO \"$libname_spec\""` 7750 9245 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` 7751 9246 set dummy $deplib_matches; shift 7752 9247 deplib_match=$1 7753 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 9248 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then 7754 9249 func_append newdeplibs " $i" 7755 9250 else … … 7788 9283 func_stripname -l '' "$a_deplib" 7789 9284 name=$func_stripname_result 7790 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes"; then9285 if test yes = "$allow_libtool_libs_with_static_runtimes"; then 7791 9286 case " $predeps $postdeps " in 7792 9287 *" $a_deplib "*) 7793 9288 func_append newdeplibs " $a_deplib" 7794 a_deplib= ""9289 a_deplib= 7795 9290 ;; 7796 9291 esac 7797 9292 fi 7798 if test -n "$a_deplib" 9293 if test -n "$a_deplib"; then 7799 9294 libname=`eval "\\$ECHO \"$libname_spec\""` 7800 9295 if test -n "$file_magic_glob"; then … … 7803 9298 libnameglob=$libname 7804 9299 fi 7805 test "$want_nocaseglob" = yes&& nocaseglob=`shopt -p nocaseglob`9300 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob` 7806 9301 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do 7807 if test "$want_nocaseglob" = yes; then9302 if test yes = "$want_nocaseglob"; then 7808 9303 shopt -s nocaseglob 7809 9304 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` … … 7823 9318 # loop can be closed while we follow links, 7824 9319 # but so what? 7825 potlib= "$potent_lib"9320 potlib=$potent_lib 7826 9321 while test -h "$potlib" 2>/dev/null; do 7827 potliblink=`ls -ld $potlib | $ {SED}'s/.* -> //'`9322 potliblink=`ls -ld $potlib | $SED 's/.* -> //'` 7828 9323 case $potliblink in 7829 [\\/]* | [A-Za-z]:[\\/]*) potlib= "$potliblink";;7830 *) potlib=`$ECHO "$potlib" | $SED 's ,[^/]*$,,'`"$potliblink";;9324 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; 9325 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; 7831 9326 esac 7832 9327 done … … 7835 9330 $EGREP "$file_magic_regex" > /dev/null; then 7836 9331 func_append newdeplibs " $a_deplib" 7837 a_deplib= ""9332 a_deplib= 7838 9333 break 2 7839 9334 fi … … 7841 9336 done 7842 9337 fi 7843 if test -n "$a_deplib" 9338 if test -n "$a_deplib"; then 7844 9339 droppeddeps=yes 7845 9340 echo … … 7849 9344 echo "*** shared version of the library, which you do not appear to have" 7850 9345 echo "*** because I did check the linker path looking for a file starting" 7851 if test -z "$potlib" 9346 if test -z "$potlib"; then 7852 9347 $ECHO "*** with $libname but no candidates were found. (...for file magic test)" 7853 9348 else … … 7872 9367 func_stripname -l '' "$a_deplib" 7873 9368 name=$func_stripname_result 7874 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes"; then9369 if test yes = "$allow_libtool_libs_with_static_runtimes"; then 7875 9370 case " $predeps $postdeps " in 7876 9371 *" $a_deplib "*) 7877 9372 func_append newdeplibs " $a_deplib" 7878 a_deplib= ""9373 a_deplib= 7879 9374 ;; 7880 9375 esac 7881 9376 fi 7882 if test -n "$a_deplib" 9377 if test -n "$a_deplib"; then 7883 9378 libname=`eval "\\$ECHO \"$libname_spec\""` 7884 9379 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do 7885 9380 potential_libs=`ls $i/$libname[.-]* 2>/dev/null` 7886 9381 for potent_lib in $potential_libs; do 7887 potlib= "$potent_lib"# see symlink-check above in file_magic test9382 potlib=$potent_lib # see symlink-check above in file_magic test 7888 9383 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ 7889 9384 $EGREP "$match_pattern_regex" > /dev/null; then 7890 9385 func_append newdeplibs " $a_deplib" 7891 a_deplib= ""9386 a_deplib= 7892 9387 break 2 7893 9388 fi … … 7895 9390 done 7896 9391 fi 7897 if test -n "$a_deplib" 9392 if test -n "$a_deplib"; then 7898 9393 droppeddeps=yes 7899 9394 echo … … 7903 9398 echo "*** shared version of the library, which you do not appear to have" 7904 9399 echo "*** because I did check the linker path looking for a file starting" 7905 if test -z "$potlib" 9400 if test -z "$potlib"; then 7906 9401 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" 7907 9402 else … … 7919 9414 ;; 7920 9415 none | unknown | *) 7921 newdeplibs= ""9416 newdeplibs= 7922 9417 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` 7923 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes"; then7924 for i in $predeps $postdeps 9418 if test yes = "$allow_libtool_libs_with_static_runtimes"; then 9419 for i in $predeps $postdeps; do 7925 9420 # can't use Xsed below, because $i might contain '/' 7926 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s ,$i,,"`9421 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` 7927 9422 done 7928 9423 fi … … 7930 9425 *[!\ \ ]*) 7931 9426 echo 7932 if test "X$deplibs_check_method" = "Xnone"; then9427 if test none = "$deplibs_check_method"; then 7933 9428 echo "*** Warning: inter-library dependencies are not supported in this platform." 7934 9429 else … … 7954 9449 esac 7955 9450 7956 if test "$droppeddeps" = yes; then7957 if test "$module" = yes; then9451 if test yes = "$droppeddeps"; then 9452 if test yes = "$module"; then 7958 9453 echo 7959 9454 echo "*** Warning: libtool could not satisfy all declared inter-library" … … 7964 9459 echo 7965 9460 echo "*** However, this would only work if libtool was able to extract symbol" 7966 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"9461 echo "*** lists from a program, using 'nm' or equivalent, but libtool could" 7967 9462 echo "*** not find such a program. So, this module is probably useless." 7968 echo "*** \`nm' from GNU binutils and a full rebuild may help."9463 echo "*** 'nm' from GNU binutils and a full rebuild may help." 7969 9464 fi 7970 if test "$build_old_libs" = no; then7971 oldlibs= "$output_objdir/$libname.$libext"9465 if test no = "$build_old_libs"; then 9466 oldlibs=$output_objdir/$libname.$libext 7972 9467 build_libtool_libs=module 7973 9468 build_old_libs=yes … … 7980 9475 echo "*** or is declared to -dlopen it." 7981 9476 7982 if test "$allow_undefined" = no; then9477 if test no = "$allow_undefined"; then 7983 9478 echo 7984 9479 echo "*** Since this library must not contain undefined symbols," … … 7986 9481 echo "*** it was explicitly requested with -no-undefined," 7987 9482 echo "*** libtool will only create a static version of it." 7988 if test "$build_old_libs" = no; then7989 oldlibs= "$output_objdir/$libname.$libext"9483 if test no = "$build_old_libs"; then 9484 oldlibs=$output_objdir/$libname.$libext 7990 9485 build_libtool_libs=module 7991 9486 build_old_libs=yes … … 8033 9528 esac 8034 9529 done 8035 deplibs= "$new_libs"9530 deplibs=$new_libs 8036 9531 8037 9532 # All the library-specific variables (install_libdir is set above). … … 8041 9536 8042 9537 # Test again, we may have decided not to build it any more 8043 if test "$build_libtool_libs" = yes; then8044 # Remove $ {wl}instances when linking with ld.9538 if test yes = "$build_libtool_libs"; then 9539 # Remove $wl instances when linking with ld. 8045 9540 # FIXME: should test the right _cmds variable. 8046 9541 case $archive_cmds in 8047 9542 *\$LD\ *) wl= ;; 8048 9543 esac 8049 if test "$hardcode_into_libs" = yes; then9544 if test yes = "$hardcode_into_libs"; then 8050 9545 # Hardcode the library paths 8051 9546 hardcode_libdirs= 8052 9547 dep_rpath= 8053 rpath= "$finalize_rpath"8054 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"9548 rpath=$finalize_rpath 9549 test relink = "$opt_mode" || rpath=$compile_rpath$rpath 8055 9550 for libdir in $rpath; do 8056 9551 if test -n "$hardcode_libdir_flag_spec"; then … … 8059 9554 libdir=$func_replace_sysroot_result 8060 9555 if test -z "$hardcode_libdirs"; then 8061 hardcode_libdirs= "$libdir"9556 hardcode_libdirs=$libdir 8062 9557 else 8063 9558 # Just accumulate the unique libdirs. … … 8084 9579 if test -n "$hardcode_libdir_separator" && 8085 9580 test -n "$hardcode_libdirs"; then 8086 libdir= "$hardcode_libdirs"9581 libdir=$hardcode_libdirs 8087 9582 eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" 8088 9583 fi … … 8098 9593 fi 8099 9594 8100 shlibpath= "$finalize_shlibpath"8101 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"9595 shlibpath=$finalize_shlibpath 9596 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath 8102 9597 if test -n "$shlibpath"; then 8103 9598 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" … … 8109 9604 set dummy $library_names 8110 9605 shift 8111 realname= "$1"9606 realname=$1 8112 9607 shift 8113 9608 … … 8115 9610 eval soname=\"$soname_spec\" 8116 9611 else 8117 soname= "$realname"9612 soname=$realname 8118 9613 fi 8119 9614 if test -z "$dlname"; then … … 8121 9616 fi 8122 9617 8123 lib= "$output_objdir/$realname"9618 lib=$output_objdir/$realname 8124 9619 linknames= 8125 9620 for link … … 8135 9630 if test -n "$export_symbols" && test -n "$include_expsyms"; then 8136 9631 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" 8137 export_symbols= "$output_objdir/$libname.uexp"9632 export_symbols=$output_objdir/$libname.uexp 8138 9633 func_append delfiles " $export_symbols" 8139 9634 fi … … 8144 9639 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then 8145 9640 # exporting using user supplied symfile 8146 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then9641 func_dll_def_p "$export_symbols" || { 8147 9642 # and it's NOT already a .def file. Must figure out 8148 9643 # which of the given symbols are data symbols and tag … … 8151 9646 # the list of exported symbols" if statement, so the 8152 9647 # include_expsyms logic still works. 8153 orig_export_symbols= "$export_symbols"9648 orig_export_symbols=$export_symbols 8154 9649 export_symbols= 8155 9650 always_export_symbols=yes 8156 fi9651 } 8157 9652 fi 8158 9653 ;; … … 8161 9656 # Prepare the list of exported symbols 8162 9657 if test -z "$export_symbols"; then 8163 if test "$always_export_symbols" = yes|| test -n "$export_symbols_regex"; then8164 func_verbose "generating symbol list for \`$libname.la'"8165 export_symbols= "$output_objdir/$libname.exp"9658 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then 9659 func_verbose "generating symbol list for '$libname.la'" 9660 export_symbols=$output_objdir/$libname.exp 8166 9661 $opt_dry_run || $RM $export_symbols 8167 9662 cmds=$export_symbols_cmds 8168 save_ifs= "$IFS"; IFS='~'9663 save_ifs=$IFS; IFS='~' 8169 9664 for cmd1 in $cmds; do 8170 IFS= "$save_ifs"9665 IFS=$save_ifs 8171 9666 # Take the normal branch if the nm_file_list_spec branch 8172 9667 # doesn't work or if tool conversion is not needed. … … 8182 9677 ;; 8183 9678 esac 8184 if test "$try_normal_branch" = yes\9679 if test yes = "$try_normal_branch" \ 8185 9680 && { test "$len" -lt "$max_cmd_len" \ 8186 9681 || test "$max_cmd_len" -le -1; } … … 8193 9688 save_libobjs=$libobjs 8194 9689 save_output=$output 8195 output=$ {output_objdir}/${output_la}.nm9690 output=$output_objdir/$output_la.nm 8196 9691 func_to_tool_file "$output" 8197 9692 libobjs=$nm_file_list_spec$func_to_tool_file_result … … 8216 9711 fi 8217 9712 done 8218 IFS= "$save_ifs"8219 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then9713 IFS=$save_ifs 9714 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then 8220 9715 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' 8221 9716 func_show_eval '$MV "${export_symbols}T" "$export_symbols"' … … 8225 9720 8226 9721 if test -n "$export_symbols" && test -n "$include_expsyms"; then 8227 tmp_export_symbols= "$export_symbols"8228 test -n "$orig_export_symbols" && tmp_export_symbols= "$orig_export_symbols"9722 tmp_export_symbols=$export_symbols 9723 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols 8229 9724 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' 8230 9725 fi 8231 9726 8232 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then9727 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then 8233 9728 # The given exports_symbols file has to be filtered, so filter it. 8234 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"9729 func_verbose "filter symbol list for '$libname.la' to tag DATA exports" 8235 9730 # FIXME: $output_objdir/$libname.filter potentially contains lots of 8236 # 's' commands which not all seds can handle. GNU sed should be fine9731 # 's' commands, which not all seds can handle. GNU sed should be fine 8237 9732 # though. Also, the filter scales superlinearly with the number of 8238 9733 # global variables. join(1) would be nice here, but unfortunately … … 8253 9748 esac 8254 9749 done 8255 deplibs= "$tmp_deplibs"9750 deplibs=$tmp_deplibs 8256 9751 8257 9752 if test -n "$convenience"; then 8258 9753 if test -n "$whole_archive_flag_spec" && 8259 test "$compiler_needs_object" = yes&&9754 test yes = "$compiler_needs_object" && 8260 9755 test -z "$libobjs"; then 8261 9756 # extract the archives, so we have objects to list. … … 8268 9763 test "X$libobjs" = "X " && libobjs= 8269 9764 else 8270 gentop= "$output_objdir/${outputname}x"9765 gentop=$output_objdir/${outputname}x 8271 9766 func_append generated " $gentop" 8272 9767 … … 8277 9772 fi 8278 9773 8279 if test "$thread_safe" = yes&& test -n "$thread_safe_flag_spec"; then9774 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then 8280 9775 eval flag=\"$thread_safe_flag_spec\" 8281 9776 func_append linker_flags " $flag" … … 8283 9778 8284 9779 # Make a backup of the uninstalled library when relinking 8285 if test "$opt_mode" = relink; then9780 if test relink = "$opt_mode"; then 8286 9781 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? 8287 9782 fi 8288 9783 8289 9784 # Do each of the archive commands. 8290 if test "$module" = yes && test -n "$module_cmds"; then9785 if test yes = "$module" && test -n "$module_cmds"; then 8291 9786 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then 8292 9787 eval test_cmds=\"$module_expsym_cmds\" … … 8306 9801 fi 8307 9802 8308 if test "X$skipped_export" != "X:" &&9803 if test : != "$skipped_export" && 8309 9804 func_len " $test_cmds" && 8310 9805 len=$func_len_result && … … 8339 9834 k=1 8340 9835 8341 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then8342 output=$ {output_objdir}/${output_la}.lnkscript9836 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then 9837 output=$output_objdir/$output_la.lnkscript 8343 9838 func_verbose "creating GNU ld script: $output" 8344 9839 echo 'INPUT (' > $output … … 8352 9847 func_to_tool_file "$output" 8353 9848 output=$func_to_tool_file_result 8354 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then8355 output=$ {output_objdir}/${output_la}.lnk9849 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then 9850 output=$output_objdir/$output_la.lnk 8356 9851 func_verbose "creating linker input file list: $output" 8357 9852 : > $output … … 8359 9854 shift 8360 9855 firstobj= 8361 if test "$compiler_needs_object" = yes; then9856 if test yes = "$compiler_needs_object"; then 8362 9857 firstobj="$1 " 8363 9858 shift … … 8374 9869 if test -n "$save_libobjs"; then 8375 9870 func_verbose "creating reloadable object files..." 8376 output=$output_objdir/$output_la-$ {k}.$objext9871 output=$output_objdir/$output_la-$k.$objext 8377 9872 eval test_cmds=\"$reload_cmds\" 8378 9873 func_len " $test_cmds" … … 8386 9881 func_arith $len + $func_len_result 8387 9882 len=$func_arith_result 8388 if test "X$objlist" = X||9883 if test -z "$objlist" || 8389 9884 test "$len" -lt "$max_cmd_len"; then 8390 9885 func_append objlist " $obj" … … 8392 9887 # The command $test_cmds is almost too long, add a 8393 9888 # command to the queue. 8394 if test "$k" -eq 1; then9889 if test 1 -eq "$k"; then 8395 9890 # The first file doesn't have a previous command to add. 8396 9891 reload_objs=$objlist … … 8402 9897 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" 8403 9898 fi 8404 last_robj=$output_objdir/$output_la-$ {k}.$objext9899 last_robj=$output_objdir/$output_la-$k.$objext 8405 9900 func_arith $k + 1 8406 9901 k=$func_arith_result 8407 output=$output_objdir/$output_la-$ {k}.$objext9902 output=$output_objdir/$output_la-$k.$objext 8408 9903 objlist=" $obj" 8409 9904 func_len " $last_robj" … … 8417 9912 test -z "$concat_cmds" || concat_cmds=$concat_cmds~ 8418 9913 reload_objs="$objlist $last_robj" 8419 eval concat_cmds=\"\$ {concat_cmds}$reload_cmds\"9914 eval concat_cmds=\"\$concat_cmds$reload_cmds\" 8420 9915 if test -n "$last_robj"; then 8421 eval concat_cmds=\"\$ {concat_cmds}~\$RM $last_robj\"9916 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" 8422 9917 fi 8423 9918 func_append delfiles " $output" … … 8427 9922 fi 8428 9923 8429 if ${skipped_export-false}; then8430 func_verbose "generating symbol list for \`$libname.la'"8431 export_symbols= "$output_objdir/$libname.exp"9924 ${skipped_export-false} && { 9925 func_verbose "generating symbol list for '$libname.la'" 9926 export_symbols=$output_objdir/$libname.exp 8432 9927 $opt_dry_run || $RM $export_symbols 8433 9928 libobjs=$output … … 8438 9933 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" 8439 9934 fi 8440 fi9935 } 8441 9936 8442 9937 test -n "$save_libobjs" && … … 8444 9939 8445 9940 # Loop through the commands generated above and execute them. 8446 save_ifs= "$IFS"; IFS='~'9941 save_ifs=$IFS; IFS='~' 8447 9942 for cmd in $concat_cmds; do 8448 IFS= "$save_ifs"8449 $opt_ silent || {9943 IFS=$save_ifs 9944 $opt_quiet || { 8450 9945 func_quote_for_expand "$cmd" 8451 9946 eval "func_echo $func_quote_for_expand_result" … … 8455 9950 8456 9951 # Restore the uninstalled library and exit 8457 if test "$opt_mode" = relink; then9952 if test relink = "$opt_mode"; then 8458 9953 ( cd "$output_objdir" && \ 8459 9954 $RM "${realname}T" && \ … … 8464 9959 } 8465 9960 done 8466 IFS= "$save_ifs"9961 IFS=$save_ifs 8467 9962 8468 9963 if test -n "$export_symbols_regex" && ${skipped_export-false}; then … … 8472 9967 fi 8473 9968 8474 if ${skipped_export-false}; then9969 ${skipped_export-false} && { 8475 9970 if test -n "$export_symbols" && test -n "$include_expsyms"; then 8476 tmp_export_symbols= "$export_symbols"8477 test -n "$orig_export_symbols" && tmp_export_symbols= "$orig_export_symbols"9971 tmp_export_symbols=$export_symbols 9972 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols 8478 9973 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' 8479 9974 fi … … 8481 9976 if test -n "$orig_export_symbols"; then 8482 9977 # The given exports_symbols file has to be filtered, so filter it. 8483 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"9978 func_verbose "filter symbol list for '$libname.la' to tag DATA exports" 8484 9979 # FIXME: $output_objdir/$libname.filter potentially contains lots of 8485 # 's' commands which not all seds can handle. GNU sed should be fine9980 # 's' commands, which not all seds can handle. GNU sed should be fine 8486 9981 # though. Also, the filter scales superlinearly with the number of 8487 9982 # global variables. join(1) would be nice here, but unfortunately … … 8492 9987 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols 8493 9988 fi 8494 fi9989 } 8495 9990 8496 9991 libobjs=$output … … 8506 10001 8507 10002 # Do each of the archive commands. 8508 if test "$module" = yes && test -n "$module_cmds"; then10003 if test yes = "$module" && test -n "$module_cmds"; then 8509 10004 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then 8510 10005 cmds=$module_expsym_cmds … … 8528 10023 # Add any objects from preloaded convenience libraries 8529 10024 if test -n "$dlprefiles"; then 8530 gentop= "$output_objdir/${outputname}x"10025 gentop=$output_objdir/${outputname}x 8531 10026 func_append generated " $gentop" 8532 10027 … … 8536 10031 fi 8537 10032 8538 save_ifs= "$IFS"; IFS='~'10033 save_ifs=$IFS; IFS='~' 8539 10034 for cmd in $cmds; do 8540 IFS= "$save_ifs"10035 IFS=$sp$nl 8541 10036 eval cmd=\"$cmd\" 8542 $opt_silent || { 10037 IFS=$save_ifs 10038 $opt_quiet || { 8543 10039 func_quote_for_expand "$cmd" 8544 10040 eval "func_echo $func_quote_for_expand_result" … … 8548 10044 8549 10045 # Restore the uninstalled library and exit 8550 if test "$opt_mode" = relink; then10046 if test relink = "$opt_mode"; then 8551 10047 ( cd "$output_objdir" && \ 8552 10048 $RM "${realname}T" && \ … … 8557 10053 } 8558 10054 done 8559 IFS= "$save_ifs"10055 IFS=$save_ifs 8560 10056 8561 10057 # Restore the uninstalled library and exit 8562 if test "$opt_mode" = relink; then10058 if test relink = "$opt_mode"; then 8563 10059 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? 8564 10060 … … 8580 10076 8581 10077 # If -module or -export-dynamic was specified, set the dlname. 8582 if test "$module" = yes || test "$export_dynamic" = yes; then10078 if test yes = "$module" || test yes = "$export_dynamic"; then 8583 10079 # On all known operating systems, these are identical. 8584 dlname= "$soname"10080 dlname=$soname 8585 10081 fi 8586 10082 fi … … 8588 10084 8589 10085 obj) 8590 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then8591 func_warning " \`-dlopen' is ignored for objects"10086 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then 10087 func_warning "'-dlopen' is ignored for objects" 8592 10088 fi 8593 10089 8594 10090 case " $deplibs" in 8595 10091 *\ -l* | *\ -L*) 8596 func_warning " \`-l' and \`-L' are ignored for objects" ;;10092 func_warning "'-l' and '-L' are ignored for objects" ;; 8597 10093 esac 8598 10094 8599 10095 test -n "$rpath" && \ 8600 func_warning " \`-rpath' is ignored for objects"10096 func_warning "'-rpath' is ignored for objects" 8601 10097 8602 10098 test -n "$xrpath" && \ 8603 func_warning " \`-R' is ignored for objects"10099 func_warning "'-R' is ignored for objects" 8604 10100 8605 10101 test -n "$vinfo" && \ 8606 func_warning " \`-version-info' is ignored for objects"10102 func_warning "'-version-info' is ignored for objects" 8607 10103 8608 10104 test -n "$release" && \ 8609 func_warning " \`-release' is ignored for objects"10105 func_warning "'-release' is ignored for objects" 8610 10106 8611 10107 case $output in 8612 10108 *.lo) 8613 10109 test -n "$objs$old_deplibs" && \ 8614 func_fatal_error "cannot build library object \`$output' from non-libtool objects"10110 func_fatal_error "cannot build library object '$output' from non-libtool objects" 8615 10111 8616 10112 libobj=$output … … 8620 10116 *) 8621 10117 libobj= 8622 obj= "$output"10118 obj=$output 8623 10119 ;; 8624 10120 esac … … 8633 10129 reload_conv_objs= 8634 10130 gentop= 8635 # reload_cmds runs $LD directly, so let us get rid of 8636 # -Wl from whole_archive_flag_spec and hope we can get by with 8637 # turning comma into space.. 8638 wl= 8639 10131 # if reload_cmds runs $LD directly, get rid of -Wl from 10132 # whole_archive_flag_spec and hope we can get by with turning comma 10133 # into space. 10134 case $reload_cmds in 10135 *\$LD[\ \$]*) wl= ;; 10136 esac 8640 10137 if test -n "$convenience"; then 8641 10138 if test -n "$whole_archive_flag_spec"; then 8642 10139 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" 8643 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` 10140 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` 10141 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags 8644 10142 else 8645 gentop= "$output_objdir/${obj}x"10143 gentop=$output_objdir/${obj}x 8646 10144 func_append generated " $gentop" 8647 10145 … … 8652 10150 8653 10151 # If we're not building shared, we need to use non_pic_objs 8654 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"10152 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects 8655 10153 8656 10154 # Create the old-style object. 8657 reload_objs= "$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test8658 8659 output= "$obj"10155 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs 10156 10157 output=$obj 8660 10158 func_execute_cmds "$reload_cmds" 'exit $?' 8661 10159 … … 8669 10167 fi 8670 10168 8671 if test "$build_libtool_libs" != yes; then10169 test yes = "$build_libtool_libs" || { 8672 10170 if test -n "$gentop"; then 8673 10171 func_show_eval '${RM}r "$gentop"' … … 8679 10177 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? 8680 10178 exit $EXIT_SUCCESS 8681 fi8682 8683 if test -n "$pic_flag" || test "$pic_mode" != default; then10179 } 10180 10181 if test -n "$pic_flag" || test default != "$pic_mode"; then 8684 10182 # Only do commands if we really have different PIC objects. 8685 10183 reload_objs="$libobjs $reload_conv_objs" 8686 output= "$libobj"10184 output=$libobj 8687 10185 func_execute_cmds "$reload_cmds" 'exit $?' 8688 10186 fi … … 8701 10199 esac 8702 10200 test -n "$vinfo" && \ 8703 func_warning " \`-version-info' is ignored for programs"10201 func_warning "'-version-info' is ignored for programs" 8704 10202 8705 10203 test -n "$release" && \ 8706 func_warning "\`-release' is ignored for programs" 8707 8708 test "$preload" = yes \ 8709 && test "$dlopen_support" = unknown \ 8710 && test "$dlopen_self" = unknown \ 8711 && test "$dlopen_self_static" = unknown && \ 8712 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." 10204 func_warning "'-release' is ignored for programs" 10205 10206 $preload \ 10207 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ 10208 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." 8713 10209 8714 10210 case $host in … … 8724 10220 # Don't allow lazy linking, it breaks C++ global constructors 8725 10221 # But is supposedly fixed on 10.4 or later (yay!). 8726 if test "$tagname" = CXX; then10222 if test CXX = "$tagname"; then 8727 10223 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 8728 10224 10.[0123]) 8729 func_append compile_command " $ {wl}-bind_at_load"8730 func_append finalize_command " $ {wl}-bind_at_load"10225 func_append compile_command " $wl-bind_at_load" 10226 func_append finalize_command " $wl-bind_at_load" 8731 10227 ;; 8732 10228 esac … … 8764 10260 esac 8765 10261 done 8766 compile_deplibs= "$new_libs"10262 compile_deplibs=$new_libs 8767 10263 8768 10264 … … 8788 10284 if test -n "$hardcode_libdir_separator"; then 8789 10285 if test -z "$hardcode_libdirs"; then 8790 hardcode_libdirs= "$libdir"10286 hardcode_libdirs=$libdir 8791 10287 else 8792 10288 # Just accumulate the unique libdirs. … … 8811 10307 case $host in 8812 10308 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) 8813 testbindir=`$ {ECHO} "$libdir" | ${SED}-e 's*/lib$*/bin*'`10309 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` 8814 10310 case :$dllsearchpath: in 8815 10311 *":$libdir:"*) ;; … … 8828 10324 if test -n "$hardcode_libdir_separator" && 8829 10325 test -n "$hardcode_libdirs"; then 8830 libdir= "$hardcode_libdirs"10326 libdir=$hardcode_libdirs 8831 10327 eval rpath=\" $hardcode_libdir_flag_spec\" 8832 10328 fi 8833 compile_rpath= "$rpath"10329 compile_rpath=$rpath 8834 10330 8835 10331 rpath= … … 8839 10335 if test -n "$hardcode_libdir_separator"; then 8840 10336 if test -z "$hardcode_libdirs"; then 8841 hardcode_libdirs= "$libdir"10337 hardcode_libdirs=$libdir 8842 10338 else 8843 10339 # Just accumulate the unique libdirs. … … 8864 10360 if test -n "$hardcode_libdir_separator" && 8865 10361 test -n "$hardcode_libdirs"; then 8866 libdir= "$hardcode_libdirs"10362 libdir=$hardcode_libdirs 8867 10363 eval rpath=\" $hardcode_libdir_flag_spec\" 8868 10364 fi 8869 finalize_rpath= "$rpath"8870 8871 if test -n "$libobjs" && test "$build_old_libs" = yes; then10365 finalize_rpath=$rpath 10366 10367 if test -n "$libobjs" && test yes = "$build_old_libs"; then 8872 10368 # Transform all the library objects into standard objects. 8873 10369 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` … … 8875 10371 fi 8876 10372 8877 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"10373 func_generate_dlsyms "$outputname" "@PROGRAM@" false 8878 10374 8879 10375 # template prelinking step … … 8882 10378 fi 8883 10379 8884 wrappers_required= yes10380 wrappers_required=: 8885 10381 case $host in 8886 10382 *cegcc* | *mingw32ce*) 8887 10383 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. 8888 wrappers_required= no10384 wrappers_required=false 8889 10385 ;; 8890 10386 *cygwin* | *mingw* ) 8891 if test "$build_libtool_libs" != yes; then 8892 wrappers_required=no 8893 fi 10387 test yes = "$build_libtool_libs" || wrappers_required=false 8894 10388 ;; 8895 10389 *) 8896 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then8897 wrappers_required= no10390 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then 10391 wrappers_required=false 8898 10392 fi 8899 10393 ;; 8900 10394 esac 8901 if test "$wrappers_required" = no; then10395 $wrappers_required || { 8902 10396 # Replace the output file specification. 8903 10397 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` 8904 link_command= "$compile_command$compile_rpath"10398 link_command=$compile_command$compile_rpath 8905 10399 8906 10400 # We have no uninstalled library dependencies, so finalize right now. … … 8915 10409 8916 10410 # Delete the generated files. 8917 if test -f "$output_objdir/${outputname}S.$ {objext}"; then8918 func_show_eval '$RM "$output_objdir/${outputname}S.$ {objext}"'10411 if test -f "$output_objdir/${outputname}S.$objext"; then 10412 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' 8919 10413 fi 8920 10414 8921 10415 exit $exit_status 8922 fi10416 } 8923 10417 8924 10418 if test -n "$compile_shlibpath$finalize_shlibpath"; then … … 8950 10444 fi 8951 10445 8952 if test "$no_install" = yes; then10446 if test yes = "$no_install"; then 8953 10447 # We don't need to create a wrapper script. 8954 link_command= "$compile_var$compile_command$compile_rpath"10448 link_command=$compile_var$compile_command$compile_rpath 8955 10449 # Replace the output file specification. 8956 10450 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` … … 8969 10463 fi 8970 10464 8971 if test "$hardcode_action" = relink; then 8972 # Fast installation is not supported 8973 link_command="$compile_var$compile_command$compile_rpath" 8974 relink_command="$finalize_var$finalize_command$finalize_rpath" 8975 8976 func_warning "this platform does not like uninstalled shared libraries" 8977 func_warning "\`$output' will be relinked during installation" 8978 else 8979 if test "$fast_install" != no; then 8980 link_command="$finalize_var$compile_command$finalize_rpath" 8981 if test "$fast_install" = yes; then 8982 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` 8983 else 8984 # fast_install is set to needless 8985 relink_command= 8986 fi 8987 else 8988 link_command="$compile_var$compile_command$compile_rpath" 8989 relink_command="$finalize_var$finalize_command$finalize_rpath" 8990 fi 8991 fi 10465 case $hardcode_action,$fast_install in 10466 relink,*) 10467 # Fast installation is not supported 10468 link_command=$compile_var$compile_command$compile_rpath 10469 relink_command=$finalize_var$finalize_command$finalize_rpath 10470 10471 func_warning "this platform does not like uninstalled shared libraries" 10472 func_warning "'$output' will be relinked during installation" 10473 ;; 10474 *,yes) 10475 link_command=$finalize_var$compile_command$finalize_rpath 10476 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` 10477 ;; 10478 *,no) 10479 link_command=$compile_var$compile_command$compile_rpath 10480 relink_command=$finalize_var$finalize_command$finalize_rpath 10481 ;; 10482 *,needless) 10483 link_command=$finalize_var$compile_command$finalize_rpath 10484 relink_command= 10485 ;; 10486 esac 8992 10487 8993 10488 # Replace the output file specification. … … 9046 10541 output_name=$func_basename_result 9047 10542 output_path=$func_dirname_result 9048 cwrappersource= "$output_path/$objdir/lt-$output_name.c"9049 cwrapper= "$output_path/$output_name.exe"10543 cwrappersource=$output_path/$objdir/lt-$output_name.c 10544 cwrapper=$output_path/$output_name.exe 9050 10545 $RM $cwrappersource $cwrapper 9051 10546 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 … … 9068 10563 $opt_dry_run || { 9069 10564 # note: this script will not be executed, so do not chmod. 9070 if test "x$build" = "x$host" 10565 if test "x$build" = "x$host"; then 9071 10566 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result 9072 10567 else … … 9091 10586 for oldlib in $oldlibs; do 9092 10587 9093 if test "$build_libtool_libs" = convenience; then 9094 oldobjs="$libobjs_save $symfileobj" 9095 addlibs="$convenience" 9096 build_libtool_libs=no 9097 else 9098 if test "$build_libtool_libs" = module; then 9099 oldobjs="$libobjs_save" 10588 case $build_libtool_libs in 10589 convenience) 10590 oldobjs="$libobjs_save $symfileobj" 10591 addlibs=$convenience 9100 10592 build_libtool_libs=no 9101 else 10593 ;; 10594 module) 10595 oldobjs=$libobjs_save 10596 addlibs=$old_convenience 10597 build_libtool_libs=no 10598 ;; 10599 *) 9102 10600 oldobjs="$old_deplibs $non_pic_objects" 9103 if test "$preload" = yes && test -f "$symfileobj"; then 9104 func_append oldobjs " $symfileobj" 9105 fi 9106 fi 9107 addlibs="$old_convenience" 9108 fi 10601 $preload && test -f "$symfileobj" \ 10602 && func_append oldobjs " $symfileobj" 10603 addlibs=$old_convenience 10604 ;; 10605 esac 9109 10606 9110 10607 if test -n "$addlibs"; then 9111 gentop= "$output_objdir/${outputname}x"10608 gentop=$output_objdir/${outputname}x 9112 10609 func_append generated " $gentop" 9113 10610 … … 9117 10614 9118 10615 # Do each command in the archive commands. 9119 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then10616 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then 9120 10617 cmds=$old_archive_from_new_cmds 9121 10618 else … … 9123 10620 # Add any objects from preloaded convenience libraries 9124 10621 if test -n "$dlprefiles"; then 9125 gentop= "$output_objdir/${outputname}x"10622 gentop=$output_objdir/${outputname}x 9126 10623 func_append generated " $gentop" 9127 10624 … … 9144 10641 else 9145 10642 echo "copying selected object files to avoid basename conflicts..." 9146 gentop= "$output_objdir/${outputname}x"10643 gentop=$output_objdir/${outputname}x 9147 10644 func_append generated " $gentop" 9148 10645 func_mkdir_p "$gentop" … … 9153 10650 do 9154 10651 func_basename "$obj" 9155 objbase= "$func_basename_result"10652 objbase=$func_basename_result 9156 10653 case " $oldobjs " in 9157 10654 " ") oldobjs=$obj ;; … … 9222 10719 # the above command should be used before it gets too long 9223 10720 oldobjs=$objlist 9224 if test "$obj" = "$last_oldobj" 10721 if test "$obj" = "$last_oldobj"; then 9225 10722 RANLIB=$save_RANLIB 9226 10723 fi 9227 10724 test -z "$concat_cmds" || concat_cmds=$concat_cmds~ 9228 eval concat_cmds=\"\$ {concat_cmds}$old_archive_cmds\"10725 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" 9229 10726 objlist= 9230 10727 len=$len0 … … 9233 10730 RANLIB=$save_RANLIB 9234 10731 oldobjs=$objlist 9235 if test "X$oldobjs" = "X"; then10732 if test -z "$oldobjs"; then 9236 10733 eval cmds=\"\$concat_cmds\" 9237 10734 else … … 9250 10747 *.la) 9251 10748 old_library= 9252 test "$build_old_libs" = yes && old_library="$libname.$libext"10749 test yes = "$build_old_libs" && old_library=$libname.$libext 9253 10750 func_verbose "creating $output" 9254 10751 … … 9265 10762 done 9266 10763 # Quote the link command for shipping. 9267 relink_command="(cd `pwd`; $SHELL $progpath$preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"10764 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" 9268 10765 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` 9269 if test "$hardcode_automatic" = yes; then10766 if test yes = "$hardcode_automatic"; then 9270 10767 relink_command= 9271 10768 fi … … 9274 10771 $opt_dry_run || { 9275 10772 for installed in no yes; do 9276 if test "$installed" = yes; then10773 if test yes = "$installed"; then 9277 10774 if test -z "$install_libdir"; then 9278 10775 break 9279 10776 fi 9280 output= "$output_objdir/$outputname"i10777 output=$output_objdir/${outputname}i 9281 10778 # Replace all uninstalled libtool libraries with the installed ones 9282 10779 newdependency_libs= … … 9285 10782 *.la) 9286 10783 func_basename "$deplib" 9287 name= "$func_basename_result"10784 name=$func_basename_result 9288 10785 func_resolve_sysroot "$deplib" 9289 eval libdir=`$ {SED}-n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`10786 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` 9290 10787 test -z "$libdir" && \ 9291 func_fatal_error " \`$deplib' is not a valid libtool archive"10788 func_fatal_error "'$deplib' is not a valid libtool archive" 9292 10789 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" 9293 10790 ;; … … 9305 10802 esac 9306 10803 done 9307 dependency_libs= "$newdependency_libs"10804 dependency_libs=$newdependency_libs 9308 10805 newdlfiles= 9309 10806 … … 9312 10809 *.la) 9313 10810 func_basename "$lib" 9314 name= "$func_basename_result"9315 eval libdir=`$ {SED}-n -e 's/^libdir=\(.*\)$/\1/p' $lib`10811 name=$func_basename_result 10812 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` 9316 10813 test -z "$libdir" && \ 9317 func_fatal_error " \`$lib' is not a valid libtool archive"10814 func_fatal_error "'$lib' is not a valid libtool archive" 9318 10815 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" 9319 10816 ;; … … 9321 10818 esac 9322 10819 done 9323 dlfiles= "$newdlfiles"10820 dlfiles=$newdlfiles 9324 10821 newdlprefiles= 9325 10822 for lib in $dlprefiles; do … … 9331 10828 # the library: 9332 10829 func_basename "$lib" 9333 name= "$func_basename_result"9334 eval libdir=`$ {SED}-n -e 's/^libdir=\(.*\)$/\1/p' $lib`10830 name=$func_basename_result 10831 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` 9335 10832 test -z "$libdir" && \ 9336 func_fatal_error " \`$lib' is not a valid libtool archive"10833 func_fatal_error "'$lib' is not a valid libtool archive" 9337 10834 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" 9338 10835 ;; 9339 10836 esac 9340 10837 done 9341 dlprefiles= "$newdlprefiles"10838 dlprefiles=$newdlprefiles 9342 10839 else 9343 10840 newdlfiles= 9344 10841 for lib in $dlfiles; do 9345 10842 case $lib in 9346 [\\/]* | [A-Za-z]:[\\/]*) abs= "$lib";;10843 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; 9347 10844 *) abs=`pwd`"/$lib" ;; 9348 10845 esac 9349 10846 func_append newdlfiles " $abs" 9350 10847 done 9351 dlfiles= "$newdlfiles"10848 dlfiles=$newdlfiles 9352 10849 newdlprefiles= 9353 10850 for lib in $dlprefiles; do 9354 10851 case $lib in 9355 [\\/]* | [A-Za-z]:[\\/]*) abs= "$lib";;10852 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; 9356 10853 *) abs=`pwd`"/$lib" ;; 9357 10854 esac 9358 10855 func_append newdlprefiles " $abs" 9359 10856 done 9360 dlprefiles= "$newdlprefiles"10857 dlprefiles=$newdlprefiles 9361 10858 fi 9362 10859 $RM $output … … 9374 10871 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) 9375 10872 # If a -bindir argument was supplied, place the dll there. 9376 if test "x$bindir" != x ; 9377 then 10873 if test -n "$bindir"; then 9378 10874 func_relative_path "$install_libdir" "$bindir" 9379 tdlname=$func_relative_path_result $dlname10875 tdlname=$func_relative_path_result/$dlname 9380 10876 else 9381 10877 # Otherwise fall back on heuristic. … … 9386 10882 $ECHO > $output "\ 9387 10883 # $outputname - a libtool library file 9388 # Generated by $PROGRAM (GNU $PACKAGE $TIMESTAMP) $VERSION10884 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION 9389 10885 # 9390 10886 # Please DO NOT delete this file! … … 9400 10896 old_library='$old_library' 9401 10897 9402 # Linker flags that can 10898 # Linker flags that cannot go in dependency_libs. 9403 10899 inherited_linker_flags='$new_inherited_linker_flags' 9404 10900 … … 9426 10922 # Directory that this library needs to be installed in: 9427 10923 libdir='$install_libdir'" 9428 if test "$installed" = no && test "$need_relink" = yes; then10924 if test no,yes = "$installed,$need_relink"; then 9429 10925 $ECHO >> $output "\ 9430 10926 relink_command=\"$relink_command\"" … … 9441 10937 } 9442 10938 9443 { test "$opt_mode" = link || test "$opt_mode" = relink; } && 9444 func_mode_link ${1+"$@"} 10939 if test link = "$opt_mode" || test relink = "$opt_mode"; then 10940 func_mode_link ${1+"$@"} 10941 fi 9445 10942 9446 10943 … … 9448 10945 func_mode_uninstall () 9449 10946 { 9450 $opt_debug 9451 RM="$nonopt" 10947 $debug_cmd 10948 10949 RM=$nonopt 9452 10950 files= 9453 rmforce= 10951 rmforce=false 9454 10952 exit_status=0 9455 10953 9456 10954 # This variable tells wrapper scripts just to set variables rather 9457 10955 # than running their programs. 9458 libtool_install_magic= "$magic"10956 libtool_install_magic=$magic 9459 10957 9460 10958 for arg 9461 10959 do 9462 10960 case $arg in 9463 -f) func_append RM " $arg"; rmforce= yes;;10961 -f) func_append RM " $arg"; rmforce=: ;; 9464 10962 -*) func_append RM " $arg" ;; 9465 10963 *) func_append files " $arg" ;; … … 9474 10972 for file in $files; do 9475 10973 func_dirname "$file" "" "." 9476 dir= "$func_dirname_result"9477 if test "X$dir" = X.; then9478 odir= "$objdir"10974 dir=$func_dirname_result 10975 if test . = "$dir"; then 10976 odir=$objdir 9479 10977 else 9480 odir= "$dir/$objdir"10978 odir=$dir/$objdir 9481 10979 fi 9482 10980 func_basename "$file" 9483 name= "$func_basename_result"9484 test "$opt_mode" = uninstall && odir="$dir"10981 name=$func_basename_result 10982 test uninstall = "$opt_mode" && odir=$dir 9485 10983 9486 10984 # Remember odir for removal later, being careful to avoid duplicates 9487 if test "$opt_mode" = clean; then10985 if test clean = "$opt_mode"; then 9488 10986 case " $rmdirs " in 9489 10987 *" $odir "*) ;; … … 9500 10998 exit_status=1 9501 10999 continue 9502 elif test "$rmforce" = yes; then11000 elif $rmforce; then 9503 11001 continue 9504 11002 fi 9505 11003 9506 rmfiles= "$file"11004 rmfiles=$file 9507 11005 9508 11006 case $name in … … 9518 11016 test -n "$old_library" && func_append rmfiles " $odir/$old_library" 9519 11017 9520 case "$opt_mode"in11018 case $opt_mode in 9521 11019 clean) 9522 11020 case " $library_names " in … … 9529 11027 if test -n "$library_names"; then 9530 11028 # Do each command in the postuninstall commands. 9531 func_execute_cmds "$postuninstall_cmds" ' test "$rmforce" = yes|| exit_status=1'11029 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' 9532 11030 fi 9533 11031 9534 11032 if test -n "$old_library"; then 9535 11033 # Do each command in the old_postuninstall commands. 9536 func_execute_cmds "$old_postuninstall_cmds" ' test "$rmforce" = yes|| exit_status=1'11034 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' 9537 11035 fi 9538 11036 # FIXME: should reinstall the best remaining shared library. … … 9550 11048 9551 11049 # Add PIC object to the list of files to remove. 9552 if test -n "$pic_object" && 9553 test "$pic_object" != none; then 11050 if test -n "$pic_object" && test none != "$pic_object"; then 9554 11051 func_append rmfiles " $dir/$pic_object" 9555 11052 fi 9556 11053 9557 11054 # Add non-PIC object to the list of files to remove. 9558 if test -n "$non_pic_object" && 9559 test "$non_pic_object" != none; then 11055 if test -n "$non_pic_object" && test none != "$non_pic_object"; then 9560 11056 func_append rmfiles " $dir/$non_pic_object" 9561 11057 fi … … 9564 11060 9565 11061 *) 9566 if test "$opt_mode" = clean; then11062 if test clean = "$opt_mode"; then 9567 11063 noexename=$name 9568 11064 case $file in … … 9591 11087 # note $name still contains .exe if it was in $file originally 9592 11088 # as does the version of $file that was added into $rmfiles 9593 func_append rmfiles " $odir/$name $odir/${name}S.$ {objext}"9594 if test "$fast_install" = yes&& test -n "$relink_command"; then11089 func_append rmfiles " $odir/$name $odir/${name}S.$objext" 11090 if test yes = "$fast_install" && test -n "$relink_command"; then 9595 11091 func_append rmfiles " $odir/lt-$name" 9596 11092 fi 9597 if test "X$noexename" != "X$name" 9598 func_append rmfiles " $odir/lt-$ {noexename}.c"11093 if test "X$noexename" != "X$name"; then 11094 func_append rmfiles " $odir/lt-$noexename.c" 9599 11095 fi 9600 11096 fi … … 9605 11101 done 9606 11102 9607 # Try to remove the $ {objdir}s in the directories where we deleted files11103 # Try to remove the $objdir's in the directories where we deleted files 9608 11104 for dir in $rmdirs; do 9609 11105 if test -d "$dir"; then … … 9615 11111 } 9616 11112 9617 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && 9618 func_mode_uninstall ${1+"$@"} 11113 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then 11114 func_mode_uninstall ${1+"$@"} 11115 fi 9619 11116 9620 11117 test -z "$opt_mode" && { 9621 help= "$generic_help"11118 help=$generic_help 9622 11119 func_fatal_help "you must specify a MODE" 9623 11120 } 9624 11121 9625 11122 test -z "$exec_cmd" && \ 9626 func_fatal_help "invalid operation mode \`$opt_mode'"11123 func_fatal_help "invalid operation mode '$opt_mode'" 9627 11124 9628 11125 if test -n "$exec_cmd"; then … … 9635 11132 9636 11133 # The TAGs below are defined such that we never get into a situation 9637 # in whichwe disable both kinds of libraries. Given conflicting11134 # where we disable both kinds of libraries. Given conflicting 9638 11135 # choices, we go for a static library, that is the most portable, 9639 11136 # since we can't tell whether shared libraries were disabled because … … 9658 11155 # sh-indentation:2 9659 11156 # End: 9660 # vi:sw=29661 -
trunk/FACT++/.macro_dir/libtool.m4
r12832 r18603 1 1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2 2 # 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 4 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 5 # Inc. 3 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. 6 4 # Written by Gordon Matzigkeit, 1996 7 5 # … … 11 9 12 10 m4_define([_LT_COPYING], [dnl 13 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 15 # Inc. 16 # Written by Gordon Matzigkeit, 1996 11 # Copyright (C) 2014 Free Software Foundation, Inc. 12 # This is free software; see the source for copying conditions. There is NO 13 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 15 # GNU Libtool is free software; you can redistribute it and/or modify 16 # it under the terms of the GNU General Public License as published by 17 # the Free Software Foundation; either version 2 of of the License, or 18 # (at your option) any later version. 17 19 # 18 # This file is part of GNU Libtool. 20 # As a special exception to the GNU General Public License, if you 21 # distribute this file as part of a program or library that is built 22 # using GNU Libtool, you may include this file under the same 23 # distribution terms that you use for the rest of that program. 19 24 # 20 # GNU Libtool is free software; you can redistribute it and/or 21 # modify it under the terms of the GNU General Public License as 22 # published by the Free Software Foundation; either version 2 of 23 # the License, or (at your option) any later version. 24 # 25 # As a special exception to the GNU General Public License, 26 # if you distribute this file as part of a program or library that 27 # is built using GNU Libtool, you may include this file under the 28 # same distribution terms that you use for the rest of that program. 29 # 30 # GNU Libtool is distributed in the hope that it will be useful, 31 # but WITHOUT ANY WARRANTY; without even the implied warranty of 25 # GNU Libtool is distributed in the hope that it will be useful, but 26 # WITHOUT ANY WARRANTY; without even the implied warranty of 32 27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 33 28 # GNU General Public License for more details. 34 29 # 35 30 # You should have received a copy of the GNU General Public License 36 # along with GNU Libtool; see the file COPYING. If not, a copy 37 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 38 # obtained by writing to the Free Software Foundation, Inc., 39 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 31 # along with this program. If not, see <http://www.gnu.org/licenses/>. 40 32 ]) 41 33 42 # serial 5 7LT_INIT34 # serial 58 LT_INIT 43 35 44 36 … … 68 60 # ------------------ 69 61 AC_DEFUN([LT_INIT], 70 [AC_PREREQ([2. 58])dnl We use AC_INCLUDES_DEFAULT62 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 71 63 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 72 64 AC_BEFORE([$0], [LT_LANG])dnl … … 92 84 93 85 # This can be used to rebuild libtool when needed 94 LIBTOOL_DEPS= "$ltmain"86 LIBTOOL_DEPS=$ltmain 95 87 96 88 # Always use our own libtool. … … 112 104 113 105 106 # _LT_PREPARE_CC_BASENAME 107 # ----------------------- 108 m4_defun([_LT_PREPARE_CC_BASENAME], [ 109 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 110 func_cc_basename () 111 { 112 for cc_temp in @S|@*""; do 113 case $cc_temp in 114 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 115 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 116 \-*) ;; 117 *) break;; 118 esac 119 done 120 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 121 } 122 ])# _LT_PREPARE_CC_BASENAME 123 124 114 125 # _LT_CC_BASENAME(CC) 115 126 # ------------------- 116 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 127 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 128 # but that macro is also expanded into generated libtool script, which 129 # arranges for $SED and $ECHO to be set by different means. 117 130 m4_defun([_LT_CC_BASENAME], 118 [for cc_temp in $1""; do 119 case $cc_temp in 120 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 121 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 122 \-*) ;; 123 *) break;; 124 esac 125 done 126 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 131 [m4_require([_LT_PREPARE_CC_BASENAME])dnl 132 AC_REQUIRE([_LT_DECL_SED])dnl 133 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 134 func_cc_basename $1 135 cc_basename=$func_cc_basename_result 127 136 ]) 128 137 … … 131 140 # ---------------------- 132 141 # It is okay to use these file commands and assume they have been set 133 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.142 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 134 143 m4_defun([_LT_FILEUTILS_DEFAULTS], 135 144 [: ${CP="cp -f"} … … 147 156 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 148 157 158 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 159 dnl 149 160 _LT_DECL([], [host_alias], [0], [The host system])dnl 150 161 _LT_DECL([], [host], [0])dnl … … 176 187 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 177 188 m4_require([_LT_WITH_SYSROOT])dnl 189 m4_require([_LT_CMD_TRUNCATE])dnl 178 190 179 191 _LT_CONFIG_LIBTOOL_INIT([ 180 # See if we are running on zsh, and set the options whichallow our192 # See if we are running on zsh, and set the options that allow our 181 193 # commands through without removal of \ escapes INIT. 182 if test -n "\${ZSH_VERSION+set}" 194 if test -n "\${ZSH_VERSION+set}"; then 183 195 setopt NO_GLOB_SUBST 184 196 fi 185 197 ]) 186 if test -n "${ZSH_VERSION+set}" 198 if test -n "${ZSH_VERSION+set}"; then 187 199 setopt NO_GLOB_SUBST 188 200 fi … … 197 209 # reason, if we set the COLLECT_NAMES environment variable, the problems 198 210 # vanish in a puff of smoke. 199 if test "X${COLLECT_NAMES+set}" != Xset; then211 if test set != "${COLLECT_NAMES+set}"; then 200 212 COLLECT_NAMES= 201 213 export COLLECT_NAMES … … 208 220 can_build_shared=yes 209 221 210 # All known linkers require a `.a' archive for static linking (except MSVC,222 # All known linkers require a '.a' archive for static linking (except MSVC, 211 223 # which needs '.lib'). 212 224 libext=a 213 225 214 with_gnu_ld= "$lt_cv_prog_gnu_ld"215 216 old_CC= "$CC"217 old_CFLAGS= "$CFLAGS"226 with_gnu_ld=$lt_cv_prog_gnu_ld 227 228 old_CC=$CC 229 old_CFLAGS=$CFLAGS 218 230 219 231 # Set sane defaults for various variables … … 268 280 # _LT_PROG_LTMAIN 269 281 # --------------- 270 # Note that this code is called both from `configure', and `config.status'282 # Note that this code is called both from 'configure', and 'config.status' 271 283 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 272 # `config.status' has no value for ac_aux_dir unless we are using Automake,284 # 'config.status' has no value for ac_aux_dir unless we are using Automake, 273 285 # so we pass a copy along to make sure it has a sensible value anyway. 274 286 m4_defun([_LT_PROG_LTMAIN], 275 287 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 276 288 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 277 ltmain= "$ac_aux_dir/ltmain.sh"289 ltmain=$ac_aux_dir/ltmain.sh 278 290 ])# _LT_PROG_LTMAIN 279 291 … … 285 297 # So that we can recreate a full libtool script including additional 286 298 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 287 # in macros and then make a single call at the end using the `libtool'299 # in macros and then make a single call at the end using the 'libtool' 288 300 # label. 289 301 … … 420 432 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) 421 433 # ------------------------------------ 422 # Quote a variable value, and forward it to `config.status' so that its423 # declaration there will have the same value as in `configure'. VARNAME434 # Quote a variable value, and forward it to 'config.status' so that its 435 # declaration there will have the same value as in 'configure'. VARNAME 424 436 # must have a single quote delimited value for this to work. 425 437 m4_define([_LT_CONFIG_STATUS_DECLARE], … … 445 457 m4_defun([_LT_LIBTOOL_TAGS], 446 458 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 447 available_tags= "_LT_TAGS"dnl459 available_tags='_LT_TAGS'dnl 448 460 ]) 449 461 … … 473 485 # ----------------------- 474 486 # Produce commented declarations of non-tagged libtool config variables 475 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'487 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 476 488 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG 477 489 # section) are produced by _LT_LIBTOOL_TAG_VARS. … … 499 511 # variables for single and double quote escaping we saved from calls 500 512 # to _LT_DECL, we can put quote escaped variables declarations 501 # into `config.status', and then the shell code to quote escape them in502 # for loops in `config.status'. Finally, any additional code accumulated513 # into 'config.status', and then the shell code to quote escape them in 514 # for loops in 'config.status'. Finally, any additional code accumulated 503 515 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 504 516 m4_defun([_LT_CONFIG_COMMANDS], … … 546 558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 547 559 *[[\\\\\\\`\\"\\\$]]*) 548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 549 561 ;; 550 562 *) … … 559 571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 560 572 *[[\\\\\\\`\\"\\\$]]*) 561 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 562 574 ;; 563 575 *) … … 575 587 # reuse the environment learned by the parent script, and make the 576 588 # file executable. If COMMENT is supplied, it is inserted after the 577 # `#!' sequence but before initialization text begins. After this589 # '#!' sequence but before initialization text begins. After this 578 590 # macro, additional text can be appended to FILE to form the body of 579 591 # the child script. The macro ends with non-zero status if the … … 597 609 exec AS_MESSAGE_FD>&1 598 610 _ASEOF 599 test $lt_write_fail = 0&& chmod +x $1[]dnl611 test 0 = "$lt_write_fail" && chmod +x $1[]dnl 600 612 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 601 613 … … 620 632 621 633 lt_cl_help="\ 622 \`$as_me' creates a local libtool stub from the current configuration,634 '$as_me' creates a local libtool stub from the current configuration, 623 635 for use in further configure time tests before the real libtool is 624 636 generated. … … 638 650 configured by $[0], generated by m4_PACKAGE_STRING. 639 651 640 Copyright (C) 201 0Free Software Foundation, Inc.652 Copyright (C) 2011 Free Software Foundation, Inc. 641 653 This config.lt script is free software; the Free Software Foundation 642 654 gives unlimited permision to copy, distribute and modify it." 643 655 644 while test $[#] != 0656 while test 0 != $[#] 645 657 do 646 658 case $[1] in … … 655 667 656 668 -*) AC_MSG_ERROR([unrecognized option: $[1] 657 Try \`$[0] --help' for more information.]) ;;669 Try '$[0] --help' for more information.]) ;; 658 670 659 671 *) AC_MSG_ERROR([unrecognized argument: $[1] 660 Try \`$[0] --help' for more information.]) ;;672 Try '$[0] --help' for more information.]) ;; 661 673 esac 662 674 shift … … 684 696 # config.log, so it can be properly (re)opened and appended to by config.lt. 685 697 lt_cl_success=: 686 test "$silent" = yes&&698 test yes = "$silent" && 687 699 lt_config_lt_args="$lt_config_lt_args --quiet" 688 700 exec AS_MESSAGE_LOG_FD>/dev/null … … 704 716 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 705 717 m4_if(_LT_TAG, [C], [ 706 # See if we are running on zsh, and set the options whichallow our718 # See if we are running on zsh, and set the options that allow our 707 719 # commands through without removal of \ escapes. 708 if test -n "${ZSH_VERSION+set}" 720 if test -n "${ZSH_VERSION+set}"; then 709 721 setopt NO_GLOB_SUBST 710 722 fi 711 723 712 cfgfile= "${ofile}T"724 cfgfile=${ofile}T 713 725 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 714 726 $RM "$cfgfile" … … 716 728 cat <<_LT_EOF >> "$cfgfile" 717 729 #! $SHELL 718 719 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 720 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 730 # Generated automatically by $as_me ($PACKAGE) $VERSION 721 731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 722 732 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 723 # 733 734 # Provide generalized library-building support services. 735 # Written by Gordon Matzigkeit, 1996 736 724 737 _LT_COPYING 725 738 _LT_LIBTOOL_TAGS 739 740 # Configured defaults for sys_lib_dlsearch_path munging. 741 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 726 742 727 743 # ### BEGIN LIBTOOL CONFIG … … 729 745 _LT_LIBTOOL_TAG_VARS 730 746 # ### END LIBTOOL CONFIG 747 748 _LT_EOF 749 750 cat <<'_LT_EOF' >> "$cfgfile" 751 752 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 753 754 _LT_PREPARE_MUNGE_PATH_LIST 755 _LT_PREPARE_CC_BASENAME 756 757 # ### END FUNCTIONS SHARED WITH CONFIGURE 731 758 732 759 _LT_EOF … … 738 765 # reason, if we set the COLLECT_NAMES environment variable, the problems 739 766 # vanish in a puff of smoke. 740 if test "X${COLLECT_NAMES+set}" != Xset; then767 if test set != "${COLLECT_NAMES+set}"; then 741 768 COLLECT_NAMES= 742 769 export COLLECT_NAMES … … 754 781 sed '$q' "$ltmain" >> "$cfgfile" \ 755 782 || (rm -f "$cfgfile"; exit 1) 756 757 _LT_PROG_REPLACE_SHELLFNS758 783 759 784 mv -f "$cfgfile" "$ofile" || … … 774 799 PACKAGE='$PACKAGE' 775 800 VERSION='$VERSION' 776 TIMESTAMP='$TIMESTAMP'777 801 RM='$RM' 778 802 ofile='$ofile'], []) … … 802 826 [C], [_LT_LANG(C)], 803 827 [C++], [_LT_LANG(CXX)], 828 [Go], [_LT_LANG(GO)], 804 829 [Java], [_LT_LANG(GCJ)], 805 830 [Fortran 77], [_LT_LANG(F77)], … … 821 846 _LT_LANG_$1_CONFIG($1)])dnl 822 847 ])# _LT_LANG 848 849 850 m4_ifndef([AC_PROG_GO], [ 851 ############################################################ 852 # NOTE: This macro has been submitted for inclusion into # 853 # GNU Autoconf as AC_PROG_GO. When it is available in # 854 # a released version of Autoconf we should remove this # 855 # macro and use it instead. # 856 ############################################################ 857 m4_defun([AC_PROG_GO], 858 [AC_LANG_PUSH(Go)dnl 859 AC_ARG_VAR([GOC], [Go compiler command])dnl 860 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 861 _AC_ARG_VAR_LDFLAGS()dnl 862 AC_CHECK_TOOL(GOC, gccgo) 863 if test -z "$GOC"; then 864 if test -n "$ac_tool_prefix"; then 865 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 866 fi 867 fi 868 if test -z "$GOC"; then 869 AC_CHECK_PROG(GOC, gccgo, gccgo, false) 870 fi 871 ])#m4_defun 872 ])#m4_ifndef 823 873 824 874 … … 852 902 m4_ifdef([LT_PROG_GCJ], 853 903 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 904 905 AC_PROVIDE_IFELSE([AC_PROG_GO], 906 [LT_LANG(GO)], 907 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 854 908 855 909 AC_PROVIDE_IFELSE([LT_PROG_RC], … … 943 997 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 944 998 [lt_cv_apple_cc_single_mod=no 945 if test -z "$ {LT_MULTI_MODULE}"; then999 if test -z "$LT_MULTI_MODULE"; then 946 1000 # By default we will add the -single_module flag. You can override 947 1001 # by either setting the environment variable LT_MULTI_MODULE … … 955 1009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 956 1010 _lt_result=$? 957 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 1011 # If there is a non-empty error log, and "single_module" 1012 # appears in it, assume the flag caused a linker warning 1013 if test -s conftest.err && $GREP single_module conftest.err; then 1014 cat conftest.err >&AS_MESSAGE_LOG_FD 1015 # Otherwise, if the output was created with a 0 exit code from 1016 # the compiler, it worked. 1017 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 958 1018 lt_cv_apple_cc_single_mod=yes 959 1019 else … … 963 1023 rm -f conftest.* 964 1024 fi]) 1025 965 1026 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 966 1027 [lt_cv_ld_exported_symbols_list], … … 972 1033 [lt_cv_ld_exported_symbols_list=yes], 973 1034 [lt_cv_ld_exported_symbols_list=no]) 974 LDFLAGS= "$save_LDFLAGS"1035 LDFLAGS=$save_LDFLAGS 975 1036 ]) 1037 976 1038 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 977 1039 [lt_cv_ld_force_load=no … … 991 1053 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 992 1054 _lt_result=$? 993 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 1055 if test -s conftest.err && $GREP force_load conftest.err; then 1056 cat conftest.err >&AS_MESSAGE_LOG_FD 1057 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 994 1058 lt_cv_ld_force_load=yes 995 1059 else … … 1001 1065 case $host_os in 1002 1066 rhapsody* | darwin1.[[012]]) 1003 _lt_dar_allow_undefined='$ {wl}-undefined ${wl}suppress' ;;1067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 1004 1068 darwin1.*) 1005 _lt_dar_allow_undefined='$ {wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;1069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1006 1070 darwin*) # darwin 5.x on 1007 1071 # if running on 10.5 or later, the deployment target defaults … … 1010 1074 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1011 1075 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1012 _lt_dar_allow_undefined='$ {wl}-undefined ${wl}dynamic_lookup' ;;1013 10.[[012]] *)1014 _lt_dar_allow_undefined='$ {wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;1076 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1077 10.[[012]][[,.]]*) 1078 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1015 1079 10.*) 1016 _lt_dar_allow_undefined='$ {wl}-undefined ${wl}dynamic_lookup' ;;1080 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1017 1081 esac 1018 1082 ;; 1019 1083 esac 1020 if test "$lt_cv_apple_cc_single_mod" = "yes"; then1084 if test yes = "$lt_cv_apple_cc_single_mod"; then 1021 1085 _lt_dar_single_mod='$single_module' 1022 1086 fi 1023 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then1024 _lt_dar_export_syms=' $ {wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'1087 if test yes = "$lt_cv_ld_exported_symbols_list"; then 1088 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 1025 1089 else 1026 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$ {libname}-symbols.expsym ${lib}'1090 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 1027 1091 fi 1028 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then1092 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 1029 1093 _lt_dsymutil='~$DSYMUTIL $lib || :' 1030 1094 else … … 1036 1100 1037 1101 1038 # _LT_DARWIN_LINKER_FEATURES 1039 # -------------------------- 1102 # _LT_DARWIN_LINKER_FEATURES([TAG]) 1103 # --------------------------------- 1040 1104 # Checks for linker and compiler features on darwin 1041 1105 m4_defun([_LT_DARWIN_LINKER_FEATURES], … … 1046 1110 _LT_TAGVAR(hardcode_automatic, $1)=yes 1047 1111 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1048 if test "$lt_cv_ld_force_load" = "yes"; then 1049 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 1112 if test yes = "$lt_cv_ld_force_load"; then 1113 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 1114 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 1115 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 1050 1116 else 1051 1117 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1052 1118 fi 1053 1119 _LT_TAGVAR(link_all_deplibs, $1)=yes 1054 _LT_TAGVAR(allow_undefined_flag, $1)= "$_lt_dar_allow_undefined"1120 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 1055 1121 case $cc_basename in 1056 ifort* ) _lt_dar_can_shared=yes ;;1122 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 1057 1123 *) _lt_dar_can_shared=$GCC ;; 1058 1124 esac 1059 if test "$_lt_dar_can_shared" = "yes"; then1125 if test yes = "$_lt_dar_can_shared"; then 1060 1126 output_verbose_link_cmd=func_echo_all 1061 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$ {_lt_dsymutil}"1062 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$ {_lt_dsymutil}"1063 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"1064 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"1127 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 1128 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 1129 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 1130 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 1065 1131 m4_if([$1], [CXX], 1066 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then1067 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$ {lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"1068 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"1132 [ if test yes != "$lt_cv_apple_cc_single_mod"; then 1133 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 1134 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 1069 1135 fi 1070 1136 ],[]) … … 1086 1152 m4_defun([_LT_SYS_MODULE_PATH_AIX], 1087 1153 [m4_require([_LT_DECL_SED])dnl 1088 if test "${lt_cv_aix_libpath+set}" = set; then1154 if test set = "${lt_cv_aix_libpath+set}"; then 1089 1155 aix_libpath=$lt_cv_aix_libpath 1090 1156 else … … 1104 1170 fi],[]) 1105 1171 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1106 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])= "/usr/lib:/lib"1172 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 1107 1173 fi 1108 1174 ]) … … 1124 1190 # Find how we can fake an echo command that does not interpret backslash. 1125 1191 # In particular, with Autoconf 2.60 or later we add some code to the start 1126 # of the generated configure script whichwill find a shell with a builtin1127 # printf ( whichwe can use as an echo command).1192 # of the generated configure script that will find a shell with a builtin 1193 # printf (that we can use as an echo command). 1128 1194 m4_defun([_LT_PROG_ECHO_BACKSLASH], 1129 1195 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' … … 1153 1219 func_echo_all () 1154 1220 { 1155 $ECHO "$*" 1221 $ECHO "$*" 1156 1222 } 1157 1223 1158 case "$ECHO"in1224 case $ECHO in 1159 1225 printf*) AC_MSG_RESULT([printf]) ;; 1160 1226 print*) AC_MSG_RESULT([print -r]) ;; … … 1182 1248 [AC_MSG_CHECKING([for sysroot]) 1183 1249 AC_ARG_WITH([sysroot], 1184 [ --with-sysroot[=DIR] Search for dependent libraries within DIR 1185 (or the compiler's sysroot if not specified).], 1250 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 1251 [Search for dependent libraries within DIR (or the compiler's sysroot 1252 if not specified).])], 1186 1253 [], [with_sysroot=no]) 1187 1254 … … 1189 1256 dnl in case the user passed a directory name. 1190 1257 lt_sysroot= 1191 case $ {with_sysroot}in #(1258 case $with_sysroot in #( 1192 1259 yes) 1193 if test "$GCC" = yes; then1260 if test yes = "$GCC"; then 1194 1261 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 1195 1262 fi … … 1201 1268 ;; #( 1202 1269 *) 1203 AC_MSG_RESULT([$ {with_sysroot}])1270 AC_MSG_RESULT([$with_sysroot]) 1204 1271 AC_MSG_ERROR([The sysroot must be an absolute path.]) 1205 1272 ;; … … 1208 1275 AC_MSG_RESULT([${lt_sysroot:-no}]) 1209 1276 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 1210 [dependent libraries, and in whichour libraries should be installed.])])1277 [dependent libraries, and where our libraries should be installed.])]) 1211 1278 1212 1279 # _LT_ENABLE_LOCK … … 1216 1283 [AS_HELP_STRING([--disable-libtool-lock], 1217 1284 [avoid locking (might break parallel builds)])]) 1218 test "x$enable_libtool_lock" != xno &&enable_libtool_lock=yes1285 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 1219 1286 1220 1287 # Some flags need to be propagated to the compiler or linker for good … … 1222 1289 case $host in 1223 1290 ia64-*-hpux*) 1224 # Find out which ABI we are using. 1291 # Find out what ABI is being produced by ac_compile, and set mode 1292 # options accordingly. 1225 1293 echo 'int i;' > conftest.$ac_ext 1226 1294 if AC_TRY_EVAL(ac_compile); then 1227 1295 case `/usr/bin/file conftest.$ac_objext` in 1228 1296 *ELF-32*) 1229 HPUX_IA64_MODE= "32"1297 HPUX_IA64_MODE=32 1230 1298 ;; 1231 1299 *ELF-64*) 1232 HPUX_IA64_MODE= "64"1300 HPUX_IA64_MODE=64 1233 1301 ;; 1234 1302 esac … … 1237 1305 ;; 1238 1306 *-*-irix6*) 1239 # Find out which ABI we are using. 1307 # Find out what ABI is being produced by ac_compile, and set linker 1308 # options accordingly. 1240 1309 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1241 1310 if AC_TRY_EVAL(ac_compile); then 1242 if test "$lt_cv_prog_gnu_ld" = yes; then1311 if test yes = "$lt_cv_prog_gnu_ld"; then 1243 1312 case `/usr/bin/file conftest.$ac_objext` in 1244 1313 *32-bit*) … … 1269 1338 ;; 1270 1339 1271 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 1340 mips64*-*linux*) 1341 # Find out what ABI is being produced by ac_compile, and set linker 1342 # options accordingly. 1343 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1344 if AC_TRY_EVAL(ac_compile); then 1345 emul=elf 1346 case `/usr/bin/file conftest.$ac_objext` in 1347 *32-bit*) 1348 emul="${emul}32" 1349 ;; 1350 *64-bit*) 1351 emul="${emul}64" 1352 ;; 1353 esac 1354 case `/usr/bin/file conftest.$ac_objext` in 1355 *MSB*) 1356 emul="${emul}btsmip" 1357 ;; 1358 *LSB*) 1359 emul="${emul}ltsmip" 1360 ;; 1361 esac 1362 case `/usr/bin/file conftest.$ac_objext` in 1363 *N32*) 1364 emul="${emul}n32" 1365 ;; 1366 esac 1367 LD="${LD-ld} -m $emul" 1368 fi 1369 rm -rf conftest* 1370 ;; 1371 1372 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 1272 1373 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 1273 # Find out which ABI we are using. 1374 # Find out what ABI is being produced by ac_compile, and set linker 1375 # options accordingly. Note that the listed cases only cover the 1376 # situations where additional linker options are needed (such as when 1377 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 1378 # vice versa); the common cases where no linker options are needed do 1379 # not appear in the list. 1274 1380 echo 'int i;' > conftest.$ac_ext 1275 1381 if AC_TRY_EVAL(ac_compile); then … … 1281 1387 ;; 1282 1388 x86_64-*linux*) 1283 LD="${LD-ld} -m elf_i386" 1389 case `/usr/bin/file conftest.o` in 1390 *x86-64*) 1391 LD="${LD-ld} -m elf32_x86_64" 1392 ;; 1393 *) 1394 LD="${LD-ld} -m elf_i386" 1395 ;; 1396 esac 1284 1397 ;; 1285 ppc64-*linux*|powerpc64-*linux*) 1398 powerpc64le-*linux*) 1399 LD="${LD-ld} -m elf32lppclinux" 1400 ;; 1401 powerpc64-*linux*) 1286 1402 LD="${LD-ld} -m elf32ppclinux" 1287 1403 ;; … … 1302 1418 LD="${LD-ld} -m elf_x86_64" 1303 1419 ;; 1304 ppc*-*linux*|powerpc*-*linux*) 1420 powerpcle-*linux*) 1421 LD="${LD-ld} -m elf64lppc" 1422 ;; 1423 powerpc-*linux*) 1305 1424 LD="${LD-ld} -m elf64ppc" 1306 1425 ;; … … 1320 1439 *-*-sco3.2v5*) 1321 1440 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1322 SAVE_CFLAGS= "$CFLAGS"1441 SAVE_CFLAGS=$CFLAGS 1323 1442 CFLAGS="$CFLAGS -belf" 1324 1443 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, … … 1326 1445 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1327 1446 AC_LANG_POP]) 1328 if test x"$lt_cv_cc_needs_belf" != x"yes"; then1447 if test yes != "$lt_cv_cc_needs_belf"; then 1329 1448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1330 CFLAGS= "$SAVE_CFLAGS"1449 CFLAGS=$SAVE_CFLAGS 1331 1450 fi 1332 1451 ;; 1333 sparc*-*solaris*) 1334 # Find out which ABI we are using. 1452 *-*solaris*) 1453 # Find out what ABI is being produced by ac_compile, and set linker 1454 # options accordingly. 1335 1455 echo 'int i;' > conftest.$ac_ext 1336 1456 if AC_TRY_EVAL(ac_compile); then … … 1338 1458 *64-bit*) 1339 1459 case $lt_cv_prog_gnu_ld in 1340 yes*) LD="${LD-ld} -m elf64_sparc" ;; 1460 yes*) 1461 case $host in 1462 i?86-*-solaris*|x86_64-*-solaris*) 1463 LD="${LD-ld} -m elf_x86_64" 1464 ;; 1465 sparc*-*-solaris*) 1466 LD="${LD-ld} -m elf64_sparc" 1467 ;; 1468 esac 1469 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 1470 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 1471 LD=${LD-ld}_sol2 1472 fi 1473 ;; 1341 1474 *) 1342 1475 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then … … 1352 1485 esac 1353 1486 1354 need_locks= "$enable_libtool_lock"1487 need_locks=$enable_libtool_lock 1355 1488 ])# _LT_ENABLE_LOCK 1356 1489 … … 1371 1504 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 1372 1505 AC_TRY_EVAL([lt_ar_try]) 1373 if test "$ac_status" -eq 0; then1506 if test 0 -eq "$ac_status"; then 1374 1507 # Ensure the archiver fails upon bogus file names. 1375 1508 rm -f conftest.$ac_objext libconftest.a 1376 1509 AC_TRY_EVAL([lt_ar_try]) 1377 if test "$ac_status" -ne 0; then1510 if test 0 -ne "$ac_status"; then 1378 1511 lt_cv_ar_at_file=@ 1379 1512 fi … … 1383 1516 ]) 1384 1517 1385 if test "x$lt_cv_ar_at_file" = xno; then1518 if test no = "$lt_cv_ar_at_file"; then 1386 1519 archiver_list_spec= 1387 1520 else … … 1414 1547 if test -n "$RANLIB"; then 1415 1548 case $host_os in 1416 openbsd*)1417 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$ oldlib"1549 bitrig* | openbsd*) 1550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 1418 1551 ;; 1419 1552 *) 1420 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$ oldlib"1553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 1421 1554 ;; 1422 1555 esac 1423 old_archive_cmds="$old_archive_cmds~\$RANLIB \$ oldlib"1556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 1424 1557 fi 1425 1558 … … 1450 1583 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1451 1584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1452 lt_compiler_flag="$3" 1585 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 1453 1586 # Insert the option either (1) after the last *FLAGS variable, or 1454 1587 # (2) before a word containing "conftest.", or (3) at the end. … … 1477 1610 ]) 1478 1611 1479 if test x"[$]$2" = xyes; then1612 if test yes = "[$]$2"; then 1480 1613 m4_if([$5], , :, [$5]) 1481 1614 else … … 1499 1632 AC_CACHE_CHECK([$1], [$2], 1500 1633 [$2=no 1501 save_LDFLAGS= "$LDFLAGS"1634 save_LDFLAGS=$LDFLAGS 1502 1635 LDFLAGS="$LDFLAGS $3" 1503 1636 echo "$lt_simple_link_test_code" > conftest.$ac_ext … … 1518 1651 fi 1519 1652 $RM -r conftest* 1520 LDFLAGS= "$save_LDFLAGS"1653 LDFLAGS=$save_LDFLAGS 1521 1654 ]) 1522 1655 1523 if test x"[$]$2" = xyes; then1656 if test yes = "[$]$2"; then 1524 1657 m4_if([$4], , :, [$4]) 1525 1658 else … … 1542 1675 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1543 1676 i=0 1544 teststring= "ABCD"1677 teststring=ABCD 1545 1678 1546 1679 case $build_os in … … 1582 1715 ;; 1583 1716 1584 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)1717 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 1585 1718 # This has been around since 386BSD, at least. Likely further. 1586 1719 if test -x /sbin/sysctl; then … … 1599 1732 # We know the value 262144 and hardcode it with a safety zone (like BSD) 1600 1733 lt_cv_sys_max_cmd_len=196608 1734 ;; 1735 1736 os2*) 1737 # The test takes a long time on OS/2. 1738 lt_cv_sys_max_cmd_len=8192 1601 1739 ;; 1602 1740 … … 1627 1765 *) 1628 1766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 1629 if test -n "$lt_cv_sys_max_cmd_len"; then 1767 if test -n "$lt_cv_sys_max_cmd_len" && \ 1768 test undefined != "$lt_cv_sys_max_cmd_len"; then 1630 1769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1631 1770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` … … 1633 1772 # Make teststring a little bigger before we do anything with it. 1634 1773 # a 1K string should be a reasonable start. 1635 for i in 1 2 3 4 5 6 7 8 1774 for i in 1 2 3 4 5 6 7 8; do 1636 1775 teststring=$teststring$teststring 1637 1776 done … … 1640 1779 # maximum length that is only half of the actual maximum length, but 1641 1780 # we can't tell. 1642 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \1781 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 1643 1782 = "X$teststring$teststring"; } >/dev/null 2>&1 && 1644 test $i != 17# 1/2 MB should be enough1783 test 17 != "$i" # 1/2 MB should be enough 1645 1784 do 1646 1785 i=`expr $i + 1` … … 1658 1797 esac 1659 1798 ]) 1660 if test -n $lt_cv_sys_max_cmd_len; then1799 if test -n "$lt_cv_sys_max_cmd_len"; then 1661 1800 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1662 1801 else … … 1686 1825 m4_defun([_LT_TRY_DLOPEN_SELF], 1687 1826 [m4_require([_LT_HEADER_DLFCN])dnl 1688 if test "$cross_compiling" = yes; then :1827 if test yes = "$cross_compiling"; then : 1689 1828 [$4] 1690 1829 else … … 1733 1872 #endif 1734 1873 1735 /* When -fvis bility=hidden is used, assume the code has been annotated1874 /* When -fvisibility=hidden is used, assume the code has been annotated 1736 1875 correspondingly for the symbols needed. */ 1737 #if defined (__GNUC__)&& (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))1876 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 1738 1877 int fnord () __attribute__((visibility("default"))); 1739 1878 #endif … … 1761 1900 }] 1762 1901 _LT_EOF 1763 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}2>/dev/null; then1902 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 1764 1903 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1765 1904 lt_status=$? … … 1782 1921 AC_DEFUN([LT_SYS_DLOPEN_SELF], 1783 1922 [m4_require([_LT_HEADER_DLFCN])dnl 1784 if test "x$enable_dlopen" != xyes; then1923 if test yes != "$enable_dlopen"; then 1785 1924 enable_dlopen=unknown 1786 1925 enable_dlopen_self=unknown … … 1792 1931 case $host_os in 1793 1932 beos*) 1794 lt_cv_dlopen= "load_add_on"1933 lt_cv_dlopen=load_add_on 1795 1934 lt_cv_dlopen_libs= 1796 1935 lt_cv_dlopen_self=yes … … 1798 1937 1799 1938 mingw* | pw32* | cegcc*) 1800 lt_cv_dlopen= "LoadLibrary"1939 lt_cv_dlopen=LoadLibrary 1801 1940 lt_cv_dlopen_libs= 1802 1941 ;; 1803 1942 1804 1943 cygwin*) 1805 lt_cv_dlopen= "dlopen"1944 lt_cv_dlopen=dlopen 1806 1945 lt_cv_dlopen_libs= 1807 1946 ;; 1808 1947 1809 1948 darwin*) 1810 # if libdl is installed we need to link against it1949 # if libdl is installed we need to link against it 1811 1950 AC_CHECK_LIB([dl], [dlopen], 1812 [lt_cv_dlopen= "dlopen" lt_cv_dlopen_libs="-ldl"],[1813 lt_cv_dlopen= "dyld"1951 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 1952 lt_cv_dlopen=dyld 1814 1953 lt_cv_dlopen_libs= 1815 1954 lt_cv_dlopen_self=yes … … 1817 1956 ;; 1818 1957 1958 tpf*) 1959 # Don't try to run any link tests for TPF. We know it's impossible 1960 # because TPF is a cross-compiler, and we know how we open DSOs. 1961 lt_cv_dlopen=dlopen 1962 lt_cv_dlopen_libs= 1963 lt_cv_dlopen_self=no 1964 ;; 1965 1819 1966 *) 1820 1967 AC_CHECK_FUNC([shl_load], 1821 [lt_cv_dlopen= "shl_load"],1968 [lt_cv_dlopen=shl_load], 1822 1969 [AC_CHECK_LIB([dld], [shl_load], 1823 [lt_cv_dlopen= "shl_load" lt_cv_dlopen_libs="-ldld"],1970 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 1824 1971 [AC_CHECK_FUNC([dlopen], 1825 [lt_cv_dlopen= "dlopen"],1972 [lt_cv_dlopen=dlopen], 1826 1973 [AC_CHECK_LIB([dl], [dlopen], 1827 [lt_cv_dlopen= "dlopen" lt_cv_dlopen_libs="-ldl"],1974 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 1828 1975 [AC_CHECK_LIB([svld], [dlopen], 1829 [lt_cv_dlopen= "dlopen" lt_cv_dlopen_libs="-lsvld"],1976 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 1830 1977 [AC_CHECK_LIB([dld], [dld_link], 1831 [lt_cv_dlopen= "dld_link" lt_cv_dlopen_libs="-ldld"])1978 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 1832 1979 ]) 1833 1980 ]) … … 1838 1985 esac 1839 1986 1840 if test "x$lt_cv_dlopen" != xno; then 1987 if test no = "$lt_cv_dlopen"; then 1988 enable_dlopen=no 1989 else 1841 1990 enable_dlopen=yes 1842 else1843 enable_dlopen=no1844 1991 fi 1845 1992 1846 1993 case $lt_cv_dlopen in 1847 1994 dlopen) 1848 save_CPPFLAGS= "$CPPFLAGS"1849 test "x$ac_cv_header_dlfcn_h" = xyes&& CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"1850 1851 save_LDFLAGS= "$LDFLAGS"1995 save_CPPFLAGS=$CPPFLAGS 1996 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1997 1998 save_LDFLAGS=$LDFLAGS 1852 1999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1853 2000 1854 save_LIBS= "$LIBS"2001 save_LIBS=$LIBS 1855 2002 LIBS="$lt_cv_dlopen_libs $LIBS" 1856 2003 … … 1862 2009 ]) 1863 2010 1864 if test "x$lt_cv_dlopen_self" = xyes; then2011 if test yes = "$lt_cv_dlopen_self"; then 1865 2012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1866 2013 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], … … 1872 2019 fi 1873 2020 1874 CPPFLAGS= "$save_CPPFLAGS"1875 LDFLAGS= "$save_LDFLAGS"1876 LIBS= "$save_LIBS"2021 CPPFLAGS=$save_CPPFLAGS 2022 LDFLAGS=$save_LDFLAGS 2023 LIBS=$save_LIBS 1877 2024 ;; 1878 2025 esac … … 1966 2113 _LT_COMPILER_C_O([$1]) 1967 2114 1968 hard_links= "nottested"1969 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then2115 hard_links=nottested 2116 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 1970 2117 # do not overwrite the value of need_locks provided by the user 1971 2118 AC_MSG_CHECKING([if we can lock with hard links]) … … 1977 2124 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1978 2125 AC_MSG_RESULT([$hard_links]) 1979 if test "$hard_links" = no; then1980 AC_MSG_WARN([ `$CC' does not support `-c -o', so `make -j' may be unsafe])2126 if test no = "$hard_links"; then 2127 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 1981 2128 need_locks=warn 1982 2129 fi … … 2005 2152 [The name of the directory that contains temporary libtool files])dnl 2006 2153 m4_pattern_allow([LT_OBJDIR])dnl 2007 AC_DEFINE_UNQUOTED( LT_OBJDIR, "$lt_cv_objdir/",2008 [Define to the sub-directory in whichlibtool stores uninstalled libraries.])2154 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 2155 [Define to the sub-directory where libtool stores uninstalled libraries.]) 2009 2156 ])# _LT_CHECK_OBJDIR 2010 2157 … … 2018 2165 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2019 2166 test -n "$_LT_TAGVAR(runpath_var, $1)" || 2020 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes"; then2167 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 2021 2168 2022 2169 # We can hardcode non-existent directories. 2023 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no&&2170 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 2024 2171 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2025 2172 # have to relink, otherwise we might link with an installed library 2026 2173 # when we should be linking with a yet-to-be-installed one 2027 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no&&2028 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then2174 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 2175 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 2029 2176 # Linking always hardcodes the temporary library directory. 2030 2177 _LT_TAGVAR(hardcode_action, $1)=relink … … 2040 2187 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2041 2188 2042 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink||2043 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then2189 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 2190 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 2044 2191 # Fast installation is not supported 2045 2192 enable_fast_install=no 2046 elif test "$shlibpath_overrides_runpath" = yes||2047 test "$enable_shared" = no; then2193 elif test yes = "$shlibpath_overrides_runpath" || 2194 test no = "$enable_shared"; then 2048 2195 # Fast installation is not necessary 2049 2196 enable_fast_install=needless … … 2069 2216 case $host_os in 2070 2217 darwin*) 2071 if test -n "$STRIP" 2218 if test -n "$STRIP"; then 2072 2219 striplib="$STRIP -x" 2073 2220 old_striplib="$STRIP -S" … … 2087 2234 2088 2235 2236 # _LT_PREPARE_MUNGE_PATH_LIST 2237 # --------------------------- 2238 # Make sure func_munge_path_list() is defined correctly. 2239 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 2240 [[# func_munge_path_list VARIABLE PATH 2241 # ----------------------------------- 2242 # VARIABLE is name of variable containing _space_ separated list of 2243 # directories to be munged by the contents of PATH, which is string 2244 # having a format: 2245 # "DIR[:DIR]:" 2246 # string "DIR[ DIR]" will be prepended to VARIABLE 2247 # ":DIR[:DIR]" 2248 # string "DIR[ DIR]" will be appended to VARIABLE 2249 # "DIRP[:DIRP]::[DIRA:]DIRA" 2250 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 2251 # "DIRA[ DIRA]" will be appended to VARIABLE 2252 # "DIR[:DIR]" 2253 # VARIABLE will be replaced by "DIR[ DIR]" 2254 func_munge_path_list () 2255 { 2256 case x@S|@2 in 2257 x) 2258 ;; 2259 *:) 2260 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 2261 ;; 2262 x:*) 2263 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 2264 ;; 2265 *::*) 2266 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 2267 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 2268 ;; 2269 *) 2270 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 2271 ;; 2272 esac 2273 } 2274 ]])# _LT_PREPARE_PATH_LIST 2275 2276 2089 2277 # _LT_SYS_DYNAMIC_LINKER([TAG]) 2090 2278 # ----------------------------- … … 2097 2285 m4_require([_LT_DECL_SED])dnl 2098 2286 m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2287 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 2099 2288 AC_MSG_CHECKING([dynamic linker characteristics]) 2100 2289 m4_if([$1], 2101 2290 [], [ 2102 if test "$GCC" = yes; then2291 if test yes = "$GCC"; then 2103 2292 case $host_os in 2104 darwin*) lt_awk_arg= "/^libraries:/,/LR/";;2105 *) lt_awk_arg= "/^libraries:/";;2293 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 2294 *) lt_awk_arg='/^libraries:/' ;; 2106 2295 esac 2107 2296 case $host_os in 2108 mingw* | cegcc*) lt_sed_strip_eq= "s,=\([[A-Za-z]]:\),\1,g";;2109 *) lt_sed_strip_eq= "s,=/,/,g";;2297 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 2298 *) lt_sed_strip_eq='s|=/|/|g' ;; 2110 2299 esac 2111 2300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` … … 2123 2312 esac 2124 2313 # Ok, now we have the path, separated by spaces, we can step through it 2125 # and add multilib dir if necessary. 2314 # and add multilib dir if necessary... 2126 2315 lt_tmp_lt_search_path_spec= 2127 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2316 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2317 # ...but if some path component already ends with the multilib dir we assume 2318 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 2319 case "$lt_multi_os_dir; $lt_search_path_spec " in 2320 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 2321 lt_multi_os_dir= 2322 ;; 2323 esac 2128 2324 for lt_sys_path in $lt_search_path_spec; do 2129 if test -d "$lt_sys_path /$lt_multi_os_dir"; then2130 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path /$lt_multi_os_dir"2131 el se2325 if test -d "$lt_sys_path$lt_multi_os_dir"; then 2326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 2327 elif test -n "$lt_multi_os_dir"; then 2132 2328 test -d "$lt_sys_path" && \ 2133 2329 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" … … 2135 2331 done 2136 2332 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 2137 BEGIN {RS =" "; FS="/|\n";} {2138 lt_foo ="";2139 lt_count =0;2333 BEGIN {RS = " "; FS = "/|\n";} { 2334 lt_foo = ""; 2335 lt_count = 0; 2140 2336 for (lt_i = NF; lt_i > 0; lt_i--) { 2141 2337 if ($lt_i != "" && $lt_i != ".") { … … 2144 2340 } else { 2145 2341 if (lt_count == 0) { 2146 lt_foo ="/" $lt_i lt_foo;2342 lt_foo = "/" $lt_i lt_foo; 2147 2343 } else { 2148 2344 lt_count--; … … 2158 2354 case $host_os in 2159 2355 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 2160 $SED 's ,/\([[A-Za-z]]:\),\1,g'` ;;2356 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 2161 2357 esac 2162 2358 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` … … 2167 2363 libname_spec='lib$name' 2168 2364 soname_spec= 2169 shrext_cmds= ".so"2365 shrext_cmds=.so 2170 2366 postinstall_cmds= 2171 2367 postuninstall_cmds= … … 2184 2380 need_version=unknown 2185 2381 2382 AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 2383 [User-defined run-time library search path.]) 2384 2186 2385 case $host_os in 2187 2386 aix3*) 2188 version_type=linux 2189 library_names_spec='$ {libname}${release}${shared_ext}$versuffix $libname.a'2387 version_type=linux # correct to gnu/linux during the next big refactor 2388 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 2190 2389 shlibpath_var=LIBPATH 2191 2390 2192 2391 # AIX 3 has no versioning support, so we append a major version to the name. 2193 soname_spec='$ {libname}${release}${shared_ext}$major'2392 soname_spec='$libname$release$shared_ext$major' 2194 2393 ;; 2195 2394 2196 2395 aix[[4-9]]*) 2197 version_type=linux 2396 version_type=linux # correct to gnu/linux during the next big refactor 2198 2397 need_lib_prefix=no 2199 2398 need_version=no 2200 2399 hardcode_into_libs=yes 2201 if test "$host_cpu" = ia64; then2400 if test ia64 = "$host_cpu"; then 2202 2401 # AIX 5 supports IA64 2203 library_names_spec='$ {libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'2402 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 2204 2403 shlibpath_var=LD_LIBRARY_PATH 2205 2404 else 2206 2405 # With GCC up to 2.95.x, collect2 would create an import file 2207 2406 # for dependence libraries. The import file would start with 2208 # the line `#! .'. This would cause the generated library to2209 # depend on `.', always an invalid library. This was fixed in2407 # the line '#! .'. This would cause the generated library to 2408 # depend on '.', always an invalid library. This was fixed in 2210 2409 # development snapshots of GCC prior to 3.0. 2211 2410 case $host_os in … … 2213 2412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2214 2413 echo ' yes ' 2215 echo '#endif'; } | $ {CC}-E - | $GREP yes > /dev/null; then2414 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 2216 2415 : 2217 2416 else … … 2220 2419 ;; 2221 2420 esac 2222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 2421 # Using Import Files as archive members, it is possible to support 2422 # filename-based versioning of shared library archives on AIX. While 2423 # this would work for both with and without runtime linking, it will 2424 # prevent static linking of such archives. So we do filename-based 2425 # shared library versioning with .so extension only, which is used 2426 # when both runtime linking and shared linking is enabled. 2427 # Unfortunately, runtime linking may impact performance, so we do 2428 # not want this to be the default eventually. Also, we use the 2429 # versioned .so libs for executables only if there is the -brtl 2430 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 2431 # To allow for filename-based versioning support, we need to create 2432 # libNAME.so.V as an archive file, containing: 2433 # *) an Import File, referring to the versioned filename of the 2434 # archive as well as the shared archive member, telling the 2435 # bitwidth (32 or 64) of that shared object, and providing the 2436 # list of exported symbols of that shared object, eventually 2437 # decorated with the 'weak' keyword 2438 # *) the shared object with the F_LOADONLY flag set, to really avoid 2439 # it being seen by the linker. 2440 # At run time we better use the real file rather than another symlink, 2441 # but for link time we create the symlink libNAME.so -> libNAME.so.V 2442 2443 case $with_aix_soname,$aix_use_runtimelinking in 2444 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 2223 2445 # soname into executable. Probably we can add versioning support to 2224 2446 # collect2, so additional links can be useful in future. 2225 if test "$aix_use_runtimelinking" = yes; then 2447 aix,yes) # traditional libtool 2448 dynamic_linker='AIX unversionable lib.so' 2226 2449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2227 2450 # instead of lib<name>.a to let people know that these are not 2228 2451 # typical AIX shared libraries. 2229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2230 else 2452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2453 ;; 2454 aix,no) # traditional AIX only 2455 dynamic_linker='AIX lib.a[(]lib.so.V[)]' 2231 2456 # We preserve .a as extension for shared libraries through AIX4.2 2232 2457 # and later when we are not doing run time linking. 2233 library_names_spec='${libname}${release}.a $libname.a' 2234 soname_spec='${libname}${release}${shared_ext}$major' 2235 fi 2458 library_names_spec='$libname$release.a $libname.a' 2459 soname_spec='$libname$release$shared_ext$major' 2460 ;; 2461 svr4,*) # full svr4 only 2462 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 2463 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 2464 # We do not specify a path in Import Files, so LIBPATH fires. 2465 shlibpath_overrides_runpath=yes 2466 ;; 2467 *,yes) # both, prefer svr4 2468 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 2469 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 2470 # unpreferred sharedlib libNAME.a needs extra handling 2471 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 2472 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 2473 # We do not specify a path in Import Files, so LIBPATH fires. 2474 shlibpath_overrides_runpath=yes 2475 ;; 2476 *,no) # both, prefer aix 2477 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 2478 library_names_spec='$libname$release.a $libname.a' 2479 soname_spec='$libname$release$shared_ext$major' 2480 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 2481 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 2482 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 2483 ;; 2484 esac 2236 2485 shlibpath_var=LIBPATH 2237 2486 fi … … 2243 2492 # Since July 2007 AmigaOS4 officially supports .so libraries. 2244 2493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 2245 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2246 2495 ;; 2247 2496 m68k) 2248 2497 library_names_spec='$libname.ixlibrary $libname.a' 2249 2498 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2250 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'2499 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 2251 2500 ;; 2252 2501 esac … … 2254 2503 2255 2504 beos*) 2256 library_names_spec='$ {libname}${shared_ext}'2505 library_names_spec='$libname$shared_ext' 2257 2506 dynamic_linker="$host_os ld.so" 2258 2507 shlibpath_var=LIBRARY_PATH … … 2260 2509 2261 2510 bsdi[[45]]*) 2262 version_type=linux 2511 version_type=linux # correct to gnu/linux during the next big refactor 2263 2512 need_version=no 2264 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2265 soname_spec='$ {libname}${release}${shared_ext}$major'2513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2514 soname_spec='$libname$release$shared_ext$major' 2266 2515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2267 2516 shlibpath_var=LD_LIBRARY_PATH … … 2275 2524 cygwin* | mingw* | pw32* | cegcc*) 2276 2525 version_type=windows 2277 shrext_cmds= ".dll"2526 shrext_cmds=.dll 2278 2527 need_version=no 2279 2528 need_lib_prefix=no … … 2284 2533 library_names_spec='$libname.dll.a' 2285 2534 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2286 postinstall_cmds='base_file=`basename \$ {file}`~2287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$ {base_file}'\''i; echo \$dlname'\''`~2535 postinstall_cmds='base_file=`basename \$file`~ 2536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 2288 2537 dldir=$destdir/`dirname \$dlpath`~ 2289 2538 test -d \$dldir || mkdir -p \$dldir~ … … 2301 2550 cygwin*) 2302 2551 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2303 soname_spec='`echo $ {libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2552 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2304 2553 m4_if([$1], [],[ 2305 2554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) … … 2307 2556 mingw* | cegcc*) 2308 2557 # MinGW DLLs use traditional 'lib' prefix 2309 soname_spec='$ {libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2558 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2310 2559 ;; 2311 2560 pw32*) 2312 2561 # pw32 DLLs use 'pw' prefix rather than 'lib' 2313 library_names_spec='`echo $ {libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2562 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2314 2563 ;; 2315 2564 esac … … 2320 2569 # Native MSVC 2321 2570 libname_spec='$name' 2322 soname_spec='$ {libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2323 library_names_spec='$ {libname}.dll.lib'2571 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2572 library_names_spec='$libname.dll.lib' 2324 2573 2325 2574 case $build_os in … … 2348 2597 ;; 2349 2598 *) 2350 sys_lib_search_path_spec= "$LIB"2599 sys_lib_search_path_spec=$LIB 2351 2600 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2352 2601 # It is most probably a Windows format PATH. … … 2361 2610 2362 2611 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2363 postinstall_cmds='base_file=`basename \$ {file}`~2364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$ {base_file}'\''i; echo \$dlname'\''`~2612 postinstall_cmds='base_file=`basename \$file`~ 2613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 2365 2614 dldir=$destdir/`dirname \$dlpath`~ 2366 2615 test -d \$dldir || mkdir -p \$dldir~ … … 2375 2624 *) 2376 2625 # Assume MSVC wrapper 2377 library_names_spec='$ {libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}$libname.lib'2626 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 2378 2627 dynamic_linker='Win32 ld.exe' 2379 2628 ;; … … 2388 2637 need_lib_prefix=no 2389 2638 need_version=no 2390 library_names_spec='$ {libname}${release}${major}$shared_ext ${libname}$shared_ext'2391 soname_spec='$ {libname}${release}${major}$shared_ext'2639 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 2640 soname_spec='$libname$release$major$shared_ext' 2392 2641 shlibpath_overrides_runpath=yes 2393 2642 shlibpath_var=DYLD_LIBRARY_PATH … … 2399 2648 2400 2649 dgux*) 2401 version_type=linux 2650 version_type=linux # correct to gnu/linux during the next big refactor 2402 2651 need_lib_prefix=no 2403 2652 need_version=no 2404 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'2405 soname_spec='$ {libname}${release}${shared_ext}$major'2653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2654 soname_spec='$libname$release$shared_ext$major' 2406 2655 shlibpath_var=LD_LIBRARY_PATH 2407 ;;2408 2409 freebsd1*)2410 dynamic_linker=no2411 2656 ;; 2412 2657 … … 2418 2663 else 2419 2664 case $host_os in 2420 freebsd[[ 123]]*) objformat=aout ;;2665 freebsd[[23]].*) objformat=aout ;; 2421 2666 *) objformat=elf ;; 2422 2667 esac … … 2425 2670 case $version_type in 2426 2671 freebsd-elf*) 2427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2673 soname_spec='$libname$release$shared_ext$major' 2428 2674 need_version=no 2429 2675 need_lib_prefix=no 2430 2676 ;; 2431 2677 freebsd-*) 2432 library_names_spec='$ {libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'2678 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2433 2679 need_version=yes 2434 2680 ;; … … 2436 2682 shlibpath_var=LD_LIBRARY_PATH 2437 2683 case $host_os in 2438 freebsd2 *)2684 freebsd2.*) 2439 2685 shlibpath_overrides_runpath=yes 2440 2686 ;; … … 2455 2701 ;; 2456 2702 2457 gnu*)2458 version_type=linux2459 need_lib_prefix=no2460 need_version=no2461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'2462 soname_spec='${libname}${release}${shared_ext}$major'2463 shlibpath_var=LD_LIBRARY_PATH2464 shlibpath_overrides_runpath=no2465 hardcode_into_libs=yes2466 ;;2467 2468 2703 haiku*) 2469 version_type=linux 2704 version_type=linux # correct to gnu/linux during the next big refactor 2470 2705 need_lib_prefix=no 2471 2706 need_version=no 2472 2707 dynamic_linker="$host_os runtime_loader" 2473 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'2474 soname_spec='$ {libname}${release}${shared_ext}$major'2708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2709 soname_spec='$libname$release$shared_ext$major' 2475 2710 shlibpath_var=LIBRARY_PATH 2476 shlibpath_overrides_runpath= yes2711 shlibpath_overrides_runpath=no 2477 2712 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 2478 2713 hardcode_into_libs=yes … … 2492 2727 shlibpath_var=LD_LIBRARY_PATH 2493 2728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2494 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2495 soname_spec='$ {libname}${release}${shared_ext}$major'2496 if test "X$HPUX_IA64_MODE" = X32; then2729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2730 soname_spec='$libname$release$shared_ext$major' 2731 if test 32 = "$HPUX_IA64_MODE"; then 2497 2732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 2733 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 2498 2734 else 2499 2735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2736 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 2500 2737 fi 2501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec2502 2738 ;; 2503 2739 hppa*64*) … … 2507 2743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2508 2744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2509 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2510 soname_spec='$ {libname}${release}${shared_ext}$major'2745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2746 soname_spec='$libname$release$shared_ext$major' 2511 2747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2512 2748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec … … 2517 2753 shlibpath_var=SHLIB_PATH 2518 2754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2519 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2520 soname_spec='$ {libname}${release}${shared_ext}$major'2755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2756 soname_spec='$libname$release$shared_ext$major' 2521 2757 ;; 2522 2758 esac … … 2528 2764 2529 2765 interix[[3-9]]*) 2530 version_type=linux 2766 version_type=linux # correct to gnu/linux during the next big refactor 2531 2767 need_lib_prefix=no 2532 2768 need_version=no 2533 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'2534 soname_spec='$ {libname}${release}${shared_ext}$major'2769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2770 soname_spec='$libname$release$shared_ext$major' 2535 2771 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2536 2772 shlibpath_var=LD_LIBRARY_PATH … … 2543 2779 nonstopux*) version_type=nonstopux ;; 2544 2780 *) 2545 if test "$lt_cv_prog_gnu_ld" = yes; then2546 version_type=linux 2781 if test yes = "$lt_cv_prog_gnu_ld"; then 2782 version_type=linux # correct to gnu/linux during the next big refactor 2547 2783 else 2548 2784 version_type=irix … … 2551 2787 need_lib_prefix=no 2552 2788 need_version=no 2553 soname_spec='$ {libname}${release}${shared_ext}$major'2554 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'2789 soname_spec='$libname$release$shared_ext$major' 2790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 2555 2791 case $host_os in 2556 2792 irix5* | nonstopux*) … … 2571 2807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2572 2808 shlibpath_overrides_runpath=no 2573 sys_lib_search_path_spec="/usr/lib$ {libsuff} /lib${libsuff} /usr/local/lib${libsuff}"2574 sys_lib_dlsearch_path_spec="/usr/lib$ {libsuff} /lib${libsuff}"2809 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 2810 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 2575 2811 hardcode_into_libs=yes 2576 2812 ;; … … 2581 2817 ;; 2582 2818 2583 # This must be Linux ELF. 2584 linux* | k*bsd*-gnu | kopensolaris*-gnu) 2585 version_type=linux 2819 linux*android*) 2820 version_type=none # Android doesn't support versioned libraries. 2586 2821 need_lib_prefix=no 2587 2822 need_version=no 2588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2589 soname_spec='${libname}${release}${shared_ext}$major' 2823 library_names_spec='$libname$release$shared_ext' 2824 soname_spec='$libname$release$shared_ext' 2825 finish_cmds= 2826 shlibpath_var=LD_LIBRARY_PATH 2827 shlibpath_overrides_runpath=yes 2828 2829 # This implies no fast_install, which is unacceptable. 2830 # Some rework will be needed to allow for fast_install 2831 # before this can be enabled. 2832 hardcode_into_libs=yes 2833 2834 dynamic_linker='Android linker' 2835 # Don't embed -rpath directories since the linker doesn't support them. 2836 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 2837 ;; 2838 2839 # This must be glibc/ELF. 2840 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 2841 version_type=linux # correct to gnu/linux during the next big refactor 2842 need_lib_prefix=no 2843 need_version=no 2844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2845 soname_spec='$libname$release$shared_ext$major' 2590 2846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2591 2847 shlibpath_var=LD_LIBRARY_PATH … … 2612 2868 hardcode_into_libs=yes 2613 2869 2614 # Append ld.so.conf contents to the search path 2870 # Ideally, we could use ldconfig to report *all* directores which are 2871 # searched for libraries, however this is still not possible. Aside from not 2872 # being certain /sbin/ldconfig is available, command 2873 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 2874 # even though it is searched at run-time. Try to do the best guess by 2875 # appending ld.so.conf contents (and includes) to the search path. 2615 2876 if test -f /etc/ld.so.conf; then 2616 2877 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` … … 2644 2905 need_version=no 2645 2906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 2646 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'2907 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2647 2908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2648 2909 dynamic_linker='NetBSD (a.out) ld.so' 2649 2910 else 2650 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'2651 soname_spec='$ {libname}${release}${shared_ext}$major'2911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2912 soname_spec='$libname$release$shared_ext$major' 2652 2913 dynamic_linker='NetBSD ld.elf_so' 2653 2914 fi … … 2658 2919 2659 2920 newsos6) 2660 version_type=linux 2661 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2921 version_type=linux # correct to gnu/linux during the next big refactor 2922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2662 2923 shlibpath_var=LD_LIBRARY_PATH 2663 2924 shlibpath_overrides_runpath=yes … … 2668 2929 need_lib_prefix=no 2669 2930 need_version=no 2670 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2671 soname_spec='$ {libname}${release}${shared_ext}$major'2931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2932 soname_spec='$libname$release$shared_ext$major' 2672 2933 shlibpath_var=LD_LIBRARY_PATH 2673 2934 shlibpath_overrides_runpath=no … … 2676 2937 ;; 2677 2938 2678 openbsd* )2939 openbsd* | bitrig*) 2679 2940 version_type=sunos 2680 sys_lib_dlsearch_path_spec= "/usr/lib"2941 sys_lib_dlsearch_path_spec=/usr/lib 2681 2942 need_lib_prefix=no 2682 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.2683 case $host_os in2684 openbsd3.3 | openbsd3.3.*) need_version=yes ;;2685 *) need_version=no ;;2686 esac2687 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'2943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 2944 need_version=no 2945 else 2946 need_version=yes 2947 fi 2948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2688 2949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2689 2950 shlibpath_var=LD_LIBRARY_PATH 2690 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2691 case $host_os in 2692 openbsd2.[[89]] | openbsd2.[[89]].*) 2693 shlibpath_overrides_runpath=no 2694 ;; 2695 *) 2696 shlibpath_overrides_runpath=yes 2697 ;; 2698 esac 2699 else 2700 shlibpath_overrides_runpath=yes 2701 fi 2951 shlibpath_overrides_runpath=yes 2702 2952 ;; 2703 2953 2704 2954 os2*) 2705 2955 libname_spec='$name' 2706 shrext_cmds=".dll" 2956 version_type=windows 2957 shrext_cmds=.dll 2958 need_version=no 2707 2959 need_lib_prefix=no 2708 library_names_spec='$libname${shared_ext} $libname.a' 2960 # OS/2 can only load a DLL with a base name of 8 characters or less. 2961 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 2962 v=$($ECHO $release$versuffix | tr -d .-); 2963 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 2964 $ECHO $n$v`$shared_ext' 2965 library_names_spec='${libname}_dll.$libext' 2709 2966 dynamic_linker='OS/2 ld.exe' 2710 shlibpath_var=LIBPATH 2967 shlibpath_var=BEGINLIBPATH 2968 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2970 postinstall_cmds='base_file=`basename \$file`~ 2971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 2972 dldir=$destdir/`dirname \$dlpath`~ 2973 test -d \$dldir || mkdir -p \$dldir~ 2974 $install_prog $dir/$dlname \$dldir/$dlname~ 2975 chmod a+x \$dldir/$dlname~ 2976 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2977 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2978 fi' 2979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 2980 dlpath=$dir/\$dldll~ 2981 $RM \$dlpath' 2711 2982 ;; 2712 2983 … … 2715 2986 need_lib_prefix=no 2716 2987 need_version=no 2717 soname_spec='$ {libname}${release}${shared_ext}$major'2718 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2988 soname_spec='$libname$release$shared_ext$major' 2989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2719 2990 shlibpath_var=LD_LIBRARY_PATH 2720 2991 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2721 sys_lib_dlsearch_path_spec= "$sys_lib_search_path_spec"2992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2722 2993 ;; 2723 2994 … … 2727 2998 2728 2999 solaris*) 2729 version_type=linux 3000 version_type=linux # correct to gnu/linux during the next big refactor 2730 3001 need_lib_prefix=no 2731 3002 need_version=no 2732 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2733 soname_spec='$ {libname}${release}${shared_ext}$major'3003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3004 soname_spec='$libname$release$shared_ext$major' 2734 3005 shlibpath_var=LD_LIBRARY_PATH 2735 3006 shlibpath_overrides_runpath=yes … … 2741 3012 sunos4*) 2742 3013 version_type=sunos 2743 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'3014 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2744 3015 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2745 3016 shlibpath_var=LD_LIBRARY_PATH 2746 3017 shlibpath_overrides_runpath=yes 2747 if test "$with_gnu_ld" = yes; then3018 if test yes = "$with_gnu_ld"; then 2748 3019 need_lib_prefix=no 2749 3020 fi … … 2752 3023 2753 3024 sysv4 | sysv4.3*) 2754 version_type=linux 2755 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2756 soname_spec='$ {libname}${release}${shared_ext}$major'3025 version_type=linux # correct to gnu/linux during the next big refactor 3026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3027 soname_spec='$libname$release$shared_ext$major' 2757 3028 shlibpath_var=LD_LIBRARY_PATH 2758 3029 case $host_vendor in … … 2775 3046 2776 3047 sysv4*MP*) 2777 if test -d /usr/nec ;then2778 version_type=linux 2779 library_names_spec='$libname$ {shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'2780 soname_spec='$libname$ {shared_ext}.$major'3048 if test -d /usr/nec; then 3049 version_type=linux # correct to gnu/linux during the next big refactor 3050 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 3051 soname_spec='$libname$shared_ext.$major' 2781 3052 shlibpath_var=LD_LIBRARY_PATH 2782 3053 fi … … 2784 3055 2785 3056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2786 version_type= freebsd-elf3057 version_type=sco 2787 3058 need_lib_prefix=no 2788 3059 need_version=no 2789 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'2790 soname_spec='$ {libname}${release}${shared_ext}$major'3060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 3061 soname_spec='$libname$release$shared_ext$major' 2791 3062 shlibpath_var=LD_LIBRARY_PATH 2792 3063 shlibpath_overrides_runpath=yes 2793 3064 hardcode_into_libs=yes 2794 if test "$with_gnu_ld" = yes; then3065 if test yes = "$with_gnu_ld"; then 2795 3066 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 2796 3067 else … … 2807 3078 tpf*) 2808 3079 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 2809 version_type=linux 3080 version_type=linux # correct to gnu/linux during the next big refactor 2810 3081 need_lib_prefix=no 2811 3082 need_version=no 2812 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'3083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2813 3084 shlibpath_var=LD_LIBRARY_PATH 2814 3085 shlibpath_overrides_runpath=no … … 2817 3088 2818 3089 uts4*) 2819 version_type=linux 2820 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2821 soname_spec='$ {libname}${release}${shared_ext}$major'3090 version_type=linux # correct to gnu/linux during the next big refactor 3091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3092 soname_spec='$libname$release$shared_ext$major' 2822 3093 shlibpath_var=LD_LIBRARY_PATH 2823 3094 ;; … … 2828 3099 esac 2829 3100 AC_MSG_RESULT([$dynamic_linker]) 2830 test "$dynamic_linker" = no&& can_build_shared=no3101 test no = "$dynamic_linker" && can_build_shared=no 2831 3102 2832 3103 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 2833 if test "$GCC" = yes; then3104 if test yes = "$GCC"; then 2834 3105 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 2835 3106 fi 2836 3107 2837 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then2838 sys_lib_search_path_spec= "$lt_cv_sys_lib_search_path_spec"3108 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 3109 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 2839 3110 fi 2840 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 2841 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 3111 3112 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 3113 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 2842 3114 fi 3115 3116 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 3117 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 3118 3119 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 3120 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 3121 3122 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 3123 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 2843 3124 2844 3125 _LT_DECL([], [variables_saved_for_relink], [1], … … 2874 3155 _LT_DECL([], [sys_lib_search_path_spec], [2], 2875 3156 [Compile-time system search path for libraries]) 2876 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 2877 [Run-time system search path for libraries]) 3157 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 3158 [Detected run-time system search path for libraries]) 3159 _LT_DECL([], [configure_time_lt_sys_library_path], [2], 3160 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 2878 3161 ])# _LT_SYS_DYNAMIC_LINKER 2879 3162 … … 2881 3164 # _LT_PATH_TOOL_PREFIX(TOOL) 2882 3165 # -------------------------- 2883 # find a file program whichcan recognize shared library3166 # find a file program that can recognize shared library 2884 3167 AC_DEFUN([_LT_PATH_TOOL_PREFIX], 2885 3168 [m4_require([_LT_DECL_EGREP])dnl … … 2888 3171 [case $MAGIC_CMD in 2889 3172 [[\\/*] | ?:[\\/]*]) 2890 lt_cv_path_MAGIC_CMD= "$MAGIC_CMD"# Let the user override the test with a path.3173 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 2891 3174 ;; 2892 3175 *) 2893 lt_save_MAGIC_CMD= "$MAGIC_CMD"2894 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR3176 lt_save_MAGIC_CMD=$MAGIC_CMD 3177 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 2895 3178 dnl $ac_dummy forces splitting on constant user-supplied paths. 2896 3179 dnl POSIX.2 word splitting is done only on the output of word expansions, … … 2898 3181 ac_dummy="m4_if([$2], , $PATH, [$2])" 2899 3182 for ac_dir in $ac_dummy; do 2900 IFS= "$lt_save_ifs"3183 IFS=$lt_save_ifs 2901 3184 test -z "$ac_dir" && ac_dir=. 2902 if test -f $ac_dir/$1; then2903 lt_cv_path_MAGIC_CMD= "$ac_dir/$1"3185 if test -f "$ac_dir/$1"; then 3186 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 2904 3187 if test -n "$file_magic_test_file"; then 2905 3188 case $deplibs_check_method in 2906 3189 "file_magic "*) 2907 3190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 2908 MAGIC_CMD= "$lt_cv_path_MAGIC_CMD"3191 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 2909 3192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2910 3193 $EGREP "$file_magic_regex" > /dev/null; then … … 2929 3212 fi 2930 3213 done 2931 IFS= "$lt_save_ifs"2932 MAGIC_CMD= "$lt_save_MAGIC_CMD"3214 IFS=$lt_save_ifs 3215 MAGIC_CMD=$lt_save_MAGIC_CMD 2933 3216 ;; 2934 3217 esac]) 2935 MAGIC_CMD= "$lt_cv_path_MAGIC_CMD"3218 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 2936 3219 if test -n "$MAGIC_CMD"; then 2937 3220 AC_MSG_RESULT($MAGIC_CMD) … … 2951 3234 # _LT_PATH_MAGIC 2952 3235 # -------------- 2953 # find a file program whichcan recognize a shared library3236 # find a file program that can recognize a shared library 2954 3237 m4_defun([_LT_PATH_MAGIC], 2955 3238 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) … … 2978 3261 [AS_HELP_STRING([--with-gnu-ld], 2979 3262 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 2980 [test "$withval" = no|| with_gnu_ld=yes],3263 [test no = "$withval" || with_gnu_ld=yes], 2981 3264 [with_gnu_ld=no])dnl 2982 3265 2983 3266 ac_prog=ld 2984 if test "$GCC" = yes; then3267 if test yes = "$GCC"; then 2985 3268 # Check if gcc -print-prog-name=ld gives a path. 2986 3269 AC_MSG_CHECKING([for ld used by $CC]) 2987 3270 case $host in 2988 3271 *-*-mingw*) 2989 # gcc leaves a trailing carriage return which upsets mingw3272 # gcc leaves a trailing carriage return, which upsets mingw 2990 3273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2991 3274 *) … … 3001 3284 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3002 3285 done 3003 test -z "$LD" && LD= "$ac_prog"3286 test -z "$LD" && LD=$ac_prog 3004 3287 ;; 3005 3288 "") … … 3012 3295 ;; 3013 3296 esac 3014 elif test "$with_gnu_ld" = yes; then3297 elif test yes = "$with_gnu_ld"; then 3015 3298 AC_MSG_CHECKING([for GNU ld]) 3016 3299 else … … 3019 3302 AC_CACHE_VAL(lt_cv_path_LD, 3020 3303 [if test -z "$LD"; then 3021 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR3304 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3022 3305 for ac_dir in $PATH; do 3023 IFS= "$lt_save_ifs"3306 IFS=$lt_save_ifs 3024 3307 test -z "$ac_dir" && ac_dir=. 3025 3308 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3026 lt_cv_path_LD= "$ac_dir/$ac_prog"3309 lt_cv_path_LD=$ac_dir/$ac_prog 3027 3310 # Check to see if the program is GNU ld. I'd rather use --version, 3028 3311 # but apparently some variants of GNU ld only accept -v. … … 3030 3313 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3031 3314 *GNU* | *'with BFD'*) 3032 test "$with_gnu_ld" != no&& break3315 test no != "$with_gnu_ld" && break 3033 3316 ;; 3034 3317 *) 3035 test "$with_gnu_ld" != yes&& break3318 test yes != "$with_gnu_ld" && break 3036 3319 ;; 3037 3320 esac 3038 3321 fi 3039 3322 done 3040 IFS= "$lt_save_ifs"3323 IFS=$lt_save_ifs 3041 3324 else 3042 lt_cv_path_LD= "$LD"# Let the user override the test with a path.3325 lt_cv_path_LD=$LD # Let the user override the test with a path. 3043 3326 fi]) 3044 LD= "$lt_cv_path_LD"3327 LD=$lt_cv_path_LD 3045 3328 if test -n "$LD"; then 3046 3329 AC_MSG_RESULT($LD) … … 3096 3379 case $host_os in 3097 3380 cygwin* | mingw* | pw32* | cegcc*) 3098 if test "$GCC" != yes; then3381 if test yes != "$GCC"; then 3099 3382 reload_cmds=false 3100 3383 fi 3101 3384 ;; 3102 3385 darwin*) 3103 if test "$GCC" = yes; then3104 reload_cmds='$LTCC $LTCFLAGS -nostdlib $ {wl}-r -o $output$reload_objs'3386 if test yes = "$GCC"; then 3387 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 3105 3388 else 3106 3389 reload_cmds='$LD$reload_flag -o $output$reload_objs' … … 3111 3394 _LT_TAGDECL([], [reload_cmds], [2])dnl 3112 3395 ])# _LT_CMD_RELOAD 3396 3397 3398 # _LT_PATH_DD 3399 # ----------- 3400 # find a working dd 3401 m4_defun([_LT_PATH_DD], 3402 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 3403 [printf 0123456789abcdef0123456789abcdef >conftest.i 3404 cat conftest.i conftest.i >conftest2.i 3405 : ${lt_DD:=$DD} 3406 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 3407 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 3408 cmp -s conftest.i conftest.out \ 3409 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 3410 fi]) 3411 rm -f conftest.i conftest2.i conftest.out]) 3412 ])# _LT_PATH_DD 3413 3414 3415 # _LT_CMD_TRUNCATE 3416 # ---------------- 3417 # find command to truncate a binary pipe 3418 m4_defun([_LT_CMD_TRUNCATE], 3419 [m4_require([_LT_PATH_DD]) 3420 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 3421 [printf 0123456789abcdef0123456789abcdef >conftest.i 3422 cat conftest.i conftest.i >conftest2.i 3423 lt_cv_truncate_bin= 3424 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 3425 cmp -s conftest.i conftest.out \ 3426 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 3427 fi 3428 rm -f conftest.i conftest2.i conftest.out 3429 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 3430 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 3431 [Command to truncate a binary pipe]) 3432 ])# _LT_CMD_TRUNCATE 3113 3433 3114 3434 … … 3128 3448 # interlibrary dependencies. 3129 3449 # 'none' -- dependencies not supported. 3130 # `unknown' -- same as none, but documents that we really don't know.3450 # 'unknown' -- same as none, but documents that we really don't know. 3131 3451 # 'pass_all' -- all dependencies passed with no checks. 3132 3452 # 'test_compile' -- check by making test program. 3133 3453 # 'file_magic [[regex]]' -- check by looking for files in library path 3134 # whichresponds to the $file_magic_cmd with a given extended regex.3135 # If you have `file' or equivalent on your system and you're not sure3136 # whether `pass_all' will *always* work, you probably want this one.3454 # that responds to the $file_magic_cmd with a given extended regex. 3455 # If you have 'file' or equivalent on your system and you're not sure 3456 # whether 'pass_all' will *always* work, you probably want this one. 3137 3457 3138 3458 case $host_os in … … 3161 3481 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3162 3482 # unless we find 'file', for example because we are cross-compiling. 3163 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 3164 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 3483 if ( file / ) >/dev/null 2>&1; then 3165 3484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3166 3485 lt_cv_file_magic_cmd='func_win32_libid' … … 3196 3515 lt_cv_deplibs_check_method=pass_all 3197 3516 fi 3198 ;;3199 3200 gnu*)3201 lt_cv_deplibs_check_method=pass_all3202 3517 ;; 3203 3518 … … 3239 3554 ;; 3240 3555 3241 # This must be LinuxELF.3242 linux* | k*bsd*-gnu | kopensolaris*-gnu )3556 # This must be glibc/ELF. 3557 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 3243 3558 lt_cv_deplibs_check_method=pass_all 3244 3559 ;; … … 3262 3577 ;; 3263 3578 3264 openbsd* )3265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then3579 openbsd* | bitrig*) 3580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 3266 3581 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3267 3582 else … … 3316 3631 lt_cv_deplibs_check_method=pass_all 3317 3632 ;; 3633 os2*) 3634 lt_cv_deplibs_check_method=pass_all 3635 ;; 3318 3636 esac 3319 3637 ]) … … 3356 3674 [if test -n "$NM"; then 3357 3675 # Let the user override the test. 3358 lt_cv_path_NM= "$NM"3676 lt_cv_path_NM=$NM 3359 3677 else 3360 lt_nm_to_check= "${ac_tool_prefix}nm"3678 lt_nm_to_check=${ac_tool_prefix}nm 3361 3679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3362 3680 lt_nm_to_check="$lt_nm_to_check nm" 3363 3681 fi 3364 3682 for lt_tmp_nm in $lt_nm_to_check; do 3365 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR3683 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3366 3684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3367 IFS= "$lt_save_ifs"3685 IFS=$lt_save_ifs 3368 3686 test -z "$ac_dir" && ac_dir=. 3369 tmp_nm= "$ac_dir/$lt_tmp_nm"3370 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" 3687 tmp_nm=$ac_dir/$lt_tmp_nm 3688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 3371 3689 # Check to see if the nm accepts a BSD-compat flag. 3372 # Adding the `sed 1q' prevents false positives on HP-UX, which says:3690 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 3373 3691 # nm: unknown option "B" ignored 3374 3692 # Tru64's nm complains that /dev/null is an invalid object file 3375 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3376 */dev/null* | *'Invalid file or object type'*) 3693 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 3694 case $build_os in 3695 mingw*) lt_bad_file=conftest.nm/nofile ;; 3696 *) lt_bad_file=/dev/null ;; 3697 esac 3698 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 3699 *$lt_bad_file* | *'Invalid file or object type'*) 3377 3700 lt_cv_path_NM="$tmp_nm -B" 3378 break 3701 break 2 3379 3702 ;; 3380 3703 *) … … 3382 3705 */dev/null*) 3383 3706 lt_cv_path_NM="$tmp_nm -p" 3384 break 3707 break 2 3385 3708 ;; 3386 3709 *) … … 3393 3716 fi 3394 3717 done 3395 IFS= "$lt_save_ifs"3718 IFS=$lt_save_ifs 3396 3719 done 3397 3720 : ${lt_cv_path_NM=no} 3398 3721 fi]) 3399 if test "$lt_cv_path_NM" != "no"; then3400 NM= "$lt_cv_path_NM"3722 if test no != "$lt_cv_path_NM"; then 3723 NM=$lt_cv_path_NM 3401 3724 else 3402 3725 # Didn't find any BSD compatible name lister, look for dumpbin. … … 3405 3728 else 3406 3729 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 3407 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in3730 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 3408 3731 *COFF*) 3409 DUMPBIN="$DUMPBIN -symbols "3732 DUMPBIN="$DUMPBIN -symbols -headers" 3410 3733 ;; 3411 3734 *) … … 3415 3738 fi 3416 3739 AC_SUBST([DUMPBIN]) 3417 if test "$DUMPBIN" != ":"; then3418 NM= "$DUMPBIN"3740 if test : != "$DUMPBIN"; then 3741 NM=$DUMPBIN 3419 3742 fi 3420 3743 fi … … 3462 3785 case $host_os in 3463 3786 cygwin* | mingw* | pw32* | cegcc*) 3464 # two different shell functions defined in ltmain.sh 3465 # decide which to use based on capabilities of $DLLTOOL3787 # two different shell functions defined in ltmain.sh; 3788 # decide which one to use based on capabilities of $DLLTOOL 3466 3789 case `$DLLTOOL --help 2>&1` in 3467 3790 *--identify-strict*) … … 3475 3798 *) 3476 3799 # fallback: assume linklib IS sharedlib 3477 lt_cv_sharedlib_from_linklib_cmd= "$ECHO"3800 lt_cv_sharedlib_from_linklib_cmd=$ECHO 3478 3801 ;; 3479 3802 esac … … 3502 3825 fi 3503 3826 rm -f conftest*]) 3504 if test "x$lt_cv_path_mainfest_tool" != xyes; then3827 if test yes != "$lt_cv_path_mainfest_tool"; then 3505 3828 MANIFEST_TOOL=: 3506 3829 fi 3507 3830 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 3508 3831 ])# _LT_PATH_MANIFEST_TOOL 3832 3833 3834 # _LT_DLL_DEF_P([FILE]) 3835 # --------------------- 3836 # True iff FILE is a Windows DLL '.def' file. 3837 # Keep in sync with func_dll_def_p in the libtool script 3838 AC_DEFUN([_LT_DLL_DEF_P], 3839 [dnl 3840 test DEF = "`$SED -n dnl 3841 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 3842 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 3843 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 3844 -e q dnl Only consider the first "real" line 3845 $1`" dnl 3846 ])# _LT_DLL_DEF_P 3509 3847 3510 3848 … … 3520 3858 ;; 3521 3859 *-ncr-sysv4.3*) 3522 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM= "-lmw")3860 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 3523 3861 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3524 3862 ;; 3525 3863 *) 3526 AC_CHECK_LIB(m, cos, LIBM= "-lm")3864 AC_CHECK_LIB(m, cos, LIBM=-lm) 3527 3865 ;; 3528 3866 esac … … 3543 3881 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3544 3882 3545 if test "$GCC" = yes; then3883 if test yes = "$GCC"; then 3546 3884 case $cc_basename in 3547 3885 nvcc*) … … 3595 3933 ;; 3596 3934 hpux*) 3597 if test "$host_cpu" = ia64; then3935 if test ia64 = "$host_cpu"; then 3598 3936 symcode='[[ABCDEGRST]]' 3599 3937 fi … … 3628 3966 esac 3629 3967 3968 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3969 # Gets list of data symbols to import. 3970 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 3971 # Adjust the below global symbol transforms to fixup imported variables. 3972 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 3973 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 3974 lt_c_name_lib_hook="\ 3975 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 3976 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 3977 else 3978 # Disable hooks by default. 3979 lt_cv_sys_global_symbol_to_import= 3980 lt_cdecl_hook= 3981 lt_c_name_hook= 3982 lt_c_name_lib_hook= 3983 fi 3984 3630 3985 # Transform an extracted symbol line into a proper C declaration. 3631 3986 # Some systems (esp. on ia64) link data and code symbols differently, 3632 3987 # so use this general approach. 3633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3988 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 3989 $lt_cdecl_hook\ 3990 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 3991 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 3634 3992 3635 3993 # Transform an extracted symbol line into symbol name and symbol address 3636 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 3637 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 3994 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 3995 $lt_c_name_hook\ 3996 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 3997 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 3998 3999 # Transform an extracted symbol line into symbol name with lib prefix and 4000 # symbol address. 4001 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 4002 $lt_c_name_lib_hook\ 4003 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 4004 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 4005 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 3638 4006 3639 4007 # Handle CRLF in mingw tool chain … … 3653 4021 # Write the raw and C identifiers. 3654 4022 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3655 # Fake it for dumpbin and say T for any non-static function 3656 # and D for any globalvariable.4023 # Fake it for dumpbin and say T for any non-static function, 4024 # D for any global variable and I for any imported variable. 3657 4025 # Also find C++ and __fastcall symbols from MSVC++, 3658 4026 # which start with @ or ?. 3659 4027 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 3660 4028 " {last_section=section; section=\$ 3};"\ 4029 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 3661 4030 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4031 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 4032 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 4033 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 3662 4034 " \$ 0!~/External *\|/{next};"\ 3663 4035 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 3664 4036 " {if(hide[section]) next};"\ 3665 " {f= 0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D\"};"\3666 " {split(\$ 0, a, /\||\r/); split(a[2],s)};"\3667 " s[1]~/^[@?]/{print s[1],s[1]; next};"\3668 " s[1]~prfx {split(s[1],t,\"@\"); print t[1],substr(t[1],length(prfx))}"\4037 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 4038 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 4039 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 4040 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 3669 4041 " ' prfx=^$ac_symprfx]" 3670 4042 else … … 3706 4078 cat <<_LT_EOF > conftest.$ac_ext 3707 4079 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 3708 #if defined (_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)3709 /* DATA imports from DLLs on WIN32 c on't be const, because runtime4080 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 4081 /* DATA imports from DLLs on WIN32 can't be const, because runtime 3710 4082 relocations are performed -- see ld's documentation on pseudo-relocs. */ 3711 4083 # define LT@&t@_DLSYM_CONST 3712 #elif defined (__osf__)4084 #elif defined __osf__ 3713 4085 /* This system does not cope well with relocations in const data. */ 3714 4086 # define LT@&t@_DLSYM_CONST … … 3736 4108 { "@PROGRAM@", (void *) 0 }, 3737 4109 _LT_EOF 3738 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext4110 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 3739 4111 cat <<\_LT_EOF >> conftest.$ac_ext 3740 4112 {0, (void *) 0} … … 3756 4128 lt_globsym_save_LIBS=$LIBS 3757 4129 lt_globsym_save_CFLAGS=$CFLAGS 3758 LIBS= "conftstm.$ac_objext"4130 LIBS=conftstm.$ac_objext 3759 4131 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 3760 if AC_TRY_EVAL(ac_link) && test -s conftest$ {ac_exeext}; then4132 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 3761 4133 pipe_works=yes 3762 4134 fi … … 3779 4151 3780 4152 # Do not use the global_symbol_pipe unless it works. 3781 if test "$pipe_works" = yes; then4153 if test yes = "$pipe_works"; then 3782 4154 break 3783 4155 else … … 3806 4178 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 3807 4179 [Transform the output of nm in a proper C declaration]) 4180 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 4181 [Transform the output of nm into a list of symbols to manually relocate]) 3808 4182 _LT_DECL([global_symbol_to_c_name_address], 3809 4183 [lt_cv_sys_global_symbol_to_c_name_address], [1], … … 3812 4186 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 3813 4187 [Transform the output of nm in a C name address pair when lib prefix is needed]) 4188 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 4189 [The name lister interface]) 3814 4190 _LT_DECL([], [nm_file_list_spec], [1], 3815 4191 [Specify filename containing input files for $NM]) … … 3827 4203 m4_if([$1], [CXX], [ 3828 4204 # C++ specific cases for pic, static, wl, etc. 3829 if test "$GXX" = yes; then4205 if test yes = "$GXX"; then 3830 4206 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3831 4207 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' … … 3834 4210 aix*) 3835 4211 # All AIX code is PIC. 3836 if test "$host_cpu" = ia64; then4212 if test ia64 = "$host_cpu"; then 3837 4213 # AIX 5 now supports IA64 processor 3838 4214 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3839 4215 fi 4216 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3840 4217 ;; 3841 4218 … … 3848 4225 m68k) 3849 4226 # FIXME: we need at least 68020 code to build shared libraries, but 3850 # adding the `-m68020' flag to GCC prevents building anything better,3851 # like `-m68040'.4227 # adding the '-m68020' flag to GCC prevents building anything better, 4228 # like '-m68040'. 3852 4229 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3853 4230 ;; … … 3865 4242 m4_if([$1], [GCJ], [], 3866 4243 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4244 case $host_os in 4245 os2*) 4246 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4247 ;; 4248 esac 3867 4249 ;; 3868 4250 darwin* | rhapsody*) … … 3914 4296 aix[[4-9]]*) 3915 4297 # All AIX code is PIC. 3916 if test "$host_cpu" = ia64; then4298 if test ia64 = "$host_cpu"; then 3917 4299 # AIX 5 now supports IA64 processor 3918 4300 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' … … 3955 4337 CC*) 3956 4338 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3957 _LT_TAGVAR(lt_prog_compiler_static, $1)='$ {wl}-a ${wl}archive'3958 if test "$host_cpu" != ia64; then4339 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4340 if test ia64 != "$host_cpu"; then 3959 4341 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 3960 4342 fi … … 3962 4344 aCC*) 3963 4345 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3964 _LT_TAGVAR(lt_prog_compiler_static, $1)='$ {wl}-a ${wl}archive'4346 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 3965 4347 case $host_cpu in 3966 4348 hppa*64*|ia64*) … … 3991 4373 esac 3992 4374 ;; 3993 linux* | k*bsd*-gnu | kopensolaris*-gnu )4375 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 3994 4376 case $cc_basename in 3995 4377 KCC*) … … 3999 4381 ;; 4000 4382 ecpc* ) 4001 # old Intel C++ for x86_64 which still supported -KPIC.4383 # old Intel C++ for x86_64, which still supported -KPIC. 4002 4384 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4003 4385 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 4144 4526 ], 4145 4527 [ 4146 if test "$GCC" = yes; then4528 if test yes = "$GCC"; then 4147 4529 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4148 4530 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' … … 4151 4533 aix*) 4152 4534 # All AIX code is PIC. 4153 if test "$host_cpu" = ia64; then4535 if test ia64 = "$host_cpu"; then 4154 4536 # AIX 5 now supports IA64 processor 4155 4537 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4156 4538 fi 4539 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4157 4540 ;; 4158 4541 … … 4165 4548 m68k) 4166 4549 # FIXME: we need at least 68020 code to build shared libraries, but 4167 # adding the `-m68020' flag to GCC prevents building anything better,4168 # like `-m68040'.4550 # adding the '-m68020' flag to GCC prevents building anything better, 4551 # like '-m68040'. 4169 4552 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4170 4553 ;; … … 4183 4566 m4_if([$1], [GCJ], [], 4184 4567 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4568 case $host_os in 4569 os2*) 4570 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4571 ;; 4572 esac 4185 4573 ;; 4186 4574 … … 4243 4631 nvcc*) # Cuda Compiler Driver 2.2 4244 4632 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 4245 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' 4633 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4634 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 4635 fi 4246 4636 ;; 4247 4637 esac … … 4251 4641 aix*) 4252 4642 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4253 if test "$host_cpu" = ia64; then4643 if test ia64 = "$host_cpu"; then 4254 4644 # AIX 5 now supports IA64 processor 4255 4645 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' … … 4259 4649 ;; 4260 4650 4651 darwin* | rhapsody*) 4652 # PIC is the default on this platform 4653 # Common symbols not allowed in MH_DYLIB files 4654 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4655 case $cc_basename in 4656 nagfor*) 4657 # NAG Fortran compiler 4658 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4659 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4660 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4661 ;; 4662 esac 4663 ;; 4664 4261 4665 mingw* | cygwin* | pw32* | os2* | cegcc*) 4262 4666 # This hack is so that the source file can tell whether it is being … … 4264 4668 m4_if([$1], [GCJ], [], 4265 4669 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4670 case $host_os in 4671 os2*) 4672 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4673 ;; 4674 esac 4266 4675 ;; 4267 4676 … … 4279 4688 esac 4280 4689 # Is there a better lt_prog_compiler_static that works with the bundled CC? 4281 _LT_TAGVAR(lt_prog_compiler_static, $1)='$ {wl}-a ${wl}archive'4690 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4282 4691 ;; 4283 4692 … … 4288 4697 ;; 4289 4698 4290 linux* | k*bsd*-gnu | kopensolaris*-gnu )4699 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4291 4700 case $cc_basename in 4292 # old Intel for x86_64 which still supported -KPIC.4701 # old Intel for x86_64, which still supported -KPIC. 4293 4702 ecc*) 4294 4703 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' … … 4315 4724 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4316 4725 ;; 4726 tcc*) 4727 # Fabrice Bellard et al's Tiny C Compiler 4728 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4729 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4730 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4731 ;; 4317 4732 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 4318 4733 # Portland Group compilers (*not* the Pentium gcc compiler, … … 4335 4750 *) 4336 4751 case `$CC -V 2>&1 | sed 5q` in 4337 *Sun\ F* | *Sun*Fortran*)4752 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 4338 4753 # Sun Fortran 8.3 passes all unrecognized flags to the linker 4339 4754 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4340 4755 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4341 4756 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 4757 ;; 4758 *Sun\ F* | *Sun*Fortran*) 4759 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4760 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4761 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4342 4762 ;; 4343 4763 *Sun\ C*) … … 4346 4766 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4347 4767 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4768 ;; 4769 *Intel*\ [[CF]]*Compiler*) 4770 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4771 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4772 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4773 ;; 4774 *Portland\ Group*) 4775 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4777 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4348 4778 ;; 4349 4779 esac … … 4397 4827 4398 4828 sysv4*MP*) 4399 if test -d /usr/nec ;then4829 if test -d /usr/nec; then 4400 4830 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4401 4831 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' … … 4426 4856 ]) 4427 4857 case $host_os in 4428 # For platforms whichdo not support PIC, -DPIC is meaningless:4858 # For platforms that do not support PIC, -DPIC is meaningless: 4429 4859 *djgpp*) 4430 4860 _LT_TAGVAR(lt_prog_compiler_pic, $1)= … … 4492 4922 aix[[4-9]]*) 4493 4923 # If we're using GNU nm, then we don't want the "-C" option. 4494 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4495 # Also, AIX nm treats weak defined symbols like other global defined 4496 # symbols, whereas GNU nm marks them as "W". 4924 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 4925 # Without the "-l" option, or with the "-B" option, AIX nm treats 4926 # weak defined symbols like other global defined symbols, whereas 4927 # GNU nm marks them as "W". 4928 # While the 'weak' keyword is ignored in the Export File, we need 4929 # it in the Import File for the 'aix-soname' feature, so we have 4930 # to replace the "-B" option with "-P" for AIX nm. 4497 4931 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4498 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3} }'\'' | sort -u > $export_symbols'4932 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 4499 4933 else 4500 _LT_TAGVAR(export_symbols_cmds, $1)=' $NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3} }'\'' | sort -u > $export_symbols'4934 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 4501 4935 fi 4502 4936 ;; 4503 4937 pw32*) 4504 _LT_TAGVAR(export_symbols_cmds, $1)= "$ltdll_cmds"4938 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 4505 4939 ;; 4506 4940 cygwin* | mingw* | cegcc*) 4507 4941 case $cc_basename in 4508 cl*) ;; 4942 cl*) 4943 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 4944 ;; 4509 4945 *) 4510 4946 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' … … 4534 4970 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 4535 4971 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4536 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=4537 4972 _LT_TAGVAR(hardcode_libdir_separator, $1)= 4538 4973 _LT_TAGVAR(hardcode_minus_L, $1)=no … … 4550 4985 _LT_TAGVAR(include_expsyms, $1)= 4551 4986 # exclude_expsyms can be an extended regexp of symbols to exclude 4552 # it will be wrapped by ` (' and `)$', so one must not match beginning or4553 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',4554 # as well as any symbol that contains `d'.4987 # it will be wrapped by ' (' and ')$', so one must not match beginning or 4988 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 4989 # as well as any symbol that contains 'd'. 4555 4990 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4556 4991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out … … 4568 5003 # When not using gcc, we currently assume that we are using 4569 5004 # Microsoft Visual C++. 4570 if test "$GCC" != yes; then5005 if test yes != "$GCC"; then 4571 5006 with_gnu_ld=no 4572 5007 fi … … 4576 5011 with_gnu_ld=yes 4577 5012 ;; 4578 openbsd* )5013 openbsd* | bitrig*) 4579 5014 with_gnu_ld=no 4580 5015 ;; … … 4589 5024 # that we're better off using the native interface for both. 4590 5025 lt_use_gnu_ld_interface=no 4591 if test "$with_gnu_ld" = yes; then5026 if test yes = "$with_gnu_ld"; then 4592 5027 case $host_os in 4593 5028 aix*) … … 4611 5046 fi 4612 5047 4613 if test "$lt_use_gnu_ld_interface" = yes; then5048 if test yes = "$lt_use_gnu_ld_interface"; then 4614 5049 # If archive_cmds runs LD, not CC, wlarc should be empty 4615 wlarc='$ {wl}'5050 wlarc='$wl' 4616 5051 4617 5052 # Set some defaults for GNU ld with shared library support. These … … 4619 5054 # here allows them to be overridden if necessary. 4620 5055 runpath_var=LD_RUN_PATH 4621 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'4622 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'5056 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5057 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 4623 5058 # ancient GNU ld didn't support --whole-archive et. al. 4624 5059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 4625 _LT_TAGVAR(whole_archive_flag_spec, $1)= "$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'5060 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 4626 5061 else 4627 5062 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4628 5063 fi 4629 5064 supports_anon_versioning=no 4630 case `$LD -v 2>&1` in5065 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 4631 5066 *GNU\ gold*) supports_anon_versioning=yes ;; 4632 5067 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 … … 4641 5076 aix[[3-9]]*) 4642 5077 # On AIX/PPC, the GNU linker is very broken 4643 if test "$host_cpu" != ia64; then5078 if test ia64 != "$host_cpu"; then 4644 5079 _LT_TAGVAR(ld_shlibs, $1)=no 4645 5080 cat <<_LT_EOF 1>&2 … … 4660 5095 powerpc) 4661 5096 # see comment about AmigaOS4 .so support 4662 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'5097 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 4663 5098 _LT_TAGVAR(archive_expsym_cmds, $1)='' 4664 5099 ;; … … 4676 5111 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 4677 5112 # support --undefined. This deserves some investigation. FIXME 4678 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'5113 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 4679 5114 else 4680 5115 _LT_TAGVAR(ld_shlibs, $1)=no … … 4686 5121 # as there is no search path for DLLs. 4687 5122 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4688 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-all-symbols'5123 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 4689 5124 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4690 5125 _LT_TAGVAR(always_export_symbols, $1)=no … … 4694 5129 4695 5130 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 4696 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $ {wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'4697 # If the export-symbols file already is a .def file (1st line4698 # is EXPORTS), use it as is; otherwise, prepend...4699 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then4700 4701 4702 4703 4704 4705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'5131 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5132 # If the export-symbols file already is a .def file, use it as 5133 # is; otherwise, prepend EXPORTS... 5134 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5135 cp $export_symbols $output_objdir/$soname.def; 5136 else 5137 echo EXPORTS > $output_objdir/$soname.def; 5138 cat $export_symbols >> $output_objdir/$soname.def; 5139 fi~ 5140 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 4706 5141 else 4707 5142 _LT_TAGVAR(ld_shlibs, $1)=no … … 4710 5145 4711 5146 haiku*) 4712 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'5147 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 4713 5148 _LT_TAGVAR(link_all_deplibs, $1)=yes 5149 ;; 5150 5151 os2*) 5152 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5153 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5154 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5155 shrext_cmds=.dll 5156 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5157 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5158 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5159 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5160 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5161 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5162 emximp -o $lib $output_objdir/$libname.def' 5163 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5164 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5165 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5166 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5167 prefix_cmds="$SED"~ 5168 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5169 prefix_cmds="$prefix_cmds -e 1d"; 5170 fi~ 5171 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5172 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5173 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5174 emximp -o $lib $output_objdir/$libname.def' 5175 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5176 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4714 5177 ;; 4715 5178 … … 4717 5180 _LT_TAGVAR(hardcode_direct, $1)=no 4718 5181 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4719 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'4720 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'5182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5183 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 4721 5184 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 4722 5185 # Instead, shared libraries are loaded at an image base (0x10000000 by … … 4725 5188 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 4726 5189 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 4727 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'4728 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s ,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'5190 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5191 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4729 5192 ;; 4730 5193 4731 5194 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 4732 5195 tmp_diet=no 4733 if test "$host_os" = linux-dietlibc; then5196 if test linux-dietlibc = "$host_os"; then 4734 5197 case $cc_basename in 4735 5198 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) … … 4737 5200 fi 4738 5201 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 4739 && test "$tmp_diet" = no5202 && test no = "$tmp_diet" 4740 5203 then 4741 5204 tmp_addflag=' $pic_flag' … … 4743 5206 case $cc_basename,$host_cpu in 4744 5207 pgcc*) # Portland Group C compiler 4745 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'5208 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4746 5209 tmp_addflag=' $pic_flag' 4747 5210 ;; 4748 5211 pgf77* | pgf90* | pgf95* | pgfortran*) 4749 5212 # Portland Group f77 and f90 compilers 4750 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'5213 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4751 5214 tmp_addflag=' $pic_flag -Mnomain' ;; 4752 5215 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 … … 4759 5222 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4760 5223 tmp_sharedflag='--shared' ;; 5224 nagfor*) # NAGFOR 5.3 5225 tmp_sharedflag='-Wl,-shared' ;; 4761 5226 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 4762 5227 tmp_sharedflag='-qmkshrobj' 4763 5228 tmp_addflag= ;; 4764 5229 nvcc*) # Cuda Compiler Driver 2.2 4765 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'5230 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4766 5231 _LT_TAGVAR(compiler_needs_object, $1)=yes 4767 5232 ;; … … 4769 5234 case `$CC -V 2>&1 | sed 5q` in 4770 5235 *Sun\ C*) # Sun C 5.9 4771 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'5236 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4772 5237 _LT_TAGVAR(compiler_needs_object, $1)=yes 4773 5238 tmp_sharedflag='-G' ;; … … 4775 5240 tmp_sharedflag='-G' ;; 4776 5241 esac 4777 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'4778 4779 if test "x$supports_anon_versioning" = xyes; then5242 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5243 5244 if test yes = "$supports_anon_versioning"; then 4780 5245 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4781 4782 4783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'5246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5247 echo "local: *; };" >> $output_objdir/$libname.ver~ 5248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 4784 5249 fi 4785 5250 4786 5251 case $cc_basename in 5252 tcc*) 5253 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 5254 ;; 4787 5255 xlf* | bgf* | bgxlf* | mpixlf*) 4788 5256 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 4789 5257 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 4790 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4791 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 5258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 4792 5259 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 4793 if test "x$supports_anon_versioning" = xyes; then5260 if test yes = "$supports_anon_versioning"; then 4794 5261 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4795 4796 4797 5262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5263 echo "local: *; };" >> $output_objdir/$libname.ver~ 5264 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 4798 5265 fi 4799 5266 ;; … … 4809 5276 wlarc= 4810 5277 else 4811 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'4812 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5278 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5279 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 4813 5280 fi 4814 5281 ;; … … 4828 5295 _LT_EOF 4829 5296 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'4831 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5297 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5298 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 4832 5299 else 4833 5300 _LT_TAGVAR(ld_shlibs, $1)=no … … 4841 5308 cat <<_LT_EOF 1>&2 4842 5309 4843 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can 5310 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 4844 5311 *** reliably create shared libraries on SCO systems. Therefore, libtool 4845 5312 *** is disabling shared libraries support. We urge you to upgrade GNU … … 4856 5323 # requires that you compile everything twice, which is a pain. 4857 5324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'4859 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'4860 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5325 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5326 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5327 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 4861 5328 else 4862 5329 _LT_TAGVAR(ld_shlibs, $1)=no … … 4875 5342 *) 4876 5343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4877 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'4878 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 4879 5346 else 4880 5347 _LT_TAGVAR(ld_shlibs, $1)=no … … 4883 5350 esac 4884 5351 4885 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then5352 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 4886 5353 runpath_var= 4887 5354 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= … … 4899 5366 # are no directories specified by -L. 4900 5367 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4901 if test "$GCC" = yes&& test -z "$lt_prog_compiler_static"; then5368 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 4902 5369 # Neither direct hardcoding nor static linking is supported with a 4903 5370 # broken collect2. … … 4907 5374 4908 5375 aix[[4-9]]*) 4909 if test "$host_cpu" = ia64; then5376 if test ia64 = "$host_cpu"; then 4910 5377 # On IA64, the linker does run time linking by default, so we don't 4911 5378 # have to do anything special. 4912 5379 aix_use_runtimelinking=no 4913 5380 exp_sym_flag='-Bexport' 4914 no_entry_flag= ""5381 no_entry_flag= 4915 5382 else 4916 5383 # If we're using GNU nm, then we don't want the "-C" option. 4917 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4918 # Also, AIX nm treats weak defined symbols like other global 4919 # defined symbols, whereas GNU nm marks them as "W". 5384 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 5385 # Without the "-l" option, or with the "-B" option, AIX nm treats 5386 # weak defined symbols like other global defined symbols, whereas 5387 # GNU nm marks them as "W". 5388 # While the 'weak' keyword is ignored in the Export File, we need 5389 # it in the Import File for the 'aix-soname' feature, so we have 5390 # to replace the "-B" option with "-P" for AIX nm. 4920 5391 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4921 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3} }'\'' | sort -u > $export_symbols'5392 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 4922 5393 else 4923 _LT_TAGVAR(export_symbols_cmds, $1)=' $NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3} }'\'' | sort -u > $export_symbols'5394 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 4924 5395 fi 4925 5396 aix_use_runtimelinking=no … … 4927 5398 # Test if we are trying to use run time linking or normal 4928 5399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 4929 # need to do runtime linking. 5400 # have runtime linking enabled, and use it for executables. 5401 # For shared libraries, we enable/disable runtime linking 5402 # depending on the kind of the shared library created - 5403 # when "with_aix_soname,aix_use_runtimelinking" is: 5404 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 5405 # "aix,yes" lib.so shared, rtl:yes, for executables 5406 # lib.a static archive 5407 # "both,no" lib.so.V(shr.o) shared, rtl:yes 5408 # lib.a(lib.so.V) shared, rtl:no, for executables 5409 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 5410 # lib.a(lib.so.V) shared, rtl:no 5411 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 5412 # lib.a static archive 4930 5413 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 4931 5414 for ld_flag in $LDFLAGS; do 4932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then5415 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 4933 5416 aix_use_runtimelinking=yes 4934 5417 break 4935 5418 fi 4936 5419 done 5420 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 5421 # With aix-soname=svr4, we create the lib.so.V shared archives only, 5422 # so we don't have lib.a shared libs to link our executables. 5423 # We have to force runtime linking in this case. 5424 aix_use_runtimelinking=yes 5425 LDFLAGS="$LDFLAGS -Wl,-brtl" 5426 fi 4937 5427 ;; 4938 5428 esac … … 4953 5443 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 4954 5444 _LT_TAGVAR(link_all_deplibs, $1)=yes 4955 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 4956 4957 if test "$GCC" = yes; then 5445 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 5446 case $with_aix_soname,$aix_use_runtimelinking in 5447 aix,*) ;; # traditional, no import file 5448 svr4,* | *,yes) # use import file 5449 # The Import File defines what to hardcode. 5450 _LT_TAGVAR(hardcode_direct, $1)=no 5451 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5452 ;; 5453 esac 5454 5455 if test yes = "$GCC"; then 4958 5456 case $host_os in aix4.[[012]]|aix4.[[012]].*) 4959 5457 # We only want to do this on AIX 4.2 and lower, the check 4960 5458 # below for broken collect2 doesn't work under 4.3+ 4961 collect2name=`$ {CC}-print-prog-name=collect2`5459 collect2name=`$CC -print-prog-name=collect2` 4962 5460 if test -f "$collect2name" && 4963 5461 strings "$collect2name" | $GREP resolve_lib_name >/dev/null … … 4978 5476 esac 4979 5477 shared_flag='-shared' 4980 if test "$aix_use_runtimelinking" = yes; then4981 shared_flag="$shared_flag "'$ {wl}-G'5478 if test yes = "$aix_use_runtimelinking"; then 5479 shared_flag="$shared_flag "'$wl-G' 4982 5480 fi 4983 _LT_TAGVAR(link_all_deplibs, $1)=no 5481 # Need to ensure runtime linking is disabled for the traditional 5482 # shared library, or the linker may eventually find shared libraries 5483 # /with/ Import File - we do not want to mix them. 5484 shared_flag_aix='-shared' 5485 shared_flag_svr4='-shared $wl-G' 4984 5486 else 4985 5487 # not using gcc 4986 if test "$host_cpu" = ia64; then5488 if test ia64 = "$host_cpu"; then 4987 5489 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 4988 5490 # chokes on -Wl,-G. The following line is correct: 4989 5491 shared_flag='-G' 4990 5492 else 4991 if test "$aix_use_runtimelinking" = yes; then4992 shared_flag='$ {wl}-G'5493 if test yes = "$aix_use_runtimelinking"; then 5494 shared_flag='$wl-G' 4993 5495 else 4994 shared_flag='$ {wl}-bM:SRE'5496 shared_flag='$wl-bM:SRE' 4995 5497 fi 5498 shared_flag_aix='$wl-bM:SRE' 5499 shared_flag_svr4='$wl-G' 4996 5500 fi 4997 5501 fi 4998 5502 4999 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-bexpall'5503 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 5000 5504 # It seems that -bexpall does not export symbols beginning with 5001 5505 # underscore (_), so it is better to generate a list of symbols to export. 5002 5506 _LT_TAGVAR(always_export_symbols, $1)=yes 5003 if test "$aix_use_runtimelinking" = yes; then5507 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 5004 5508 # Warning - without using the other runtime loading flags (-brtl), 5005 5509 # -berok will link without error, but may produce a broken library. … … 5008 5512 # empty executable. 5009 5513 _LT_SYS_MODULE_PATH_AIX([$1]) 5010 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-blibpath:$libdir:'"$aix_libpath"5011 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"5514 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 5515 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 5012 5516 else 5013 if test "$host_cpu" = ia64; then5014 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-R $libdir:/usr/lib:/lib'5517 if test ia64 = "$host_cpu"; then 5518 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 5015 5519 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5016 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$ {wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"5520 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 5017 5521 else 5018 5522 # Determine the default libpath from the value encoded in an 5019 5523 # empty executable. 5020 5524 _LT_SYS_MODULE_PATH_AIX([$1]) 5021 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-blibpath:$libdir:'"$aix_libpath"5525 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 5022 5526 # Warning - without using the other run time loading flags, 5023 5527 # -berok will link without error, but may produce a broken library. 5024 _LT_TAGVAR(no_undefined_flag, $1)=' $ {wl}-bernotok'5025 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-berok'5026 if test "$with_gnu_ld" = yes; then5528 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 5529 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 5530 if test yes = "$with_gnu_ld"; then 5027 5531 # We only use this code for GNU lds that support --whole-archive. 5028 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive$convenience ${wl}--no-whole-archive'5532 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 5029 5533 else 5030 5534 # Exported symbols can be pulled into shared objects from archives … … 5032 5536 fi 5033 5537 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5034 # This is similar to how AIX traditionally builds its shared libraries. 5035 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5538 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 5539 # -brtl affects multiple linker settings, -berok does not and is overridden later 5540 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 5541 if test svr4 != "$with_aix_soname"; then 5542 # This is similar to how AIX traditionally builds its shared libraries. 5543 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 5544 fi 5545 if test aix != "$with_aix_soname"; then 5546 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 5547 else 5548 # used by -dlpreopen to get the symbols 5549 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 5550 fi 5551 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 5036 5552 fi 5037 5553 fi … … 5042 5558 powerpc) 5043 5559 # see comment about AmigaOS4 .so support 5044 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'5560 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5045 5561 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5046 5562 ;; … … 5072 5588 libext=lib 5073 5589 # Tell ltmain to make .dll files, not .so files. 5074 shrext_cmds= ".dll"5590 shrext_cmds=.dll 5075 5591 # FIXME: Setting linknames here is a bad hack. 5076 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 5077 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5078 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 5079 else 5080 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 5081 fi~ 5082 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 5083 linknames=' 5592 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 5593 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5594 cp "$export_symbols" "$output_objdir/$soname.def"; 5595 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 5596 else 5597 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 5598 fi~ 5599 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 5600 linknames=' 5084 5601 # The linker will not automatically build a static lib if we build a DLL. 5085 5602 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5086 5603 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5604 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5087 5605 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 5088 5606 # Don't use ranlib 5089 5607 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 5090 5608 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 5091 5092 5093 5094 5095 lt_outputfile="$lt_outputfile.exe" 5096 lt_tool_outputfile="$lt_tool_outputfile.exe" 5097 5098 5099 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then5100 5101 5102 5609 lt_tool_outputfile="@TOOL_OUTPUT@"~ 5610 case $lt_outputfile in 5611 *.exe|*.EXE) ;; 5612 *) 5613 lt_outputfile=$lt_outputfile.exe 5614 lt_tool_outputfile=$lt_tool_outputfile.exe 5615 ;; 5616 esac~ 5617 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 5618 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 5619 $RM "$lt_outputfile.manifest"; 5620 fi' 5103 5621 ;; 5104 5622 *) … … 5109 5627 libext=lib 5110 5628 # Tell ltmain to make .dll files, not .so files. 5111 shrext_cmds= ".dll"5629 shrext_cmds=.dll 5112 5630 # FIXME: Setting linknames here is a bad hack. 5113 5631 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' … … 5131 5649 ;; 5132 5650 5133 freebsd1*)5134 _LT_TAGVAR(ld_shlibs, $1)=no5135 ;;5136 5137 5651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5138 5652 # support. Future versions do this automatically, but an explicit c++rt0.o … … 5147 5661 5148 5662 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5149 freebsd2 *)5663 freebsd2.*) 5150 5664 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5151 5665 _LT_TAGVAR(hardcode_direct, $1)=yes … … 5163 5677 5164 5678 hpux9*) 5165 if test "$GCC" = yes; then5166 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $ {wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib|| mv $output_objdir/$soname $lib'5679 if test yes = "$GCC"; then 5680 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 5167 5681 else 5168 _LT_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'5682 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 5169 5683 fi 5170 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}+b ${wl}$libdir'5684 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5171 5685 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5172 5686 _LT_TAGVAR(hardcode_direct, $1)=yes … … 5175 5689 # but as the default location of the library. 5176 5690 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5177 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'5691 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5178 5692 ;; 5179 5693 5180 5694 hpux10*) 5181 if test "$GCC" = yes && test "$with_gnu_ld" = no; then5182 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5695 if test yes,no = "$GCC,$with_gnu_ld"; then 5696 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5183 5697 else 5184 5698 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5185 5699 fi 5186 if test "$with_gnu_ld" = no; then 5187 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5188 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5700 if test no = "$with_gnu_ld"; then 5701 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5189 5702 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5190 5703 _LT_TAGVAR(hardcode_direct, $1)=yes 5191 5704 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5192 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'5705 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5193 5706 # hardcode_minus_L: Not really in the search PATH, 5194 5707 # but as the default location of the library. … … 5198 5711 5199 5712 hpux11*) 5200 if test "$GCC" = yes && test "$with_gnu_ld" = no; then5713 if test yes,no = "$GCC,$with_gnu_ld"; then 5201 5714 case $host_cpu in 5202 5715 hppa*64*) 5203 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5716 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5204 5717 ;; 5205 5718 ia64*) 5206 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'5719 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5207 5720 ;; 5208 5721 *) 5209 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5722 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5210 5723 ;; 5211 5724 esac … … 5213 5726 case $host_cpu in 5214 5727 hppa*64*) 5215 _LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5728 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5216 5729 ;; 5217 5730 ia64*) 5218 _LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'5731 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5219 5732 ;; 5220 5733 *) … … 5224 5737 _LT_LINKER_OPTION([if $CC understands -b], 5225 5738 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 5226 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],5739 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 5227 5740 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 5228 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])5741 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 5229 5742 ;; 5230 5743 esac 5231 5744 fi 5232 if test "$with_gnu_ld" = no; then5233 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}+b ${wl}$libdir'5745 if test no = "$with_gnu_ld"; then 5746 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5234 5747 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5235 5748 … … 5242 5755 _LT_TAGVAR(hardcode_direct, $1)=yes 5243 5756 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5244 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'5757 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5245 5758 5246 5759 # hardcode_minus_L: Not really in the search PATH, … … 5253 5766 5254 5767 irix5* | irix6* | nonstopux*) 5255 if test "$GCC" = yes; then5256 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5768 if test yes = "$GCC"; then 5769 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 5257 5770 # Try to use the -exported_symbol ld option, if it does not 5258 5771 # work, assume that -exports_file does not work either and … … 5261 5774 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 5262 5775 [lt_cv_irix_exported_symbol], 5263 [save_LDFLAGS= "$LDFLAGS"5264 LDFLAGS="$LDFLAGS -shared $ {wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"5776 [save_LDFLAGS=$LDFLAGS 5777 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 5265 5778 AC_LINK_IFELSE( 5266 5779 [AC_LANG_SOURCE( … … 5275 5788 [lt_cv_irix_exported_symbol=yes], 5276 5789 [lt_cv_irix_exported_symbol=no]) 5277 LDFLAGS= "$save_LDFLAGS"])5278 if test "$lt_cv_irix_exported_symbol" = yes; then5279 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'5790 LDFLAGS=$save_LDFLAGS]) 5791 if test yes = "$lt_cv_irix_exported_symbol"; then 5792 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 5280 5793 fi 5794 _LT_TAGVAR(link_all_deplibs, $1)=no 5281 5795 else 5282 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $ {output_objdir}/so_locations -o $lib'5283 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $ {output_objdir}/so_locations -exports_file $export_symbols -o $lib'5796 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 5797 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 5284 5798 fi 5285 5799 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'5800 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5287 5801 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5288 5802 _LT_TAGVAR(inherit_rpath, $1)=yes 5289 5803 _LT_TAGVAR(link_all_deplibs, $1)=yes 5804 ;; 5805 5806 linux*) 5807 case $cc_basename in 5808 tcc*) 5809 # Fabrice Bellard et al's Tiny C Compiler 5810 _LT_TAGVAR(ld_shlibs, $1)=yes 5811 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5812 ;; 5813 esac 5290 5814 ;; 5291 5815 … … 5304 5828 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5305 5829 _LT_TAGVAR(hardcode_direct, $1)=yes 5306 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'5830 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5307 5831 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5308 5832 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no … … 5312 5836 ;; 5313 5837 5314 openbsd* )5838 openbsd* | bitrig*) 5315 5839 if test -f /usr/libexec/ld.so; then 5316 5840 _LT_TAGVAR(hardcode_direct, $1)=yes 5317 5841 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5318 5842 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then5843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5320 5844 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5321 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $ {wl}-retain-symbols-file,$export_symbols'5322 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'5323 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'5845 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 5846 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5847 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5324 5848 else 5325 case $host_os in 5326 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5327 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5328 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5329 ;; 5330 *) 5331 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5332 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5333 ;; 5334 esac 5849 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5850 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5335 5851 fi 5336 5852 else … … 5343 5859 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5344 5860 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5345 _LT_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' 5346 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5861 shrext_cmds=.dll 5862 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5863 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5864 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5865 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5866 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5867 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5868 emximp -o $lib $output_objdir/$libname.def' 5869 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5870 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5871 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5872 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5873 prefix_cmds="$SED"~ 5874 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5875 prefix_cmds="$prefix_cmds -e 1d"; 5876 fi~ 5877 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5878 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5879 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5880 emximp -o $lib $output_objdir/$libname.def' 5881 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5882 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5347 5883 ;; 5348 5884 5349 5885 osf3*) 5350 if test "$GCC" = yes; then5351 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-expect_unresolved ${wl}\*'5352 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5886 if test yes = "$GCC"; then 5887 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5888 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 5353 5889 else 5354 5890 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5355 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'5891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 5356 5892 fi 5357 5893 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5358 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'5894 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5359 5895 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5360 5896 ;; 5361 5897 5362 5898 osf4* | osf5*) # as osf3* with the addition of -msym flag 5363 if test "$GCC" = yes; then5364 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-expect_unresolved ${wl}\*'5365 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'5899 if test yes = "$GCC"; then 5900 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 5902 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5367 5903 else 5368 5904 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5369 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'5905 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 5370 5906 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 5371 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'5907 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 5372 5908 5373 5909 # Both c and cxx compiler support -rpath directly … … 5380 5916 solaris*) 5381 5917 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 5382 if test "$GCC" = yes; then5383 wlarc='$ {wl}'5384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $ {wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5918 if test yes = "$GCC"; then 5919 wlarc='$wl' 5920 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5385 5921 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5386 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'5922 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5387 5923 else 5388 5924 case `$CC -V 2>&1` in 5389 5925 *"Compilers 5.0"*) 5390 5926 wlarc='' 5391 _LT_TAGVAR(archive_cmds, $1)='$LD -G$ {allow_undefined_flag}-h $soname -o $lib $libobjs $deplibs $linker_flags'5927 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 5392 5928 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5393 $LD -G${allow_undefined_flag}-M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'5929 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 5394 5930 ;; 5395 5931 *) 5396 wlarc='$ {wl}'5397 _LT_TAGVAR(archive_cmds, $1)='$CC -G$ {allow_undefined_flag}-h $soname -o $lib $libobjs $deplibs $compiler_flags'5932 wlarc='$wl' 5933 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 5398 5934 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5399 $CC -G${allow_undefined_flag}-M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'5935 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5400 5936 ;; 5401 5937 esac … … 5407 5943 *) 5408 5944 # The compiler driver will combine and reorder linker options, 5409 # but understands `-z linker_flag'. GCC discards it without `$wl',5945 # but understands '-z linker_flag'. GCC discards it without '$wl', 5410 5946 # but is careful enough not to reorder. 5411 5947 # Supported since Solaris 2.6 (maybe 2.5.1?) 5412 if test "$GCC" = yes; then5413 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'5948 if test yes = "$GCC"; then 5949 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 5414 5950 else 5415 5951 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' … … 5421 5957 5422 5958 sunos4*) 5423 if test "x$host_vendor" = xsequent; then5959 if test sequent = "$host_vendor"; then 5424 5960 # Use $CC to link under sequent, because it throws in some extra .o 5425 5961 # files that make .init and .fini sections work. 5426 _LT_TAGVAR(archive_cmds, $1)='$CC -G $ {wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'5962 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5427 5963 else 5428 5964 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' … … 5473 6009 5474 6010 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 5475 _LT_TAGVAR(no_undefined_flag, $1)='$ {wl}-z,text'6011 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 5476 6012 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5477 6013 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5478 6014 runpath_var='LD_RUN_PATH' 5479 6015 5480 if test "$GCC" = yes; then5481 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'5482 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6016 if test yes = "$GCC"; then 6017 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6018 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5483 6019 else 5484 _LT_TAGVAR(archive_cmds, $1)='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'5485 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6020 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6021 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5486 6022 fi 5487 6023 ;; 5488 6024 5489 6025 sysv5* | sco3.2v5* | sco5v6*) 5490 # Note: We canNOT use -z defs as we might desire, because we do not6026 # Note: We CANNOT use -z defs as we might desire, because we do not 5491 6027 # link with -lc, and that would cause any symbols used from libc to 5492 6028 # always be unresolved, which means just about no library would … … 5494 6030 # though, which does catch some bad symbols but isn't as heavy-handed 5495 6031 # as -z defs. 5496 _LT_TAGVAR(no_undefined_flag, $1)='$ {wl}-z,text'5497 _LT_TAGVAR(allow_undefined_flag, $1)='$ {wl}-z,nodefs'6032 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6033 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 5498 6034 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5499 6035 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-R,$libdir'6036 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 5501 6037 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5502 6038 _LT_TAGVAR(link_all_deplibs, $1)=yes 5503 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-Bexport'6039 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 5504 6040 runpath_var='LD_RUN_PATH' 5505 6041 5506 if test "$GCC" = yes; then5507 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'5508 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6042 if test yes = "$GCC"; then 6043 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6044 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5509 6045 else 5510 _LT_TAGVAR(archive_cmds, $1)='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'5511 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6046 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6047 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5512 6048 fi 5513 6049 ;; … … 5524 6060 esac 5525 6061 5526 if test x$host_vendor = xsni; then6062 if test sni = "$host_vendor"; then 5527 6063 case $host in 5528 6064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5529 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-Blargedynsym'6065 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 5530 6066 ;; 5531 6067 esac … … 5534 6070 ]) 5535 6071 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 5536 test "$_LT_TAGVAR(ld_shlibs, $1)" = no&& can_build_shared=no6072 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 5537 6073 5538 6074 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld … … 5551 6087 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5552 6088 5553 if test "$enable_shared" = yes && test "$GCC" = yes; then6089 if test yes,yes = "$GCC,$enable_shared"; then 5554 6090 case $_LT_TAGVAR(archive_cmds, $1) in 5555 6091 *'~'*) … … 5628 6164 [Flag to hardcode $libdir into a binary during linking. 5629 6165 This must work even if $libdir does not exist]) 5630 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],5631 [[If ld is used when linking, flag to hardcode $libdir into a binary5632 during linking. This must work even if $libdir does not exist]])5633 6166 _LT_TAGDECL([], [hardcode_libdir_separator], [1], 5634 6167 [Whether we need a single "-rpath" flag with a separated argument]) 5635 6168 _LT_TAGDECL([], [hardcode_direct], [0], 5636 [Set to "yes" if using DIR/libNAME$ {shared_ext}during linking hardcodes6169 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 5637 6170 DIR into the resulting binary]) 5638 6171 _LT_TAGDECL([], [hardcode_direct_absolute], [0], 5639 [Set to "yes" if using DIR/libNAME$ {shared_ext}during linking hardcodes6172 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 5640 6173 DIR into the resulting binary and the resulting library dependency is 5641 "absolute", i.e impossible to change by setting $ {shlibpath_var}if the6174 "absolute", i.e impossible to change by setting $shlibpath_var if the 5642 6175 library is relocated]) 5643 6176 _LT_TAGDECL([], [hardcode_minus_L], [0], … … 5680 6213 # Ensure that the configuration variables for a C compiler are suitably 5681 6214 # defined. These variables are subsequently used by _LT_CONFIG to write 5682 # the compiler configuration to `libtool'.6215 # the compiler configuration to 'libtool'. 5683 6216 m4_defun([_LT_LANG_C_CONFIG], 5684 6217 [m4_require([_LT_DECL_EGREP])dnl 5685 lt_save_CC= "$CC"6218 lt_save_CC=$CC 5686 6219 AC_LANG_PUSH(C) 5687 6220 … … 5723 6256 _LT_CMD_STRIPLIB 5724 6257 5725 # Report wh ichlibrary types will actually be built6258 # Report what library types will actually be built 5726 6259 AC_MSG_CHECKING([if libtool supports shared libraries]) 5727 6260 AC_MSG_RESULT([$can_build_shared]) 5728 6261 5729 6262 AC_MSG_CHECKING([whether to build shared libraries]) 5730 test "$can_build_shared" = "no" && enable_shared=no6263 test no = "$can_build_shared" && enable_shared=no 5731 6264 5732 6265 # On AIX, shared libraries and static libraries use the same namespace, and … … 5734 6267 case $host_os in 5735 6268 aix3*) 5736 test "$enable_shared" = yes&& enable_static=no6269 test yes = "$enable_shared" && enable_static=no 5737 6270 if test -n "$RANLIB"; then 5738 6271 archive_cmds="$archive_cmds~\$RANLIB \$lib" … … 5742 6275 5743 6276 aix[[4-9]]*) 5744 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 5745 test "$enable_shared" = yes && enable_static=no 6277 if test ia64 != "$host_cpu"; then 6278 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 6279 yes,aix,yes) ;; # shared object as lib.so file only 6280 yes,svr4,*) ;; # shared object as lib.so archive member only 6281 yes,*) enable_static=no ;; # shared object in lib.a archive as well 6282 esac 5746 6283 fi 5747 6284 ;; … … 5751 6288 AC_MSG_CHECKING([whether to build static libraries]) 5752 6289 # Make sure either enable_shared or enable_static is yes. 5753 test "$enable_shared" = yes|| enable_static=yes6290 test yes = "$enable_shared" || enable_static=yes 5754 6291 AC_MSG_RESULT([$enable_static]) 5755 6292 … … 5757 6294 fi 5758 6295 AC_LANG_POP 5759 CC= "$lt_save_CC"6296 CC=$lt_save_CC 5760 6297 ])# _LT_LANG_C_CONFIG 5761 6298 … … 5765 6302 # Ensure that the configuration variables for a C++ compiler are suitably 5766 6303 # defined. These variables are subsequently used by _LT_CONFIG to write 5767 # the compiler configuration to `libtool'.6304 # the compiler configuration to 'libtool'. 5768 6305 m4_defun([_LT_LANG_CXX_CONFIG], 5769 6306 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5770 6307 m4_require([_LT_DECL_EGREP])dnl 5771 6308 m4_require([_LT_PATH_MANIFEST_TOOL])dnl 5772 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&5773 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||5774 (test "X$CXX" != "Xg++"))); then6309 if test -n "$CXX" && ( test no != "$CXX" && 6310 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 6311 (test g++ != "$CXX"))); then 5775 6312 AC_PROG_CXXCPP 5776 6313 else … … 5788 6325 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5789 6326 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5790 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=5791 6327 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5792 6328 _LT_TAGVAR(hardcode_minus_L, $1)=no … … 5815 6351 # are currently assumed to apply to all compilers on this platform, 5816 6352 # and will be corrupted by setting them based on a non-working compiler. 5817 if test "$_lt_caught_CXX_error" != yes; then6353 if test yes != "$_lt_caught_CXX_error"; then 5818 6354 # Code to be used in simple compile tests 5819 6355 lt_simple_compile_test_code="int some_variable = 0;" … … 5857 6393 # We don't want -fno-exception when compiling C++ code, so set the 5858 6394 # no_builtin_flag separately 5859 if test "$GXX" = yes; then6395 if test yes = "$GXX"; then 5860 6396 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5861 6397 else … … 5863 6399 fi 5864 6400 5865 if test "$GXX" = yes; then6401 if test yes = "$GXX"; then 5866 6402 # Set up default GNU C++ configuration 5867 6403 … … 5870 6406 # Check if GNU C++ uses GNU ld as the underlying linker, since the 5871 6407 # archiving commands below assume that GNU ld is being used. 5872 if test "$with_gnu_ld" = yes; then5873 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib'5874 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5875 5876 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'5877 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'6408 if test yes = "$with_gnu_ld"; then 6409 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6410 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6411 6412 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6413 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 5878 6414 5879 6415 # If archive_cmds runs LD, not CC, wlarc should be empty 5880 6416 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 5881 6417 # investigate it a little bit more. (MM) 5882 wlarc='$ {wl}'6418 wlarc='$wl' 5883 6419 5884 6420 # ancient GNU ld didn't support --whole-archive et. al. 5885 6421 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 5886 6422 $GREP 'no-whole-archive' > /dev/null; then 5887 _LT_TAGVAR(whole_archive_flag_spec, $1)= "$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'6423 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 5888 6424 else 5889 6425 _LT_TAGVAR(whole_archive_flag_spec, $1)= … … 5921 6457 ;; 5922 6458 aix[[4-9]]*) 5923 if test "$host_cpu" = ia64; then6459 if test ia64 = "$host_cpu"; then 5924 6460 # On IA64, the linker does run time linking by default, so we don't 5925 6461 # have to do anything special. 5926 6462 aix_use_runtimelinking=no 5927 6463 exp_sym_flag='-Bexport' 5928 no_entry_flag= ""6464 no_entry_flag= 5929 6465 else 5930 6466 aix_use_runtimelinking=no … … 5932 6468 # Test if we are trying to use run time linking or normal 5933 6469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5934 # need to do runtime linking. 6470 # have runtime linking enabled, and use it for executables. 6471 # For shared libraries, we enable/disable runtime linking 6472 # depending on the kind of the shared library created - 6473 # when "with_aix_soname,aix_use_runtimelinking" is: 6474 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 6475 # "aix,yes" lib.so shared, rtl:yes, for executables 6476 # lib.a static archive 6477 # "both,no" lib.so.V(shr.o) shared, rtl:yes 6478 # lib.a(lib.so.V) shared, rtl:no, for executables 6479 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 6480 # lib.a(lib.so.V) shared, rtl:no 6481 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 6482 # lib.a static archive 5935 6483 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5936 6484 for ld_flag in $LDFLAGS; do … … 5942 6490 esac 5943 6491 done 6492 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 6493 # With aix-soname=svr4, we create the lib.so.V shared archives only, 6494 # so we don't have lib.a shared libs to link our executables. 6495 # We have to force runtime linking in this case. 6496 aix_use_runtimelinking=yes 6497 LDFLAGS="$LDFLAGS -Wl,-brtl" 6498 fi 5944 6499 ;; 5945 6500 esac … … 5960 6515 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5961 6516 _LT_TAGVAR(link_all_deplibs, $1)=yes 5962 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 5963 5964 if test "$GXX" = yes; then 6517 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 6518 case $with_aix_soname,$aix_use_runtimelinking in 6519 aix,*) ;; # no import file 6520 svr4,* | *,yes) # use import file 6521 # The Import File defines what to hardcode. 6522 _LT_TAGVAR(hardcode_direct, $1)=no 6523 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6524 ;; 6525 esac 6526 6527 if test yes = "$GXX"; then 5965 6528 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5966 6529 # We only want to do this on AIX 4.2 and lower, the check 5967 6530 # below for broken collect2 doesn't work under 4.3+ 5968 collect2name=`$ {CC}-print-prog-name=collect2`6531 collect2name=`$CC -print-prog-name=collect2` 5969 6532 if test -f "$collect2name" && 5970 6533 strings "$collect2name" | $GREP resolve_lib_name >/dev/null … … 5984 6547 esac 5985 6548 shared_flag='-shared' 5986 if test "$aix_use_runtimelinking" = yes; then5987 shared_flag= "$shared_flag "'${wl}-G'6549 if test yes = "$aix_use_runtimelinking"; then 6550 shared_flag=$shared_flag' $wl-G' 5988 6551 fi 6552 # Need to ensure runtime linking is disabled for the traditional 6553 # shared library, or the linker may eventually find shared libraries 6554 # /with/ Import File - we do not want to mix them. 6555 shared_flag_aix='-shared' 6556 shared_flag_svr4='-shared $wl-G' 5989 6557 else 5990 6558 # not using gcc 5991 if test "$host_cpu" = ia64; then6559 if test ia64 = "$host_cpu"; then 5992 6560 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5993 6561 # chokes on -Wl,-G. The following line is correct: 5994 6562 shared_flag='-G' 5995 6563 else 5996 if test "$aix_use_runtimelinking" = yes; then5997 shared_flag='$ {wl}-G'6564 if test yes = "$aix_use_runtimelinking"; then 6565 shared_flag='$wl-G' 5998 6566 else 5999 shared_flag='$ {wl}-bM:SRE'6567 shared_flag='$wl-bM:SRE' 6000 6568 fi 6569 shared_flag_aix='$wl-bM:SRE' 6570 shared_flag_svr4='$wl-G' 6001 6571 fi 6002 6572 fi 6003 6573 6004 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-bexpall'6574 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 6005 6575 # It seems that -bexpall does not export symbols beginning with 6006 6576 # underscore (_), so it is better to generate a list of symbols to 6007 6577 # export. 6008 6578 _LT_TAGVAR(always_export_symbols, $1)=yes 6009 if test "$aix_use_runtimelinking" = yes; then6579 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 6010 6580 # Warning - without using the other runtime loading flags (-brtl), 6011 6581 # -berok will link without error, but may produce a broken library. 6012 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6582 # The "-G" linker flag allows undefined symbols. 6583 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 6013 6584 # Determine the default libpath from the value encoded in an empty 6014 6585 # executable. 6015 6586 _LT_SYS_MODULE_PATH_AIX([$1]) 6016 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-blibpath:$libdir:'"$aix_libpath"6017 6018 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"6587 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6588 6589 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 6019 6590 else 6020 if test "$host_cpu" = ia64; then6021 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-R $libdir:/usr/lib:/lib'6591 if test ia64 = "$host_cpu"; then 6592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 6022 6593 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6023 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$ {wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"6594 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 6024 6595 else 6025 6596 # Determine the default libpath from the value encoded in an 6026 6597 # empty executable. 6027 6598 _LT_SYS_MODULE_PATH_AIX([$1]) 6028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-blibpath:$libdir:'"$aix_libpath"6599 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6029 6600 # Warning - without using the other run time loading flags, 6030 6601 # -berok will link without error, but may produce a broken library. 6031 _LT_TAGVAR(no_undefined_flag, $1)=' $ {wl}-bernotok'6032 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-berok'6033 if test "$with_gnu_ld" = yes; then6602 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 6603 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 6604 if test yes = "$with_gnu_ld"; then 6034 6605 # We only use this code for GNU lds that support --whole-archive. 6035 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive$convenience ${wl}--no-whole-archive'6606 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 6036 6607 else 6037 6608 # Exported symbols can be pulled into shared objects from archives … … 6039 6610 fi 6040 6611 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6041 # This is similar to how AIX traditionally builds its shared 6042 # libraries. 6043 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6612 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 6613 # -brtl affects multiple linker settings, -berok does not and is overridden later 6614 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 6615 if test svr4 != "$with_aix_soname"; then 6616 # This is similar to how AIX traditionally builds its shared 6617 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 6618 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 6619 fi 6620 if test aix != "$with_aix_soname"; then 6621 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 6622 else 6623 # used by -dlpreopen to get the symbols 6624 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 6625 fi 6626 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 6044 6627 fi 6045 6628 fi … … 6051 6634 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6052 6635 # support --undefined. This deserves some investigation. FIXME 6053 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'6636 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6054 6637 else 6055 6638 _LT_TAGVAR(ld_shlibs, $1)=no … … 6079 6662 libext=lib 6080 6663 # Tell ltmain to make .dll files, not .so files. 6081 shrext_cmds= ".dll"6664 shrext_cmds=.dll 6082 6665 # FIXME: Setting linknames here is a bad hack. 6083 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 6084 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6085 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 6086 else 6087 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 6088 fi~ 6089 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6090 linknames=' 6666 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 6667 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6668 cp "$export_symbols" "$output_objdir/$soname.def"; 6669 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 6670 else 6671 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 6672 fi~ 6673 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6674 linknames=' 6091 6675 # The linker will not automatically build a static lib if we build a DLL. 6092 6676 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' … … 6095 6679 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6096 6680 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6097 6098 6099 6100 6101 lt_outputfile="$lt_outputfile.exe" 6102 lt_tool_outputfile="$lt_tool_outputfile.exe" 6103 6104 6105 6106 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then6107 6108 6109 6681 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6682 case $lt_outputfile in 6683 *.exe|*.EXE) ;; 6684 *) 6685 lt_outputfile=$lt_outputfile.exe 6686 lt_tool_outputfile=$lt_tool_outputfile.exe 6687 ;; 6688 esac~ 6689 func_to_tool_file "$lt_outputfile"~ 6690 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 6691 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6692 $RM "$lt_outputfile.manifest"; 6693 fi' 6110 6694 ;; 6111 6695 *) … … 6114 6698 # as there is no search path for DLLs. 6115 6699 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6116 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-all-symbols'6700 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 6117 6701 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6118 6702 _LT_TAGVAR(always_export_symbols, $1)=no … … 6120 6704 6121 6705 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6122 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $ {wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'6123 # If the export-symbols file already is a .def file (1st line6124 # is EXPORTS), use it as is; otherwise, prepend...6125 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then6126 6127 6128 6129 6130 6131 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'6706 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6707 # If the export-symbols file already is a .def file, use it as 6708 # is; otherwise, prepend EXPORTS... 6709 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6710 cp $export_symbols $output_objdir/$soname.def; 6711 else 6712 echo EXPORTS > $output_objdir/$soname.def; 6713 cat $export_symbols >> $output_objdir/$soname.def; 6714 fi~ 6715 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6132 6716 else 6133 6717 _LT_TAGVAR(ld_shlibs, $1)=no … … 6138 6722 darwin* | rhapsody*) 6139 6723 _LT_DARWIN_LINKER_FEATURES($1) 6724 ;; 6725 6726 os2*) 6727 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6728 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6729 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6730 shrext_cmds=.dll 6731 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6732 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6733 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6734 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6735 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 6736 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6737 emximp -o $lib $output_objdir/$libname.def' 6738 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6739 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6740 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6741 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6742 prefix_cmds="$SED"~ 6743 if test EXPORTS = "`$SED 1q $export_symbols`"; then 6744 prefix_cmds="$prefix_cmds -e 1d"; 6745 fi~ 6746 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 6747 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 6748 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6749 emximp -o $lib $output_objdir/$libname.def' 6750 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 6751 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6140 6752 ;; 6141 6753 … … 6158 6770 ;; 6159 6771 6160 freebsd [[12]]*)6772 freebsd2.*) 6161 6773 # C++ shared libraries reported to be fairly broken before 6162 6774 # switch to ELF … … 6174 6786 ;; 6175 6787 6176 gnu*)6177 ;;6178 6179 6788 haiku*) 6180 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'6789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6181 6790 _LT_TAGVAR(link_all_deplibs, $1)=yes 6182 6791 ;; 6183 6792 6184 6793 hpux9*) 6185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}+b ${wl}$libdir'6794 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6186 6795 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6187 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'6796 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6188 6797 _LT_TAGVAR(hardcode_direct, $1)=yes 6189 6798 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, … … 6197 6806 ;; 6198 6807 aCC*) 6199 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $ {wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib|| mv $output_objdir/$soname $lib'6808 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 6200 6809 # Commands to make compiler produce verbose output that lists 6201 6810 # what "hidden" libraries, object files and flags are used when … … 6206 6815 # from the output so that they don't get included in the library 6207 6816 # dependencies. 6208 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'6817 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 6209 6818 ;; 6210 6819 *) 6211 if test "$GXX" = yes; then6212 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $ {wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib|| mv $output_objdir/$soname $lib'6820 if test yes = "$GXX"; then 6821 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 6213 6822 else 6214 6823 # FIXME: insert proper C++ library support … … 6220 6829 6221 6830 hpux10*|hpux11*) 6222 if test $with_gnu_ld = no; then6223 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}+b ${wl}$libdir'6831 if test no = "$with_gnu_ld"; then 6832 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6224 6833 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6225 6834 … … 6228 6837 ;; 6229 6838 *) 6230 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'6839 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6231 6840 ;; 6232 6841 esac … … 6254 6863 case $host_cpu in 6255 6864 hppa*64*) 6256 _LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6865 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6257 6866 ;; 6258 6867 ia64*) 6259 _LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6868 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6260 6869 ;; 6261 6870 *) 6262 _LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6871 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6263 6872 ;; 6264 6873 esac … … 6271 6880 # from the output so that they don't get included in the library 6272 6881 # dependencies. 6273 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'6882 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 6274 6883 ;; 6275 6884 *) 6276 if test "$GXX" = yes; then6277 if test $with_gnu_ld = no; then6885 if test yes = "$GXX"; then 6886 if test no = "$with_gnu_ld"; then 6278 6887 case $host_cpu in 6279 6888 hppa*64*) 6280 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $ {wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6889 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6281 6890 ;; 6282 6891 ia64*) 6283 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6892 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6284 6893 ;; 6285 6894 *) 6286 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6895 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6287 6896 ;; 6288 6897 esac … … 6299 6908 _LT_TAGVAR(hardcode_direct, $1)=no 6300 6909 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6301 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'6302 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'6910 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6911 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6303 6912 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6304 6913 # Instead, shared libraries are loaded at an image base (0x10000000 by … … 6307 6916 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6308 6917 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6309 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'6310 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s ,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'6918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6919 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6311 6920 ;; 6312 6921 irix5* | irix6*) … … 6314 6923 CC*) 6315 6924 # SGI C++ 6316 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $ {output_objdir}/so_locations -o $lib'6925 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 6317 6926 6318 6927 # Archives containing C++ object files must be created using … … 6323 6932 ;; 6324 6933 *) 6325 if test "$GXX" = yes; then6326 if test "$with_gnu_ld" = no; then6327 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6934 if test yes = "$GXX"; then 6935 if test no = "$with_gnu_ld"; then 6936 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 6328 6937 else 6329 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'6938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 6330 6939 fi 6331 6940 fi … … 6333 6942 ;; 6334 6943 esac 6335 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'6944 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6336 6945 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6337 6946 _LT_TAGVAR(inherit_rpath, $1)=yes 6338 6947 ;; 6339 6948 6340 linux* | k*bsd*-gnu | kopensolaris*-gnu )6949 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6341 6950 case $cc_basename in 6342 6951 KCC*) … … 6346 6955 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6347 6956 # to its proper name (with version) after linking. 6348 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$ {tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'6349 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$ {tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'6957 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 6958 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 6350 6959 # Commands to make compiler produce verbose output that lists 6351 6960 # what "hidden" libraries, object files and flags are used when … … 6356 6965 # from the output so that they don't get included in the library 6357 6966 # dependencies. 6358 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'6359 6360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'6361 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'6967 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 6968 6969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6970 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6362 6971 6363 6972 # Archives containing C++ object files must be created using … … 6373 6982 case `$CC -V 2>&1` in 6374 6983 *"Version 7."*) 6375 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib'6376 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'6984 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6985 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6377 6986 ;; 6378 6987 *) # Version 8.0 or newer … … 6381 6990 ia64*) tmp_idyn=' -i_dynamic';; 6382 6991 esac 6383 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'6384 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'6992 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6993 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6385 6994 ;; 6386 6995 esac 6387 6996 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6388 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'6389 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'6390 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive$convenience ${wl}--no-whole-archive'6997 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6998 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6999 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 6391 7000 ;; 6392 7001 pgCC* | pgcpp*) … … 6395 7004 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 6396 7005 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 6397 6398 6399 7006 rm -rf $tpldir~ 7007 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 7008 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 6400 7009 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 6401 6402 6403 6404 7010 rm -rf $tpldir~ 7011 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 7012 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 7013 $RANLIB $oldlib' 6405 7014 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 6406 6407 6408 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'7015 rm -rf $tpldir~ 7016 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7017 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6409 7018 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 6410 6411 6412 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'7019 rm -rf $tpldir~ 7020 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7021 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6413 7022 ;; 6414 7023 *) # Version 6 and above use weak symbols 6415 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname -o $lib'6416 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'7024 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7025 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6417 7026 ;; 6418 7027 esac 6419 7028 6420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}--rpath ${wl}$libdir'6421 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'6422 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'7029 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 7030 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7031 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 6423 7032 ;; 6424 7033 cxx*) 6425 7034 # Compaq C++ 6426 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib'6427 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'7035 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7036 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 6428 7037 6429 7038 runpath_var=LD_RUN_PATH … … 6439 7048 # from the output so that they don't get included in the library 6440 7049 # dependencies. 6441 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'7050 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 6442 7051 ;; 6443 7052 xl* | mpixl* | bgxl*) 6444 7053 # IBM XL 8.0 on PPC, with GNU ld 6445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'6446 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'6447 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'6448 if test "x$supports_anon_versioning" = xyes; then7054 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7055 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7056 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7057 if test yes = "$supports_anon_versioning"; then 6449 7058 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6450 6451 6452 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'7059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7060 echo "local: *; };" >> $output_objdir/$libname.ver~ 7061 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 6453 7062 fi 6454 7063 ;; … … 6458 7067 # Sun C++ 5.9 6459 7068 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6460 _LT_TAGVAR(archive_cmds, $1)='$CC -G$ {allow_undefined_flag}-h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6461 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$ {allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'7069 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7070 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 6462 7071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6463 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'7072 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 6464 7073 _LT_TAGVAR(compiler_needs_object, $1)=yes 6465 7074 … … 6519 7128 ;; 6520 7129 6521 openbsd2*) 6522 # C++ shared libraries are fairly broken 6523 _LT_TAGVAR(ld_shlibs, $1)=no 6524 ;; 6525 6526 openbsd*) 7130 openbsd* | bitrig*) 6527 7131 if test -f /usr/libexec/ld.so; then 6528 7132 _LT_TAGVAR(hardcode_direct, $1)=yes … … 6530 7134 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6531 7135 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6532 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'6533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then6534 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-retain-symbols-file,$export_symbols -o $lib'6535 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'6536 _LT_TAGVAR(whole_archive_flag_spec, $1)= "$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'7136 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 7138 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 7139 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7140 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 6537 7141 fi 6538 7142 output_verbose_link_cmd=func_echo_all … … 6550 7154 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6551 7155 # to its proper name (with version) after linking. 6552 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$ {tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'6553 6554 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'7156 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 7157 7158 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6555 7159 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6556 7160 … … 6570 7174 case $host in 6571 7175 osf3*) 6572 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-expect_unresolved ${wl}\*'6573 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'6574 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'7176 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7177 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 7178 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6575 7179 ;; 6576 7180 *) 6577 7181 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6578 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'7182 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 6579 7183 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 6580 6581 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~6582 7184 echo "-hidden">> $lib.exp~ 7185 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 7186 $RM $lib.exp' 6583 7187 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6584 7188 ;; … … 6595 7199 # from the output so that they don't get included in the library 6596 7200 # dependencies. 6597 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'7201 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 6598 7202 ;; 6599 7203 *) 6600 if test "$GXX" = yes && test "$with_gnu_ld" = no; then6601 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-expect_unresolved ${wl}\*'7204 if test yes,no = "$GXX,$with_gnu_ld"; then 7205 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 6602 7206 case $host in 6603 7207 osf3*) 6604 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'7208 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 6605 7209 ;; 6606 7210 *) 6607 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'7211 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 6608 7212 ;; 6609 7213 esac 6610 7214 6611 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'7215 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6612 7216 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6613 7217 … … 6655 7259 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 6656 7260 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6657 _LT_TAGVAR(archive_cmds, $1)='$CC -G$ {allow_undefined_flag}-h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'7261 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6658 7262 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6659 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'7263 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6660 7264 6661 7265 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 6665 7269 *) 6666 7270 # The compiler driver will combine and reorder linker options, 6667 # but understands `-z linker_flag'.7271 # but understands '-z linker_flag'. 6668 7272 # Supported since Solaris 2.6 (maybe 2.5.1?) 6669 7273 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' … … 6682 7286 gcx*) 6683 7287 # Green Hills C++ Compiler 6684 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-h $wl$soname -o $lib'7288 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 6685 7289 6686 7290 # The C++ compiler must be used to create the archive. … … 6689 7293 *) 6690 7294 # GNU C++ compiler with Solaris linker 6691 if test "$GXX" = yes && test "$with_gnu_ld" = no; then6692 _LT_TAGVAR(no_undefined_flag, $1)=' $ {wl}-z ${wl}defs'7295 if test yes,no = "$GXX,$with_gnu_ld"; then 7296 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 6693 7297 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 6694 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $ LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'7298 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 6695 7299 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6696 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'7300 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6697 7301 6698 7302 # Commands to make compiler produce verbose output that lists … … 6701 7305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6702 7306 else 6703 # g++ 2.7 appears to require `-G' NOT `-shared' on this7307 # g++ 2.7 appears to require '-G' NOT '-shared' on this 6704 7308 # platform. 6705 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $ LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'7309 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 6706 7310 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6707 $CC -G -nostdlib ${wl}-M $wl$lib.exp-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'7311 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6708 7312 6709 7313 # Commands to make compiler produce verbose output that lists … … 6713 7317 fi 6714 7318 6715 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-R $wl$libdir'7319 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 6716 7320 case $host_os in 6717 7321 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6718 7322 *) 6719 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'7323 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 6720 7324 ;; 6721 7325 esac … … 6726 7330 6727 7331 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6728 _LT_TAGVAR(no_undefined_flag, $1)='$ {wl}-z,text'7332 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6729 7333 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6730 7334 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no … … 6733 7337 case $cc_basename in 6734 7338 CC*) 6735 _LT_TAGVAR(archive_cmds, $1)='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6736 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'7339 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7340 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6737 7341 ;; 6738 7342 *) 6739 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6740 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'7343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7344 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6741 7345 ;; 6742 7346 esac … … 6744 7348 6745 7349 sysv5* | sco3.2v5* | sco5v6*) 6746 # Note: We canNOT use -z defs as we might desire, because we do not7350 # Note: We CANNOT use -z defs as we might desire, because we do not 6747 7351 # link with -lc, and that would cause any symbols used from libc to 6748 7352 # always be unresolved, which means just about no library would … … 6750 7354 # though, which does catch some bad symbols but isn't as heavy-handed 6751 7355 # as -z defs. 6752 _LT_TAGVAR(no_undefined_flag, $1)='$ {wl}-z,text'6753 _LT_TAGVAR(allow_undefined_flag, $1)='$ {wl}-z,nodefs'7356 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 7357 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 6754 7358 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6755 7359 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-R,$libdir'7360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 6757 7361 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6758 7362 _LT_TAGVAR(link_all_deplibs, $1)=yes 6759 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-Bexport'7363 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 6760 7364 runpath_var='LD_RUN_PATH' 6761 7365 6762 7366 case $cc_basename in 6763 7367 CC*) 6764 _LT_TAGVAR(archive_cmds, $1)='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6765 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'7368 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7369 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6766 7370 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 6767 7371 '"$_LT_TAGVAR(old_archive_cmds, $1)" 6768 7372 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 6769 7373 '"$_LT_TAGVAR(reload_cmds, $1)" 6770 7374 ;; 6771 7375 *) 6772 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6773 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'7376 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7377 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6774 7378 ;; 6775 7379 esac … … 6802 7406 6803 7407 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6804 test "$_LT_TAGVAR(ld_shlibs, $1)" = no&& can_build_shared=no6805 6806 _LT_TAGVAR(GCC, $1)= "$GXX"6807 _LT_TAGVAR(LD, $1)= "$LD"7408 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 7409 7410 _LT_TAGVAR(GCC, $1)=$GXX 7411 _LT_TAGVAR(LD, $1)=$LD 6808 7412 6809 7413 ## CAVEAT EMPTOR: … … 6832 7436 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 6833 7437 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 6834 fi # test "$_lt_caught_CXX_error" != yes7438 fi # test yes != "$_lt_caught_CXX_error" 6835 7439 6836 7440 AC_LANG_POP … … 6854 7458 func_stripname_cnf () 6855 7459 { 6856 case ${2}in6857 .*) func_stripname_result=`$ECHO " ${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;6858 *) func_stripname_result=`$ECHO " ${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;7460 case @S|@2 in 7461 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 7462 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 6859 7463 esac 6860 7464 } # func_stripname_cnf 6861 7465 ])# _LT_FUNC_STRIPNAME_CNF 7466 6862 7467 6863 7468 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) … … 6919 7524 }; 6920 7525 _LT_EOF 7526 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 7527 package foo 7528 func foo() { 7529 } 7530 _LT_EOF 6921 7531 ]) 6922 7532 … … 6925 7535 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 6926 7536 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 7537 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 6927 7538 esac 6928 7539 … … 6938 7549 6939 7550 for p in `eval "$output_verbose_link_cmd"`; do 6940 case $ {prev}${p}in7551 case $prev$p in 6941 7552 6942 7553 -L* | -R* | -l*) 6943 7554 # Some compilers place space between "-{L,R}" and the path. 6944 7555 # Remove the space. 6945 if test $p = "-L" ||6946 test $p = "-R"; then7556 if test x-L = "$p" || 7557 test x-R = "$p"; then 6947 7558 prev=$p 6948 7559 continue … … 6960 7571 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 6961 7572 esac 6962 if test "$pre_test_object_deps_done" = no; then6963 case $ {prev}in7573 if test no = "$pre_test_object_deps_done"; then 7574 case $prev in 6964 7575 -L | -R) 6965 7576 # Internal compiler library paths should come after those … … 6967 7578 # user supplied libs so there is no need to process them. 6968 7579 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 6969 _LT_TAGVAR(compiler_lib_search_path, $1)= "${prev}${p}"7580 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 6970 7581 else 6971 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $ {prev}${p}"7582 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 6972 7583 fi 6973 7584 ;; … … 6977 7588 else 6978 7589 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 6979 _LT_TAGVAR(postdeps, $1)= "${prev}${p}"7590 _LT_TAGVAR(postdeps, $1)=$prev$p 6980 7591 else 6981 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $ {prev}${p}"7592 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 6982 7593 fi 6983 7594 fi … … 6994 7605 fi 6995 7606 6996 if test "$pre_test_object_deps_done" = no; then7607 if test no = "$pre_test_object_deps_done"; then 6997 7608 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 6998 _LT_TAGVAR(predep_objects, $1)= "$p"7609 _LT_TAGVAR(predep_objects, $1)=$p 6999 7610 else 7000 7611 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" … … 7002 7613 else 7003 7614 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 7004 _LT_TAGVAR(postdep_objects, $1)= "$p"7615 _LT_TAGVAR(postdep_objects, $1)=$p 7005 7616 else 7006 7617 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" … … 7033 7644 _LT_TAGVAR(postdeps,$1)= 7034 7645 ;; 7035 7036 linux*)7037 case `$CC -V 2>&1 | sed 5q` in7038 *Sun\ C*)7039 # Sun C++ 5.97040 7041 # The more standards-conforming stlport4 library is7042 # incompatible with the Cstd library. Avoid specifying7043 # it if it's in CXXFLAGS. Ignore libCrun as7044 # -library=stlport4 depends on it.7045 case " $CXX $CXXFLAGS " in7046 *" -library=stlport4 "*)7047 solaris_use_stlport4=yes7048 ;;7049 esac7050 7051 if test "$solaris_use_stlport4" != yes; then7052 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'7053 fi7054 ;;7055 esac7056 ;;7057 7058 solaris*)7059 case $cc_basename in7060 CC* | sunCC*)7061 # The more standards-conforming stlport4 library is7062 # incompatible with the Cstd library. Avoid specifying7063 # it if it's in CXXFLAGS. Ignore libCrun as7064 # -library=stlport4 depends on it.7065 case " $CXX $CXXFLAGS " in7066 *" -library=stlport4 "*)7067 solaris_use_stlport4=yes7068 ;;7069 esac7070 7071 # Adding this requires a known-good setup of shared libraries for7072 # Sun compiler versions before 5.6, else PIC objects from an old7073 # archive will be linked into the output, leading to subtle bugs.7074 if test "$solaris_use_stlport4" != yes; then7075 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'7076 fi7077 ;;7078 esac7079 ;;7080 7646 esac 7081 7647 ]) … … 7086 7652 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 7087 7653 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 7088 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $ {SED}-e 's! -L! !g' -e 's!^ !!'`7654 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 7089 7655 fi 7090 7656 _LT_TAGDECL([], [compiler_lib_search_dirs], [1], … … 7106 7672 # Ensure that the configuration variables for a Fortran 77 compiler are 7107 7673 # suitably defined. These variables are subsequently used by _LT_CONFIG 7108 # to write the compiler configuration to `libtool'.7674 # to write the compiler configuration to 'libtool'. 7109 7675 m4_defun([_LT_LANG_F77_CONFIG], 7110 7676 [AC_LANG_PUSH(Fortran 77) 7111 if test -z "$F77" || test "X$F77" = "Xno"; then7677 if test -z "$F77" || test no = "$F77"; then 7112 7678 _lt_disable_F77=yes 7113 7679 fi … … 7121 7687 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7122 7688 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7123 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=7124 7689 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7125 7690 _LT_TAGVAR(hardcode_minus_L, $1)=no … … 7147 7712 # are currently assumed to apply to all compilers on this platform, 7148 7713 # and will be corrupted by setting them based on a non-working compiler. 7149 if test "$_lt_disable_F77" != yes; then7714 if test yes != "$_lt_disable_F77"; then 7150 7715 # Code to be used in simple compile tests 7151 7716 lt_simple_compile_test_code="\ … … 7169 7734 7170 7735 # Allow CC to be a program name with arguments. 7171 lt_save_CC= "$CC"7736 lt_save_CC=$CC 7172 7737 lt_save_GCC=$GCC 7173 7738 lt_save_CFLAGS=$CFLAGS … … 7183 7748 7184 7749 AC_MSG_CHECKING([whether to build shared libraries]) 7185 test "$can_build_shared" = "no" && enable_shared=no7750 test no = "$can_build_shared" && enable_shared=no 7186 7751 7187 7752 # On AIX, shared libraries and static libraries use the same namespace, and … … 7189 7754 case $host_os in 7190 7755 aix3*) 7191 test "$enable_shared" = yes&& enable_static=no7756 test yes = "$enable_shared" && enable_static=no 7192 7757 if test -n "$RANLIB"; then 7193 7758 archive_cmds="$archive_cmds~\$RANLIB \$lib" … … 7196 7761 ;; 7197 7762 aix[[4-9]]*) 7198 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7199 test "$enable_shared" = yes && enable_static=no 7763 if test ia64 != "$host_cpu"; then 7764 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7765 yes,aix,yes) ;; # shared object as lib.so file only 7766 yes,svr4,*) ;; # shared object as lib.so archive member only 7767 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7768 esac 7200 7769 fi 7201 7770 ;; … … 7205 7774 AC_MSG_CHECKING([whether to build static libraries]) 7206 7775 # Make sure either enable_shared or enable_static is yes. 7207 test "$enable_shared" = yes|| enable_static=yes7776 test yes = "$enable_shared" || enable_static=yes 7208 7777 AC_MSG_RESULT([$enable_static]) 7209 7778 7210 _LT_TAGVAR(GCC, $1)= "$G77"7211 _LT_TAGVAR(LD, $1)= "$LD"7779 _LT_TAGVAR(GCC, $1)=$G77 7780 _LT_TAGVAR(LD, $1)=$LD 7212 7781 7213 7782 ## CAVEAT EMPTOR: … … 7226 7795 7227 7796 GCC=$lt_save_GCC 7228 CC= "$lt_save_CC"7229 CFLAGS= "$lt_save_CFLAGS"7230 fi # test "$_lt_disable_F77" != yes7797 CC=$lt_save_CC 7798 CFLAGS=$lt_save_CFLAGS 7799 fi # test yes != "$_lt_disable_F77" 7231 7800 7232 7801 AC_LANG_POP … … 7238 7807 # Ensure that the configuration variables for a Fortran compiler are 7239 7808 # suitably defined. These variables are subsequently used by _LT_CONFIG 7240 # to write the compiler configuration to `libtool'.7809 # to write the compiler configuration to 'libtool'. 7241 7810 m4_defun([_LT_LANG_FC_CONFIG], 7242 7811 [AC_LANG_PUSH(Fortran) 7243 7812 7244 if test -z "$FC" || test "X$FC" = "Xno"; then7813 if test -z "$FC" || test no = "$FC"; then 7245 7814 _lt_disable_FC=yes 7246 7815 fi … … 7254 7823 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7255 7824 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7256 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=7257 7825 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7258 7826 _LT_TAGVAR(hardcode_minus_L, $1)=no … … 7280 7848 # are currently assumed to apply to all compilers on this platform, 7281 7849 # and will be corrupted by setting them based on a non-working compiler. 7282 if test "$_lt_disable_FC" != yes; then7850 if test yes != "$_lt_disable_FC"; then 7283 7851 # Code to be used in simple compile tests 7284 7852 lt_simple_compile_test_code="\ … … 7302 7870 7303 7871 # Allow CC to be a program name with arguments. 7304 lt_save_CC= "$CC"7872 lt_save_CC=$CC 7305 7873 lt_save_GCC=$GCC 7306 7874 lt_save_CFLAGS=$CFLAGS … … 7318 7886 7319 7887 AC_MSG_CHECKING([whether to build shared libraries]) 7320 test "$can_build_shared" = "no" && enable_shared=no7888 test no = "$can_build_shared" && enable_shared=no 7321 7889 7322 7890 # On AIX, shared libraries and static libraries use the same namespace, and … … 7324 7892 case $host_os in 7325 7893 aix3*) 7326 test "$enable_shared" = yes&& enable_static=no7894 test yes = "$enable_shared" && enable_static=no 7327 7895 if test -n "$RANLIB"; then 7328 7896 archive_cmds="$archive_cmds~\$RANLIB \$lib" … … 7331 7899 ;; 7332 7900 aix[[4-9]]*) 7333 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7334 test "$enable_shared" = yes && enable_static=no 7901 if test ia64 != "$host_cpu"; then 7902 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7903 yes,aix,yes) ;; # shared object as lib.so file only 7904 yes,svr4,*) ;; # shared object as lib.so archive member only 7905 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7906 esac 7335 7907 fi 7336 7908 ;; … … 7340 7912 AC_MSG_CHECKING([whether to build static libraries]) 7341 7913 # Make sure either enable_shared or enable_static is yes. 7342 test "$enable_shared" = yes|| enable_static=yes7914 test yes = "$enable_shared" || enable_static=yes 7343 7915 AC_MSG_RESULT([$enable_static]) 7344 7916 7345 _LT_TAGVAR(GCC, $1)= "$ac_cv_fc_compiler_gnu"7346 _LT_TAGVAR(LD, $1)= "$LD"7917 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 7918 _LT_TAGVAR(LD, $1)=$LD 7347 7919 7348 7920 ## CAVEAT EMPTOR: … … 7364 7936 CC=$lt_save_CC 7365 7937 CFLAGS=$lt_save_CFLAGS 7366 fi # test "$_lt_disable_FC" != yes7938 fi # test yes != "$_lt_disable_FC" 7367 7939 7368 7940 AC_LANG_POP … … 7374 7946 # Ensure that the configuration variables for the GNU Java Compiler compiler 7375 7947 # are suitably defined. These variables are subsequently used by _LT_CONFIG 7376 # to write the compiler configuration to `libtool'.7948 # to write the compiler configuration to 'libtool'. 7377 7949 m4_defun([_LT_LANG_GCJ_CONFIG], 7378 7950 [AC_REQUIRE([LT_PROG_GCJ])dnl … … 7408 7980 compiler=$CC 7409 7981 _LT_TAGVAR(compiler, $1)=$CC 7410 _LT_TAGVAR(LD, $1)= "$LD"7982 _LT_TAGVAR(LD, $1)=$LD 7411 7983 _LT_CC_BASENAME([$compiler]) 7412 7984 … … 7441 8013 7442 8014 8015 # _LT_LANG_GO_CONFIG([TAG]) 8016 # -------------------------- 8017 # Ensure that the configuration variables for the GNU Go compiler 8018 # are suitably defined. These variables are subsequently used by _LT_CONFIG 8019 # to write the compiler configuration to 'libtool'. 8020 m4_defun([_LT_LANG_GO_CONFIG], 8021 [AC_REQUIRE([LT_PROG_GO])dnl 8022 AC_LANG_SAVE 8023 8024 # Source file extension for Go test sources. 8025 ac_ext=go 8026 8027 # Object file extension for compiled Go test sources. 8028 objext=o 8029 _LT_TAGVAR(objext, $1)=$objext 8030 8031 # Code to be used in simple compile tests 8032 lt_simple_compile_test_code="package main; func main() { }" 8033 8034 # Code to be used in simple link tests 8035 lt_simple_link_test_code='package main; func main() { }' 8036 8037 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8038 _LT_TAG_COMPILER 8039 8040 # save warnings/boilerplate of simple test code 8041 _LT_COMPILER_BOILERPLATE 8042 _LT_LINKER_BOILERPLATE 8043 8044 # Allow CC to be a program name with arguments. 8045 lt_save_CC=$CC 8046 lt_save_CFLAGS=$CFLAGS 8047 lt_save_GCC=$GCC 8048 GCC=yes 8049 CC=${GOC-"gccgo"} 8050 CFLAGS=$GOFLAGS 8051 compiler=$CC 8052 _LT_TAGVAR(compiler, $1)=$CC 8053 _LT_TAGVAR(LD, $1)=$LD 8054 _LT_CC_BASENAME([$compiler]) 8055 8056 # Go did not exist at the time GCC didn't implicitly link libc in. 8057 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8058 8059 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8060 _LT_TAGVAR(reload_flag, $1)=$reload_flag 8061 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8062 8063 ## CAVEAT EMPTOR: 8064 ## There is no encapsulation within the following macros, do not change 8065 ## the running order or otherwise move them around unless you know exactly 8066 ## what you are doing... 8067 if test -n "$compiler"; then 8068 _LT_COMPILER_NO_RTTI($1) 8069 _LT_COMPILER_PIC($1) 8070 _LT_COMPILER_C_O($1) 8071 _LT_COMPILER_FILE_LOCKS($1) 8072 _LT_LINKER_SHLIBS($1) 8073 _LT_LINKER_HARDCODE_LIBPATH($1) 8074 8075 _LT_CONFIG($1) 8076 fi 8077 8078 AC_LANG_RESTORE 8079 8080 GCC=$lt_save_GCC 8081 CC=$lt_save_CC 8082 CFLAGS=$lt_save_CFLAGS 8083 ])# _LT_LANG_GO_CONFIG 8084 8085 7443 8086 # _LT_LANG_RC_CONFIG([TAG]) 7444 8087 # ------------------------- 7445 8088 # Ensure that the configuration variables for the Windows resource compiler 7446 8089 # are suitably defined. These variables are subsequently used by _LT_CONFIG 7447 # to write the compiler configuration to `libtool'.8090 # to write the compiler configuration to 'libtool'. 7448 8091 m4_defun([_LT_LANG_RC_CONFIG], 7449 8092 [AC_REQUIRE([LT_PROG_RC])dnl … … 7461 8104 7462 8105 # Code to be used in simple link tests 7463 lt_simple_link_test_code= "$lt_simple_compile_test_code"8106 lt_simple_link_test_code=$lt_simple_compile_test_code 7464 8107 7465 8108 # ltmain only uses $CC for tagged configurations so make sure $CC is set. … … 7471 8114 7472 8115 # Allow CC to be a program name with arguments. 7473 lt_save_CC= "$CC"8116 lt_save_CC=$CC 7474 8117 lt_save_CFLAGS=$CFLAGS 7475 8118 lt_save_GCC=$GCC … … 7500 8143 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 7501 8144 [AC_CHECK_TOOL(GCJ, gcj,) 7502 test "x${GCJFLAGS+set}" = xset|| GCJFLAGS="-g -O2"8145 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 7503 8146 AC_SUBST(GCJFLAGS)])])[]dnl 7504 8147 ]) … … 7508 8151 dnl aclocal-1.4 backwards compatibility: 7509 8152 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 8153 8154 8155 # LT_PROG_GO 8156 # ---------- 8157 AC_DEFUN([LT_PROG_GO], 8158 [AC_CHECK_TOOL(GOC, gccgo,) 8159 ]) 7510 8160 7511 8161 … … 7604 8254 # along with /bin/sed that truncates output. 7605 8255 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7606 test ! -f $lt_ac_sed&& continue8256 test ! -f "$lt_ac_sed" && continue 7607 8257 cat /dev/null > conftest.in 7608 8258 lt_ac_count=0 … … 7621 8271 cmp -s conftest.out conftest.nl || break 7622 8272 # 10000 chars as input seems more than enough 7623 test $lt_ac_count -gt 10&& break8273 test 10 -lt "$lt_ac_count" && break 7624 8274 lt_ac_count=`expr $lt_ac_count + 1` 7625 if test $lt_ac_count -gt $lt_ac_max; then8275 if test "$lt_ac_count" -gt "$lt_ac_max"; then 7626 8276 lt_ac_max=$lt_ac_count 7627 8277 lt_cv_path_SED=$lt_ac_sed … … 7647 8297 # or has some other useful features. 7648 8298 m4_defun([_LT_CHECK_SHELL_FEATURES], 7649 [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 7650 # Try some XSI features 7651 xsi_shell=no 7652 ( _lt_dummy="a/b/c" 7653 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7654 = c,a/b,b/c, \ 7655 && eval 'test $(( 1 + 1 )) -eq 2 \ 7656 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7657 && xsi_shell=yes 7658 AC_MSG_RESULT([$xsi_shell]) 7659 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 7660 7661 AC_MSG_CHECKING([whether the shell understands "+="]) 7662 lt_shell_append=no 7663 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 7664 >/dev/null 2>&1 \ 7665 && lt_shell_append=yes 7666 AC_MSG_RESULT([$lt_shell_append]) 7667 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 7668 7669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8299 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7670 8300 lt_unset=unset 7671 8301 else … … 7691 8321 7692 8322 7693 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)7694 # ------------------------------------------------------7695 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and7696 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.7697 m4_defun([_LT_PROG_FUNCTION_REPLACE],7698 [dnl {7699 sed -e '/^$1 ()$/,/^} # $1 /c\7700 $1 ()\7701 {\7702 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])7703 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \7704 && mv -f "$cfgfile.tmp" "$cfgfile" \7705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")7706 test 0 -eq $? || _lt_function_replace_fail=:7707 ])7708 7709 7710 # _LT_PROG_REPLACE_SHELLFNS7711 # -------------------------7712 # Replace existing portable implementations of several shell functions with7713 # equivalent extended shell implementations where those features are available..7714 m4_defun([_LT_PROG_REPLACE_SHELLFNS],7715 [if test x"$xsi_shell" = xyes; then7716 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl7717 case ${1} in7718 */*) func_dirname_result="${1%/*}${2}" ;;7719 * ) func_dirname_result="${3}" ;;7720 esac])7721 7722 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl7723 func_basename_result="${1##*/}"])7724 7725 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl7726 case ${1} in7727 */*) func_dirname_result="${1%/*}${2}" ;;7728 * ) func_dirname_result="${3}" ;;7729 esac7730 func_basename_result="${1##*/}"])7731 7732 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl7733 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are7734 # positional parameters, so assign one to ordinary parameter first.7735 func_stripname_result=${3}7736 func_stripname_result=${func_stripname_result#"${1}"}7737 func_stripname_result=${func_stripname_result%"${2}"}])7738 7739 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl7740 func_split_long_opt_name=${1%%=*}7741 func_split_long_opt_arg=${1#*=}])7742 7743 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl7744 func_split_short_opt_arg=${1#??}7745 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])7746 7747 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl7748 case ${1} in7749 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;7750 *) func_lo2o_result=${1} ;;7751 esac])7752 7753 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])7754 7755 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])7756 7757 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])7758 fi7759 7760 if test x"$lt_shell_append" = xyes; then7761 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])7762 7763 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl7764 func_quote_for_eval "${2}"7765 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \7766 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])7767 7768 # Save a `func_append' function call where possible by direct use of '+='7769 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \7770 && mv -f "$cfgfile.tmp" "$cfgfile" \7771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")7772 test 0 -eq $? || _lt_function_replace_fail=:7773 else7774 # Save a `func_append' function call even when '+=' is not available7775 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \7776 && mv -f "$cfgfile.tmp" "$cfgfile" \7777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")7778 test 0 -eq $? || _lt_function_replace_fail=:7779 fi7780 7781 if test x"$_lt_function_replace_fail" = x":"; then7782 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])7783 fi7784 ])7785 7786 8323 # _LT_PATH_CONVERSION_FUNCTIONS 7787 8324 # ----------------------------- 7788 # Determine wh ichfile name conversion functions should be used by8325 # Determine what file name conversion functions should be used by 7789 8326 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed 7790 8327 # for certain cross-compile configurations and native mingw. -
trunk/FACT++/.macro_dir/ltoptions.m4
r12832 r18603 1 1 # Helper functions for option handling. -*- Autoconf -*- 2 2 # 3 # Copyright (C) 2004 , 2005, 2007, 2008, 2009 Free Software Foundation,4 # Inc.3 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software 4 # Foundation, Inc. 5 5 # Written by Gary V. Vaughan, 2004 6 6 # … … 9 9 # modifications, as long as this notice is preserved. 10 10 11 # serial 7ltoptions.m411 # serial 8 ltoptions.m4 12 12 13 13 # This is to help aclocal find these macros, as it can't see m4_define. … … 30 30 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 31 31 _LT_MANGLE_DEFUN([$1], [$2]), 32 [m4_warning([Unknown $1 option `$2'])])[]dnl32 [m4_warning([Unknown $1 option '$2'])])[]dnl 33 33 ]) 34 34 … … 76 76 dnl If no reference was made to various pairs of opposing options, then 77 77 dnl we run the default mode handler for the pair. For example, if neither 78 dnl `shared' nor `disable-shared' was passed, we enable building of shared78 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 79 79 dnl archives by default: 80 80 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) … … 82 82 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 83 83 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 84 [_LT_ENABLE_FAST_INSTALL]) 84 [_LT_ENABLE_FAST_INSTALL]) 85 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 86 [_LT_WITH_AIX_SONAME([aix])]) 85 87 ]) 86 88 ])# _LT_SET_OPTIONS … … 113 115 AC_DIAGNOSE([obsolete], 114 116 [$0: Remove this warning and the call to _LT_SET_OPTION when you 115 put the `dlopen' option into LT_INIT's first parameter.])117 put the 'dlopen' option into LT_INIT's first parameter.]) 116 118 ]) 117 119 … … 149 151 AC_DIAGNOSE([obsolete], 150 152 [$0: Remove this warning and the call to _LT_SET_OPTION when you 151 put the `win32-dll' option into LT_INIT's first parameter.])153 put the 'win32-dll' option into LT_INIT's first parameter.]) 152 154 ]) 153 155 … … 158 160 # _LT_ENABLE_SHARED([DEFAULT]) 159 161 # ---------------------------- 160 # implement the --enable-shared flag, and supports the `shared' and161 # `disable-shared' LT_INIT options.162 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.162 # implement the --enable-shared flag, and supports the 'shared' and 163 # 'disable-shared' LT_INIT options. 164 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 163 165 m4_define([_LT_ENABLE_SHARED], 164 166 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl … … 173 175 enable_shared=no 174 176 # Look at the argument we got. We use all the common list separators. 175 lt_save_ifs= "$IFS"; IFS="${IFS}$PATH_SEPARATOR,"177 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 176 178 for pkg in $enableval; do 177 IFS= "$lt_save_ifs"179 IFS=$lt_save_ifs 178 180 if test "X$pkg" = "X$p"; then 179 181 enable_shared=yes 180 182 fi 181 183 done 182 IFS= "$lt_save_ifs"184 IFS=$lt_save_ifs 183 185 ;; 184 186 esac], … … 212 214 # _LT_ENABLE_STATIC([DEFAULT]) 213 215 # ---------------------------- 214 # implement the --enable-static flag, and support the `static' and215 # `disable-static' LT_INIT options.216 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.216 # implement the --enable-static flag, and support the 'static' and 217 # 'disable-static' LT_INIT options. 218 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 217 219 m4_define([_LT_ENABLE_STATIC], 218 220 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl … … 227 229 enable_static=no 228 230 # Look at the argument we got. We use all the common list separators. 229 lt_save_ifs= "$IFS"; IFS="${IFS}$PATH_SEPARATOR,"231 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 230 232 for pkg in $enableval; do 231 IFS= "$lt_save_ifs"233 IFS=$lt_save_ifs 232 234 if test "X$pkg" = "X$p"; then 233 235 enable_static=yes 234 236 fi 235 237 done 236 IFS= "$lt_save_ifs"238 IFS=$lt_save_ifs 237 239 ;; 238 240 esac], … … 266 268 # _LT_ENABLE_FAST_INSTALL([DEFAULT]) 267 269 # ---------------------------------- 268 # implement the --enable-fast-install flag, and support the `fast-install'269 # and `disable-fast-install' LT_INIT options.270 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.270 # implement the --enable-fast-install flag, and support the 'fast-install' 271 # and 'disable-fast-install' LT_INIT options. 272 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 271 273 m4_define([_LT_ENABLE_FAST_INSTALL], 272 274 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl … … 281 283 enable_fast_install=no 282 284 # Look at the argument we got. We use all the common list separators. 283 lt_save_ifs= "$IFS"; IFS="${IFS}$PATH_SEPARATOR,"285 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 284 286 for pkg in $enableval; do 285 IFS= "$lt_save_ifs"287 IFS=$lt_save_ifs 286 288 if test "X$pkg" = "X$p"; then 287 289 enable_fast_install=yes 288 290 fi 289 291 done 290 IFS= "$lt_save_ifs"292 IFS=$lt_save_ifs 291 293 ;; 292 294 esac], … … 305 307 AC_DIAGNOSE([obsolete], 306 308 [$0: Remove this warning and the call to _LT_SET_OPTION when you put 307 the `fast-install' option into LT_INIT's first parameter.])309 the 'fast-install' option into LT_INIT's first parameter.]) 308 310 ]) 309 311 … … 312 314 AC_DIAGNOSE([obsolete], 313 315 [$0: Remove this warning and the call to _LT_SET_OPTION when you put 314 the `disable-fast-install' option into LT_INIT's first parameter.])316 the 'disable-fast-install' option into LT_INIT's first parameter.]) 315 317 ]) 316 318 … … 320 322 321 323 324 # _LT_WITH_AIX_SONAME([DEFAULT]) 325 # ---------------------------------- 326 # implement the --with-aix-soname flag, and support the `aix-soname=aix' 327 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 328 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 329 m4_define([_LT_WITH_AIX_SONAME], 330 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 331 shared_archive_member_spec= 332 case $host,$enable_shared in 333 power*-*-aix[[5-9]]*,yes) 334 AC_MSG_CHECKING([which variant of shared library versioning to provide]) 335 AC_ARG_WITH([aix-soname], 336 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 337 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 338 [case $withval in 339 aix|svr4|both) 340 ;; 341 *) 342 AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 343 ;; 344 esac 345 lt_cv_with_aix_soname=$with_aix_soname], 346 [AC_CACHE_VAL([lt_cv_with_aix_soname], 347 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 348 with_aix_soname=$lt_cv_with_aix_soname]) 349 AC_MSG_RESULT([$with_aix_soname]) 350 if test aix != "$with_aix_soname"; then 351 # For the AIX way of multilib, we name the shared archive member 352 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 353 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 354 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 355 # the AIX toolchain works better with OBJECT_MODE set (default 32). 356 if test 64 = "${OBJECT_MODE-32}"; then 357 shared_archive_member_spec=shr_64 358 else 359 shared_archive_member_spec=shr 360 fi 361 fi 362 ;; 363 *) 364 with_aix_soname=aix 365 ;; 366 esac 367 368 _LT_DECL([], [shared_archive_member_spec], [0], 369 [Shared archive member basename, for filename based shared library versioning on AIX])dnl 370 ])# _LT_WITH_AIX_SONAME 371 372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 374 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 375 376 322 377 # _LT_WITH_PIC([MODE]) 323 378 # -------------------- 324 # implement the --with-pic flag, and support the `pic-only' and `no-pic'379 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 325 380 # LT_INIT options. 326 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.381 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 327 382 m4_define([_LT_WITH_PIC], 328 383 [AC_ARG_WITH([pic], 329 [AS_HELP_STRING([--with-pic ],384 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 330 385 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 331 [pic_mode="$withval"], 332 [pic_mode=default]) 333 334 test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 386 [lt_p=${PACKAGE-default} 387 case $withval in 388 yes|no) pic_mode=$withval ;; 389 *) 390 pic_mode=default 391 # Look at the argument we got. We use all the common list separators. 392 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 393 for lt_pkg in $withval; do 394 IFS=$lt_save_ifs 395 if test "X$lt_pkg" = "X$lt_p"; then 396 pic_mode=yes 397 fi 398 done 399 IFS=$lt_save_ifs 400 ;; 401 esac], 402 [pic_mode=m4_default([$1], [default])]) 335 403 336 404 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl … … 345 413 AC_DIAGNOSE([obsolete], 346 414 [$0: Remove this warning and the call to _LT_SET_OPTION when you 347 put the `pic-only' option into LT_INIT's first parameter.])415 put the 'pic-only' option into LT_INIT's first parameter.]) 348 416 ]) 349 417 -
trunk/FACT++/.macro_dir/ltversion.m4
r14328 r18603 1 1 # ltversion.m4 -- version numbers -*- Autoconf -*- 2 2 # 3 # Copyright (C) 2004 Free Software Foundation, Inc.3 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 4 4 # Written by Scott James Remnant, 2004 5 5 # … … 10 10 # @configure_input@ 11 11 12 # serial 3337ltversion.m412 # serial 4179 ltversion.m4 13 13 # This file is part of GNU Libtool 14 14 15 m4_define([LT_PACKAGE_VERSION], [2.4. 2])16 m4_define([LT_PACKAGE_REVISION], [ 1.3337])15 m4_define([LT_PACKAGE_VERSION], [2.4.6]) 16 m4_define([LT_PACKAGE_REVISION], [2.4.6]) 17 17 18 18 AC_DEFUN([LTVERSION_VERSION], 19 [macro_version='2.4. 2'20 macro_revision=' 1.3337'19 [macro_version='2.4.6' 20 macro_revision='2.4.6' 21 21 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 22 _LT_DECL(, macro_revision, 0) -
trunk/FACT++/Makefile.in
r18509 r18603 1 # Makefile.in generated by automake 1.1 1.3from Makefile.am.1 # Makefile.in generated by automake 1.15 from Makefile.am. 2 2 # @configure_input@ 3 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software 6 # Foundation, Inc. 4 # Copyright (C) 1994-2014 Free Software Foundation, Inc. 5 7 6 # This Makefile.in is free software; the Free Software Foundation 8 7 # gives unlimited permission to copy and/or distribute it, … … 20 19 21 20 VPATH = @srcdir@ 21 am__is_gnu_make = { \ 22 if test -z '$(MAKELEVEL)'; then \ 23 false; \ 24 elif test -n '$(MAKE_HOST)'; then \ 25 true; \ 26 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ 27 true; \ 28 else \ 29 false; \ 30 fi; \ 31 } 32 am__make_running_with_option = \ 33 case $${target_option-} in \ 34 ?) ;; \ 35 *) echo "am__make_running_with_option: internal error: invalid" \ 36 "target option '$${target_option-}' specified" >&2; \ 37 exit 1;; \ 38 esac; \ 39 has_opt=no; \ 40 sane_makeflags=$$MAKEFLAGS; \ 41 if $(am__is_gnu_make); then \ 42 sane_makeflags=$$MFLAGS; \ 43 else \ 44 case $$MAKEFLAGS in \ 45 *\\[\ \ ]*) \ 46 bs=\\; \ 47 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ 48 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ 49 esac; \ 50 fi; \ 51 skip_next=no; \ 52 strip_trailopt () \ 53 { \ 54 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ 55 }; \ 56 for flg in $$sane_makeflags; do \ 57 test $$skip_next = yes && { skip_next=no; continue; }; \ 58 case $$flg in \ 59 *=*|--*) continue;; \ 60 -*I) strip_trailopt 'I'; skip_next=yes;; \ 61 -*I?*) strip_trailopt 'I';; \ 62 -*O) strip_trailopt 'O'; skip_next=yes;; \ 63 -*O?*) strip_trailopt 'O';; \ 64 -*l) strip_trailopt 'l'; skip_next=yes;; \ 65 -*l?*) strip_trailopt 'l';; \ 66 -[dEDm]) skip_next=yes;; \ 67 -[JT]) skip_next=yes;; \ 68 esac; \ 69 case $$flg in \ 70 *$$target_option*) has_opt=yes; break;; \ 71 esac; \ 72 done; \ 73 test $$has_opt = yes 74 am__make_dryrun = (target_option=n; $(am__make_running_with_option)) 75 am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) 22 76 pkgdatadir = $(datadir)/@PACKAGE@ 23 77 pkgincludedir = $(includedir)/@PACKAGE@ … … 38 92 build_triplet = @build@ 39 93 host_triplet = @host@ 40 DIST_COMMON = README $(am__configure_deps) $(dist_man1_MANS) \41 $(dist_noinst_SCRIPTS) $(libDim___la_HEADERS) \42 $(libDim_la_HEADERS) $(srcdir)/Makefile.am \43 $(srcdir)/Makefile.in $(srcdir)/aminclude.am \44 $(top_srcdir)/configure .aux_dir/ar-lib .aux_dir/compile \45 .aux_dir/config.guess .aux_dir/config.sub .aux_dir/depcomp \46 .aux_dir/install-sh .aux_dir/ltmain.sh .aux_dir/missing \47 AUTHORS COPYING ChangeLog INSTALL NEWS48 94 bin_PROGRAMS = dns$(EXEEXT) log$(EXEEXT) logtime$(EXEEXT) \ 49 95 time$(EXEEXT) argv$(EXEEXT) ftmctrl$(EXEEXT) fadctrl$(EXEEXT) \ … … 112 158 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 113 159 $(ACLOCAL_M4) 160 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ 161 $(am__configure_deps) $(dist_noinst_SCRIPTS) \ 162 $(libDim___la_HEADERS) $(libDim_la_HEADERS) $(am__DIST_COMMON) 114 163 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 115 164 configure.lineno config.status.lineno … … 155 204 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) 156 205 am__v_lt_0 = --silent 206 am__v_lt_1 = 157 207 libDim___la_LIBADD = 158 208 am_libDim___la_OBJECTS = dim/src/diccpp.lo dim/src/dimcpp.lo \ … … 557 607 zfits_DEPENDENCIES = libTime.la libConfiguration.la 558 608 SCRIPTS = $(dist_noinst_SCRIPTS) 609 AM_V_P = $(am__v_P_@AM_V@) 610 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) 611 am__v_P_0 = false 612 am__v_P_1 = : 613 AM_V_GEN = $(am__v_GEN_@AM_V@) 614 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) 615 am__v_GEN_0 = @echo " GEN " $@; 616 am__v_GEN_1 = 617 AM_V_at = $(am__v_at_@AM_V@) 618 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) 619 am__v_at_0 = @ 620 am__v_at_1 = 559 621 DEFAULT_INCLUDES = -I.@am__isrc@ 560 622 depcomp = $(SHELL) $(top_srcdir)/.aux_dir/depcomp … … 569 631 AM_V_CC = $(am__v_CC_@AM_V@) 570 632 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) 571 am__v_CC_0 = @echo " CC " $@; 572 AM_V_at = $(am__v_at_@AM_V@) 573 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) 574 am__v_at_0 = @ 633 am__v_CC_0 = @echo " CC " $@; 634 am__v_CC_1 = 575 635 CCLD = $(CC) 576 636 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ … … 579 639 AM_V_CCLD = $(am__v_CCLD_@AM_V@) 580 640 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) 581 am__v_CCLD_0 = @echo " CCLD " $@; 641 am__v_CCLD_0 = @echo " CCLD " $@; 642 am__v_CCLD_1 = 582 643 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 583 644 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) … … 588 649 AM_V_CXX = $(am__v_CXX_@AM_V@) 589 650 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) 590 am__v_CXX_0 = @echo " CXX " $@; 651 am__v_CXX_0 = @echo " CXX " $@; 652 am__v_CXX_1 = 591 653 CXXLD = $(CXX) 592 654 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ … … 595 657 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) 596 658 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) 597 am__v_CXXLD_0 = @echo " CXXLD " $@; 598 AM_V_GEN = $(am__v_GEN_@AM_V@) 599 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) 600 am__v_GEN_0 = @echo " GEN " $@; 659 am__v_CXXLD_0 = @echo " CXXLD " $@; 660 am__v_CXXLD_1 = 601 661 SOURCES = $(libConfiguration_la_SOURCES) $(libDim___la_SOURCES) \ 602 662 $(libDim_la_SOURCES) $(libDimExtension_la_SOURCES) \ … … 653 713 $(triggerschedule_SOURCES) $(am__viewer_SOURCES_DIST) \ 654 714 $(webDid_SOURCES) $(zfits_SOURCES) 715 am__can_run_installinfo = \ 716 case $$AM_UPDATE_INFO_DIR in \ 717 n|no|NO) false;; \ 718 *) (install-info --version) >/dev/null 2>&1;; \ 719 esac 655 720 man1dir = $(mandir)/man1 656 721 NROFF = nroff 657 722 MANS = $(dist_man1_MANS) 658 723 HEADERS = $(libDim___la_HEADERS) $(libDim_la_HEADERS) 724 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) 725 # Read a list of newline-separated strings from the standard input, 726 # and print each of them once, without duplicates. Input order is 727 # *not* preserved. 728 am__uniquify_input = $(AWK) '\ 729 BEGIN { nonempty = 0; } \ 730 { items[$$0] = 1; nonempty = 1; } \ 731 END { if (nonempty) { for (i in items) print i; }; } \ 732 ' 733 # Make sure the list of sources is unique. This is necessary because, 734 # e.g., the same source file might be shared among _SOURCES variables 735 # for different programs/libraries. 736 am__define_uniq_tagged_files = \ 737 list='$(am__tagged_files)'; \ 738 unique=`for i in $$list; do \ 739 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 740 done | $(am__uniquify_input)` 659 741 ETAGS = etags 660 742 CTAGS = ctags 743 CSCOPE = cscope 744 AM_RECURSIVE_TARGETS = cscope 745 am__DIST_COMMON = $(dist_man1_MANS) $(srcdir)/Makefile.in \ 746 $(srcdir)/aminclude.am $(top_srcdir)/.aux_dir/ar-lib \ 747 $(top_srcdir)/.aux_dir/compile \ 748 $(top_srcdir)/.aux_dir/config.guess \ 749 $(top_srcdir)/.aux_dir/config.sub \ 750 $(top_srcdir)/.aux_dir/depcomp \ 751 $(top_srcdir)/.aux_dir/install-sh \ 752 $(top_srcdir)/.aux_dir/ltmain.sh \ 753 $(top_srcdir)/.aux_dir/missing .aux_dir/ar-lib \ 754 .aux_dir/compile .aux_dir/config.guess .aux_dir/config.sub \ 755 .aux_dir/depcomp .aux_dir/install-sh .aux_dir/ltmain.sh \ 756 .aux_dir/missing AUTHORS COPYING ChangeLog INSTALL NEWS README 661 757 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 662 758 distdir = $(PACKAGE)-$(VERSION) … … 668 764 || { sleep 5 && rm -rf "$(distdir)"; }; \ 669 765 else :; fi 766 am__post_remove_distdir = $(am__remove_distdir) 670 767 DIST_ARCHIVES = $(distdir).tar.gz 671 768 GZIP_ENV = --best 769 DIST_TARGETS = dist-gzip 672 770 distuninstallcheck_listfiles = find . -type f -print 673 771 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ … … 758 856 LTLIBOBJS = @LTLIBOBJS@ 759 857 LT_HAVE_XP = @LT_HAVE_XP@ 858 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ 760 859 MAILX = @MAILX@ 761 860 MAKEINFO = @MAKEINFO@ … … 813 912 ROOTCONF = @ROOTCONF@ 814 913 ROOTCPPFLAGS = @ROOTCPPFLAGS@ 914 ROOTCXXFLAGS = @ROOTCXXFLAGS@ 815 915 ROOTEXEC = @ROOTEXEC@ 816 916 ROOTGLIBS = @ROOTGLIBS@ … … 879 979 program_transform_name = @program_transform_name@ 880 980 psdir = @psdir@ 981 runstatedir = @runstatedir@ 881 982 sbindir = @sbindir@ 882 983 sharedstatedir = @sharedstatedir@ … … 920 1021 AM_CPPFLAGS = -Idim/dim -Ipal -Ierfa/src \ 921 1022 $(DIM_FLAGS) $(BOOST_FLAGS) $(ROOTCPPFLAGS) \ 1023 $(SVN_REVISION) 1024 1025 AM_CXXFLAGS = $(ROOTCXXFLAGS) \ 922 1026 -Wall -Winit-self -Wpointer-arith -Wcast-align -Wextra -Wformat=2 \ 923 $(SVN_REVISION)924 925 AM_CXXFLAGS = $(AM_CPPFLAGS) \926 1027 -Woverloaded-virtual -Wnon-virtual-dtor -Wshadow 927 1028 … … 1422 1523 $(am__cd) $(top_srcdir) && \ 1423 1524 $(AUTOMAKE) --gnu Makefile 1424 .PRECIOUS: Makefile1425 1525 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 1426 1526 @case '$?' in \ … … 1432 1532 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ 1433 1533 esac; 1434 $(srcdir)/aminclude.am :1534 $(srcdir)/aminclude.am $(am__empty): 1435 1535 1436 1536 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) … … 1442 1542 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 1443 1543 $(am__aclocal_m4_deps): 1544 1444 1545 install-libLTLIBRARIES: $(lib_LTLIBRARIES) 1445 1546 @$(NORMAL_INSTALL) 1446 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"1447 1547 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ 1448 1548 list2=; for p in $$list; do \ … … 1452 1552 done; \ 1453 1553 test -z "$$list2" || { \ 1554 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ 1555 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ 1454 1556 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ 1455 1557 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ … … 1467 1569 clean-libLTLIBRARIES: 1468 1570 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) 1469 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ 1470 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 1471 test "$$dir" != "$$p" || dir=.; \ 1472 echo "rm -f \"$${dir}/so_locations\""; \ 1473 rm -f "$${dir}/so_locations"; \ 1474 done 1571 @list='$(lib_LTLIBRARIES)'; \ 1572 locs=`for p in $$list; do echo $$p; done | \ 1573 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ 1574 sort -u`; \ 1575 test -z "$$locs" || { \ 1576 echo rm -f $${locs}; \ 1577 rm -f $${locs}; \ 1578 } 1475 1579 src/$(am__dirstamp): 1476 1580 @$(MKDIR_P) src … … 1482 1586 src/$(DEPDIR)/$(am__dirstamp) 1483 1587 src/FACT.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 1588 1484 1589 libConfiguration.la: $(libConfiguration_la_OBJECTS) $(libConfiguration_la_DEPENDENCIES) $(EXTRA_libConfiguration_la_DEPENDENCIES) 1485 1590 $(AM_V_CXXLD)$(CXXLINK) -rpath $(libdir) $(libConfiguration_la_OBJECTS) $(libConfiguration_la_LIBADD) $(LIBS) … … 1498 1603 dim/src/tokenstring.lo: dim/src/$(am__dirstamp) \ 1499 1604 dim/src/$(DEPDIR)/$(am__dirstamp) 1605 1500 1606 libDim++.la: $(libDim___la_OBJECTS) $(libDim___la_DEPENDENCIES) $(EXTRA_libDim___la_DEPENDENCIES) 1501 1607 $(AM_V_CXXLD)$(CXXLINK) -rpath $(libdir) $(libDim___la_OBJECTS) $(libDim___la_LIBADD) $(LIBS) … … 1528 1634 dim/src/utilities.lo: dim/src/$(am__dirstamp) \ 1529 1635 dim/src/$(DEPDIR)/$(am__dirstamp) 1636 1530 1637 libDim.la: $(libDim_la_OBJECTS) $(libDim_la_DEPENDENCIES) $(EXTRA_libDim_la_DEPENDENCIES) 1531 1638 $(AM_V_CCLD)$(LINK) -rpath $(libdir) $(libDim_la_OBJECTS) $(libDim_la_LIBADD) $(LIBS) 1532 1639 src/DimSetup.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 1640 1533 1641 libDimExtension.la: $(libDimExtension_la_OBJECTS) $(libDimExtension_la_DEPENDENCIES) $(EXTRA_libDimExtension_la_DEPENDENCIES) 1534 1642 $(AM_V_CXXLD)$(CXXLINK) -rpath $(libdir) $(libDimExtension_la_OBJECTS) $(libDimExtension_la_LIBADD) $(LIBS) … … 1730 1838 erfa/src/falp03.lo: erfa/src/$(am__dirstamp) \ 1731 1839 erfa/src/$(DEPDIR)/$(am__dirstamp) 1840 1732 1841 libPal.la: $(libPal_la_OBJECTS) $(libPal_la_DEPENDENCIES) $(EXTRA_libPal_la_DEPENDENCIES) 1733 1842 $(AM_V_CCLD)$(LINK) -rpath $(libdir) $(libPal_la_OBJECTS) $(libPal_la_LIBADD) $(LIBS) … … 1767 1876 src/DimWriteStatistics.lo: src/$(am__dirstamp) \ 1768 1877 src/$(DEPDIR)/$(am__dirstamp) 1878 1769 1879 libStateMachine.la: $(libStateMachine_la_OBJECTS) $(libStateMachine_la_DEPENDENCIES) $(EXTRA_libStateMachine_la_DEPENDENCIES) 1770 1880 $(AM_V_CXXLD)$(CXXLINK) -rpath $(libdir) $(libStateMachine_la_OBJECTS) $(libStateMachine_la_LIBADD) $(LIBS) 1771 1881 src/Time.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 1882 1772 1883 libTime.la: $(libTime_la_OBJECTS) $(libTime_la_DEPENDENCIES) $(EXTRA_libTime_la_DEPENDENCIES) 1773 1884 $(AM_V_CXXLD)$(CXXLINK) -rpath $(libdir) $(libTime_la_OBJECTS) $(libTime_la_LIBADD) $(LIBS) 1774 1885 src/tools.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 1886 1775 1887 libTools.la: $(libTools_la_OBJECTS) $(libTools_la_DEPENDENCIES) $(EXTRA_libTools_la_DEPENDENCIES) 1776 1888 $(AM_V_CXXLD)$(CXXLINK) -rpath $(libdir) $(libTools_la_OBJECTS) $(libTools_la_LIBADD) $(LIBS) 1777 1889 install-binPROGRAMS: $(bin_PROGRAMS) 1778 1890 @$(NORMAL_INSTALL) 1779 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"1780 1891 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ 1892 if test -n "$$list"; then \ 1893 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ 1894 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ 1895 fi; \ 1781 1896 for p in $$list; do echo "$$p $$p"; done | \ 1782 1897 sed 's/$(EXEEXT)$$//' | \ 1783 while read p p1; do if test -f $$p || test -f $$p1; \ 1784 then echo "$$p"; echo "$$p"; else :; fi; \ 1898 while read p p1; do if test -f $$p \ 1899 || test -f $$p1 \ 1900 ; then echo "$$p"; echo "$$p"; else :; fi; \ 1785 1901 done | \ 1786 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ 1902 sed -e 'p;s,.*/,,;n;h' \ 1903 -e 's|.*|.|' \ 1787 1904 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ 1788 1905 sed 'N;N;N;s,\n, ,g' | \ … … 1805 1922 files=`for p in $$list; do echo "$$p"; done | \ 1806 1923 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ 1807 -e 's/$$/$(EXEEXT)/' `; \ 1924 -e 's/$$/$(EXEEXT)/' \ 1925 `; \ 1808 1926 test -n "$$list" || exit 0; \ 1809 1927 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ … … 1836 1954 src/agilentctrl.$(OBJEXT): src/$(am__dirstamp) \ 1837 1955 src/$(DEPDIR)/$(am__dirstamp) 1956 1838 1957 agilentctrl$(EXEEXT): $(agilentctrl_OBJECTS) $(agilentctrl_DEPENDENCIES) $(EXTRA_agilentctrl_DEPENDENCIES) 1839 1958 @rm -f agilentctrl$(EXEEXT) 1840 1959 $(AM_V_CXXLD)$(CXXLINK) $(agilentctrl_OBJECTS) $(agilentctrl_LDADD) $(LIBS) 1841 1960 src/argv.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 1961 1842 1962 argv$(EXEEXT): $(argv_OBJECTS) $(argv_DEPENDENCIES) $(EXTRA_argv_DEPENDENCIES) 1843 1963 @rm -f argv$(EXEEXT) 1844 1964 $(AM_V_CXXLD)$(CXXLINK) $(argv_OBJECTS) $(argv_LDADD) $(LIBS) 1965 1845 1966 astro$(EXEEXT): $(astro_OBJECTS) $(astro_DEPENDENCIES) $(EXTRA_astro_DEPENDENCIES) 1846 1967 @rm -f astro$(EXEEXT) … … 1850 1971 src/PixelMap.$(OBJEXT): src/$(am__dirstamp) \ 1851 1972 src/$(DEPDIR)/$(am__dirstamp) 1973 1852 1974 biasctrl$(EXEEXT): $(biasctrl_OBJECTS) $(biasctrl_DEPENDENCIES) $(EXTRA_biasctrl_DEPENDENCIES) 1853 1975 @rm -f biasctrl$(EXEEXT) … … 1855 1977 src/chatclient.$(OBJEXT): src/$(am__dirstamp) \ 1856 1978 src/$(DEPDIR)/$(am__dirstamp) 1979 1857 1980 chatclient$(EXEEXT): $(chatclient_OBJECTS) $(chatclient_DEPENDENCIES) $(EXTRA_chatclient_DEPENDENCIES) 1858 1981 @rm -f chatclient$(EXEEXT) … … 1860 1983 src/chatserv.$(OBJEXT): src/$(am__dirstamp) \ 1861 1984 src/$(DEPDIR)/$(am__dirstamp) 1985 1862 1986 chatserv$(EXEEXT): $(chatserv_OBJECTS) $(chatserv_DEPENDENCIES) $(EXTRA_chatserv_DEPENDENCIES) 1863 1987 @rm -f chatserv$(EXEEXT) … … 1867 1991 src/HeadersFTM.$(OBJEXT): src/$(am__dirstamp) \ 1868 1992 src/$(DEPDIR)/$(am__dirstamp) 1993 1869 1994 cosyctrl$(EXEEXT): $(cosyctrl_OBJECTS) $(cosyctrl_DEPENDENCIES) $(EXTRA_cosyctrl_DEPENDENCIES) 1870 1995 @rm -f cosyctrl$(EXEEXT) … … 1877 2002 src/$(DEPDIR)/$(am__dirstamp) 1878 2003 src/Fits.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2004 1879 2005 datalogger$(EXEEXT): $(datalogger_OBJECTS) $(datalogger_DEPENDENCIES) $(EXTRA_datalogger_DEPENDENCIES) 1880 2006 @rm -f datalogger$(EXEEXT) … … 1882 2008 src/dclient5.$(OBJEXT): src/$(am__dirstamp) \ 1883 2009 src/$(DEPDIR)/$(am__dirstamp) 2010 1884 2011 dclient5$(EXEEXT): $(dclient5_OBJECTS) $(dclient5_DEPENDENCIES) $(EXTRA_dclient5_DEPENDENCIES) 1885 2012 @rm -f dclient5$(EXEEXT) … … 1895 2022 dim/src/did/did-dui_util.$(OBJEXT): dim/src/did/$(am__dirstamp) \ 1896 2023 dim/src/did/$(DEPDIR)/$(am__dirstamp) 2024 1897 2025 did$(EXEEXT): $(did_OBJECTS) $(did_DEPENDENCIES) $(EXTRA_did_DEPENDENCIES) 1898 2026 @rm -f did$(EXEEXT) … … 1906 2034 src/InterpreterV8.$(OBJEXT): src/$(am__dirstamp) \ 1907 2035 src/$(DEPDIR)/$(am__dirstamp) 2036 1908 2037 dimctrl$(EXEEXT): $(dimctrl_OBJECTS) $(dimctrl_DEPENDENCIES) $(EXTRA_dimctrl_DEPENDENCIES) 1909 2038 @rm -f dimctrl$(EXEEXT) 1910 2039 $(AM_V_CXXLD)$(CXXLINK) $(dimctrl_OBJECTS) $(dimctrl_LDADD) $(LIBS) 2040 1911 2041 dimserver$(EXEEXT): $(dimserver_OBJECTS) $(dimserver_DEPENDENCIES) $(EXTRA_dimserver_DEPENDENCIES) 1912 2042 @rm -f dimserver$(EXEEXT) 1913 2043 $(AM_V_CXXLD)$(CXXLINK) $(dimserver_OBJECTS) $(dimserver_LDADD) $(LIBS) 1914 2044 src/dns.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2045 1915 2046 dns$(EXEEXT): $(dns_OBJECTS) $(dns_DEPENDENCIES) $(EXTRA_dns_DEPENDENCIES) 1916 2047 @rm -f dns$(EXEEXT) … … 1918 2049 src/drivectrl.$(OBJEXT): src/$(am__dirstamp) \ 1919 2050 src/$(DEPDIR)/$(am__dirstamp) 2051 1920 2052 drivectrl$(EXEEXT): $(drivectrl_OBJECTS) $(drivectrl_DEPENDENCIES) $(EXTRA_drivectrl_DEPENDENCIES) 1921 2053 @rm -f drivectrl$(EXEEXT) … … 1923 2055 src/dserver2.$(OBJEXT): src/$(am__dirstamp) \ 1924 2056 src/$(DEPDIR)/$(am__dirstamp) 2057 1925 2058 dserver2$(EXEEXT): $(dserver2_OBJECTS) $(dserver2_DEPENDENCIES) $(EXTRA_dserver2_DEPENDENCIES) 1926 2059 @rm -f dserver2$(EXEEXT) … … 1928 2061 src/evtserver.$(OBJEXT): src/$(am__dirstamp) \ 1929 2062 src/$(DEPDIR)/$(am__dirstamp) 2063 1930 2064 evtserver$(EXEEXT): $(evtserver_OBJECTS) $(evtserver_DEPENDENCIES) $(EXTRA_evtserver_DEPENDENCIES) 1931 2065 @rm -f evtserver$(EXEEXT) … … 1962 2096 gui/FactGui.$(OBJEXT): gui/$(am__dirstamp) \ 1963 2097 gui/$(DEPDIR)/$(am__dirstamp) 2098 1964 2099 fact$(EXEEXT): $(fact_OBJECTS) $(fact_DEPENDENCIES) $(EXTRA_fact_DEPENDENCIES) 1965 2100 @rm -f fact$(EXEEXT) … … 1968 2103 src/HeadersFAD.$(OBJEXT): src/$(am__dirstamp) \ 1969 2104 src/$(DEPDIR)/$(am__dirstamp) 2105 1970 2106 fad$(EXEEXT): $(fad_OBJECTS) $(fad_DEPENDENCIES) $(EXTRA_fad_DEPENDENCIES) 1971 2107 @rm -f fad$(EXEEXT) … … 1985 2121 src/DataWriteFits2.$(OBJEXT): src/$(am__dirstamp) \ 1986 2122 src/$(DEPDIR)/$(am__dirstamp) 2123 1987 2124 fadctrl$(EXEEXT): $(fadctrl_OBJECTS) $(fadctrl_DEPENDENCIES) $(EXTRA_fadctrl_DEPENDENCIES) 1988 2125 @rm -f fadctrl$(EXEEXT) … … 1990 2127 src/feedback.$(OBJEXT): src/$(am__dirstamp) \ 1991 2128 src/$(DEPDIR)/$(am__dirstamp) 2129 1992 2130 feedback$(EXEEXT): $(feedback_OBJECTS) $(feedback_DEPENDENCIES) $(EXTRA_feedback_DEPENDENCIES) 1993 2131 @rm -f feedback$(EXEEXT) … … 1995 2133 src/fitscheck.$(OBJEXT): src/$(am__dirstamp) \ 1996 2134 src/$(DEPDIR)/$(am__dirstamp) 2135 1997 2136 fitscheck$(EXEEXT): $(fitscheck_OBJECTS) $(fitscheck_DEPENDENCIES) $(EXTRA_fitscheck_DEPENDENCIES) 1998 2137 @rm -f fitscheck$(EXEEXT) … … 2000 2139 src/fitsdump.$(OBJEXT): src/$(am__dirstamp) \ 2001 2140 src/$(DEPDIR)/$(am__dirstamp) 2141 2002 2142 fitsdump$(EXEEXT): $(fitsdump_OBJECTS) $(fitsdump_DEPENDENCIES) $(EXTRA_fitsdump_DEPENDENCIES) 2003 2143 @rm -f fitsdump$(EXEEXT) 2004 2144 $(AM_V_CXXLD)$(CXXLINK) $(fitsdump_OBJECTS) $(fitsdump_LDADD) $(LIBS) 2145 2005 2146 fitsgrep$(EXEEXT): $(fitsgrep_OBJECTS) $(fitsgrep_DEPENDENCIES) $(EXTRA_fitsgrep_DEPENDENCIES) 2006 2147 @rm -f fitsgrep$(EXEEXT) … … 2008 2149 src/fitsloader.$(OBJEXT): src/$(am__dirstamp) \ 2009 2150 src/$(DEPDIR)/$(am__dirstamp) 2151 2010 2152 fitsloader$(EXEEXT): $(fitsloader_OBJECTS) $(fitsloader_DEPENDENCIES) $(EXTRA_fitsloader_DEPENDENCIES) 2011 2153 @rm -f fitsloader$(EXEEXT) … … 2013 2155 src/fitsselect.$(OBJEXT): src/$(am__dirstamp) \ 2014 2156 src/$(DEPDIR)/$(am__dirstamp) 2157 2015 2158 fitsselect$(EXEEXT): $(fitsselect_OBJECTS) $(fitsselect_DEPENDENCIES) $(EXTRA_fitsselect_DEPENDENCIES) 2016 2159 @rm -f fitsselect$(EXEEXT) 2017 2160 $(AM_V_CXXLD)$(CXXLINK) $(fitsselect_OBJECTS) $(fitsselect_LDADD) $(LIBS) 2018 2161 src/fsc.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2162 2019 2163 fsc$(EXEEXT): $(fsc_OBJECTS) $(fsc_DEPENDENCIES) $(EXTRA_fsc_DEPENDENCIES) 2020 2164 @rm -f fsc$(EXEEXT) … … 2022 2166 src/fscctrl.$(OBJEXT): src/$(am__dirstamp) \ 2023 2167 src/$(DEPDIR)/$(am__dirstamp) 2168 2024 2169 fscctrl$(EXEEXT): $(fscctrl_OBJECTS) $(fscctrl_DEPENDENCIES) $(EXTRA_fscctrl_DEPENDENCIES) 2025 2170 @rm -f fscctrl$(EXEEXT) 2026 2171 $(AM_V_CXXLD)$(CXXLINK) $(fscctrl_OBJECTS) $(fscctrl_LDADD) $(LIBS) 2027 2172 src/ftm.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2173 2028 2174 ftm$(EXEEXT): $(ftm_OBJECTS) $(ftm_DEPENDENCIES) $(EXTRA_ftm_DEPENDENCIES) 2029 2175 @rm -f ftm$(EXEEXT) … … 2031 2177 src/ftmctrl.$(OBJEXT): src/$(am__dirstamp) \ 2032 2178 src/$(DEPDIR)/$(am__dirstamp) 2179 2033 2180 ftmctrl$(EXEEXT): $(ftmctrl_OBJECTS) $(ftmctrl_DEPENDENCIES) $(EXTRA_ftmctrl_DEPENDENCIES) 2034 2181 @rm -f ftmctrl$(EXEEXT) 2035 2182 $(AM_V_CXXLD)$(CXXLINK) $(ftmctrl_OBJECTS) $(ftmctrl_LDADD) $(LIBS) 2036 2183 src/gcn.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2184 2037 2185 gcn$(EXEEXT): $(gcn_OBJECTS) $(gcn_DEPENDENCIES) $(EXTRA_gcn_DEPENDENCIES) 2038 2186 @rm -f gcn$(EXEEXT) … … 2040 2188 src/getevent.$(OBJEXT): src/$(am__dirstamp) \ 2041 2189 src/$(DEPDIR)/$(am__dirstamp) 2190 2042 2191 getevent$(EXEEXT): $(getevent_OBJECTS) $(getevent_DEPENDENCIES) $(EXTRA_getevent_DEPENDENCIES) 2043 2192 @rm -f getevent$(EXEEXT) … … 2045 2194 src/gpsctrl.$(OBJEXT): src/$(am__dirstamp) \ 2046 2195 src/$(DEPDIR)/$(am__dirstamp) 2196 2047 2197 gpsctrl$(EXEEXT): $(gpsctrl_OBJECTS) $(gpsctrl_DEPENDENCIES) $(EXTRA_gpsctrl_DEPENDENCIES) 2048 2198 @rm -f gpsctrl$(EXEEXT) … … 2050 2200 src/lidctrl.$(OBJEXT): src/$(am__dirstamp) \ 2051 2201 src/$(DEPDIR)/$(am__dirstamp) 2202 2052 2203 lidctrl$(EXEEXT): $(lidctrl_OBJECTS) $(lidctrl_DEPENDENCIES) $(EXTRA_lidctrl_DEPENDENCIES) 2053 2204 @rm -f lidctrl$(EXEEXT) 2054 2205 $(AM_V_CXXLD)$(CXXLINK) $(lidctrl_OBJECTS) $(lidctrl_LDADD) $(LIBS) 2055 2206 src/log.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2207 2056 2208 log$(EXEEXT): $(log_OBJECTS) $(log_DEPENDENCIES) $(EXTRA_log_DEPENDENCIES) 2057 2209 @rm -f log$(EXEEXT) … … 2059 2211 src/logtime.$(OBJEXT): src/$(am__dirstamp) \ 2060 2212 src/$(DEPDIR)/$(am__dirstamp) 2213 2061 2214 logtime$(EXEEXT): $(logtime_OBJECTS) $(logtime_DEPENDENCIES) $(EXTRA_logtime_DEPENDENCIES) 2062 2215 @rm -f logtime$(EXEEXT) … … 2064 2217 src/magiclidar.$(OBJEXT): src/$(am__dirstamp) \ 2065 2218 src/$(DEPDIR)/$(am__dirstamp) 2219 2066 2220 magiclidar$(EXEEXT): $(magiclidar_OBJECTS) $(magiclidar_DEPENDENCIES) $(EXTRA_magiclidar_DEPENDENCIES) 2067 2221 @rm -f magiclidar$(EXEEXT) … … 2069 2223 src/magicweather.$(OBJEXT): src/$(am__dirstamp) \ 2070 2224 src/$(DEPDIR)/$(am__dirstamp) 2225 2071 2226 magicweather$(EXEEXT): $(magicweather_OBJECTS) $(magicweather_DEPENDENCIES) $(EXTRA_magicweather_DEPENDENCIES) 2072 2227 @rm -f magicweather$(EXEEXT) … … 2074 2229 src/makedata.$(OBJEXT): src/$(am__dirstamp) \ 2075 2230 src/$(DEPDIR)/$(am__dirstamp) 2231 2076 2232 makedata$(EXEEXT): $(makedata_OBJECTS) $(makedata_DEPENDENCIES) $(EXTRA_makedata_DEPENDENCIES) 2077 2233 @rm -f makedata$(EXEEXT) … … 2079 2235 src/makeplots.$(OBJEXT): src/$(am__dirstamp) \ 2080 2236 src/$(DEPDIR)/$(am__dirstamp) 2237 2081 2238 makeplots$(EXEEXT): $(makeplots_OBJECTS) $(makeplots_DEPENDENCIES) $(EXTRA_makeplots_DEPENDENCIES) 2082 2239 @rm -f makeplots$(EXEEXT) … … 2084 2241 src/makeschedule.$(OBJEXT): src/$(am__dirstamp) \ 2085 2242 src/$(DEPDIR)/$(am__dirstamp) 2243 2086 2244 makeschedule$(EXEEXT): $(makeschedule_OBJECTS) $(makeschedule_DEPENDENCIES) $(EXTRA_makeschedule_DEPENDENCIES) 2087 2245 @rm -f makeschedule$(EXEEXT) 2088 2246 $(AM_V_CXXLD)$(CXXLINK) $(makeschedule_OBJECTS) $(makeschedule_LDADD) $(LIBS) 2089 2247 src/mcp.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2248 2090 2249 mcp$(EXEEXT): $(mcp_OBJECTS) $(mcp_DEPENDENCIES) $(EXTRA_mcp_DEPENDENCIES) 2091 2250 @rm -f mcp$(EXEEXT) 2092 2251 $(AM_V_CXXLD)$(CXXLINK) $(mcp_OBJECTS) $(mcp_LDADD) $(LIBS) 2093 2252 src/moon.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2253 2094 2254 moon$(EXEEXT): $(moon_OBJECTS) $(moon_DEPENDENCIES) $(EXTRA_moon_DEPENDENCIES) 2095 2255 @rm -f moon$(EXEEXT) … … 2097 2257 src/pfminictrl.$(OBJEXT): src/$(am__dirstamp) \ 2098 2258 src/$(DEPDIR)/$(am__dirstamp) 2259 2099 2260 pfminictrl$(EXEEXT): $(pfminictrl_OBJECTS) $(pfminictrl_DEPENDENCIES) $(EXTRA_pfminictrl_DEPENDENCIES) 2100 2261 @rm -f pfminictrl$(EXEEXT) … … 2104 2265 src/HeadersPower.$(OBJEXT): src/$(am__dirstamp) \ 2105 2266 src/$(DEPDIR)/$(am__dirstamp) 2267 2106 2268 pwrctrl$(EXEEXT): $(pwrctrl_OBJECTS) $(pwrctrl_DEPENDENCIES) $(EXTRA_pwrctrl_DEPENDENCIES) 2107 2269 @rm -f pwrctrl$(EXEEXT) … … 2109 2271 src/ratecontrol.$(OBJEXT): src/$(am__dirstamp) \ 2110 2272 src/$(DEPDIR)/$(am__dirstamp) 2273 2111 2274 ratecontrol$(EXEEXT): $(ratecontrol_OBJECTS) $(ratecontrol_DEPENDENCIES) $(EXTRA_ratecontrol_DEPENDENCIES) 2112 2275 @rm -f ratecontrol$(EXEEXT) … … 2114 2277 src/ratescan.$(OBJEXT): src/$(am__dirstamp) \ 2115 2278 src/$(DEPDIR)/$(am__dirstamp) 2279 2116 2280 ratescan$(EXEEXT): $(ratescan_OBJECTS) $(ratescan_DEPENDENCIES) $(EXTRA_ratescan_DEPENDENCIES) 2117 2281 @rm -f ratescan$(EXEEXT) … … 2119 2283 src/readfits.$(OBJEXT): src/$(am__dirstamp) \ 2120 2284 src/$(DEPDIR)/$(am__dirstamp) 2285 2121 2286 readfits$(EXEEXT): $(readfits_OBJECTS) $(readfits_DEPENDENCIES) $(EXTRA_readfits_DEPENDENCIES) 2122 2287 @rm -f readfits$(EXEEXT) … … 2124 2289 src/rootifysql.$(OBJEXT): src/$(am__dirstamp) \ 2125 2290 src/$(DEPDIR)/$(am__dirstamp) 2291 2126 2292 rootifysql$(EXEEXT): $(rootifysql_OBJECTS) $(rootifysql_DEPENDENCIES) $(EXTRA_rootifysql_DEPENDENCIES) 2127 2293 @rm -f rootifysql$(EXEEXT) 2128 2294 $(AM_V_CXXLD)$(CXXLINK) $(rootifysql_OBJECTS) $(rootifysql_LDADD) $(LIBS) 2295 2129 2296 sched$(EXEEXT): $(sched_OBJECTS) $(sched_DEPENDENCIES) $(EXTRA_sched_DEPENDENCIES) 2130 2297 @rm -f sched$(EXEEXT) … … 2132 2299 src/scheduler.$(OBJEXT): src/$(am__dirstamp) \ 2133 2300 src/$(DEPDIR)/$(am__dirstamp) 2301 2134 2302 scheduler$(EXEEXT): $(scheduler_OBJECTS) $(scheduler_DEPENDENCIES) $(EXTRA_scheduler_DEPENDENCIES) 2135 2303 @rm -f scheduler$(EXEEXT) … … 2137 2305 src/showlog.$(OBJEXT): src/$(am__dirstamp) \ 2138 2306 src/$(DEPDIR)/$(am__dirstamp) 2307 2139 2308 showlog$(EXEEXT): $(showlog_OBJECTS) $(showlog_DEPENDENCIES) $(EXTRA_showlog_DEPENDENCIES) 2140 2309 @rm -f showlog$(EXEEXT) … … 2142 2311 src/skypeclient.$(OBJEXT): src/$(am__dirstamp) \ 2143 2312 src/$(DEPDIR)/$(am__dirstamp) 2313 2144 2314 skypeclient$(EXEEXT): $(skypeclient_OBJECTS) $(skypeclient_DEPENDENCIES) $(EXTRA_skypeclient_DEPENDENCIES) 2145 2315 @rm -f skypeclient$(EXEEXT) … … 2147 2317 src/smartfact.$(OBJEXT): src/$(am__dirstamp) \ 2148 2318 src/$(DEPDIR)/$(am__dirstamp) 2319 2149 2320 smartfact$(EXEEXT): $(smartfact_OBJECTS) $(smartfact_DEPENDENCIES) $(EXTRA_smartfact_DEPENDENCIES) 2150 2321 @rm -f smartfact$(EXEEXT) … … 2152 2323 src/sqmctrl.$(OBJEXT): src/$(am__dirstamp) \ 2153 2324 src/$(DEPDIR)/$(am__dirstamp) 2325 2154 2326 sqmctrl$(EXEEXT): $(sqmctrl_OBJECTS) $(sqmctrl_DEPENDENCIES) $(EXTRA_sqmctrl_DEPENDENCIES) 2155 2327 @rm -f sqmctrl$(EXEEXT) … … 2157 2329 src/temperature.$(OBJEXT): src/$(am__dirstamp) \ 2158 2330 src/$(DEPDIR)/$(am__dirstamp) 2331 2159 2332 temperature$(EXEEXT): $(temperature_OBJECTS) $(temperature_DEPENDENCIES) $(EXTRA_temperature_DEPENDENCIES) 2160 2333 @rm -f temperature$(EXEEXT) 2161 2334 $(AM_V_CXXLD)$(CXXLINK) $(temperature_OBJECTS) $(temperature_LDADD) $(LIBS) 2162 2335 src/test.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2336 2163 2337 test$(EXEEXT): $(test_OBJECTS) $(test_DEPENDENCIES) $(EXTRA_test_DEPENDENCIES) 2164 2338 @rm -f test$(EXEEXT) 2165 2339 $(AM_V_CXXLD)$(CXXLINK) $(test_OBJECTS) $(test_LDADD) $(LIBS) 2166 2340 src/time.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2341 2167 2342 time$(EXEEXT): $(time_OBJECTS) $(time_DEPENDENCIES) $(EXTRA_time_DEPENDENCIES) 2168 2343 @rm -f time$(EXEEXT) … … 2170 2345 src/timecheck.$(OBJEXT): src/$(am__dirstamp) \ 2171 2346 src/$(DEPDIR)/$(am__dirstamp) 2347 2172 2348 timecheck$(EXEEXT): $(timecheck_OBJECTS) $(timecheck_DEPENDENCIES) $(EXTRA_timecheck_DEPENDENCIES) 2173 2349 @rm -f timecheck$(EXEEXT) … … 2175 2351 src/tngweather.$(OBJEXT): src/$(am__dirstamp) \ 2176 2352 src/$(DEPDIR)/$(am__dirstamp) 2353 2177 2354 tngweather$(EXEEXT): $(tngweather_OBJECTS) $(tngweather_DEPENDENCIES) $(EXTRA_tngweather_DEPENDENCIES) 2178 2355 @rm -f tngweather$(EXEEXT) … … 2180 2357 src/triggerschedule.$(OBJEXT): src/$(am__dirstamp) \ 2181 2358 src/$(DEPDIR)/$(am__dirstamp) 2359 2182 2360 triggerschedule$(EXEEXT): $(triggerschedule_OBJECTS) $(triggerschedule_DEPENDENCIES) $(EXTRA_triggerschedule_DEPENDENCIES) 2183 2361 @rm -f triggerschedule$(EXEEXT) … … 2215 2393 src/viewer-PixelMap.$(OBJEXT): src/$(am__dirstamp) \ 2216 2394 src/$(DEPDIR)/$(am__dirstamp) 2395 2217 2396 viewer$(EXEEXT): $(viewer_OBJECTS) $(viewer_DEPENDENCIES) $(EXTRA_viewer_DEPENDENCIES) 2218 2397 @rm -f viewer$(EXEEXT) … … 2232 2411 dim/src/webDid/$(am__dirstamp) \ 2233 2412 dim/src/webDid/$(DEPDIR)/$(am__dirstamp) 2413 2234 2414 webDid$(EXEEXT): $(webDid_OBJECTS) $(webDid_DEPENDENCIES) $(EXTRA_webDid_DEPENDENCIES) 2235 2415 @rm -f webDid$(EXEEXT) 2236 2416 $(AM_V_CCLD)$(LINK) $(webDid_OBJECTS) $(webDid_LDADD) $(LIBS) 2237 2417 src/zfits.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 2418 2238 2419 zfits$(EXEEXT): $(zfits_OBJECTS) $(zfits_DEPENDENCIES) $(EXTRA_zfits_DEPENDENCIES) 2239 2420 @rm -f zfits$(EXEEXT) … … 2242 2423 mostlyclean-compile: 2243 2424 -rm -f *.$(OBJEXT) 2244 -rm -f dim/src/conn_handler.$(OBJEXT) 2245 -rm -f dim/src/conn_handler.lo 2246 -rm -f dim/src/copy_swap.$(OBJEXT) 2247 -rm -f dim/src/copy_swap.lo 2248 -rm -f dim/src/dic.$(OBJEXT) 2249 -rm -f dim/src/dic.lo 2250 -rm -f dim/src/diccpp.$(OBJEXT) 2251 -rm -f dim/src/diccpp.lo 2252 -rm -f dim/src/did/did-did.$(OBJEXT) 2253 -rm -f dim/src/did/did-dui_util.$(OBJEXT) 2254 -rm -f dim/src/dim_thr.$(OBJEXT) 2255 -rm -f dim/src/dim_thr.lo 2256 -rm -f dim/src/dimcpp.$(OBJEXT) 2257 -rm -f dim/src/dimcpp.lo 2258 -rm -f dim/src/dis.$(OBJEXT) 2259 -rm -f dim/src/dis.lo 2260 -rm -f dim/src/discpp.$(OBJEXT) 2261 -rm -f dim/src/discpp.lo 2262 -rm -f dim/src/dll.$(OBJEXT) 2263 -rm -f dim/src/dll.lo 2264 -rm -f dim/src/dna.$(OBJEXT) 2265 -rm -f dim/src/dna.lo 2266 -rm -f dim/src/dtq.$(OBJEXT) 2267 -rm -f dim/src/dtq.lo 2268 -rm -f dim/src/hash.$(OBJEXT) 2269 -rm -f dim/src/hash.lo 2270 -rm -f dim/src/open_dns.$(OBJEXT) 2271 -rm -f dim/src/open_dns.lo 2272 -rm -f dim/src/sll.$(OBJEXT) 2273 -rm -f dim/src/sll.lo 2274 -rm -f dim/src/swap.$(OBJEXT) 2275 -rm -f dim/src/swap.lo 2276 -rm -f dim/src/tcpip.$(OBJEXT) 2277 -rm -f dim/src/tcpip.lo 2278 -rm -f dim/src/tokenstring.$(OBJEXT) 2279 -rm -f dim/src/tokenstring.lo 2280 -rm -f dim/src/utilities.$(OBJEXT) 2281 -rm -f dim/src/utilities.lo 2282 -rm -f dim/src/webDid/webDid-webDid.$(OBJEXT) 2283 -rm -f dim/src/webDid/webDid-webTcpip.$(OBJEXT) 2284 -rm -f erfa/src/a2af.$(OBJEXT) 2285 -rm -f erfa/src/a2af.lo 2286 -rm -f erfa/src/a2tf.$(OBJEXT) 2287 -rm -f erfa/src/a2tf.lo 2288 -rm -f erfa/src/af2a.$(OBJEXT) 2289 -rm -f erfa/src/af2a.lo 2290 -rm -f erfa/src/anp.$(OBJEXT) 2291 -rm -f erfa/src/anp.lo 2292 -rm -f erfa/src/anpm.$(OBJEXT) 2293 -rm -f erfa/src/anpm.lo 2294 -rm -f erfa/src/bpn2xy.$(OBJEXT) 2295 -rm -f erfa/src/bpn2xy.lo 2296 -rm -f erfa/src/c2s.$(OBJEXT) 2297 -rm -f erfa/src/c2s.lo 2298 -rm -f erfa/src/cal2jd.$(OBJEXT) 2299 -rm -f erfa/src/cal2jd.lo 2300 -rm -f erfa/src/cp.$(OBJEXT) 2301 -rm -f erfa/src/cp.lo 2302 -rm -f erfa/src/cr.$(OBJEXT) 2303 -rm -f erfa/src/cr.lo 2304 -rm -f erfa/src/d2tf.$(OBJEXT) 2305 -rm -f erfa/src/d2tf.lo 2306 -rm -f erfa/src/dat.$(OBJEXT) 2307 -rm -f erfa/src/dat.lo 2308 -rm -f erfa/src/ee06a.$(OBJEXT) 2309 -rm -f erfa/src/ee06a.lo 2310 -rm -f erfa/src/eform.$(OBJEXT) 2311 -rm -f erfa/src/eform.lo 2312 -rm -f erfa/src/eors.$(OBJEXT) 2313 -rm -f erfa/src/eors.lo 2314 -rm -f erfa/src/epb.$(OBJEXT) 2315 -rm -f erfa/src/epb.lo 2316 -rm -f erfa/src/epb2jd.$(OBJEXT) 2317 -rm -f erfa/src/epb2jd.lo 2318 -rm -f erfa/src/epj.$(OBJEXT) 2319 -rm -f erfa/src/epj.lo 2320 -rm -f erfa/src/epj2jd.$(OBJEXT) 2321 -rm -f erfa/src/epj2jd.lo 2322 -rm -f erfa/src/epv00.$(OBJEXT) 2323 -rm -f erfa/src/epv00.lo 2324 -rm -f erfa/src/era00.$(OBJEXT) 2325 -rm -f erfa/src/era00.lo 2326 -rm -f erfa/src/fad03.$(OBJEXT) 2327 -rm -f erfa/src/fad03.lo 2328 -rm -f erfa/src/fae03.$(OBJEXT) 2329 -rm -f erfa/src/fae03.lo 2330 -rm -f erfa/src/faf03.$(OBJEXT) 2331 -rm -f erfa/src/faf03.lo 2332 -rm -f erfa/src/faju03.$(OBJEXT) 2333 -rm -f erfa/src/faju03.lo 2334 -rm -f erfa/src/fal03.$(OBJEXT) 2335 -rm -f erfa/src/fal03.lo 2336 -rm -f erfa/src/falp03.$(OBJEXT) 2337 -rm -f erfa/src/falp03.lo 2338 -rm -f erfa/src/fama03.$(OBJEXT) 2339 -rm -f erfa/src/fama03.lo 2340 -rm -f erfa/src/fame03.$(OBJEXT) 2341 -rm -f erfa/src/fame03.lo 2342 -rm -f erfa/src/faom03.$(OBJEXT) 2343 -rm -f erfa/src/faom03.lo 2344 -rm -f erfa/src/fapa03.$(OBJEXT) 2345 -rm -f erfa/src/fapa03.lo 2346 -rm -f erfa/src/fasa03.$(OBJEXT) 2347 -rm -f erfa/src/fasa03.lo 2348 -rm -f erfa/src/faur03.$(OBJEXT) 2349 -rm -f erfa/src/faur03.lo 2350 -rm -f erfa/src/fave03.$(OBJEXT) 2351 -rm -f erfa/src/fave03.lo 2352 -rm -f erfa/src/fk5hip.$(OBJEXT) 2353 -rm -f erfa/src/fk5hip.lo 2354 -rm -f erfa/src/fk5hz.$(OBJEXT) 2355 -rm -f erfa/src/fk5hz.lo 2356 -rm -f erfa/src/fw2m.$(OBJEXT) 2357 -rm -f erfa/src/fw2m.lo 2358 -rm -f erfa/src/gd2gc.$(OBJEXT) 2359 -rm -f erfa/src/gd2gc.lo 2360 -rm -f erfa/src/gd2gce.$(OBJEXT) 2361 -rm -f erfa/src/gd2gce.lo 2362 -rm -f erfa/src/gmst06.$(OBJEXT) 2363 -rm -f erfa/src/gmst06.lo 2364 -rm -f erfa/src/gst06.$(OBJEXT) 2365 -rm -f erfa/src/gst06.lo 2366 -rm -f erfa/src/gst06a.$(OBJEXT) 2367 -rm -f erfa/src/gst06a.lo 2368 -rm -f erfa/src/hfk5z.$(OBJEXT) 2369 -rm -f erfa/src/hfk5z.lo 2370 -rm -f erfa/src/ir.$(OBJEXT) 2371 -rm -f erfa/src/ir.lo 2372 -rm -f erfa/src/jd2cal.$(OBJEXT) 2373 -rm -f erfa/src/jd2cal.lo 2374 -rm -f erfa/src/nut00a.$(OBJEXT) 2375 -rm -f erfa/src/nut00a.lo 2376 -rm -f erfa/src/nut06a.$(OBJEXT) 2377 -rm -f erfa/src/nut06a.lo 2378 -rm -f erfa/src/obl06.$(OBJEXT) 2379 -rm -f erfa/src/obl06.lo 2380 -rm -f erfa/src/p06e.$(OBJEXT) 2381 -rm -f erfa/src/p06e.lo 2382 -rm -f erfa/src/pap.$(OBJEXT) 2383 -rm -f erfa/src/pap.lo 2384 -rm -f erfa/src/pas.$(OBJEXT) 2385 -rm -f erfa/src/pas.lo 2386 -rm -f erfa/src/pdp.$(OBJEXT) 2387 -rm -f erfa/src/pdp.lo 2388 -rm -f erfa/src/pfw06.$(OBJEXT) 2389 -rm -f erfa/src/pfw06.lo 2390 -rm -f erfa/src/plan94.$(OBJEXT) 2391 -rm -f erfa/src/plan94.lo 2392 -rm -f erfa/src/pm.$(OBJEXT) 2393 -rm -f erfa/src/pm.lo 2394 -rm -f erfa/src/pmat06.$(OBJEXT) 2395 -rm -f erfa/src/pmat06.lo 2396 -rm -f erfa/src/pmp.$(OBJEXT) 2397 -rm -f erfa/src/pmp.lo 2398 -rm -f erfa/src/pn.$(OBJEXT) 2399 -rm -f erfa/src/pn.lo 2400 -rm -f erfa/src/pnm06a.$(OBJEXT) 2401 -rm -f erfa/src/pnm06a.lo 2402 -rm -f erfa/src/pv2s.$(OBJEXT) 2403 -rm -f erfa/src/pv2s.lo 2404 -rm -f erfa/src/pxp.$(OBJEXT) 2405 -rm -f erfa/src/pxp.lo 2406 -rm -f erfa/src/refco.$(OBJEXT) 2407 -rm -f erfa/src/refco.lo 2408 -rm -f erfa/src/rm2v.$(OBJEXT) 2409 -rm -f erfa/src/rm2v.lo 2410 -rm -f erfa/src/rv2m.$(OBJEXT) 2411 -rm -f erfa/src/rv2m.lo 2412 -rm -f erfa/src/rx.$(OBJEXT) 2413 -rm -f erfa/src/rx.lo 2414 -rm -f erfa/src/rxp.$(OBJEXT) 2415 -rm -f erfa/src/rxp.lo 2416 -rm -f erfa/src/rxpv.$(OBJEXT) 2417 -rm -f erfa/src/rxpv.lo 2418 -rm -f erfa/src/rxr.$(OBJEXT) 2419 -rm -f erfa/src/rxr.lo 2420 -rm -f erfa/src/ry.$(OBJEXT) 2421 -rm -f erfa/src/ry.lo 2422 -rm -f erfa/src/rz.$(OBJEXT) 2423 -rm -f erfa/src/rz.lo 2424 -rm -f erfa/src/s06.$(OBJEXT) 2425 -rm -f erfa/src/s06.lo 2426 -rm -f erfa/src/s2c.$(OBJEXT) 2427 -rm -f erfa/src/s2c.lo 2428 -rm -f erfa/src/sepp.$(OBJEXT) 2429 -rm -f erfa/src/sepp.lo 2430 -rm -f erfa/src/seps.$(OBJEXT) 2431 -rm -f erfa/src/seps.lo 2432 -rm -f erfa/src/sxp.$(OBJEXT) 2433 -rm -f erfa/src/sxp.lo 2434 -rm -f erfa/src/tf2a.$(OBJEXT) 2435 -rm -f erfa/src/tf2a.lo 2436 -rm -f erfa/src/tf2d.$(OBJEXT) 2437 -rm -f erfa/src/tf2d.lo 2438 -rm -f erfa/src/tr.$(OBJEXT) 2439 -rm -f erfa/src/tr.lo 2440 -rm -f erfa/src/trxp.$(OBJEXT) 2441 -rm -f erfa/src/trxp.lo 2442 -rm -f erfa/src/zp.$(OBJEXT) 2443 -rm -f erfa/src/zp.lo 2444 -rm -f gui/BasicGlCamera.$(OBJEXT) 2445 -rm -f gui/BasicGlCamera.moc.$(OBJEXT) 2446 -rm -f gui/CheckBoxDelegate.$(OBJEXT) 2447 -rm -f gui/DockWindow.$(OBJEXT) 2448 -rm -f gui/DockWindow.moc.$(OBJEXT) 2449 -rm -f gui/FactGui.$(OBJEXT) 2450 -rm -f gui/HtmlDelegate.$(OBJEXT) 2451 -rm -f gui/MainWindow.$(OBJEXT) 2452 -rm -f gui/MainWindow.moc.$(OBJEXT) 2453 -rm -f gui/QCameraWidget.$(OBJEXT) 2454 -rm -f gui/QCameraWidget.moc.$(OBJEXT) 2455 -rm -f gui/RawEventsViewer/viewer-RawEventsViewer.$(OBJEXT) 2456 -rm -f gui/RawEventsViewer/viewer-RawEventsViewer.moc.$(OBJEXT) 2457 -rm -f gui/design.$(OBJEXT) 2458 -rm -f gui/fact.$(OBJEXT) 2459 -rm -f gui/viewer-BasicGlCamera.$(OBJEXT) 2460 -rm -f gui/viewer-BasicGlCamera.moc.$(OBJEXT) 2461 -rm -f gui/viewer-Q3DCameraWidget.$(OBJEXT) 2462 -rm -f gui/viewer-Q3DCameraWidget.moc.$(OBJEXT) 2463 -rm -f gui/viewer-QCameraWidget.$(OBJEXT) 2464 -rm -f gui/viewer-QCameraWidget.moc.$(OBJEXT) 2465 -rm -f pal/pal1Atms.$(OBJEXT) 2466 -rm -f pal/pal1Atms.lo 2467 -rm -f pal/pal1Atmt.$(OBJEXT) 2468 -rm -f pal/pal1Atmt.lo 2469 -rm -f pal/palAmpqk.$(OBJEXT) 2470 -rm -f pal/palAmpqk.lo 2471 -rm -f pal/palAoppa.$(OBJEXT) 2472 -rm -f pal/palAoppa.lo 2473 -rm -f pal/palAoppat.$(OBJEXT) 2474 -rm -f pal/palAoppat.lo 2475 -rm -f pal/palAopqk.$(OBJEXT) 2476 -rm -f pal/palAopqk.lo 2477 -rm -f pal/palDat.$(OBJEXT) 2478 -rm -f pal/palDat.lo 2479 -rm -f pal/palDeuler.$(OBJEXT) 2480 -rm -f pal/palDeuler.lo 2481 -rm -f pal/palDmoon.$(OBJEXT) 2482 -rm -f pal/palDmoon.lo 2483 -rm -f pal/palDrange.$(OBJEXT) 2484 -rm -f pal/palDrange.lo 2485 -rm -f pal/palDt.$(OBJEXT) 2486 -rm -f pal/palDt.lo 2487 -rm -f pal/palDtt.$(OBJEXT) 2488 -rm -f pal/palDtt.lo 2489 -rm -f pal/palEvp.$(OBJEXT) 2490 -rm -f pal/palEvp.lo 2491 -rm -f pal/palMappa.$(OBJEXT) 2492 -rm -f pal/palMappa.lo 2493 -rm -f pal/palMapqkz.$(OBJEXT) 2494 -rm -f pal/palMapqkz.lo 2495 -rm -f pal/palNut.$(OBJEXT) 2496 -rm -f pal/palNut.lo 2497 -rm -f pal/palNutc.$(OBJEXT) 2498 -rm -f pal/palNutc.lo 2499 -rm -f pal/palOne2One.$(OBJEXT) 2500 -rm -f pal/palOne2One.lo 2501 -rm -f pal/palPlanet.$(OBJEXT) 2502 -rm -f pal/palPlanet.lo 2503 -rm -f pal/palPrenut.$(OBJEXT) 2504 -rm -f pal/palPrenut.lo 2505 -rm -f pal/palPvobs.$(OBJEXT) 2506 -rm -f pal/palPvobs.lo 2507 -rm -f pal/palRdplan.$(OBJEXT) 2508 -rm -f pal/palRdplan.lo 2509 -rm -f pal/palRefco.$(OBJEXT) 2510 -rm -f pal/palRefco.lo 2511 -rm -f pal/palRefro.$(OBJEXT) 2512 -rm -f pal/palRefro.lo 2513 -rm -f pal/palRefz.$(OBJEXT) 2514 -rm -f pal/palRefz.lo 2515 -rm -f src/Configuration.$(OBJEXT) 2516 -rm -f src/Configuration.lo 2517 -rm -f src/Connection.$(OBJEXT) 2518 -rm -f src/Connection.lo 2519 -rm -f src/ConnectionUSB.$(OBJEXT) 2520 -rm -f src/ConnectionUSB.lo 2521 -rm -f src/Console.$(OBJEXT) 2522 -rm -f src/Console.lo 2523 -rm -f src/Converter.$(OBJEXT) 2524 -rm -f src/Converter.lo 2525 -rm -f src/DataCalib.$(OBJEXT) 2526 -rm -f src/DataProcessorImp.$(OBJEXT) 2527 -rm -f src/DataWriteFits.$(OBJEXT) 2528 -rm -f src/DataWriteFits2.$(OBJEXT) 2529 -rm -f src/DataWriteRaw.$(OBJEXT) 2530 -rm -f src/Description.$(OBJEXT) 2531 -rm -f src/Description.lo 2532 -rm -f src/DimDescriptionService.$(OBJEXT) 2533 -rm -f src/DimDescriptionService.lo 2534 -rm -f src/DimErrorRedirecter.$(OBJEXT) 2535 -rm -f src/DimErrorRedirecter.lo 2536 -rm -f src/DimNetwork.$(OBJEXT) 2537 -rm -f src/DimNetwork.lo 2538 -rm -f src/DimServerList.$(OBJEXT) 2539 -rm -f src/DimServerList.lo 2540 -rm -f src/DimServiceInfoList.$(OBJEXT) 2541 -rm -f src/DimServiceInfoList.lo 2542 -rm -f src/DimSetup.$(OBJEXT) 2543 -rm -f src/DimSetup.lo 2544 -rm -f src/DimState.$(OBJEXT) 2545 -rm -f src/DimWriteStatistics.$(OBJEXT) 2546 -rm -f src/DimWriteStatistics.lo 2547 -rm -f src/Event.$(OBJEXT) 2548 -rm -f src/Event.lo 2549 -rm -f src/EventBuilder.$(OBJEXT) 2550 -rm -f src/EventImp.$(OBJEXT) 2551 -rm -f src/EventImp.lo 2552 -rm -f src/FACT.$(OBJEXT) 2553 -rm -f src/FACT.lo 2554 -rm -f src/Fits.$(OBJEXT) 2555 -rm -f src/FitsFile.$(OBJEXT) 2556 -rm -f src/HeadersFAD.$(OBJEXT) 2557 -rm -f src/HeadersFTM.$(OBJEXT) 2558 -rm -f src/HeadersPower.$(OBJEXT) 2559 -rm -f src/InterpreterV8.$(OBJEXT) 2560 -rm -f src/MessageDim.$(OBJEXT) 2561 -rm -f src/MessageDim.lo 2562 -rm -f src/MessageImp.$(OBJEXT) 2563 -rm -f src/MessageImp.lo 2564 -rm -f src/PixelMap.$(OBJEXT) 2565 -rm -f src/Readline.$(OBJEXT) 2566 -rm -f src/Readline.lo 2567 -rm -f src/ReadlineColor.$(OBJEXT) 2568 -rm -f src/ReadlineColor.lo 2569 -rm -f src/ReadlineWindow.$(OBJEXT) 2570 -rm -f src/ReadlineWindow.lo 2571 -rm -f src/RemoteControl.$(OBJEXT) 2572 -rm -f src/ServiceList.$(OBJEXT) 2573 -rm -f src/ServiceList.lo 2574 -rm -f src/Shell.$(OBJEXT) 2575 -rm -f src/Shell.lo 2576 -rm -f src/State.$(OBJEXT) 2577 -rm -f src/State.lo 2578 -rm -f src/StateMachine.$(OBJEXT) 2579 -rm -f src/StateMachine.lo 2580 -rm -f src/StateMachineDim.$(OBJEXT) 2581 -rm -f src/StateMachineDim.lo 2582 -rm -f src/StateMachineDimControl.$(OBJEXT) 2583 -rm -f src/StateMachineImp.$(OBJEXT) 2584 -rm -f src/StateMachineImp.lo 2585 -rm -f src/Time.$(OBJEXT) 2586 -rm -f src/Time.lo 2587 -rm -f src/WindowLog.$(OBJEXT) 2588 -rm -f src/WindowLog.lo 2589 -rm -f src/agilentctrl.$(OBJEXT) 2590 -rm -f src/argv.$(OBJEXT) 2591 -rm -f src/biasctrl.$(OBJEXT) 2592 -rm -f src/chatclient.$(OBJEXT) 2593 -rm -f src/chatserv.$(OBJEXT) 2594 -rm -f src/cosyctrl.$(OBJEXT) 2595 -rm -f src/datalogger.$(OBJEXT) 2596 -rm -f src/dclient5.$(OBJEXT) 2597 -rm -f src/dimctrl.$(OBJEXT) 2598 -rm -f src/dns.$(OBJEXT) 2599 -rm -f src/drivectrl.$(OBJEXT) 2600 -rm -f src/dserver2.$(OBJEXT) 2601 -rm -f src/evtserver.$(OBJEXT) 2602 -rm -f src/fad.$(OBJEXT) 2603 -rm -f src/fadctrl.$(OBJEXT) 2604 -rm -f src/feedback.$(OBJEXT) 2605 -rm -f src/fitscheck.$(OBJEXT) 2606 -rm -f src/fitsdump.$(OBJEXT) 2607 -rm -f src/fitsloader.$(OBJEXT) 2608 -rm -f src/fitsselect.$(OBJEXT) 2609 -rm -f src/fsc.$(OBJEXT) 2610 -rm -f src/fscctrl.$(OBJEXT) 2611 -rm -f src/ftm.$(OBJEXT) 2612 -rm -f src/ftmctrl.$(OBJEXT) 2613 -rm -f src/gcn.$(OBJEXT) 2614 -rm -f src/getevent.$(OBJEXT) 2615 -rm -f src/gpsctrl.$(OBJEXT) 2616 -rm -f src/lidctrl.$(OBJEXT) 2617 -rm -f src/log.$(OBJEXT) 2618 -rm -f src/logtime.$(OBJEXT) 2619 -rm -f src/magiclidar.$(OBJEXT) 2620 -rm -f src/magicweather.$(OBJEXT) 2621 -rm -f src/makedata.$(OBJEXT) 2622 -rm -f src/makeplots.$(OBJEXT) 2623 -rm -f src/makeschedule.$(OBJEXT) 2624 -rm -f src/mcp.$(OBJEXT) 2625 -rm -f src/moon.$(OBJEXT) 2626 -rm -f src/pfminictrl.$(OBJEXT) 2627 -rm -f src/pwrctrl.$(OBJEXT) 2628 -rm -f src/ratecontrol.$(OBJEXT) 2629 -rm -f src/ratescan.$(OBJEXT) 2630 -rm -f src/readfits.$(OBJEXT) 2631 -rm -f src/rootifysql.$(OBJEXT) 2632 -rm -f src/scheduler.$(OBJEXT) 2633 -rm -f src/showlog.$(OBJEXT) 2634 -rm -f src/skypeclient.$(OBJEXT) 2635 -rm -f src/smartfact.$(OBJEXT) 2636 -rm -f src/sqmctrl.$(OBJEXT) 2637 -rm -f src/temperature.$(OBJEXT) 2638 -rm -f src/test.$(OBJEXT) 2639 -rm -f src/time.$(OBJEXT) 2640 -rm -f src/timecheck.$(OBJEXT) 2641 -rm -f src/tngweather.$(OBJEXT) 2642 -rm -f src/tools.$(OBJEXT) 2643 -rm -f src/tools.lo 2644 -rm -f src/triggerschedule.$(OBJEXT) 2645 -rm -f src/viewer-DataProcessorImp.$(OBJEXT) 2646 -rm -f src/viewer-Fits.$(OBJEXT) 2647 -rm -f src/viewer-FitsFile.$(OBJEXT) 2648 -rm -f src/viewer-PixelMap.$(OBJEXT) 2649 -rm -f src/webDid-webServer.$(OBJEXT) 2650 -rm -f src/zfits.$(OBJEXT) 2425 -rm -f dim/src/*.$(OBJEXT) 2426 -rm -f dim/src/*.lo 2427 -rm -f dim/src/did/*.$(OBJEXT) 2428 -rm -f dim/src/webDid/*.$(OBJEXT) 2429 -rm -f erfa/src/*.$(OBJEXT) 2430 -rm -f erfa/src/*.lo 2431 -rm -f gui/*.$(OBJEXT) 2432 -rm -f gui/RawEventsViewer/*.$(OBJEXT) 2433 -rm -f pal/*.$(OBJEXT) 2434 -rm -f pal/*.lo 2435 -rm -f src/*.$(OBJEXT) 2436 -rm -f src/*.lo 2651 2437 2652 2438 distclean-compile: … … 3235 3021 install-man1: $(dist_man1_MANS) 3236 3022 @$(NORMAL_INSTALL) 3237 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" 3238 @list='$(dist_man1_MANS)'; test -n "$(man1dir)" || exit 0; \ 3239 { for i in $$list; do echo "$$i"; done; \ 3023 @list1='$(dist_man1_MANS)'; \ 3024 list2=''; \ 3025 test -n "$(man1dir)" \ 3026 && test -n "`echo $$list1$$list2`" \ 3027 || exit 0; \ 3028 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ 3029 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ 3030 { for i in $$list1; do echo "$$i"; done; \ 3031 if test -n "$$list2"; then \ 3032 for i in $$list2; do echo "$$i"; done \ 3033 | sed -n '/\.1[a-z]*$$/p'; \ 3034 fi; \ 3240 3035 } | while read p; do \ 3241 3036 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ … … 3267 3062 install-libDim___laHEADERS: $(libDim___la_HEADERS) 3268 3063 @$(NORMAL_INSTALL) 3269 test -z "$(libDim___ladir)" || $(MKDIR_P) "$(DESTDIR)$(libDim___ladir)"3270 3064 @list='$(libDim___la_HEADERS)'; test -n "$(libDim___ladir)" || list=; \ 3065 if test -n "$$list"; then \ 3066 echo " $(MKDIR_P) '$(DESTDIR)$(libDim___ladir)'"; \ 3067 $(MKDIR_P) "$(DESTDIR)$(libDim___ladir)" || exit 1; \ 3068 fi; \ 3271 3069 for p in $$list; do \ 3272 3070 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ … … 3285 3083 install-libDim_laHEADERS: $(libDim_la_HEADERS) 3286 3084 @$(NORMAL_INSTALL) 3287 test -z "$(libDim_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libDim_ladir)"3288 3085 @list='$(libDim_la_HEADERS)'; test -n "$(libDim_ladir)" || list=; \ 3086 if test -n "$$list"; then \ 3087 echo " $(MKDIR_P) '$(DESTDIR)$(libDim_ladir)'"; \ 3088 $(MKDIR_P) "$(DESTDIR)$(libDim_ladir)" || exit 1; \ 3089 fi; \ 3289 3090 for p in $$list; do \ 3290 3091 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ … … 3302 3103 dir='$(DESTDIR)$(libDim_ladir)'; $(am__uninstall_files_from_dir) 3303 3104 3304 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 3305 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 3306 unique=`for i in $$list; do \ 3307 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 3308 done | \ 3309 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 3310 END { if (nonempty) { for (i in files) print i; }; }'`; \ 3311 mkid -fID $$unique 3312 tags: TAGS 3313 3314 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 3315 $(TAGS_FILES) $(LISP) 3105 ID: $(am__tagged_files) 3106 $(am__define_uniq_tagged_files); mkid -fID $$unique 3107 tags: tags-am 3108 TAGS: tags 3109 3110 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) 3316 3111 set x; \ 3317 3112 here=`pwd`; \ 3318 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 3319 unique=`for i in $$list; do \ 3320 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 3321 done | \ 3322 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 3323 END { if (nonempty) { for (i in files) print i; }; }'`; \ 3113 $(am__define_uniq_tagged_files); \ 3324 3114 shift; \ 3325 3115 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ … … 3333 3123 fi; \ 3334 3124 fi 3335 ctags: CTAGS 3336 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 3337 $(TAGS_FILES) $(LISP) 3338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 3339 unique=`for i in $$list; do \ 3340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 3341 done | \ 3342 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 3343 END { if (nonempty) { for (i in files) print i; }; }'`; \ 3125 ctags: ctags-am 3126 3127 CTAGS: ctags 3128 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) 3129 $(am__define_uniq_tagged_files); \ 3344 3130 test -z "$(CTAGS_ARGS)$$unique" \ 3345 3131 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ … … 3350 3136 && $(am__cd) $(top_srcdir) \ 3351 3137 && gtags -i $(GTAGS_ARGS) "$$here" 3138 cscope: cscope.files 3139 test ! -s cscope.files \ 3140 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) 3141 clean-cscope: 3142 -rm -f cscope.files 3143 cscope.files: clean-cscope cscopelist 3144 cscopelist: cscopelist-am 3145 3146 cscopelist-am: $(am__tagged_files) 3147 list='$(am__tagged_files)'; \ 3148 case "$(srcdir)" in \ 3149 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ 3150 *) sdir=$(subdir)/$(srcdir) ;; \ 3151 esac; \ 3152 for i in $$list; do \ 3153 if test -f "$$i"; then \ 3154 echo "$(subdir)/$$i"; \ 3155 else \ 3156 echo "$$sdir/$$i"; \ 3157 fi; \ 3158 done >> $(top_builddir)/cscope.files 3352 3159 3353 3160 distclean-tags: 3354 3161 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 3162 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files 3355 3163 3356 3164 distdir: $(DISTFILES) 3357 @list='$(MANS)'; if test -n "$$list"; then \3358 list=`for p in $$list; do \3359 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \3360 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \3361 if test -n "$$list" && \3362 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \3363 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \3364 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \3365 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \3366 echo " typically \`make maintainer-clean' will remove them" >&2; \3367 exit 1; \3368 else :; fi; \3369 else :; fi3370 3165 $(am__remove_distdir) 3371 3166 test -d "$(distdir)" || mkdir "$(distdir)" … … 3408 3203 dist-gzip: distdir 3409 3204 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 3410 $(am__ remove_distdir)3205 $(am__post_remove_distdir) 3411 3206 3412 3207 dist-bzip2: distdir 3413 3208 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 3414 $(am__ remove_distdir)3209 $(am__post_remove_distdir) 3415 3210 3416 3211 dist-lzip: distdir 3417 3212 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz 3418 $(am__remove_distdir) 3419 3420 dist-lzma: distdir 3421 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma 3422 $(am__remove_distdir) 3213 $(am__post_remove_distdir) 3423 3214 3424 3215 dist-xz: distdir 3425 3216 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz 3426 $(am__ remove_distdir)3217 $(am__post_remove_distdir) 3427 3218 3428 3219 dist-tarZ: distdir 3220 @echo WARNING: "Support for distribution archives compressed with" \ 3221 "legacy program 'compress' is deprecated." >&2 3222 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 3429 3223 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z 3430 $(am__ remove_distdir)3224 $(am__post_remove_distdir) 3431 3225 3432 3226 dist-shar: distdir 3227 @echo WARNING: "Support for shar distribution archives is" \ 3228 "deprecated." >&2 3229 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 3433 3230 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz 3434 $(am__ remove_distdir)3231 $(am__post_remove_distdir) 3435 3232 3436 3233 dist-zip: distdir 3437 3234 -rm -f $(distdir).zip 3438 3235 zip -rq $(distdir).zip $(distdir) 3439 $(am__ remove_distdir)3440 3441 dist dist-all: distdir3442 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz3443 $(am__ remove_distdir)3236 $(am__post_remove_distdir) 3237 3238 dist dist-all: 3239 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' 3240 $(am__post_remove_distdir) 3444 3241 3445 3242 # This target untars the dist file and tries a VPATH configuration. Then … … 3452 3249 *.tar.bz2*) \ 3453 3250 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ 3454 *.tar.lzma*) \3455 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\3456 3251 *.tar.lz*) \ 3457 3252 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ … … 3465 3260 unzip $(distdir).zip ;;\ 3466 3261 esac 3467 chmod -R a-w $(distdir) ; chmod a+w $(distdir)3468 mkdir $(distdir)/_build3469 mkdir $(distdir)/_ inst3262 chmod -R a-w $(distdir) 3263 chmod u+w $(distdir) 3264 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst 3470 3265 chmod a-w $(distdir) 3471 3266 test -d $(distdir)/_build || exit 0; \ … … 3473 3268 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ 3474 3269 && am__cwd=`pwd` \ 3475 && $(am__cd) $(distdir)/_build \3476 && ../ configure --srcdir=.. --prefix="$$dc_install_base"\3270 && $(am__cd) $(distdir)/_build/sub \ 3271 && ../../configure \ 3477 3272 $(AM_DISTCHECK_CONFIGURE_FLAGS) \ 3478 3273 $(DISTCHECK_CONFIGURE_FLAGS) \ 3274 --srcdir=../.. --prefix="$$dc_install_base" \ 3479 3275 && $(MAKE) $(AM_MAKEFLAGS) \ 3480 3276 && $(MAKE) $(AM_MAKEFLAGS) dvi \ … … 3499 3295 && cd "$$am__cwd" \ 3500 3296 || exit 1 3501 $(am__ remove_distdir)3297 $(am__post_remove_distdir) 3502 3298 @(echo "$(distdir) archives ready for distribution: "; \ 3503 3299 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ … … 3670 3466 .MAKE: all check install install-am install-strip 3671 3467 3672 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ 3673 clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ 3674 clean-libtool ctags dist dist-all dist-bzip2 dist-gzip \ 3675 dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ 3676 distcheck distclean distclean-compile distclean-generic \ 3677 distclean-libtool distclean-tags distcleancheck distdir \ 3678 distuninstallcheck dvi dvi-am html html-am info info-am \ 3679 install install-am install-binPROGRAMS install-data \ 3680 install-data-am install-dvi install-dvi-am install-exec \ 3681 install-exec-am install-html install-html-am install-info \ 3682 install-info-am install-libDim___laHEADERS \ 3683 install-libDim_laHEADERS install-libLTLIBRARIES install-man \ 3684 install-man1 install-pdf install-pdf-am install-ps \ 3685 install-ps-am install-strip installcheck installcheck-am \ 3686 installcheck-binPROGRAMS installdirs maintainer-clean \ 3687 maintainer-clean-generic mostlyclean mostlyclean-compile \ 3688 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 3689 tags uninstall uninstall-am uninstall-binPROGRAMS \ 3468 .PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \ 3469 clean-binPROGRAMS clean-cscope clean-generic \ 3470 clean-libLTLIBRARIES clean-libtool cscope cscopelist-am ctags \ 3471 ctags-am dist dist-all dist-bzip2 dist-gzip dist-lzip \ 3472 dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \ 3473 distclean-compile distclean-generic distclean-libtool \ 3474 distclean-tags distcleancheck distdir distuninstallcheck dvi \ 3475 dvi-am html html-am info info-am install install-am \ 3476 install-binPROGRAMS install-data install-data-am install-dvi \ 3477 install-dvi-am install-exec install-exec-am install-html \ 3478 install-html-am install-info install-info-am \ 3479 install-libDim___laHEADERS install-libDim_laHEADERS \ 3480 install-libLTLIBRARIES install-man install-man1 install-pdf \ 3481 install-pdf-am install-ps install-ps-am install-strip \ 3482 installcheck installcheck-am installcheck-binPROGRAMS \ 3483 installdirs maintainer-clean maintainer-clean-generic \ 3484 mostlyclean mostlyclean-compile mostlyclean-generic \ 3485 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ 3486 uninstall-am uninstall-binPROGRAMS \ 3690 3487 uninstall-libDim___laHEADERS uninstall-libDim_laHEADERS \ 3691 3488 uninstall-libLTLIBRARIES uninstall-man uninstall-man1 3489 3490 .PRECIOUS: Makefile 3692 3491 3693 3492 -
trunk/FACT++/aclocal.m4
r17177 r18603 1 # generated automatically by aclocal 1.11.3 -*- Autoconf -*- 2 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, 5 # Inc. 1 # generated automatically by aclocal 1.15 -*- Autoconf -*- 2 3 # Copyright (C) 1996-2014 Free Software Foundation, Inc. 4 6 5 # This file is free software; the Free Software Foundation 7 6 # gives unlimited permission to copy and/or distribute it, … … 13 12 # PARTICULAR PURPOSE. 14 13 14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15 15 m4_ifndef([AC_AUTOCONF_VERSION], 16 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.6 8],,18 [m4_warning([this file was generated for autoconf 2.6 8.17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18 [m4_warning([this file was generated for autoconf 2.69. 19 19 You have another version of autoconf. It may work, but is not guaranteed to. 20 20 If you have problems, you may need to regenerate the build system entirely. 21 To do so, use the procedure documented by the package, typically `autoreconf'.])])21 To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 22 23 23 # =========================================================================== … … 53 53 # warranty. 54 54 55 #serial 1 355 #serial 16 56 56 57 57 AC_DEFUN([AX_BOOST_ASIO], … … 105 105 AC_DEFINE(HAVE_BOOST_ASIO,,[define if the Boost::ASIO library is available]) 106 106 BN=boost_system 107 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` 107 108 if test "x$ax_boost_user_asio_lib" = "x"; then 108 for ax_lib in $BN $BN-$CC $BN-$CC-mt $BN-$CC-mt-s $BN-$CC-s \ 109 lib$BN lib$BN-$CC lib$BN-$CC-mt lib$BN-$CC-mt-s lib$BN-$CC-s \ 110 $BN-mgw $BN-mgw $BN-mgw-mt $BN-mgw-mt-s $BN-mgw-s ; do 109 for ax_lib in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.dylib* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_system.*\)\.a.*$;\1;' ` ; do 111 110 AC_CHECK_LIB($ax_lib, main, [BOOST_ASIO_LIB="-l$ax_lib" AC_SUBST(BOOST_ASIO_LIB) link_thread="yes" break], 112 111 [link_thread="no"]) … … 168 167 # warranty. 169 168 170 #serial 2 0169 #serial 26 171 170 172 171 AC_DEFUN([AX_BOOST_BASE], … … 226 225 libsubdirs="lib" 227 226 ax_arch=`uname -m` 228 if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then 229 libsubdirs="lib64 lib lib64" 230 fi 227 case $ax_arch in 228 x86_64) 229 libsubdirs="lib64 libx32 lib lib64" 230 ;; 231 ppc64|s390x|sparc64|aarch64|ppc64le) 232 libsubdirs="lib64 lib lib64 ppc64le" 233 ;; 234 esac 235 236 dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give 237 dnl them priority over the other paths since, if libs are found there, they 238 dnl are almost assuredly the ones desired. 239 AC_REQUIRE([AC_CANONICAL_HOST]) 240 libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs" 241 242 case ${host_cpu} in 243 i?86) 244 libsubdirs="lib/i386-${host_os} $libsubdirs" 245 ;; 246 esac 231 247 232 248 dnl first we check the system location for boost libraries … … 291 307 dnl built and installed without the --layout=system option or for a staged(not installed) version 292 308 if test "x$succeeded" != "xyes"; then 309 CPPFLAGS="$CPPFLAGS_SAVED" 310 LDFLAGS="$LDFLAGS_SAVED" 311 BOOST_CPPFLAGS= 312 BOOST_LDFLAGS= 293 313 _version=0 294 314 if test "$ac_boost_path" != ""; then … … 303 323 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" 304 324 done 325 dnl if nothing found search for layout used in Windows distributions 326 if test -z "$BOOST_CPPFLAGS"; then 327 if test -d "$ac_boost_path/boost" && test -r "$ac_boost_path/boost"; then 328 BOOST_CPPFLAGS="-I$ac_boost_path" 329 fi 330 fi 305 331 fi 306 332 else … … 424 450 # warranty. 425 451 426 #serial 19452 #serial 21 427 453 428 454 AC_DEFUN([AX_BOOST_DATE_TIME], … … 470 496 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` 471 497 if test "x$ax_boost_user_date_time_lib" = "x"; then 472 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*. a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do498 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.dylib* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do 473 499 ax_lib=${libextension} 474 500 AC_CHECK_LIB($ax_lib, exit, … … 477 503 done 478 504 if test "x$link_date_time" != "xyes"; then 479 for libextension in `ls $BOOSTLIBDIR/boost_date_time*. {dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a*$;\1;'` ; do505 for libextension in `ls $BOOSTLIBDIR/boost_date_time*.dll* $BOOSTLIBDIR/boost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a.*$;\1;'` ; do 480 506 ax_lib=${libextension} 481 507 AC_CHECK_LIB($ax_lib, exit, … … 539 565 # warranty. 540 566 541 #serial 2 2567 #serial 26 542 568 543 569 AC_DEFUN([AX_BOOST_FILESYSTEM], … … 589 615 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` 590 616 if test "x$ax_boost_user_filesystem_lib" = "x"; then 591 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do617 for libextension in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do 592 618 ax_lib=${libextension} 593 619 AC_CHECK_LIB($ax_lib, exit, … … 596 622 done 597 623 if test "x$link_filesystem" != "xyes"; then 598 for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do624 for libextension in `ls -r $BOOSTLIBDIR/boost_filesystem* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do 599 625 ax_lib=${libextension} 600 626 AC_CHECK_LIB($ax_lib, exit, … … 656 682 # warranty. 657 683 658 #serial 2 0684 #serial 24 659 685 660 686 AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS], … … 690 716 ax_cv_boost_program_options, 691 717 [AC_LANG_PUSH(C++) 692 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options .hpp>718 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options/errors.hpp> 693 719 ]], 694 [[boost::program_options:: options_description generic("Generic options");720 [[boost::program_options::error err("Error message"); 695 721 return 0;]])], 696 722 ax_cv_boost_program_options=yes, ax_cv_boost_program_options=no) … … 701 727 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` 702 728 if test "x$ax_boost_user_program_options_lib" = "x"; then 703 for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*. a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do729 for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.dylib* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.dylib.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a.*$;\1;'` ; do 704 730 ax_lib=${libextension} 705 731 AC_CHECK_LIB($ax_lib, exit, … … 708 734 done 709 735 if test "x$link_program_options" != "xyes"; then 710 for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a *$;\1;'` ; do736 for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a.*$;\1;'` ; do 711 737 ax_lib=${libextension} 712 738 AC_CHECK_LIB($ax_lib, exit, … … 766 792 # warranty. 767 793 768 #serial 2 0794 #serial 22 769 795 770 796 AC_DEFUN([AX_BOOST_REGEX], … … 811 837 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` 812 838 if test "x$ax_boost_user_regex_lib" = "x"; then 813 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*. a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do839 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.dylib* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.dylib.*;\1;' -e 's;^lib\(boost_regex.*\)\.a.*$;\1;'` ; do 814 840 ax_lib=${libextension} 815 841 AC_CHECK_LIB($ax_lib, exit, … … 818 844 done 819 845 if test "x$link_regex" != "xyes"; then 820 for libextension in `ls $BOOSTLIBDIR/boost_regex*. {dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do846 for libextension in `ls $BOOSTLIBDIR/boost_regex*.dll* $BOOSTLIBDIR/boost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a.*$;\1;'` ; do 821 847 ax_lib=${libextension} 822 848 AC_CHECK_LIB($ax_lib, exit, … … 879 905 # warranty. 880 906 881 #serial 1 4907 #serial 17 882 908 883 909 AC_DEFUN([AX_BOOST_SYSTEM], … … 931 957 LDFLAGS_SAVE=$LDFLAGS 932 958 if test "x$ax_boost_user_system_lib" = "x"; then 933 for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do959 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do 934 960 ax_lib=${libextension} 935 961 AC_CHECK_LIB($ax_lib, exit, … … 938 964 done 939 965 if test "x$link_system" != "xyes"; then 940 for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do966 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do 941 967 ax_lib=${libextension} 942 968 AC_CHECK_LIB($ax_lib, exit, … … 999 1025 # warranty. 1000 1026 1001 #serial 2 31027 #serial 27 1002 1028 1003 1029 AC_DEFUN([AX_BOOST_THREAD], … … 1073 1099 esac 1074 1100 if test "x$ax_boost_user_thread_lib" = "x"; then 1075 for libextension in `ls $BOOSTLIBDIR/libboost_thread*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.a*$;\1;'`; do1101 for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do 1076 1102 ax_lib=${libextension} 1077 1103 AC_CHECK_LIB($ax_lib, exit, … … 1080 1106 done 1081 1107 if test "x$link_thread" != "xyes"; then 1082 for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'`; do1108 for libextension in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed 's,\..*,,'`; do 1083 1109 ax_lib=${libextension} 1084 1110 AC_CHECK_LIB($ax_lib, exit, … … 1346 1372 # rm -rf @DX_DOCDIR@ 1347 1373 # $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG) 1374 # echo Timestamp >$@ 1348 1375 # 1349 1376 # DX_CLEANFILES = \ … … 1373 1400 # warranty. 1374 1401 1375 #serial 1 21402 #serial 13 1376 1403 1377 1404 … … 1725 1752 # exception to the GPL to apply to your modified version as well. 1726 1753 1727 #serial 161754 #serial 21 1728 1755 1729 1756 AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) … … 1746 1773 LIBS="$PTHREAD_LIBS $LIBS" 1747 1774 AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) 1748 AC_TRY_LINK_FUNC( pthread_join, ax_pthread_ok=yes)1749 AC_MSG_RESULT( $ax_pthread_ok)1775 AC_TRY_LINK_FUNC([pthread_join], [ax_pthread_ok=yes]) 1776 AC_MSG_RESULT([$ax_pthread_ok]) 1750 1777 if test x"$ax_pthread_ok" = xno; then 1751 1778 PTHREAD_LIBS="" … … 1788 1815 # pthread-config: use pthread-config program (for GNU Pth library) 1789 1816 1790 case "${host_cpu}-${host_os}"in1791 *solaris*)1817 case ${host_os} in 1818 solaris*) 1792 1819 1793 1820 # On Solaris (at least, for some versions), libc contains stubbed … … 1802 1829 ;; 1803 1830 1804 *-darwin*)1831 darwin*) 1805 1832 ax_pthread_flags="-pthread $ax_pthread_flags" 1806 1833 ;; 1807 1834 esac 1835 1836 # Clang doesn't consider unrecognized options an error unless we specify 1837 # -Werror. We throw in some extra Clang-specific options to ensure that 1838 # this doesn't happen for GCC, which also accepts -Werror. 1839 1840 AC_MSG_CHECKING([if compiler needs -Werror to reject unknown flags]) 1841 save_CFLAGS="$CFLAGS" 1842 ax_pthread_extra_flags="-Werror" 1843 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 1844 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int foo(void);],[foo()])], 1845 [AC_MSG_RESULT([yes])], 1846 [ax_pthread_extra_flags= 1847 AC_MSG_RESULT([no])]) 1848 CFLAGS="$save_CFLAGS" 1808 1849 1809 1850 if test x"$ax_pthread_ok" = xno; then … … 1821 1862 1822 1863 pthread-config) 1823 AC_CHECK_PROG( ax_pthread_config, pthread-config, yes, no)1864 AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no]) 1824 1865 if test x"$ax_pthread_config" = xno; then continue; fi 1825 1866 PTHREAD_CFLAGS="`pthread-config --cflags`" … … 1836 1877 save_CFLAGS="$CFLAGS" 1837 1878 LIBS="$PTHREAD_LIBS $LIBS" 1838 CFLAGS="$CFLAGS $PTHREAD_CFLAGS "1879 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 1839 1880 1840 1881 # Check for various functions. We must include pthread.h, … … 1862 1903 CFLAGS="$save_CFLAGS" 1863 1904 1864 AC_MSG_RESULT( $ax_pthread_ok)1905 AC_MSG_RESULT([$ax_pthread_ok]) 1865 1906 if test "x$ax_pthread_ok" = xyes; then 1866 1907 break; … … 1888 1929 []) 1889 1930 done 1890 AC_MSG_RESULT( $attr_name)1931 AC_MSG_RESULT([$attr_name]) 1891 1932 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 1892 AC_DEFINE_UNQUOTED( PTHREAD_CREATE_JOINABLE, $attr_name,1933 AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE], [$attr_name], 1893 1934 [Define to necessary symbol if this constant 1894 1935 uses a non-standard name on your system.]) … … 1897 1938 AC_MSG_CHECKING([if more special flags are required for pthreads]) 1898 1939 flag=no 1899 case "${host_cpu}-${host_os}" in 1900 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 1901 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 1940 case ${host_os} in 1941 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 1942 osf* | hpux*) flag="-D_REENTRANT";; 1943 solaris*) 1944 if test "$GCC" = "yes"; then 1945 flag="-D_REENTRANT" 1946 else 1947 # TODO: What about Clang on Solaris? 1948 flag="-mt -D_REENTRANT" 1949 fi 1950 ;; 1902 1951 esac 1903 AC_MSG_RESULT( ${flag})1952 AC_MSG_RESULT([$flag]) 1904 1953 if test "x$flag" != xno; then 1905 1954 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" … … 1907 1956 1908 1957 AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT], 1909 ax_cv_PTHREAD_PRIO_INHERIT, [1910 AC_LINK_IFELSE([ 1911 AC_LANG_PROGRAM([[#include <pthread.h>]],[[int i = PTHREAD_PRIO_INHERIT;]])],1958 [ax_cv_PTHREAD_PRIO_INHERIT], [ 1959 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]], 1960 [[int i = PTHREAD_PRIO_INHERIT;]])], 1912 1961 [ax_cv_PTHREAD_PRIO_INHERIT=yes], 1913 1962 [ax_cv_PTHREAD_PRIO_INHERIT=no]) 1914 1963 ]) 1915 1964 AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"], 1916 AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have PTHREAD_PRIO_INHERIT.]))1965 [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])]) 1917 1966 1918 1967 LIBS="$save_LIBS" 1919 1968 CFLAGS="$save_CFLAGS" 1920 1969 1921 # More AIX lossage: must compile with xlc_r or cc_r 1922 if test x"$GCC" != xyes; then 1923 AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) 1924 else 1925 PTHREAD_CC=$CC 1970 # More AIX lossage: compile with *_r variant 1971 if test "x$GCC" != xyes; then 1972 case $host_os in 1973 aix*) 1974 AS_CASE(["x/$CC"], 1975 [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6], 1976 [#handle absolute path differently from PATH based program lookup 1977 AS_CASE(["x$CC"], 1978 [x/*], 1979 [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])], 1980 [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])]) 1981 ;; 1982 esac 1926 1983 fi 1927 else1928 PTHREAD_CC="$CC"1929 1984 fi 1930 1985 1931 AC_SUBST(PTHREAD_LIBS) 1932 AC_SUBST(PTHREAD_CFLAGS) 1933 AC_SUBST(PTHREAD_CC) 1986 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 1987 1988 AC_SUBST([PTHREAD_LIBS]) 1989 AC_SUBST([PTHREAD_CFLAGS]) 1990 AC_SUBST([PTHREAD_CC]) 1934 1991 1935 1992 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 1936 1993 if test x"$ax_pthread_ok" = xyes; then 1937 ifelse([$1],, AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])1994 ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1]) 1938 1995 : 1939 1996 else … … 1944 2001 ])dnl AX_PTHREAD 1945 2002 1946 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 1947 # serial 1 (pkg-config-0.24) 1948 # 1949 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 1950 # 1951 # This program is free software; you can redistribute it and/or modify 1952 # it under the terms of the GNU General Public License as published by 1953 # the Free Software Foundation; either version 2 of the License, or 1954 # (at your option) any later version. 1955 # 1956 # This program is distributed in the hope that it will be useful, but 1957 # WITHOUT ANY WARRANTY; without even the implied warranty of 1958 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1959 # General Public License for more details. 1960 # 1961 # You should have received a copy of the GNU General Public License 1962 # along with this program; if not, write to the Free Software 1963 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 1964 # 1965 # As a special exception to the GNU General Public License, if you 1966 # distribute this file as part of a program that contains a 1967 # configuration script generated by Autoconf, you may include it under 1968 # the same distribution terms that you use for the rest of that program. 1969 1970 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 1971 # ---------------------------------- 2003 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 2004 dnl serial 11 (pkg-config-0.29.1) 2005 dnl 2006 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 2007 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 2008 dnl 2009 dnl This program is free software; you can redistribute it and/or modify 2010 dnl it under the terms of the GNU General Public License as published by 2011 dnl the Free Software Foundation; either version 2 of the License, or 2012 dnl (at your option) any later version. 2013 dnl 2014 dnl This program is distributed in the hope that it will be useful, but 2015 dnl WITHOUT ANY WARRANTY; without even the implied warranty of 2016 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2017 dnl General Public License for more details. 2018 dnl 2019 dnl You should have received a copy of the GNU General Public License 2020 dnl along with this program; if not, write to the Free Software 2021 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 2022 dnl 02111-1307, USA. 2023 dnl 2024 dnl As a special exception to the GNU General Public License, if you 2025 dnl distribute this file as part of a program that contains a 2026 dnl configuration script generated by Autoconf, you may include it under 2027 dnl the same distribution terms that you use for the rest of that 2028 dnl program. 2029 2030 dnl PKG_PREREQ(MIN-VERSION) 2031 dnl ----------------------- 2032 dnl Since: 0.29 2033 dnl 2034 dnl Verify that the version of the pkg-config macros are at least 2035 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's 2036 dnl installed version of pkg-config, this checks the developer's version 2037 dnl of pkg.m4 when generating configure. 2038 dnl 2039 dnl To ensure that this macro is defined, also add: 2040 dnl m4_ifndef([PKG_PREREQ], 2041 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) 2042 dnl 2043 dnl See the "Since" comment for each macro you use to see what version 2044 dnl of the macros you require. 2045 m4_defun([PKG_PREREQ], 2046 [m4_define([PKG_MACROS_VERSION], [0.29.1]) 2047 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 2048 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 2049 ])dnl PKG_PREREQ 2050 2051 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) 2052 dnl ---------------------------------- 2053 dnl Since: 0.16 2054 dnl 2055 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to 2056 dnl first found in the path. Checks that the version of pkg-config found 2057 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is 2058 dnl used since that's the first version where most current features of 2059 dnl pkg-config existed. 1972 2060 AC_DEFUN([PKG_PROG_PKG_CONFIG], 1973 2061 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) … … 1991 2079 fi 1992 2080 fi[]dnl 1993 ])# PKG_PROG_PKG_CONFIG 1994 1995 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 1996 # 1997 # Check to see whether a particular set of modules exists. Similar 1998 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 1999 # 2000 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2001 # only at the first occurence in configure.ac, so if the first place 2002 # it's called might be skipped (such as if it is within an "if", you 2003 # have to call PKG_CHECK_EXISTS manually 2004 # -------------------------------------------------------------- 2081 ])dnl PKG_PROG_PKG_CONFIG 2082 2083 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2084 dnl ------------------------------------------------------------------- 2085 dnl Since: 0.18 2086 dnl 2087 dnl Check to see whether a particular set of modules exists. Similar to 2088 dnl PKG_CHECK_MODULES(), but does not set variables or print errors. 2089 dnl 2090 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2091 dnl only at the first occurence in configure.ac, so if the first place 2092 dnl it's called might be skipped (such as if it is within an "if", you 2093 dnl have to call PKG_CHECK_EXISTS manually 2005 2094 AC_DEFUN([PKG_CHECK_EXISTS], 2006 2095 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl … … 2012 2101 fi]) 2013 2102 2014 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 2015 # --------------------------------------------- 2103 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 2104 dnl --------------------------------------------- 2105 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting 2106 dnl pkg_failed based on the result. 2016 2107 m4_define([_PKG_CONFIG], 2017 2108 [if test -n "$$1"; then … … 2025 2116 pkg_failed=untried 2026 2117 fi[]dnl 2027 ])# _PKG_CONFIG 2028 2029 # _PKG_SHORT_ERRORS_SUPPORTED 2030 # ----------------------------- 2118 ])dnl _PKG_CONFIG 2119 2120 dnl _PKG_SHORT_ERRORS_SUPPORTED 2121 dnl --------------------------- 2122 dnl Internal check to see if pkg-config supports short errors. 2031 2123 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 2032 2124 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) … … 2036 2128 _pkg_short_errors_supported=no 2037 2129 fi[]dnl 2038 ])# _PKG_SHORT_ERRORS_SUPPORTED 2039 2040 2041 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2042 # [ACTION-IF-NOT-FOUND]) 2043 # 2044 # 2045 # Note that if there is a possibility the first call to 2046 # PKG_CHECK_MODULES might not happen, you should be sure to include an 2047 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 2048 # 2049 # 2050 # -------------------------------------------------------------- 2130 ])dnl _PKG_SHORT_ERRORS_SUPPORTED 2131 2132 2133 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2134 dnl [ACTION-IF-NOT-FOUND]) 2135 dnl -------------------------------------------------------------- 2136 dnl Since: 0.4.0 2137 dnl 2138 dnl Note that if there is a possibility the first call to 2139 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an 2140 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 2051 2141 AC_DEFUN([PKG_CHECK_MODULES], 2052 2142 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl … … 2102 2192 $3 2103 2193 fi[]dnl 2104 ])# PKG_CHECK_MODULES 2105 2106 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software 2107 # Foundation, Inc. 2194 ])dnl PKG_CHECK_MODULES 2195 2196 2197 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2198 dnl [ACTION-IF-NOT-FOUND]) 2199 dnl --------------------------------------------------------------------- 2200 dnl Since: 0.29 2201 dnl 2202 dnl Checks for existence of MODULES and gathers its build flags with 2203 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags 2204 dnl and VARIABLE-PREFIX_LIBS from --libs. 2205 dnl 2206 dnl Note that if there is a possibility the first call to 2207 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to 2208 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your 2209 dnl configure.ac. 2210 AC_DEFUN([PKG_CHECK_MODULES_STATIC], 2211 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2212 _save_PKG_CONFIG=$PKG_CONFIG 2213 PKG_CONFIG="$PKG_CONFIG --static" 2214 PKG_CHECK_MODULES($@) 2215 PKG_CONFIG=$_save_PKG_CONFIG[]dnl 2216 ])dnl PKG_CHECK_MODULES_STATIC 2217 2218 2219 dnl PKG_INSTALLDIR([DIRECTORY]) 2220 dnl ------------------------- 2221 dnl Since: 0.27 2222 dnl 2223 dnl Substitutes the variable pkgconfigdir as the location where a module 2224 dnl should install pkg-config .pc files. By default the directory is 2225 dnl $libdir/pkgconfig, but the default can be changed by passing 2226 dnl DIRECTORY. The user can override through the --with-pkgconfigdir 2227 dnl parameter. 2228 AC_DEFUN([PKG_INSTALLDIR], 2229 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 2230 m4_pushdef([pkg_description], 2231 [pkg-config installation directory @<:@]pkg_default[@:>@]) 2232 AC_ARG_WITH([pkgconfigdir], 2233 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 2234 [with_pkgconfigdir=]pkg_default) 2235 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 2236 m4_popdef([pkg_default]) 2237 m4_popdef([pkg_description]) 2238 ])dnl PKG_INSTALLDIR 2239 2240 2241 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) 2242 dnl -------------------------------- 2243 dnl Since: 0.27 2244 dnl 2245 dnl Substitutes the variable noarch_pkgconfigdir as the location where a 2246 dnl module should install arch-independent pkg-config .pc files. By 2247 dnl default the directory is $datadir/pkgconfig, but the default can be 2248 dnl changed by passing DIRECTORY. The user can override through the 2249 dnl --with-noarch-pkgconfigdir parameter. 2250 AC_DEFUN([PKG_NOARCH_INSTALLDIR], 2251 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 2252 m4_pushdef([pkg_description], 2253 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 2254 AC_ARG_WITH([noarch-pkgconfigdir], 2255 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 2256 [with_noarch_pkgconfigdir=]pkg_default) 2257 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 2258 m4_popdef([pkg_default]) 2259 m4_popdef([pkg_description]) 2260 ])dnl PKG_NOARCH_INSTALLDIR 2261 2262 2263 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 2264 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2265 dnl ------------------------------------------- 2266 dnl Since: 0.28 2267 dnl 2268 dnl Retrieves the value of the pkg-config variable for the given module. 2269 AC_DEFUN([PKG_CHECK_VAR], 2270 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2271 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 2272 2273 _PKG_CONFIG([$1], [variable="][$3]["], [$2]) 2274 AS_VAR_COPY([$1], [pkg_cv_][$1]) 2275 2276 AS_VAR_IF([$1], [""], [$5], [$4])dnl 2277 ])dnl PKG_CHECK_VAR 2278 2279 # Copyright (C) 2002-2014 Free Software Foundation, Inc. 2108 2280 # 2109 2281 # This file is free software; the Free Software Foundation 2110 2282 # gives unlimited permission to copy and/or distribute it, 2111 2283 # with or without modifications, as long as this notice is preserved. 2112 2113 # serial 12114 2284 2115 2285 # AM_AUTOMAKE_VERSION(VERSION) … … 2119 2289 # (This private macro should not be called outside this file.) 2120 2290 AC_DEFUN([AM_AUTOMAKE_VERSION], 2121 [am__api_version='1.1 1'2291 [am__api_version='1.15' 2122 2292 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 2123 2293 dnl require some minimum version. Point them to the right macro. 2124 m4_if([$1], [1.1 1.3], [],2294 m4_if([$1], [1.15], [], 2125 2295 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 2126 2296 ]) … … 2138 2308 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 2139 2309 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 2140 [AM_AUTOMAKE_VERSION([1.1 1.3])dnl2310 [AM_AUTOMAKE_VERSION([1.15])dnl 2141 2311 m4_ifndef([AC_AUTOCONF_VERSION], 2142 2312 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 2143 2313 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 2144 2314 2145 # AM_AUX_DIR_EXPAND -*- Autoconf -*- 2146 2147 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 2315 # Copyright (C) 2011-2014 Free Software Foundation, Inc. 2148 2316 # 2149 2317 # This file is free software; the Free Software Foundation … … 2151 2319 # with or without modifications, as long as this notice is preserved. 2152 2320 2153 # serial 1 2321 # AM_PROG_AR([ACT-IF-FAIL]) 2322 # ------------------------- 2323 # Try to determine the archiver interface, and trigger the ar-lib wrapper 2324 # if it is needed. If the detection of archiver interface fails, run 2325 # ACT-IF-FAIL (default is to abort configure with a proper error message). 2326 AC_DEFUN([AM_PROG_AR], 2327 [AC_BEFORE([$0], [LT_INIT])dnl 2328 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl 2329 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 2330 AC_REQUIRE_AUX_FILE([ar-lib])dnl 2331 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) 2332 : ${AR=ar} 2333 2334 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface], 2335 [AC_LANG_PUSH([C]) 2336 am_cv_ar_interface=ar 2337 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])], 2338 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD' 2339 AC_TRY_EVAL([am_ar_try]) 2340 if test "$ac_status" -eq 0; then 2341 am_cv_ar_interface=ar 2342 else 2343 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD' 2344 AC_TRY_EVAL([am_ar_try]) 2345 if test "$ac_status" -eq 0; then 2346 am_cv_ar_interface=lib 2347 else 2348 am_cv_ar_interface=unknown 2349 fi 2350 fi 2351 rm -f conftest.lib libconftest.a 2352 ]) 2353 AC_LANG_POP([C])]) 2354 2355 case $am_cv_ar_interface in 2356 ar) 2357 ;; 2358 lib) 2359 # Microsoft lib, so override with the ar-lib wrapper script. 2360 # FIXME: It is wrong to rewrite AR. 2361 # But if we don't then we get into trouble of one sort or another. 2362 # A longer-term fix would be to have automake use am__AR in this case, 2363 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 2364 # similar. 2365 AR="$am_aux_dir/ar-lib $AR" 2366 ;; 2367 unknown) 2368 m4_default([$1], 2369 [AC_MSG_ERROR([could not determine $AR interface])]) 2370 ;; 2371 esac 2372 AC_SUBST([AR])dnl 2373 ]) 2374 2375 # AM_AUX_DIR_EXPAND -*- Autoconf -*- 2376 2377 # Copyright (C) 2001-2014 Free Software Foundation, Inc. 2378 # 2379 # This file is free software; the Free Software Foundation 2380 # gives unlimited permission to copy and/or distribute it, 2381 # with or without modifications, as long as this notice is preserved. 2154 2382 2155 2383 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 2156 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to2157 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.2384 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 2385 # '$srcdir', '$srcdir/..', or '$srcdir/../..'. 2158 2386 # 2159 2387 # Of course, Automake must honor this variable whenever it calls a … … 2174 2402 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 2175 2403 # are both prefixed by $srcdir. In an in-source build this is usually 2176 # harmless because $srcdir is `.', but things will broke when you2404 # harmless because $srcdir is '.', but things will broke when you 2177 2405 # start a VPATH build or use an absolute $srcdir. 2178 2406 # … … 2192 2420 2193 2421 AC_DEFUN([AM_AUX_DIR_EXPAND], 2194 [dnl Rely on autoconf to set up CDPATH properly. 2195 AC_PREREQ([2.50])dnl 2196 # expand $ac_aux_dir to an absolute path 2197 am_aux_dir=`cd $ac_aux_dir && pwd` 2422 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 2423 # Expand $ac_aux_dir to an absolute path. 2424 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2198 2425 ]) 2199 2426 2200 2427 # AM_COND_IF -*- Autoconf -*- 2201 2428 2202 # Copyright (C) 2008 , 2010Free Software Foundation, Inc.2429 # Copyright (C) 2008-2014 Free Software Foundation, Inc. 2203 2430 # 2204 2431 # This file is free software; the Free Software Foundation 2205 2432 # gives unlimited permission to copy and/or distribute it, 2206 2433 # with or without modifications, as long as this notice is preserved. 2207 2208 # serial 32209 2434 2210 2435 # _AM_COND_IF … … 2216 2441 m4_define([_AM_COND_ELSE]) 2217 2442 m4_define([_AM_COND_ENDIF]) 2218 2219 2443 2220 2444 # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE]) … … 2240 2464 # AM_CONDITIONAL -*- Autoconf -*- 2241 2465 2242 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 2243 # Free Software Foundation, Inc. 2466 # Copyright (C) 1997-2014 Free Software Foundation, Inc. 2244 2467 # 2245 2468 # This file is free software; the Free Software Foundation 2246 2469 # gives unlimited permission to copy and/or distribute it, 2247 2470 # with or without modifications, as long as this notice is preserved. 2248 2249 # serial 92250 2471 2251 2472 # AM_CONDITIONAL(NAME, SHELL-CONDITION) … … 2253 2474 # Define a conditional. 2254 2475 AC_DEFUN([AM_CONDITIONAL], 2255 [AC_PREREQ( 2.52)dnl2256 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],2257 2476 [AC_PREREQ([2.52])dnl 2477 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 2478 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 2258 2479 AC_SUBST([$1_TRUE])dnl 2259 2480 AC_SUBST([$1_FALSE])dnl … … 2274 2495 fi])]) 2275 2496 2276 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2277 # 2010, 2011 Free Software Foundation, Inc. 2497 # Copyright (C) 1999-2014 Free Software Foundation, Inc. 2278 2498 # 2279 2499 # This file is free software; the Free Software Foundation … … 2281 2501 # with or without modifications, as long as this notice is preserved. 2282 2502 2283 # serial 12 2284 2285 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 2503 2504 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 2286 2505 # written in clear, in which case automake, when reading aclocal.m4, 2287 2506 # will think it sees a *use*, and therefore will trigger all it's … … 2293 2512 # ---------------------- 2294 2513 # See how the compiler implements dependency checking. 2295 # NAME is "CC", "CXX", " GCJ", or "OBJC".2514 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 2296 2515 # We try a few techniques and use that to set a single cache variable. 2297 2516 # … … 2306 2525 AC_REQUIRE([AM_DEP_TRACK])dnl 2307 2526 2308 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 2309 [$1], CXX, [depcc="$CXX" am_compiler_list=], 2310 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 2311 [$1], UPC, [depcc="$UPC" am_compiler_list=], 2312 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 2313 [depcc="$$1" am_compiler_list=]) 2527 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 2528 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 2529 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 2530 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 2531 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 2532 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 2533 [depcc="$$1" am_compiler_list=]) 2314 2534 2315 2535 AC_CACHE_CHECK([dependency style of $depcc], … … 2319 2539 # making bogus files that we don't know about and never remove. For 2320 2540 # instance it was reported that on HP-UX the gcc test will end up 2321 # making a dummy file named `D' -- because `-MD' means `put the output2322 # in D '.2541 # making a dummy file named 'D' -- because '-MD' means "put the output 2542 # in D". 2323 2543 rm -rf conftest.dir 2324 2544 mkdir conftest.dir … … 2360 2580 for i in 1 2 3 4 5 6; do 2361 2581 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2362 # Using `: > sub/conftst$i.h'creates only sub/conftst1.h with2363 # Solaris 8's {/usr,}/bin/sh.2364 touchsub/conftst$i.h2582 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 2583 # Solaris 10 /bin/sh. 2584 echo '/* dummy */' > sub/conftst$i.h 2365 2585 done 2366 2586 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2367 2587 2368 # We check with `-c' and `-o' for the sake of the "dashmstdout"2588 # We check with '-c' and '-o' for the sake of the "dashmstdout" 2369 2589 # mode. It turns out that the SunPro C++ compiler does not properly 2370 # handle `-M -o', and we need to detect this. Also, some Intel2371 # versions had trouble with output in subdirs 2590 # handle '-M -o', and we need to detect this. Also, some Intel 2591 # versions had trouble with output in subdirs. 2372 2592 am__obj=sub/conftest.${OBJEXT-o} 2373 2593 am__minus_obj="-o $am__obj" … … 2378 2598 ;; 2379 2599 nosideeffect) 2380 # after this tag, mechanisms are not by side-effect, so they'll2381 # only be used when explicitly requested 2600 # After this tag, mechanisms are not by side-effect, so they'll 2601 # only be used when explicitly requested. 2382 2602 if test "x$enable_dependency_tracking" = xyes; then 2383 2603 continue … … 2387 2607 ;; 2388 2608 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 2389 # This compiler won't grok `-c -o', but also, the minuso test has2609 # This compiler won't grok '-c -o', but also, the minuso test has 2390 2610 # not run yet. These depmodes are late enough in the game, and 2391 2611 # so weak that their functioning should not be impacted. … … 2435 2655 # ------------- 2436 2656 # Choose a directory name for dependency files. 2437 # This macro is AC_REQUIREd in _AM_DEPENDENCIES 2657 # This macro is AC_REQUIREd in _AM_DEPENDENCIES. 2438 2658 AC_DEFUN([AM_SET_DEPDIR], 2439 2659 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl … … 2445 2665 # ------------ 2446 2666 AC_DEFUN([AM_DEP_TRACK], 2447 [AC_ARG_ENABLE(dependency-tracking, 2448 [ --disable-dependency-tracking speeds up one-time build 2449 --enable-dependency-tracking do not reject slow dependency extractors]) 2667 [AC_ARG_ENABLE([dependency-tracking], [dnl 2668 AS_HELP_STRING( 2669 [--enable-dependency-tracking], 2670 [do not reject slow dependency extractors]) 2671 AS_HELP_STRING( 2672 [--disable-dependency-tracking], 2673 [speeds up one-time build])]) 2450 2674 if test "x$enable_dependency_tracking" != xno; then 2451 2675 am_depcomp="$ac_aux_dir/depcomp" … … 2462 2686 # Generate code to set up dependency tracking. -*- Autoconf -*- 2463 2687 2464 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 2465 # Free Software Foundation, Inc. 2688 # Copyright (C) 1999-2014 Free Software Foundation, Inc. 2466 2689 # 2467 2690 # This file is free software; the Free Software Foundation … … 2469 2692 # with or without modifications, as long as this notice is preserved. 2470 2693 2471 #serial 52472 2694 2473 2695 # _AM_OUTPUT_DEPENDENCY_COMMANDS … … 2475 2697 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 2476 2698 [{ 2477 # Autoconf 2.62quotes --file arguments for eval, but not when files2699 # Older Autoconf quotes --file arguments for eval, but not when files 2478 2700 # are listed without --file. Let's play safe and only enable the eval 2479 2701 # if we detect the quoting. … … 2488 2710 mf=`echo "$mf" | sed -e 's/:.*$//'` 2489 2711 # Check whether this is an Automake generated Makefile or not. 2490 # We used to match only the files named `Makefile.in', but2712 # We used to match only the files named 'Makefile.in', but 2491 2713 # some people rename them; so instead we look at the file content. 2492 2714 # Grep'ing the first line is not enough: some people post-process … … 2500 2722 fi 2501 2723 # Extract the definition of DEPDIR, am__include, and am__quote 2502 # from the Makefile without running `make'.2724 # from the Makefile without running 'make'. 2503 2725 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 2504 2726 test -z "$DEPDIR" && continue 2505 2727 am__include=`sed -n 's/^am__include = //p' < "$mf"` 2506 test -z " am__include" && continue2728 test -z "$am__include" && continue 2507 2729 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 2508 # When using ansi2knr, U may be empty or an underscore; expand it2509 U=`sed -n 's/^U = //p' < "$mf"`2510 2730 # Find all dependency output files, they are included files with 2511 2731 # $(DEPDIR) in their names. We invoke sed twice because it is the … … 2514 2734 for file in `sed -n " 2515 2735 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 2516 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do2736 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 2517 2737 # Make sure the directory exists. 2518 2738 test -f "$dirpart/$file" && continue … … 2532 2752 # 2533 2753 # This code is only required when automatic dependency tracking 2534 # is enabled. FIXME. This creates each `.P' file that we will2754 # is enabled. FIXME. This creates each '.P' file that we will 2535 2755 # need in order to bootstrap the dependency handling code. 2536 2756 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], … … 2542 2762 # Do all the work for Automake. -*- Autoconf -*- 2543 2763 2544 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2545 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 2764 # Copyright (C) 1996-2014 Free Software Foundation, Inc. 2546 2765 # 2547 2766 # This file is free software; the Free Software Foundation … … 2549 2768 # with or without modifications, as long as this notice is preserved. 2550 2769 2551 # serial 162552 2553 2770 # This macro actually does too much. Some checks are only needed if 2554 2771 # your package does certain things. But this isn't really a big deal. 2772 2773 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 2774 m4_define([AC_PROG_CC], 2775 m4_defn([AC_PROG_CC]) 2776 [_AM_PROG_CC_C_O 2777 ]) 2555 2778 2556 2779 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) … … 2566 2789 # release and drop the old call support. 2567 2790 AC_DEFUN([AM_INIT_AUTOMAKE], 2568 [AC_PREREQ([2.6 2])dnl2791 [AC_PREREQ([2.65])dnl 2569 2792 dnl Autoconf wants to disallow AM_ names. We explicitly allow 2570 2793 dnl the ones we care about. … … 2595 2818 dnl Distinguish between old-style and new-style calls. 2596 2819 m4_ifval([$2], 2597 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 2820 [AC_DIAGNOSE([obsolete], 2821 [$0: two- and three-arguments forms are deprecated.]) 2822 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 2598 2823 AC_SUBST([PACKAGE], [$1])dnl 2599 2824 AC_SUBST([VERSION], [$2])], 2600 2825 [_AM_SET_OPTIONS([$1])dnl 2601 2826 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 2602 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 2827 m4_if( 2828 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 2829 [ok:ok],, 2603 2830 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 2604 2831 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl … … 2606 2833 2607 2834 _AM_IF_OPTION([no-define],, 2608 [AC_DEFINE_UNQUOTED( PACKAGE, "$PACKAGE", [Name of package])2609 AC_DEFINE_UNQUOTED( VERSION, "$VERSION", [Version number of package])])dnl2835 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 2836 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 2610 2837 2611 2838 # Some tools Automake needs. 2612 2839 AC_REQUIRE([AM_SANITY_CHECK])dnl 2613 2840 AC_REQUIRE([AC_ARG_PROGRAM])dnl 2614 AM_MISSING_PROG( ACLOCAL, aclocal-${am__api_version})2615 AM_MISSING_PROG( AUTOCONF, autoconf)2616 AM_MISSING_PROG( AUTOMAKE, automake-${am__api_version})2617 AM_MISSING_PROG( AUTOHEADER, autoheader)2618 AM_MISSING_PROG( MAKEINFO, makeinfo)2841 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 2842 AM_MISSING_PROG([AUTOCONF], [autoconf]) 2843 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 2844 AM_MISSING_PROG([AUTOHEADER], [autoheader]) 2845 AM_MISSING_PROG([MAKEINFO], [makeinfo]) 2619 2846 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 2620 2847 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 2621 AC_REQUIRE([AM_PROG_MKDIR_P])dnl 2622 # We need awk for the "check" target. The system "awk" is bad on 2623 # some platforms. 2848 AC_REQUIRE([AC_PROG_MKDIR_P])dnl 2849 # For better backward compatibility. To be removed once Automake 1.9.x 2850 # dies out for good. For more background, see: 2851 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2852 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2853 AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 2854 # We need awk for the "check" target (and possibly the TAP driver). The 2855 # system "awk" is bad on some platforms. 2624 2856 AC_REQUIRE([AC_PROG_AWK])dnl 2625 2857 AC_REQUIRE([AC_PROG_MAKE_SET])dnl … … 2630 2862 _AM_IF_OPTION([no-dependencies],, 2631 2863 [AC_PROVIDE_IFELSE([AC_PROG_CC], 2632 [_AM_DEPENDENCIES( CC)],2633 [ define([AC_PROG_CC],2634 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl2864 [_AM_DEPENDENCIES([CC])], 2865 [m4_define([AC_PROG_CC], 2866 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 2635 2867 AC_PROVIDE_IFELSE([AC_PROG_CXX], 2636 [_AM_DEPENDENCIES( CXX)],2637 [ define([AC_PROG_CXX],2638 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl2868 [_AM_DEPENDENCIES([CXX])], 2869 [m4_define([AC_PROG_CXX], 2870 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 2639 2871 AC_PROVIDE_IFELSE([AC_PROG_OBJC], 2640 [_AM_DEPENDENCIES(OBJC)], 2641 [define([AC_PROG_OBJC], 2642 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 2872 [_AM_DEPENDENCIES([OBJC])], 2873 [m4_define([AC_PROG_OBJC], 2874 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 2875 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 2876 [_AM_DEPENDENCIES([OBJCXX])], 2877 [m4_define([AC_PROG_OBJCXX], 2878 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 2643 2879 ]) 2644 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl2645 dnl The `parallel-tests'driver may need to know about EXEEXT, so add the2646 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro2647 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.2880 AC_REQUIRE([AM_SILENT_RULES])dnl 2881 dnl The testsuite driver may need to know about EXEEXT, so add the 2882 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 2883 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 2648 2884 AC_CONFIG_COMMANDS_PRE(dnl 2649 2885 [m4_provide_if([_AM_COMPILER_EXEEXT], 2650 2886 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 2887 2888 # POSIX will say in a future version that running "rm -f" with no argument 2889 # is OK; and we want to be able to make that assumption in our Makefile 2890 # recipes. So use an aggressive probe to check that the usage we want is 2891 # actually supported "in the wild" to an acceptable degree. 2892 # See automake bug#10828. 2893 # To make any issue more visible, cause the running configure to be aborted 2894 # by default if the 'rm' program in use doesn't match our expectations; the 2895 # user can still override this though. 2896 if rm -f && rm -fr && rm -rf; then : OK; else 2897 cat >&2 <<'END' 2898 Oops! 2899 2900 Your 'rm' program seems unable to run without file operands specified 2901 on the command line, even when the '-f' option is present. This is contrary 2902 to the behaviour of most rm programs out there, and not conforming with 2903 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2904 2905 Please tell bug-automake@gnu.org about your system, including the value 2906 of your $PATH and any error possibly output before this message. This 2907 can help us improve future automake versions. 2908 2909 END 2910 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2911 echo 'Configuration will proceed anyway, since you have set the' >&2 2912 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2913 echo >&2 2914 else 2915 cat >&2 <<'END' 2916 Aborting the configuration process, to ensure you take notice of the issue. 2917 2918 You can download and install GNU coreutils to get an 'rm' implementation 2919 that behaves properly: <http://www.gnu.org/software/coreutils/>. 2920 2921 If you want to complete the configuration process using your problematic 2922 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2923 to "yes", and re-run configure. 2924 2925 END 2926 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 2927 fi 2928 fi 2929 dnl The trailing newline in this macro's definition is deliberate, for 2930 dnl backward compatibility and to allow trailing 'dnl'-style comments 2931 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 2651 2932 ]) 2652 2933 2653 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not2934 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 2654 2935 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 2655 2936 dnl mangled by Autoconf and run in a shell conditional statement. 2656 2937 m4_define([_AC_COMPILER_EXEEXT], 2657 2938 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 2658 2659 2939 2660 2940 # When config.status generates a header, we must update the stamp-h file. … … 2679 2959 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 2680 2960 2681 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, 2682 # Inc. 2961 # Copyright (C) 2001-2014 Free Software Foundation, Inc. 2683 2962 # 2684 2963 # This file is free software; the Free Software Foundation 2685 2964 # gives unlimited permission to copy and/or distribute it, 2686 2965 # with or without modifications, as long as this notice is preserved. 2687 2688 # serial 12689 2966 2690 2967 # AM_PROG_INSTALL_SH … … 2693 2970 AC_DEFUN([AM_PROG_INSTALL_SH], 2694 2971 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 2695 if test x"${install_sh }" != xset; then2972 if test x"${install_sh+set}" != xset; then 2696 2973 case $am_aux_dir in 2697 2974 *\ * | *\ *) … … 2701 2978 esac 2702 2979 fi 2703 AC_SUBST( install_sh)])2704 2705 # Copyright (C) 2003 , 2005Free Software Foundation, Inc.2980 AC_SUBST([install_sh])]) 2981 2982 # Copyright (C) 2003-2014 Free Software Foundation, Inc. 2706 2983 # 2707 2984 # This file is free software; the Free Software Foundation 2708 2985 # gives unlimited permission to copy and/or distribute it, 2709 2986 # with or without modifications, as long as this notice is preserved. 2710 2711 # serial 22712 2987 2713 2988 # Check whether the underlying file-system supports filenames … … 2726 3001 # Check to see how 'make' treats includes. -*- Autoconf -*- 2727 3002 2728 # Copyright (C) 2001 , 2002, 2003, 2005, 2009Free Software Foundation, Inc.3003 # Copyright (C) 2001-2014 Free Software Foundation, Inc. 2729 3004 # 2730 3005 # This file is free software; the Free Software Foundation 2731 3006 # gives unlimited permission to copy and/or distribute it, 2732 3007 # with or without modifications, as long as this notice is preserved. 2733 2734 # serial 42735 3008 2736 3009 # AM_MAKE_INCLUDE() … … 2751 3024 # First try GNU make style include. 2752 3025 echo "include confinc" > confmf 2753 # Ignore all kinds of additional output from `make'.3026 # Ignore all kinds of additional output from 'make'. 2754 3027 case `$am_make -s -f confmf 2> /dev/null` in #( 2755 3028 *the\ am__doit\ target*) … … 2776 3049 ]) 2777 3050 2778 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 2779 # Free Software Foundation, Inc. 3051 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 3052 3053 # Copyright (C) 1997-2014 Free Software Foundation, Inc. 2780 3054 # 2781 3055 # This file is free software; the Free Software Foundation 2782 3056 # gives unlimited permission to copy and/or distribute it, 2783 3057 # with or without modifications, as long as this notice is preserved. 2784 2785 # serial 62786 2787 # AM_PROG_CC_C_O2788 # --------------2789 # Like AC_PROG_CC_C_O, but changed for automake.2790 AC_DEFUN([AM_PROG_CC_C_O],2791 [AC_REQUIRE([AC_PROG_CC_C_O])dnl2792 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl2793 AC_REQUIRE_AUX_FILE([compile])dnl2794 # FIXME: we rely on the cache variable name because2795 # there is no other way.2796 set dummy $CC2797 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`2798 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o2799 if test "$am_t" != yes; then2800 # Losing compiler, so override with the script.2801 # FIXME: It is wrong to rewrite CC.2802 # But if we don't then we get into trouble of one sort or another.2803 # A longer-term fix would be to have automake use am__CC in this case,2804 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"2805 CC="$am_aux_dir/compile $CC"2806 fi2807 dnl Make sure AC_PROG_CC is never called again, or it will override our2808 dnl setting of CC.2809 m4_define([AC_PROG_CC],2810 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])2811 ])2812 2813 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-2814 2815 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 20082816 # Free Software Foundation, Inc.2817 #2818 # This file is free software; the Free Software Foundation2819 # gives unlimited permission to copy and/or distribute it,2820 # with or without modifications, as long as this notice is preserved.2821 2822 # serial 62823 3058 2824 3059 # AM_MISSING_PROG(NAME, PROGRAM) … … 2829 3064 AC_SUBST($1)]) 2830 3065 2831 2832 3066 # AM_MISSING_HAS_RUN 2833 3067 # ------------------ 2834 # Define MISSING if not defined so far and test if it supports --run.2835 # If it does, set am_missing_run to use it, otherwise, to nothing.3068 # Define MISSING if not defined so far and test if it is modern enough. 3069 # If it is, set am_missing_run to use it, otherwise, to nothing. 2836 3070 AC_DEFUN([AM_MISSING_HAS_RUN], 2837 3071 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl … … 2846 3080 fi 2847 3081 # Use eval to expand $SHELL 2848 if eval "$MISSING -- run true"; then2849 am_missing_run="$MISSING --run"3082 if eval "$MISSING --is-lightweight"; then 3083 am_missing_run="$MISSING " 2850 3084 else 2851 3085 am_missing_run= 2852 AC_MSG_WARN([ `missing' script is too old or missing])3086 AC_MSG_WARN(['missing' script is too old or missing]) 2853 3087 fi 2854 3088 ]) 2855 3089 2856 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, 2857 # Inc. 3090 # Helper functions for option handling. -*- Autoconf -*- 3091 3092 # Copyright (C) 2001-2014 Free Software Foundation, Inc. 2858 3093 # 2859 3094 # This file is free software; the Free Software Foundation 2860 3095 # gives unlimited permission to copy and/or distribute it, 2861 3096 # with or without modifications, as long as this notice is preserved. 2862 2863 # serial 12864 2865 # AM_PROG_MKDIR_P2866 # ---------------2867 # Check for `mkdir -p'.2868 AC_DEFUN([AM_PROG_MKDIR_P],2869 [AC_PREREQ([2.60])dnl2870 AC_REQUIRE([AC_PROG_MKDIR_P])dnl2871 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,2872 dnl while keeping a definition of mkdir_p for backward compatibility.2873 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.2874 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of2875 dnl Makefile.ins that do not define MKDIR_P, so we do our own2876 dnl adjustment using top_builddir (which is defined more often than2877 dnl MKDIR_P).2878 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl2879 case $mkdir_p in2880 [[\\/$]]* | ?:[[\\/]]*) ;;2881 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;2882 esac2883 ])2884 2885 # Helper functions for option handling. -*- Autoconf -*-2886 2887 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software2888 # Foundation, Inc.2889 #2890 # This file is free software; the Free Software Foundation2891 # gives unlimited permission to copy and/or distribute it,2892 # with or without modifications, as long as this notice is preserved.2893 2894 # serial 52895 3097 2896 3098 # _AM_MANGLE_OPTION(NAME) … … 2903 3105 # Set option NAME. Presently that only means defining a flag for this option. 2904 3106 AC_DEFUN([_AM_SET_OPTION], 2905 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])3107 [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 2906 3108 2907 3109 # _AM_SET_OPTIONS(OPTIONS) … … 2917 3119 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 2918 3120 2919 # Check to make sure that the build environment is sane. -*- Autoconf -*- 2920 2921 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 2922 # Free Software Foundation, Inc. 3121 # Copyright (C) 1999-2014 Free Software Foundation, Inc. 2923 3122 # 2924 3123 # This file is free software; the Free Software Foundation … … 2926 3125 # with or without modifications, as long as this notice is preserved. 2927 3126 2928 # serial 5 3127 # _AM_PROG_CC_C_O 3128 # --------------- 3129 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 3130 # to automatically call this. 3131 AC_DEFUN([_AM_PROG_CC_C_O], 3132 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 3133 AC_REQUIRE_AUX_FILE([compile])dnl 3134 AC_LANG_PUSH([C])dnl 3135 AC_CACHE_CHECK( 3136 [whether $CC understands -c and -o together], 3137 [am_cv_prog_cc_c_o], 3138 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 3139 # Make sure it works both with $CC and with simple cc. 3140 # Following AC_PROG_CC_C_O, we do the test twice because some 3141 # compilers refuse to overwrite an existing .o file with -o, 3142 # though they will create one. 3143 am_cv_prog_cc_c_o=yes 3144 for am_i in 1 2; do 3145 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 3146 && test -f conftest2.$ac_objext; then 3147 : OK 3148 else 3149 am_cv_prog_cc_c_o=no 3150 break 3151 fi 3152 done 3153 rm -f core conftest* 3154 unset am_i]) 3155 if test "$am_cv_prog_cc_c_o" != yes; then 3156 # Losing compiler, so override with the script. 3157 # FIXME: It is wrong to rewrite CC. 3158 # But if we don't then we get into trouble of one sort or another. 3159 # A longer-term fix would be to have automake use am__CC in this case, 3160 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3161 CC="$am_aux_dir/compile $CC" 3162 fi 3163 AC_LANG_POP([C])]) 3164 3165 # For backward compatibility. 3166 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 3167 3168 # Copyright (C) 2001-2014 Free Software Foundation, Inc. 3169 # 3170 # This file is free software; the Free Software Foundation 3171 # gives unlimited permission to copy and/or distribute it, 3172 # with or without modifications, as long as this notice is preserved. 3173 3174 # AM_RUN_LOG(COMMAND) 3175 # ------------------- 3176 # Run COMMAND, save the exit status in ac_status, and log it. 3177 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 3178 AC_DEFUN([AM_RUN_LOG], 3179 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 3180 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 3181 ac_status=$? 3182 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3183 (exit $ac_status); }]) 3184 3185 # Check to make sure that the build environment is sane. -*- Autoconf -*- 3186 3187 # Copyright (C) 1996-2014 Free Software Foundation, Inc. 3188 # 3189 # This file is free software; the Free Software Foundation 3190 # gives unlimited permission to copy and/or distribute it, 3191 # with or without modifications, as long as this notice is preserved. 2929 3192 2930 3193 # AM_SANITY_CHECK … … 2932 3195 AC_DEFUN([AM_SANITY_CHECK], 2933 3196 [AC_MSG_CHECKING([whether build environment is sane]) 2934 # Just in case2935 sleep 12936 echo timestamp > conftest.file2937 3197 # Reject unsafe characters in $srcdir or the absolute working directory 2938 3198 # name. Accept space and tab only in the latter. … … 2945 3205 case $srcdir in 2946 3206 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 2947 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;3207 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 2948 3208 esac 2949 3209 2950 # Do `set' in a subshell so we don't clobber the current shell's3210 # Do 'set' in a subshell so we don't clobber the current shell's 2951 3211 # arguments. Must try -L first in case configure is actually a 2952 3212 # symlink; some systems play weird games with the mod time of symlinks … … 2954 3214 # directory). 2955 3215 if ( 2956 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2957 if test "$[*]" = "X"; then 2958 # -L didn't work. 2959 set X `ls -t "$srcdir/configure" conftest.file` 2960 fi 2961 rm -f conftest.file 2962 if test "$[*]" != "X $srcdir/configure conftest.file" \ 2963 && test "$[*]" != "X conftest.file $srcdir/configure"; then 2964 2965 # If neither matched, then we have a broken ls. This can happen 2966 # if, for instance, CONFIG_SHELL is bash and it inherits a 2967 # broken ls alias from the environment. This has actually 2968 # happened. Such a system could not be considered "sane". 2969 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 2970 alias in your environment]) 2971 fi 2972 3216 am_has_slept=no 3217 for am_try in 1 2; do 3218 echo "timestamp, slept: $am_has_slept" > conftest.file 3219 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3220 if test "$[*]" = "X"; then 3221 # -L didn't work. 3222 set X `ls -t "$srcdir/configure" conftest.file` 3223 fi 3224 if test "$[*]" != "X $srcdir/configure conftest.file" \ 3225 && test "$[*]" != "X conftest.file $srcdir/configure"; then 3226 3227 # If neither matched, then we have a broken ls. This can happen 3228 # if, for instance, CONFIG_SHELL is bash and it inherits a 3229 # broken ls alias from the environment. This has actually 3230 # happened. Such a system could not be considered "sane". 3231 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 3232 alias in your environment]) 3233 fi 3234 if test "$[2]" = conftest.file || test $am_try -eq 2; then 3235 break 3236 fi 3237 # Just in case. 3238 sleep 1 3239 am_has_slept=yes 3240 done 2973 3241 test "$[2]" = conftest.file 2974 3242 ) … … 2980 3248 Check your system clock]) 2981 3249 fi 2982 AC_MSG_RESULT(yes)]) 2983 2984 # Copyright (C) 2009, 2011 Free Software Foundation, Inc. 3250 AC_MSG_RESULT([yes]) 3251 # If we didn't sleep, we still need to ensure time stamps of config.status and 3252 # generated files are strictly newer. 3253 am_sleep_pid= 3254 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3255 ( sleep 1 ) & 3256 am_sleep_pid=$! 3257 fi 3258 AC_CONFIG_COMMANDS_PRE( 3259 [AC_MSG_CHECKING([that generated files are newer than configure]) 3260 if test -n "$am_sleep_pid"; then 3261 # Hide warnings about reused PIDs. 3262 wait $am_sleep_pid 2>/dev/null 3263 fi 3264 AC_MSG_RESULT([done])]) 3265 rm -f conftest.file 3266 ]) 3267 3268 # Copyright (C) 2009-2014 Free Software Foundation, Inc. 2985 3269 # 2986 3270 # This file is free software; the Free Software Foundation … … 2988 3272 # with or without modifications, as long as this notice is preserved. 2989 3273 2990 # serial 22991 2992 3274 # AM_SILENT_RULES([DEFAULT]) 2993 3275 # -------------------------- 2994 3276 # Enable less verbose build rules; with the default set to DEFAULT 2995 # ( `yes' being less verbose, `no'or empty being verbose).3277 # ("yes" being less verbose, "no" or empty being verbose). 2996 3278 AC_DEFUN([AM_SILENT_RULES], 2997 [AC_ARG_ENABLE([silent-rules], 2998 [ --enable-silent-rules less verbose build output (undo: `make V=1') 2999 --disable-silent-rules verbose build output (undo: `make V=0')]) 3000 case $enable_silent_rules in 3001 yes) AM_DEFAULT_VERBOSITY=0;; 3002 no) AM_DEFAULT_VERBOSITY=1;; 3003 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 3279 [AC_ARG_ENABLE([silent-rules], [dnl 3280 AS_HELP_STRING( 3281 [--enable-silent-rules], 3282 [less verbose build output (undo: "make V=1")]) 3283 AS_HELP_STRING( 3284 [--disable-silent-rules], 3285 [verbose build output (undo: "make V=0")])dnl 3286 ]) 3287 case $enable_silent_rules in @%:@ ((( 3288 yes) AM_DEFAULT_VERBOSITY=0;; 3289 no) AM_DEFAULT_VERBOSITY=1;; 3290 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 3004 3291 esac 3005 3292 dnl 3006 dnl A few `make' implementations (e.g., NonStop OS and NextStep)3293 dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 3007 3294 dnl do not support nested variable expansions. 3008 3295 dnl See automake bug#9928 and bug#10237. … … 3022 3309 fi]) 3023 3310 if test $am_cv_make_support_nested_variables = yes; then 3024 dnl Using `$V' instead of `$(V)' breaks IRIX make.3311 dnl Using '$V' instead of '$(V)' breaks IRIX make. 3025 3312 AM_V='$(V)' 3026 3313 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' … … 3039 3326 ]) 3040 3327 3041 # Copyright (C) 2001 , 2003, 2005, 2011Free Software Foundation, Inc.3328 # Copyright (C) 2001-2014 Free Software Foundation, Inc. 3042 3329 # 3043 3330 # This file is free software; the Free Software Foundation … … 3045 3332 # with or without modifications, as long as this notice is preserved. 3046 3333 3047 # serial 13048 3049 3334 # AM_PROG_INSTALL_STRIP 3050 3335 # --------------------- 3051 # One issue with vendor `install' (even GNU) is that you can't3336 # One issue with vendor 'install' (even GNU) is that you can't 3052 3337 # specify the program used to strip binaries. This is especially 3053 3338 # annoying in cross-compiling environments, where the build's strip 3054 3339 # is unlikely to handle the host's binaries. 3055 3340 # Fortunately install-sh will honor a STRIPPROG variable, so we 3056 # always use install-sh in `make install-strip', and initialize3341 # always use install-sh in "make install-strip", and initialize 3057 3342 # STRIPPROG with the value of the STRIP variable (set by the user). 3058 3343 AC_DEFUN([AM_PROG_INSTALL_STRIP], 3059 3344 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 3060 # Installed binaries are usually stripped using `strip' when the user3061 # run `make install-strip'. However `strip' might not be the right3345 # Installed binaries are usually stripped using 'strip' when the user 3346 # run "make install-strip". However 'strip' might not be the right 3062 3347 # tool to use in cross-compilation environments, therefore Automake 3063 # will honor the `STRIP' environment variable to overrule this program.3064 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.3348 # will honor the 'STRIP' environment variable to overrule this program. 3349 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 3065 3350 if test "$cross_compiling" != no; then 3066 3351 AC_CHECK_TOOL([STRIP], [strip], :) … … 3069 3354 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 3070 3355 3071 # Copyright (C) 2006 , 2008, 2010Free Software Foundation, Inc.3356 # Copyright (C) 2006-2014 Free Software Foundation, Inc. 3072 3357 # 3073 3358 # This file is free software; the Free Software Foundation 3074 3359 # gives unlimited permission to copy and/or distribute it, 3075 3360 # with or without modifications, as long as this notice is preserved. 3076 3077 # serial 33078 3361 3079 3362 # _AM_SUBST_NOTMAKE(VARIABLE) … … 3090 3373 # Check how to create a tarball. -*- Autoconf -*- 3091 3374 3092 # Copyright (C) 2004 , 2005, 2012Free Software Foundation, Inc.3375 # Copyright (C) 2004-2014 Free Software Foundation, Inc. 3093 3376 # 3094 3377 # This file is free software; the Free Software Foundation … … 3096 3379 # with or without modifications, as long as this notice is preserved. 3097 3380 3098 # serial 23099 3100 3381 # _AM_PROG_TAR(FORMAT) 3101 3382 # -------------------- 3102 3383 # Check how to create a tarball in format FORMAT. 3103 # FORMAT should be one of `v7', `ustar', or `pax'.3384 # FORMAT should be one of 'v7', 'ustar', or 'pax'. 3104 3385 # 3105 3386 # Substitute a variable $(am__tar) that is a command … … 3111 3392 # a tarball read from stdin. 3112 3393 # $(am__untar) < result.tar 3394 # 3113 3395 AC_DEFUN([_AM_PROG_TAR], 3114 3396 [# Always define AMTAR for backward compatibility. Yes, it's still used 3115 3397 # in the wild :-( We should find a proper way to deprecate it ... 3116 3398 AC_SUBST([AMTAR], ['$${TAR-tar}']) 3399 3400 # We'll loop over all known methods to create a tar archive until one works. 3401 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 3402 3117 3403 m4_if([$1], [v7], 3118 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 3119 [m4_case([$1], [ustar],, [pax],, 3120 [m4_fatal([Unknown tar format])]) 3121 AC_MSG_CHECKING([how to create a $1 tar archive]) 3122 # Loop over all known methods to create a tar archive until one works. 3123 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 3124 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 3125 # Do not fold the above two line into one, because Tru64 sh and 3126 # Solaris sh will not grok spaces in the rhs of `-'. 3127 for _am_tool in $_am_tools 3128 do 3129 case $_am_tool in 3130 gnutar) 3131 for _am_tar in tar gnutar gtar; 3132 do 3133 AM_RUN_LOG([$_am_tar --version]) && break 3134 done 3135 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 3136 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 3137 am__untar="$_am_tar -xf -" 3138 ;; 3139 plaintar) 3140 # Must skip GNU tar: if it does not support --format= it doesn't create 3141 # ustar tarball either. 3142 (tar --version) >/dev/null 2>&1 && continue 3143 am__tar='tar chf - "$$tardir"' 3144 am__tar_='tar chf - "$tardir"' 3145 am__untar='tar xf -' 3146 ;; 3147 pax) 3148 am__tar='pax -L -x $1 -w "$$tardir"' 3149 am__tar_='pax -L -x $1 -w "$tardir"' 3150 am__untar='pax -r' 3151 ;; 3152 cpio) 3153 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 3154 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 3155 am__untar='cpio -i -H $1 -d' 3156 ;; 3157 none) 3158 am__tar=false 3159 am__tar_=false 3160 am__untar=false 3161 ;; 3162 esac 3163 3164 # If the value was cached, stop now. We just wanted to have am__tar 3165 # and am__untar set. 3166 test -n "${am_cv_prog_tar_$1}" && break 3167 3168 # tar/untar a dummy directory, and stop if the command works 3404 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 3405 3406 [m4_case([$1], 3407 [ustar], 3408 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3409 # There is notably a 21 bits limit for the UID and the GID. In fact, 3410 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3411 # and bug#13588). 3412 am_max_uid=2097151 # 2^21 - 1 3413 am_max_gid=$am_max_uid 3414 # The $UID and $GID variables are not portable, so we need to resort 3415 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3416 # below are definitely unexpected, so allow the users to see them 3417 # (that is, avoid stderr redirection). 3418 am_uid=`id -u || echo unknown` 3419 am_gid=`id -g || echo unknown` 3420 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 3421 if test $am_uid -le $am_max_uid; then 3422 AC_MSG_RESULT([yes]) 3423 else 3424 AC_MSG_RESULT([no]) 3425 _am_tools=none 3426 fi 3427 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 3428 if test $am_gid -le $am_max_gid; then 3429 AC_MSG_RESULT([yes]) 3430 else 3431 AC_MSG_RESULT([no]) 3432 _am_tools=none 3433 fi], 3434 3435 [pax], 3436 [], 3437 3438 [m4_fatal([Unknown tar format])]) 3439 3440 AC_MSG_CHECKING([how to create a $1 tar archive]) 3441 3442 # Go ahead even if we have the value already cached. We do so because we 3443 # need to set the values for the 'am__tar' and 'am__untar' variables. 3444 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 3445 3446 for _am_tool in $_am_tools; do 3447 case $_am_tool in 3448 gnutar) 3449 for _am_tar in tar gnutar gtar; do 3450 AM_RUN_LOG([$_am_tar --version]) && break 3451 done 3452 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 3453 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 3454 am__untar="$_am_tar -xf -" 3455 ;; 3456 plaintar) 3457 # Must skip GNU tar: if it does not support --format= it doesn't create 3458 # ustar tarball either. 3459 (tar --version) >/dev/null 2>&1 && continue 3460 am__tar='tar chf - "$$tardir"' 3461 am__tar_='tar chf - "$tardir"' 3462 am__untar='tar xf -' 3463 ;; 3464 pax) 3465 am__tar='pax -L -x $1 -w "$$tardir"' 3466 am__tar_='pax -L -x $1 -w "$tardir"' 3467 am__untar='pax -r' 3468 ;; 3469 cpio) 3470 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 3471 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 3472 am__untar='cpio -i -H $1 -d' 3473 ;; 3474 none) 3475 am__tar=false 3476 am__tar_=false 3477 am__untar=false 3478 ;; 3479 esac 3480 3481 # If the value was cached, stop now. We just wanted to have am__tar 3482 # and am__untar set. 3483 test -n "${am_cv_prog_tar_$1}" && break 3484 3485 # tar/untar a dummy directory, and stop if the command works. 3486 rm -rf conftest.dir 3487 mkdir conftest.dir 3488 echo GrepMe > conftest.dir/file 3489 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 3490 rm -rf conftest.dir 3491 if test -s conftest.tar; then 3492 AM_RUN_LOG([$am__untar <conftest.tar]) 3493 AM_RUN_LOG([cat conftest.dir/file]) 3494 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3495 fi 3496 done 3169 3497 rm -rf conftest.dir 3170 mkdir conftest.dir 3171 echo GrepMe > conftest.dir/file 3172 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 3173 rm -rf conftest.dir 3174 if test -s conftest.tar; then 3175 AM_RUN_LOG([$am__untar <conftest.tar]) 3176 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3177 fi 3178 done 3179 rm -rf conftest.dir 3180 3181 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 3182 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 3498 3499 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 3500 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 3501 3183 3502 AC_SUBST([am__tar]) 3184 3503 AC_SUBST([am__untar]) -
trunk/FACT++/configure
r18507 r18603 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.6 8for FACT++ 1.0.3 # Generated by GNU Autoconf 2.69 for FACT++ 1.0. 4 4 # 5 5 # Report bugs to <thomas.bretz@phys.ethz.ch>. 6 6 # 7 7 # 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10 # Foundation, Inc. 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 11 9 # 12 10 # … … 137 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 139 162 if test "x$CONFIG_SHELL" = x; then 140 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : … … 170 193 exitcode=1; echo positional parameters were not saved. 171 194 fi 172 test x\$exitcode = x0 || exit 1" 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 173 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO … … 223 247 224 248 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 240 268 fi 241 269 … … 340 368 341 369 } # as_fn_mkdir_p 370 371 # as_fn_executable_p FILE 372 # ----------------------- 373 # Test if FILE is an executable regular file. 374 as_fn_executable_p () 375 { 376 test -f "$1" && test -x "$1" 377 } # as_fn_executable_p 342 378 # as_fn_append VAR VALUE 343 379 # ---------------------- … … 461 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 463 503 # Don't try to exec as it changes $[0], causing all sort of problems 464 504 # (the dirname of $[0] is not the place where we might find the … … 495 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p '.537 # In both cases, we have to default to `cp -pR'. 498 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p '539 as_ln_s='cp -pR' 500 540 elif ln conf$$.file conf$$ 2>/dev/null; then 501 541 as_ln_s=ln 502 542 else 503 as_ln_s='cp -p '543 as_ln_s='cp -pR' 504 544 fi 505 545 else 506 as_ln_s='cp -p '546 as_ln_s='cp -pR' 507 547 fi 508 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file … … 516 556 fi 517 557 518 if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520 else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538 fi 539 as_executable_p=$as_test_x 558 as_test_x='test -x' 559 as_executable_p=as_fn_executable_p 540 560 541 561 # Sed expression to map a string onto a valid CPP name. … … 682 702 COLORDIFF 683 703 ROOTLDFLAGS 704 ROOTCXXFLAGS 684 705 ROOTCPPFLAGS 685 706 ROOTSOVERSION … … 826 847 INSTALL_PROGRAM 827 848 CXXCPP 849 LT_SYS_LIBRARY_PATH 828 850 OTOOL64 829 851 OTOOL … … 892 914 oldincludedir 893 915 includedir 916 runstatedir 894 917 localstatedir 895 918 sharedstatedir … … 920 943 with_pic 921 944 enable_fast_install 945 with_aix_soname 922 946 with_gnu_ld 923 947 with_sysroot … … 1003 1027 DBUS_CFLAGS 1004 1028 DBUS_LIBS 1029 LT_SYS_LIBRARY_PATH 1005 1030 CXXCPP 1006 1031 DOXYGEN_PAPER_SIZE … … 1049 1074 sharedstatedir='${prefix}/com' 1050 1075 localstatedir='${prefix}/var' 1076 runstatedir='${localstatedir}/run' 1051 1077 includedir='${prefix}/include' 1052 1078 oldincludedir='/usr/include' … … 1301 1327 silent=yes ;; 1302 1328 1329 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1330 | --runstate | --runstat | --runsta | --runst | --runs \ 1331 | --run | --ru | --r) 1332 ac_prev=runstatedir ;; 1333 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1334 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1335 | --run=* | --ru=* | --r=*) 1336 runstatedir=$ac_optarg ;; 1337 1303 1338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1304 1339 ac_prev=sbindir ;; … … 1438 1473 datadir sysconfdir sharedstatedir localstatedir includedir \ 1439 1474 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1440 libdir localedir mandir 1475 libdir localedir mandir runstatedir 1441 1476 do 1442 1477 eval ac_val=\$$ac_var … … 1466 1501 if test "x$build_alias" = x; then 1467 1502 cross_compiling=maybe 1468 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.1469 If a cross compiler is detected then cross compile mode will be used" >&21470 1503 elif test "x$build_alias" != "x$host_alias"; then 1471 1504 cross_compiling=yes … … 1593 1626 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1594 1627 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1628 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1595 1629 --libdir=DIR object code libraries [EPREFIX/lib] 1596 1630 --includedir=DIR C header files [PREFIX/include] … … 1644 1678 optimize for fast installation [default=yes] 1645 1679 --disable-libtool-lock avoid locking (might break parallel builds) 1646 --disable-dependency-tracking speeds up one-time build 1647 --enable-dependency-tracking do not reject slow dependency extractors 1648 --enable-silent-rules less verbose build output (undo: `make V=1') 1649 --disable-silent-rules verbose build output (undo: `make V=0') 1680 --enable-dependency-tracking 1681 do not reject slow dependency extractors 1682 --disable-dependency-tracking 1683 speeds up one-time build 1684 --enable-silent-rules less verbose build output (undo: "make V=1") 1685 --disable-silent-rules verbose build output (undo: "make V=0") 1650 1686 --disable-doxygen-doc don't generate any doxygen documentation 1651 1687 --disable-doxygen-dot don't generate graphics for doxygen documentation … … 1663 1699 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1664 1700 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1665 --with-pic 1701 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1666 1702 both] 1703 --with-aix-soname=aix|svr4|both 1704 shared library versioning (aka "SONAME") variant to 1705 provide on AIX, [default=aix]. 1667 1706 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1668 --with-sysroot =DIR Search for dependent libraries within DIR1669 (or thecompiler's sysroot if not specified).1707 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1708 compiler's sysroot if not specified). 1670 1709 --with-readline[=dir] Compile with readline/locate base dir 1671 1710 --with-x use the X Window System … … 1777 1816 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 1778 1817 DBUS_LIBS linker flags for DBUS, overriding pkg-config 1818 LT_SYS_LIBRARY_PATH 1819 User-defined run-time library search path. 1779 1820 CXXCPP C++ preprocessor 1780 1821 DOXYGEN_PAPER_SIZE … … 1859 1900 cat <<\_ACEOF 1860 1901 FACT++ configure 1.0 1861 generated by GNU Autoconf 2.6 81862 1863 Copyright (C) 201 0Free Software Foundation, Inc.1902 generated by GNU Autoconf 2.69 1903 1904 Copyright (C) 2012 Free Software Foundation, Inc. 1864 1905 This configure script is free software; the Free Software Foundation 1865 1906 gives unlimited permission to copy, distribute and modify it. … … 2176 2217 } && test -s conftest$ac_exeext && { 2177 2218 test "$cross_compiling" = yes || 2178 $as_test_x conftest$ac_exeext2219 test -x conftest$ac_exeext 2179 2220 }; then : 2180 2221 ac_retval=0 … … 2326 2367 } && test -s conftest$ac_exeext && { 2327 2368 test "$cross_compiling" = yes || 2328 $as_test_x conftest$ac_exeext2369 test -x conftest$ac_exeext 2329 2370 }; then : 2330 2371 ac_retval=0 … … 2507 2548 2508 2549 It was created by FACT++ $as_me 1.0, which was 2509 generated by GNU Autoconf 2.6 8. Invocation command line was2550 generated by GNU Autoconf 2.69. Invocation command line was 2510 2551 2511 2552 $ $0 $@ … … 2937 2978 test -z "$as_dir" && as_dir=. 2938 2979 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2940 2981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2941 2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2981 3022 test -z "$as_dir" && as_dir=. 2982 3023 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2984 3025 ac_cv_prog_ac_ct_CC="$ac_prog" 2985 3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 3425 3466 #include <stdarg.h> 3426 3467 #include <stdio.h> 3427 #include <sys/types.h> 3428 #include <sys/stat.h> 3468 struct stat; 3429 3469 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3430 3470 struct buf { int x; }; … … 3511 3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3512 3552 3553 # Expand $ac_aux_dir to an absolute path. 3554 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3555 3556 ac_ext=c 3557 ac_cpp='$CPP $CPPFLAGS' 3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3562 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3563 if ${am_cv_prog_cc_c_o+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565 else 3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3567 /* end confdefs.h. */ 3568 3569 int 3570 main () 3571 { 3572 3573 ; 3574 return 0; 3575 } 3576 _ACEOF 3577 # Make sure it works both with $CC and with simple cc. 3578 # Following AC_PROG_CC_C_O, we do the test twice because some 3579 # compilers refuse to overwrite an existing .o file with -o, 3580 # though they will create one. 3581 am_cv_prog_cc_c_o=yes 3582 for am_i in 1 2; do 3583 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3584 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3585 ac_status=$? 3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3587 (exit $ac_status); } \ 3588 && test -f conftest2.$ac_objext; then 3589 : OK 3590 else 3591 am_cv_prog_cc_c_o=no 3592 break 3593 fi 3594 done 3595 rm -f core conftest* 3596 unset am_i 3597 fi 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3599 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3600 if test "$am_cv_prog_cc_c_o" != yes; then 3601 # Losing compiler, so override with the script. 3602 # FIXME: It is wrong to rewrite CC. 3603 # But if we don't then we get into trouble of one sort or another. 3604 # A longer-term fix would be to have automake use am__CC in this case, 3605 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3606 CC="$am_aux_dir/compile $CC" 3607 fi 3608 ac_ext=c 3609 ac_cpp='$CPP $CPPFLAGS' 3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3613 3614 3513 3615 ac_ext=cpp 3514 3616 ac_cpp='$CXXCPP $CPPFLAGS' … … 3539 3641 test -z "$as_dir" && as_dir=. 3540 3642 for ac_exec_ext in '' $ac_executable_extensions; do 3541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3542 3644 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3543 3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 3583 3685 test -z "$as_dir" && as_dir=. 3584 3686 for ac_exec_ext in '' $ac_executable_extensions; do 3585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3586 3688 ac_cv_prog_ac_ct_CXX="$ac_prog" 3587 3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 3929 4031 } 3930 4032 _ACEOF 3931 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 - xc99=all-qlanglvl=extc994033 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3932 4034 do 3933 4035 CC="$ac_save_CC $ac_arg" … … 3969 4071 #include <stdarg.h> 3970 4072 #include <stdio.h> 3971 #include <sys/types.h> 3972 #include <sys/stat.h> 4073 struct stat; 3973 4074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3974 4075 struct buf { int x; }; … … 4232 4333 for ac_exec_ext in '' $ac_executable_extensions; do 4233 4334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; }|| continue4335 as_fn_executable_p "$ac_path_GREP" || continue 4235 4336 # Check for GNU ac_path_GREP and select it if it is found. 4236 4337 # Check for GNU $ac_path_GREP … … 4298 4399 for ac_exec_ext in '' $ac_executable_extensions; do 4299 4400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4300 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; }|| continue4401 as_fn_executable_p "$ac_path_EGREP" || continue 4301 4402 # Check for GNU ac_path_EGREP and select it if it is found. 4302 4403 # Check for GNU $ac_path_EGREP … … 4505 4606 /* end confdefs.h. */ 4506 4607 4507 # 4508 4608 # define __EXTENSIONS__ 1 4609 $ac_includes_default 4509 4610 int 4510 4611 main () … … 4754 4855 test -z "$as_dir" && as_dir=. 4755 4856 for ac_exec_ext in '' $ac_executable_extensions; do 4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4757 4858 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4758 4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 4797 4898 test -z "$as_dir" && as_dir=. 4798 4899 for ac_exec_ext in '' $ac_executable_extensions; do 4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4800 4901 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4801 4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 4933 5034 ###################################################################### 4934 5035 4935 # expand $ac_aux_dir to an absolute path4936 am_aux_dir=`cd $ac_aux_dir && pwd`4937 4938 5036 if test -n "$ac_tool_prefix"; then 4939 5037 for ac_prog in ar lib "link -lib" … … 4955 5053 test -z "$as_dir" && as_dir=. 4956 5054 for ac_exec_ext in '' $ac_executable_extensions; do 4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4958 5056 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4959 5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 4999 5097 test -z "$as_dir" && as_dir=. 5000 5098 for ac_exec_ext in '' $ac_executable_extensions; do 5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5002 5100 ac_cv_prog_ac_ct_AR="$ac_prog" 5003 5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 5043 5141 $as_echo_n "(cached) " >&6 5044 5142 else 5045 am_cv_ar_interface=ar 5143 ac_ext=c 5144 ac_cpp='$CPP $CPPFLAGS' 5145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5147 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5148 5149 am_cv_ar_interface=ar 5046 5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047 5151 /* end confdefs.h. */ … … 5074 5178 fi 5075 5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5180 ac_ext=c 5181 ac_cpp='$CPP $CPPFLAGS' 5182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5184 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5076 5185 5077 5186 fi … … 5104 5213 5105 5214 5106 macro_version='2.4. 2'5107 macro_revision=' 1.3337'5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 ltmain= "$ac_aux_dir/ltmain.sh"5215 macro_version='2.4.6' 5216 macro_revision='2.4.6' 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 ltmain=$ac_aux_dir/ltmain.sh 5122 5231 5123 5232 # Make sure we can run config.sub. … … 5239 5348 } 5240 5349 5241 case "$ECHO"in5350 case $ECHO in 5242 5351 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5243 5352 $as_echo "printf" >&6; } ;; … … 5283 5392 for ac_exec_ext in '' $ac_executable_extensions; do 5284 5393 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5285 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; }|| continue5394 as_fn_executable_p "$ac_path_SED" || continue 5286 5395 # Check for GNU ac_path_SED and select it if it is found. 5287 5396 # Check for GNU $ac_path_SED … … 5362 5471 for ac_exec_ext in '' $ac_executable_extensions; do 5363 5472 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5364 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; }|| continue5473 as_fn_executable_p "$ac_path_FGREP" || continue 5365 5474 # Check for GNU ac_path_FGREP and select it if it is found. 5366 5475 # Check for GNU $ac_path_FGREP … … 5432 5541 # Check whether --with-gnu-ld was given. 5433 5542 if test "${with_gnu_ld+set}" = set; then : 5434 withval=$with_gnu_ld; test "$withval" = no|| with_gnu_ld=yes5543 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5435 5544 else 5436 5545 with_gnu_ld=no … … 5438 5547 5439 5548 ac_prog=ld 5440 if test "$GCC" = yes; then5549 if test yes = "$GCC"; then 5441 5550 # Check if gcc -print-prog-name=ld gives a path. 5442 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 … … 5444 5553 case $host in 5445 5554 *-*-mingw*) 5446 # gcc leaves a trailing carriage return which upsets mingw5555 # gcc leaves a trailing carriage return, which upsets mingw 5447 5556 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5448 5557 *) … … 5458 5567 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5459 5568 done 5460 test -z "$LD" && LD= "$ac_prog"5569 test -z "$LD" && LD=$ac_prog 5461 5570 ;; 5462 5571 "") … … 5469 5578 ;; 5470 5579 esac 5471 elif test "$with_gnu_ld" = yes; then5580 elif test yes = "$with_gnu_ld"; then 5472 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5473 5582 $as_echo_n "checking for GNU ld... " >&6; } … … 5480 5589 else 5481 5590 if test -z "$LD"; then 5482 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR5591 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5483 5592 for ac_dir in $PATH; do 5484 IFS= "$lt_save_ifs"5593 IFS=$lt_save_ifs 5485 5594 test -z "$ac_dir" && ac_dir=. 5486 5595 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5487 lt_cv_path_LD= "$ac_dir/$ac_prog"5596 lt_cv_path_LD=$ac_dir/$ac_prog 5488 5597 # Check to see if the program is GNU ld. I'd rather use --version, 5489 5598 # but apparently some variants of GNU ld only accept -v. … … 5491 5600 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5492 5601 *GNU* | *'with BFD'*) 5493 test "$with_gnu_ld" != no&& break5602 test no != "$with_gnu_ld" && break 5494 5603 ;; 5495 5604 *) 5496 test "$with_gnu_ld" != yes&& break5605 test yes != "$with_gnu_ld" && break 5497 5606 ;; 5498 5607 esac 5499 5608 fi 5500 5609 done 5501 IFS= "$lt_save_ifs"5502 else 5503 lt_cv_path_LD= "$LD"# Let the user override the test with a path.5504 fi 5505 fi 5506 5507 LD= "$lt_cv_path_LD"5610 IFS=$lt_save_ifs 5611 else 5612 lt_cv_path_LD=$LD # Let the user override the test with a path. 5613 fi 5614 fi 5615 5616 LD=$lt_cv_path_LD 5508 5617 if test -n "$LD"; then 5509 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 … … 5548 5657 if test -n "$NM"; then 5549 5658 # Let the user override the test. 5550 lt_cv_path_NM= "$NM"5551 else 5552 lt_nm_to_check= "${ac_tool_prefix}nm"5659 lt_cv_path_NM=$NM 5660 else 5661 lt_nm_to_check=${ac_tool_prefix}nm 5553 5662 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5554 5663 lt_nm_to_check="$lt_nm_to_check nm" 5555 5664 fi 5556 5665 for lt_tmp_nm in $lt_nm_to_check; do 5557 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR5666 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5558 5667 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5559 IFS= "$lt_save_ifs"5668 IFS=$lt_save_ifs 5560 5669 test -z "$ac_dir" && ac_dir=. 5561 tmp_nm= "$ac_dir/$lt_tmp_nm"5562 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" 5670 tmp_nm=$ac_dir/$lt_tmp_nm 5671 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5563 5672 # Check to see if the nm accepts a BSD-compat flag. 5564 # Adding the `sed 1q' prevents false positives on HP-UX, which says:5673 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5565 5674 # nm: unknown option "B" ignored 5566 5675 # Tru64's nm complains that /dev/null is an invalid object file 5567 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5568 */dev/null* | *'Invalid file or object type'*) 5676 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5677 case $build_os in 5678 mingw*) lt_bad_file=conftest.nm/nofile ;; 5679 *) lt_bad_file=/dev/null ;; 5680 esac 5681 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5682 *$lt_bad_file* | *'Invalid file or object type'*) 5569 5683 lt_cv_path_NM="$tmp_nm -B" 5570 break 5684 break 2 5571 5685 ;; 5572 5686 *) … … 5574 5688 */dev/null*) 5575 5689 lt_cv_path_NM="$tmp_nm -p" 5576 break 5690 break 2 5577 5691 ;; 5578 5692 *) … … 5585 5699 fi 5586 5700 done 5587 IFS= "$lt_save_ifs"5701 IFS=$lt_save_ifs 5588 5702 done 5589 5703 : ${lt_cv_path_NM=no} … … 5592 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5593 5707 $as_echo "$lt_cv_path_NM" >&6; } 5594 if test "$lt_cv_path_NM" != "no"; then5595 NM= "$lt_cv_path_NM"5708 if test no != "$lt_cv_path_NM"; then 5709 NM=$lt_cv_path_NM 5596 5710 else 5597 5711 # Didn't find any BSD compatible name lister, look for dumpbin. … … 5618 5732 test -z "$as_dir" && as_dir=. 5619 5733 for ac_exec_ext in '' $ac_executable_extensions; do 5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5621 5735 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5622 5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 5662 5776 test -z "$as_dir" && as_dir=. 5663 5777 for ac_exec_ext in '' $ac_executable_extensions; do 5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5665 5779 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5666 5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 5699 5813 fi 5700 5814 5701 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in5815 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5702 5816 *COFF*) 5703 DUMPBIN="$DUMPBIN -symbols "5817 DUMPBIN="$DUMPBIN -symbols -headers" 5704 5818 ;; 5705 5819 *) … … 5709 5823 fi 5710 5824 5711 if test "$DUMPBIN" != ":"; then5712 NM= "$DUMPBIN"5825 if test : != "$DUMPBIN"; then 5826 NM=$DUMPBIN 5713 5827 fi 5714 5828 fi … … 5761 5875 else 5762 5876 i=0 5763 teststring= "ABCD"5877 teststring=ABCD 5764 5878 5765 5879 case $build_os in … … 5801 5915 ;; 5802 5916 5803 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)5917 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5804 5918 # This has been around since 386BSD, at least. Likely further. 5805 5919 if test -x /sbin/sysctl; then … … 5818 5932 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5819 5933 lt_cv_sys_max_cmd_len=196608 5934 ;; 5935 5936 os2*) 5937 # The test takes a long time on OS/2. 5938 lt_cv_sys_max_cmd_len=8192 5820 5939 ;; 5821 5940 … … 5846 5965 *) 5847 5966 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5848 if test -n "$lt_cv_sys_max_cmd_len"; then 5967 if test -n "$lt_cv_sys_max_cmd_len" && \ 5968 test undefined != "$lt_cv_sys_max_cmd_len"; then 5849 5969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5850 5970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` … … 5852 5972 # Make teststring a little bigger before we do anything with it. 5853 5973 # a 1K string should be a reasonable start. 5854 for i in 1 2 3 4 5 6 7 8 5974 for i in 1 2 3 4 5 6 7 8; do 5855 5975 teststring=$teststring$teststring 5856 5976 done … … 5859 5979 # maximum length that is only half of the actual maximum length, but 5860 5980 # we can't tell. 5861 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \5981 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5862 5982 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5863 test $i != 17# 1/2 MB should be enough5983 test 17 != "$i" # 1/2 MB should be enough 5864 5984 do 5865 5985 i=`expr $i + 1` … … 5879 5999 fi 5880 6000 5881 if test -n $lt_cv_sys_max_cmd_len; then6001 if test -n "$lt_cv_sys_max_cmd_len"; then 5882 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5883 6003 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } … … 5896 6016 : ${MV="mv -f"} 5897 6017 : ${RM="rm -f"} 5898 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&55900 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }5901 # Try some XSI features5902 xsi_shell=no5903 ( _lt_dummy="a/b/c"5904 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \5905 = c,a/b,b/c, \5906 && eval 'test $(( 1 + 1 )) -eq 2 \5907 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \5908 && xsi_shell=yes5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&55910 $as_echo "$xsi_shell" >&6; }5911 5912 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&55914 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }5915 lt_shell_append=no5916 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \5917 >/dev/null 2>&1 \5918 && lt_shell_append=yes5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&55920 $as_echo "$lt_shell_append" >&6; }5921 5922 6018 5923 6019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then … … 6043 6139 case $host_os in 6044 6140 cygwin* | mingw* | pw32* | cegcc*) 6045 if test "$GCC" != yes; then6141 if test yes != "$GCC"; then 6046 6142 reload_cmds=false 6047 6143 fi 6048 6144 ;; 6049 6145 darwin*) 6050 if test "$GCC" = yes; then6051 reload_cmds='$LTCC $LTCFLAGS -nostdlib $ {wl}-r -o $output$reload_objs'6146 if test yes = "$GCC"; then 6147 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6052 6148 else 6053 6149 reload_cmds='$LD$reload_flag -o $output$reload_objs' … … 6081 6177 test -z "$as_dir" && as_dir=. 6082 6178 for ac_exec_ext in '' $ac_executable_extensions; do 6083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6084 6180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6085 6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 6121 6217 test -z "$as_dir" && as_dir=. 6122 6218 for ac_exec_ext in '' $ac_executable_extensions; do 6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6124 6220 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6125 6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 6177 6273 # interlibrary dependencies. 6178 6274 # 'none' -- dependencies not supported. 6179 # `unknown' -- same as none, but documents that we really don't know.6275 # 'unknown' -- same as none, but documents that we really don't know. 6180 6276 # 'pass_all' -- all dependencies passed with no checks. 6181 6277 # 'test_compile' -- check by making test program. 6182 6278 # 'file_magic [[regex]]' -- check by looking for files in library path 6183 # whichresponds to the $file_magic_cmd with a given extended regex.6184 # If you have `file' or equivalent on your system and you're not sure6185 # whether `pass_all' will *always* work, you probably want this one.6279 # that responds to the $file_magic_cmd with a given extended regex. 6280 # If you have 'file' or equivalent on your system and you're not sure 6281 # whether 'pass_all' will *always* work, you probably want this one. 6186 6282 6187 6283 case $host_os in … … 6210 6306 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6211 6307 # unless we find 'file', for example because we are cross-compiling. 6212 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6213 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6308 if ( file / ) >/dev/null 2>&1; then 6214 6309 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6215 6310 lt_cv_file_magic_cmd='func_win32_libid' … … 6245 6340 lt_cv_deplibs_check_method=pass_all 6246 6341 fi 6247 ;;6248 6249 gnu*)6250 lt_cv_deplibs_check_method=pass_all6251 6342 ;; 6252 6343 … … 6288 6379 ;; 6289 6380 6290 # This must be LinuxELF.6291 linux* | k*bsd*-gnu | kopensolaris*-gnu )6381 # This must be glibc/ELF. 6382 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6292 6383 lt_cv_deplibs_check_method=pass_all 6293 6384 ;; … … 6311 6402 ;; 6312 6403 6313 openbsd* )6314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then6404 openbsd* | bitrig*) 6405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6315 6406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6316 6407 else … … 6365 6456 lt_cv_deplibs_check_method=pass_all 6366 6457 ;; 6458 os2*) 6459 lt_cv_deplibs_check_method=pass_all 6460 ;; 6367 6461 esac 6368 6462 … … 6427 6521 test -z "$as_dir" && as_dir=. 6428 6522 for ac_exec_ext in '' $ac_executable_extensions; do 6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6430 6524 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6431 6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 6467 6561 test -z "$as_dir" && as_dir=. 6468 6562 for ac_exec_ext in '' $ac_executable_extensions; do 6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6470 6564 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6471 6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 6522 6616 case $host_os in 6523 6617 cygwin* | mingw* | pw32* | cegcc*) 6524 # two different shell functions defined in ltmain.sh 6525 # decide which to use based on capabilities of $DLLTOOL6618 # two different shell functions defined in ltmain.sh; 6619 # decide which one to use based on capabilities of $DLLTOOL 6526 6620 case `$DLLTOOL --help 2>&1` in 6527 6621 *--identify-strict*) … … 6535 6629 *) 6536 6630 # fallback: assume linklib IS sharedlib 6537 lt_cv_sharedlib_from_linklib_cmd= "$ECHO"6631 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6538 6632 ;; 6539 6633 esac … … 6570 6664 test -z "$as_dir" && as_dir=. 6571 6665 for ac_exec_ext in '' $ac_executable_extensions; do 6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6573 6667 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6574 6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 6614 6708 test -z "$as_dir" && as_dir=. 6615 6709 for ac_exec_ext in '' $ac_executable_extensions; do 6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6617 6711 ac_cv_prog_ac_ct_AR="$ac_prog" 6618 6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 6689 6783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6690 6784 test $ac_status = 0; } 6691 if test "$ac_status" -eq 0; then6785 if test 0 -eq "$ac_status"; then 6692 6786 # Ensure the archiver fails upon bogus file names. 6693 6787 rm -f conftest.$ac_objext libconftest.a … … 6697 6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6698 6792 test $ac_status = 0; } 6699 if test "$ac_status" -ne 0; then6793 if test 0 -ne "$ac_status"; then 6700 6794 lt_cv_ar_at_file=@ 6701 6795 fi … … 6710 6804 $as_echo "$lt_cv_ar_at_file" >&6; } 6711 6805 6712 if test "x$lt_cv_ar_at_file" = xno; then6806 if test no = "$lt_cv_ar_at_file"; then 6713 6807 archiver_list_spec= 6714 6808 else … … 6739 6833 test -z "$as_dir" && as_dir=. 6740 6834 for ac_exec_ext in '' $ac_executable_extensions; do 6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6742 6836 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6743 6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 6779 6873 test -z "$as_dir" && as_dir=. 6780 6874 for ac_exec_ext in '' $ac_executable_extensions; do 6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6782 6876 ac_cv_prog_ac_ct_STRIP="strip" 6783 6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 6838 6932 test -z "$as_dir" && as_dir=. 6839 6933 for ac_exec_ext in '' $ac_executable_extensions; do 6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6841 6935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6842 6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 6878 6972 test -z "$as_dir" && as_dir=. 6879 6973 for ac_exec_ext in '' $ac_executable_extensions; do 6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6881 6975 ac_cv_prog_ac_ct_RANLIB="ranlib" 6882 6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 6927 7021 if test -n "$RANLIB"; then 6928 7022 case $host_os in 6929 openbsd*)6930 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$ oldlib"7023 bitrig* | openbsd*) 7024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6931 7025 ;; 6932 7026 *) 6933 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$ oldlib"7027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6934 7028 ;; 6935 7029 esac 6936 old_archive_cmds="$old_archive_cmds~\$RANLIB \$ oldlib"7030 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6937 7031 fi 6938 7032 … … 6982 7076 test -z "$as_dir" && as_dir=. 6983 7077 for ac_exec_ext in '' $ac_executable_extensions; do 6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6985 7079 ac_cv_prog_AWK="$ac_prog" 6986 7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 7059 7153 ;; 7060 7154 hpux*) 7061 if test "$host_cpu" = ia64; then7155 if test ia64 = "$host_cpu"; then 7062 7156 symcode='[ABCDEGRST]' 7063 7157 fi … … 7092 7186 esac 7093 7187 7188 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7189 # Gets list of data symbols to import. 7190 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7191 # Adjust the below global symbol transforms to fixup imported variables. 7192 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7193 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7194 lt_c_name_lib_hook="\ 7195 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7196 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7197 else 7198 # Disable hooks by default. 7199 lt_cv_sys_global_symbol_to_import= 7200 lt_cdecl_hook= 7201 lt_c_name_hook= 7202 lt_c_name_lib_hook= 7203 fi 7204 7094 7205 # Transform an extracted symbol line into a proper C declaration. 7095 7206 # Some systems (esp. on ia64) link data and code symbols differently, 7096 7207 # so use this general approach. 7097 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7208 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7209 $lt_cdecl_hook\ 7210 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7211 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7098 7212 7099 7213 # Transform an extracted symbol line into symbol name and symbol address 7100 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7101 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7214 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7215 $lt_c_name_hook\ 7216 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7217 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7218 7219 # Transform an extracted symbol line into symbol name with lib prefix and 7220 # symbol address. 7221 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7222 $lt_c_name_lib_hook\ 7223 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7224 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7225 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7102 7226 7103 7227 # Handle CRLF in mingw tool chain … … 7117 7241 # Write the raw and C identifiers. 7118 7242 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7119 # Fake it for dumpbin and say T for any non-static function 7120 # and D for any globalvariable.7243 # Fake it for dumpbin and say T for any non-static function, 7244 # D for any global variable and I for any imported variable. 7121 7245 # Also find C++ and __fastcall symbols from MSVC++, 7122 7246 # which start with @ or ?. 7123 7247 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7124 7248 " {last_section=section; section=\$ 3};"\ 7249 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7125 7250 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7251 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7252 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7253 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7126 7254 " \$ 0!~/External *\|/{next};"\ 7127 7255 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7128 7256 " {if(hide[section]) next};"\ 7129 " {f= 0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D\"};"\7130 " {split(\$ 0, a, /\||\r/); split(a[2],s)};"\7131 " s[1]~/^[@?]/{print s[1],s[1]; next};"\7132 " s[1]~prfx {split(s[1],t,\"@\"); print t[1],substr(t[1],length(prfx))}"\7257 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7258 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7259 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7260 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7133 7261 " ' prfx=^$ac_symprfx" 7134 7262 else … … 7178 7306 cat <<_LT_EOF > conftest.$ac_ext 7179 7307 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7180 #if defined (_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)7181 /* DATA imports from DLLs on WIN32 c on't be const, because runtime7308 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7309 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7182 7310 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7183 7311 # define LT_DLSYM_CONST 7184 #elif defined (__osf__)7312 #elif defined __osf__ 7185 7313 /* This system does not cope well with relocations in const data. */ 7186 7314 # define LT_DLSYM_CONST … … 7208 7336 { "@PROGRAM@", (void *) 0 }, 7209 7337 _LT_EOF 7210 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext7338 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7211 7339 cat <<\_LT_EOF >> conftest.$ac_ext 7212 7340 {0, (void *) 0} … … 7228 7356 lt_globsym_save_LIBS=$LIBS 7229 7357 lt_globsym_save_CFLAGS=$CFLAGS 7230 LIBS= "conftstm.$ac_objext"7358 LIBS=conftstm.$ac_objext 7231 7359 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7232 7360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 … … 7234 7362 ac_status=$? 7235 7363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7236 test $ac_status = 0; } && test -s conftest$ {ac_exeext}; then7364 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7237 7365 pipe_works=yes 7238 7366 fi … … 7255 7383 7256 7384 # Do not use the global_symbol_pipe unless it works. 7257 if test "$pipe_works" = yes; then7385 if test yes = "$pipe_works"; then 7258 7386 break 7259 7387 else … … 7308 7436 7309 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7310 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7311 7449 $as_echo_n "checking for sysroot... " >&6; } … … 7320 7458 7321 7459 lt_sysroot= 7322 case $ {with_sysroot}in #(7460 case $with_sysroot in #( 7323 7461 yes) 7324 if test "$GCC" = yes; then7462 if test yes = "$GCC"; then 7325 7463 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7326 7464 fi … … 7332 7470 ;; #( 7333 7471 *) 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ {with_sysroot}" >&57335 $as_echo "$ {with_sysroot}" >&6; }7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7473 $as_echo "$with_sysroot" >&6; } 7336 7474 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7337 7475 ;; … … 7345 7483 7346 7484 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7486 $as_echo_n "checking for a working dd... " >&6; } 7487 if ${ac_cv_path_lt_DD+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489 else 7490 printf 0123456789abcdef0123456789abcdef >conftest.i 7491 cat conftest.i conftest.i >conftest2.i 7492 : ${lt_DD:=$DD} 7493 if test -z "$lt_DD"; then 7494 ac_path_lt_DD_found=false 7495 # Loop through the user's path and test for each of PROGNAME-LIST 7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7497 for as_dir in $PATH 7498 do 7499 IFS=$as_save_IFS 7500 test -z "$as_dir" && as_dir=. 7501 for ac_prog in dd; do 7502 for ac_exec_ext in '' $ac_executable_extensions; do 7503 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7504 as_fn_executable_p "$ac_path_lt_DD" || continue 7505 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7506 cmp -s conftest.i conftest.out \ 7507 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7508 fi 7509 $ac_path_lt_DD_found && break 3 7510 done 7511 done 7512 done 7513 IFS=$as_save_IFS 7514 if test -z "$ac_cv_path_lt_DD"; then 7515 : 7516 fi 7517 else 7518 ac_cv_path_lt_DD=$lt_DD 7519 fi 7520 7521 rm -f conftest.i conftest2.i conftest.out 7522 fi 7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7524 $as_echo "$ac_cv_path_lt_DD" >&6; } 7525 7526 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7528 $as_echo_n "checking how to truncate binary pipes... " >&6; } 7529 if ${lt_cv_truncate_bin+:} false; then : 7530 $as_echo_n "(cached) " >&6 7531 else 7532 printf 0123456789abcdef0123456789abcdef >conftest.i 7533 cat conftest.i conftest.i >conftest2.i 7534 lt_cv_truncate_bin= 7535 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7536 cmp -s conftest.i conftest.out \ 7537 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7538 fi 7539 rm -f conftest.i conftest2.i conftest.out 7540 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7541 fi 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7543 $as_echo "$lt_cv_truncate_bin" >&6; } 7544 7545 7546 7547 7548 7549 7550 7551 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7552 func_cc_basename () 7553 { 7554 for cc_temp in $*""; do 7555 case $cc_temp in 7556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7558 \-*) ;; 7559 *) break;; 7560 esac 7561 done 7562 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7563 } 7564 7347 7565 # Check whether --enable-libtool-lock was given. 7348 7566 if test "${enable_libtool_lock+set}" = set; then : … … 7350 7568 fi 7351 7569 7352 test "x$enable_libtool_lock" != xno &&enable_libtool_lock=yes7570 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7353 7571 7354 7572 # Some flags need to be propagated to the compiler or linker for good … … 7356 7574 case $host in 7357 7575 ia64-*-hpux*) 7358 # Find out which ABI we are using. 7576 # Find out what ABI is being produced by ac_compile, and set mode 7577 # options accordingly. 7359 7578 echo 'int i;' > conftest.$ac_ext 7360 7579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 … … 7365 7584 case `/usr/bin/file conftest.$ac_objext` in 7366 7585 *ELF-32*) 7367 HPUX_IA64_MODE= "32"7586 HPUX_IA64_MODE=32 7368 7587 ;; 7369 7588 *ELF-64*) 7370 HPUX_IA64_MODE= "64"7589 HPUX_IA64_MODE=64 7371 7590 ;; 7372 7591 esac … … 7375 7594 ;; 7376 7595 *-*-irix6*) 7377 # Find out which ABI we are using. 7596 # Find out what ABI is being produced by ac_compile, and set linker 7597 # options accordingly. 7378 7598 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7379 7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 … … 7382 7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7383 7603 test $ac_status = 0; }; then 7384 if test "$lt_cv_prog_gnu_ld" = yes; then7604 if test yes = "$lt_cv_prog_gnu_ld"; then 7385 7605 case `/usr/bin/file conftest.$ac_objext` in 7386 7606 *32-bit*) … … 7411 7631 ;; 7412 7632 7413 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7633 mips64*-*linux*) 7634 # Find out what ABI is being produced by ac_compile, and set linker 7635 # options accordingly. 7636 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7638 (eval $ac_compile) 2>&5 7639 ac_status=$? 7640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7641 test $ac_status = 0; }; then 7642 emul=elf 7643 case `/usr/bin/file conftest.$ac_objext` in 7644 *32-bit*) 7645 emul="${emul}32" 7646 ;; 7647 *64-bit*) 7648 emul="${emul}64" 7649 ;; 7650 esac 7651 case `/usr/bin/file conftest.$ac_objext` in 7652 *MSB*) 7653 emul="${emul}btsmip" 7654 ;; 7655 *LSB*) 7656 emul="${emul}ltsmip" 7657 ;; 7658 esac 7659 case `/usr/bin/file conftest.$ac_objext` in 7660 *N32*) 7661 emul="${emul}n32" 7662 ;; 7663 esac 7664 LD="${LD-ld} -m $emul" 7665 fi 7666 rm -rf conftest* 7667 ;; 7668 7669 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7414 7670 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7415 # Find out which ABI we are using. 7671 # Find out what ABI is being produced by ac_compile, and set linker 7672 # options accordingly. Note that the listed cases only cover the 7673 # situations where additional linker options are needed (such as when 7674 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7675 # vice versa); the common cases where no linker options are needed do 7676 # not appear in the list. 7416 7677 echo 'int i;' > conftest.$ac_ext 7417 7678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 … … 7427 7688 ;; 7428 7689 x86_64-*linux*) 7429 LD="${LD-ld} -m elf_i386" 7690 case `/usr/bin/file conftest.o` in 7691 *x86-64*) 7692 LD="${LD-ld} -m elf32_x86_64" 7693 ;; 7694 *) 7695 LD="${LD-ld} -m elf_i386" 7696 ;; 7697 esac 7430 7698 ;; 7431 ppc64-*linux*|powerpc64-*linux*) 7699 powerpc64le-*linux*) 7700 LD="${LD-ld} -m elf32lppclinux" 7701 ;; 7702 powerpc64-*linux*) 7432 7703 LD="${LD-ld} -m elf32ppclinux" 7433 7704 ;; … … 7448 7719 LD="${LD-ld} -m elf_x86_64" 7449 7720 ;; 7450 ppc*-*linux*|powerpc*-*linux*) 7721 powerpcle-*linux*) 7722 LD="${LD-ld} -m elf64lppc" 7723 ;; 7724 powerpc-*linux*) 7451 7725 LD="${LD-ld} -m elf64ppc" 7452 7726 ;; … … 7466 7740 *-*-sco3.2v5*) 7467 7741 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7468 SAVE_CFLAGS= "$CFLAGS"7742 SAVE_CFLAGS=$CFLAGS 7469 7743 CFLAGS="$CFLAGS -belf" 7470 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 … … 7506 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7507 7781 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7508 if test x"$lt_cv_cc_needs_belf" != x"yes"; then7782 if test yes != "$lt_cv_cc_needs_belf"; then 7509 7783 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7510 CFLAGS= "$SAVE_CFLAGS"7784 CFLAGS=$SAVE_CFLAGS 7511 7785 fi 7512 7786 ;; 7513 sparc*-*solaris*) 7514 # Find out which ABI we are using. 7787 *-*solaris*) 7788 # Find out what ABI is being produced by ac_compile, and set linker 7789 # options accordingly. 7515 7790 echo 'int i;' > conftest.$ac_ext 7516 7791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 … … 7522 7797 *64-bit*) 7523 7798 case $lt_cv_prog_gnu_ld in 7524 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7799 yes*) 7800 case $host in 7801 i?86-*-solaris*|x86_64-*-solaris*) 7802 LD="${LD-ld} -m elf_x86_64" 7803 ;; 7804 sparc*-*-solaris*) 7805 LD="${LD-ld} -m elf64_sparc" 7806 ;; 7807 esac 7808 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7809 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7810 LD=${LD-ld}_sol2 7811 fi 7812 ;; 7525 7813 *) 7526 7814 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then … … 7536 7824 esac 7537 7825 7538 need_locks= "$enable_libtool_lock"7826 need_locks=$enable_libtool_lock 7539 7827 7540 7828 if test -n "$ac_tool_prefix"; then … … 7555 7843 test -z "$as_dir" && as_dir=. 7556 7844 for ac_exec_ext in '' $ac_executable_extensions; do 7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7558 7846 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7559 7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 7595 7883 test -z "$as_dir" && as_dir=. 7596 7884 for ac_exec_ext in '' $ac_executable_extensions; do 7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7598 7886 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7599 7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 7647 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7648 7936 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 7649 if test "x$lt_cv_path_mainfest_tool" != xyes; then7937 if test yes != "$lt_cv_path_mainfest_tool"; then 7650 7938 MANIFEST_TOOL=: 7651 7939 fi … … 7675 7963 test -z "$as_dir" && as_dir=. 7676 7964 for ac_exec_ext in '' $ac_executable_extensions; do 7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7678 7966 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7679 7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 7715 8003 test -z "$as_dir" && as_dir=. 7716 8004 for ac_exec_ext in '' $ac_executable_extensions; do 7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7718 8006 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7719 8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 7767 8055 test -z "$as_dir" && as_dir=. 7768 8056 for ac_exec_ext in '' $ac_executable_extensions; do 7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7770 8058 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7771 8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 7807 8095 test -z "$as_dir" && as_dir=. 7808 8096 for ac_exec_ext in '' $ac_executable_extensions; do 7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7810 8098 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7811 8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 7859 8147 test -z "$as_dir" && as_dir=. 7860 8148 for ac_exec_ext in '' $ac_executable_extensions; do 7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then8149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7862 8150 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7863 8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 7899 8187 test -z "$as_dir" && as_dir=. 7900 8188 for ac_exec_ext in '' $ac_executable_extensions; do 7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7902 8190 ac_cv_prog_ac_ct_LIPO="lipo" 7903 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 7951 8239 test -z "$as_dir" && as_dir=. 7952 8240 for ac_exec_ext in '' $ac_executable_extensions; do 7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7954 8242 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7955 8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 7991 8279 test -z "$as_dir" && as_dir=. 7992 8280 for ac_exec_ext in '' $ac_executable_extensions; do 7993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then8281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7994 8282 ac_cv_prog_ac_ct_OTOOL="otool" 7995 8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 8043 8331 test -z "$as_dir" && as_dir=. 8044 8332 for ac_exec_ext in '' $ac_executable_extensions; do 8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then8333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8046 8334 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8047 8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 8083 8371 test -z "$as_dir" && as_dir=. 8084 8372 for ac_exec_ext in '' $ac_executable_extensions; do 8085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then8373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8086 8374 ac_cv_prog_ac_ct_OTOOL64="otool64" 8087 8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 8150 8438 else 8151 8439 lt_cv_apple_cc_single_mod=no 8152 if test -z "$ {LT_MULTI_MODULE}"; then8440 if test -z "$LT_MULTI_MODULE"; then 8153 8441 # By default we will add the -single_module flag. You can override 8154 8442 # by either setting the environment variable LT_MULTI_MODULE … … 8162 8450 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8163 8451 _lt_result=$? 8164 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8452 # If there is a non-empty error log, and "single_module" 8453 # appears in it, assume the flag caused a linker warning 8454 if test -s conftest.err && $GREP single_module conftest.err; then 8455 cat conftest.err >&5 8456 # Otherwise, if the output was created with a 0 exit code from 8457 # the compiler, it worked. 8458 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8165 8459 lt_cv_apple_cc_single_mod=yes 8166 8460 else … … 8173 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8174 8468 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8469 8175 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8176 8471 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } … … 8200 8495 rm -f core conftest.err conftest.$ac_objext \ 8201 8496 conftest$ac_exeext conftest.$ac_ext 8202 LDFLAGS= "$save_LDFLAGS"8497 LDFLAGS=$save_LDFLAGS 8203 8498 8204 8499 fi 8205 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8206 8501 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8502 8207 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8208 8504 $as_echo_n "checking for -force_load linker flag... " >&6; } … … 8226 8522 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8227 8523 _lt_result=$? 8228 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8524 if test -s conftest.err && $GREP force_load conftest.err; then 8525 cat conftest.err >&5 8526 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8229 8527 lt_cv_ld_force_load=yes 8230 8528 else … … 8239 8537 case $host_os in 8240 8538 rhapsody* | darwin1.[012]) 8241 _lt_dar_allow_undefined='$ {wl}-undefined ${wl}suppress' ;;8539 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8242 8540 darwin1.*) 8243 _lt_dar_allow_undefined='$ {wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;8541 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8244 8542 darwin*) # darwin 5.x on 8245 8543 # if running on 10.5 or later, the deployment target defaults … … 8248 8546 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8249 8547 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8250 _lt_dar_allow_undefined='$ {wl}-undefined ${wl}dynamic_lookup' ;;8251 10.[012] *)8252 _lt_dar_allow_undefined='$ {wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;8548 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8549 10.[012][,.]*) 8550 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8253 8551 10.*) 8254 _lt_dar_allow_undefined='$ {wl}-undefined ${wl}dynamic_lookup' ;;8552 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8255 8553 esac 8256 8554 ;; 8257 8555 esac 8258 if test "$lt_cv_apple_cc_single_mod" = "yes"; then8556 if test yes = "$lt_cv_apple_cc_single_mod"; then 8259 8557 _lt_dar_single_mod='$single_module' 8260 8558 fi 8261 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then8262 _lt_dar_export_syms=' $ {wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'8559 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8560 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8263 8561 else 8264 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$ {libname}-symbols.expsym ${lib}'8562 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8265 8563 fi 8266 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then8564 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8267 8565 _lt_dsymutil='~$DSYMUTIL $lib || :' 8268 8566 else … … 8271 8569 ;; 8272 8570 esac 8571 8572 # func_munge_path_list VARIABLE PATH 8573 # ----------------------------------- 8574 # VARIABLE is name of variable containing _space_ separated list of 8575 # directories to be munged by the contents of PATH, which is string 8576 # having a format: 8577 # "DIR[:DIR]:" 8578 # string "DIR[ DIR]" will be prepended to VARIABLE 8579 # ":DIR[:DIR]" 8580 # string "DIR[ DIR]" will be appended to VARIABLE 8581 # "DIRP[:DIRP]::[DIRA:]DIRA" 8582 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8583 # "DIRA[ DIRA]" will be appended to VARIABLE 8584 # "DIR[:DIR]" 8585 # VARIABLE will be replaced by "DIR[ DIR]" 8586 func_munge_path_list () 8587 { 8588 case x$2 in 8589 x) 8590 ;; 8591 *:) 8592 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8593 ;; 8594 x:*) 8595 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8596 ;; 8597 *::*) 8598 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8599 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8600 ;; 8601 *) 8602 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8603 ;; 8604 esac 8605 } 8273 8606 8274 8607 for ac_header in dlfcn.h … … 8289 8622 func_stripname_cnf () 8290 8623 { 8291 case $ {2}in8292 .*) func_stripname_result=`$ECHO "$ {3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;8293 *) func_stripname_result=`$ECHO "$ {3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;8624 case $2 in 8625 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8626 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8294 8627 esac 8295 8628 } # func_stripname_cnf … … 8309 8642 enable_static=no 8310 8643 # Look at the argument we got. We use all the common list separators. 8311 lt_save_ifs= "$IFS"; IFS="${IFS}$PATH_SEPARATOR,"8644 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8312 8645 for pkg in $enableval; do 8313 IFS= "$lt_save_ifs"8646 IFS=$lt_save_ifs 8314 8647 if test "X$pkg" = "X$p"; then 8315 8648 enable_static=yes 8316 8649 fi 8317 8650 done 8318 IFS= "$lt_save_ifs"8651 IFS=$lt_save_ifs 8319 8652 ;; 8320 8653 esac … … 8347 8680 enable_shared=no 8348 8681 # Look at the argument we got. We use all the common list separators. 8349 lt_save_ifs= "$IFS"; IFS="${IFS}$PATH_SEPARATOR,"8682 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8350 8683 for pkg in $enableval; do 8351 IFS= "$lt_save_ifs"8684 IFS=$lt_save_ifs 8352 8685 if test "X$pkg" = "X$p"; then 8353 8686 enable_shared=yes 8354 8687 fi 8355 8688 done 8356 IFS= "$lt_save_ifs"8689 IFS=$lt_save_ifs 8357 8690 ;; 8358 8691 esac … … 8373 8706 # Check whether --with-pic was given. 8374 8707 if test "${with_pic+set}" = set; then : 8375 withval=$with_pic; pic_mode="$withval" 8708 withval=$with_pic; lt_p=${PACKAGE-default} 8709 case $withval in 8710 yes|no) pic_mode=$withval ;; 8711 *) 8712 pic_mode=default 8713 # Look at the argument we got. We use all the common list separators. 8714 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8715 for lt_pkg in $withval; do 8716 IFS=$lt_save_ifs 8717 if test "X$lt_pkg" = "X$lt_p"; then 8718 pic_mode=yes 8719 fi 8720 done 8721 IFS=$lt_save_ifs 8722 ;; 8723 esac 8376 8724 else 8377 8725 pic_mode=default 8378 8726 fi 8379 8727 8380 8381 test -z "$pic_mode" && pic_mode=default8382 8728 8383 8729 … … 8396 8742 enable_fast_install=no 8397 8743 # Look at the argument we got. We use all the common list separators. 8398 lt_save_ifs= "$IFS"; IFS="${IFS}$PATH_SEPARATOR,"8744 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8399 8745 for pkg in $enableval; do 8400 IFS= "$lt_save_ifs"8746 IFS=$lt_save_ifs 8401 8747 if test "X$pkg" = "X$p"; then 8402 8748 enable_fast_install=yes 8403 8749 fi 8404 8750 done 8405 IFS= "$lt_save_ifs"8751 IFS=$lt_save_ifs 8406 8752 ;; 8407 8753 esac … … 8417 8763 8418 8764 8765 shared_archive_member_spec= 8766 case $host,$enable_shared in 8767 power*-*-aix[5-9]*,yes) 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8769 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8770 8771 # Check whether --with-aix-soname was given. 8772 if test "${with_aix_soname+set}" = set; then : 8773 withval=$with_aix_soname; case $withval in 8774 aix|svr4|both) 8775 ;; 8776 *) 8777 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8778 ;; 8779 esac 8780 lt_cv_with_aix_soname=$with_aix_soname 8781 else 8782 if ${lt_cv_with_aix_soname+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784 else 8785 lt_cv_with_aix_soname=aix 8786 fi 8787 8788 with_aix_soname=$lt_cv_with_aix_soname 8789 fi 8790 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8792 $as_echo "$with_aix_soname" >&6; } 8793 if test aix != "$with_aix_soname"; then 8794 # For the AIX way of multilib, we name the shared archive member 8795 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8796 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8797 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8798 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8799 if test 64 = "${OBJECT_MODE-32}"; then 8800 shared_archive_member_spec=shr_64 8801 else 8802 shared_archive_member_spec=shr 8803 fi 8804 fi 8805 ;; 8806 *) 8807 with_aix_soname=aix 8808 ;; 8809 esac 8810 8811 8812 8813 8814 8815 8816 8419 8817 8420 8818 8421 8819 8422 8820 # This can be used to rebuild libtool when needed 8423 LIBTOOL_DEPS= "$ltmain"8821 LIBTOOL_DEPS=$ltmain 8424 8822 8425 8823 # Always use our own libtool. … … 8451 8849 8452 8850 8851 8852 8853 8854 8453 8855 test -z "$LN_S" && LN_S="ln -s" 8454 8856 … … 8466 8868 8467 8869 8468 if test -n "${ZSH_VERSION+set}" 8870 if test -n "${ZSH_VERSION+set}"; then 8469 8871 setopt NO_GLOB_SUBST 8470 8872 fi … … 8505 8907 # reason, if we set the COLLECT_NAMES environment variable, the problems 8506 8908 # vanish in a puff of smoke. 8507 if test "X${COLLECT_NAMES+set}" != Xset; then8909 if test set != "${COLLECT_NAMES+set}"; then 8508 8910 COLLECT_NAMES= 8509 8911 export COLLECT_NAMES … … 8516 8918 can_build_shared=yes 8517 8919 8518 # All known linkers require a `.a' archive for static linking (except MSVC,8920 # All known linkers require a '.a' archive for static linking (except MSVC, 8519 8921 # which needs '.lib'). 8520 8922 libext=a 8521 8923 8522 with_gnu_ld= "$lt_cv_prog_gnu_ld"8523 8524 old_CC= "$CC"8525 old_CFLAGS= "$CFLAGS"8924 with_gnu_ld=$lt_cv_prog_gnu_ld 8925 8926 old_CC=$CC 8927 old_CFLAGS=$CFLAGS 8526 8928 8527 8929 # Set sane defaults for various variables … … 8532 8934 test -z "$ac_objext" && ac_objext=o 8533 8935 8534 for cc_temp in $compiler""; do 8535 case $cc_temp in 8536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8538 \-*) ;; 8539 *) break;; 8540 esac 8541 done 8542 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8936 func_cc_basename $compiler 8937 cc_basename=$func_cc_basename_result 8543 8938 8544 8939 … … 8555 8950 case $MAGIC_CMD in 8556 8951 [\\/*] | ?:[\\/]*) 8557 lt_cv_path_MAGIC_CMD= "$MAGIC_CMD"# Let the user override the test with a path.8952 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8558 8953 ;; 8559 8954 *) 8560 lt_save_MAGIC_CMD= "$MAGIC_CMD"8561 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR8955 lt_save_MAGIC_CMD=$MAGIC_CMD 8956 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8562 8957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8563 8958 for ac_dir in $ac_dummy; do 8564 IFS= "$lt_save_ifs"8959 IFS=$lt_save_ifs 8565 8960 test -z "$ac_dir" && ac_dir=. 8566 if test -f $ac_dir/${ac_tool_prefix}file; then8567 lt_cv_path_MAGIC_CMD= "$ac_dir/${ac_tool_prefix}file"8961 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8962 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8568 8963 if test -n "$file_magic_test_file"; then 8569 8964 case $deplibs_check_method in 8570 8965 "file_magic "*) 8571 8966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8572 MAGIC_CMD= "$lt_cv_path_MAGIC_CMD"8967 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8573 8968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8574 8969 $EGREP "$file_magic_regex" > /dev/null; then … … 8593 8988 fi 8594 8989 done 8595 IFS= "$lt_save_ifs"8596 MAGIC_CMD= "$lt_save_MAGIC_CMD"8990 IFS=$lt_save_ifs 8991 MAGIC_CMD=$lt_save_MAGIC_CMD 8597 8992 ;; 8598 8993 esac 8599 8994 fi 8600 8995 8601 MAGIC_CMD= "$lt_cv_path_MAGIC_CMD"8996 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8602 8997 if test -n "$MAGIC_CMD"; then 8603 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 … … 8621 9016 case $MAGIC_CMD in 8622 9017 [\\/*] | ?:[\\/]*) 8623 lt_cv_path_MAGIC_CMD= "$MAGIC_CMD"# Let the user override the test with a path.9018 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8624 9019 ;; 8625 9020 *) 8626 lt_save_MAGIC_CMD= "$MAGIC_CMD"8627 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR9021 lt_save_MAGIC_CMD=$MAGIC_CMD 9022 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8628 9023 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8629 9024 for ac_dir in $ac_dummy; do 8630 IFS= "$lt_save_ifs"9025 IFS=$lt_save_ifs 8631 9026 test -z "$ac_dir" && ac_dir=. 8632 if test -f $ac_dir/file; then8633 lt_cv_path_MAGIC_CMD= "$ac_dir/file"9027 if test -f "$ac_dir/file"; then 9028 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8634 9029 if test -n "$file_magic_test_file"; then 8635 9030 case $deplibs_check_method in 8636 9031 "file_magic "*) 8637 9032 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8638 MAGIC_CMD= "$lt_cv_path_MAGIC_CMD"9033 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8639 9034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8640 9035 $EGREP "$file_magic_regex" > /dev/null; then … … 8659 9054 fi 8660 9055 done 8661 IFS= "$lt_save_ifs"8662 MAGIC_CMD= "$lt_save_MAGIC_CMD"9056 IFS=$lt_save_ifs 9057 MAGIC_CMD=$lt_save_MAGIC_CMD 8663 9058 ;; 8664 9059 esac 8665 9060 fi 8666 9061 8667 MAGIC_CMD= "$lt_cv_path_MAGIC_CMD"9062 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8668 9063 if test -n "$MAGIC_CMD"; then 8669 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 … … 8686 9081 # Use C for the default configuration in the libtool script 8687 9082 8688 lt_save_CC= "$CC"9083 lt_save_CC=$CC 8689 9084 ac_ext=c 8690 9085 ac_cpp='$CPP $CPPFLAGS' … … 8748 9143 lt_prog_compiler_no_builtin_flag= 8749 9144 8750 if test "$GCC" = yes; then9145 if test yes = "$GCC"; then 8751 9146 case $cc_basename in 8752 9147 nvcc*) … … 8764 9159 ac_outfile=conftest.$ac_objext 8765 9160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8766 lt_compiler_flag="-fno-rtti -fno-exceptions" 9161 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8767 9162 # Insert the option either (1) after the last *FLAGS variable, or 8768 9163 # (2) before a word containing "conftest.", or (3) at the end. … … 8794 9189 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8795 9190 8796 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then9191 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8797 9192 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8798 9193 else … … 8812 9207 8813 9208 8814 if test "$GCC" = yes; then9209 if test yes = "$GCC"; then 8815 9210 lt_prog_compiler_wl='-Wl,' 8816 9211 lt_prog_compiler_static='-static' … … 8819 9214 aix*) 8820 9215 # All AIX code is PIC. 8821 if test "$host_cpu" = ia64; then9216 if test ia64 = "$host_cpu"; then 8822 9217 # AIX 5 now supports IA64 processor 8823 9218 lt_prog_compiler_static='-Bstatic' 8824 9219 fi 9220 lt_prog_compiler_pic='-fPIC' 8825 9221 ;; 8826 9222 … … 8833 9229 m68k) 8834 9230 # FIXME: we need at least 68020 code to build shared libraries, but 8835 # adding the `-m68020' flag to GCC prevents building anything better,8836 # like `-m68040'.9231 # adding the '-m68020' flag to GCC prevents building anything better, 9232 # like '-m68040'. 8837 9233 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8838 9234 ;; … … 8850 9246 # (--disable-auto-import) libraries 8851 9247 lt_prog_compiler_pic='-DDLL_EXPORT' 9248 case $host_os in 9249 os2*) 9250 lt_prog_compiler_static='$wl-static' 9251 ;; 9252 esac 8852 9253 ;; 8853 9254 … … 8910 9311 nvcc*) # Cuda Compiler Driver 2.2 8911 9312 lt_prog_compiler_wl='-Xlinker ' 8912 lt_prog_compiler_pic='-Xcompiler -fPIC' 9313 if test -n "$lt_prog_compiler_pic"; then 9314 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9315 fi 8913 9316 ;; 8914 9317 esac … … 8918 9321 aix*) 8919 9322 lt_prog_compiler_wl='-Wl,' 8920 if test "$host_cpu" = ia64; then9323 if test ia64 = "$host_cpu"; then 8921 9324 # AIX 5 now supports IA64 processor 8922 9325 lt_prog_compiler_static='-Bstatic' … … 8926 9329 ;; 8927 9330 9331 darwin* | rhapsody*) 9332 # PIC is the default on this platform 9333 # Common symbols not allowed in MH_DYLIB files 9334 lt_prog_compiler_pic='-fno-common' 9335 case $cc_basename in 9336 nagfor*) 9337 # NAG Fortran compiler 9338 lt_prog_compiler_wl='-Wl,-Wl,,' 9339 lt_prog_compiler_pic='-PIC' 9340 lt_prog_compiler_static='-Bstatic' 9341 ;; 9342 esac 9343 ;; 9344 8928 9345 mingw* | cygwin* | pw32* | os2* | cegcc*) 8929 9346 # This hack is so that the source file can tell whether it is being 8930 9347 # built for inclusion in a dll (and should export symbols for example). 8931 9348 lt_prog_compiler_pic='-DDLL_EXPORT' 9349 case $host_os in 9350 os2*) 9351 lt_prog_compiler_static='$wl-static' 9352 ;; 9353 esac 8932 9354 ;; 8933 9355 … … 8945 9367 esac 8946 9368 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8947 lt_prog_compiler_static='$ {wl}-a ${wl}archive'9369 lt_prog_compiler_static='$wl-a ${wl}archive' 8948 9370 ;; 8949 9371 … … 8954 9376 ;; 8955 9377 8956 linux* | k*bsd*-gnu | kopensolaris*-gnu )9378 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8957 9379 case $cc_basename in 8958 # old Intel for x86_64 which still supported -KPIC.9380 # old Intel for x86_64, which still supported -KPIC. 8959 9381 ecc*) 8960 9382 lt_prog_compiler_wl='-Wl,' … … 8981 9403 lt_prog_compiler_static='-Bstatic' 8982 9404 ;; 9405 tcc*) 9406 # Fabrice Bellard et al's Tiny C Compiler 9407 lt_prog_compiler_wl='-Wl,' 9408 lt_prog_compiler_pic='-fPIC' 9409 lt_prog_compiler_static='-static' 9410 ;; 8983 9411 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8984 9412 # Portland Group compilers (*not* the Pentium gcc compiler, … … 9001 9429 *) 9002 9430 case `$CC -V 2>&1 | sed 5q` in 9003 *Sun\ F* | *Sun*Fortran*)9431 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9004 9432 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9005 9433 lt_prog_compiler_pic='-KPIC' 9006 9434 lt_prog_compiler_static='-Bstatic' 9007 9435 lt_prog_compiler_wl='' 9436 ;; 9437 *Sun\ F* | *Sun*Fortran*) 9438 lt_prog_compiler_pic='-KPIC' 9439 lt_prog_compiler_static='-Bstatic' 9440 lt_prog_compiler_wl='-Qoption ld ' 9008 9441 ;; 9009 9442 *Sun\ C*) … … 9012 9445 lt_prog_compiler_static='-Bstatic' 9013 9446 lt_prog_compiler_wl='-Wl,' 9447 ;; 9448 *Intel*\ [CF]*Compiler*) 9449 lt_prog_compiler_wl='-Wl,' 9450 lt_prog_compiler_pic='-fPIC' 9451 lt_prog_compiler_static='-static' 9452 ;; 9453 *Portland\ Group*) 9454 lt_prog_compiler_wl='-Wl,' 9455 lt_prog_compiler_pic='-fpic' 9456 lt_prog_compiler_static='-Bstatic' 9014 9457 ;; 9015 9458 esac … … 9063 9506 9064 9507 sysv4*MP*) 9065 if test -d /usr/nec ;then9508 if test -d /usr/nec; then 9066 9509 lt_prog_compiler_pic='-Kconform_pic' 9067 9510 lt_prog_compiler_static='-Bstatic' … … 9092 9535 9093 9536 case $host_os in 9094 # For platforms whichdo not support PIC, -DPIC is meaningless:9537 # For platforms that do not support PIC, -DPIC is meaningless: 9095 9538 *djgpp*) 9096 9539 lt_prog_compiler_pic= … … 9124 9567 ac_outfile=conftest.$ac_objext 9125 9568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9126 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9569 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9127 9570 # Insert the option either (1) after the last *FLAGS variable, or 9128 9571 # (2) before a word containing "conftest.", or (3) at the end. … … 9154 9597 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9155 9598 9156 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then9599 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9157 9600 case $lt_prog_compiler_pic in 9158 9601 "" | " "*) ;; … … 9186 9629 else 9187 9630 lt_cv_prog_compiler_static_works=no 9188 save_LDFLAGS= "$LDFLAGS"9631 save_LDFLAGS=$LDFLAGS 9189 9632 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9190 9633 echo "$lt_simple_link_test_code" > conftest.$ac_ext … … 9205 9648 fi 9206 9649 $RM -r conftest* 9207 LDFLAGS= "$save_LDFLAGS"9650 LDFLAGS=$save_LDFLAGS 9208 9651 9209 9652 fi … … 9211 9654 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9212 9655 9213 if test x"$lt_cv_prog_compiler_static_works" = xyes; then9656 if test yes = "$lt_cv_prog_compiler_static_works"; then 9214 9657 : 9215 9658 else … … 9331 9774 9332 9775 9333 hard_links= "nottested"9334 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then9776 hard_links=nottested 9777 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9335 9778 # do not overwrite the value of need_locks provided by the user 9336 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 … … 9344 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9345 9788 $as_echo "$hard_links" >&6; } 9346 if test "$hard_links" = no; then9347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&59348 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}9789 if test no = "$hard_links"; then 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9791 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9349 9792 need_locks=warn 9350 9793 fi … … 9374 9817 hardcode_direct_absolute=no 9375 9818 hardcode_libdir_flag_spec= 9376 hardcode_libdir_flag_spec_ld=9377 9819 hardcode_libdir_separator= 9378 9820 hardcode_minus_L=no … … 9390 9832 include_expsyms= 9391 9833 # exclude_expsyms can be an extended regexp of symbols to exclude 9392 # it will be wrapped by ` (' and `)$', so one must not match beginning or9393 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',9394 # as well as any symbol that contains `d'.9834 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9835 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9836 # as well as any symbol that contains 'd'. 9395 9837 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9396 9838 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out … … 9407 9849 # When not using gcc, we currently assume that we are using 9408 9850 # Microsoft Visual C++. 9409 if test "$GCC" != yes; then9851 if test yes != "$GCC"; then 9410 9852 with_gnu_ld=no 9411 9853 fi … … 9415 9857 with_gnu_ld=yes 9416 9858 ;; 9417 openbsd* )9859 openbsd* | bitrig*) 9418 9860 with_gnu_ld=no 9419 9861 ;; … … 9428 9870 # that we're better off using the native interface for both. 9429 9871 lt_use_gnu_ld_interface=no 9430 if test "$with_gnu_ld" = yes; then9872 if test yes = "$with_gnu_ld"; then 9431 9873 case $host_os in 9432 9874 aix*) … … 9450 9892 fi 9451 9893 9452 if test "$lt_use_gnu_ld_interface" = yes; then9894 if test yes = "$lt_use_gnu_ld_interface"; then 9453 9895 # If archive_cmds runs LD, not CC, wlarc should be empty 9454 wlarc='$ {wl}'9896 wlarc='$wl' 9455 9897 9456 9898 # Set some defaults for GNU ld with shared library support. These … … 9458 9900 # here allows them to be overridden if necessary. 9459 9901 runpath_var=LD_RUN_PATH 9460 hardcode_libdir_flag_spec='$ {wl}-rpath ${wl}$libdir'9461 export_dynamic_flag_spec='$ {wl}--export-dynamic'9902 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9903 export_dynamic_flag_spec='$wl--export-dynamic' 9462 9904 # ancient GNU ld didn't support --whole-archive et. al. 9463 9905 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9464 whole_archive_flag_spec= "$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'9906 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9465 9907 else 9466 9908 whole_archive_flag_spec= 9467 9909 fi 9468 9910 supports_anon_versioning=no 9469 case `$LD -v 2>&1` in9911 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9470 9912 *GNU\ gold*) supports_anon_versioning=yes ;; 9471 9913 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 … … 9480 9922 aix[3-9]*) 9481 9923 # On AIX/PPC, the GNU linker is very broken 9482 if test "$host_cpu" != ia64; then9924 if test ia64 != "$host_cpu"; then 9483 9925 ld_shlibs=no 9484 9926 cat <<_LT_EOF 1>&2 … … 9499 9941 powerpc) 9500 9942 # see comment about AmigaOS4 .so support 9501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'9943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9502 9944 archive_expsym_cmds='' 9503 9945 ;; … … 9515 9957 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9516 9958 # support --undefined. This deserves some investigation. FIXME 9517 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'9959 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9518 9960 else 9519 9961 ld_shlibs=no … … 9525 9967 # as there is no search path for DLLs. 9526 9968 hardcode_libdir_flag_spec='-L$libdir' 9527 export_dynamic_flag_spec='$ {wl}--export-all-symbols'9969 export_dynamic_flag_spec='$wl--export-all-symbols' 9528 9970 allow_undefined_flag=unsupported 9529 9971 always_export_symbols=no … … 9533 9975 9534 9976 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $ {wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'9536 # If the export-symbols file already is a .def file (1st line9537 # is EXPORTS), use it as is; otherwise, prepend...9538 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then9539 9540 9541 9542 9543 9544 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'9977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9978 # If the export-symbols file already is a .def file, use it as 9979 # is; otherwise, prepend EXPORTS... 9980 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9981 cp $export_symbols $output_objdir/$soname.def; 9982 else 9983 echo EXPORTS > $output_objdir/$soname.def; 9984 cat $export_symbols >> $output_objdir/$soname.def; 9985 fi~ 9986 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9545 9987 else 9546 9988 ld_shlibs=no … … 9549 9991 9550 9992 haiku*) 9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'9993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9552 9994 link_all_deplibs=yes 9995 ;; 9996 9997 os2*) 9998 hardcode_libdir_flag_spec='-L$libdir' 9999 hardcode_minus_L=yes 10000 allow_undefined_flag=unsupported 10001 shrext_cmds=.dll 10002 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10003 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10004 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10005 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10006 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10007 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10008 emximp -o $lib $output_objdir/$libname.def' 10009 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10010 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10011 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10012 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10013 prefix_cmds="$SED"~ 10014 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10015 prefix_cmds="$prefix_cmds -e 1d"; 10016 fi~ 10017 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10018 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10019 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10020 emximp -o $lib $output_objdir/$libname.def' 10021 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10022 enable_shared_with_static_runtimes=yes 9553 10023 ;; 9554 10024 … … 9556 10026 hardcode_direct=no 9557 10027 hardcode_shlibpath_var=no 9558 hardcode_libdir_flag_spec='$ {wl}-rpath,$libdir'9559 export_dynamic_flag_spec='$ {wl}-E'10028 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10029 export_dynamic_flag_spec='$wl-E' 9560 10030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9561 10031 # Instead, shared libraries are loaded at an image base (0x10000000 by … … 9564 10034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9565 10035 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'9567 archive_expsym_cmds='sed "s ,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'10036 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10037 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9568 10038 ;; 9569 10039 9570 10040 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9571 10041 tmp_diet=no 9572 if test "$host_os" = linux-dietlibc; then10042 if test linux-dietlibc = "$host_os"; then 9573 10043 case $cc_basename in 9574 10044 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) … … 9576 10046 fi 9577 10047 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9578 && test "$tmp_diet" = no10048 && test no = "$tmp_diet" 9579 10049 then 9580 10050 tmp_addflag=' $pic_flag' … … 9582 10052 case $cc_basename,$host_cpu in 9583 10053 pgcc*) # Portland Group C compiler 9584 whole_archive_flag_spec='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'10054 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9585 10055 tmp_addflag=' $pic_flag' 9586 10056 ;; 9587 10057 pgf77* | pgf90* | pgf95* | pgfortran*) 9588 10058 # Portland Group f77 and f90 compilers 9589 whole_archive_flag_spec='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'10059 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9590 10060 tmp_addflag=' $pic_flag -Mnomain' ;; 9591 10061 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 … … 9598 10068 whole_archive_flag_spec= 9599 10069 tmp_sharedflag='--shared' ;; 10070 nagfor*) # NAGFOR 5.3 10071 tmp_sharedflag='-Wl,-shared' ;; 9600 10072 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9601 10073 tmp_sharedflag='-qmkshrobj' 9602 10074 tmp_addflag= ;; 9603 10075 nvcc*) # Cuda Compiler Driver 2.2 9604 whole_archive_flag_spec='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'10076 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9605 10077 compiler_needs_object=yes 9606 10078 ;; … … 9608 10080 case `$CC -V 2>&1 | sed 5q` in 9609 10081 *Sun\ C*) # Sun C 5.9 9610 whole_archive_flag_spec='$ {wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'10082 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9611 10083 compiler_needs_object=yes 9612 10084 tmp_sharedflag='-G' ;; … … 9614 10086 tmp_sharedflag='-G' ;; 9615 10087 esac 9616 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'9617 9618 if test "x$supports_anon_versioning" = xyes; then10088 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10089 10090 if test yes = "$supports_anon_versioning"; then 9619 10091 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9620 9621 9622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'10092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10093 echo "local: *; };" >> $output_objdir/$libname.ver~ 10094 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9623 10095 fi 9624 10096 9625 10097 case $cc_basename in 10098 tcc*) 10099 export_dynamic_flag_spec='-rdynamic' 10100 ;; 9626 10101 xlf* | bgf* | bgxlf* | mpixlf*) 9627 10102 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9628 10103 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9629 hardcode_libdir_flag_spec= 9630 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10104 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9631 10105 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9632 if test "x$supports_anon_versioning" = xyes; then10106 if test yes = "$supports_anon_versioning"; then 9633 10107 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9634 9635 9636 10108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10109 echo "local: *; };" >> $output_objdir/$libname.ver~ 10110 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9637 10111 fi 9638 10112 ;; … … 9648 10122 wlarc= 9649 10123 else 9650 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'9651 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'10124 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10125 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9652 10126 fi 9653 10127 ;; … … 9667 10141 _LT_EOF 9668 10142 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'9670 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'10143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10144 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9671 10145 else 9672 10146 ld_shlibs=no … … 9680 10154 cat <<_LT_EOF 1>&2 9681 10155 9682 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can 10156 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9683 10157 *** reliably create shared libraries on SCO systems. Therefore, libtool 9684 10158 *** is disabling shared libraries support. We urge you to upgrade GNU … … 9695 10169 # requires that you compile everything twice, which is a pain. 9696 10170 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9697 hardcode_libdir_flag_spec='$ {wl}-rpath ${wl}$libdir'9698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'9699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'10171 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10173 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9700 10174 else 9701 10175 ld_shlibs=no … … 9714 10188 *) 9715 10189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'9717 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'10190 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10191 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9718 10192 else 9719 10193 ld_shlibs=no … … 9722 10196 esac 9723 10197 9724 if test "$ld_shlibs" = no; then10198 if test no = "$ld_shlibs"; then 9725 10199 runpath_var= 9726 10200 hardcode_libdir_flag_spec= … … 9738 10212 # are no directories specified by -L. 9739 10213 hardcode_minus_L=yes 9740 if test "$GCC" = yes&& test -z "$lt_prog_compiler_static"; then10214 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9741 10215 # Neither direct hardcoding nor static linking is supported with a 9742 10216 # broken collect2. … … 9746 10220 9747 10221 aix[4-9]*) 9748 if test "$host_cpu" = ia64; then10222 if test ia64 = "$host_cpu"; then 9749 10223 # On IA64, the linker does run time linking by default, so we don't 9750 10224 # have to do anything special. 9751 10225 aix_use_runtimelinking=no 9752 10226 exp_sym_flag='-Bexport' 9753 no_entry_flag= ""10227 no_entry_flag= 9754 10228 else 9755 10229 # If we're using GNU nm, then we don't want the "-C" option. 9756 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9757 # Also, AIX nm treats weak defined symbols like other global 9758 # defined symbols, whereas GNU nm marks them as "W". 10230 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10231 # Without the "-l" option, or with the "-B" option, AIX nm treats 10232 # weak defined symbols like other global defined symbols, whereas 10233 # GNU nm marks them as "W". 10234 # While the 'weak' keyword is ignored in the Export File, we need 10235 # it in the Import File for the 'aix-soname' feature, so we have 10236 # to replace the "-B" option with "-P" for AIX nm. 9759 10237 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9760 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3} }'\'' | sort -u > $export_symbols'10238 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9761 10239 else 9762 export_symbols_cmds=' $NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3} }'\'' | sort -u > $export_symbols'10240 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9763 10241 fi 9764 10242 aix_use_runtimelinking=no … … 9766 10244 # Test if we are trying to use run time linking or normal 9767 10245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9768 # need to do runtime linking. 10246 # have runtime linking enabled, and use it for executables. 10247 # For shared libraries, we enable/disable runtime linking 10248 # depending on the kind of the shared library created - 10249 # when "with_aix_soname,aix_use_runtimelinking" is: 10250 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10251 # "aix,yes" lib.so shared, rtl:yes, for executables 10252 # lib.a static archive 10253 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10254 # lib.a(lib.so.V) shared, rtl:no, for executables 10255 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10256 # lib.a(lib.so.V) shared, rtl:no 10257 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10258 # lib.a static archive 9769 10259 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9770 10260 for ld_flag in $LDFLAGS; do 9771 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then10261 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9772 10262 aix_use_runtimelinking=yes 9773 10263 break 9774 10264 fi 9775 10265 done 10266 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10267 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10268 # so we don't have lib.a shared libs to link our executables. 10269 # We have to force runtime linking in this case. 10270 aix_use_runtimelinking=yes 10271 LDFLAGS="$LDFLAGS -Wl,-brtl" 10272 fi 9776 10273 ;; 9777 10274 esac … … 9792 10289 hardcode_libdir_separator=':' 9793 10290 link_all_deplibs=yes 9794 file_list_spec='${wl}-f,' 9795 9796 if test "$GCC" = yes; then 10291 file_list_spec='$wl-f,' 10292 case $with_aix_soname,$aix_use_runtimelinking in 10293 aix,*) ;; # traditional, no import file 10294 svr4,* | *,yes) # use import file 10295 # The Import File defines what to hardcode. 10296 hardcode_direct=no 10297 hardcode_direct_absolute=no 10298 ;; 10299 esac 10300 10301 if test yes = "$GCC"; then 9797 10302 case $host_os in aix4.[012]|aix4.[012].*) 9798 10303 # We only want to do this on AIX 4.2 and lower, the check 9799 10304 # below for broken collect2 doesn't work under 4.3+ 9800 collect2name=`$ {CC}-print-prog-name=collect2`10305 collect2name=`$CC -print-prog-name=collect2` 9801 10306 if test -f "$collect2name" && 9802 10307 strings "$collect2name" | $GREP resolve_lib_name >/dev/null … … 9817 10322 esac 9818 10323 shared_flag='-shared' 9819 if test "$aix_use_runtimelinking" = yes; then9820 shared_flag="$shared_flag "'$ {wl}-G'10324 if test yes = "$aix_use_runtimelinking"; then 10325 shared_flag="$shared_flag "'$wl-G' 9821 10326 fi 9822 link_all_deplibs=no 10327 # Need to ensure runtime linking is disabled for the traditional 10328 # shared library, or the linker may eventually find shared libraries 10329 # /with/ Import File - we do not want to mix them. 10330 shared_flag_aix='-shared' 10331 shared_flag_svr4='-shared $wl-G' 9823 10332 else 9824 10333 # not using gcc 9825 if test "$host_cpu" = ia64; then10334 if test ia64 = "$host_cpu"; then 9826 10335 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9827 10336 # chokes on -Wl,-G. The following line is correct: 9828 10337 shared_flag='-G' 9829 10338 else 9830 if test "$aix_use_runtimelinking" = yes; then9831 shared_flag='$ {wl}-G'10339 if test yes = "$aix_use_runtimelinking"; then 10340 shared_flag='$wl-G' 9832 10341 else 9833 shared_flag='$ {wl}-bM:SRE'10342 shared_flag='$wl-bM:SRE' 9834 10343 fi 10344 shared_flag_aix='$wl-bM:SRE' 10345 shared_flag_svr4='$wl-G' 9835 10346 fi 9836 10347 fi 9837 10348 9838 export_dynamic_flag_spec='$ {wl}-bexpall'10349 export_dynamic_flag_spec='$wl-bexpall' 9839 10350 # It seems that -bexpall does not export symbols beginning with 9840 10351 # underscore (_), so it is better to generate a list of symbols to export. 9841 10352 always_export_symbols=yes 9842 if test "$aix_use_runtimelinking" = yes; then10353 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9843 10354 # Warning - without using the other runtime loading flags (-brtl), 9844 10355 # -berok will link without error, but may produce a broken library. … … 9846 10357 # Determine the default libpath from the value encoded in an 9847 10358 # empty executable. 9848 if test "${lt_cv_aix_libpath+set}" = set; then10359 if test set = "${lt_cv_aix_libpath+set}"; then 9849 10360 aix_libpath=$lt_cv_aix_libpath 9850 10361 else … … 9881 10392 conftest$ac_exeext conftest.$ac_ext 9882 10393 if test -z "$lt_cv_aix_libpath_"; then 9883 lt_cv_aix_libpath_= "/usr/lib:/lib"10394 lt_cv_aix_libpath_=/usr/lib:/lib 9884 10395 fi 9885 10396 … … 9889 10400 fi 9890 10401 9891 hardcode_libdir_flag_spec='$ {wl}-blibpath:$libdir:'"$aix_libpath"9892 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"10402 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10403 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9893 10404 else 9894 if test "$host_cpu" = ia64; then9895 hardcode_libdir_flag_spec='$ {wl}-R $libdir:/usr/lib:/lib'10405 if test ia64 = "$host_cpu"; then 10406 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9896 10407 allow_undefined_flag="-z nodefs" 9897 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$ {wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"10408 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 9898 10409 else 9899 10410 # Determine the default libpath from the value encoded in an 9900 10411 # empty executable. 9901 if test "${lt_cv_aix_libpath+set}" = set; then10412 if test set = "${lt_cv_aix_libpath+set}"; then 9902 10413 aix_libpath=$lt_cv_aix_libpath 9903 10414 else … … 9934 10445 conftest$ac_exeext conftest.$ac_ext 9935 10446 if test -z "$lt_cv_aix_libpath_"; then 9936 lt_cv_aix_libpath_= "/usr/lib:/lib"10447 lt_cv_aix_libpath_=/usr/lib:/lib 9937 10448 fi 9938 10449 … … 9942 10453 fi 9943 10454 9944 hardcode_libdir_flag_spec='$ {wl}-blibpath:$libdir:'"$aix_libpath"10455 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9945 10456 # Warning - without using the other run time loading flags, 9946 10457 # -berok will link without error, but may produce a broken library. 9947 no_undefined_flag=' $ {wl}-bernotok'9948 allow_undefined_flag=' $ {wl}-berok'9949 if test "$with_gnu_ld" = yes; then10458 no_undefined_flag=' $wl-bernotok' 10459 allow_undefined_flag=' $wl-berok' 10460 if test yes = "$with_gnu_ld"; then 9950 10461 # We only use this code for GNU lds that support --whole-archive. 9951 whole_archive_flag_spec='$ {wl}--whole-archive$convenience ${wl}--no-whole-archive'10462 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9952 10463 else 9953 10464 # Exported symbols can be pulled into shared objects from archives … … 9955 10466 fi 9956 10467 archive_cmds_need_lc=yes 9957 # This is similar to how AIX traditionally builds its shared libraries. 9958 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10468 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10469 # -brtl affects multiple linker settings, -berok does not and is overridden later 10470 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10471 if test svr4 != "$with_aix_soname"; then 10472 # This is similar to how AIX traditionally builds its shared libraries. 10473 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10474 fi 10475 if test aix != "$with_aix_soname"; then 10476 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10477 else 10478 # used by -dlpreopen to get the symbols 10479 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10480 fi 10481 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9959 10482 fi 9960 10483 fi … … 9965 10488 powerpc) 9966 10489 # see comment about AmigaOS4 .so support 9967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'10490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9968 10491 archive_expsym_cmds='' 9969 10492 ;; … … 9995 10518 libext=lib 9996 10519 # Tell ltmain to make .dll files, not .so files. 9997 shrext_cmds= ".dll"10520 shrext_cmds=.dll 9998 10521 # FIXME: Setting linknames here is a bad hack. 9999 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10000 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10001 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10002 else 10003 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10004 fi~ 10005 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10006 linknames=' 10522 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10523 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10524 cp "$export_symbols" "$output_objdir/$soname.def"; 10525 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10526 else 10527 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10528 fi~ 10529 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10530 linknames=' 10007 10531 # The linker will not automatically build a static lib if we build a DLL. 10008 10532 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10009 10533 enable_shared_with_static_runtimes=yes 10534 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10010 10535 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10011 10536 # Don't use ranlib 10012 10537 old_postinstall_cmds='chmod 644 $oldlib' 10013 10538 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10014 10015 10016 10017 10018 lt_outputfile="$lt_outputfile.exe" 10019 lt_tool_outputfile="$lt_tool_outputfile.exe" 10020 10021 10022 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then10023 10024 10025 10539 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10540 case $lt_outputfile in 10541 *.exe|*.EXE) ;; 10542 *) 10543 lt_outputfile=$lt_outputfile.exe 10544 lt_tool_outputfile=$lt_tool_outputfile.exe 10545 ;; 10546 esac~ 10547 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10548 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10549 $RM "$lt_outputfile.manifest"; 10550 fi' 10026 10551 ;; 10027 10552 *) … … 10032 10557 libext=lib 10033 10558 # Tell ltmain to make .dll files, not .so files. 10034 shrext_cmds= ".dll"10559 shrext_cmds=.dll 10035 10560 # FIXME: Setting linknames here is a bad hack. 10036 10561 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' … … 10051 10576 hardcode_automatic=yes 10052 10577 hardcode_shlibpath_var=unsupported 10053 if test "$lt_cv_ld_force_load" = "yes"; then 10054 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10578 if test yes = "$lt_cv_ld_force_load"; then 10579 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10580 10055 10581 else 10056 10582 whole_archive_flag_spec='' 10057 10583 fi 10058 10584 link_all_deplibs=yes 10059 allow_undefined_flag= "$_lt_dar_allow_undefined"10585 allow_undefined_flag=$_lt_dar_allow_undefined 10060 10586 case $cc_basename in 10061 ifort* ) _lt_dar_can_shared=yes ;;10587 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10062 10588 *) _lt_dar_can_shared=$GCC ;; 10063 10589 esac 10064 if test "$_lt_dar_can_shared" = "yes"; then10590 if test yes = "$_lt_dar_can_shared"; then 10065 10591 output_verbose_link_cmd=func_echo_all 10066 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$ {_lt_dsymutil}"10067 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$ {_lt_dsymutil}"10068 archive_expsym_cmds="sed 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"10069 module_expsym_cmds="sed -e 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"10592 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10593 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10594 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 10595 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 10070 10596 10071 10597 else … … 10079 10605 hardcode_libdir_flag_spec='-L$libdir' 10080 10606 hardcode_shlibpath_var=no 10081 ;;10082 10083 freebsd1*)10084 ld_shlibs=no10085 10607 ;; 10086 10608 … … 10097 10619 10098 10620 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10099 freebsd2 *)10621 freebsd2.*) 10100 10622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10101 10623 hardcode_direct=yes … … 10113 10635 10114 10636 hpux9*) 10115 if test "$GCC" = yes; then10116 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $ {wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib|| mv $output_objdir/$soname $lib'10637 if test yes = "$GCC"; then 10638 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10117 10639 else 10118 archive_cmds='$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'10640 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10119 10641 fi 10120 hardcode_libdir_flag_spec='$ {wl}+b ${wl}$libdir'10642 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10121 10643 hardcode_libdir_separator=: 10122 10644 hardcode_direct=yes … … 10125 10647 # but as the default location of the library. 10126 10648 hardcode_minus_L=yes 10127 export_dynamic_flag_spec='$ {wl}-E'10649 export_dynamic_flag_spec='$wl-E' 10128 10650 ;; 10129 10651 10130 10652 hpux10*) 10131 if test "$GCC" = yes && test "$with_gnu_ld" = no; then10132 archive_cmds='$CC -shared $pic_flag $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'10653 if test yes,no = "$GCC,$with_gnu_ld"; then 10654 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10133 10655 else 10134 10656 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10135 10657 fi 10136 if test "$with_gnu_ld" = no; then 10137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10138 hardcode_libdir_flag_spec_ld='+b $libdir' 10658 if test no = "$with_gnu_ld"; then 10659 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10139 10660 hardcode_libdir_separator=: 10140 10661 hardcode_direct=yes 10141 10662 hardcode_direct_absolute=yes 10142 export_dynamic_flag_spec='$ {wl}-E'10663 export_dynamic_flag_spec='$wl-E' 10143 10664 # hardcode_minus_L: Not really in the search PATH, 10144 10665 # but as the default location of the library. … … 10148 10669 10149 10670 hpux11*) 10150 if test "$GCC" = yes && test "$with_gnu_ld" = no; then10671 if test yes,no = "$GCC,$with_gnu_ld"; then 10151 10672 case $host_cpu in 10152 10673 hppa*64*) 10153 archive_cmds='$CC -shared $ {wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'10674 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10154 10675 ;; 10155 10676 ia64*) 10156 archive_cmds='$CC -shared $pic_flag $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'10677 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10157 10678 ;; 10158 10679 *) 10159 archive_cmds='$CC -shared $pic_flag $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'10680 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10160 10681 ;; 10161 10682 esac … … 10163 10684 case $host_cpu in 10164 10685 hppa*64*) 10165 archive_cmds='$CC -b $ {wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'10686 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10166 10687 ;; 10167 10688 ia64*) 10168 archive_cmds='$CC -b $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'10689 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10169 10690 ;; 10170 10691 *) … … 10178 10699 else 10179 10700 lt_cv_prog_compiler__b=no 10180 save_LDFLAGS= "$LDFLAGS"10701 save_LDFLAGS=$LDFLAGS 10181 10702 LDFLAGS="$LDFLAGS -b" 10182 10703 echo "$lt_simple_link_test_code" > conftest.$ac_ext … … 10197 10718 fi 10198 10719 $RM -r conftest* 10199 LDFLAGS= "$save_LDFLAGS"10720 LDFLAGS=$save_LDFLAGS 10200 10721 10201 10722 fi … … 10203 10724 $as_echo "$lt_cv_prog_compiler__b" >&6; } 10204 10725 10205 if test x"$lt_cv_prog_compiler__b" = xyes; then10206 archive_cmds='$CC -b $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'10726 if test yes = "$lt_cv_prog_compiler__b"; then 10727 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10207 10728 else 10208 10729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' … … 10212 10733 esac 10213 10734 fi 10214 if test "$with_gnu_ld" = no; then10215 hardcode_libdir_flag_spec='$ {wl}+b ${wl}$libdir'10735 if test no = "$with_gnu_ld"; then 10736 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10216 10737 hardcode_libdir_separator=: 10217 10738 … … 10224 10745 hardcode_direct=yes 10225 10746 hardcode_direct_absolute=yes 10226 export_dynamic_flag_spec='$ {wl}-E'10747 export_dynamic_flag_spec='$wl-E' 10227 10748 10228 10749 # hardcode_minus_L: Not really in the search PATH, … … 10235 10756 10236 10757 irix5* | irix6* | nonstopux*) 10237 if test "$GCC" = yes; then10238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'10758 if test yes = "$GCC"; then 10759 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10239 10760 # Try to use the -exported_symbol ld option, if it does not 10240 10761 # work, assume that -exports_file does not work either and … … 10246 10767 $as_echo_n "(cached) " >&6 10247 10768 else 10248 save_LDFLAGS= "$LDFLAGS"10249 LDFLAGS="$LDFLAGS -shared $ {wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"10769 save_LDFLAGS=$LDFLAGS 10770 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10250 10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10251 10772 /* end confdefs.h. */ … … 10259 10780 rm -f core conftest.err conftest.$ac_objext \ 10260 10781 conftest$ac_exeext conftest.$ac_ext 10261 LDFLAGS= "$save_LDFLAGS"10782 LDFLAGS=$save_LDFLAGS 10262 10783 fi 10263 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10264 10785 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 10265 if test "$lt_cv_irix_exported_symbol" = yes; then10266 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'10786 if test yes = "$lt_cv_irix_exported_symbol"; then 10787 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10267 10788 fi 10789 link_all_deplibs=no 10268 10790 else 10269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $ {output_objdir}/so_locations -o $lib'10270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $ {output_objdir}/so_locations -exports_file $export_symbols -o $lib'10791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 10271 10793 fi 10272 10794 archive_cmds_need_lc='no' 10273 hardcode_libdir_flag_spec='$ {wl}-rpath ${wl}$libdir'10795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10274 10796 hardcode_libdir_separator=: 10275 10797 inherit_rpath=yes 10276 10798 link_all_deplibs=yes 10799 ;; 10800 10801 linux*) 10802 case $cc_basename in 10803 tcc*) 10804 # Fabrice Bellard et al's Tiny C Compiler 10805 ld_shlibs=yes 10806 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10807 ;; 10808 esac 10277 10809 ;; 10278 10810 … … 10291 10823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10292 10824 hardcode_direct=yes 10293 hardcode_libdir_flag_spec='$ {wl}-rpath ${wl}$libdir'10825 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10294 10826 hardcode_libdir_separator=: 10295 10827 hardcode_shlibpath_var=no … … 10299 10831 ;; 10300 10832 10301 openbsd* )10833 openbsd* | bitrig*) 10302 10834 if test -f /usr/libexec/ld.so; then 10303 10835 hardcode_direct=yes 10304 10836 hardcode_shlibpath_var=no 10305 10837 hardcode_direct_absolute=yes 10306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then10838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10307 10839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10308 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $ {wl}-retain-symbols-file,$export_symbols'10309 hardcode_libdir_flag_spec='$ {wl}-rpath,$libdir'10310 export_dynamic_flag_spec='$ {wl}-E'10840 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10841 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10842 export_dynamic_flag_spec='$wl-E' 10311 10843 else 10312 case $host_os in 10313 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10315 hardcode_libdir_flag_spec='-R$libdir' 10316 ;; 10317 *) 10318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10319 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10320 ;; 10321 esac 10844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10845 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10322 10846 fi 10323 10847 else … … 10330 10854 hardcode_minus_L=yes 10331 10855 allow_undefined_flag=unsupported 10332 archive_cmds='$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' 10333 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10856 shrext_cmds=.dll 10857 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10858 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10859 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10860 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10861 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10862 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10863 emximp -o $lib $output_objdir/$libname.def' 10864 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10865 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10866 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10867 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10868 prefix_cmds="$SED"~ 10869 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10870 prefix_cmds="$prefix_cmds -e 1d"; 10871 fi~ 10872 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10873 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10874 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10875 emximp -o $lib $output_objdir/$libname.def' 10876 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10877 enable_shared_with_static_runtimes=yes 10334 10878 ;; 10335 10879 10336 10880 osf3*) 10337 if test "$GCC" = yes; then10338 allow_undefined_flag=' $ {wl}-expect_unresolved ${wl}\*'10339 archive_cmds='$CC -shared$ {allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'10881 if test yes = "$GCC"; then 10882 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10883 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10340 10884 else 10341 10885 allow_undefined_flag=' -expect_unresolved \*' 10342 archive_cmds='$CC -shared$ {allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'10886 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10343 10887 fi 10344 10888 archive_cmds_need_lc='no' 10345 hardcode_libdir_flag_spec='$ {wl}-rpath ${wl}$libdir'10889 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10346 10890 hardcode_libdir_separator=: 10347 10891 ;; 10348 10892 10349 10893 osf4* | osf5*) # as osf3* with the addition of -msym flag 10350 if test "$GCC" = yes; then10351 allow_undefined_flag=' $ {wl}-expect_unresolved ${wl}\*'10352 archive_cmds='$CC -shared$ {allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'10353 hardcode_libdir_flag_spec='$ {wl}-rpath ${wl}$libdir'10894 if test yes = "$GCC"; then 10895 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10896 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10897 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10354 10898 else 10355 10899 allow_undefined_flag=' -expect_unresolved \*' 10356 archive_cmds='$CC -shared$ {allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'10900 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10357 10901 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10358 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'10902 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10359 10903 10360 10904 # Both c and cxx compiler support -rpath directly … … 10367 10911 solaris*) 10368 10912 no_undefined_flag=' -z defs' 10369 if test "$GCC" = yes; then10370 wlarc='$ {wl}'10371 archive_cmds='$CC -shared $pic_flag $ {wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'10913 if test yes = "$GCC"; then 10914 wlarc='$wl' 10915 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10372 10916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10373 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'10917 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10374 10918 else 10375 10919 case `$CC -V 2>&1` in 10376 10920 *"Compilers 5.0"*) 10377 10921 wlarc='' 10378 archive_cmds='$LD -G$ {allow_undefined_flag}-h $soname -o $lib $libobjs $deplibs $linker_flags'10922 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10379 10923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10380 $LD -G${allow_undefined_flag}-M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'10924 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10381 10925 ;; 10382 10926 *) 10383 wlarc='$ {wl}'10384 archive_cmds='$CC -G$ {allow_undefined_flag}-h $soname -o $lib $libobjs $deplibs $compiler_flags'10927 wlarc='$wl' 10928 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10385 10929 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10386 $CC -G${allow_undefined_flag}-M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'10930 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10387 10931 ;; 10388 10932 esac … … 10394 10938 *) 10395 10939 # The compiler driver will combine and reorder linker options, 10396 # but understands `-z linker_flag'. GCC discards it without `$wl',10940 # but understands '-z linker_flag'. GCC discards it without '$wl', 10397 10941 # but is careful enough not to reorder. 10398 10942 # Supported since Solaris 2.6 (maybe 2.5.1?) 10399 if test "$GCC" = yes; then10400 whole_archive_flag_spec='$ {wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'10943 if test yes = "$GCC"; then 10944 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10401 10945 else 10402 10946 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' … … 10408 10952 10409 10953 sunos4*) 10410 if test "x$host_vendor" = xsequent; then10954 if test sequent = "$host_vendor"; then 10411 10955 # Use $CC to link under sequent, because it throws in some extra .o 10412 10956 # files that make .init and .fini sections work. 10413 archive_cmds='$CC -G $ {wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'10957 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10414 10958 else 10415 10959 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' … … 10460 11004 10461 11005 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10462 no_undefined_flag='$ {wl}-z,text'11006 no_undefined_flag='$wl-z,text' 10463 11007 archive_cmds_need_lc=no 10464 11008 hardcode_shlibpath_var=no 10465 11009 runpath_var='LD_RUN_PATH' 10466 11010 10467 if test "$GCC" = yes; then10468 archive_cmds='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10469 archive_expsym_cmds='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11011 if test yes = "$GCC"; then 11012 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11013 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10470 11014 else 10471 archive_cmds='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10472 archive_expsym_cmds='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11015 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11016 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10473 11017 fi 10474 11018 ;; 10475 11019 10476 11020 sysv5* | sco3.2v5* | sco5v6*) 10477 # Note: We canNOT use -z defs as we might desire, because we do not11021 # Note: We CANNOT use -z defs as we might desire, because we do not 10478 11022 # link with -lc, and that would cause any symbols used from libc to 10479 11023 # always be unresolved, which means just about no library would … … 10481 11025 # though, which does catch some bad symbols but isn't as heavy-handed 10482 11026 # as -z defs. 10483 no_undefined_flag='$ {wl}-z,text'10484 allow_undefined_flag='$ {wl}-z,nodefs'11027 no_undefined_flag='$wl-z,text' 11028 allow_undefined_flag='$wl-z,nodefs' 10485 11029 archive_cmds_need_lc=no 10486 11030 hardcode_shlibpath_var=no 10487 hardcode_libdir_flag_spec='$ {wl}-R,$libdir'11031 hardcode_libdir_flag_spec='$wl-R,$libdir' 10488 11032 hardcode_libdir_separator=':' 10489 11033 link_all_deplibs=yes 10490 export_dynamic_flag_spec='$ {wl}-Bexport'11034 export_dynamic_flag_spec='$wl-Bexport' 10491 11035 runpath_var='LD_RUN_PATH' 10492 11036 10493 if test "$GCC" = yes; then10494 archive_cmds='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10495 archive_expsym_cmds='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11037 if test yes = "$GCC"; then 11038 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11039 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10496 11040 else 10497 archive_cmds='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10498 archive_expsym_cmds='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11041 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11042 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10499 11043 fi 10500 11044 ;; … … 10511 11055 esac 10512 11056 10513 if test x$host_vendor = xsni; then11057 if test sni = "$host_vendor"; then 10514 11058 case $host in 10515 11059 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10516 export_dynamic_flag_spec='$ {wl}-Blargedynsym'11060 export_dynamic_flag_spec='$wl-Blargedynsym' 10517 11061 ;; 10518 11062 esac … … 10522 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10523 11067 $as_echo "$ld_shlibs" >&6; } 10524 test "$ld_shlibs" = no&& can_build_shared=no11068 test no = "$ld_shlibs" && can_build_shared=no 10525 11069 10526 11070 with_gnu_ld=$with_gnu_ld … … 10548 11092 archive_cmds_need_lc=yes 10549 11093 10550 if test "$enable_shared" = yes && test "$GCC" = yes; then11094 if test yes,yes = "$GCC,$enable_shared"; then 10551 11095 case $archive_cmds in 10552 11096 *'~'*) … … 10760 11304 10761 11305 10762 10763 10764 10765 10766 10767 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10768 11307 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10769 11308 10770 if test "$GCC" = yes; then11309 if test yes = "$GCC"; then 10771 11310 case $host_os in 10772 darwin*) lt_awk_arg= "/^libraries:/,/LR/";;10773 *) lt_awk_arg= "/^libraries:/";;11311 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11312 *) lt_awk_arg='/^libraries:/' ;; 10774 11313 esac 10775 11314 case $host_os in 10776 mingw* | cegcc*) lt_sed_strip_eq= "s,=\([A-Za-z]:\),\1,g";;10777 *) lt_sed_strip_eq= "s,=/,/,g";;11315 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11316 *) lt_sed_strip_eq='s|=/|/|g' ;; 10778 11317 esac 10779 11318 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` … … 10791 11330 esac 10792 11331 # Ok, now we have the path, separated by spaces, we can step through it 10793 # and add multilib dir if necessary. 11332 # and add multilib dir if necessary... 10794 11333 lt_tmp_lt_search_path_spec= 10795 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11334 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11335 # ...but if some path component already ends with the multilib dir we assume 11336 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11337 case "$lt_multi_os_dir; $lt_search_path_spec " in 11338 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11339 lt_multi_os_dir= 11340 ;; 11341 esac 10796 11342 for lt_sys_path in $lt_search_path_spec; do 10797 if test -d "$lt_sys_path /$lt_multi_os_dir"; then10798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path /$lt_multi_os_dir"10799 el se11343 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11344 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11345 elif test -n "$lt_multi_os_dir"; then 10800 11346 test -d "$lt_sys_path" && \ 10801 11347 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" … … 10803 11349 done 10804 11350 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10805 BEGIN {RS =" "; FS="/|\n";} {10806 lt_foo ="";10807 lt_count =0;11351 BEGIN {RS = " "; FS = "/|\n";} { 11352 lt_foo = ""; 11353 lt_count = 0; 10808 11354 for (lt_i = NF; lt_i > 0; lt_i--) { 10809 11355 if ($lt_i != "" && $lt_i != ".") { … … 10812 11358 } else { 10813 11359 if (lt_count == 0) { 10814 lt_foo ="/" $lt_i lt_foo;11360 lt_foo = "/" $lt_i lt_foo; 10815 11361 } else { 10816 11362 lt_count--; … … 10826 11372 case $host_os in 10827 11373 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10828 $SED 's ,/\([A-Za-z]:\),\1,g'` ;;11374 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10829 11375 esac 10830 11376 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` … … 10835 11381 libname_spec='lib$name' 10836 11382 soname_spec= 10837 shrext_cmds= ".so"11383 shrext_cmds=.so 10838 11384 postinstall_cmds= 10839 11385 postuninstall_cmds= … … 10852 11398 need_version=unknown 10853 11399 11400 11401 10854 11402 case $host_os in 10855 11403 aix3*) 10856 version_type=linux 10857 library_names_spec='$ {libname}${release}${shared_ext}$versuffix $libname.a'11404 version_type=linux # correct to gnu/linux during the next big refactor 11405 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10858 11406 shlibpath_var=LIBPATH 10859 11407 10860 11408 # AIX 3 has no versioning support, so we append a major version to the name. 10861 soname_spec='$ {libname}${release}${shared_ext}$major'11409 soname_spec='$libname$release$shared_ext$major' 10862 11410 ;; 10863 11411 10864 11412 aix[4-9]*) 10865 version_type=linux 11413 version_type=linux # correct to gnu/linux during the next big refactor 10866 11414 need_lib_prefix=no 10867 11415 need_version=no 10868 11416 hardcode_into_libs=yes 10869 if test "$host_cpu" = ia64; then11417 if test ia64 = "$host_cpu"; then 10870 11418 # AIX 5 supports IA64 10871 library_names_spec='$ {libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'11419 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10872 11420 shlibpath_var=LD_LIBRARY_PATH 10873 11421 else 10874 11422 # With GCC up to 2.95.x, collect2 would create an import file 10875 11423 # for dependence libraries. The import file would start with 10876 # the line `#! .'. This would cause the generated library to10877 # depend on `.', always an invalid library. This was fixed in11424 # the line '#! .'. This would cause the generated library to 11425 # depend on '.', always an invalid library. This was fixed in 10878 11426 # development snapshots of GCC prior to 3.0. 10879 11427 case $host_os in … … 10881 11429 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10882 11430 echo ' yes ' 10883 echo '#endif'; } | $ {CC}-E - | $GREP yes > /dev/null; then11431 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10884 11432 : 10885 11433 else … … 10888 11436 ;; 10889 11437 esac 10890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11438 # Using Import Files as archive members, it is possible to support 11439 # filename-based versioning of shared library archives on AIX. While 11440 # this would work for both with and without runtime linking, it will 11441 # prevent static linking of such archives. So we do filename-based 11442 # shared library versioning with .so extension only, which is used 11443 # when both runtime linking and shared linking is enabled. 11444 # Unfortunately, runtime linking may impact performance, so we do 11445 # not want this to be the default eventually. Also, we use the 11446 # versioned .so libs for executables only if there is the -brtl 11447 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11448 # To allow for filename-based versioning support, we need to create 11449 # libNAME.so.V as an archive file, containing: 11450 # *) an Import File, referring to the versioned filename of the 11451 # archive as well as the shared archive member, telling the 11452 # bitwidth (32 or 64) of that shared object, and providing the 11453 # list of exported symbols of that shared object, eventually 11454 # decorated with the 'weak' keyword 11455 # *) the shared object with the F_LOADONLY flag set, to really avoid 11456 # it being seen by the linker. 11457 # At run time we better use the real file rather than another symlink, 11458 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11459 11460 case $with_aix_soname,$aix_use_runtimelinking in 11461 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10891 11462 # soname into executable. Probably we can add versioning support to 10892 11463 # collect2, so additional links can be useful in future. 10893 if test "$aix_use_runtimelinking" = yes; then 11464 aix,yes) # traditional libtool 11465 dynamic_linker='AIX unversionable lib.so' 10894 11466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10895 11467 # instead of lib<name>.a to let people know that these are not 10896 11468 # typical AIX shared libraries. 10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10898 else 11469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11470 ;; 11471 aix,no) # traditional AIX only 11472 dynamic_linker='AIX lib.a(lib.so.V)' 10899 11473 # We preserve .a as extension for shared libraries through AIX4.2 10900 11474 # and later when we are not doing run time linking. 10901 library_names_spec='${libname}${release}.a $libname.a' 10902 soname_spec='${libname}${release}${shared_ext}$major' 10903 fi 11475 library_names_spec='$libname$release.a $libname.a' 11476 soname_spec='$libname$release$shared_ext$major' 11477 ;; 11478 svr4,*) # full svr4 only 11479 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11480 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11481 # We do not specify a path in Import Files, so LIBPATH fires. 11482 shlibpath_overrides_runpath=yes 11483 ;; 11484 *,yes) # both, prefer svr4 11485 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11486 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11487 # unpreferred sharedlib libNAME.a needs extra handling 11488 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11489 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11490 # We do not specify a path in Import Files, so LIBPATH fires. 11491 shlibpath_overrides_runpath=yes 11492 ;; 11493 *,no) # both, prefer aix 11494 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11495 library_names_spec='$libname$release.a $libname.a' 11496 soname_spec='$libname$release$shared_ext$major' 11497 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11498 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11499 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11500 ;; 11501 esac 10904 11502 shlibpath_var=LIBPATH 10905 11503 fi … … 10911 11509 # Since July 2007 AmigaOS4 officially supports .so libraries. 10912 11510 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10913 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10914 11512 ;; 10915 11513 m68k) 10916 11514 library_names_spec='$libname.ixlibrary $libname.a' 10917 11515 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10918 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'11516 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10919 11517 ;; 10920 11518 esac … … 10922 11520 10923 11521 beos*) 10924 library_names_spec='$ {libname}${shared_ext}'11522 library_names_spec='$libname$shared_ext' 10925 11523 dynamic_linker="$host_os ld.so" 10926 11524 shlibpath_var=LIBRARY_PATH … … 10928 11526 10929 11527 bsdi[45]*) 10930 version_type=linux 11528 version_type=linux # correct to gnu/linux during the next big refactor 10931 11529 need_version=no 10932 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'10933 soname_spec='$ {libname}${release}${shared_ext}$major'11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11531 soname_spec='$libname$release$shared_ext$major' 10934 11532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10935 11533 shlibpath_var=LD_LIBRARY_PATH … … 10943 11541 cygwin* | mingw* | pw32* | cegcc*) 10944 11542 version_type=windows 10945 shrext_cmds= ".dll"11543 shrext_cmds=.dll 10946 11544 need_version=no 10947 11545 need_lib_prefix=no … … 10952 11550 library_names_spec='$libname.dll.a' 10953 11551 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10954 postinstall_cmds='base_file=`basename \$ {file}`~10955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$ {base_file}'\''i; echo \$dlname'\''`~11552 postinstall_cmds='base_file=`basename \$file`~ 11553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10956 11554 dldir=$destdir/`dirname \$dlpath`~ 10957 11555 test -d \$dldir || mkdir -p \$dldir~ … … 10969 11567 cygwin*) 10970 11568 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10971 soname_spec='`echo $ {libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'11569 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10972 11570 10973 11571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" … … 10975 11573 mingw* | cegcc*) 10976 11574 # MinGW DLLs use traditional 'lib' prefix 10977 soname_spec='$ {libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'11575 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10978 11576 ;; 10979 11577 pw32*) 10980 11578 # pw32 DLLs use 'pw' prefix rather than 'lib' 10981 library_names_spec='`echo $ {libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'11579 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10982 11580 ;; 10983 11581 esac … … 10988 11586 # Native MSVC 10989 11587 libname_spec='$name' 10990 soname_spec='$ {libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'10991 library_names_spec='$ {libname}.dll.lib'11588 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11589 library_names_spec='$libname.dll.lib' 10992 11590 10993 11591 case $build_os in … … 11016 11614 ;; 11017 11615 *) 11018 sys_lib_search_path_spec= "$LIB"11616 sys_lib_search_path_spec=$LIB 11019 11617 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11020 11618 # It is most probably a Windows format PATH. … … 11029 11627 11030 11628 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11031 postinstall_cmds='base_file=`basename \$ {file}`~11032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$ {base_file}'\''i; echo \$dlname'\''`~11629 postinstall_cmds='base_file=`basename \$file`~ 11630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11033 11631 dldir=$destdir/`dirname \$dlpath`~ 11034 11632 test -d \$dldir || mkdir -p \$dldir~ … … 11043 11641 *) 11044 11642 # Assume MSVC wrapper 11045 library_names_spec='$ {libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}$libname.lib'11643 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11046 11644 dynamic_linker='Win32 ld.exe' 11047 11645 ;; … … 11056 11654 need_lib_prefix=no 11057 11655 need_version=no 11058 library_names_spec='$ {libname}${release}${major}$shared_ext ${libname}$shared_ext'11059 soname_spec='$ {libname}${release}${major}$shared_ext'11656 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11657 soname_spec='$libname$release$major$shared_ext' 11060 11658 shlibpath_overrides_runpath=yes 11061 11659 shlibpath_var=DYLD_LIBRARY_PATH … … 11067 11665 11068 11666 dgux*) 11069 version_type=linux 11667 version_type=linux # correct to gnu/linux during the next big refactor 11070 11668 need_lib_prefix=no 11071 11669 need_version=no 11072 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'11073 soname_spec='$ {libname}${release}${shared_ext}$major'11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11671 soname_spec='$libname$release$shared_ext$major' 11074 11672 shlibpath_var=LD_LIBRARY_PATH 11075 ;;11076 11077 freebsd1*)11078 dynamic_linker=no11079 11673 ;; 11080 11674 … … 11086 11680 else 11087 11681 case $host_os in 11088 freebsd[ 123]*) objformat=aout ;;11682 freebsd[23].*) objformat=aout ;; 11089 11683 *) objformat=elf ;; 11090 11684 esac … … 11093 11687 case $version_type in 11094 11688 freebsd-elf*) 11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11690 soname_spec='$libname$release$shared_ext$major' 11096 11691 need_version=no 11097 11692 need_lib_prefix=no 11098 11693 ;; 11099 11694 freebsd-*) 11100 library_names_spec='$ {libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11101 11696 need_version=yes 11102 11697 ;; … … 11104 11699 shlibpath_var=LD_LIBRARY_PATH 11105 11700 case $host_os in 11106 freebsd2 *)11701 freebsd2.*) 11107 11702 shlibpath_overrides_runpath=yes 11108 11703 ;; … … 11123 11718 ;; 11124 11719 11125 gnu*)11126 version_type=linux11127 need_lib_prefix=no11128 need_version=no11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'11130 soname_spec='${libname}${release}${shared_ext}$major'11131 shlibpath_var=LD_LIBRARY_PATH11132 shlibpath_overrides_runpath=no11133 hardcode_into_libs=yes11134 ;;11135 11136 11720 haiku*) 11137 version_type=linux 11721 version_type=linux # correct to gnu/linux during the next big refactor 11138 11722 need_lib_prefix=no 11139 11723 need_version=no 11140 11724 dynamic_linker="$host_os runtime_loader" 11141 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'11142 soname_spec='$ {libname}${release}${shared_ext}$major'11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11726 soname_spec='$libname$release$shared_ext$major' 11143 11727 shlibpath_var=LIBRARY_PATH 11144 shlibpath_overrides_runpath= yes11728 shlibpath_overrides_runpath=no 11145 11729 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11146 11730 hardcode_into_libs=yes … … 11160 11744 shlibpath_var=LD_LIBRARY_PATH 11161 11745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11162 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'11163 soname_spec='$ {libname}${release}${shared_ext}$major'11164 if test "X$HPUX_IA64_MODE" = X32; then11746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11747 soname_spec='$libname$release$shared_ext$major' 11748 if test 32 = "$HPUX_IA64_MODE"; then 11165 11749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11750 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11166 11751 else 11167 11752 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11753 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11168 11754 fi 11169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec11170 11755 ;; 11171 11756 hppa*64*) … … 11175 11760 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11176 11761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11177 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'11178 soname_spec='$ {libname}${release}${shared_ext}$major'11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11763 soname_spec='$libname$release$shared_ext$major' 11179 11764 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11180 11765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec … … 11185 11770 shlibpath_var=SHLIB_PATH 11186 11771 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11187 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'11188 soname_spec='$ {libname}${release}${shared_ext}$major'11772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11773 soname_spec='$libname$release$shared_ext$major' 11189 11774 ;; 11190 11775 esac … … 11196 11781 11197 11782 interix[3-9]*) 11198 version_type=linux 11783 version_type=linux # correct to gnu/linux during the next big refactor 11199 11784 need_lib_prefix=no 11200 11785 need_version=no 11201 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'11202 soname_spec='$ {libname}${release}${shared_ext}$major'11786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11787 soname_spec='$libname$release$shared_ext$major' 11203 11788 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11204 11789 shlibpath_var=LD_LIBRARY_PATH … … 11211 11796 nonstopux*) version_type=nonstopux ;; 11212 11797 *) 11213 if test "$lt_cv_prog_gnu_ld" = yes; then11214 version_type=linux 11798 if test yes = "$lt_cv_prog_gnu_ld"; then 11799 version_type=linux # correct to gnu/linux during the next big refactor 11215 11800 else 11216 11801 version_type=irix … … 11219 11804 need_lib_prefix=no 11220 11805 need_version=no 11221 soname_spec='$ {libname}${release}${shared_ext}$major'11222 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'11806 soname_spec='$libname$release$shared_ext$major' 11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11223 11808 case $host_os in 11224 11809 irix5* | nonstopux*) … … 11239 11824 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11240 11825 shlibpath_overrides_runpath=no 11241 sys_lib_search_path_spec="/usr/lib$ {libsuff} /lib${libsuff} /usr/local/lib${libsuff}"11242 sys_lib_dlsearch_path_spec="/usr/lib$ {libsuff} /lib${libsuff}"11826 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11827 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11243 11828 hardcode_into_libs=yes 11244 11829 ;; … … 11249 11834 ;; 11250 11835 11251 # This must be Linux ELF. 11252 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11253 version_type=linux 11836 linux*android*) 11837 version_type=none # Android doesn't support versioned libraries. 11254 11838 need_lib_prefix=no 11255 11839 need_version=no 11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11257 soname_spec='${libname}${release}${shared_ext}$major' 11840 library_names_spec='$libname$release$shared_ext' 11841 soname_spec='$libname$release$shared_ext' 11842 finish_cmds= 11843 shlibpath_var=LD_LIBRARY_PATH 11844 shlibpath_overrides_runpath=yes 11845 11846 # This implies no fast_install, which is unacceptable. 11847 # Some rework will be needed to allow for fast_install 11848 # before this can be enabled. 11849 hardcode_into_libs=yes 11850 11851 dynamic_linker='Android linker' 11852 # Don't embed -rpath directories since the linker doesn't support them. 11853 hardcode_libdir_flag_spec='-L$libdir' 11854 ;; 11855 11856 # This must be glibc/ELF. 11857 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11858 version_type=linux # correct to gnu/linux during the next big refactor 11859 need_lib_prefix=no 11860 need_version=no 11861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11862 soname_spec='$libname$release$shared_ext$major' 11258 11863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11259 11864 shlibpath_var=LD_LIBRARY_PATH … … 11299 11904 hardcode_into_libs=yes 11300 11905 11301 # Append ld.so.conf contents to the search path 11906 # Ideally, we could use ldconfig to report *all* directores which are 11907 # searched for libraries, however this is still not possible. Aside from not 11908 # being certain /sbin/ldconfig is available, command 11909 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11910 # even though it is searched at run-time. Try to do the best guess by 11911 # appending ld.so.conf contents (and includes) to the search path. 11302 11912 if test -f /etc/ld.so.conf; then 11303 11913 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` … … 11331 11941 need_version=no 11332 11942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11333 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'11943 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11334 11944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11335 11945 dynamic_linker='NetBSD (a.out) ld.so' 11336 11946 else 11337 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'11338 soname_spec='$ {libname}${release}${shared_ext}$major'11947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11948 soname_spec='$libname$release$shared_ext$major' 11339 11949 dynamic_linker='NetBSD ld.elf_so' 11340 11950 fi … … 11345 11955 11346 11956 newsos6) 11347 version_type=linux 11348 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'11957 version_type=linux # correct to gnu/linux during the next big refactor 11958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11349 11959 shlibpath_var=LD_LIBRARY_PATH 11350 11960 shlibpath_overrides_runpath=yes … … 11355 11965 need_lib_prefix=no 11356 11966 need_version=no 11357 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'11358 soname_spec='$ {libname}${release}${shared_ext}$major'11967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11968 soname_spec='$libname$release$shared_ext$major' 11359 11969 shlibpath_var=LD_LIBRARY_PATH 11360 11970 shlibpath_overrides_runpath=no … … 11363 11973 ;; 11364 11974 11365 openbsd* )11975 openbsd* | bitrig*) 11366 11976 version_type=sunos 11367 sys_lib_dlsearch_path_spec= "/usr/lib"11977 sys_lib_dlsearch_path_spec=/usr/lib 11368 11978 need_lib_prefix=no 11369 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.11370 case $host_os in11371 openbsd3.3 | openbsd3.3.*) need_version=yes ;;11372 *) need_version=no ;;11373 esac11374 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'11979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11980 need_version=no 11981 else 11982 need_version=yes 11983 fi 11984 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11375 11985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11376 11986 shlibpath_var=LD_LIBRARY_PATH 11377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11378 case $host_os in 11379 openbsd2.[89] | openbsd2.[89].*) 11380 shlibpath_overrides_runpath=no 11381 ;; 11382 *) 11383 shlibpath_overrides_runpath=yes 11384 ;; 11385 esac 11386 else 11387 shlibpath_overrides_runpath=yes 11388 fi 11987 shlibpath_overrides_runpath=yes 11389 11988 ;; 11390 11989 11391 11990 os2*) 11392 11991 libname_spec='$name' 11393 shrext_cmds=".dll" 11992 version_type=windows 11993 shrext_cmds=.dll 11994 need_version=no 11394 11995 need_lib_prefix=no 11395 library_names_spec='$libname${shared_ext} $libname.a' 11996 # OS/2 can only load a DLL with a base name of 8 characters or less. 11997 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11998 v=$($ECHO $release$versuffix | tr -d .-); 11999 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12000 $ECHO $n$v`$shared_ext' 12001 library_names_spec='${libname}_dll.$libext' 11396 12002 dynamic_linker='OS/2 ld.exe' 11397 shlibpath_var=LIBPATH 12003 shlibpath_var=BEGINLIBPATH 12004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12006 postinstall_cmds='base_file=`basename \$file`~ 12007 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12008 dldir=$destdir/`dirname \$dlpath`~ 12009 test -d \$dldir || mkdir -p \$dldir~ 12010 $install_prog $dir/$dlname \$dldir/$dlname~ 12011 chmod a+x \$dldir/$dlname~ 12012 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12013 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12014 fi' 12015 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12016 dlpath=$dir/\$dldll~ 12017 $RM \$dlpath' 11398 12018 ;; 11399 12019 … … 11402 12022 need_lib_prefix=no 11403 12023 need_version=no 11404 soname_spec='$ {libname}${release}${shared_ext}$major'11405 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'12024 soname_spec='$libname$release$shared_ext$major' 12025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11406 12026 shlibpath_var=LD_LIBRARY_PATH 11407 12027 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11408 sys_lib_dlsearch_path_spec= "$sys_lib_search_path_spec"12028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11409 12029 ;; 11410 12030 … … 11414 12034 11415 12035 solaris*) 11416 version_type=linux 12036 version_type=linux # correct to gnu/linux during the next big refactor 11417 12037 need_lib_prefix=no 11418 12038 need_version=no 11419 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'11420 soname_spec='$ {libname}${release}${shared_ext}$major'12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12040 soname_spec='$libname$release$shared_ext$major' 11421 12041 shlibpath_var=LD_LIBRARY_PATH 11422 12042 shlibpath_overrides_runpath=yes … … 11428 12048 sunos4*) 11429 12049 version_type=sunos 11430 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11431 12051 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11432 12052 shlibpath_var=LD_LIBRARY_PATH 11433 12053 shlibpath_overrides_runpath=yes 11434 if test "$with_gnu_ld" = yes; then12054 if test yes = "$with_gnu_ld"; then 11435 12055 need_lib_prefix=no 11436 12056 fi … … 11439 12059 11440 12060 sysv4 | sysv4.3*) 11441 version_type=linux 11442 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'11443 soname_spec='$ {libname}${release}${shared_ext}$major'12061 version_type=linux # correct to gnu/linux during the next big refactor 12062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12063 soname_spec='$libname$release$shared_ext$major' 11444 12064 shlibpath_var=LD_LIBRARY_PATH 11445 12065 case $host_vendor in … … 11462 12082 11463 12083 sysv4*MP*) 11464 if test -d /usr/nec ;then11465 version_type=linux 11466 library_names_spec='$libname$ {shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'11467 soname_spec='$libname$ {shared_ext}.$major'12084 if test -d /usr/nec; then 12085 version_type=linux # correct to gnu/linux during the next big refactor 12086 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12087 soname_spec='$libname$shared_ext.$major' 11468 12088 shlibpath_var=LD_LIBRARY_PATH 11469 12089 fi … … 11471 12091 11472 12092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11473 version_type= freebsd-elf12093 version_type=sco 11474 12094 need_lib_prefix=no 11475 12095 need_version=no 11476 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'11477 soname_spec='$ {libname}${release}${shared_ext}$major'12096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12097 soname_spec='$libname$release$shared_ext$major' 11478 12098 shlibpath_var=LD_LIBRARY_PATH 11479 12099 shlibpath_overrides_runpath=yes 11480 12100 hardcode_into_libs=yes 11481 if test "$with_gnu_ld" = yes; then12101 if test yes = "$with_gnu_ld"; then 11482 12102 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11483 12103 else … … 11494 12114 tpf*) 11495 12115 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11496 version_type=linux 12116 version_type=linux # correct to gnu/linux during the next big refactor 11497 12117 need_lib_prefix=no 11498 12118 need_version=no 11499 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'12119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11500 12120 shlibpath_var=LD_LIBRARY_PATH 11501 12121 shlibpath_overrides_runpath=no … … 11504 12124 11505 12125 uts4*) 11506 version_type=linux 11507 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'11508 soname_spec='$ {libname}${release}${shared_ext}$major'12126 version_type=linux # correct to gnu/linux during the next big refactor 12127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12128 soname_spec='$libname$release$shared_ext$major' 11509 12129 shlibpath_var=LD_LIBRARY_PATH 11510 12130 ;; … … 11516 12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11517 12137 $as_echo "$dynamic_linker" >&6; } 11518 test "$dynamic_linker" = no&& can_build_shared=no12138 test no = "$dynamic_linker" && can_build_shared=no 11519 12139 11520 12140 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11521 if test "$GCC" = yes; then12141 if test yes = "$GCC"; then 11522 12142 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11523 12143 fi 11524 12144 11525 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11526 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11527 fi 11528 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11529 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11530 fi 12145 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12146 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12147 fi 12148 12149 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12150 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12151 fi 12152 12153 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12154 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12155 12156 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12157 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12158 12159 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12160 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12161 12162 12163 12164 12165 11531 12166 11532 12167 … … 11626 12261 if test -n "$hardcode_libdir_flag_spec" || 11627 12262 test -n "$runpath_var" || 11628 test "X$hardcode_automatic" = "Xyes"; then12263 test yes = "$hardcode_automatic"; then 11629 12264 11630 12265 # We can hardcode non-existent directories. 11631 if test "$hardcode_direct" != no&&12266 if test no != "$hardcode_direct" && 11632 12267 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11633 12268 # have to relink, otherwise we might link with an installed library 11634 12269 # when we should be linking with a yet-to-be-installed one 11635 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no&&11636 test "$hardcode_minus_L" != no; then12270 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12271 test no != "$hardcode_minus_L"; then 11637 12272 # Linking always hardcodes the temporary library directory. 11638 12273 hardcode_action=relink … … 11649 12284 $as_echo "$hardcode_action" >&6; } 11650 12285 11651 if test "$hardcode_action" = relink||11652 test "$inherit_rpath" = yes; then12286 if test relink = "$hardcode_action" || 12287 test yes = "$inherit_rpath"; then 11653 12288 # Fast installation is not supported 11654 12289 enable_fast_install=no 11655 elif test "$shlibpath_overrides_runpath" = yes||11656 test "$enable_shared" = no; then12290 elif test yes = "$shlibpath_overrides_runpath" || 12291 test no = "$enable_shared"; then 11657 12292 # Fast installation is not necessary 11658 12293 enable_fast_install=needless … … 11664 12299 11665 12300 11666 if test "x$enable_dlopen" != xyes; then12301 if test yes != "$enable_dlopen"; then 11667 12302 enable_dlopen=unknown 11668 12303 enable_dlopen_self=unknown … … 11674 12309 case $host_os in 11675 12310 beos*) 11676 lt_cv_dlopen= "load_add_on"12311 lt_cv_dlopen=load_add_on 11677 12312 lt_cv_dlopen_libs= 11678 12313 lt_cv_dlopen_self=yes … … 11680 12315 11681 12316 mingw* | pw32* | cegcc*) 11682 lt_cv_dlopen= "LoadLibrary"12317 lt_cv_dlopen=LoadLibrary 11683 12318 lt_cv_dlopen_libs= 11684 12319 ;; 11685 12320 11686 12321 cygwin*) 11687 lt_cv_dlopen= "dlopen"12322 lt_cv_dlopen=dlopen 11688 12323 lt_cv_dlopen_libs= 11689 12324 ;; 11690 12325 11691 12326 darwin*) 11692 # if libdl is installed we need to link against it12327 # if libdl is installed we need to link against it 11693 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11694 12329 $as_echo_n "checking for dlopen in -ldl... " >&6; } … … 11728 12363 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11729 12364 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11730 lt_cv_dlopen= "dlopen" lt_cv_dlopen_libs="-ldl"11731 else 11732 11733 lt_cv_dlopen= "dyld"12365 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12366 else 12367 12368 lt_cv_dlopen=dyld 11734 12369 lt_cv_dlopen_libs= 11735 12370 lt_cv_dlopen_self=yes … … 11737 12372 fi 11738 12373 12374 ;; 12375 12376 tpf*) 12377 # Don't try to run any link tests for TPF. We know it's impossible 12378 # because TPF is a cross-compiler, and we know how we open DSOs. 12379 lt_cv_dlopen=dlopen 12380 lt_cv_dlopen_libs= 12381 lt_cv_dlopen_self=no 11739 12382 ;; 11740 12383 … … 11742 12385 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11743 12386 if test "x$ac_cv_func_shl_load" = xyes; then : 11744 lt_cv_dlopen= "shl_load"12387 lt_cv_dlopen=shl_load 11745 12388 else 11746 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 … … 11781 12424 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11782 12425 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11783 lt_cv_dlopen= "shl_load" lt_cv_dlopen_libs="-ldld"12426 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11784 12427 else 11785 12428 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11786 12429 if test "x$ac_cv_func_dlopen" = xyes; then : 11787 lt_cv_dlopen= "dlopen"12430 lt_cv_dlopen=dlopen 11788 12431 else 11789 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 … … 11824 12467 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11825 12468 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11826 lt_cv_dlopen= "dlopen" lt_cv_dlopen_libs="-ldl"12469 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11827 12470 else 11828 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 … … 11863 12506 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11864 12507 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11865 lt_cv_dlopen= "dlopen" lt_cv_dlopen_libs="-lsvld"12508 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11866 12509 else 11867 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 … … 11902 12545 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11903 12546 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11904 lt_cv_dlopen= "dld_link" lt_cv_dlopen_libs="-ldld"12547 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11905 12548 fi 11906 12549 … … 11923 12566 esac 11924 12567 11925 if test "x$lt_cv_dlopen" != xno; then 12568 if test no = "$lt_cv_dlopen"; then 12569 enable_dlopen=no 12570 else 11926 12571 enable_dlopen=yes 11927 else11928 enable_dlopen=no11929 12572 fi 11930 12573 11931 12574 case $lt_cv_dlopen in 11932 12575 dlopen) 11933 save_CPPFLAGS= "$CPPFLAGS"11934 test "x$ac_cv_header_dlfcn_h" = xyes&& CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"11935 11936 save_LDFLAGS= "$LDFLAGS"12576 save_CPPFLAGS=$CPPFLAGS 12577 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12578 12579 save_LDFLAGS=$LDFLAGS 11937 12580 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11938 12581 11939 save_LIBS= "$LIBS"12582 save_LIBS=$LIBS 11940 12583 LIBS="$lt_cv_dlopen_libs $LIBS" 11941 12584 … … 11945 12588 $as_echo_n "(cached) " >&6 11946 12589 else 11947 if test "$cross_compiling" = yes; then :12590 if test yes = "$cross_compiling"; then : 11948 12591 lt_cv_dlopen_self=cross 11949 12592 else … … 11992 12635 #endif 11993 12636 11994 /* When -fvis bility=hidden is used, assume the code has been annotated12637 /* When -fvisibility=hidden is used, assume the code has been annotated 11995 12638 correspondingly for the symbols needed. */ 11996 #if defined (__GNUC__)&& (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))12639 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11997 12640 int fnord () __attribute__((visibility("default"))); 11998 12641 #endif … … 12024 12667 ac_status=$? 12025 12668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12026 test $ac_status = 0; } && test -s conftest${ac_exeext}2>/dev/null; then12669 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12027 12670 (./conftest; exit; ) >&5 2>/dev/null 12028 12671 lt_status=$? … … 12044 12687 $as_echo "$lt_cv_dlopen_self" >&6; } 12045 12688 12046 if test "x$lt_cv_dlopen_self" = xyes; then12689 if test yes = "$lt_cv_dlopen_self"; then 12047 12690 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12048 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 … … 12051 12694 $as_echo_n "(cached) " >&6 12052 12695 else 12053 if test "$cross_compiling" = yes; then :12696 if test yes = "$cross_compiling"; then : 12054 12697 lt_cv_dlopen_self_static=cross 12055 12698 else … … 12098 12741 #endif 12099 12742 12100 /* When -fvis bility=hidden is used, assume the code has been annotated12743 /* When -fvisibility=hidden is used, assume the code has been annotated 12101 12744 correspondingly for the symbols needed. */ 12102 #if defined (__GNUC__)&& (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))12745 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12103 12746 int fnord () __attribute__((visibility("default"))); 12104 12747 #endif … … 12130 12773 ac_status=$? 12131 12774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12132 test $ac_status = 0; } && test -s conftest${ac_exeext}2>/dev/null; then12775 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12133 12776 (./conftest; exit; ) >&5 2>/dev/null 12134 12777 lt_status=$? … … 12151 12794 fi 12152 12795 12153 CPPFLAGS= "$save_CPPFLAGS"12154 LDFLAGS= "$save_LDFLAGS"12155 LIBS= "$save_LIBS"12796 CPPFLAGS=$save_CPPFLAGS 12797 LDFLAGS=$save_LDFLAGS 12798 LIBS=$save_LIBS 12156 12799 ;; 12157 12800 esac … … 12197 12840 case $host_os in 12198 12841 darwin*) 12199 if test -n "$STRIP" 12842 if test -n "$STRIP"; then 12200 12843 striplib="$STRIP -x" 12201 12844 old_striplib="$STRIP -S" … … 12225 12868 12226 12869 12227 # Report wh ichlibrary types will actually be built12870 # Report what library types will actually be built 12228 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12229 12872 $as_echo_n "checking if libtool supports shared libraries... " >&6; } … … 12233 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12234 12877 $as_echo_n "checking whether to build shared libraries... " >&6; } 12235 test "$can_build_shared" = "no" && enable_shared=no12878 test no = "$can_build_shared" && enable_shared=no 12236 12879 12237 12880 # On AIX, shared libraries and static libraries use the same namespace, and … … 12239 12882 case $host_os in 12240 12883 aix3*) 12241 test "$enable_shared" = yes&& enable_static=no12884 test yes = "$enable_shared" && enable_static=no 12242 12885 if test -n "$RANLIB"; then 12243 12886 archive_cmds="$archive_cmds~\$RANLIB \$lib" … … 12247 12890 12248 12891 aix[4-9]*) 12249 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12250 test "$enable_shared" = yes && enable_static=no 12892 if test ia64 != "$host_cpu"; then 12893 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12894 yes,aix,yes) ;; # shared object as lib.so file only 12895 yes,svr4,*) ;; # shared object as lib.so archive member only 12896 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12897 esac 12251 12898 fi 12252 12899 ;; … … 12258 12905 $as_echo_n "checking whether to build static libraries... " >&6; } 12259 12906 # Make sure either enable_shared or enable_static is yes. 12260 test "$enable_shared" = yes|| enable_static=yes12907 test yes = "$enable_shared" || enable_static=yes 12261 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12262 12909 $as_echo "$enable_static" >&6; } … … 12272 12919 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12273 12920 12274 CC= "$lt_save_CC"12275 12276 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&12277 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||12278 (test "X$CXX" != "Xg++"))); then12921 CC=$lt_save_CC 12922 12923 if test -n "$CXX" && ( test no != "$CXX" && 12924 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12925 (test g++ != "$CXX"))); then 12279 12926 ac_ext=cpp 12280 12927 ac_cpp='$CXXCPP $CPPFLAGS' … … 12429 13076 hardcode_direct_absolute_CXX=no 12430 13077 hardcode_libdir_flag_spec_CXX= 12431 hardcode_libdir_flag_spec_ld_CXX=12432 13078 hardcode_libdir_separator_CXX= 12433 13079 hardcode_minus_L_CXX=no … … 12456 13102 # are currently assumed to apply to all compilers on this platform, 12457 13103 # and will be corrupted by setting them based on a non-working compiler. 12458 if test "$_lt_caught_CXX_error" != yes; then13104 if test yes != "$_lt_caught_CXX_error"; then 12459 13105 # Code to be used in simple compile tests 12460 13106 lt_simple_compile_test_code="int some_variable = 0;" … … 12517 13163 compiler=$CC 12518 13164 compiler_CXX=$CC 12519 for cc_temp in $compiler""; do 12520 case $cc_temp in 12521 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12522 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12523 \-*) ;; 12524 *) break;; 12525 esac 12526 done 12527 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13165 func_cc_basename $compiler 13166 cc_basename=$func_cc_basename_result 12528 13167 12529 13168 … … 12531 13170 # We don't want -fno-exception when compiling C++ code, so set the 12532 13171 # no_builtin_flag separately 12533 if test "$GXX" = yes; then13172 if test yes = "$GXX"; then 12534 13173 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12535 13174 else … … 12537 13176 fi 12538 13177 12539 if test "$GXX" = yes; then13178 if test yes = "$GXX"; then 12540 13179 # Set up default GNU C++ configuration 12541 13180 … … 12544 13183 # Check whether --with-gnu-ld was given. 12545 13184 if test "${with_gnu_ld+set}" = set; then : 12546 withval=$with_gnu_ld; test "$withval" = no|| with_gnu_ld=yes13185 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12547 13186 else 12548 13187 with_gnu_ld=no … … 12550 13189 12551 13190 ac_prog=ld 12552 if test "$GCC" = yes; then13191 if test yes = "$GCC"; then 12553 13192 # Check if gcc -print-prog-name=ld gives a path. 12554 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 … … 12556 13195 case $host in 12557 13196 *-*-mingw*) 12558 # gcc leaves a trailing carriage return which upsets mingw13197 # gcc leaves a trailing carriage return, which upsets mingw 12559 13198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12560 13199 *) … … 12570 13209 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12571 13210 done 12572 test -z "$LD" && LD= "$ac_prog"13211 test -z "$LD" && LD=$ac_prog 12573 13212 ;; 12574 13213 "") … … 12581 13220 ;; 12582 13221 esac 12583 elif test "$with_gnu_ld" = yes; then13222 elif test yes = "$with_gnu_ld"; then 12584 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12585 13224 $as_echo_n "checking for GNU ld... " >&6; } … … 12592 13231 else 12593 13232 if test -z "$LD"; then 12594 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR13233 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12595 13234 for ac_dir in $PATH; do 12596 IFS= "$lt_save_ifs"13235 IFS=$lt_save_ifs 12597 13236 test -z "$ac_dir" && ac_dir=. 12598 13237 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12599 lt_cv_path_LD= "$ac_dir/$ac_prog"13238 lt_cv_path_LD=$ac_dir/$ac_prog 12600 13239 # Check to see if the program is GNU ld. I'd rather use --version, 12601 13240 # but apparently some variants of GNU ld only accept -v. … … 12603 13242 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12604 13243 *GNU* | *'with BFD'*) 12605 test "$with_gnu_ld" != no&& break13244 test no != "$with_gnu_ld" && break 12606 13245 ;; 12607 13246 *) 12608 test "$with_gnu_ld" != yes&& break13247 test yes != "$with_gnu_ld" && break 12609 13248 ;; 12610 13249 esac 12611 13250 fi 12612 13251 done 12613 IFS= "$lt_save_ifs"12614 else 12615 lt_cv_path_LD= "$LD"# Let the user override the test with a path.12616 fi 12617 fi 12618 12619 LD= "$lt_cv_path_LD"13252 IFS=$lt_save_ifs 13253 else 13254 lt_cv_path_LD=$LD # Let the user override the test with a path. 13255 fi 13256 fi 13257 13258 LD=$lt_cv_path_LD 12620 13259 if test -n "$LD"; then 12621 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 … … 12653 13292 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12654 13293 # archiving commands below assume that GNU ld is being used. 12655 if test "$with_gnu_ld" = yes; then12656 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib'12657 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'12658 12659 hardcode_libdir_flag_spec_CXX='$ {wl}-rpath ${wl}$libdir'12660 export_dynamic_flag_spec_CXX='$ {wl}--export-dynamic'13294 if test yes = "$with_gnu_ld"; then 13295 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13296 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13297 13298 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13299 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 12661 13300 12662 13301 # If archive_cmds runs LD, not CC, wlarc should be empty 12663 13302 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12664 13303 # investigate it a little bit more. (MM) 12665 wlarc='$ {wl}'13304 wlarc='$wl' 12666 13305 12667 13306 # ancient GNU ld didn't support --whole-archive et. al. 12668 13307 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12669 13308 $GREP 'no-whole-archive' > /dev/null; then 12670 whole_archive_flag_spec_CXX= "$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'13309 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12671 13310 else 12672 13311 whole_archive_flag_spec_CXX= … … 12705 13344 ;; 12706 13345 aix[4-9]*) 12707 if test "$host_cpu" = ia64; then13346 if test ia64 = "$host_cpu"; then 12708 13347 # On IA64, the linker does run time linking by default, so we don't 12709 13348 # have to do anything special. 12710 13349 aix_use_runtimelinking=no 12711 13350 exp_sym_flag='-Bexport' 12712 no_entry_flag= ""13351 no_entry_flag= 12713 13352 else 12714 13353 aix_use_runtimelinking=no … … 12716 13355 # Test if we are trying to use run time linking or normal 12717 13356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12718 # need to do runtime linking. 13357 # have runtime linking enabled, and use it for executables. 13358 # For shared libraries, we enable/disable runtime linking 13359 # depending on the kind of the shared library created - 13360 # when "with_aix_soname,aix_use_runtimelinking" is: 13361 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13362 # "aix,yes" lib.so shared, rtl:yes, for executables 13363 # lib.a static archive 13364 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13365 # lib.a(lib.so.V) shared, rtl:no, for executables 13366 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13367 # lib.a(lib.so.V) shared, rtl:no 13368 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13369 # lib.a static archive 12719 13370 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12720 13371 for ld_flag in $LDFLAGS; do … … 12726 13377 esac 12727 13378 done 13379 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13380 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13381 # so we don't have lib.a shared libs to link our executables. 13382 # We have to force runtime linking in this case. 13383 aix_use_runtimelinking=yes 13384 LDFLAGS="$LDFLAGS -Wl,-brtl" 13385 fi 12728 13386 ;; 12729 13387 esac … … 12744 13402 hardcode_libdir_separator_CXX=':' 12745 13403 link_all_deplibs_CXX=yes 12746 file_list_spec_CXX='${wl}-f,' 12747 12748 if test "$GXX" = yes; then 13404 file_list_spec_CXX='$wl-f,' 13405 case $with_aix_soname,$aix_use_runtimelinking in 13406 aix,*) ;; # no import file 13407 svr4,* | *,yes) # use import file 13408 # The Import File defines what to hardcode. 13409 hardcode_direct_CXX=no 13410 hardcode_direct_absolute_CXX=no 13411 ;; 13412 esac 13413 13414 if test yes = "$GXX"; then 12749 13415 case $host_os in aix4.[012]|aix4.[012].*) 12750 13416 # We only want to do this on AIX 4.2 and lower, the check 12751 13417 # below for broken collect2 doesn't work under 4.3+ 12752 collect2name=`$ {CC}-print-prog-name=collect2`13418 collect2name=`$CC -print-prog-name=collect2` 12753 13419 if test -f "$collect2name" && 12754 13420 strings "$collect2name" | $GREP resolve_lib_name >/dev/null … … 12768 13434 esac 12769 13435 shared_flag='-shared' 12770 if test "$aix_use_runtimelinking" = yes; then12771 shared_flag= "$shared_flag "'${wl}-G'13436 if test yes = "$aix_use_runtimelinking"; then 13437 shared_flag=$shared_flag' $wl-G' 12772 13438 fi 13439 # Need to ensure runtime linking is disabled for the traditional 13440 # shared library, or the linker may eventually find shared libraries 13441 # /with/ Import File - we do not want to mix them. 13442 shared_flag_aix='-shared' 13443 shared_flag_svr4='-shared $wl-G' 12773 13444 else 12774 13445 # not using gcc 12775 if test "$host_cpu" = ia64; then13446 if test ia64 = "$host_cpu"; then 12776 13447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12777 13448 # chokes on -Wl,-G. The following line is correct: 12778 13449 shared_flag='-G' 12779 13450 else 12780 if test "$aix_use_runtimelinking" = yes; then12781 shared_flag='$ {wl}-G'13451 if test yes = "$aix_use_runtimelinking"; then 13452 shared_flag='$wl-G' 12782 13453 else 12783 shared_flag='$ {wl}-bM:SRE'13454 shared_flag='$wl-bM:SRE' 12784 13455 fi 13456 shared_flag_aix='$wl-bM:SRE' 13457 shared_flag_svr4='$wl-G' 12785 13458 fi 12786 13459 fi 12787 13460 12788 export_dynamic_flag_spec_CXX='$ {wl}-bexpall'13461 export_dynamic_flag_spec_CXX='$wl-bexpall' 12789 13462 # It seems that -bexpall does not export symbols beginning with 12790 13463 # underscore (_), so it is better to generate a list of symbols to 12791 13464 # export. 12792 13465 always_export_symbols_CXX=yes 12793 if test "$aix_use_runtimelinking" = yes; then13466 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12794 13467 # Warning - without using the other runtime loading flags (-brtl), 12795 13468 # -berok will link without error, but may produce a broken library. 12796 allow_undefined_flag_CXX='-berok' 13469 # The "-G" linker flag allows undefined symbols. 13470 no_undefined_flag_CXX='-bernotok' 12797 13471 # Determine the default libpath from the value encoded in an empty 12798 13472 # executable. 12799 if test "${lt_cv_aix_libpath+set}" = set; then13473 if test set = "${lt_cv_aix_libpath+set}"; then 12800 13474 aix_libpath=$lt_cv_aix_libpath 12801 13475 else … … 12832 13506 conftest$ac_exeext conftest.$ac_ext 12833 13507 if test -z "$lt_cv_aix_libpath__CXX"; then 12834 lt_cv_aix_libpath__CXX= "/usr/lib:/lib"13508 lt_cv_aix_libpath__CXX=/usr/lib:/lib 12835 13509 fi 12836 13510 … … 12840 13514 fi 12841 13515 12842 hardcode_libdir_flag_spec_CXX='$ {wl}-blibpath:$libdir:'"$aix_libpath"12843 12844 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"13516 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13517 13518 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 12845 13519 else 12846 if test "$host_cpu" = ia64; then12847 hardcode_libdir_flag_spec_CXX='$ {wl}-R $libdir:/usr/lib:/lib'13520 if test ia64 = "$host_cpu"; then 13521 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 12848 13522 allow_undefined_flag_CXX="-z nodefs" 12849 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$ {wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"13523 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 12850 13524 else 12851 13525 # Determine the default libpath from the value encoded in an 12852 13526 # empty executable. 12853 if test "${lt_cv_aix_libpath+set}" = set; then13527 if test set = "${lt_cv_aix_libpath+set}"; then 12854 13528 aix_libpath=$lt_cv_aix_libpath 12855 13529 else … … 12886 13560 conftest$ac_exeext conftest.$ac_ext 12887 13561 if test -z "$lt_cv_aix_libpath__CXX"; then 12888 lt_cv_aix_libpath__CXX= "/usr/lib:/lib"13562 lt_cv_aix_libpath__CXX=/usr/lib:/lib 12889 13563 fi 12890 13564 … … 12894 13568 fi 12895 13569 12896 hardcode_libdir_flag_spec_CXX='$ {wl}-blibpath:$libdir:'"$aix_libpath"13570 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 12897 13571 # Warning - without using the other run time loading flags, 12898 13572 # -berok will link without error, but may produce a broken library. 12899 no_undefined_flag_CXX=' $ {wl}-bernotok'12900 allow_undefined_flag_CXX=' $ {wl}-berok'12901 if test "$with_gnu_ld" = yes; then13573 no_undefined_flag_CXX=' $wl-bernotok' 13574 allow_undefined_flag_CXX=' $wl-berok' 13575 if test yes = "$with_gnu_ld"; then 12902 13576 # We only use this code for GNU lds that support --whole-archive. 12903 whole_archive_flag_spec_CXX='$ {wl}--whole-archive$convenience ${wl}--no-whole-archive'13577 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 12904 13578 else 12905 13579 # Exported symbols can be pulled into shared objects from archives … … 12907 13581 fi 12908 13582 archive_cmds_need_lc_CXX=yes 12909 # This is similar to how AIX traditionally builds its shared 12910 # libraries. 12911 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13583 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13584 # -brtl affects multiple linker settings, -berok does not and is overridden later 13585 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13586 if test svr4 != "$with_aix_soname"; then 13587 # This is similar to how AIX traditionally builds its shared 13588 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13589 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13590 fi 13591 if test aix != "$with_aix_soname"; then 13592 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13593 else 13594 # used by -dlpreopen to get the symbols 13595 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13596 fi 13597 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 12912 13598 fi 12913 13599 fi … … 12919 13605 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12920 13606 # support --undefined. This deserves some investigation. FIXME 12921 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'13607 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12922 13608 else 12923 13609 ld_shlibs_CXX=no … … 12947 13633 libext=lib 12948 13634 # Tell ltmain to make .dll files, not .so files. 12949 shrext_cmds= ".dll"13635 shrext_cmds=.dll 12950 13636 # FIXME: Setting linknames here is a bad hack. 12951 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12952 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12953 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12954 else 12955 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12956 fi~ 12957 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12958 linknames=' 13637 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13638 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13639 cp "$export_symbols" "$output_objdir/$soname.def"; 13640 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13641 else 13642 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13643 fi~ 13644 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13645 linknames=' 12959 13646 # The linker will not automatically build a static lib if we build a DLL. 12960 13647 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' … … 12963 13650 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12964 13651 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12965 12966 12967 12968 12969 lt_outputfile="$lt_outputfile.exe" 12970 lt_tool_outputfile="$lt_tool_outputfile.exe" 12971 12972 12973 12974 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then12975 12976 12977 13652 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13653 case $lt_outputfile in 13654 *.exe|*.EXE) ;; 13655 *) 13656 lt_outputfile=$lt_outputfile.exe 13657 lt_tool_outputfile=$lt_tool_outputfile.exe 13658 ;; 13659 esac~ 13660 func_to_tool_file "$lt_outputfile"~ 13661 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13662 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13663 $RM "$lt_outputfile.manifest"; 13664 fi' 12978 13665 ;; 12979 13666 *) … … 12982 13669 # as there is no search path for DLLs. 12983 13670 hardcode_libdir_flag_spec_CXX='-L$libdir' 12984 export_dynamic_flag_spec_CXX='$ {wl}--export-all-symbols'13671 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 12985 13672 allow_undefined_flag_CXX=unsupported 12986 13673 always_export_symbols_CXX=no … … 12988 13675 12989 13676 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12990 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $ {wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'12991 # If the export-symbols file already is a .def file (1st line12992 # is EXPORTS), use it as is; otherwise, prepend...12993 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then12994 12995 12996 12997 12998 12999 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'13677 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13678 # If the export-symbols file already is a .def file, use it as 13679 # is; otherwise, prepend EXPORTS... 13680 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13681 cp $export_symbols $output_objdir/$soname.def; 13682 else 13683 echo EXPORTS > $output_objdir/$soname.def; 13684 cat $export_symbols >> $output_objdir/$soname.def; 13685 fi~ 13686 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13000 13687 else 13001 13688 ld_shlibs_CXX=no … … 13011 13698 hardcode_automatic_CXX=yes 13012 13699 hardcode_shlibpath_var_CXX=unsupported 13013 if test "$lt_cv_ld_force_load" = "yes"; then 13014 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13700 if test yes = "$lt_cv_ld_force_load"; then 13701 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13702 13015 13703 else 13016 13704 whole_archive_flag_spec_CXX='' 13017 13705 fi 13018 13706 link_all_deplibs_CXX=yes 13019 allow_undefined_flag_CXX= "$_lt_dar_allow_undefined"13707 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13020 13708 case $cc_basename in 13021 ifort* ) _lt_dar_can_shared=yes ;;13709 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13022 13710 *) _lt_dar_can_shared=$GCC ;; 13023 13711 esac 13024 if test "$_lt_dar_can_shared" = "yes"; then13712 if test yes = "$_lt_dar_can_shared"; then 13025 13713 output_verbose_link_cmd=func_echo_all 13026 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$ {_lt_dsymutil}"13027 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$ {_lt_dsymutil}"13028 archive_expsym_cmds_CXX="sed 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"13029 module_expsym_cmds_CXX="sed -e 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"13030 if test "$lt_cv_apple_cc_single_mod" != "yes"; then13031 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$ {lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"13032 archive_expsym_cmds_CXX="sed 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"13714 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13715 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13716 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 13717 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 13718 if test yes != "$lt_cv_apple_cc_single_mod"; then 13719 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 13720 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 13033 13721 fi 13034 13722 … … 13037 13725 fi 13038 13726 13727 ;; 13728 13729 os2*) 13730 hardcode_libdir_flag_spec_CXX='-L$libdir' 13731 hardcode_minus_L_CXX=yes 13732 allow_undefined_flag_CXX=unsupported 13733 shrext_cmds=.dll 13734 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13735 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13736 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13737 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13738 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13739 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13740 emximp -o $lib $output_objdir/$libname.def' 13741 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13742 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13743 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13744 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13745 prefix_cmds="$SED"~ 13746 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13747 prefix_cmds="$prefix_cmds -e 1d"; 13748 fi~ 13749 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13750 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13751 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13752 emximp -o $lib $output_objdir/$libname.def' 13753 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13754 enable_shared_with_static_runtimes_CXX=yes 13039 13755 ;; 13040 13756 … … 13057 13773 ;; 13058 13774 13059 freebsd [12]*)13775 freebsd2.*) 13060 13776 # C++ shared libraries reported to be fairly broken before 13061 13777 # switch to ELF … … 13073 13789 ;; 13074 13790 13075 gnu*)13076 ;;13077 13078 13791 haiku*) 13079 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'13792 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13080 13793 link_all_deplibs_CXX=yes 13081 13794 ;; 13082 13795 13083 13796 hpux9*) 13084 hardcode_libdir_flag_spec_CXX='$ {wl}+b ${wl}$libdir'13797 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13085 13798 hardcode_libdir_separator_CXX=: 13086 export_dynamic_flag_spec_CXX='$ {wl}-E'13799 export_dynamic_flag_spec_CXX='$wl-E' 13087 13800 hardcode_direct_CXX=yes 13088 13801 hardcode_minus_L_CXX=yes # Not in the search PATH, … … 13096 13809 ;; 13097 13810 aCC*) 13098 archive_cmds_CXX='$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'13811 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13099 13812 # Commands to make compiler produce verbose output that lists 13100 13813 # what "hidden" libraries, object files and flags are used when … … 13105 13818 # from the output so that they don't get included in the library 13106 13819 # dependencies. 13107 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'13820 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13108 13821 ;; 13109 13822 *) 13110 if test "$GXX" = yes; then13111 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $ {wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib|| mv $output_objdir/$soname $lib'13823 if test yes = "$GXX"; then 13824 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13112 13825 else 13113 13826 # FIXME: insert proper C++ library support … … 13119 13832 13120 13833 hpux10*|hpux11*) 13121 if test $with_gnu_ld = no; then13122 hardcode_libdir_flag_spec_CXX='$ {wl}+b ${wl}$libdir'13834 if test no = "$with_gnu_ld"; then 13835 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13123 13836 hardcode_libdir_separator_CXX=: 13124 13837 … … 13127 13840 ;; 13128 13841 *) 13129 export_dynamic_flag_spec_CXX='$ {wl}-E'13842 export_dynamic_flag_spec_CXX='$wl-E' 13130 13843 ;; 13131 13844 esac … … 13153 13866 case $host_cpu in 13154 13867 hppa*64*) 13155 archive_cmds_CXX='$CC -b $ {wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13868 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13156 13869 ;; 13157 13870 ia64*) 13158 archive_cmds_CXX='$CC -b $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13871 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13159 13872 ;; 13160 13873 *) 13161 archive_cmds_CXX='$CC -b $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13874 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13162 13875 ;; 13163 13876 esac … … 13170 13883 # from the output so that they don't get included in the library 13171 13884 # dependencies. 13172 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'13885 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13173 13886 ;; 13174 13887 *) 13175 if test "$GXX" = yes; then13176 if test $with_gnu_ld = no; then13888 if test yes = "$GXX"; then 13889 if test no = "$with_gnu_ld"; then 13177 13890 case $host_cpu in 13178 13891 hppa*64*) 13179 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $ {wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13892 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13180 13893 ;; 13181 13894 ia64*) 13182 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13895 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13183 13896 ;; 13184 13897 *) 13185 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13898 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13186 13899 ;; 13187 13900 esac … … 13198 13911 hardcode_direct_CXX=no 13199 13912 hardcode_shlibpath_var_CXX=no 13200 hardcode_libdir_flag_spec_CXX='$ {wl}-rpath,$libdir'13201 export_dynamic_flag_spec_CXX='$ {wl}-E'13913 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13914 export_dynamic_flag_spec_CXX='$wl-E' 13202 13915 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13203 13916 # Instead, shared libraries are loaded at an image base (0x10000000 by … … 13206 13919 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13207 13920 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13208 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'13209 archive_expsym_cmds_CXX='sed "s ,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'13921 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13922 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13210 13923 ;; 13211 13924 irix5* | irix6*) … … 13213 13926 CC*) 13214 13927 # SGI C++ 13215 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $ {output_objdir}/so_locations -o $lib'13928 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13216 13929 13217 13930 # Archives containing C++ object files must be created using … … 13222 13935 ;; 13223 13936 *) 13224 if test "$GXX" = yes; then13225 if test "$with_gnu_ld" = no; then13226 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'13937 if test yes = "$GXX"; then 13938 if test no = "$with_gnu_ld"; then 13939 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13227 13940 else 13228 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'13941 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 13229 13942 fi 13230 13943 fi … … 13232 13945 ;; 13233 13946 esac 13234 hardcode_libdir_flag_spec_CXX='$ {wl}-rpath ${wl}$libdir'13947 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13235 13948 hardcode_libdir_separator_CXX=: 13236 13949 inherit_rpath_CXX=yes 13237 13950 ;; 13238 13951 13239 linux* | k*bsd*-gnu | kopensolaris*-gnu )13952 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13240 13953 case $cc_basename in 13241 13954 KCC*) … … 13245 13958 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13246 13959 # to its proper name (with version) after linking. 13247 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$ {tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'13248 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$ {tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'13960 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13961 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 13249 13962 # Commands to make compiler produce verbose output that lists 13250 13963 # what "hidden" libraries, object files and flags are used when … … 13255 13968 # from the output so that they don't get included in the library 13256 13969 # dependencies. 13257 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'13258 13259 hardcode_libdir_flag_spec_CXX='$ {wl}-rpath,$libdir'13260 export_dynamic_flag_spec_CXX='$ {wl}--export-dynamic'13970 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13971 13972 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13973 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13261 13974 13262 13975 # Archives containing C++ object files must be created using … … 13272 13985 case `$CC -V 2>&1` in 13273 13986 *"Version 7."*) 13274 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib'13275 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'13987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13988 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13276 13989 ;; 13277 13990 *) # Version 8.0 or newer … … 13280 13993 ia64*) tmp_idyn=' -i_dynamic';; 13281 13994 esac 13282 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'13283 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'13995 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13996 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13284 13997 ;; 13285 13998 esac 13286 13999 archive_cmds_need_lc_CXX=no 13287 hardcode_libdir_flag_spec_CXX='$ {wl}-rpath,$libdir'13288 export_dynamic_flag_spec_CXX='$ {wl}--export-dynamic'13289 whole_archive_flag_spec_CXX='$ {wl}--whole-archive$convenience ${wl}--no-whole-archive'14000 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14001 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14002 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13290 14003 ;; 13291 14004 pgCC* | pgcpp*) … … 13294 14007 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13295 14008 prelink_cmds_CXX='tpldir=Template.dir~ 13296 13297 13298 14009 rm -rf $tpldir~ 14010 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14011 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13299 14012 old_archive_cmds_CXX='tpldir=Template.dir~ 13300 13301 13302 13303 14013 rm -rf $tpldir~ 14014 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14015 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14016 $RANLIB $oldlib' 13304 14017 archive_cmds_CXX='tpldir=Template.dir~ 13305 13306 13307 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'14018 rm -rf $tpldir~ 14019 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14020 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13308 14021 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13309 13310 13311 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'14022 rm -rf $tpldir~ 14023 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14024 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13312 14025 ;; 13313 14026 *) # Version 6 and above use weak symbols 13314 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname -o $lib'13315 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'14027 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14028 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13316 14029 ;; 13317 14030 esac 13318 14031 13319 hardcode_libdir_flag_spec_CXX='$ {wl}--rpath ${wl}$libdir'13320 export_dynamic_flag_spec_CXX='$ {wl}--export-dynamic'13321 whole_archive_flag_spec_CXX='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'14032 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14033 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14034 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 13322 14035 ;; 13323 14036 cxx*) 13324 14037 # Compaq C++ 13325 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib'13326 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'14038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14039 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 13327 14040 13328 14041 runpath_var=LD_RUN_PATH … … 13338 14051 # from the output so that they don't get included in the library 13339 14052 # dependencies. 13340 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'14053 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 13341 14054 ;; 13342 14055 xl* | mpixl* | bgxl*) 13343 14056 # IBM XL 8.0 on PPC, with GNU ld 13344 hardcode_libdir_flag_spec_CXX='$ {wl}-rpath ${wl}$libdir'13345 export_dynamic_flag_spec_CXX='$ {wl}--export-dynamic'13346 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'13347 if test "x$supports_anon_versioning" = xyes; then14057 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14058 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14059 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14060 if test yes = "$supports_anon_versioning"; then 13348 14061 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13349 13350 13351 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'14062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14063 echo "local: *; };" >> $output_objdir/$libname.ver~ 14064 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13352 14065 fi 13353 14066 ;; … … 13357 14070 # Sun C++ 5.9 13358 14071 no_undefined_flag_CXX=' -zdefs' 13359 archive_cmds_CXX='$CC -G$ {allow_undefined_flag}-h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13360 archive_expsym_cmds_CXX='$CC -G$ {allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'14072 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14073 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 13361 14074 hardcode_libdir_flag_spec_CXX='-R$libdir' 13362 whole_archive_flag_spec_CXX='$ {wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'14075 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 13363 14076 compiler_needs_object_CXX=yes 13364 14077 … … 13418 14131 ;; 13419 14132 13420 openbsd2*) 13421 # C++ shared libraries are fairly broken 13422 ld_shlibs_CXX=no 13423 ;; 13424 13425 openbsd*) 14133 openbsd* | bitrig*) 13426 14134 if test -f /usr/libexec/ld.so; then 13427 14135 hardcode_direct_CXX=yes … … 13429 14137 hardcode_direct_absolute_CXX=yes 13430 14138 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13431 hardcode_libdir_flag_spec_CXX='$ {wl}-rpath,$libdir'13432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then13433 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-retain-symbols-file,$export_symbols -o $lib'13434 export_dynamic_flag_spec_CXX='$ {wl}-E'13435 whole_archive_flag_spec_CXX= "$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'14139 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14141 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14142 export_dynamic_flag_spec_CXX='$wl-E' 14143 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13436 14144 fi 13437 14145 output_verbose_link_cmd=func_echo_all … … 13449 14157 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13450 14158 # to its proper name (with version) after linking. 13451 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$ {tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'13452 13453 hardcode_libdir_flag_spec_CXX='$ {wl}-rpath,$libdir'14159 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14160 14161 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13454 14162 hardcode_libdir_separator_CXX=: 13455 14163 … … 13469 14177 case $host in 13470 14178 osf3*) 13471 allow_undefined_flag_CXX=' $ {wl}-expect_unresolved ${wl}\*'13472 archive_cmds_CXX='$CC -shared$ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'13473 hardcode_libdir_flag_spec_CXX='$ {wl}-rpath ${wl}$libdir'14179 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14180 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14181 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13474 14182 ;; 13475 14183 *) 13476 14184 allow_undefined_flag_CXX=' -expect_unresolved \*' 13477 archive_cmds_CXX='$CC -shared$ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'14185 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13478 14186 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13479 13480 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~13481 14187 echo "-hidden">> $lib.exp~ 14188 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 14189 $RM $lib.exp' 13482 14190 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13483 14191 ;; … … 13494 14202 # from the output so that they don't get included in the library 13495 14203 # dependencies. 13496 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'14204 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13497 14205 ;; 13498 14206 *) 13499 if test "$GXX" = yes && test "$with_gnu_ld" = no; then13500 allow_undefined_flag_CXX=' $ {wl}-expect_unresolved ${wl}\*'14207 if test yes,no = "$GXX,$with_gnu_ld"; then 14208 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13501 14209 case $host in 13502 14210 osf3*) 13503 archive_cmds_CXX='$CC -shared -nostdlib $ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'14211 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13504 14212 ;; 13505 14213 *) 13506 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'14214 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13507 14215 ;; 13508 14216 esac 13509 14217 13510 hardcode_libdir_flag_spec_CXX='$ {wl}-rpath ${wl}$libdir'14218 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13511 14219 hardcode_libdir_separator_CXX=: 13512 14220 … … 13554 14262 archive_cmds_need_lc_CXX=yes 13555 14263 no_undefined_flag_CXX=' -zdefs' 13556 archive_cmds_CXX='$CC -G$ {allow_undefined_flag}-h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14264 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13557 14265 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13558 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'14266 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13559 14267 13560 14268 hardcode_libdir_flag_spec_CXX='-R$libdir' … … 13564 14272 *) 13565 14273 # The compiler driver will combine and reorder linker options, 13566 # but understands `-z linker_flag'.14274 # but understands '-z linker_flag'. 13567 14275 # Supported since Solaris 2.6 (maybe 2.5.1?) 13568 14276 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' … … 13581 14289 gcx*) 13582 14290 # Green Hills C++ Compiler 13583 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-h $wl$soname -o $lib'14291 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13584 14292 13585 14293 # The C++ compiler must be used to create the archive. … … 13588 14296 *) 13589 14297 # GNU C++ compiler with Solaris linker 13590 if test "$GXX" = yes && test "$with_gnu_ld" = no; then13591 no_undefined_flag_CXX=' $ {wl}-z ${wl}defs'14298 if test yes,no = "$GXX,$with_gnu_ld"; then 14299 no_undefined_flag_CXX=' $wl-z ${wl}defs' 13592 14300 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13593 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $ LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'14301 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13594 14302 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13595 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'14303 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13596 14304 13597 14305 # Commands to make compiler produce verbose output that lists … … 13600 14308 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13601 14309 else 13602 # g++ 2.7 appears to require `-G' NOT `-shared' on this14310 # g++ 2.7 appears to require '-G' NOT '-shared' on this 13603 14311 # platform. 13604 archive_cmds_CXX='$CC -G -nostdlib $ LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'14312 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13605 14313 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13606 $CC -G -nostdlib ${wl}-M $wl$lib.exp-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'14314 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13607 14315 13608 14316 # Commands to make compiler produce verbose output that lists … … 13612 14320 fi 13613 14321 13614 hardcode_libdir_flag_spec_CXX='$ {wl}-R $wl$libdir'14322 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 13615 14323 case $host_os in 13616 14324 solaris2.[0-5] | solaris2.[0-5].*) ;; 13617 14325 *) 13618 whole_archive_flag_spec_CXX='$ {wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'14326 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13619 14327 ;; 13620 14328 esac … … 13625 14333 13626 14334 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13627 no_undefined_flag_CXX='$ {wl}-z,text'14335 no_undefined_flag_CXX='$wl-z,text' 13628 14336 archive_cmds_need_lc_CXX=no 13629 14337 hardcode_shlibpath_var_CXX=no … … 13632 14340 case $cc_basename in 13633 14341 CC*) 13634 archive_cmds_CXX='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'13635 archive_expsym_cmds_CXX='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14342 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14343 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13636 14344 ;; 13637 14345 *) 13638 archive_cmds_CXX='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'13639 archive_expsym_cmds_CXX='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14346 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14347 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13640 14348 ;; 13641 14349 esac … … 13643 14351 13644 14352 sysv5* | sco3.2v5* | sco5v6*) 13645 # Note: We canNOT use -z defs as we might desire, because we do not14353 # Note: We CANNOT use -z defs as we might desire, because we do not 13646 14354 # link with -lc, and that would cause any symbols used from libc to 13647 14355 # always be unresolved, which means just about no library would … … 13649 14357 # though, which does catch some bad symbols but isn't as heavy-handed 13650 14358 # as -z defs. 13651 no_undefined_flag_CXX='$ {wl}-z,text'13652 allow_undefined_flag_CXX='$ {wl}-z,nodefs'14359 no_undefined_flag_CXX='$wl-z,text' 14360 allow_undefined_flag_CXX='$wl-z,nodefs' 13653 14361 archive_cmds_need_lc_CXX=no 13654 14362 hardcode_shlibpath_var_CXX=no 13655 hardcode_libdir_flag_spec_CXX='$ {wl}-R,$libdir'14363 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 13656 14364 hardcode_libdir_separator_CXX=':' 13657 14365 link_all_deplibs_CXX=yes 13658 export_dynamic_flag_spec_CXX='$ {wl}-Bexport'14366 export_dynamic_flag_spec_CXX='$wl-Bexport' 13659 14367 runpath_var='LD_RUN_PATH' 13660 14368 13661 14369 case $cc_basename in 13662 14370 CC*) 13663 archive_cmds_CXX='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'13664 archive_expsym_cmds_CXX='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14371 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14372 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13665 14373 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13666 14374 '"$old_archive_cmds_CXX" 13667 14375 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13668 14376 '"$reload_cmds_CXX" 13669 14377 ;; 13670 14378 *) 13671 archive_cmds_CXX='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'13672 archive_expsym_cmds_CXX='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14379 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14380 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13673 14381 ;; 13674 14382 esac … … 13702 14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13703 14411 $as_echo "$ld_shlibs_CXX" >&6; } 13704 test "$ld_shlibs_CXX" = no&& can_build_shared=no13705 13706 GCC_CXX= "$GXX"13707 LD_CXX= "$LD"14412 test no = "$ld_shlibs_CXX" && can_build_shared=no 14413 14414 GCC_CXX=$GXX 14415 LD_CXX=$LD 13708 14416 13709 14417 ## CAVEAT EMPTOR: … … 13733 14441 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13734 14442 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14443 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13735 14444 esac 13736 14445 … … 13748 14457 13749 14458 for p in `eval "$output_verbose_link_cmd"`; do 13750 case $ {prev}${p}in14459 case $prev$p in 13751 14460 13752 14461 -L* | -R* | -l*) 13753 14462 # Some compilers place space between "-{L,R}" and the path. 13754 14463 # Remove the space. 13755 if test $p = "-L" ||13756 test $p = "-R"; then14464 if test x-L = "$p" || 14465 test x-R = "$p"; then 13757 14466 prev=$p 13758 14467 continue … … 13770 14479 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13771 14480 esac 13772 if test "$pre_test_object_deps_done" = no; then13773 case $ {prev}in14481 if test no = "$pre_test_object_deps_done"; then 14482 case $prev in 13774 14483 -L | -R) 13775 14484 # Internal compiler library paths should come after those … … 13777 14486 # user supplied libs so there is no need to process them. 13778 14487 if test -z "$compiler_lib_search_path_CXX"; then 13779 compiler_lib_search_path_CXX= "${prev}${p}"14488 compiler_lib_search_path_CXX=$prev$p 13780 14489 else 13781 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $ {prev}${p}"14490 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 13782 14491 fi 13783 14492 ;; … … 13787 14496 else 13788 14497 if test -z "$postdeps_CXX"; then 13789 postdeps_CXX= "${prev}${p}"14498 postdeps_CXX=$prev$p 13790 14499 else 13791 postdeps_CXX="${postdeps_CXX} $ {prev}${p}"14500 postdeps_CXX="${postdeps_CXX} $prev$p" 13792 14501 fi 13793 14502 fi … … 13804 14513 fi 13805 14514 13806 if test "$pre_test_object_deps_done" = no; then14515 if test no = "$pre_test_object_deps_done"; then 13807 14516 if test -z "$predep_objects_CXX"; then 13808 predep_objects_CXX= "$p"14517 predep_objects_CXX=$p 13809 14518 else 13810 14519 predep_objects_CXX="$predep_objects_CXX $p" … … 13812 14521 else 13813 14522 if test -z "$postdep_objects_CXX"; then 13814 postdep_objects_CXX= "$p"14523 postdep_objects_CXX=$p 13815 14524 else 13816 14525 postdep_objects_CXX="$postdep_objects_CXX $p" … … 13842 14551 postdeps_CXX= 13843 14552 ;; 13844 13845 linux*)13846 case `$CC -V 2>&1 | sed 5q` in13847 *Sun\ C*)13848 # Sun C++ 5.913849 13850 # The more standards-conforming stlport4 library is13851 # incompatible with the Cstd library. Avoid specifying13852 # it if it's in CXXFLAGS. Ignore libCrun as13853 # -library=stlport4 depends on it.13854 case " $CXX $CXXFLAGS " in13855 *" -library=stlport4 "*)13856 solaris_use_stlport4=yes13857 ;;13858 esac13859 13860 if test "$solaris_use_stlport4" != yes; then13861 postdeps_CXX='-library=Cstd -library=Crun'13862 fi13863 ;;13864 esac13865 ;;13866 13867 solaris*)13868 case $cc_basename in13869 CC* | sunCC*)13870 # The more standards-conforming stlport4 library is13871 # incompatible with the Cstd library. Avoid specifying13872 # it if it's in CXXFLAGS. Ignore libCrun as13873 # -library=stlport4 depends on it.13874 case " $CXX $CXXFLAGS " in13875 *" -library=stlport4 "*)13876 solaris_use_stlport4=yes13877 ;;13878 esac13879 13880 # Adding this requires a known-good setup of shared libraries for13881 # Sun compiler versions before 5.6, else PIC objects from an old13882 # archive will be linked into the output, leading to subtle bugs.13883 if test "$solaris_use_stlport4" != yes; then13884 postdeps_CXX='-library=Cstd -library=Crun'13885 fi13886 ;;13887 esac13888 ;;13889 14553 esac 13890 14554 … … 13895 14559 compiler_lib_search_dirs_CXX= 13896 14560 if test -n "${compiler_lib_search_path_CXX}"; then 13897 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $ {SED}-e 's! -L! !g' -e 's!^ !!'`14561 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 13898 14562 fi 13899 14563 … … 13934 14598 13935 14599 # C++ specific cases for pic, static, wl, etc. 13936 if test "$GXX" = yes; then14600 if test yes = "$GXX"; then 13937 14601 lt_prog_compiler_wl_CXX='-Wl,' 13938 14602 lt_prog_compiler_static_CXX='-static' … … 13941 14605 aix*) 13942 14606 # All AIX code is PIC. 13943 if test "$host_cpu" = ia64; then14607 if test ia64 = "$host_cpu"; then 13944 14608 # AIX 5 now supports IA64 processor 13945 14609 lt_prog_compiler_static_CXX='-Bstatic' 13946 14610 fi 14611 lt_prog_compiler_pic_CXX='-fPIC' 13947 14612 ;; 13948 14613 … … 13955 14620 m68k) 13956 14621 # FIXME: we need at least 68020 code to build shared libraries, but 13957 # adding the `-m68020' flag to GCC prevents building anything better,13958 # like `-m68040'.14622 # adding the '-m68020' flag to GCC prevents building anything better, 14623 # like '-m68040'. 13959 14624 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13960 14625 ;; … … 13971 14636 # (--disable-auto-import) libraries 13972 14637 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14638 case $host_os in 14639 os2*) 14640 lt_prog_compiler_static_CXX='$wl-static' 14641 ;; 14642 esac 13973 14643 ;; 13974 14644 darwin* | rhapsody*) … … 14020 14690 aix[4-9]*) 14021 14691 # All AIX code is PIC. 14022 if test "$host_cpu" = ia64; then14692 if test ia64 = "$host_cpu"; then 14023 14693 # AIX 5 now supports IA64 processor 14024 14694 lt_prog_compiler_static_CXX='-Bstatic' … … 14060 14730 CC*) 14061 14731 lt_prog_compiler_wl_CXX='-Wl,' 14062 lt_prog_compiler_static_CXX='$ {wl}-a ${wl}archive'14063 if test "$host_cpu" != ia64; then14732 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14733 if test ia64 != "$host_cpu"; then 14064 14734 lt_prog_compiler_pic_CXX='+Z' 14065 14735 fi … … 14067 14737 aCC*) 14068 14738 lt_prog_compiler_wl_CXX='-Wl,' 14069 lt_prog_compiler_static_CXX='$ {wl}-a ${wl}archive'14739 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14070 14740 case $host_cpu in 14071 14741 hppa*64*|ia64*) … … 14096 14766 esac 14097 14767 ;; 14098 linux* | k*bsd*-gnu | kopensolaris*-gnu )14768 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14099 14769 case $cc_basename in 14100 14770 KCC*) … … 14104 14774 ;; 14105 14775 ecpc* ) 14106 # old Intel C++ for x86_64 which still supported -KPIC.14776 # old Intel C++ for x86_64, which still supported -KPIC. 14107 14777 lt_prog_compiler_wl_CXX='-Wl,' 14108 14778 lt_prog_compiler_pic_CXX='-KPIC' … … 14249 14919 14250 14920 case $host_os in 14251 # For platforms whichdo not support PIC, -DPIC is meaningless:14921 # For platforms that do not support PIC, -DPIC is meaningless: 14252 14922 *djgpp*) 14253 14923 lt_prog_compiler_pic_CXX= … … 14281 14951 ac_outfile=conftest.$ac_objext 14282 14952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14283 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14953 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14284 14954 # Insert the option either (1) after the last *FLAGS variable, or 14285 14955 # (2) before a word containing "conftest.", or (3) at the end. … … 14311 14981 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14312 14982 14313 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then14983 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14314 14984 case $lt_prog_compiler_pic_CXX in 14315 14985 "" | " "*) ;; … … 14337 15007 else 14338 15008 lt_cv_prog_compiler_static_works_CXX=no 14339 save_LDFLAGS= "$LDFLAGS"15009 save_LDFLAGS=$LDFLAGS 14340 15010 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14341 15011 echo "$lt_simple_link_test_code" > conftest.$ac_ext … … 14356 15026 fi 14357 15027 $RM -r conftest* 14358 LDFLAGS= "$save_LDFLAGS"15028 LDFLAGS=$save_LDFLAGS 14359 15029 14360 15030 fi … … 14362 15032 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14363 15033 14364 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then15034 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14365 15035 : 14366 15036 else … … 14476 15146 14477 15147 14478 hard_links= "nottested"14479 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then15148 hard_links=nottested 15149 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 14480 15150 # do not overwrite the value of need_locks provided by the user 14481 15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 … … 14489 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14490 15160 $as_echo "$hard_links" >&6; } 14491 if test "$hard_links" = no; then14492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&514493 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}15161 if test no = "$hard_links"; then 15162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15163 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14494 15164 need_locks=warn 14495 15165 fi … … 14508 15178 aix[4-9]*) 14509 15179 # If we're using GNU nm, then we don't want the "-C" option. 14510 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14511 # Also, AIX nm treats weak defined symbols like other global defined 14512 # symbols, whereas GNU nm marks them as "W". 15180 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15181 # Without the "-l" option, or with the "-B" option, AIX nm treats 15182 # weak defined symbols like other global defined symbols, whereas 15183 # GNU nm marks them as "W". 15184 # While the 'weak' keyword is ignored in the Export File, we need 15185 # it in the Import File for the 'aix-soname' feature, so we have 15186 # to replace the "-B" option with "-P" for AIX nm. 14513 15187 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14514 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3} }'\'' | sort -u > $export_symbols'15188 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 14515 15189 else 14516 export_symbols_cmds_CXX=' $NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3} }'\'' | sort -u > $export_symbols'15190 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 14517 15191 fi 14518 15192 ;; 14519 15193 pw32*) 14520 export_symbols_cmds_CXX= "$ltdll_cmds"15194 export_symbols_cmds_CXX=$ltdll_cmds 14521 15195 ;; 14522 15196 cygwin* | mingw* | cegcc*) 14523 15197 case $cc_basename in 14524 cl*) ;; 15198 cl*) 15199 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15200 ;; 14525 15201 *) 14526 15202 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' … … 14539 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14540 15216 $as_echo "$ld_shlibs_CXX" >&6; } 14541 test "$ld_shlibs_CXX" = no&& can_build_shared=no15217 test no = "$ld_shlibs_CXX" && can_build_shared=no 14542 15218 14543 15219 with_gnu_ld_CXX=$with_gnu_ld … … 14556 15232 archive_cmds_need_lc_CXX=yes 14557 15233 14558 if test "$enable_shared" = yes && test "$GCC" = yes; then15234 if test yes,yes = "$GCC,$enable_shared"; then 14559 15235 case $archive_cmds_CXX in 14560 15236 *'~'*) … … 14678 15354 14679 15355 14680 14681 14682 15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14683 15357 $as_echo_n "checking dynamic linker characteristics... " >&6; } … … 14686 15360 libname_spec='lib$name' 14687 15361 soname_spec= 14688 shrext_cmds= ".so"15362 shrext_cmds=.so 14689 15363 postinstall_cmds= 14690 15364 postuninstall_cmds= … … 14703 15377 need_version=unknown 14704 15378 15379 15380 14705 15381 case $host_os in 14706 15382 aix3*) 14707 version_type=linux 14708 library_names_spec='$ {libname}${release}${shared_ext}$versuffix $libname.a'15383 version_type=linux # correct to gnu/linux during the next big refactor 15384 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14709 15385 shlibpath_var=LIBPATH 14710 15386 14711 15387 # AIX 3 has no versioning support, so we append a major version to the name. 14712 soname_spec='$ {libname}${release}${shared_ext}$major'15388 soname_spec='$libname$release$shared_ext$major' 14713 15389 ;; 14714 15390 14715 15391 aix[4-9]*) 14716 version_type=linux 15392 version_type=linux # correct to gnu/linux during the next big refactor 14717 15393 need_lib_prefix=no 14718 15394 need_version=no 14719 15395 hardcode_into_libs=yes 14720 if test "$host_cpu" = ia64; then15396 if test ia64 = "$host_cpu"; then 14721 15397 # AIX 5 supports IA64 14722 library_names_spec='$ {libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'15398 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14723 15399 shlibpath_var=LD_LIBRARY_PATH 14724 15400 else 14725 15401 # With GCC up to 2.95.x, collect2 would create an import file 14726 15402 # for dependence libraries. The import file would start with 14727 # the line `#! .'. This would cause the generated library to14728 # depend on `.', always an invalid library. This was fixed in15403 # the line '#! .'. This would cause the generated library to 15404 # depend on '.', always an invalid library. This was fixed in 14729 15405 # development snapshots of GCC prior to 3.0. 14730 15406 case $host_os in … … 14732 15408 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14733 15409 echo ' yes ' 14734 echo '#endif'; } | $ {CC}-E - | $GREP yes > /dev/null; then15410 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14735 15411 : 14736 15412 else … … 14739 15415 ;; 14740 15416 esac 14741 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15417 # Using Import Files as archive members, it is possible to support 15418 # filename-based versioning of shared library archives on AIX. While 15419 # this would work for both with and without runtime linking, it will 15420 # prevent static linking of such archives. So we do filename-based 15421 # shared library versioning with .so extension only, which is used 15422 # when both runtime linking and shared linking is enabled. 15423 # Unfortunately, runtime linking may impact performance, so we do 15424 # not want this to be the default eventually. Also, we use the 15425 # versioned .so libs for executables only if there is the -brtl 15426 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15427 # To allow for filename-based versioning support, we need to create 15428 # libNAME.so.V as an archive file, containing: 15429 # *) an Import File, referring to the versioned filename of the 15430 # archive as well as the shared archive member, telling the 15431 # bitwidth (32 or 64) of that shared object, and providing the 15432 # list of exported symbols of that shared object, eventually 15433 # decorated with the 'weak' keyword 15434 # *) the shared object with the F_LOADONLY flag set, to really avoid 15435 # it being seen by the linker. 15436 # At run time we better use the real file rather than another symlink, 15437 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15438 15439 case $with_aix_soname,$aix_use_runtimelinking in 15440 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14742 15441 # soname into executable. Probably we can add versioning support to 14743 15442 # collect2, so additional links can be useful in future. 14744 if test "$aix_use_runtimelinking" = yes; then 15443 aix,yes) # traditional libtool 15444 dynamic_linker='AIX unversionable lib.so' 14745 15445 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14746 15446 # instead of lib<name>.a to let people know that these are not 14747 15447 # typical AIX shared libraries. 14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14749 else 15448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15449 ;; 15450 aix,no) # traditional AIX only 15451 dynamic_linker='AIX lib.a(lib.so.V)' 14750 15452 # We preserve .a as extension for shared libraries through AIX4.2 14751 15453 # and later when we are not doing run time linking. 14752 library_names_spec='${libname}${release}.a $libname.a' 14753 soname_spec='${libname}${release}${shared_ext}$major' 14754 fi 15454 library_names_spec='$libname$release.a $libname.a' 15455 soname_spec='$libname$release$shared_ext$major' 15456 ;; 15457 svr4,*) # full svr4 only 15458 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15459 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15460 # We do not specify a path in Import Files, so LIBPATH fires. 15461 shlibpath_overrides_runpath=yes 15462 ;; 15463 *,yes) # both, prefer svr4 15464 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15465 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15466 # unpreferred sharedlib libNAME.a needs extra handling 15467 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 15468 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 15469 # We do not specify a path in Import Files, so LIBPATH fires. 15470 shlibpath_overrides_runpath=yes 15471 ;; 15472 *,no) # both, prefer aix 15473 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15474 library_names_spec='$libname$release.a $libname.a' 15475 soname_spec='$libname$release$shared_ext$major' 15476 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15477 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15478 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15479 ;; 15480 esac 14755 15481 shlibpath_var=LIBPATH 14756 15482 fi … … 14762 15488 # Since July 2007 AmigaOS4 officially supports .so libraries. 14763 15489 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14764 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'15490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14765 15491 ;; 14766 15492 m68k) 14767 15493 library_names_spec='$libname.ixlibrary $libname.a' 14768 15494 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14769 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'15495 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14770 15496 ;; 14771 15497 esac … … 14773 15499 14774 15500 beos*) 14775 library_names_spec='$ {libname}${shared_ext}'15501 library_names_spec='$libname$shared_ext' 14776 15502 dynamic_linker="$host_os ld.so" 14777 15503 shlibpath_var=LIBRARY_PATH … … 14779 15505 14780 15506 bsdi[45]*) 14781 version_type=linux 15507 version_type=linux # correct to gnu/linux during the next big refactor 14782 15508 need_version=no 14783 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'14784 soname_spec='$ {libname}${release}${shared_ext}$major'15509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15510 soname_spec='$libname$release$shared_ext$major' 14785 15511 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14786 15512 shlibpath_var=LD_LIBRARY_PATH … … 14794 15520 cygwin* | mingw* | pw32* | cegcc*) 14795 15521 version_type=windows 14796 shrext_cmds= ".dll"15522 shrext_cmds=.dll 14797 15523 need_version=no 14798 15524 need_lib_prefix=no … … 14803 15529 library_names_spec='$libname.dll.a' 14804 15530 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14805 postinstall_cmds='base_file=`basename \$ {file}`~14806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$ {base_file}'\''i; echo \$dlname'\''`~15531 postinstall_cmds='base_file=`basename \$file`~ 15532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14807 15533 dldir=$destdir/`dirname \$dlpath`~ 14808 15534 test -d \$dldir || mkdir -p \$dldir~ … … 14820 15546 cygwin*) 14821 15547 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14822 soname_spec='`echo $ {libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'15548 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14823 15549 14824 15550 ;; 14825 15551 mingw* | cegcc*) 14826 15552 # MinGW DLLs use traditional 'lib' prefix 14827 soname_spec='$ {libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'15553 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14828 15554 ;; 14829 15555 pw32*) 14830 15556 # pw32 DLLs use 'pw' prefix rather than 'lib' 14831 library_names_spec='`echo $ {libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'15557 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14832 15558 ;; 14833 15559 esac … … 14838 15564 # Native MSVC 14839 15565 libname_spec='$name' 14840 soname_spec='$ {libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'14841 library_names_spec='$ {libname}.dll.lib'15566 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15567 library_names_spec='$libname.dll.lib' 14842 15568 14843 15569 case $build_os in … … 14866 15592 ;; 14867 15593 *) 14868 sys_lib_search_path_spec= "$LIB"15594 sys_lib_search_path_spec=$LIB 14869 15595 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14870 15596 # It is most probably a Windows format PATH. … … 14879 15605 14880 15606 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14881 postinstall_cmds='base_file=`basename \$ {file}`~14882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$ {base_file}'\''i; echo \$dlname'\''`~15607 postinstall_cmds='base_file=`basename \$file`~ 15608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14883 15609 dldir=$destdir/`dirname \$dlpath`~ 14884 15610 test -d \$dldir || mkdir -p \$dldir~ … … 14893 15619 *) 14894 15620 # Assume MSVC wrapper 14895 library_names_spec='$ {libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}$libname.lib'15621 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14896 15622 dynamic_linker='Win32 ld.exe' 14897 15623 ;; … … 14906 15632 need_lib_prefix=no 14907 15633 need_version=no 14908 library_names_spec='$ {libname}${release}${major}$shared_ext ${libname}$shared_ext'14909 soname_spec='$ {libname}${release}${major}$shared_ext'15634 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15635 soname_spec='$libname$release$major$shared_ext' 14910 15636 shlibpath_overrides_runpath=yes 14911 15637 shlibpath_var=DYLD_LIBRARY_PATH … … 14916 15642 14917 15643 dgux*) 14918 version_type=linux 15644 version_type=linux # correct to gnu/linux during the next big refactor 14919 15645 need_lib_prefix=no 14920 15646 need_version=no 14921 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'14922 soname_spec='$ {libname}${release}${shared_ext}$major'15647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15648 soname_spec='$libname$release$shared_ext$major' 14923 15649 shlibpath_var=LD_LIBRARY_PATH 14924 ;;14925 14926 freebsd1*)14927 dynamic_linker=no14928 15650 ;; 14929 15651 … … 14935 15657 else 14936 15658 case $host_os in 14937 freebsd[ 123]*) objformat=aout ;;15659 freebsd[23].*) objformat=aout ;; 14938 15660 *) objformat=elf ;; 14939 15661 esac … … 14942 15664 case $version_type in 14943 15665 freebsd-elf*) 14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15667 soname_spec='$libname$release$shared_ext$major' 14945 15668 need_version=no 14946 15669 need_lib_prefix=no 14947 15670 ;; 14948 15671 freebsd-*) 14949 library_names_spec='$ {libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'15672 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14950 15673 need_version=yes 14951 15674 ;; … … 14953 15676 shlibpath_var=LD_LIBRARY_PATH 14954 15677 case $host_os in 14955 freebsd2 *)15678 freebsd2.*) 14956 15679 shlibpath_overrides_runpath=yes 14957 15680 ;; … … 14972 15695 ;; 14973 15696 14974 gnu*)14975 version_type=linux14976 need_lib_prefix=no14977 need_version=no14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'14979 soname_spec='${libname}${release}${shared_ext}$major'14980 shlibpath_var=LD_LIBRARY_PATH14981 shlibpath_overrides_runpath=no14982 hardcode_into_libs=yes14983 ;;14984 14985 15697 haiku*) 14986 version_type=linux 15698 version_type=linux # correct to gnu/linux during the next big refactor 14987 15699 need_lib_prefix=no 14988 15700 need_version=no 14989 15701 dynamic_linker="$host_os runtime_loader" 14990 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'14991 soname_spec='$ {libname}${release}${shared_ext}$major'15702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15703 soname_spec='$libname$release$shared_ext$major' 14992 15704 shlibpath_var=LIBRARY_PATH 14993 shlibpath_overrides_runpath= yes15705 shlibpath_overrides_runpath=no 14994 15706 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14995 15707 hardcode_into_libs=yes … … 15009 15721 shlibpath_var=LD_LIBRARY_PATH 15010 15722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15011 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'15012 soname_spec='$ {libname}${release}${shared_ext}$major'15013 if test "X$HPUX_IA64_MODE" = X32; then15723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15724 soname_spec='$libname$release$shared_ext$major' 15725 if test 32 = "$HPUX_IA64_MODE"; then 15014 15726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15727 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15015 15728 else 15016 15729 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15730 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15017 15731 fi 15018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec15019 15732 ;; 15020 15733 hppa*64*) … … 15024 15737 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15025 15738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15026 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'15027 soname_spec='$ {libname}${release}${shared_ext}$major'15739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15740 soname_spec='$libname$release$shared_ext$major' 15028 15741 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15029 15742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec … … 15034 15747 shlibpath_var=SHLIB_PATH 15035 15748 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15036 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'15037 soname_spec='$ {libname}${release}${shared_ext}$major'15749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15750 soname_spec='$libname$release$shared_ext$major' 15038 15751 ;; 15039 15752 esac … … 15045 15758 15046 15759 interix[3-9]*) 15047 version_type=linux 15760 version_type=linux # correct to gnu/linux during the next big refactor 15048 15761 need_lib_prefix=no 15049 15762 need_version=no 15050 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'15051 soname_spec='$ {libname}${release}${shared_ext}$major'15763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15764 soname_spec='$libname$release$shared_ext$major' 15052 15765 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15053 15766 shlibpath_var=LD_LIBRARY_PATH … … 15060 15773 nonstopux*) version_type=nonstopux ;; 15061 15774 *) 15062 if test "$lt_cv_prog_gnu_ld" = yes; then15063 version_type=linux 15775 if test yes = "$lt_cv_prog_gnu_ld"; then 15776 version_type=linux # correct to gnu/linux during the next big refactor 15064 15777 else 15065 15778 version_type=irix … … 15068 15781 need_lib_prefix=no 15069 15782 need_version=no 15070 soname_spec='$ {libname}${release}${shared_ext}$major'15071 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'15783 soname_spec='$libname$release$shared_ext$major' 15784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15072 15785 case $host_os in 15073 15786 irix5* | nonstopux*) … … 15088 15801 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15089 15802 shlibpath_overrides_runpath=no 15090 sys_lib_search_path_spec="/usr/lib$ {libsuff} /lib${libsuff} /usr/local/lib${libsuff}"15091 sys_lib_dlsearch_path_spec="/usr/lib$ {libsuff} /lib${libsuff}"15803 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15804 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15092 15805 hardcode_into_libs=yes 15093 15806 ;; … … 15098 15811 ;; 15099 15812 15100 # This must be Linux ELF. 15101 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15102 version_type=linux 15813 linux*android*) 15814 version_type=none # Android doesn't support versioned libraries. 15103 15815 need_lib_prefix=no 15104 15816 need_version=no 15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15106 soname_spec='${libname}${release}${shared_ext}$major' 15817 library_names_spec='$libname$release$shared_ext' 15818 soname_spec='$libname$release$shared_ext' 15819 finish_cmds= 15820 shlibpath_var=LD_LIBRARY_PATH 15821 shlibpath_overrides_runpath=yes 15822 15823 # This implies no fast_install, which is unacceptable. 15824 # Some rework will be needed to allow for fast_install 15825 # before this can be enabled. 15826 hardcode_into_libs=yes 15827 15828 dynamic_linker='Android linker' 15829 # Don't embed -rpath directories since the linker doesn't support them. 15830 hardcode_libdir_flag_spec_CXX='-L$libdir' 15831 ;; 15832 15833 # This must be glibc/ELF. 15834 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15835 version_type=linux # correct to gnu/linux during the next big refactor 15836 need_lib_prefix=no 15837 need_version=no 15838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15839 soname_spec='$libname$release$shared_ext$major' 15107 15840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15108 15841 shlibpath_var=LD_LIBRARY_PATH … … 15148 15881 hardcode_into_libs=yes 15149 15882 15150 # Append ld.so.conf contents to the search path 15883 # Ideally, we could use ldconfig to report *all* directores which are 15884 # searched for libraries, however this is still not possible. Aside from not 15885 # being certain /sbin/ldconfig is available, command 15886 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15887 # even though it is searched at run-time. Try to do the best guess by 15888 # appending ld.so.conf contents (and includes) to the search path. 15151 15889 if test -f /etc/ld.so.conf; then 15152 15890 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` … … 15180 15918 need_version=no 15181 15919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15182 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'15920 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15183 15921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15184 15922 dynamic_linker='NetBSD (a.out) ld.so' 15185 15923 else 15186 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'15187 soname_spec='$ {libname}${release}${shared_ext}$major'15924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15925 soname_spec='$libname$release$shared_ext$major' 15188 15926 dynamic_linker='NetBSD ld.elf_so' 15189 15927 fi … … 15194 15932 15195 15933 newsos6) 15196 version_type=linux 15197 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'15934 version_type=linux # correct to gnu/linux during the next big refactor 15935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15198 15936 shlibpath_var=LD_LIBRARY_PATH 15199 15937 shlibpath_overrides_runpath=yes … … 15204 15942 need_lib_prefix=no 15205 15943 need_version=no 15206 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'15207 soname_spec='$ {libname}${release}${shared_ext}$major'15944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15945 soname_spec='$libname$release$shared_ext$major' 15208 15946 shlibpath_var=LD_LIBRARY_PATH 15209 15947 shlibpath_overrides_runpath=no … … 15212 15950 ;; 15213 15951 15214 openbsd* )15952 openbsd* | bitrig*) 15215 15953 version_type=sunos 15216 sys_lib_dlsearch_path_spec= "/usr/lib"15954 sys_lib_dlsearch_path_spec=/usr/lib 15217 15955 need_lib_prefix=no 15218 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.15219 case $host_os in15220 openbsd3.3 | openbsd3.3.*) need_version=yes ;;15221 *) need_version=no ;;15222 esac15223 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'15956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15957 need_version=no 15958 else 15959 need_version=yes 15960 fi 15961 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15224 15962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15225 15963 shlibpath_var=LD_LIBRARY_PATH 15226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15227 case $host_os in 15228 openbsd2.[89] | openbsd2.[89].*) 15229 shlibpath_overrides_runpath=no 15230 ;; 15231 *) 15232 shlibpath_overrides_runpath=yes 15233 ;; 15234 esac 15235 else 15236 shlibpath_overrides_runpath=yes 15237 fi 15964 shlibpath_overrides_runpath=yes 15238 15965 ;; 15239 15966 15240 15967 os2*) 15241 15968 libname_spec='$name' 15242 shrext_cmds=".dll" 15969 version_type=windows 15970 shrext_cmds=.dll 15971 need_version=no 15243 15972 need_lib_prefix=no 15244 library_names_spec='$libname${shared_ext} $libname.a' 15973 # OS/2 can only load a DLL with a base name of 8 characters or less. 15974 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15975 v=$($ECHO $release$versuffix | tr -d .-); 15976 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15977 $ECHO $n$v`$shared_ext' 15978 library_names_spec='${libname}_dll.$libext' 15245 15979 dynamic_linker='OS/2 ld.exe' 15246 shlibpath_var=LIBPATH 15980 shlibpath_var=BEGINLIBPATH 15981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15983 postinstall_cmds='base_file=`basename \$file`~ 15984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15985 dldir=$destdir/`dirname \$dlpath`~ 15986 test -d \$dldir || mkdir -p \$dldir~ 15987 $install_prog $dir/$dlname \$dldir/$dlname~ 15988 chmod a+x \$dldir/$dlname~ 15989 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15990 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15991 fi' 15992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15993 dlpath=$dir/\$dldll~ 15994 $RM \$dlpath' 15247 15995 ;; 15248 15996 … … 15251 15999 need_lib_prefix=no 15252 16000 need_version=no 15253 soname_spec='$ {libname}${release}${shared_ext}$major'15254 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'16001 soname_spec='$libname$release$shared_ext$major' 16002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15255 16003 shlibpath_var=LD_LIBRARY_PATH 15256 16004 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15257 sys_lib_dlsearch_path_spec= "$sys_lib_search_path_spec"16005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15258 16006 ;; 15259 16007 … … 15263 16011 15264 16012 solaris*) 15265 version_type=linux 16013 version_type=linux # correct to gnu/linux during the next big refactor 15266 16014 need_lib_prefix=no 15267 16015 need_version=no 15268 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'15269 soname_spec='$ {libname}${release}${shared_ext}$major'16016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16017 soname_spec='$libname$release$shared_ext$major' 15270 16018 shlibpath_var=LD_LIBRARY_PATH 15271 16019 shlibpath_overrides_runpath=yes … … 15277 16025 sunos4*) 15278 16026 version_type=sunos 15279 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'16027 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15280 16028 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15281 16029 shlibpath_var=LD_LIBRARY_PATH 15282 16030 shlibpath_overrides_runpath=yes 15283 if test "$with_gnu_ld" = yes; then16031 if test yes = "$with_gnu_ld"; then 15284 16032 need_lib_prefix=no 15285 16033 fi … … 15288 16036 15289 16037 sysv4 | sysv4.3*) 15290 version_type=linux 15291 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'15292 soname_spec='$ {libname}${release}${shared_ext}$major'16038 version_type=linux # correct to gnu/linux during the next big refactor 16039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16040 soname_spec='$libname$release$shared_ext$major' 15293 16041 shlibpath_var=LD_LIBRARY_PATH 15294 16042 case $host_vendor in … … 15311 16059 15312 16060 sysv4*MP*) 15313 if test -d /usr/nec ;then15314 version_type=linux 15315 library_names_spec='$libname$ {shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'15316 soname_spec='$libname$ {shared_ext}.$major'16061 if test -d /usr/nec; then 16062 version_type=linux # correct to gnu/linux during the next big refactor 16063 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16064 soname_spec='$libname$shared_ext.$major' 15317 16065 shlibpath_var=LD_LIBRARY_PATH 15318 16066 fi … … 15320 16068 15321 16069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15322 version_type= freebsd-elf16070 version_type=sco 15323 16071 need_lib_prefix=no 15324 16072 need_version=no 15325 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'15326 soname_spec='$ {libname}${release}${shared_ext}$major'16073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16074 soname_spec='$libname$release$shared_ext$major' 15327 16075 shlibpath_var=LD_LIBRARY_PATH 15328 16076 shlibpath_overrides_runpath=yes 15329 16077 hardcode_into_libs=yes 15330 if test "$with_gnu_ld" = yes; then16078 if test yes = "$with_gnu_ld"; then 15331 16079 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15332 16080 else … … 15343 16091 tpf*) 15344 16092 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15345 version_type=linux 16093 version_type=linux # correct to gnu/linux during the next big refactor 15346 16094 need_lib_prefix=no 15347 16095 need_version=no 15348 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'16096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15349 16097 shlibpath_var=LD_LIBRARY_PATH 15350 16098 shlibpath_overrides_runpath=no … … 15353 16101 15354 16102 uts4*) 15355 version_type=linux 15356 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'15357 soname_spec='$ {libname}${release}${shared_ext}$major'16103 version_type=linux # correct to gnu/linux during the next big refactor 16104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16105 soname_spec='$libname$release$shared_ext$major' 15358 16106 shlibpath_var=LD_LIBRARY_PATH 15359 16107 ;; … … 15365 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15366 16114 $as_echo "$dynamic_linker" >&6; } 15367 test "$dynamic_linker" = no&& can_build_shared=no16115 test no = "$dynamic_linker" && can_build_shared=no 15368 16116 15369 16117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15370 if test "$GCC" = yes; then16118 if test yes = "$GCC"; then 15371 16119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15372 16120 fi 15373 16121 15374 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15375 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15376 fi 15377 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15378 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15379 fi 16122 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16123 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16124 fi 16125 16126 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16127 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16128 fi 16129 16130 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16131 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16132 16133 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16134 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16135 16136 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16137 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16138 16139 15380 16140 15381 16141 … … 15421 16181 if test -n "$hardcode_libdir_flag_spec_CXX" || 15422 16182 test -n "$runpath_var_CXX" || 15423 test "X$hardcode_automatic_CXX" = "Xyes"; then16183 test yes = "$hardcode_automatic_CXX"; then 15424 16184 15425 16185 # We can hardcode non-existent directories. 15426 if test "$hardcode_direct_CXX" != no&&16186 if test no != "$hardcode_direct_CXX" && 15427 16187 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15428 16188 # have to relink, otherwise we might link with an installed library 15429 16189 # when we should be linking with a yet-to-be-installed one 15430 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no&&15431 test "$hardcode_minus_L_CXX" != no; then16190 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16191 test no != "$hardcode_minus_L_CXX"; then 15432 16192 # Linking always hardcodes the temporary library directory. 15433 16193 hardcode_action_CXX=relink … … 15444 16204 $as_echo "$hardcode_action_CXX" >&6; } 15445 16205 15446 if test "$hardcode_action_CXX" = relink||15447 test "$inherit_rpath_CXX" = yes; then16206 if test relink = "$hardcode_action_CXX" || 16207 test yes = "$inherit_rpath_CXX"; then 15448 16208 # Fast installation is not supported 15449 16209 enable_fast_install=no 15450 elif test "$shlibpath_overrides_runpath" = yes||15451 test "$enable_shared" = no; then16210 elif test yes = "$shlibpath_overrides_runpath" || 16211 test no = "$enable_shared"; then 15452 16212 # Fast installation is not necessary 15453 16213 enable_fast_install=needless … … 15472 16232 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15473 16233 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15474 fi # test "$_lt_caught_CXX_error" != yes16234 fi # test yes != "$_lt_caught_CXX_error" 15475 16235 15476 16236 ac_ext=c … … 15492 16252 15493 16253 16254 16255 15494 16256 ac_config_commands="$ac_config_commands libtool" 15495 16257 … … 15511 16273 # Automake initial setup 15512 16274 ###################################################################### 15513 am__api_version='1.1 1'16275 am__api_version='1.15' 15514 16276 15515 16277 # Find a good install program. We prefer a C program (faster), … … 15550 16312 for ac_prog in ginstall scoinst install; do 15551 16313 for ac_exec_ext in '' $ac_executable_extensions; do 15552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then16314 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 15553 16315 if test $ac_prog = install && 15554 16316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then … … 15608 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 15609 16371 $as_echo_n "checking whether build environment is sane... " >&6; } 15610 # Just in case15611 sleep 115612 echo timestamp > conftest.file15613 16372 # Reject unsafe characters in $srcdir or the absolute working directory 15614 16373 # name. Accept space and tab only in the latter. … … 15621 16380 case $srcdir in 15622 16381 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 15623 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;16382 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 15624 16383 esac 15625 16384 15626 # Do `set' in a subshell so we don't clobber the current shell's16385 # Do 'set' in a subshell so we don't clobber the current shell's 15627 16386 # arguments. Must try -L first in case configure is actually a 15628 16387 # symlink; some systems play weird games with the mod time of symlinks … … 15630 16389 # directory). 15631 16390 if ( 15632 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 15633 if test "$*" = "X"; then 15634 # -L didn't work. 15635 set X `ls -t "$srcdir/configure" conftest.file` 15636 fi 15637 rm -f conftest.file 15638 if test "$*" != "X $srcdir/configure conftest.file" \ 15639 && test "$*" != "X conftest.file $srcdir/configure"; then 15640 15641 # If neither matched, then we have a broken ls. This can happen 15642 # if, for instance, CONFIG_SHELL is bash and it inherits a 15643 # broken ls alias from the environment. This has actually 15644 # happened. Such a system could not be considered "sane". 15645 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 15646 alias in your environment" "$LINENO" 5 15647 fi 15648 16391 am_has_slept=no 16392 for am_try in 1 2; do 16393 echo "timestamp, slept: $am_has_slept" > conftest.file 16394 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 16395 if test "$*" = "X"; then 16396 # -L didn't work. 16397 set X `ls -t "$srcdir/configure" conftest.file` 16398 fi 16399 if test "$*" != "X $srcdir/configure conftest.file" \ 16400 && test "$*" != "X conftest.file $srcdir/configure"; then 16401 16402 # If neither matched, then we have a broken ls. This can happen 16403 # if, for instance, CONFIG_SHELL is bash and it inherits a 16404 # broken ls alias from the environment. This has actually 16405 # happened. Such a system could not be considered "sane". 16406 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 16407 alias in your environment" "$LINENO" 5 16408 fi 16409 if test "$2" = conftest.file || test $am_try -eq 2; then 16410 break 16411 fi 16412 # Just in case. 16413 sleep 1 16414 am_has_slept=yes 16415 done 15649 16416 test "$2" = conftest.file 15650 16417 ) … … 15658 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15659 16426 $as_echo "yes" >&6; } 16427 # If we didn't sleep, we still need to ensure time stamps of config.status and 16428 # generated files are strictly newer. 16429 am_sleep_pid= 16430 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 16431 ( sleep 1 ) & 16432 am_sleep_pid=$! 16433 fi 16434 16435 rm -f conftest.file 16436 15660 16437 test "$program_prefix" != NONE && 15661 16438 program_transform_name="s&^&$program_prefix&;$program_transform_name" … … 15677 16454 fi 15678 16455 # Use eval to expand $SHELL 15679 if eval "$MISSING -- run true"; then15680 am_missing_run="$MISSING --run"16456 if eval "$MISSING --is-lightweight"; then 16457 am_missing_run="$MISSING " 15681 16458 else 15682 16459 am_missing_run= 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&515684 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}15685 fi 15686 15687 if test x"${install_sh }" != xset; then16460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 16461 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 16462 fi 16463 16464 if test x"${install_sh+set}" != xset; then 15688 16465 case $am_aux_dir in 15689 16466 *\ * | *\ *) … … 15694 16471 fi 15695 16472 15696 # Installed binaries are usually stripped using `strip' when the user15697 # run `make install-strip'. However `strip' might not be the right16473 # Installed binaries are usually stripped using 'strip' when the user 16474 # run "make install-strip". However 'strip' might not be the right 15698 16475 # tool to use in cross-compilation environments, therefore Automake 15699 # will honor the `STRIP' environment variable to overrule this program.16476 # will honor the 'STRIP' environment variable to overrule this program. 15700 16477 if test "$cross_compiling" != no; then 15701 16478 if test -n "$ac_tool_prefix"; then … … 15716 16493 test -z "$as_dir" && as_dir=. 15717 16494 for ac_exec_ext in '' $ac_executable_extensions; do 15718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then16495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15719 16496 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 15720 16497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 15756 16533 test -z "$as_dir" && as_dir=. 15757 16534 for ac_exec_ext in '' $ac_executable_extensions; do 15758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then16535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15759 16536 ac_cv_prog_ac_ct_STRIP="strip" 15760 16537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 15807 16584 for ac_prog in mkdir gmkdir; do 15808 16585 for ac_exec_ext in '' $ac_executable_extensions; do 15809 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }|| continue16586 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 15810 16587 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 15811 16588 'mkdir (GNU coreutils) '* | \ … … 15835 16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 15836 16613 $as_echo "$MKDIR_P" >&6; } 15837 15838 mkdir_p="$MKDIR_P"15839 case $mkdir_p in15840 [\\/$]* | ?:[\\/]*) ;;15841 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;15842 esac15843 16614 15844 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 … … 15901 16672 # First try GNU make style include. 15902 16673 echo "include confinc" > confmf 15903 # Ignore all kinds of additional output from `make'.16674 # Ignore all kinds of additional output from 'make'. 15904 16675 case `$am_make -s -f confmf 2> /dev/null` in #( 15905 16676 *the\ am__doit\ target*) … … 15950 16721 fi 15951 16722 15952 case $enable_silent_rules in 15953 yes) AM_DEFAULT_VERBOSITY=0;;15954 no)AM_DEFAULT_VERBOSITY=1;;15955 *)AM_DEFAULT_VERBOSITY=1;;16723 case $enable_silent_rules in # ((( 16724 yes) AM_DEFAULT_VERBOSITY=0;; 16725 no) AM_DEFAULT_VERBOSITY=1;; 16726 *) AM_DEFAULT_VERBOSITY=1;; 15956 16727 esac 15957 16728 am_make=${MAKE-make} … … 16025 16796 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 16026 16797 16027 # We need awk for the "check" target. The system "awk" is bad on 16028 # some platforms. 16798 # For better backward compatibility. To be removed once Automake 1.9.x 16799 # dies out for good. For more background, see: 16800 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 16801 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 16802 mkdir_p='$(MKDIR_P)' 16803 16804 # We need awk for the "check" target (and possibly the TAP driver). The 16805 # system "awk" is bad on some platforms. 16029 16806 # Always define AMTAR for backward compatibility. Yes, it's still used 16030 16807 # in the wild :-( We should find a proper way to deprecate it ... 16031 16808 AMTAR='$${TAR-tar}' 16032 16809 16810 16811 # We'll loop over all known methods to create a tar archive until one works. 16812 _am_tools='gnutar pax cpio none' 16813 16033 16814 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 16815 16034 16816 16035 16817 … … 16047 16829 # making bogus files that we don't know about and never remove. For 16048 16830 # instance it was reported that on HP-UX the gcc test will end up 16049 # making a dummy file named `D' -- because `-MD' means `put the output16050 # in D '.16831 # making a dummy file named 'D' -- because '-MD' means "put the output 16832 # in D". 16051 16833 rm -rf conftest.dir 16052 16834 mkdir conftest.dir … … 16083 16865 for i in 1 2 3 4 5 6; do 16084 16866 echo '#include "conftst'$i'.h"' >> sub/conftest.c 16085 # Using `: > sub/conftst$i.h'creates only sub/conftst1.h with16086 # Solaris 8's {/usr,}/bin/sh.16087 touchsub/conftst$i.h16867 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 16868 # Solaris 10 /bin/sh. 16869 echo '/* dummy */' > sub/conftst$i.h 16088 16870 done 16089 16871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 16090 16872 16091 # We check with `-c' and `-o' for the sake of the "dashmstdout"16873 # We check with '-c' and '-o' for the sake of the "dashmstdout" 16092 16874 # mode. It turns out that the SunPro C++ compiler does not properly 16093 # handle `-M -o', and we need to detect this. Also, some Intel16094 # versions had trouble with output in subdirs 16875 # handle '-M -o', and we need to detect this. Also, some Intel 16876 # versions had trouble with output in subdirs. 16095 16877 am__obj=sub/conftest.${OBJEXT-o} 16096 16878 am__minus_obj="-o $am__obj" … … 16101 16883 ;; 16102 16884 nosideeffect) 16103 # after this tag, mechanisms are not by side-effect, so they'll16104 # only be used when explicitly requested 16885 # After this tag, mechanisms are not by side-effect, so they'll 16886 # only be used when explicitly requested. 16105 16887 if test "x$enable_dependency_tracking" = xyes; then 16106 16888 continue … … 16110 16892 ;; 16111 16893 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 16112 # This compiler won't grok `-c -o', but also, the minuso test has16894 # This compiler won't grok '-c -o', but also, the minuso test has 16113 16895 # not run yet. These depmodes are late enough in the game, and 16114 16896 # so weak that their functioning should not be impacted. … … 16175 16957 # making bogus files that we don't know about and never remove. For 16176 16958 # instance it was reported that on HP-UX the gcc test will end up 16177 # making a dummy file named `D' -- because `-MD' means `put the output16178 # in D '.16959 # making a dummy file named 'D' -- because '-MD' means "put the output 16960 # in D". 16179 16961 rm -rf conftest.dir 16180 16962 mkdir conftest.dir … … 16211 16993 for i in 1 2 3 4 5 6; do 16212 16994 echo '#include "conftst'$i'.h"' >> sub/conftest.c 16213 # Using `: > sub/conftst$i.h'creates only sub/conftst1.h with16214 # Solaris 8's {/usr,}/bin/sh.16215 touchsub/conftst$i.h16995 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 16996 # Solaris 10 /bin/sh. 16997 echo '/* dummy */' > sub/conftst$i.h 16216 16998 done 16217 16999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 16218 17000 16219 # We check with `-c' and `-o' for the sake of the "dashmstdout"17001 # We check with '-c' and '-o' for the sake of the "dashmstdout" 16220 17002 # mode. It turns out that the SunPro C++ compiler does not properly 16221 # handle `-M -o', and we need to detect this. Also, some Intel16222 # versions had trouble with output in subdirs 17003 # handle '-M -o', and we need to detect this. Also, some Intel 17004 # versions had trouble with output in subdirs. 16223 17005 am__obj=sub/conftest.${OBJEXT-o} 16224 17006 am__minus_obj="-o $am__obj" … … 16229 17011 ;; 16230 17012 nosideeffect) 16231 # after this tag, mechanisms are not by side-effect, so they'll16232 # only be used when explicitly requested 17013 # After this tag, mechanisms are not by side-effect, so they'll 17014 # only be used when explicitly requested. 16233 17015 if test "x$enable_dependency_tracking" = xyes; then 16234 17016 continue … … 16238 17020 ;; 16239 17021 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 16240 # This compiler won't grok `-c -o', but also, the minuso test has17022 # This compiler won't grok '-c -o', but also, the minuso test has 16241 17023 # not run yet. These depmodes are late enough in the game, and 16242 17024 # so weak that their functioning should not be impacted. … … 16293 17075 16294 17076 17077 # POSIX will say in a future version that running "rm -f" with no argument 17078 # is OK; and we want to be able to make that assumption in our Makefile 17079 # recipes. So use an aggressive probe to check that the usage we want is 17080 # actually supported "in the wild" to an acceptable degree. 17081 # See automake bug#10828. 17082 # To make any issue more visible, cause the running configure to be aborted 17083 # by default if the 'rm' program in use doesn't match our expectations; the 17084 # user can still override this though. 17085 if rm -f && rm -fr && rm -rf; then : OK; else 17086 cat >&2 <<'END' 17087 Oops! 17088 17089 Your 'rm' program seems unable to run without file operands specified 17090 on the command line, even when the '-f' option is present. This is contrary 17091 to the behaviour of most rm programs out there, and not conforming with 17092 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 17093 17094 Please tell bug-automake@gnu.org about your system, including the value 17095 of your $PATH and any error possibly output before this message. This 17096 can help us improve future automake versions. 17097 17098 END 17099 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 17100 echo 'Configuration will proceed anyway, since you have set the' >&2 17101 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 17102 echo >&2 17103 else 17104 cat >&2 <<'END' 17105 Aborting the configuration process, to ensure you take notice of the issue. 17106 17107 You can download and install GNU coreutils to get an 'rm' implementation 17108 that behaves properly: <http://www.gnu.org/software/coreutils/>. 17109 17110 If you want to complete the configuration process using your problematic 17111 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 17112 to "yes", and re-run configure. 17113 17114 END 17115 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 17116 fi 17117 fi 17118 16295 17119 # Check whether --enable-silent-rules was given. 16296 17120 if test "${enable_silent_rules+set}" = set; then : … … 16298 17122 fi 16299 17123 16300 case $enable_silent_rules in 16301 yes) AM_DEFAULT_VERBOSITY=0;;16302 no)AM_DEFAULT_VERBOSITY=1;;16303 *)AM_DEFAULT_VERBOSITY=0;;17124 case $enable_silent_rules in # ((( 17125 yes) AM_DEFAULT_VERBOSITY=0;; 17126 no) AM_DEFAULT_VERBOSITY=1;; 17127 *) AM_DEFAULT_VERBOSITY=0;; 16304 17128 esac 16305 17129 am_make=${MAKE-make} … … 16332 17156 AM_BACKSLASH='\' 16333 17157 16334 16335 if test "x$CC" != xcc; then16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&516337 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }16338 else16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&516340 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }16341 fi16342 set dummy $CC; ac_cc=`$as_echo "$2" |16343 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`16344 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :16345 $as_echo_n "(cached) " >&616346 else16347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16348 /* end confdefs.h. */16349 16350 int16351 main ()16352 {16353 16354 ;16355 return 0;16356 }16357 _ACEOF16358 # Make sure it works both with $CC and with simple cc.16359 # We do the test twice because some compilers refuse to overwrite an16360 # existing .o file with -o, though they will create one.16361 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'16362 rm -f conftest2.*16363 if { { case "(($ac_try" in16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16365 *) ac_try_echo=$ac_try;;16366 esac16367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""16368 $as_echo "$ac_try_echo"; } >&516369 (eval "$ac_try") 2>&516370 ac_status=$?16371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&516372 test $ac_status = 0; } &&16373 test -f conftest2.$ac_objext && { { case "(($ac_try" in16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16375 *) ac_try_echo=$ac_try;;16376 esac16377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""16378 $as_echo "$ac_try_echo"; } >&516379 (eval "$ac_try") 2>&516380 ac_status=$?16381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&516382 test $ac_status = 0; };16383 then16384 eval ac_cv_prog_cc_${ac_cc}_c_o=yes16385 if test "x$CC" != xcc; then16386 # Test first that cc exists at all.16387 if { ac_try='cc -c conftest.$ac_ext >&5'16388 { { case "(($ac_try" in16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16390 *) ac_try_echo=$ac_try;;16391 esac16392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""16393 $as_echo "$ac_try_echo"; } >&516394 (eval "$ac_try") 2>&516395 ac_status=$?16396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&516397 test $ac_status = 0; }; }; then16398 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'16399 rm -f conftest2.*16400 if { { case "(($ac_try" in16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16402 *) ac_try_echo=$ac_try;;16403 esac16404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""16405 $as_echo "$ac_try_echo"; } >&516406 (eval "$ac_try") 2>&516407 ac_status=$?16408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&516409 test $ac_status = 0; } &&16410 test -f conftest2.$ac_objext && { { case "(($ac_try" in16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16412 *) ac_try_echo=$ac_try;;16413 esac16414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""16415 $as_echo "$ac_try_echo"; } >&516416 (eval "$ac_try") 2>&516417 ac_status=$?16418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&516419 test $ac_status = 0; };16420 then16421 # cc works too.16422 :16423 else16424 # cc exists but doesn't like -o.16425 eval ac_cv_prog_cc_${ac_cc}_c_o=no16426 fi16427 fi16428 fi16429 else16430 eval ac_cv_prog_cc_${ac_cc}_c_o=no16431 fi16432 rm -f core conftest*16433 16434 fi16435 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&516437 $as_echo "yes" >&6; }16438 else16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516440 $as_echo "no" >&6; }16441 16442 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h16443 16444 fi16445 16446 # FIXME: we rely on the cache variable name because16447 # there is no other way.16448 set dummy $CC16449 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`16450 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o16451 if test "$am_t" != yes; then16452 # Losing compiler, so override with the script.16453 # FIXME: It is wrong to rewrite CC.16454 # But if we don't then we get into trouble of one sort or another.16455 # A longer-term fix would be to have automake use am__CC in this case,16456 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"16457 CC="$am_aux_dir/compile $CC"16458 fi16459 17158 16460 17159 … … 16554 17253 test -z "$as_dir" && as_dir=. 16555 17254 for ac_exec_ext in '' $ac_executable_extensions; do 16556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then17255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16557 17256 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 16558 17257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 16597 17296 test -z "$as_dir" && as_dir=. 16598 17297 for ac_exec_ext in '' $ac_executable_extensions; do 16599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then17298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16600 17299 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 16601 17300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 16660 17359 test -z "$as_dir" && as_dir=. 16661 17360 for ac_exec_ext in '' $ac_executable_extensions; do 16662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then17361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16663 17362 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext" 16664 17363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 16703 17402 test -z "$as_dir" && as_dir=. 16704 17403 for ac_exec_ext in '' $ac_executable_extensions; do 16705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then17404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16706 17405 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext" 16707 17406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 16824 17523 test -z "$as_dir" && as_dir=. 16825 17524 for ac_exec_ext in '' $ac_executable_extensions; do 16826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then17525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16827 17526 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext" 16828 17527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 16867 17566 test -z "$as_dir" && as_dir=. 16868 17567 for ac_exec_ext in '' $ac_executable_extensions; do 16869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then17568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16870 17569 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext" 16871 17570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17171 17870 test -z "$as_dir" && as_dir=. 17172 17871 for ac_exec_ext in '' $ac_executable_extensions; do 17173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then17872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17174 17873 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext" 17175 17874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17214 17913 test -z "$as_dir" && as_dir=. 17215 17914 for ac_exec_ext in '' $ac_executable_extensions; do 17216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then17915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17217 17916 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext" 17218 17917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17466 18165 test -z "$as_dir" && as_dir=. 17467 18166 for ac_exec_ext in '' $ac_executable_extensions; do 17468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17469 18168 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" 17470 18169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17509 18208 test -z "$as_dir" && as_dir=. 17510 18209 for ac_exec_ext in '' $ac_executable_extensions; do 17511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17512 18211 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" 17513 18212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17572 18271 test -z "$as_dir" && as_dir=. 17573 18272 for ac_exec_ext in '' $ac_executable_extensions; do 17574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17575 18274 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" 17576 18275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17615 18314 test -z "$as_dir" && as_dir=. 17616 18315 for ac_exec_ext in '' $ac_executable_extensions; do 17617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17618 18317 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" 17619 18318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17678 18377 test -z "$as_dir" && as_dir=. 17679 18378 for ac_exec_ext in '' $ac_executable_extensions; do 17680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17681 18380 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" 17682 18381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17721 18420 test -z "$as_dir" && as_dir=. 17722 18421 for ac_exec_ext in '' $ac_executable_extensions; do 17723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17724 18423 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" 17725 18424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17784 18483 test -z "$as_dir" && as_dir=. 17785 18484 for ac_exec_ext in '' $ac_executable_extensions; do 17786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17787 18486 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" 17788 18487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17827 18526 test -z "$as_dir" && as_dir=. 17828 18527 for ac_exec_ext in '' $ac_executable_extensions; do 17829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17830 18529 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" 17831 18530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17947 18646 test -z "$as_dir" && as_dir=. 17948 18647 for ac_exec_ext in '' $ac_executable_extensions; do 17949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17950 18649 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" 17951 18650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 17990 18689 test -z "$as_dir" && as_dir=. 17991 18690 for ac_exec_ext in '' $ac_executable_extensions; do 17992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17993 18692 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" 17994 18693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 18053 18752 test -z "$as_dir" && as_dir=. 18054 18753 for ac_exec_ext in '' $ac_executable_extensions; do 18055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18056 18755 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" 18057 18756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 18096 18795 test -z "$as_dir" && as_dir=. 18097 18796 for ac_exec_ext in '' $ac_executable_extensions; do 18098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18099 18798 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" 18100 18799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 18159 18858 test -z "$as_dir" && as_dir=. 18160 18859 for ac_exec_ext in '' $ac_executable_extensions; do 18161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18162 18861 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" 18163 18862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 18202 18901 test -z "$as_dir" && as_dir=. 18203 18902 for ac_exec_ext in '' $ac_executable_extensions; do 18204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then18903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18205 18904 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" 18206 18905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 18462 19161 # pthread-config: use pthread-config program (for GNU Pth library) 18463 19162 18464 case "${host_cpu}-${host_os}"in18465 *solaris*)19163 case ${host_os} in 19164 solaris*) 18466 19165 18467 19166 # On Solaris (at least, for some versions), libc contains stubbed … … 18476 19175 ;; 18477 19176 18478 *-darwin*)19177 darwin*) 18479 19178 ax_pthread_flags="-pthread $ax_pthread_flags" 18480 19179 ;; 18481 19180 esac 19181 19182 # Clang doesn't consider unrecognized options an error unless we specify 19183 # -Werror. We throw in some extra Clang-specific options to ensure that 19184 # this doesn't happen for GCC, which also accepts -Werror. 19185 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 19187 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 19188 save_CFLAGS="$CFLAGS" 19189 ax_pthread_extra_flags="-Werror" 19190 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19192 /* end confdefs.h. */ 19193 int foo(void); 19194 int 19195 main () 19196 { 19197 foo() 19198 ; 19199 return 0; 19200 } 19201 _ACEOF 19202 if ac_fn_c_try_compile "$LINENO"; then : 19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19204 $as_echo "yes" >&6; } 19205 else 19206 ax_pthread_extra_flags= 19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19208 $as_echo "no" >&6; } 19209 fi 19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19211 CFLAGS="$save_CFLAGS" 18482 19212 18483 19213 if test x"$ax_pthread_ok" = xno; then … … 18513 19243 test -z "$as_dir" && as_dir=. 18514 19244 for ac_exec_ext in '' $ac_executable_extensions; do 18515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then19245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18516 19246 ac_cv_prog_ax_pthread_config="yes" 18517 19247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 18550 19280 save_CFLAGS="$CFLAGS" 18551 19281 LIBS="$PTHREAD_LIBS $LIBS" 18552 CFLAGS="$CFLAGS $PTHREAD_CFLAGS "19282 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 18553 19283 18554 19284 # Check for various functions. We must include pthread.h, … … 18641 19371 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } 18642 19372 flag=no 18643 case "${host_cpu}-${host_os}"in18644 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;18645 *-osf* | *-hpux*) flag="-D_REENTRANT";;18646 *solaris*)19373 case ${host_os} in 19374 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 19375 osf* | hpux*) flag="-D_REENTRANT";; 19376 solaris*) 18647 19377 if test "$GCC" = "yes"; then 18648 19378 flag="-D_REENTRANT" 18649 19379 else 19380 # TODO: What about Clang on Solaris? 18650 19381 flag="-mt -D_REENTRANT" 18651 19382 fi 18652 19383 ;; 18653 19384 esac 18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ {flag}" >&518655 $as_echo "$ {flag}" >&6; }19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 19386 $as_echo "$flag" >&6; } 18656 19387 if test "x$flag" != xno; then 18657 19388 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" … … 18666 19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18667 19398 /* end confdefs.h. */ 18668 18669 #include <pthread.h> 19399 #include <pthread.h> 18670 19400 int 18671 19401 main () … … 18696 19426 CFLAGS="$save_CFLAGS" 18697 19427 18698 # More AIX lossage: must compile with xlc_r or cc_r 18699 if test x"$GCC" != xyes; then 18700 for ac_prog in xlc_r cc_r 19428 # More AIX lossage: compile with *_r variant 19429 if test "x$GCC" != xyes; then 19430 case $host_os in 19431 aix*) 19432 case "x/$CC" in #( 19433 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 19434 #handle absolute path differently from PATH based program lookup 19435 case "x$CC" in #( 19436 x/*) : 19437 if as_fn_executable_p ${CC}_r; then : 19438 PTHREAD_CC="${CC}_r" 19439 fi ;; #( 19440 *) : 19441 for ac_prog in ${CC}_r 18701 19442 do 18702 19443 # Extract the first word of "$ac_prog", so it can be a program name with args. … … 18716 19457 test -z "$as_dir" && as_dir=. 18717 19458 for ac_exec_ext in '' $ac_executable_extensions; do 18718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then19459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18719 19460 ac_cv_prog_PTHREAD_CC="$ac_prog" 18720 19461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 18739 19480 test -n "$PTHREAD_CC" && break 18740 19481 done 18741 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 18742 18743 else 18744 PTHREAD_CC=$CC 19482 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 19483 ;; 19484 esac ;; #( 19485 *) : 19486 ;; 19487 esac 19488 ;; 19489 esac 18745 19490 fi 18746 else 18747 PTHREAD_CC="$CC" 18748 fi 19491 fi 19492 19493 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18749 19494 18750 19495 … … 20912 21657 libsubdirs="lib" 20913 21658 ax_arch=`uname -m` 20914 if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then 20915 libsubdirs="lib64 lib lib64" 20916 fi 21659 case $ax_arch in 21660 x86_64) 21661 libsubdirs="lib64 libx32 lib lib64" 21662 ;; 21663 ppc64|s390x|sparc64|aarch64|ppc64le) 21664 libsubdirs="lib64 lib lib64 ppc64le" 21665 ;; 21666 esac 21667 21668 21669 libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs" 21670 21671 case ${host_cpu} in 21672 i?86) 21673 libsubdirs="lib/i386-${host_os} $libsubdirs" 21674 ;; 21675 esac 20917 21676 20918 21677 if test "$ac_boost_path" != ""; then … … 20994 21753 20995 21754 if test "x$succeeded" != "xyes"; then 21755 CPPFLAGS="$CPPFLAGS_SAVED" 21756 LDFLAGS="$LDFLAGS_SAVED" 21757 BOOST_CPPFLAGS= 21758 BOOST_LDFLAGS= 20996 21759 _version=0 20997 21760 if test "$ac_boost_path" != ""; then … … 21006 21769 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" 21007 21770 done 21771 if test -z "$BOOST_CPPFLAGS"; then 21772 if test -d "$ac_boost_path/boost" && test -r "$ac_boost_path/boost"; then 21773 BOOST_CPPFLAGS="-I$ac_boost_path" 21774 fi 21775 fi 21008 21776 fi 21009 21777 else … … 21219 21987 LDFLAGS_SAVE=$LDFLAGS 21220 21988 if test "x$ax_boost_user_system_lib" = "x"; then 21221 for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do21989 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do 21222 21990 ax_lib=${libextension} 21223 21991 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 21267 22035 done 21268 22036 if test "x$link_system" != "xyes"; then 21269 for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do22037 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do 21270 22038 ax_lib=${libextension} 21271 22039 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 21464 22232 21465 22233 BN=boost_system 22234 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 21466 22235 if test "x$ax_boost_user_asio_lib" = "x"; then 21467 for ax_lib in $BN $BN-$CC $BN-$CC-mt $BN-$CC-mt-s $BN-$CC-s \ 21468 lib$BN lib$BN-$CC lib$BN-$CC-mt lib$BN-$CC-mt-s lib$BN-$CC-s \ 21469 $BN-mgw $BN-mgw $BN-mgw-mt $BN-mgw-mt-s $BN-mgw-s ; do 22236 for ax_lib in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.dylib* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_system.*\)\.a.*$;\1;' ` ; do 21470 22237 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh` 21471 22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 … … 21643 22410 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 21644 22411 if test "x$ax_boost_user_date_time_lib" = "x"; then 21645 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*. a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do22412 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.dylib* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do 21646 22413 ax_lib=${libextension} 21647 22414 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 21691 22458 done 21692 22459 if test "x$link_date_time" != "xyes"; then 21693 for libextension in `ls $BOOSTLIBDIR/boost_date_time*. {dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a*$;\1;'` ; do22460 for libextension in `ls $BOOSTLIBDIR/boost_date_time*.dll* $BOOSTLIBDIR/boost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a.*$;\1;'` ; do 21694 22461 ax_lib=${libextension} 21695 22462 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 21880 22647 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 21881 22648 if test "x$ax_boost_user_filesystem_lib" = "x"; then 21882 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do22649 for libextension in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do 21883 22650 ax_lib=${libextension} 21884 22651 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 21928 22695 done 21929 22696 if test "x$link_filesystem" != "xyes"; then 21930 for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do22697 for libextension in `ls -r $BOOSTLIBDIR/boost_filesystem* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do 21931 22698 ax_lib=${libextension} 21932 22699 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 22085 22852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22086 22853 /* end confdefs.h. */ 22087 #include <boost/program_options .hpp>22854 #include <boost/program_options/errors.hpp> 22088 22855 22089 22856 int 22090 22857 main () 22091 22858 { 22092 boost::program_options:: options_description generic("Generic options");22859 boost::program_options::error err("Error message"); 22093 22860 return 0; 22094 22861 ; … … 22118 22885 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 22119 22886 if test "x$ax_boost_user_program_options_lib" = "x"; then 22120 for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*. a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do22887 for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.dylib* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.dylib.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a.*$;\1;'` ; do 22121 22888 ax_lib=${libextension} 22122 22889 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 22166 22933 done 22167 22934 if test "x$link_program_options" != "xyes"; then 22168 for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a *$;\1;'` ; do22935 for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a.*$;\1;'` ; do 22169 22936 ax_lib=${libextension} 22170 22937 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 22347 23114 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 22348 23115 if test "x$ax_boost_user_regex_lib" = "x"; then 22349 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*. a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do23116 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.dylib* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.dylib.*;\1;' -e 's;^lib\(boost_regex.*\)\.a.*$;\1;'` ; do 22350 23117 ax_lib=${libextension} 22351 23118 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 22395 23162 done 22396 23163 if test "x$link_regex" != "xyes"; then 22397 for libextension in `ls $BOOSTLIBDIR/boost_regex*. {dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do23164 for libextension in `ls $BOOSTLIBDIR/boost_regex*.dll* $BOOSTLIBDIR/boost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a.*$;\1;'` ; do 22398 23165 ax_lib=${libextension} 22399 23166 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 22607 23374 esac 22608 23375 if test "x$ax_boost_user_thread_lib" = "x"; then 22609 for libextension in `ls $BOOSTLIBDIR/libboost_thread*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.a*$;\1;'`; do23376 for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do 22610 23377 ax_lib=${libextension} 22611 23378 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 22655 23422 done 22656 23423 if test "x$link_thread" != "xyes"; then 22657 for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'`; do23424 for libextension in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed 's,\..*,,'`; do 22658 23425 ax_lib=${libextension} 22659 23426 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` … … 22797 23564 22798 23565 # Now we can safely add the compiler option for your prefered standard 22799 CXXFLAGS+=" - std=c++0x"23566 CXXFLAGS+=" -DTTTT -std=c++0x -DXXX " 22800 23567 22801 23568 #AC_CHECK_HEADERS( … … 23039 23806 test -z "$as_dir" && as_dir=. 23040 23807 for ac_exec_ext in '' $ac_executable_extensions; do 23041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then23808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23042 23809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23043 23810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 23082 23849 test -z "$as_dir" && as_dir=. 23083 23850 for ac_exec_ext in '' $ac_executable_extensions; do 23084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then23851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23085 23852 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23086 23853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24143 24910 24144 24911 cat > conftest.$ac_ext <<EOF 24145 #line 24 145"configure"24912 #line 24912 "configure" 24146 24913 #include "confdefs.h" 24147 24914 #include <qglobal.h> … … 24185 24952 test -z "$as_dir" && as_dir=. 24186 24953 for ac_exec_ext in '' $ac_executable_extensions; do 24187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then24954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24188 24955 ac_cv_path_MOC4="$as_dir/$ac_word$ac_exec_ext" 24189 24956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24231 24998 test -z "$as_dir" && as_dir=. 24232 24999 for ac_exec_ext in '' $ac_executable_extensions; do 24233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24234 25001 ac_cv_path_UIC4="$as_dir/$ac_word$ac_exec_ext" 24235 25002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24277 25044 test -z "$as_dir" && as_dir=. 24278 25045 for ac_exec_ext in '' $ac_executable_extensions; do 24279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24280 25047 ac_cv_path_RCC4="$as_dir/$ac_word$ac_exec_ext" 24281 25048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24629 25396 test -z "$as_dir" && as_dir=. 24630 25397 for ac_exec_ext in '' $ac_executable_extensions; do 24631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24632 25399 ac_cv_path_ROOTCONF="$as_dir/$ac_word$ac_exec_ext" 24633 25400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24670 25437 test -z "$as_dir" && as_dir=. 24671 25438 for ac_exec_ext in '' $ac_executable_extensions; do 24672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24673 25440 ac_cv_path_ROOTEXEC="$as_dir/$ac_word$ac_exec_ext" 24674 25441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24711 25478 test -z "$as_dir" && as_dir=. 24712 25479 for ac_exec_ext in '' $ac_executable_extensions; do 24713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24714 25481 ac_cv_path_ROOTCINT="$as_dir/$ac_word$ac_exec_ext" 24715 25482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24795 25562 then 24796 25563 24797 ROOTCPPFLAGS=$ROOTCFLAGS" "$ROOTAUXCFLAGS 25564 ROOTCPPFLAGS=$ROOTCFLAGS 25565 ROOTCXXFLAGS=$ROOTAUXCFLAGS 24798 25566 ROOTLDFLAGS="-L"$ROOTLIBDIR 24799 25567 … … 24820 25588 24821 25589 25590 24822 25591 fi 24823 25592 … … 24844 25613 test -z "$as_dir" && as_dir=. 24845 25614 for ac_exec_ext in '' $ac_executable_extensions; do 24846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24847 25616 ac_cv_prog_COLORDIFF="colordiff" 24848 25617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24882 25651 test -z "$as_dir" && as_dir=. 24883 25652 for ac_exec_ext in '' $ac_executable_extensions; do 24884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24885 25654 ac_cv_prog_GROFF="yes" 24886 25655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24920 25689 test -z "$as_dir" && as_dir=. 24921 25690 for ac_exec_ext in '' $ac_executable_extensions; do 24922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24923 25692 ac_cv_prog_PS2PDF="yes" 24924 25693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24958 25727 test -z "$as_dir" && as_dir=. 24959 25728 for ac_exec_ext in '' $ac_executable_extensions; do 24960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24961 25730 ac_cv_prog_HELP2MAN="yes" 24962 25731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 24996 25765 test -z "$as_dir" && as_dir=. 24997 25766 for ac_exec_ext in '' $ac_executable_extensions; do 24998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24999 25768 ac_cv_prog_JSDOC="yes" 25000 25769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 25034 25803 test -z "$as_dir" && as_dir=. 25035 25804 for ac_exec_ext in '' $ac_executable_extensions; do 25036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25037 25806 ac_cv_prog_MAILX="yes" 25038 25807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 25072 25841 test -z "$as_dir" && as_dir=. 25073 25842 for ac_exec_ext in '' $ac_executable_extensions; do 25074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then25843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25075 25844 ac_cv_prog_CURL="yes" 25076 25845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 25216 25985 fi 25217 25986 25218 if test "$ROOTEXEC" != no ; then25987 if test "$ROOTEXEC" != no -a -n "$ROOTVERSION"; then 25219 25988 HAS_ROOT_TRUE= 25220 25989 HAS_ROOT_FALSE='#' … … 25541 26310 25542 26311 26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 26313 $as_echo_n "checking that generated files are newer than configure... " >&6; } 26314 if test -n "$am_sleep_pid"; then 26315 # Hide warnings about reused PIDs. 26316 wait $am_sleep_pid 2>/dev/null 26317 fi 26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 26319 $as_echo "done" >&6; } 25543 26320 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 25544 26321 as_fn_error $? "conditional \"AMDEP\" was never defined. … … 26027 26804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 26028 26805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 26029 # In both cases, we have to default to `cp -p '.26806 # In both cases, we have to default to `cp -pR'. 26030 26807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 26031 as_ln_s='cp -p '26808 as_ln_s='cp -pR' 26032 26809 elif ln conf$$.file conf$$ 2>/dev/null; then 26033 26810 as_ln_s=ln 26034 26811 else 26035 as_ln_s='cp -p '26812 as_ln_s='cp -pR' 26036 26813 fi 26037 26814 else 26038 as_ln_s='cp -p '26815 as_ln_s='cp -pR' 26039 26816 fi 26040 26817 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file … … 26096 26873 fi 26097 26874 26098 if test -x / >/dev/null 2>&1; then 26099 as_test_x='test -x' 26100 else 26101 if ls -dL / >/dev/null 2>&1; then 26102 as_ls_L_option=L 26103 else 26104 as_ls_L_option= 26105 fi 26106 as_test_x=' 26107 eval sh -c '\'' 26108 if test -d "$1"; then 26109 test -d "$1/."; 26110 else 26111 case $1 in #( 26112 -*)set "./$1";; 26113 esac; 26114 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 26115 ???[sx]*):;;*)false;;esac;fi 26116 '\'' sh 26117 ' 26118 fi 26119 as_executable_p=$as_test_x 26875 26876 # as_fn_executable_p FILE 26877 # ----------------------- 26878 # Test if FILE is an executable regular file. 26879 as_fn_executable_p () 26880 { 26881 test -f "$1" && test -x "$1" 26882 } # as_fn_executable_p 26883 as_test_x='test -x' 26884 as_executable_p=as_fn_executable_p 26120 26885 26121 26886 # Sed expression to map a string onto a valid CPP name. … … 26139 26904 ac_log=" 26140 26905 This file was extended by FACT++ $as_me 1.0, which was 26141 generated by GNU Autoconf 2.6 8. Invocation command line was26906 generated by GNU Autoconf 2.69. Invocation command line was 26142 26907 26143 26908 CONFIG_FILES = $CONFIG_FILES … … 26201 26966 ac_cs_version="\\ 26202 26967 FACT++ config.status 1.0 26203 configured by $0, generated by GNU Autoconf 2.6 8,26968 configured by $0, generated by GNU Autoconf 2.69, 26204 26969 with options \\"\$ac_cs_config\\" 26205 26970 26206 Copyright (C) 201 0Free Software Foundation, Inc.26971 Copyright (C) 2012 Free Software Foundation, Inc. 26207 26972 This config.status script is free software; the Free Software Foundation 26208 26973 gives unlimited permission to copy, distribute and modify it." … … 26284 27049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26285 27050 if \$ac_cs_recheck; then 26286 set X '$SHELL''$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion27051 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 26287 27052 shift 26288 27053 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 … … 26323 27088 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 26324 27089 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 27090 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 26325 27091 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 26326 27092 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 27093 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 26327 27094 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 26328 27095 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' … … 26371 27138 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 26372 27139 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 27140 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 26373 27141 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 26374 27142 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 27143 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 26375 27144 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 26376 27145 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 27146 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 26377 27147 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 26378 27148 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' … … 26407 27177 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 26408 27178 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 26409 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'26410 27179 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 26411 27180 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' … … 26440 27209 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 26441 27210 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 26442 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 27211 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 27212 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 26443 27213 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 26444 27214 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' … … 26479 27249 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 26480 27250 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26481 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'26482 27251 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 26483 27252 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' … … 26518 27287 for var in SHELL \ 26519 27288 ECHO \ 27289 PATH_SEPARATOR \ 26520 27290 SED \ 26521 27291 GREP \ … … 26545 27315 lt_cv_sys_global_symbol_pipe \ 26546 27316 lt_cv_sys_global_symbol_to_cdecl \ 27317 lt_cv_sys_global_symbol_to_import \ 26547 27318 lt_cv_sys_global_symbol_to_c_name_address \ 26548 27319 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 27320 lt_cv_nm_interface \ 26549 27321 nm_file_list_spec \ 27322 lt_cv_truncate_bin \ 26550 27323 lt_prog_compiler_no_builtin_flag \ 26551 27324 lt_prog_compiler_pic \ … … 26568 27341 no_undefined_flag \ 26569 27342 hardcode_libdir_flag_spec \ 26570 hardcode_libdir_flag_spec_ld \26571 27343 hardcode_libdir_separator \ 26572 27344 exclude_expsyms \ … … 26602 27374 no_undefined_flag_CXX \ 26603 27375 hardcode_libdir_flag_spec_CXX \ 26604 hardcode_libdir_flag_spec_ld_CXX \26605 27376 hardcode_libdir_separator_CXX \ 26606 27377 exclude_expsyms_CXX \ … … 26615 27386 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26616 27387 *[\\\\\\\`\\"\\\$]*) 26617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 27388 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26618 27389 ;; 26619 27390 *) … … 26642 27413 finish_cmds \ 26643 27414 sys_lib_search_path_spec \ 26644 sys_lib_dlsearch_path_spec \ 27415 configure_time_dlsearch_path \ 27416 configure_time_lt_sys_library_path \ 26645 27417 reload_cmds_CXX \ 26646 27418 old_archive_cmds_CXX \ … … 26656 27428 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26657 27429 *[\\\\\\\`\\"\\\$]*) 26658 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 27430 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26659 27431 ;; 26660 27432 *) … … 26665 27437 26666 27438 ac_aux_dir='$ac_aux_dir' 26667 xsi_shell='$xsi_shell' 26668 lt_shell_append='$lt_shell_append' 26669 26670 # See if we are running on zsh, and set the options which allow our 27439 27440 # See if we are running on zsh, and set the options that allow our 26671 27441 # commands through without removal of \ escapes INIT. 26672 if test -n "\${ZSH_VERSION+set}" 27442 if test -n "\${ZSH_VERSION+set}"; then 26673 27443 setopt NO_GLOB_SUBST 26674 27444 fi … … 26677 27447 PACKAGE='$PACKAGE' 26678 27448 VERSION='$VERSION' 26679 TIMESTAMP='$TIMESTAMP'26680 27449 RM='$RM' 26681 27450 ofile='$ofile' … … 27163 27932 "libtool":C) 27164 27933 27165 # See if we are running on zsh, and set the options whichallow our27934 # See if we are running on zsh, and set the options that allow our 27166 27935 # commands through without removal of \ escapes. 27167 if test -n "${ZSH_VERSION+set}" 27936 if test -n "${ZSH_VERSION+set}"; then 27168 27937 setopt NO_GLOB_SUBST 27169 27938 fi 27170 27939 27171 cfgfile= "${ofile}T"27940 cfgfile=${ofile}T 27172 27941 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 27173 27942 $RM "$cfgfile" … … 27175 27944 cat <<_LT_EOF >> "$cfgfile" 27176 27945 #! $SHELL 27177 27178 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 27179 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 27946 # Generated automatically by $as_me ($PACKAGE) $VERSION 27180 27947 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 27181 27948 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 27949 27950 # Provide generalized library-building support services. 27951 # Written by Gordon Matzigkeit, 1996 27952 27953 # Copyright (C) 2014 Free Software Foundation, Inc. 27954 # This is free software; see the source for copying conditions. There is NO 27955 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27956 27957 # GNU Libtool is free software; you can redistribute it and/or modify 27958 # it under the terms of the GNU General Public License as published by 27959 # the Free Software Foundation; either version 2 of of the License, or 27960 # (at your option) any later version. 27182 27961 # 27183 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,27184 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,27185 # Inc.27186 # Written by Gordon Matzigkeit, 199627962 # As a special exception to the GNU General Public License, if you 27963 # distribute this file as part of a program or library that is built 27964 # using GNU Libtool, you may include this file under the same 27965 # distribution terms that you use for the rest of that program. 27187 27966 # 27188 # This file is part of GNU Libtool. 27189 # 27190 # GNU Libtool is free software; you can redistribute it and/or 27191 # modify it under the terms of the GNU General Public License as 27192 # published by the Free Software Foundation; either version 2 of 27193 # the License, or (at your option) any later version. 27194 # 27195 # As a special exception to the GNU General Public License, 27196 # if you distribute this file as part of a program or library that 27197 # is built using GNU Libtool, you may include this file under the 27198 # same distribution terms that you use for the rest of that program. 27199 # 27200 # GNU Libtool is distributed in the hope that it will be useful, 27201 # but WITHOUT ANY WARRANTY; without even the implied warranty of 27967 # GNU Libtool is distributed in the hope that it will be useful, but 27968 # WITHOUT ANY WARRANTY; without even the implied warranty of 27202 27969 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27203 27970 # GNU General Public License for more details. 27204 27971 # 27205 27972 # You should have received a copy of the GNU General Public License 27206 # along with GNU Libtool; see the file COPYING. If not, a copy 27207 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 27208 # obtained by writing to the Free Software Foundation, Inc., 27209 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 27973 # along with this program. If not, see <http://www.gnu.org/licenses/>. 27210 27974 27211 27975 27212 27976 # The names of the tagged configurations supported by this script. 27213 available_tags="CXX " 27977 available_tags='CXX ' 27978 27979 # Configured defaults for sys_lib_dlsearch_path munging. 27980 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 27214 27981 27215 27982 # ### BEGIN LIBTOOL CONFIG … … 27231 27998 fast_install=$enable_fast_install 27232 27999 28000 # Shared archive member basename,for filename based shared library versioning on AIX. 28001 shared_archive_member_spec=$shared_archive_member_spec 28002 27233 28003 # Shell to use when invoking shell scripts. 27234 28004 SHELL=$lt_SHELL … … 27236 28006 # An echo program that protects backslashes. 27237 28007 ECHO=$lt_ECHO 28008 28009 # The PATH separator for the build system. 28010 PATH_SEPARATOR=$lt_PATH_SEPARATOR 27238 28011 27239 28012 # The host system. … … 27345 28118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 27346 28119 28120 # Transform the output of nm into a list of symbols to manually relocate. 28121 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 28122 27347 28123 # Transform the output of nm in a C name address pair. 27348 28124 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address … … 27351 28127 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 27352 28128 28129 # The name lister interface. 28130 nm_interface=$lt_lt_cv_nm_interface 28131 27353 28132 # Specify filename containing input files for \$NM. 27354 28133 nm_file_list_spec=$lt_nm_file_list_spec 27355 28134 27356 # The root where to search for dependent libraries,and in whichour libraries should be installed.28135 # The root where to search for dependent libraries,and where our libraries should be installed. 27357 28136 lt_sysroot=$lt_sysroot 28137 28138 # Command to truncate a binary pipe. 28139 lt_truncate_bin=$lt_lt_cv_truncate_bin 27358 28140 27359 28141 # The name of the directory that contains temporary libtool files. … … 27447 28229 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 27448 28230 27449 # Run-time system search path for libraries. 27450 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 28231 # Detected run-time system search path for libraries. 28232 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 28233 28234 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 28235 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 27451 28236 27452 28237 # Whether dlopen is supported. … … 27538 28323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 27539 28324 27540 # If ld is used when linking, flag to hardcode \$libdir into a binary27541 # during linking. This must work even if \$libdir does not exist.27542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld27543 27544 28325 # Whether we need a single "-rpath" flag with a separated argument. 27545 28326 hardcode_libdir_separator=$lt_hardcode_libdir_separator 27546 28327 27547 # Set to "yes" if using DIR/libNAME\$ {shared_ext}during linking hardcodes28328 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27548 28329 # DIR into the resulting binary. 27549 28330 hardcode_direct=$hardcode_direct 27550 28331 27551 # Set to "yes" if using DIR/libNAME\$ {shared_ext}during linking hardcodes28332 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27552 28333 # DIR into the resulting binary and the resulting library dependency is 27553 # "absolute",i.e impossible to change by setting \$ {shlibpath_var}if the28334 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 27554 28335 # library is relocated. 27555 28336 hardcode_direct_absolute=$hardcode_direct_absolute … … 27617 28398 _LT_EOF 27618 28399 28400 cat <<'_LT_EOF' >> "$cfgfile" 28401 28402 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 28403 28404 # func_munge_path_list VARIABLE PATH 28405 # ----------------------------------- 28406 # VARIABLE is name of variable containing _space_ separated list of 28407 # directories to be munged by the contents of PATH, which is string 28408 # having a format: 28409 # "DIR[:DIR]:" 28410 # string "DIR[ DIR]" will be prepended to VARIABLE 28411 # ":DIR[:DIR]" 28412 # string "DIR[ DIR]" will be appended to VARIABLE 28413 # "DIRP[:DIRP]::[DIRA:]DIRA" 28414 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 28415 # "DIRA[ DIRA]" will be appended to VARIABLE 28416 # "DIR[:DIR]" 28417 # VARIABLE will be replaced by "DIR[ DIR]" 28418 func_munge_path_list () 28419 { 28420 case x$2 in 28421 x) 28422 ;; 28423 *:) 28424 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 28425 ;; 28426 x:*) 28427 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 28428 ;; 28429 *::*) 28430 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 28431 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 28432 ;; 28433 *) 28434 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 28435 ;; 28436 esac 28437 } 28438 28439 28440 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 28441 func_cc_basename () 28442 { 28443 for cc_temp in $*""; do 28444 case $cc_temp in 28445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 28446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 28447 \-*) ;; 28448 *) break;; 28449 esac 28450 done 28451 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 28452 } 28453 28454 28455 # ### END FUNCTIONS SHARED WITH CONFIGURE 28456 28457 _LT_EOF 28458 27619 28459 case $host_os in 27620 28460 aix3*) … … 27623 28463 # reason, if we set the COLLECT_NAMES environment variable, the problems 27624 28464 # vanish in a puff of smoke. 27625 if test "X${COLLECT_NAMES+set}" != Xset; then28465 if test set != "${COLLECT_NAMES+set}"; then 27626 28466 COLLECT_NAMES= 27627 28467 export COLLECT_NAMES … … 27632 28472 27633 28473 27634 ltmain= "$ac_aux_dir/ltmain.sh"28474 ltmain=$ac_aux_dir/ltmain.sh 27635 28475 27636 28476 … … 27642 28482 || (rm -f "$cfgfile"; exit 1) 27643 28483 27644 if test x"$xsi_shell" = xyes; then27645 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\27646 func_dirname ()\27647 {\27648 \ case ${1} in\27649 \ */*) func_dirname_result="${1%/*}${2}" ;;\27650 \ * ) func_dirname_result="${3}" ;;\27651 \ esac\27652 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \27653 && mv -f "$cfgfile.tmp" "$cfgfile" \27654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27655 test 0 -eq $? || _lt_function_replace_fail=:27656 27657 27658 sed -e '/^func_basename ()$/,/^} # func_basename /c\27659 func_basename ()\27660 {\27661 \ func_basename_result="${1##*/}"\27662 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \27663 && mv -f "$cfgfile.tmp" "$cfgfile" \27664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27665 test 0 -eq $? || _lt_function_replace_fail=:27666 27667 27668 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\27669 func_dirname_and_basename ()\27670 {\27671 \ case ${1} in\27672 \ */*) func_dirname_result="${1%/*}${2}" ;;\27673 \ * ) func_dirname_result="${3}" ;;\27674 \ esac\27675 \ func_basename_result="${1##*/}"\27676 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \27677 && mv -f "$cfgfile.tmp" "$cfgfile" \27678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27679 test 0 -eq $? || _lt_function_replace_fail=:27680 27681 27682 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\27683 func_stripname ()\27684 {\27685 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\27686 \ # positional parameters, so assign one to ordinary parameter first.\27687 \ func_stripname_result=${3}\27688 \ func_stripname_result=${func_stripname_result#"${1}"}\27689 \ func_stripname_result=${func_stripname_result%"${2}"}\27690 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \27691 && mv -f "$cfgfile.tmp" "$cfgfile" \27692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27693 test 0 -eq $? || _lt_function_replace_fail=:27694 27695 27696 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\27697 func_split_long_opt ()\27698 {\27699 \ func_split_long_opt_name=${1%%=*}\27700 \ func_split_long_opt_arg=${1#*=}\27701 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \27702 && mv -f "$cfgfile.tmp" "$cfgfile" \27703 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27704 test 0 -eq $? || _lt_function_replace_fail=:27705 27706 27707 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\27708 func_split_short_opt ()\27709 {\27710 \ func_split_short_opt_arg=${1#??}\27711 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\27712 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \27713 && mv -f "$cfgfile.tmp" "$cfgfile" \27714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27715 test 0 -eq $? || _lt_function_replace_fail=:27716 27717 27718 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\27719 func_lo2o ()\27720 {\27721 \ case ${1} in\27722 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\27723 \ *) func_lo2o_result=${1} ;;\27724 \ esac\27725 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \27726 && mv -f "$cfgfile.tmp" "$cfgfile" \27727 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27728 test 0 -eq $? || _lt_function_replace_fail=:27729 27730 27731 sed -e '/^func_xform ()$/,/^} # func_xform /c\27732 func_xform ()\27733 {\27734 func_xform_result=${1%.*}.lo\27735 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \27736 && mv -f "$cfgfile.tmp" "$cfgfile" \27737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27738 test 0 -eq $? || _lt_function_replace_fail=:27739 27740 27741 sed -e '/^func_arith ()$/,/^} # func_arith /c\27742 func_arith ()\27743 {\27744 func_arith_result=$(( $* ))\27745 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \27746 && mv -f "$cfgfile.tmp" "$cfgfile" \27747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27748 test 0 -eq $? || _lt_function_replace_fail=:27749 27750 27751 sed -e '/^func_len ()$/,/^} # func_len /c\27752 func_len ()\27753 {\27754 func_len_result=${#1}\27755 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \27756 && mv -f "$cfgfile.tmp" "$cfgfile" \27757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27758 test 0 -eq $? || _lt_function_replace_fail=:27759 27760 fi27761 27762 if test x"$lt_shell_append" = xyes; then27763 sed -e '/^func_append ()$/,/^} # func_append /c\27764 func_append ()\27765 {\27766 eval "${1}+=\\${2}"\27767 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \27768 && mv -f "$cfgfile.tmp" "$cfgfile" \27769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27770 test 0 -eq $? || _lt_function_replace_fail=:27771 27772 27773 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\27774 func_append_quoted ()\27775 {\27776 \ func_quote_for_eval "${2}"\27777 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\27778 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \27779 && mv -f "$cfgfile.tmp" "$cfgfile" \27780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27781 test 0 -eq $? || _lt_function_replace_fail=:27782 27783 27784 # Save a `func_append' function call where possible by direct use of '+='27785 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \27786 && mv -f "$cfgfile.tmp" "$cfgfile" \27787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27788 test 0 -eq $? || _lt_function_replace_fail=:27789 else27790 # Save a `func_append' function call even when '+=' is not available27791 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \27792 && mv -f "$cfgfile.tmp" "$cfgfile" \27793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")27794 test 0 -eq $? || _lt_function_replace_fail=:27795 fi27796 27797 if test x"$_lt_function_replace_fail" = x":"; then27798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&527799 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}27800 fi27801 27802 27803 28484 mv -f "$cfgfile" "$ofile" || 27804 28485 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") … … 27884 28565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 27885 28566 27886 # If ld is used when linking, flag to hardcode \$libdir into a binary27887 # during linking. This must work even if \$libdir does not exist.27888 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX27889 27890 28567 # Whether we need a single "-rpath" flag with a separated argument. 27891 28568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 27892 28569 27893 # Set to "yes" if using DIR/libNAME\$ {shared_ext}during linking hardcodes28570 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27894 28571 # DIR into the resulting binary. 27895 28572 hardcode_direct=$hardcode_direct_CXX 27896 28573 27897 # Set to "yes" if using DIR/libNAME\$ {shared_ext}during linking hardcodes28574 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27898 28575 # DIR into the resulting binary and the resulting library dependency is 27899 # "absolute",i.e impossible to change by setting \$ {shlibpath_var}if the28576 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 27900 28577 # library is relocated. 27901 28578 hardcode_direct_absolute=$hardcode_direct_absolute_CXX … … 27964 28641 ;; 27965 28642 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 27966 # Autoconf 2.62quotes --file arguments for eval, but not when files28643 # Older Autoconf quotes --file arguments for eval, but not when files 27967 28644 # are listed without --file. Let's play safe and only enable the eval 27968 28645 # if we detect the quoting. … … 27977 28654 mf=`echo "$mf" | sed -e 's/:.*$//'` 27978 28655 # Check whether this is an Automake generated Makefile or not. 27979 # We used to match only the files named `Makefile.in', but28656 # We used to match only the files named 'Makefile.in', but 27980 28657 # some people rename them; so instead we look at the file content. 27981 28658 # Grep'ing the first line is not enough: some people post-process … … 28011 28688 fi 28012 28689 # Extract the definition of DEPDIR, am__include, and am__quote 28013 # from the Makefile without running `make'.28690 # from the Makefile without running 'make'. 28014 28691 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28015 28692 test -z "$DEPDIR" && continue 28016 28693 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28017 test -z " am__include" && continue28694 test -z "$am__include" && continue 28018 28695 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28019 # When using ansi2knr, U may be empty or an underscore; expand it28020 U=`sed -n 's/^U = //p' < "$mf"`28021 28696 # Find all dependency output files, they are included files with 28022 28697 # $(DEPDIR) in their names. We invoke sed twice because it is the … … 28025 28700 for file in `sed -n " 28026 28701 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28027 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do28702 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 28028 28703 # Make sure the directory exists. 28029 28704 test -f "$dirpart/$file" && continue … … 28189 28864 { $as_echo "$as_me:${as_lineno-$LINENO}: ROOTCPPFLAGS = $ROOTCPPFLAGS" >&5 28190 28865 $as_echo "$as_me: ROOTCPPFLAGS = $ROOTCPPFLAGS" >&6;} 28191 { $as_echo "$as_me:${as_lineno-$LINENO}: ROOT LDFLAGS = $ROOTLDFLAGS" >&528192 $as_echo "$as_me: ROOT LDFLAGS = $ROOTLDFLAGS" >&6;}28866 { $as_echo "$as_me:${as_lineno-$LINENO}: ROOTCXXFLAGS = $ROOTCXXFLAGS" >&5 28867 $as_echo "$as_me: ROOTCXXFLAGS = $ROOTCXXFLAGS" >&6;} 28193 28868 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 28194 28869 $as_echo "$as_me: " >&6;}
Note:
See TracChangeset
for help on using the changeset viewer.