Parent Directory
|
Revision Log
Tagging kdewebdev.
| 1 | #DPATCHLEVEL=0 |
| 2 | # vi: ft=diff |
| 3 | --- acinclude.m4 |
| 4 | +++ acinclude.m4 |
| 5 | @@ -1689,15 +1689,6 @@ |
| 6 | KDE_USE_CLOSURE_TRUE="#" |
| 7 | KDE_USE_CLOSURE_FALSE="" |
| 8 | KDE_NO_UNDEFINED="" |
| 9 | - case $host in |
| 10 | - *-*-linux-gnu) |
| 11 | - KDE_CHECK_COMPILER_FLAG([Wl,--no-undefined], |
| 12 | - [KDE_CHECK_COMPILER_FLAG([Wl,--allow-shlib-undefined], |
| 13 | - [KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"], |
| 14 | - [KDE_NO_UNDEFINED=""])], |
| 15 | - [KDE_NO_UNDEFINED=""]) |
| 16 | - ;; |
| 17 | - esac |
| 18 | fi |
| 19 | AC_SUBST(KDE_USE_CLOSURE_TRUE) |
| 20 | AC_SUBST(KDE_USE_CLOSURE_FALSE) |
| 21 | @@ -2144,9 +2135,6 @@ |
| 22 | save_CXXFLAGS="$CXXFLAGS" |
| 23 | kde_safe_LIBS="$LIBS" |
| 24 | LIBS="$LIBS $X_EXTRA_LIBS" |
| 25 | -if test "$GXX" = "yes"; then |
| 26 | -CXXFLAGS="$CXXFLAGS -pedantic-errors" |
| 27 | -fi |
| 28 | AC_TRY_COMPILE([ |
| 29 | $2 |
| 30 | ], |
| 31 | @@ -5970,30 +5958,15 @@ |
| 32 | fi |
| 33 | ]) |
| 34 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| 35 | -## Copyright 1996, 1997, 1998, 1999, 2000, 2001 |
| 36 | +## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 |
| 37 | ## Free Software Foundation, Inc. |
| 38 | ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 39 | ## |
| 40 | -## This program is free software; you can redistribute it and/or modify |
| 41 | -## it under the terms of the GNU General Public License as published by |
| 42 | -## the Free Software Foundation; either version 2 of the License, or |
| 43 | -## (at your option) any later version. |
| 44 | -## |
| 45 | -## This program is distributed in the hope that it will be useful, but |
| 46 | -## WITHOUT ANY WARRANTY; without even the implied warranty of |
| 47 | -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 48 | -## General Public License for more details. |
| 49 | -## |
| 50 | -## You should have received a copy of the GNU General Public License |
| 51 | -## along with this program; if not, write to the Free Software |
| 52 | -## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 53 | -## |
| 54 | -## As a special exception to the GNU General Public License, if you |
| 55 | -## distribute this file as part of a program that contains a |
| 56 | -## configuration script generated by Autoconf, you may include it under |
| 57 | -## the same distribution terms that you use for the rest of that program. |
| 58 | +## This file is free software; the Free Software Foundation gives |
| 59 | +## unlimited permission to copy and/or distribute it, with or without |
| 60 | +## modifications, as long as this notice is preserved. |
| 61 | |
| 62 | -# serial 47 AC_PROG_LIBTOOL |
| 63 | +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL |
| 64 | |
| 65 | |
| 66 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
| 67 | @@ -6053,7 +6026,7 @@ |
| 68 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 69 | |
| 70 | # Always use our own libtool. |
| 71 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' |
| 72 | +LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 73 | AC_SUBST(LIBTOOL)dnl |
| 74 | |
| 75 | # Prevent multiple expansion |
| 76 | @@ -6103,7 +6076,7 @@ |
| 77 | |
| 78 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 79 | # metacharacters that are still active within double-quoted strings. |
| 80 | -Xsed='sed -e s/^X//' |
| 81 | +Xsed='sed -e 1s/^X//' |
| 82 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
| 83 | |
| 84 | # Same as above, but do not quote variable references. |
| 85 | @@ -6123,7 +6096,7 @@ |
| 86 | default_ofile=libtool |
| 87 | can_build_shared=yes |
| 88 | |
| 89 | -# All known linkers require a `.a' archive for static linking (except M$VC, |
| 90 | +# All known linkers require a `.a' archive for static linking (except MSVC, |
| 91 | # which needs '.lib'). |
| 92 | libext=a |
| 93 | ltmain="$ac_aux_dir/ltmain.sh" |
| 94 | @@ -6143,6 +6116,7 @@ |
| 95 | test -z "$AS" && AS=as |
| 96 | test -z "$CC" && CC=cc |
| 97 | test -z "$LTCC" && LTCC=$CC |
| 98 | +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 99 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 100 | test -z "$LD" && LD=ld |
| 101 | test -z "$LN_S" && LN_S="ln -s" |
| 102 | @@ -6162,15 +6136,17 @@ |
| 103 | if test -n "$RANLIB"; then |
| 104 | case $host_os in |
| 105 | openbsd*) |
| 106 | - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 107 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 108 | ;; |
| 109 | *) |
| 110 | - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 111 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 112 | ;; |
| 113 | esac |
| 114 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 115 | fi |
| 116 | |
| 117 | +_LT_CC_BASENAME([$compiler]) |
| 118 | + |
| 119 | # Only perform the check for file, if the check method requires it |
| 120 | case $deplibs_check_method in |
| 121 | file_magic*) |
| 122 | @@ -6211,11 +6187,56 @@ |
| 123 | # If no C compiler was specified, use CC. |
| 124 | LTCC=${LTCC-"$CC"} |
| 125 | |
| 126 | +# If no C compiler flags were specified, use CFLAGS. |
| 127 | +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 128 | + |
| 129 | # Allow CC to be a program name with arguments. |
| 130 | compiler=$CC |
| 131 | ])# _LT_AC_SYS_COMPILER |
| 132 | |
| 133 | |
| 134 | +# _LT_CC_BASENAME(CC) |
| 135 | +# ------------------- |
| 136 | +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 137 | +AC_DEFUN([_LT_CC_BASENAME], |
| 138 | +[for cc_temp in $1""; do |
| 139 | + case $cc_temp in |
| 140 | + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
| 141 | + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
| 142 | + \-*) ;; |
| 143 | + *) break;; |
| 144 | + esac |
| 145 | +done |
| 146 | +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 147 | +]) |
| 148 | + |
| 149 | + |
| 150 | +# _LT_COMPILER_BOILERPLATE |
| 151 | +# ------------------------ |
| 152 | +# Check for compiler boilerplate output or warnings with |
| 153 | +# the simple compiler test code. |
| 154 | +AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
| 155 | +[ac_outfile=conftest.$ac_objext |
| 156 | +printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 157 | +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 158 | +_lt_compiler_boilerplate=`cat conftest.err` |
| 159 | +$rm conftest* |
| 160 | +])# _LT_COMPILER_BOILERPLATE |
| 161 | + |
| 162 | + |
| 163 | +# _LT_LINKER_BOILERPLATE |
| 164 | +# ---------------------- |
| 165 | +# Check for linker boilerplate output or warnings with |
| 166 | +# the simple link test code. |
| 167 | +AC_DEFUN([_LT_LINKER_BOILERPLATE], |
| 168 | +[ac_outfile=conftest.$ac_objext |
| 169 | +printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 170 | +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 171 | +_lt_linker_boilerplate=`cat conftest.err` |
| 172 | +$rm conftest* |
| 173 | +])# _LT_LINKER_BOILERPLATE |
| 174 | + |
| 175 | + |
| 176 | # _LT_AC_SYS_LIBPATH_AIX |
| 177 | # ---------------------- |
| 178 | # Links a minimal program and checks the executable |
| 179 | @@ -6288,15 +6309,15 @@ |
| 180 | |
| 181 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 182 | # if CDPATH is set. |
| 183 | -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 184 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 185 | |
| 186 | if test -z "$ECHO"; then |
| 187 | if test "X${echo_test_string+set}" != Xset; then |
| 188 | # find a string as large as possible, as long as the shell can cope with it |
| 189 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
| 190 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 191 | - if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 192 | - echo_test_string="`eval $cmd`" && |
| 193 | + if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 194 | + echo_test_string=`eval $cmd` && |
| 195 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 196 | then |
| 197 | break |
| 198 | @@ -6465,14 +6486,13 @@ |
| 199 | # Find out which ABI we are using. |
| 200 | echo 'int i;' > conftest.$ac_ext |
| 201 | if AC_TRY_EVAL(ac_compile); then |
| 202 | - case "`/usr/bin/file conftest.o`" in |
| 203 | + case `/usr/bin/file conftest.o` in |
| 204 | *32-bit*) |
| 205 | - LINUX_64_MODE="32" |
| 206 | case $host in |
| 207 | x86_64-*linux*) |
| 208 | LD="${LD-ld} -m elf_i386" |
| 209 | ;; |
| 210 | - ppc64-*linux*) |
| 211 | + ppc64-*linux*|powerpc64-*linux*) |
| 212 | LD="${LD-ld} -m elf32ppclinux" |
| 213 | ;; |
| 214 | s390x-*linux*) |
| 215 | @@ -6484,7 +6504,6 @@ |
| 216 | esac |
| 217 | ;; |
| 218 | *64-bit*) |
| 219 | - LINUX_64_MODE="64" |
| 220 | case $host in |
| 221 | x86_64-*linux*) |
| 222 | LD="${LD-ld} -m elf_x86_64" |
| 223 | @@ -6518,6 +6537,22 @@ |
| 224 | CFLAGS="$SAVE_CFLAGS" |
| 225 | fi |
| 226 | ;; |
| 227 | +sparc*-*solaris*) |
| 228 | + # Find out which ABI we are using. |
| 229 | + echo 'int i;' > conftest.$ac_ext |
| 230 | + if AC_TRY_EVAL(ac_compile); then |
| 231 | + case `/usr/bin/file conftest.o` in |
| 232 | + *64-bit*) |
| 233 | + case $lt_cv_prog_gnu_ld in |
| 234 | + yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 235 | + *) LD="${LD-ld} -64" ;; |
| 236 | + esac |
| 237 | + ;; |
| 238 | + esac |
| 239 | + fi |
| 240 | + rm -rf conftest* |
| 241 | + ;; |
| 242 | + |
| 243 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
| 244 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
| 245 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
| 246 | @@ -6549,7 +6584,7 @@ |
| 247 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 248 | # The option is referenced via a variable to avoid confusing sed. |
| 249 | lt_compile=`echo "$ac_compile" | $SED \ |
| 250 | - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 251 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 252 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 253 | -e 's:$: $lt_compiler_flag:'` |
| 254 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 255 | @@ -6559,8 +6594,10 @@ |
| 256 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 257 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 258 | # The compiler can only warn and ignore the option if not recognized |
| 259 | - # So say no if there are warnings |
| 260 | - if test ! -s conftest.err; then |
| 261 | + # So say no if there are warnings other than the usual output. |
| 262 | + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 263 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 264 | + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 265 | $2=yes |
| 266 | fi |
| 267 | fi |
| 268 | @@ -6586,11 +6623,16 @@ |
| 269 | LDFLAGS="$LDFLAGS $3" |
| 270 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 271 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 272 | - # The compiler can only warn and ignore the option if not recognized |
| 273 | + # The linker can only warn and ignore the option if not recognized |
| 274 | # So say no if there are warnings |
| 275 | if test -s conftest.err; then |
| 276 | # Append any errors to the config.log. |
| 277 | cat conftest.err 1>&AS_MESSAGE_LOG_FD |
| 278 | + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 279 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 280 | + if diff conftest.exp conftest.er2 >/dev/null; then |
| 281 | + $2=yes |
| 282 | + fi |
| 283 | else |
| 284 | $2=yes |
| 285 | fi |
| 286 | @@ -6614,7 +6656,7 @@ |
| 287 | AC_MSG_CHECKING([the maximum length of command line arguments]) |
| 288 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
| 289 | i=0 |
| 290 | - testring="ABCD" |
| 291 | + teststring="ABCD" |
| 292 | |
| 293 | case $build_os in |
| 294 | msdosdjgpp*) |
| 295 | @@ -6643,20 +6685,70 @@ |
| 296 | lt_cv_sys_max_cmd_len=8192; |
| 297 | ;; |
| 298 | |
| 299 | - *) |
| 300 | + amigaos*) |
| 301 | + # On AmigaOS with pdksh, this test takes hours, literally. |
| 302 | + # So we just punt and use a minimum line length of 8192. |
| 303 | + lt_cv_sys_max_cmd_len=8192; |
| 304 | + ;; |
| 305 | + |
| 306 | + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 307 | + # This has been around since 386BSD, at least. Likely further. |
| 308 | + if test -x /sbin/sysctl; then |
| 309 | + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 310 | + elif test -x /usr/sbin/sysctl; then |
| 311 | + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 312 | + else |
| 313 | + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 314 | + fi |
| 315 | + # And add a safety zone |
| 316 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 317 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 318 | + ;; |
| 319 | + |
| 320 | + interix*) |
| 321 | + # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 322 | + lt_cv_sys_max_cmd_len=196608 |
| 323 | + ;; |
| 324 | + |
| 325 | + osf*) |
| 326 | + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 327 | + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 328 | + # nice to cause kernel panics so lets avoid the loop below. |
| 329 | + # First set a reasonable default. |
| 330 | + lt_cv_sys_max_cmd_len=16384 |
| 331 | + # |
| 332 | + if test -x /sbin/sysconfig; then |
| 333 | + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 334 | + *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 335 | + esac |
| 336 | + fi |
| 337 | + ;; |
| 338 | + sco3.2v5*) |
| 339 | + lt_cv_sys_max_cmd_len=102400 |
| 340 | + ;; |
| 341 | + sysv5* | sco5v6* | sysv4.2uw2*) |
| 342 | + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 343 | + if test -n "$kargmax"; then |
| 344 | + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
| 345 | + else |
| 346 | + lt_cv_sys_max_cmd_len=32768 |
| 347 | + fi |
| 348 | + ;; |
| 349 | + *) |
| 350 | # If test is not a shell built-in, we'll probably end up computing a |
| 351 | # maximum length that is only half of the actual maximum length, but |
| 352 | # we can't tell. |
| 353 | - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 354 | - = "XX$testring") >/dev/null 2>&1 && |
| 355 | - new_result=`expr "X$testring" : ".*" 2>&1` && |
| 356 | + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 357 | + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 358 | + = "XX$teststring") >/dev/null 2>&1 && |
| 359 | + new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 360 | lt_cv_sys_max_cmd_len=$new_result && |
| 361 | test $i != 17 # 1/2 MB should be enough |
| 362 | do |
| 363 | i=`expr $i + 1` |
| 364 | - testring=$testring$testring |
| 365 | + teststring=$teststring$teststring |
| 366 | done |
| 367 | - testring= |
| 368 | + teststring= |
| 369 | # Add a significant safety factor because C++ compilers can tack on massive |
| 370 | # amounts of additional arguments before passing them to the linker. |
| 371 | # It appears as though 1/2 is a usable value. |
| 372 | @@ -6673,7 +6765,7 @@ |
| 373 | |
| 374 | |
| 375 | # _LT_AC_CHECK_DLFCN |
| 376 | -# -------------------- |
| 377 | +# ------------------ |
| 378 | AC_DEFUN([_LT_AC_CHECK_DLFCN], |
| 379 | [AC_CHECK_HEADERS(dlfcn.h)dnl |
| 380 | ])# _LT_AC_CHECK_DLFCN |
| 381 | @@ -6681,7 +6773,7 @@ |
| 382 | |
| 383 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
| 384 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
| 385 | -# ------------------------------------------------------------------ |
| 386 | +# --------------------------------------------------------------------- |
| 387 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
| 388 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 389 | if test "$cross_compiling" = yes; then : |
| 390 | @@ -6747,17 +6839,19 @@ |
| 391 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 392 | /* dlclose (self); */ |
| 393 | } |
| 394 | + else |
| 395 | + puts (dlerror ()); |
| 396 | |
| 397 | exit (status); |
| 398 | }] |
| 399 | EOF |
| 400 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
| 401 | - (./conftest; exit; ) 2>/dev/null |
| 402 | + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
| 403 | lt_status=$? |
| 404 | case x$lt_status in |
| 405 | x$lt_dlno_uscore) $1 ;; |
| 406 | x$lt_dlneed_uscore) $2 ;; |
| 407 | - x$lt_unknown|x*) $3 ;; |
| 408 | + x$lt_dlunknown|x*) $3 ;; |
| 409 | esac |
| 410 | else : |
| 411 | # compilation failed |
| 412 | @@ -6769,7 +6863,7 @@ |
| 413 | |
| 414 | |
| 415 | # AC_LIBTOOL_DLOPEN_SELF |
| 416 | -# ------------------- |
| 417 | +# ---------------------- |
| 418 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
| 419 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 420 | if test "x$enable_dlopen" != xyes; then |
| 421 | @@ -6806,7 +6900,7 @@ |
| 422 | lt_cv_dlopen_self=yes |
| 423 | ]) |
| 424 | ;; |
| 425 | - |
| 426 | + |
| 427 | *) |
| 428 | AC_CHECK_FUNC([shl_load], |
| 429 | [lt_cv_dlopen="shl_load"], |
| 430 | @@ -6840,7 +6934,7 @@ |
| 431 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 432 | |
| 433 | save_LDFLAGS="$LDFLAGS" |
| 434 | - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 435 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 436 | |
| 437 | save_LIBS="$LIBS" |
| 438 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 439 | @@ -6853,7 +6947,7 @@ |
| 440 | ]) |
| 441 | |
| 442 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 443 | - LDFLAGS="$LDFLAGS $link_static_flag" |
| 444 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 445 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
| 446 | lt_cv_dlopen_self_static, [dnl |
| 447 | _LT_AC_TRY_DLOPEN_SELF( |
| 448 | @@ -6895,20 +6989,13 @@ |
| 449 | mkdir out |
| 450 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 451 | |
| 452 | - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 453 | - # that will create temporary files in the current directory regardless of |
| 454 | - # the output directory. Thus, making CWD read-only will cause this test |
| 455 | - # to fail, enabling locking or at least warning the user not to do parallel |
| 456 | - # builds. |
| 457 | - chmod -w . |
| 458 | - |
| 459 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 460 | # Insert the option either (1) after the last *FLAGS variable, or |
| 461 | # (2) before a word containing "conftest.", or (3) at the end. |
| 462 | # Note that $ac_compile itself does not contain backslashes and begins |
| 463 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 464 | lt_compile=`echo "$ac_compile" | $SED \ |
| 465 | - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 466 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 467 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 468 | -e 's:$: $lt_compiler_flag:'` |
| 469 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 470 | @@ -6920,13 +7007,18 @@ |
| 471 | then |
| 472 | # The compiler can only warn and ignore the option if not recognized |
| 473 | # So say no if there are warnings |
| 474 | - if test ! -s out/conftest.err; then |
| 475 | + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 476 | + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 477 | + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 478 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 479 | fi |
| 480 | fi |
| 481 | - chmod u+w . |
| 482 | - $rm conftest* out/* |
| 483 | - rmdir out |
| 484 | + chmod u+w . 2>&AS_MESSAGE_LOG_FD |
| 485 | + $rm conftest* |
| 486 | + # SGI C++ compiler will create directory out/ii_files/ for |
| 487 | + # template instantiation |
| 488 | + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 489 | + $rm out/* && rmdir out |
| 490 | cd .. |
| 491 | rmdir conftest |
| 492 | $rm conftest* |
| 493 | @@ -6985,8 +7077,8 @@ |
| 494 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
| 495 | _LT_AC_TAGVAR(hardcode_action, $1)= |
| 496 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
| 497 | - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ |
| 498 | - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then |
| 499 | + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
| 500 | + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
| 501 | |
| 502 | # We can hardcode non-existant directories. |
| 503 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
| 504 | @@ -7043,7 +7135,7 @@ |
| 505 | *) |
| 506 | AC_MSG_RESULT([no]) |
| 507 | ;; |
| 508 | - esac |
| 509 | + esac |
| 510 | fi |
| 511 | ])# AC_LIBTOOL_SYS_LIB_STRIP |
| 512 | |
| 513 | @@ -7056,7 +7148,7 @@ |
| 514 | library_names_spec= |
| 515 | libname_spec='lib$name' |
| 516 | soname_spec= |
| 517 | -shrext=".so" |
| 518 | +shrext_cmds=".so" |
| 519 | postinstall_cmds= |
| 520 | postuninstall_cmds= |
| 521 | finish_cmds= |
| 522 | @@ -7066,7 +7158,20 @@ |
| 523 | version_type=none |
| 524 | dynamic_linker="$host_os ld.so" |
| 525 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 526 | -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 527 | +if test "$GCC" = yes; then |
| 528 | + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 529 | + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 530 | + # if the path contains ";" then we assume it to be the separator |
| 531 | + # otherwise default to the standard path separator (i.e. ":") - it is |
| 532 | + # assumed that no part of a normal pathname contains ";" but that should |
| 533 | + # okay in the real world where ";" in dirpaths is itself problematic. |
| 534 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 535 | + else |
| 536 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 537 | + fi |
| 538 | +else |
| 539 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 540 | +fi |
| 541 | need_lib_prefix=unknown |
| 542 | hardcode_into_libs=no |
| 543 | |
| 544 | @@ -7131,7 +7236,7 @@ |
| 545 | amigaos*) |
| 546 | library_names_spec='$libname.ixlibrary $libname.a' |
| 547 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 548 | - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
| 549 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 550 | ;; |
| 551 | |
| 552 | beos*) |
| 553 | @@ -7140,7 +7245,7 @@ |
| 554 | shlibpath_var=LIBRARY_PATH |
| 555 | ;; |
| 556 | |
| 557 | -bsdi4*) |
| 558 | +bsdi[[45]]*) |
| 559 | version_type=linux |
| 560 | need_version=no |
| 561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 562 | @@ -7156,7 +7261,7 @@ |
| 563 | |
| 564 | cygwin* | mingw* | pw32*) |
| 565 | version_type=windows |
| 566 | - shrext=".dll" |
| 567 | + shrext_cmds=".dll" |
| 568 | need_version=no |
| 569 | need_lib_prefix=no |
| 570 | |
| 571 | @@ -7168,7 +7273,8 @@ |
| 572 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 573 | dldir=$destdir/`dirname \$dlpath`~ |
| 574 | test -d \$dldir || mkdir -p \$dldir~ |
| 575 | - $install_prog $dir/$dlname \$dldir/$dlname' |
| 576 | + $install_prog $dir/$dlname \$dldir/$dlname~ |
| 577 | + chmod a+x \$dldir/$dlname' |
| 578 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 579 | dlpath=$dir/\$dldll~ |
| 580 | $rm \$dlpath' |
| 581 | @@ -7198,7 +7304,7 @@ |
| 582 | ;; |
| 583 | pw32*) |
| 584 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 585 | - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 586 | + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 587 | ;; |
| 588 | esac |
| 589 | ;; |
| 590 | @@ -7221,7 +7327,7 @@ |
| 591 | soname_spec='${libname}${release}${major}$shared_ext' |
| 592 | shlibpath_overrides_runpath=yes |
| 593 | shlibpath_var=DYLD_LIBRARY_PATH |
| 594 | - shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 595 | + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 596 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 597 | if test "$GCC" = yes; then |
| 598 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 599 | @@ -7244,20 +7350,17 @@ |
| 600 | dynamic_linker=no |
| 601 | ;; |
| 602 | |
| 603 | -kfreebsd*-gnu*) |
| 604 | - version_type=linux |
| 605 | - need_lib_prefix=no |
| 606 | - need_version=no |
| 607 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 608 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 609 | - shlibpath_var=LD_LIBRARY_PATH |
| 610 | - shlibpath_overrides_runpath=no |
| 611 | - hardcode_into_libs=yes |
| 612 | - dynamic_linker='GNU ld.so' |
| 613 | - ;; |
| 614 | - |
| 615 | -freebsd*) |
| 616 | - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 617 | +freebsd* | dragonfly*) |
| 618 | + # DragonFly does not have aout. When/if they implement a new |
| 619 | + # versioning mechanism, adjust this. |
| 620 | + if test -x /usr/bin/objformat; then |
| 621 | + objformat=`/usr/bin/objformat` |
| 622 | + else |
| 623 | + case $host_os in |
| 624 | + freebsd[[123]]*) objformat=aout ;; |
| 625 | + *) objformat=elf ;; |
| 626 | + esac |
| 627 | + fi |
| 628 | version_type=freebsd-$objformat |
| 629 | case $version_type in |
| 630 | freebsd-elf*) |
| 631 | @@ -7275,14 +7378,19 @@ |
| 632 | freebsd2*) |
| 633 | shlibpath_overrides_runpath=yes |
| 634 | ;; |
| 635 | - freebsd3.[01]* | freebsdelf3.[01]*) |
| 636 | + freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
| 637 | shlibpath_overrides_runpath=yes |
| 638 | hardcode_into_libs=yes |
| 639 | ;; |
| 640 | - *) # from 3.2 on |
| 641 | + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
| 642 | + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
| 643 | shlibpath_overrides_runpath=no |
| 644 | hardcode_into_libs=yes |
| 645 | ;; |
| 646 | + freebsd*) # from 4.6 on |
| 647 | + shlibpath_overrides_runpath=yes |
| 648 | + hardcode_into_libs=yes |
| 649 | + ;; |
| 650 | esac |
| 651 | ;; |
| 652 | |
| 653 | @@ -7302,9 +7410,9 @@ |
| 654 | version_type=sunos |
| 655 | need_lib_prefix=no |
| 656 | need_version=no |
| 657 | - case "$host_cpu" in |
| 658 | + case $host_cpu in |
| 659 | ia64*) |
| 660 | - shrext='.so' |
| 661 | + shrext_cmds='.so' |
| 662 | hardcode_into_libs=yes |
| 663 | dynamic_linker="$host_os dld.so" |
| 664 | shlibpath_var=LD_LIBRARY_PATH |
| 665 | @@ -7319,7 +7427,7 @@ |
| 666 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 667 | ;; |
| 668 | hppa*64*) |
| 669 | - shrext='.sl' |
| 670 | + shrext_cmds='.sl' |
| 671 | hardcode_into_libs=yes |
| 672 | dynamic_linker="$host_os dld.sl" |
| 673 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 674 | @@ -7330,7 +7438,7 @@ |
| 675 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 676 | ;; |
| 677 | *) |
| 678 | - shrext='.sl' |
| 679 | + shrext_cmds='.sl' |
| 680 | dynamic_linker="$host_os dld.sl" |
| 681 | shlibpath_var=SHLIB_PATH |
| 682 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 683 | @@ -7342,6 +7450,18 @@ |
| 684 | postinstall_cmds='chmod 555 $lib' |
| 685 | ;; |
| 686 | |
| 687 | +interix3*) |
| 688 | + version_type=linux |
| 689 | + need_lib_prefix=no |
| 690 | + need_version=no |
| 691 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 692 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 693 | + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 694 | + shlibpath_var=LD_LIBRARY_PATH |
| 695 | + shlibpath_overrides_runpath=no |
| 696 | + hardcode_into_libs=yes |
| 697 | + ;; |
| 698 | + |
| 699 | irix5* | irix6* | nonstopux*) |
| 700 | case $host_os in |
| 701 | nonstopux*) version_type=nonstopux ;; |
| 702 | @@ -7385,29 +7505,26 @@ |
| 703 | ;; |
| 704 | |
| 705 | # This must be Linux ELF. |
| 706 | -linux*) |
| 707 | +linux* | k*bsd*-gnu) |
| 708 | version_type=linux |
| 709 | need_lib_prefix=no |
| 710 | need_version=no |
| 711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 712 | soname_spec='${libname}${release}${shared_ext}$major' |
| 713 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 714 | - libsuff= |
| 715 | - if test "x$LINUX_64_MODE" = x64; then |
| 716 | - # Some platforms are per default 64-bit, so there's no /lib64 |
| 717 | - if test -d /lib64; then |
| 718 | - libsuff=64 |
| 719 | - fi |
| 720 | - fi |
| 721 | shlibpath_var=LD_LIBRARY_PATH |
| 722 | shlibpath_overrides_runpath=no |
| 723 | - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
| 724 | - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
| 725 | # This implies no fast_install, which is unacceptable. |
| 726 | # Some rework will be needed to allow for fast_install |
| 727 | # before this can be enabled. |
| 728 | hardcode_into_libs=yes |
| 729 | |
| 730 | + # Append ld.so.conf contents to the search path |
| 731 | + if test -f /etc/ld.so.conf; then |
| 732 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 733 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 734 | + fi |
| 735 | + |
| 736 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 737 | # powerpc, because MkLinux only supported shared libraries with the |
| 738 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 739 | @@ -7417,6 +7534,18 @@ |
| 740 | dynamic_linker='GNU/Linux ld.so' |
| 741 | ;; |
| 742 | |
| 743 | +netbsdelf*-gnu) |
| 744 | + version_type=linux |
| 745 | + need_lib_prefix=no |
| 746 | + need_version=no |
| 747 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 748 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 749 | + shlibpath_var=LD_LIBRARY_PATH |
| 750 | + shlibpath_overrides_runpath=no |
| 751 | + hardcode_into_libs=yes |
| 752 | + dynamic_linker='NetBSD ld.elf_so' |
| 753 | + ;; |
| 754 | + |
| 755 | netbsd*) |
| 756 | version_type=sunos |
| 757 | need_lib_prefix=no |
| 758 | @@ -7426,7 +7555,7 @@ |
| 759 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 760 | dynamic_linker='NetBSD (a.out) ld.so' |
| 761 | else |
| 762 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 763 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 764 | soname_spec='${libname}${release}${shared_ext}$major' |
| 765 | dynamic_linker='NetBSD ld.elf_so' |
| 766 | fi |
| 767 | @@ -7454,8 +7583,13 @@ |
| 768 | |
| 769 | openbsd*) |
| 770 | version_type=sunos |
| 771 | + sys_lib_dlsearch_path_spec="/usr/lib" |
| 772 | need_lib_prefix=no |
| 773 | - need_version=no |
| 774 | + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 775 | + case $host_os in |
| 776 | + openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 777 | + *) need_version=no ;; |
| 778 | + esac |
| 779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 780 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 781 | shlibpath_var=LD_LIBRARY_PATH |
| 782 | @@ -7475,7 +7609,7 @@ |
| 783 | |
| 784 | os2*) |
| 785 | libname_spec='$name' |
| 786 | - shrext=".dll" |
| 787 | + shrext_cmds=".dll" |
| 788 | need_lib_prefix=no |
| 789 | library_names_spec='$libname${shared_ext} $libname.a' |
| 790 | dynamic_linker='OS/2 ld.exe' |
| 791 | @@ -7493,13 +7627,6 @@ |
| 792 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 793 | ;; |
| 794 | |
| 795 | -sco3.2v5*) |
| 796 | - version_type=osf |
| 797 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 798 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 799 | - shlibpath_var=LD_LIBRARY_PATH |
| 800 | - ;; |
| 801 | - |
| 802 | solaris*) |
| 803 | version_type=linux |
| 804 | need_lib_prefix=no |
| 805 | @@ -7525,7 +7652,7 @@ |
| 806 | need_version=yes |
| 807 | ;; |
| 808 | |
| 809 | -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 810 | +sysv4 | sysv4.3*) |
| 811 | version_type=linux |
| 812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 813 | soname_spec='${libname}${release}${shared_ext}$major' |
| 814 | @@ -7558,6 +7685,29 @@ |
| 815 | fi |
| 816 | ;; |
| 817 | |
| 818 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 819 | + version_type=freebsd-elf |
| 820 | + need_lib_prefix=no |
| 821 | + need_version=no |
| 822 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 823 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 824 | + shlibpath_var=LD_LIBRARY_PATH |
| 825 | + hardcode_into_libs=yes |
| 826 | + if test "$with_gnu_ld" = yes; then |
| 827 | + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 828 | + shlibpath_overrides_runpath=no |
| 829 | + else |
| 830 | + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 831 | + shlibpath_overrides_runpath=yes |
| 832 | + case $host_os in |
| 833 | + sco3.2v5*) |
| 834 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 835 | + ;; |
| 836 | + esac |
| 837 | + fi |
| 838 | + sys_lib_dlsearch_path_spec='/usr/lib' |
| 839 | + ;; |
| 840 | + |
| 841 | uts4*) |
| 842 | version_type=linux |
| 843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 844 | @@ -7571,6 +7721,11 @@ |
| 845 | esac |
| 846 | AC_MSG_RESULT([$dynamic_linker]) |
| 847 | test "$dynamic_linker" = no && can_build_shared=no |
| 848 | + |
| 849 | +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 850 | +if test "$GCC" = yes; then |
| 851 | + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 852 | +fi |
| 853 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 854 | |
| 855 | |
| 856 | @@ -7595,6 +7750,9 @@ |
| 857 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
| 858 | fi |
| 859 | fi |
| 860 | + if test -z "$LTCFLAGS"; then |
| 861 | + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 862 | + fi |
| 863 | |
| 864 | # Extract list of available tagged configurations in $ofile. |
| 865 | # Note that this assumes the entire list is on one line. |
| 866 | @@ -7621,7 +7779,9 @@ |
| 867 | |
| 868 | case $tagname in |
| 869 | CXX) |
| 870 | - if test -n "$CXX" && test "X$CXX" != "Xno"; then |
| 871 | + if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 872 | + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 873 | + (test "X$CXX" != "Xg++"))) ; then |
| 874 | AC_LIBTOOL_LANG_CXX_CONFIG |
| 875 | else |
| 876 | tagname="" |
| 877 | @@ -7683,7 +7843,7 @@ |
| 878 | |
| 879 | # AC_LIBTOOL_WIN32_DLL |
| 880 | # -------------------- |
| 881 | -# declare package support for building win32 dll's |
| 882 | +# declare package support for building win32 DLLs |
| 883 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
| 884 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
| 885 | ])# AC_LIBTOOL_WIN32_DLL |
| 886 | @@ -7721,7 +7881,7 @@ |
| 887 | |
| 888 | # AC_DISABLE_SHARED |
| 889 | # ----------------- |
| 890 | -#- set the default shared flag to --disable-shared |
| 891 | +# set the default shared flag to --disable-shared |
| 892 | AC_DEFUN([AC_DISABLE_SHARED], |
| 893 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 894 | AC_ENABLE_SHARED(no) |
| 895 | @@ -7857,7 +8017,7 @@ |
| 896 | if test -n "$file_magic_test_file"; then |
| 897 | case $deplibs_check_method in |
| 898 | "file_magic "*) |
| 899 | - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 900 | + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 901 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 902 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 903 | $EGREP "$file_magic_regex" > /dev/null; then |
| 904 | @@ -7967,7 +8127,7 @@ |
| 905 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 906 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 907 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 908 | - # but apparently some GNU ld's only accept -v. |
| 909 | + # but apparently some variants of GNU ld only accept -v. |
| 910 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 911 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 912 | *GNU* | *'with BFD'*) |
| 913 | @@ -7999,7 +8159,7 @@ |
| 914 | AC_DEFUN([AC_PROG_LD_GNU], |
| 915 | [AC_REQUIRE([AC_PROG_EGREP])dnl |
| 916 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
| 917 | -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 918 | +[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 919 | case `$LD -v 2>&1 </dev/null` in |
| 920 | *GNU* | *'with BFD'*) |
| 921 | lt_cv_prog_gnu_ld=yes |
| 922 | @@ -8026,6 +8186,15 @@ |
| 923 | *) reload_flag=" $reload_flag" ;; |
| 924 | esac |
| 925 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 926 | +case $host_os in |
| 927 | + darwin*) |
| 928 | + if test "$GCC" = yes; then |
| 929 | + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 930 | + else |
| 931 | + reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 932 | + fi |
| 933 | + ;; |
| 934 | +esac |
| 935 | ])# AC_PROG_LD_RELOAD_FLAG |
| 936 | |
| 937 | |
| 938 | @@ -8059,44 +8228,36 @@ |
| 939 | lt_cv_deplibs_check_method=pass_all |
| 940 | ;; |
| 941 | |
| 942 | -bsdi4*) |
| 943 | +bsdi[[45]]*) |
| 944 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
| 945 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 946 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 947 | ;; |
| 948 | |
| 949 | cygwin*) |
| 950 | - lt_cv_deplibs_check_method=pass_all |
| 951 | + # func_win32_libid is a shell function defined in ltmain.sh |
| 952 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 953 | + lt_cv_file_magic_cmd='func_win32_libid' |
| 954 | ;; |
| 955 | - |
| 956 | + |
| 957 | mingw* | pw32*) |
| 958 | - # win32_libid is a shell function defined in ltmain.sh |
| 959 | - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 960 | - lt_cv_file_magic_cmd='win32_libid' |
| 961 | + # Base MSYS/MinGW do not provide the 'file' command needed by |
| 962 | + # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 963 | + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 964 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 965 | ;; |
| 966 | |
| 967 | darwin* | rhapsody*) |
| 968 | - # this will be overwritten by pass_all, but leave it in just in case |
| 969 | - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 970 | - lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 971 | - case "$host_os" in |
| 972 | - rhapsody* | darwin1.[[012]]) |
| 973 | - lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
| 974 | - ;; |
| 975 | - *) # Darwin 1.3 on |
| 976 | - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 977 | - ;; |
| 978 | - esac |
| 979 | lt_cv_deplibs_check_method=pass_all |
| 980 | ;; |
| 981 | |
| 982 | -freebsd* | kfreebsd*-gnu) |
| 983 | +freebsd* | dragonfly*) |
| 984 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 985 | case $host_cpu in |
| 986 | i*86 ) |
| 987 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 988 | # Let's accept both of them until this is cleared up. |
| 989 | - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
| 990 | + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
| 991 | lt_cv_file_magic_cmd=/usr/bin/file |
| 992 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 993 | ;; |
| 994 | @@ -8112,7 +8273,7 @@ |
| 995 | |
| 996 | hpux10.20* | hpux11*) |
| 997 | lt_cv_file_magic_cmd=/usr/bin/file |
| 998 | - case "$host_cpu" in |
| 999 | + case $host_cpu in |
| 1000 | ia64*) |
| 1001 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
| 1002 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 1003 | @@ -8128,43 +8289,27 @@ |
| 1004 | esac |
| 1005 | ;; |
| 1006 | |
| 1007 | +interix3*) |
| 1008 | + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 1009 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
| 1010 | + ;; |
| 1011 | + |
| 1012 | irix5* | irix6* | nonstopux*) |
| 1013 | - case $host_os in |
| 1014 | - irix5* | nonstopux*) |
| 1015 | - # this will be overridden with pass_all, but let us keep it just in case |
| 1016 | - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 1017 | - ;; |
| 1018 | - *) |
| 1019 | - case $LD in |
| 1020 | - *-32|*"-32 ") libmagic=32-bit;; |
| 1021 | - *-n32|*"-n32 ") libmagic=N32;; |
| 1022 | - *-64|*"-64 ") libmagic=64-bit;; |
| 1023 | - *) libmagic=never-match;; |
| 1024 | - esac |
| 1025 | - # this will be overridden with pass_all, but let us keep it just in case |
| 1026 | - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" |
| 1027 | - ;; |
| 1028 | + case $LD in |
| 1029 | + *-32|*"-32 ") libmagic=32-bit;; |
| 1030 | + *-n32|*"-n32 ") libmagic=N32;; |
| 1031 | + *-64|*"-64 ") libmagic=64-bit;; |
| 1032 | + *) libmagic=never-match;; |
| 1033 | esac |
| 1034 | - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 1035 | lt_cv_deplibs_check_method=pass_all |
| 1036 | ;; |
| 1037 | |
| 1038 | # This must be Linux ELF. |
| 1039 | -linux*) |
| 1040 | - case $host_cpu in |
| 1041 | - alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* ) |
| 1042 | - lt_cv_deplibs_check_method=pass_all ;; |
| 1043 | - # the debian people say, arm and glibc 2.3.1 works for them with pass_all |
| 1044 | - arm* ) |
| 1045 | - lt_cv_deplibs_check_method=pass_all ;; |
| 1046 | - *) |
| 1047 | - # glibc up to 2.1.1 does not perform some relocations on ARM |
| 1048 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
| 1049 | - esac |
| 1050 | - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 1051 | +linux* | k*bsd*-gnu) |
| 1052 | + lt_cv_deplibs_check_method=pass_all |
| 1053 | ;; |
| 1054 | |
| 1055 | -netbsd*) |
| 1056 | +netbsd* | netbsdelf*-gnu) |
| 1057 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 1058 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 1059 | else |
| 1060 | @@ -8183,32 +8328,22 @@ |
| 1061 | ;; |
| 1062 | |
| 1063 | openbsd*) |
| 1064 | - lt_cv_file_magic_cmd=/usr/bin/file |
| 1065 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 1066 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 1067 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
| 1068 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
| 1069 | else |
| 1070 | - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 1071 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 1072 | fi |
| 1073 | ;; |
| 1074 | |
| 1075 | osf3* | osf4* | osf5*) |
| 1076 | - # this will be overridden with pass_all, but let us keep it just in case |
| 1077 | - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 1078 | - lt_cv_file_magic_test_file=/shlib/libc.so |
| 1079 | - lt_cv_deplibs_check_method=pass_all |
| 1080 | - ;; |
| 1081 | - |
| 1082 | -sco3.2v5*) |
| 1083 | lt_cv_deplibs_check_method=pass_all |
| 1084 | ;; |
| 1085 | |
| 1086 | solaris*) |
| 1087 | lt_cv_deplibs_check_method=pass_all |
| 1088 | - lt_cv_file_magic_test_file=/lib/libc.so |
| 1089 | ;; |
| 1090 | |
| 1091 | -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 1092 | +sysv4 | sysv4.3*) |
| 1093 | case $host_vendor in |
| 1094 | motorola) |
| 1095 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
| 1096 | @@ -8229,10 +8364,13 @@ |
| 1097 | siemens) |
| 1098 | lt_cv_deplibs_check_method=pass_all |
| 1099 | ;; |
| 1100 | + pc) |
| 1101 | + lt_cv_deplibs_check_method=pass_all |
| 1102 | + ;; |
| 1103 | esac |
| 1104 | ;; |
| 1105 | |
| 1106 | -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) |
| 1107 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 1108 | lt_cv_deplibs_check_method=pass_all |
| 1109 | ;; |
| 1110 | esac |
| 1111 | @@ -8252,36 +8390,43 @@ |
| 1112 | # Let the user override the test. |
| 1113 | lt_cv_path_NM="$NM" |
| 1114 | else |
| 1115 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 1116 | - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 1117 | - IFS="$lt_save_ifs" |
| 1118 | - test -z "$ac_dir" && ac_dir=. |
| 1119 | - tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 1120 | - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 1121 | - # Check to see if the nm accepts a BSD-compat flag. |
| 1122 | - # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 1123 | - # nm: unknown option "B" ignored |
| 1124 | - # Tru64's nm complains that /dev/null is an invalid object file |
| 1125 | - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 1126 | - */dev/null* | *'Invalid file or object type'*) |
| 1127 | - lt_cv_path_NM="$tmp_nm -B" |
| 1128 | - break |
| 1129 | - ;; |
| 1130 | - *) |
| 1131 | - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 1132 | - */dev/null*) |
| 1133 | - lt_cv_path_NM="$tmp_nm -p" |
| 1134 | + lt_nm_to_check="${ac_tool_prefix}nm" |
| 1135 | + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 1136 | + lt_nm_to_check="$lt_nm_to_check nm" |
| 1137 | + fi |
| 1138 | + for lt_tmp_nm in $lt_nm_to_check; do |
| 1139 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 1140 | + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 1141 | + IFS="$lt_save_ifs" |
| 1142 | + test -z "$ac_dir" && ac_dir=. |
| 1143 | + tmp_nm="$ac_dir/$lt_tmp_nm" |
| 1144 | + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 1145 | + # Check to see if the nm accepts a BSD-compat flag. |
| 1146 | + # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 1147 | + # nm: unknown option "B" ignored |
| 1148 | + # Tru64's nm complains that /dev/null is an invalid object file |
| 1149 | + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 1150 | + */dev/null* | *'Invalid file or object type'*) |
| 1151 | + lt_cv_path_NM="$tmp_nm -B" |
| 1152 | break |
| 1153 | ;; |
| 1154 | *) |
| 1155 | - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 1156 | - continue # so that we can try to find one that supports BSD flags |
| 1157 | + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 1158 | + */dev/null*) |
| 1159 | + lt_cv_path_NM="$tmp_nm -p" |
| 1160 | + break |
| 1161 | + ;; |
| 1162 | + *) |
| 1163 | + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 1164 | + continue # so that we can try to find one that supports BSD flags |
| 1165 | + ;; |
| 1166 | + esac |
| 1167 | ;; |
| 1168 | esac |
| 1169 | - esac |
| 1170 | - fi |
| 1171 | + fi |
| 1172 | + done |
| 1173 | + IFS="$lt_save_ifs" |
| 1174 | done |
| 1175 | - IFS="$lt_save_ifs" |
| 1176 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 1177 | fi]) |
| 1178 | NM="$lt_cv_path_NM" |
| 1179 | @@ -8313,13 +8458,13 @@ |
| 1180 | # ----------------------------------- |
| 1181 | # sets LIBLTDL to the link flags for the libltdl convenience library and |
| 1182 | # LTDLINCL to the include flags for the libltdl header and adds |
| 1183 | -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL |
| 1184 | -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
| 1185 | -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will |
| 1186 | -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
| 1187 | -# '${top_srcdir}/' (note the single quotes!). If your package is not |
| 1188 | -# flat and you're not using automake, define top_builddir and |
| 1189 | -# top_srcdir appropriately in the Makefiles. |
| 1190 | +# --enable-ltdl-convenience to the configure arguments. Note that |
| 1191 | +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
| 1192 | +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with |
| 1193 | +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' |
| 1194 | +# (note the single quotes!). If your package is not flat and you're not |
| 1195 | +# using automake, define top_builddir and top_srcdir appropriately in |
| 1196 | +# the Makefiles. |
| 1197 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
| 1198 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 1199 | case $enable_ltdl_convenience in |
| 1200 | @@ -8338,13 +8483,13 @@ |
| 1201 | # ----------------------------------- |
| 1202 | # sets LIBLTDL to the link flags for the libltdl installable library and |
| 1203 | # LTDLINCL to the include flags for the libltdl header and adds |
| 1204 | -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL |
| 1205 | -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
| 1206 | -# DIRECTORY is not provided and an installed libltdl is not found, it is |
| 1207 | -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' |
| 1208 | -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
| 1209 | -# quotes!). If your package is not flat and you're not using automake, |
| 1210 | -# define top_builddir and top_srcdir appropriately in the Makefiles. |
| 1211 | +# --enable-ltdl-install to the configure arguments. Note that |
| 1212 | +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
| 1213 | +# and an installed libltdl is not found, it is assumed to be `libltdl'. |
| 1214 | +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with |
| 1215 | +# '${top_srcdir}/' (note the single quotes!). If your package is not |
| 1216 | +# flat and you're not using automake, define top_builddir and top_srcdir |
| 1217 | +# appropriately in the Makefiles. |
| 1218 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
| 1219 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
| 1220 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 1221 | @@ -8382,10 +8527,21 @@ |
| 1222 | # --------------- |
| 1223 | AC_DEFUN([_LT_AC_LANG_CXX], |
| 1224 | [AC_REQUIRE([AC_PROG_CXX]) |
| 1225 | -AC_REQUIRE([AC_PROG_CXXCPP]) |
| 1226 | +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
| 1227 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
| 1228 | ])# _LT_AC_LANG_CXX |
| 1229 | |
| 1230 | +# _LT_AC_PROG_CXXCPP |
| 1231 | +# ------------------ |
| 1232 | +AC_DEFUN([_LT_AC_PROG_CXXCPP], |
| 1233 | +[ |
| 1234 | +AC_REQUIRE([AC_PROG_CXX]) |
| 1235 | +if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 1236 | + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 1237 | + (test "X$CXX" != "Xg++"))) ; then |
| 1238 | + AC_PROG_CXXCPP |
| 1239 | +fi |
| 1240 | +])# _LT_AC_PROG_CXXCPP |
| 1241 | |
| 1242 | # AC_LIBTOOL_F77 |
| 1243 | # -------------- |
| 1244 | @@ -8425,7 +8581,7 @@ |
| 1245 | |
| 1246 | |
| 1247 | # AC_LIBTOOL_RC |
| 1248 | -# -------------- |
| 1249 | +# ------------- |
| 1250 | # enable support for Windows resource files |
| 1251 | AC_DEFUN([AC_LIBTOOL_RC], |
| 1252 | [AC_REQUIRE([LT_AC_PROG_RC]) |
| 1253 | @@ -8458,36 +8614,9 @@ |
| 1254 | |
| 1255 | _LT_AC_SYS_COMPILER |
| 1256 | |
| 1257 | -# |
| 1258 | -# Check for any special shared library compilation flags. |
| 1259 | -# |
| 1260 | -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= |
| 1261 | -if test "$GCC" = no; then |
| 1262 | - case $host_os in |
| 1263 | - sco3.2v5*) |
| 1264 | - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' |
| 1265 | - ;; |
| 1266 | - esac |
| 1267 | -fi |
| 1268 | -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
| 1269 | - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
| 1270 | - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : |
| 1271 | - else |
| 1272 | - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
| 1273 | - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
| 1274 | - fi |
| 1275 | -fi |
| 1276 | - |
| 1277 | - |
| 1278 | -# |
| 1279 | -# Check to make sure the static flag actually works. |
| 1280 | -# |
| 1281 | -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], |
| 1282 | - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
| 1283 | - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), |
| 1284 | - [], |
| 1285 | - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 1286 | - |
| 1287 | +# save warnings/boilerplate of simple test code |
| 1288 | +_LT_COMPILER_BOILERPLATE |
| 1289 | +_LT_LINKER_BOILERPLATE |
| 1290 | |
| 1291 | ## CAVEAT EMPTOR: |
| 1292 | ## There is no encapsulation within the following macros, do not change |
| 1293 | @@ -8501,9 +8630,9 @@ |
| 1294 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 1295 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 1296 | AC_LIBTOOL_SYS_LIB_STRIP |
| 1297 | -AC_LIBTOOL_DLOPEN_SELF($1) |
| 1298 | +AC_LIBTOOL_DLOPEN_SELF |
| 1299 | |
| 1300 | -# Report which librarie types wil actually be built |
| 1301 | +# Report which library types will actually be built |
| 1302 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 1303 | AC_MSG_RESULT([$can_build_shared]) |
| 1304 | |
| 1305 | @@ -8512,7 +8641,7 @@ |
| 1306 | |
| 1307 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 1308 | # are all built from PIC. |
| 1309 | -case "$host_os" in |
| 1310 | +case $host_os in |
| 1311 | aix3*) |
| 1312 | test "$enable_shared" = yes && enable_static=no |
| 1313 | if test -n "$RANLIB"; then |
| 1314 | @@ -8521,48 +8650,11 @@ |
| 1315 | fi |
| 1316 | ;; |
| 1317 | |
| 1318 | -aix4*) |
| 1319 | +aix4* | aix5*) |
| 1320 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 1321 | test "$enable_shared" = yes && enable_static=no |
| 1322 | fi |
| 1323 | - ;; |
| 1324 | - darwin* | rhapsody*) |
| 1325 | - if test "$GCC" = yes; then |
| 1326 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 1327 | - case "$host_os" in |
| 1328 | - rhapsody* | darwin1.[[012]]) |
| 1329 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' |
| 1330 | - ;; |
| 1331 | - *) # Darwin 1.3 on |
| 1332 | - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 1333 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 1334 | - else |
| 1335 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 1336 | - 10.[012]) |
| 1337 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 1338 | - ;; |
| 1339 | - 10.*) |
| 1340 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup' |
| 1341 | - ;; |
| 1342 | - esac |
| 1343 | - fi |
| 1344 | - ;; |
| 1345 | - esac |
| 1346 | - output_verbose_link_cmd='echo' |
| 1347 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 1348 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 1349 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 1350 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1351 | - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1352 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 1353 | - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 1354 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 1355 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| 1356 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 1357 | - else |
| 1358 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1359 | - fi |
| 1360 | - ;; |
| 1361 | + ;; |
| 1362 | esac |
| 1363 | AC_MSG_RESULT([$enable_shared]) |
| 1364 | |
| 1365 | @@ -8587,7 +8679,7 @@ |
| 1366 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
| 1367 | [AC_LANG_PUSH(C++) |
| 1368 | AC_REQUIRE([AC_PROG_CXX]) |
| 1369 | -AC_REQUIRE([AC_PROG_CXXCPP]) |
| 1370 | +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
| 1371 | |
| 1372 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 1373 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 1374 | @@ -8599,6 +8691,7 @@ |
| 1375 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 1376 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 1377 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 1378 | +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 1379 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 1380 | _LT_AC_TAGVAR(module_cmds, $1)= |
| 1381 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 1382 | @@ -8616,7 +8709,7 @@ |
| 1383 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
| 1384 | |
| 1385 | # Source file extension for C++ test sources. |
| 1386 | -ac_ext=cc |
| 1387 | +ac_ext=cpp |
| 1388 | |
| 1389 | # Object file extension for compiled C++ test sources. |
| 1390 | objext=o |
| 1391 | @@ -8626,11 +8719,15 @@ |
| 1392 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 1393 | |
| 1394 | # Code to be used in simple link tests |
| 1395 | -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
| 1396 | +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' |
| 1397 | |
| 1398 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 1399 | _LT_AC_SYS_COMPILER |
| 1400 | |
| 1401 | +# save warnings/boilerplate of simple test code |
| 1402 | +_LT_COMPILER_BOILERPLATE |
| 1403 | +_LT_LINKER_BOILERPLATE |
| 1404 | + |
| 1405 | # Allow CC to be a program name with arguments. |
| 1406 | lt_save_CC=$CC |
| 1407 | lt_save_LD=$LD |
| 1408 | @@ -8641,18 +8738,18 @@ |
| 1409 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 1410 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 1411 | else |
| 1412 | - unset lt_cv_prog_gnu_ld |
| 1413 | + $as_unset lt_cv_prog_gnu_ld |
| 1414 | fi |
| 1415 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 1416 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 1417 | else |
| 1418 | - unset lt_cv_path_LD |
| 1419 | + $as_unset lt_cv_path_LD |
| 1420 | fi |
| 1421 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 1422 | CC=${CXX-"c++"} |
| 1423 | compiler=$CC |
| 1424 | _LT_AC_TAGVAR(compiler, $1)=$CC |
| 1425 | -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 1426 | +_LT_CC_BASENAME([$compiler]) |
| 1427 | |
| 1428 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 1429 | # no_builtin_flag separately |
| 1430 | @@ -8670,8 +8767,8 @@ |
| 1431 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 1432 | # archiving commands below assume that GNU ld is being used. |
| 1433 | if test "$with_gnu_ld" = yes; then |
| 1434 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
| 1435 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 1436 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 1437 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 1438 | |
| 1439 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 1440 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 1441 | @@ -8697,7 +8794,7 @@ |
| 1442 | # linker, instead of GNU ld. If possible, this setting should |
| 1443 | # overridden to take advantage of the native linker features on |
| 1444 | # the platform it is being used on. |
| 1445 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib' |
| 1446 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 1447 | fi |
| 1448 | |
| 1449 | # Commands to make compiler produce verbose output that lists |
| 1450 | @@ -8727,8 +8824,23 @@ |
| 1451 | exp_sym_flag='-Bexport' |
| 1452 | no_entry_flag="" |
| 1453 | else |
| 1454 | - # KDE requires run time linking. Make it the default. |
| 1455 | - aix_use_runtimelinking=yes |
| 1456 | + aix_use_runtimelinking=no |
| 1457 | + |
| 1458 | + # Test if we are trying to use run time linking or normal |
| 1459 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 1460 | + # need to do runtime linking. |
| 1461 | + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 1462 | + for ld_flag in $LDFLAGS; do |
| 1463 | + case $ld_flag in |
| 1464 | + *-brtl*) |
| 1465 | + aix_use_runtimelinking=yes |
| 1466 | + break |
| 1467 | + ;; |
| 1468 | + esac |
| 1469 | + done |
| 1470 | + ;; |
| 1471 | + esac |
| 1472 | + |
| 1473 | exp_sym_flag='-bexport' |
| 1474 | no_entry_flag='-bnoentry' |
| 1475 | fi |
| 1476 | @@ -8745,7 +8857,7 @@ |
| 1477 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 1478 | |
| 1479 | if test "$GXX" = yes; then |
| 1480 | - case $host_os in aix4.[012]|aix4.[012].*) |
| 1481 | + case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 1482 | # We only want to do this on AIX 4.2 and lower, the check |
| 1483 | # below for broken collect2 doesn't work under 4.3+ |
| 1484 | collect2name=`${CC} -print-prog-name=collect2` |
| 1485 | @@ -8764,8 +8876,12 @@ |
| 1486 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 1487 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 1488 | fi |
| 1489 | + ;; |
| 1490 | esac |
| 1491 | shared_flag='-shared' |
| 1492 | + if test "$aix_use_runtimelinking" = yes; then |
| 1493 | + shared_flag="$shared_flag "'${wl}-G' |
| 1494 | + fi |
| 1495 | else |
| 1496 | # not using gcc |
| 1497 | if test "$host_cpu" = ia64; then |
| 1498 | @@ -8774,15 +8890,16 @@ |
| 1499 | shared_flag='-G' |
| 1500 | else |
| 1501 | if test "$aix_use_runtimelinking" = yes; then |
| 1502 | - shared_flag='-qmkshrobj ${wl}-G' |
| 1503 | + shared_flag='${wl}-G' |
| 1504 | else |
| 1505 | - shared_flag='-qmkshrobj' |
| 1506 | + shared_flag='${wl}-bM:SRE' |
| 1507 | fi |
| 1508 | fi |
| 1509 | fi |
| 1510 | |
| 1511 | - # Let the compiler handle the export list. |
| 1512 | - _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 1513 | + # It seems that -bexpall does not export symbols beginning with |
| 1514 | + # underscore (_), so it is better to generate a list of symbols to export. |
| 1515 | + _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 1516 | if test "$aix_use_runtimelinking" = yes; then |
| 1517 | # Warning - without using the other runtime loading flags (-brtl), |
| 1518 | # -berok will link without error, but may produce a broken library. |
| 1519 | @@ -8791,13 +8908,12 @@ |
| 1520 | _LT_AC_SYS_LIBPATH_AIX |
| 1521 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 1522 | |
| 1523 | - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" |
| 1524 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 1525 | + _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 1526 | else |
| 1527 | if test "$host_cpu" = ia64; then |
| 1528 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 1529 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 1530 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 1531 | + _LT_AC_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" |
| 1532 | else |
| 1533 | # Determine the default libpath from the value encoded in an empty executable. |
| 1534 | _LT_AC_SYS_LIBPATH_AIX |
| 1535 | @@ -8806,22 +8922,32 @@ |
| 1536 | # -berok will link without error, but may produce a broken library. |
| 1537 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 1538 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 1539 | - # -bexpall does not export symbols beginning with underscore (_) |
| 1540 | - _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 1541 | # Exported symbols can be pulled into shared objects from archives |
| 1542 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
| 1543 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 1544 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 1545 | - # This is similar to how AIX traditionally builds it's shared libraries. |
| 1546 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 1547 | + # This is similar to how AIX traditionally builds its shared libraries. |
| 1548 | + _LT_AC_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' |
| 1549 | fi |
| 1550 | fi |
| 1551 | ;; |
| 1552 | - chorus*) |
| 1553 | - case $cc_basename in |
| 1554 | - *) |
| 1555 | - # FIXME: insert proper C++ library support |
| 1556 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1557 | - ;; |
| 1558 | + |
| 1559 | + beos*) |
| 1560 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 1561 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 1562 | + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 1563 | + # support --undefined. This deserves some investigation. FIXME |
| 1564 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 1565 | + else |
| 1566 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1567 | + fi |
| 1568 | + ;; |
| 1569 | + |
| 1570 | + chorus*) |
| 1571 | + case $cc_basename in |
| 1572 | + *) |
| 1573 | + # FIXME: insert proper C++ library support |
| 1574 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1575 | + ;; |
| 1576 | esac |
| 1577 | ;; |
| 1578 | |
| 1579 | @@ -8829,12 +8955,12 @@ |
| 1580 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 1581 | # as there is no search path for DLLs. |
| 1582 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 1583 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no |
| 1584 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 1585 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 1586 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 1587 | |
| 1588 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 1589 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 1590 | + _LT_AC_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' |
| 1591 | # If the export-symbols file already is a .def file (1st line |
| 1592 | # is EXPORTS), use it as is; otherwise, prepend... |
| 1593 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 1594 | @@ -8843,70 +8969,81 @@ |
| 1595 | echo EXPORTS > $output_objdir/$soname.def; |
| 1596 | cat $export_symbols >> $output_objdir/$soname.def; |
| 1597 | fi~ |
| 1598 | - $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 1599 | + $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' |
| 1600 | else |
| 1601 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1602 | fi |
| 1603 | ;; |
| 1604 | + darwin* | rhapsody*) |
| 1605 | + case $host_os in |
| 1606 | + rhapsody* | darwin1.[[012]]) |
| 1607 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 1608 | + ;; |
| 1609 | + *) # Darwin 1.3 on |
| 1610 | + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 1611 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 1612 | + else |
| 1613 | + case ${MACOSX_DEPLOYMENT_TARGET} in |
| 1614 | + 10.[[012]]) |
| 1615 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 1616 | + ;; |
| 1617 | + 10.*) |
| 1618 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| 1619 | + ;; |
| 1620 | + esac |
| 1621 | + fi |
| 1622 | + ;; |
| 1623 | + esac |
| 1624 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 1625 | + _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 1626 | + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 1627 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 1628 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
| 1629 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 1630 | |
| 1631 | - darwin* | rhapsody*) |
| 1632 | - if test "$GXX" = yes; then |
| 1633 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 1634 | - case "$host_os" in |
| 1635 | - rhapsody* | darwin1.[[012]]) |
| 1636 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' |
| 1637 | - ;; |
| 1638 | - *) # Darwin 1.3 on |
| 1639 | - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 1640 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 1641 | - else |
| 1642 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 1643 | - 10.[012]) |
| 1644 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 1645 | - ;; |
| 1646 | - 10.*) |
| 1647 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup' |
| 1648 | - ;; |
| 1649 | - esac |
| 1650 | + if test "$GXX" = yes ; then |
| 1651 | + lt_int_apple_cc_single_mod=no |
| 1652 | + output_verbose_link_cmd='echo' |
| 1653 | + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 1654 | + lt_int_apple_cc_single_mod=yes |
| 1655 | fi |
| 1656 | - ;; |
| 1657 | - esac |
| 1658 | - lt_int_apple_cc_single_mod=no |
| 1659 | - output_verbose_link_cmd='echo' |
| 1660 | - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 1661 | - lt_int_apple_cc_single_mod=yes |
| 1662 | - fi |
| 1663 | - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 1664 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 1665 | - else |
| 1666 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring' |
| 1667 | - fi |
| 1668 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 1669 | - |
| 1670 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 1671 | - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 1672 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1673 | - else |
| 1674 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1675 | - fi |
| 1676 | - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1677 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 1678 | - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 1679 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 1680 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| 1681 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 1682 | - else |
| 1683 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1684 | - fi |
| 1685 | - ;; |
| 1686 | + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 1687 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 1688 | + else |
| 1689 | + _LT_AC_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' |
| 1690 | + fi |
| 1691 | + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 1692 | + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 1693 | + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 1694 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1695 | + else |
| 1696 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1697 | + fi |
| 1698 | + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1699 | + else |
| 1700 | + case $cc_basename in |
| 1701 | + xlc*) |
| 1702 | + output_verbose_link_cmd='echo' |
| 1703 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 1704 | + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 1705 | + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 1706 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1707 | + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1708 | + ;; |
| 1709 | + *) |
| 1710 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1711 | + ;; |
| 1712 | + esac |
| 1713 | + fi |
| 1714 | + ;; |
| 1715 | |
| 1716 | dgux*) |
| 1717 | case $cc_basename in |
| 1718 | - ec++) |
| 1719 | + ec++*) |
| 1720 | # FIXME: insert proper C++ library support |
| 1721 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1722 | ;; |
| 1723 | - ghcx) |
| 1724 | + ghcx*) |
| 1725 | # Green Hills C++ Compiler |
| 1726 | # FIXME: insert proper C++ library support |
| 1727 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1728 | @@ -8917,14 +9054,14 @@ |
| 1729 | ;; |
| 1730 | esac |
| 1731 | ;; |
| 1732 | - freebsd[12]*) |
| 1733 | + freebsd[[12]]*) |
| 1734 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 1735 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1736 | ;; |
| 1737 | freebsd-elf*) |
| 1738 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 1739 | ;; |
| 1740 | - freebsd* | kfreebsd*-gnu) |
| 1741 | + freebsd* | dragonfly*) |
| 1742 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 1743 | # conventions |
| 1744 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 1745 | @@ -8941,12 +9078,12 @@ |
| 1746 | # location of the library. |
| 1747 | |
| 1748 | case $cc_basename in |
| 1749 | - CC) |
| 1750 | + CC*) |
| 1751 | # FIXME: insert proper C++ library support |
| 1752 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1753 | ;; |
| 1754 | - aCC) |
| 1755 | - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 1756 | + aCC*) |
| 1757 | + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 1758 | # Commands to make compiler produce verbose output that lists |
| 1759 | # what "hidden" libraries, object files and flags are used when |
| 1760 | # linking a shared library. |
| 1761 | @@ -8955,11 +9092,11 @@ |
| 1762 | # explicitly linking system object files so we need to strip them |
| 1763 | # from the output so that they don't get included in the library |
| 1764 | # dependencies. |
| 1765 | - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 1766 | + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 1767 | ;; |
| 1768 | *) |
| 1769 | if test "$GXX" = yes; then |
| 1770 | - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 1771 | + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 1772 | else |
| 1773 | # FIXME: insert proper C++ library support |
| 1774 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1775 | @@ -8969,34 +9106,23 @@ |
| 1776 | ;; |
| 1777 | hpux10*|hpux11*) |
| 1778 | if test $with_gnu_ld = no; then |
| 1779 | - case "$host_cpu" in |
| 1780 | - hppa*64*) |
| 1781 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 1782 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 1783 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 1784 | + |
| 1785 | + case $host_cpu in |
| 1786 | + hppa*64*|ia64*) |
| 1787 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 1788 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 1789 | - ;; |
| 1790 | - ia64*) |
| 1791 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 1792 | ;; |
| 1793 | *) |
| 1794 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 1795 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 1796 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 1797 | ;; |
| 1798 | esac |
| 1799 | fi |
| 1800 | - case "$host_cpu" in |
| 1801 | - hppa*64*) |
| 1802 | + case $host_cpu in |
| 1803 | + hppa*64*|ia64*) |
| 1804 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 1805 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 1806 | ;; |
| 1807 | - ia64*) |
| 1808 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 1809 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 1810 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 1811 | - # but as the default |
| 1812 | - # location of the library. |
| 1813 | - ;; |
| 1814 | *) |
| 1815 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 1816 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 1817 | @@ -9006,17 +9132,20 @@ |
| 1818 | esac |
| 1819 | |
| 1820 | case $cc_basename in |
| 1821 | - CC) |
| 1822 | + CC*) |
| 1823 | # FIXME: insert proper C++ library support |
| 1824 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1825 | ;; |
| 1826 | - aCC) |
| 1827 | - case "$host_cpu" in |
| 1828 | - hppa*64*|ia64*) |
| 1829 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 1830 | + aCC*) |
| 1831 | + case $host_cpu in |
| 1832 | + hppa*64*) |
| 1833 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 1834 | + ;; |
| 1835 | + ia64*) |
| 1836 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 1837 | ;; |
| 1838 | *) |
| 1839 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
| 1840 | + _LT_AC_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' |
| 1841 | ;; |
| 1842 | esac |
| 1843 | # Commands to make compiler produce verbose output that lists |
| 1844 | @@ -9032,12 +9161,15 @@ |
| 1845 | *) |
| 1846 | if test "$GXX" = yes; then |
| 1847 | if test $with_gnu_ld = no; then |
| 1848 | - case "$host_cpu" in |
| 1849 | - ia64*|hppa*64*) |
| 1850 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 1851 | + case $host_cpu in |
| 1852 | + hppa*64*) |
| 1853 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 1854 | + ;; |
| 1855 | + ia64*) |
| 1856 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 1857 | ;; |
| 1858 | *) |
| 1859 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
| 1860 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 1861 | ;; |
| 1862 | esac |
| 1863 | fi |
| 1864 | @@ -9048,11 +9180,25 @@ |
| 1865 | ;; |
| 1866 | esac |
| 1867 | ;; |
| 1868 | + interix3*) |
| 1869 | + _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 1870 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 1871 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 1872 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 1873 | + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 1874 | + # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 1875 | + # default) and relocated if they conflict, which is a slow very memory |
| 1876 | + # consuming and fragmenting process. To avoid this, we pick a random, |
| 1877 | + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 1878 | + # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 1879 | + _LT_AC_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' |
| 1880 | + _LT_AC_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' |
| 1881 | + ;; |
| 1882 | irix5* | irix6*) |
| 1883 | case $cc_basename in |
| 1884 | - CC) |
| 1885 | + CC*) |
| 1886 | # SGI C++ |
| 1887 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 1888 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 1889 | |
| 1890 | # Archives containing C++ object files must be created using |
| 1891 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 1892 | @@ -9063,9 +9209,9 @@ |
| 1893 | *) |
| 1894 | if test "$GXX" = yes; then |
| 1895 | if test "$with_gnu_ld" = no; then |
| 1896 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 1897 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 1898 | else |
| 1899 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 1900 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 1901 | fi |
| 1902 | fi |
| 1903 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 1904 | @@ -9074,16 +9220,16 @@ |
| 1905 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 1906 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 1907 | ;; |
| 1908 | - linux*) |
| 1909 | + linux* | k*bsd*-gnu) |
| 1910 | case $cc_basename in |
| 1911 | - KCC) |
| 1912 | + KCC*) |
| 1913 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 1914 | |
| 1915 | # KCC will only create a shared library if the output file |
| 1916 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 1917 | # to its proper name (with version) after linking. |
| 1918 | - _LT_AC_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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
| 1919 | - _LT_AC_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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 1920 | + _LT_AC_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' |
| 1921 | + _LT_AC_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' |
| 1922 | # Commands to make compiler produce verbose output that lists |
| 1923 | # what "hidden" libraries, object files and flags are used when |
| 1924 | # linking a shared library. |
| 1925 | @@ -9101,20 +9247,44 @@ |
| 1926 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 1927 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 1928 | ;; |
| 1929 | - icpc) |
| 1930 | + icpc*) |
| 1931 | # Intel C++ |
| 1932 | with_gnu_ld=yes |
| 1933 | + # version 8.0 and above of icpc choke on multiply defined symbols |
| 1934 | + # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 1935 | + # earlier do not add the objects themselves. |
| 1936 | + case `$CC -V 2>&1` in |
| 1937 | + *"Version 7."*) |
| 1938 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 1939 | + _LT_AC_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' |
| 1940 | + ;; |
| 1941 | + *) # Version 8.0 or newer |
| 1942 | + tmp_idyn= |
| 1943 | + case $host_cpu in |
| 1944 | + ia64*) tmp_idyn=' -i_dynamic';; |
| 1945 | + esac |
| 1946 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 1947 | + _LT_AC_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' |
| 1948 | + ;; |
| 1949 | + esac |
| 1950 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 1951 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
| 1952 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 1953 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 1954 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 1955 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 1956 | ;; |
| 1957 | - cxx) |
| 1958 | + pgCC*) |
| 1959 | + # Portland Group C++ compiler |
| 1960 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 1961 | + _LT_AC_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' |
| 1962 | + |
| 1963 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 1964 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 1965 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 1966 | + ;; |
| 1967 | + cxx*) |
| 1968 | # Compaq C++ |
| 1969 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
| 1970 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 1971 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 1972 | + _LT_AC_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' |
| 1973 | |
| 1974 | runpath_var=LD_RUN_PATH |
| 1975 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 1976 | @@ -9142,7 +9312,7 @@ |
| 1977 | ;; |
| 1978 | mvs*) |
| 1979 | case $cc_basename in |
| 1980 | - cxx) |
| 1981 | + cxx*) |
| 1982 | # FIXME: insert proper C++ library support |
| 1983 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1984 | ;; |
| 1985 | @@ -9152,7 +9322,7 @@ |
| 1986 | ;; |
| 1987 | esac |
| 1988 | ;; |
| 1989 | - netbsd*) |
| 1990 | + netbsd* | netbsdelf*-gnu) |
| 1991 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 1992 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 1993 | wlarc= |
| 1994 | @@ -9163,15 +9333,31 @@ |
| 1995 | # Workaround some broken pre-1.5 toolchains |
| 1996 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 1997 | ;; |
| 1998 | + openbsd2*) |
| 1999 | + # C++ shared libraries are fairly broken |
| 2000 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2001 | + ;; |
| 2002 | + openbsd*) |
| 2003 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 2004 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 2005 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 2006 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 2007 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 2008 | + _LT_AC_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' |
| 2009 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 2010 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 2011 | + fi |
| 2012 | + output_verbose_link_cmd='echo' |
| 2013 | + ;; |
| 2014 | osf3*) |
| 2015 | case $cc_basename in |
| 2016 | - KCC) |
| 2017 | + KCC*) |
| 2018 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 2019 | |
| 2020 | # KCC will only create a shared library if the output file |
| 2021 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 2022 | # to its proper name (with version) after linking. |
| 2023 | - _LT_AC_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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
| 2024 | + _LT_AC_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' |
| 2025 | |
| 2026 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 2027 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 2028 | @@ -9181,14 +9367,14 @@ |
| 2029 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 2030 | |
| 2031 | ;; |
| 2032 | - RCC) |
| 2033 | + RCC*) |
| 2034 | # Rational C++ 2.4.1 |
| 2035 | # FIXME: insert proper C++ library support |
| 2036 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2037 | ;; |
| 2038 | - cxx) |
| 2039 | + cxx*) |
| 2040 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 2041 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 2042 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 2043 | |
| 2044 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 2045 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 2046 | @@ -9206,7 +9392,7 @@ |
| 2047 | *) |
| 2048 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 2049 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 2050 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 2051 | + _LT_AC_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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 2052 | |
| 2053 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 2054 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 2055 | @@ -9225,13 +9411,13 @@ |
| 2056 | ;; |
| 2057 | osf4* | osf5*) |
| 2058 | case $cc_basename in |
| 2059 | - KCC) |
| 2060 | + KCC*) |
| 2061 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 2062 | |
| 2063 | # KCC will only create a shared library if the output file |
| 2064 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 2065 | # to its proper name (with version) after linking. |
| 2066 | - _LT_AC_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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
| 2067 | + _LT_AC_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' |
| 2068 | |
| 2069 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 2070 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 2071 | @@ -9240,17 +9426,17 @@ |
| 2072 | # the KAI C++ compiler. |
| 2073 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
| 2074 | ;; |
| 2075 | - RCC) |
| 2076 | + RCC*) |
| 2077 | # Rational C++ 2.4.1 |
| 2078 | # FIXME: insert proper C++ library support |
| 2079 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2080 | ;; |
| 2081 | - cxx) |
| 2082 | + cxx*) |
| 2083 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 2084 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 2085 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 2086 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 2087 | echo "-hidden">> $lib.exp~ |
| 2088 | - $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
| 2089 | + $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~ |
| 2090 | $rm $lib.exp' |
| 2091 | |
| 2092 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 2093 | @@ -9269,7 +9455,7 @@ |
| 2094 | *) |
| 2095 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 2096 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 2097 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 2098 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 2099 | |
| 2100 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 2101 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 2102 | @@ -9290,27 +9476,14 @@ |
| 2103 | # FIXME: insert proper C++ library support |
| 2104 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2105 | ;; |
| 2106 | - sco*) |
| 2107 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 2108 | - case $cc_basename in |
| 2109 | - CC) |
| 2110 | - # FIXME: insert proper C++ library support |
| 2111 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2112 | - ;; |
| 2113 | - *) |
| 2114 | - # FIXME: insert proper C++ library support |
| 2115 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2116 | - ;; |
| 2117 | - esac |
| 2118 | - ;; |
| 2119 | sunos4*) |
| 2120 | case $cc_basename in |
| 2121 | - CC) |
| 2122 | + CC*) |
| 2123 | # Sun C++ 4.x |
| 2124 | # FIXME: insert proper C++ library support |
| 2125 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2126 | ;; |
| 2127 | - lcc) |
| 2128 | + lcc*) |
| 2129 | # Lucid |
| 2130 | # FIXME: insert proper C++ library support |
| 2131 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2132 | @@ -9323,36 +9496,33 @@ |
| 2133 | ;; |
| 2134 | solaris*) |
| 2135 | case $cc_basename in |
| 2136 | - CC) |
| 2137 | + CC*) |
| 2138 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 2139 | + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes |
| 2140 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 2141 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
| 2142 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 2143 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 2144 | - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
| 2145 | + $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' |
| 2146 | |
| 2147 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 2148 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 2149 | case $host_os in |
| 2150 | - solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 2151 | + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 2152 | *) |
| 2153 | # The C++ compiler is used as linker so we must use $wl |
| 2154 | # flag to pass the commands to the underlying system |
| 2155 | - # linker. |
| 2156 | + # linker. We must also pass each convience library through |
| 2157 | + # to the system linker between allextract/defaultextract. |
| 2158 | + # The C++ compiler will combine linker options so we |
| 2159 | + # cannot just pass the convience library names through |
| 2160 | + # without $wl. |
| 2161 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 2162 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 2163 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
| 2164 | ;; |
| 2165 | esac |
| 2166 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 2167 | |
| 2168 | - # Commands to make compiler produce verbose output that lists |
| 2169 | - # what "hidden" libraries, object files and flags are used when |
| 2170 | - # linking a shared library. |
| 2171 | - # |
| 2172 | - # There doesn't appear to be a way to prevent this compiler from |
| 2173 | - # explicitly linking system object files so we need to strip them |
| 2174 | - # from the output so that they don't get included in the library |
| 2175 | - # dependencies. |
| 2176 | - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 2177 | + output_verbose_link_cmd='echo' |
| 2178 | |
| 2179 | # Archives containing C++ object files must be created using |
| 2180 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 2181 | @@ -9360,9 +9530,9 @@ |
| 2182 | # in the archive. |
| 2183 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 2184 | ;; |
| 2185 | - gcx) |
| 2186 | + gcx*) |
| 2187 | # Green Hills C++ Compiler |
| 2188 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
| 2189 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 2190 | |
| 2191 | # The C++ compiler must be used to create the archive. |
| 2192 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 2193 | @@ -9372,9 +9542,9 @@ |
| 2194 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 2195 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
| 2196 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 2197 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
| 2198 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 2199 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 2200 | - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
| 2201 | + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 2202 | |
| 2203 | # Commands to make compiler produce verbose output that lists |
| 2204 | # what "hidden" libraries, object files and flags are used when |
| 2205 | @@ -9383,9 +9553,9 @@ |
| 2206 | else |
| 2207 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 2208 | # platform. |
| 2209 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
| 2210 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 2211 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 2212 | - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
| 2213 | + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 2214 | |
| 2215 | # Commands to make compiler produce verbose output that lists |
| 2216 | # what "hidden" libraries, object files and flags are used when |
| 2217 | @@ -9398,12 +9568,63 @@ |
| 2218 | ;; |
| 2219 | esac |
| 2220 | ;; |
| 2221 | - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
| 2222 | + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
| 2223 | + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 2224 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 2225 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 2226 | + runpath_var='LD_RUN_PATH' |
| 2227 | + |
| 2228 | + case $cc_basename in |
| 2229 | + CC*) |
| 2230 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2231 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2232 | + ;; |
| 2233 | + *) |
| 2234 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2235 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2236 | + ;; |
| 2237 | + esac |
| 2238 | + ;; |
| 2239 | + sysv5* | sco3.2v5* | sco5v6*) |
| 2240 | + # Note: We can NOT use -z defs as we might desire, because we do not |
| 2241 | + # link with -lc, and that would cause any symbols used from libc to |
| 2242 | + # always be unresolved, which means just about no library would |
| 2243 | + # ever link correctly. If we're not using GNU ld we use -z text |
| 2244 | + # though, which does catch some bad symbols but isn't as heavy-handed |
| 2245 | + # as -z defs. |
| 2246 | + # For security reasons, it is highly recommended that you always |
| 2247 | + # use absolute paths for naming shared libraries, and exclude the |
| 2248 | + # DT_RUNPATH tag from executables and libraries. But doing so |
| 2249 | + # requires that you compile everything twice, which is a pain. |
| 2250 | + # So that behaviour is only enabled if SCOABSPATH is set to a |
| 2251 | + # non-empty value in the environment. Most likely only useful for |
| 2252 | + # creating official distributions of packages. |
| 2253 | + # This is a hack until libtool officially supports absolute path |
| 2254 | + # names for shared libraries. |
| 2255 | + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 2256 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 2257 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 2258 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 2259 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 2260 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 2261 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 2262 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 2263 | + runpath_var='LD_RUN_PATH' |
| 2264 | + |
| 2265 | + case $cc_basename in |
| 2266 | + CC*) |
| 2267 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2268 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2269 | + ;; |
| 2270 | + *) |
| 2271 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2272 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2273 | + ;; |
| 2274 | + esac |
| 2275 | ;; |
| 2276 | tandem*) |
| 2277 | case $cc_basename in |
| 2278 | - NCC) |
| 2279 | + NCC*) |
| 2280 | # NonStop-UX NCC 3.20 |
| 2281 | # FIXME: insert proper C++ library support |
| 2282 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 2283 | @@ -9440,8 +9661,6 @@ |
| 2284 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 2285 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 2286 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 2287 | -AC_LIBTOOL_SYS_LIB_STRIP |
| 2288 | -AC_LIBTOOL_DLOPEN_SELF($1) |
| 2289 | |
| 2290 | AC_LIBTOOL_CONFIG($1) |
| 2291 | |
| 2292 | @@ -9459,7 +9678,7 @@ |
| 2293 | ])# AC_LIBTOOL_LANG_CXX_CONFIG |
| 2294 | |
| 2295 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
| 2296 | -# ------------------------ |
| 2297 | +# ------------------------------------ |
| 2298 | # Figure out "hidden" library dependencies from verbose |
| 2299 | # compiler output when linking a shared library. |
| 2300 | # Parse the compiler output and extract the necessary |
| 2301 | @@ -9513,7 +9732,7 @@ |
| 2302 | # The `*' in the case matches for architectures that use `case' in |
| 2303 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 2304 | # eval without this substitution. |
| 2305 | - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 2306 | + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
| 2307 | |
| 2308 | for p in `eval $output_verbose_link_cmd`; do |
| 2309 | case $p in |
| 2310 | @@ -9553,7 +9772,7 @@ |
| 2311 | fi |
| 2312 | ;; |
| 2313 | |
| 2314 | - *.$objext|*.$libext) |
| 2315 | + *.$objext) |
| 2316 | # This assumes that the test object file only shows up |
| 2317 | # once in the compiler output. |
| 2318 | if test "$p" = "conftest.$objext"; then |
| 2319 | @@ -9589,13 +9808,37 @@ |
| 2320 | |
| 2321 | $rm -f confest.$objext |
| 2322 | |
| 2323 | +# PORTME: override above test on systems where it is broken |
| 2324 | +ifelse([$1],[CXX], |
| 2325 | +[case $host_os in |
| 2326 | +interix3*) |
| 2327 | + # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 2328 | + # hack all around it, let's just trust "g++" to DTRT. |
| 2329 | + _LT_AC_TAGVAR(predep_objects,$1)= |
| 2330 | + _LT_AC_TAGVAR(postdep_objects,$1)= |
| 2331 | + _LT_AC_TAGVAR(postdeps,$1)= |
| 2332 | + ;; |
| 2333 | + |
| 2334 | +solaris*) |
| 2335 | + case $cc_basename in |
| 2336 | + CC*) |
| 2337 | + # Adding this requires a known-good setup of shared libraries for |
| 2338 | + # Sun compiler versions before 5.6, else PIC objects from an old |
| 2339 | + # archive will be linked into the output, leading to subtle bugs. |
| 2340 | + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' |
| 2341 | + ;; |
| 2342 | + esac |
| 2343 | + ;; |
| 2344 | +esac |
| 2345 | +]) |
| 2346 | + |
| 2347 | case " $_LT_AC_TAGVAR(postdeps, $1) " in |
| 2348 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
| 2349 | esac |
| 2350 | ])# AC_LIBTOOL_POSTDEP_PREDEP |
| 2351 | |
| 2352 | # AC_LIBTOOL_LANG_F77_CONFIG |
| 2353 | -# ------------------------ |
| 2354 | +# -------------------------- |
| 2355 | # Ensure that the configuration vars for the C compiler are |
| 2356 | # suitably defined. Those variables are subsequently used by |
| 2357 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 2358 | @@ -9639,12 +9882,16 @@ |
| 2359 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 2360 | _LT_AC_SYS_COMPILER |
| 2361 | |
| 2362 | +# save warnings/boilerplate of simple test code |
| 2363 | +_LT_COMPILER_BOILERPLATE |
| 2364 | +_LT_LINKER_BOILERPLATE |
| 2365 | + |
| 2366 | # Allow CC to be a program name with arguments. |
| 2367 | lt_save_CC="$CC" |
| 2368 | CC=${F77-"f77"} |
| 2369 | compiler=$CC |
| 2370 | _LT_AC_TAGVAR(compiler, $1)=$CC |
| 2371 | -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 2372 | +_LT_CC_BASENAME([$compiler]) |
| 2373 | |
| 2374 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 2375 | AC_MSG_RESULT([$can_build_shared]) |
| 2376 | @@ -9654,7 +9901,7 @@ |
| 2377 | |
| 2378 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 2379 | # are all built from PIC. |
| 2380 | -case "$host_os" in |
| 2381 | +case $host_os in |
| 2382 | aix3*) |
| 2383 | test "$enable_shared" = yes && enable_static=no |
| 2384 | if test -n "$RANLIB"; then |
| 2385 | @@ -9662,8 +9909,10 @@ |
| 2386 | postinstall_cmds='$RANLIB $lib' |
| 2387 | fi |
| 2388 | ;; |
| 2389 | -aix4*) |
| 2390 | - test "$enable_shared" = yes && enable_static=no |
| 2391 | +aix4* | aix5*) |
| 2392 | + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 2393 | + test "$enable_shared" = yes && enable_static=no |
| 2394 | + fi |
| 2395 | ;; |
| 2396 | esac |
| 2397 | AC_MSG_RESULT([$enable_shared]) |
| 2398 | @@ -9673,8 +9922,6 @@ |
| 2399 | test "$enable_shared" = yes || enable_static=yes |
| 2400 | AC_MSG_RESULT([$enable_static]) |
| 2401 | |
| 2402 | -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 2403 | - |
| 2404 | _LT_AC_TAGVAR(GCC, $1)="$G77" |
| 2405 | _LT_AC_TAGVAR(LD, $1)="$LD" |
| 2406 | |
| 2407 | @@ -9684,8 +9931,6 @@ |
| 2408 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 2409 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 2410 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 2411 | -AC_LIBTOOL_SYS_LIB_STRIP |
| 2412 | - |
| 2413 | |
| 2414 | AC_LIBTOOL_CONFIG($1) |
| 2415 | |
| 2416 | @@ -9714,20 +9959,27 @@ |
| 2417 | lt_simple_compile_test_code="class foo {}\n" |
| 2418 | |
| 2419 | # Code to be used in simple link tests |
| 2420 | -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
| 2421 | +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' |
| 2422 | |
| 2423 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 2424 | _LT_AC_SYS_COMPILER |
| 2425 | |
| 2426 | +# save warnings/boilerplate of simple test code |
| 2427 | +_LT_COMPILER_BOILERPLATE |
| 2428 | +_LT_LINKER_BOILERPLATE |
| 2429 | + |
| 2430 | # Allow CC to be a program name with arguments. |
| 2431 | lt_save_CC="$CC" |
| 2432 | CC=${GCJ-"gcj"} |
| 2433 | compiler=$CC |
| 2434 | _LT_AC_TAGVAR(compiler, $1)=$CC |
| 2435 | +_LT_CC_BASENAME([$compiler]) |
| 2436 | |
| 2437 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 2438 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 2439 | |
| 2440 | +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 2441 | + |
| 2442 | ## CAVEAT EMPTOR: |
| 2443 | ## There is no encapsulation within the following macros, do not change |
| 2444 | ## the running order or otherwise move them around unless you know exactly |
| 2445 | @@ -9739,8 +9991,6 @@ |
| 2446 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 2447 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 2448 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 2449 | -AC_LIBTOOL_SYS_LIB_STRIP |
| 2450 | -AC_LIBTOOL_DLOPEN_SELF($1) |
| 2451 | |
| 2452 | AC_LIBTOOL_CONFIG($1) |
| 2453 | |
| 2454 | @@ -9750,7 +10000,7 @@ |
| 2455 | |
| 2456 | |
| 2457 | # AC_LIBTOOL_LANG_RC_CONFIG |
| 2458 | -# -------------------------- |
| 2459 | +# ------------------------- |
| 2460 | # Ensure that the configuration vars for the Windows resource compiler are |
| 2461 | # suitably defined. Those variables are subsequently used by |
| 2462 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 2463 | @@ -9774,11 +10024,16 @@ |
| 2464 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 2465 | _LT_AC_SYS_COMPILER |
| 2466 | |
| 2467 | +# save warnings/boilerplate of simple test code |
| 2468 | +_LT_COMPILER_BOILERPLATE |
| 2469 | +_LT_LINKER_BOILERPLATE |
| 2470 | + |
| 2471 | # Allow CC to be a program name with arguments. |
| 2472 | lt_save_CC="$CC" |
| 2473 | CC=${RC-"windres"} |
| 2474 | compiler=$CC |
| 2475 | _LT_AC_TAGVAR(compiler, $1)=$CC |
| 2476 | +_LT_CC_BASENAME([$compiler]) |
| 2477 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 2478 | |
| 2479 | AC_LIBTOOL_CONFIG($1) |
| 2480 | @@ -9804,11 +10059,12 @@ |
| 2481 | # without removal of \ escapes. |
| 2482 | if test -n "${ZSH_VERSION+set}" ; then |
| 2483 | setopt NO_GLOB_SUBST |
| 2484 | - fi |
| 2485 | + fi |
| 2486 | # Now quote all the things that may contain metacharacters while being |
| 2487 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 2488 | # variables and quote the copies for generation of the libtool script. |
| 2489 | - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 2490 | + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 2491 | + SED SHELL STRIP \ |
| 2492 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 2493 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 2494 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 2495 | @@ -9858,7 +10114,7 @@ |
| 2496 | _LT_AC_TAGVAR(archive_cmds, $1) | \ |
| 2497 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
| 2498 | _LT_AC_TAGVAR(module_cmds, $1) | \ |
| 2499 | - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
| 2500 | + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
| 2501 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
| 2502 | _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
| 2503 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 2504 | @@ -9924,11 +10180,11 @@ |
| 2505 | SED=$lt_SED |
| 2506 | |
| 2507 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 2508 | -Xsed="$SED -e s/^X//" |
| 2509 | +Xsed="$SED -e 1s/^X//" |
| 2510 | |
| 2511 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 2512 | # if CDPATH is set. |
| 2513 | -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 2514 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 2515 | |
| 2516 | # The names of the tagged configurations supported by this script. |
| 2517 | available_tags= |
| 2518 | @@ -9959,6 +10215,12 @@ |
| 2519 | # The host system. |
| 2520 | host_alias=$host_alias |
| 2521 | host=$host |
| 2522 | +host_os=$host_os |
| 2523 | + |
| 2524 | +# The build system. |
| 2525 | +build_alias=$build_alias |
| 2526 | +build=$build |
| 2527 | +build_os=$build_os |
| 2528 | |
| 2529 | # An echo program that does not interpret backslashes. |
| 2530 | echo=$lt_echo |
| 2531 | @@ -9970,6 +10232,9 @@ |
| 2532 | # A C compiler. |
| 2533 | LTCC=$lt_LTCC |
| 2534 | |
| 2535 | +# LTCC compiler flags. |
| 2536 | +LTCFLAGS=$lt_LTCFLAGS |
| 2537 | + |
| 2538 | # A language-specific compiler. |
| 2539 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
| 2540 | |
| 2541 | @@ -9989,7 +10254,7 @@ |
| 2542 | NM=$lt_NM |
| 2543 | |
| 2544 | # A symbol stripping program |
| 2545 | -STRIP=$STRIP |
| 2546 | +STRIP=$lt_STRIP |
| 2547 | |
| 2548 | # Used to examine libraries when file_magic_cmd begins "file" |
| 2549 | MAGIC_CMD=$MAGIC_CMD |
| 2550 | @@ -10020,7 +10285,7 @@ |
| 2551 | libext="$libext" |
| 2552 | |
| 2553 | # Shared library suffix (normally ".so"). |
| 2554 | -shrext='$shrext' |
| 2555 | +shrext_cmds='$shrext_cmds' |
| 2556 | |
| 2557 | # Executable file suffix (normally ""). |
| 2558 | exeext="$exeext" |
| 2559 | @@ -10035,7 +10300,7 @@ |
| 2560 | # Does compiler simultaneously support -c and -o options? |
| 2561 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) |
| 2562 | |
| 2563 | -# Must we lock files when doing compilation ? |
| 2564 | +# Must we lock files when doing compilation? |
| 2565 | need_locks=$lt_need_locks |
| 2566 | |
| 2567 | # Do we need the lib prefix for modules? |
| 2568 | @@ -10264,7 +10529,10 @@ |
| 2569 | # If there is no Makefile yet, we rely on a make rule to execute |
| 2570 | # `config.status --recheck' to rerun these tests and create the |
| 2571 | # libtool script then. |
| 2572 | - test -f Makefile && make "$ltmain" |
| 2573 | + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 2574 | + if test -f "$ltmain_in"; then |
| 2575 | + test -f Makefile && make "$ltmain" |
| 2576 | + fi |
| 2577 | fi |
| 2578 | ])# AC_LIBTOOL_CONFIG |
| 2579 | |
| 2580 | @@ -10306,9 +10574,6 @@ |
| 2581 | # Regexp to match symbols that can be accessed directly from C. |
| 2582 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
| 2583 | |
| 2584 | -# Transform the above into a raw symbol and a C symbol. |
| 2585 | -symxfrm='\1 \2\3 \3' |
| 2586 | - |
| 2587 | # Transform an extracted symbol line into a proper C declaration |
| 2588 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 2589 | |
| 2590 | @@ -10330,14 +10595,30 @@ |
| 2591 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 2592 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 2593 | ;; |
| 2594 | +linux* | k*bsd*-gnu) |
| 2595 | + if test "$host_cpu" = ia64; then |
| 2596 | + symcode='[[ABCDGIRSTW]]' |
| 2597 | + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 2598 | + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 2599 | + fi |
| 2600 | + ;; |
| 2601 | irix* | nonstopux*) |
| 2602 | symcode='[[BCDEGRST]]' |
| 2603 | ;; |
| 2604 | osf*) |
| 2605 | symcode='[[BCDEGQRST]]' |
| 2606 | ;; |
| 2607 | -solaris* | sysv5*) |
| 2608 | - symcode='[[BDT]]' |
| 2609 | +solaris*) |
| 2610 | + symcode='[[BDRT]]' |
| 2611 | + ;; |
| 2612 | +sco3.2v5*) |
| 2613 | + symcode='[[DT]]' |
| 2614 | + ;; |
| 2615 | +sysv4.2uw2*) |
| 2616 | + symcode='[[DT]]' |
| 2617 | + ;; |
| 2618 | +sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 2619 | + symcode='[[ABDT]]' |
| 2620 | ;; |
| 2621 | sysv4) |
| 2622 | symcode='[[DFNSTU]]' |
| 2623 | @@ -10355,14 +10636,17 @@ |
| 2624 | # If we're using GNU nm, then use its standard symbol codes. |
| 2625 | case `$NM -V 2>&1` in |
| 2626 | *GNU* | *'with BFD'*) |
| 2627 | - symcode='[[ABCDGISTW]]' ;; |
| 2628 | + symcode='[[ABCDGIRSTW]]' ;; |
| 2629 | esac |
| 2630 | |
| 2631 | # Try without a prefix undercore, then with it. |
| 2632 | for ac_symprfx in "" "_"; do |
| 2633 | |
| 2634 | + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 2635 | + symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 2636 | + |
| 2637 | # Write the raw and C identifiers. |
| 2638 | - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 2639 | + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 2640 | |
| 2641 | # Check to see that the pipe works correctly. |
| 2642 | pipe_works=no |
| 2643 | @@ -10518,6 +10802,10 @@ |
| 2644 | # DJGPP does not support shared libraries at all |
| 2645 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 2646 | ;; |
| 2647 | + interix3*) |
| 2648 | + # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 2649 | + # Instead, we relocate shared libraries at runtime. |
| 2650 | + ;; |
| 2651 | sysv4*MP*) |
| 2652 | if test -d /usr/nec; then |
| 2653 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 2654 | @@ -10526,7 +10814,7 @@ |
| 2655 | hpux*) |
| 2656 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 2657 | # not for PA HP-UX. |
| 2658 | - case "$host_cpu" in |
| 2659 | + case $host_cpu in |
| 2660 | hppa*64*|ia64*) |
| 2661 | ;; |
| 2662 | *) |
| 2663 | @@ -10551,18 +10839,28 @@ |
| 2664 | ;; |
| 2665 | chorus*) |
| 2666 | case $cc_basename in |
| 2667 | - cxch68) |
| 2668 | + cxch68*) |
| 2669 | # Green Hills C++ Compiler |
| 2670 | # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 2671 | ;; |
| 2672 | esac |
| 2673 | ;; |
| 2674 | + darwin*) |
| 2675 | + # PIC is the default on this platform |
| 2676 | + # Common symbols not allowed in MH_DYLIB files |
| 2677 | + case $cc_basename in |
| 2678 | + xlc*) |
| 2679 | + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 2680 | + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2681 | + ;; |
| 2682 | + esac |
| 2683 | + ;; |
| 2684 | dgux*) |
| 2685 | case $cc_basename in |
| 2686 | - ec++) |
| 2687 | + ec++*) |
| 2688 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 2689 | ;; |
| 2690 | - ghcx) |
| 2691 | + ghcx*) |
| 2692 | # Green Hills C++ Compiler |
| 2693 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 2694 | ;; |
| 2695 | @@ -10570,22 +10868,22 @@ |
| 2696 | ;; |
| 2697 | esac |
| 2698 | ;; |
| 2699 | - freebsd* | kfreebsd*-gnu) |
| 2700 | + freebsd* | dragonfly*) |
| 2701 | # FreeBSD uses GNU C++ |
| 2702 | ;; |
| 2703 | hpux9* | hpux10* | hpux11*) |
| 2704 | case $cc_basename in |
| 2705 | - CC) |
| 2706 | + CC*) |
| 2707 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2708 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 2709 | + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 2710 | if test "$host_cpu" != ia64; then |
| 2711 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 2712 | fi |
| 2713 | ;; |
| 2714 | - aCC) |
| 2715 | + aCC*) |
| 2716 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2717 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 2718 | - case "$host_cpu" in |
| 2719 | + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 2720 | + case $host_cpu in |
| 2721 | hppa*64*|ia64*) |
| 2722 | # +Z the default |
| 2723 | ;; |
| 2724 | @@ -10598,9 +10896,13 @@ |
| 2725 | ;; |
| 2726 | esac |
| 2727 | ;; |
| 2728 | + interix*) |
| 2729 | + # This is c89, which is MS Visual C++ (no shared libs) |
| 2730 | + # Anyone wants to do a port? |
| 2731 | + ;; |
| 2732 | irix5* | irix6* | nonstopux*) |
| 2733 | case $cc_basename in |
| 2734 | - CC) |
| 2735 | + CC*) |
| 2736 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2737 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 2738 | # CC pic flag -KPIC is the default. |
| 2739 | @@ -10609,20 +10911,26 @@ |
| 2740 | ;; |
| 2741 | esac |
| 2742 | ;; |
| 2743 | - linux*) |
| 2744 | + linux* | k*bsd*-gnu) |
| 2745 | case $cc_basename in |
| 2746 | - KCC) |
| 2747 | + KCC*) |
| 2748 | # KAI C++ Compiler |
| 2749 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 2750 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 2751 | ;; |
| 2752 | - icpc) |
| 2753 | + icpc* | ecpc*) |
| 2754 | # Intel C++ |
| 2755 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2756 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 2757 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 2758 | - ;; |
| 2759 | - cxx) |
| 2760 | + ;; |
| 2761 | + pgCC*) |
| 2762 | + # Portland Group C++ compiler. |
| 2763 | + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2764 | + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 2765 | + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2766 | + ;; |
| 2767 | + cxx*) |
| 2768 | # Compaq C++ |
| 2769 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 2770 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 2771 | @@ -10639,25 +10947,25 @@ |
| 2772 | ;; |
| 2773 | mvs*) |
| 2774 | case $cc_basename in |
| 2775 | - cxx) |
| 2776 | + cxx*) |
| 2777 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
| 2778 | ;; |
| 2779 | *) |
| 2780 | ;; |
| 2781 | esac |
| 2782 | ;; |
| 2783 | - netbsd*) |
| 2784 | + netbsd* | netbsdelf*-gnu) |
| 2785 | ;; |
| 2786 | osf3* | osf4* | osf5*) |
| 2787 | case $cc_basename in |
| 2788 | - KCC) |
| 2789 | + KCC*) |
| 2790 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 2791 | ;; |
| 2792 | - RCC) |
| 2793 | + RCC*) |
| 2794 | # Rational C++ 2.4.1 |
| 2795 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 2796 | ;; |
| 2797 | - cxx) |
| 2798 | + cxx*) |
| 2799 | # Digital/Compaq C++ |
| 2800 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2801 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 2802 | @@ -10671,24 +10979,15 @@ |
| 2803 | ;; |
| 2804 | psos*) |
| 2805 | ;; |
| 2806 | - sco*) |
| 2807 | - case $cc_basename in |
| 2808 | - CC) |
| 2809 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 2810 | - ;; |
| 2811 | - *) |
| 2812 | - ;; |
| 2813 | - esac |
| 2814 | - ;; |
| 2815 | solaris*) |
| 2816 | case $cc_basename in |
| 2817 | - CC) |
| 2818 | + CC*) |
| 2819 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 2820 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 2821 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2822 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 2823 | ;; |
| 2824 | - gcx) |
| 2825 | + gcx*) |
| 2826 | # Green Hills C++ Compiler |
| 2827 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 2828 | ;; |
| 2829 | @@ -10698,12 +10997,12 @@ |
| 2830 | ;; |
| 2831 | sunos4*) |
| 2832 | case $cc_basename in |
| 2833 | - CC) |
| 2834 | + CC*) |
| 2835 | # Sun C++ 4.x |
| 2836 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 2837 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2838 | ;; |
| 2839 | - lcc) |
| 2840 | + lcc*) |
| 2841 | # Lucid |
| 2842 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 2843 | ;; |
| 2844 | @@ -10713,7 +11012,7 @@ |
| 2845 | ;; |
| 2846 | tandem*) |
| 2847 | case $cc_basename in |
| 2848 | - NCC) |
| 2849 | + NCC*) |
| 2850 | # NonStop-UX NCC 3.20 |
| 2851 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 2852 | ;; |
| 2853 | @@ -10721,7 +11020,14 @@ |
| 2854 | ;; |
| 2855 | esac |
| 2856 | ;; |
| 2857 | - unixware*) |
| 2858 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 2859 | + case $cc_basename in |
| 2860 | + CC*) |
| 2861 | + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2862 | + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 2863 | + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2864 | + ;; |
| 2865 | + esac |
| 2866 | ;; |
| 2867 | vxworks*) |
| 2868 | ;; |
| 2869 | @@ -10768,6 +11074,11 @@ |
| 2870 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 2871 | ;; |
| 2872 | |
| 2873 | + interix3*) |
| 2874 | + # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 2875 | + # Instead, we relocate shared libraries at runtime. |
| 2876 | + ;; |
| 2877 | + |
| 2878 | msdosdjgpp*) |
| 2879 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 2880 | # on systems that don't support them. |
| 2881 | @@ -10784,7 +11095,7 @@ |
| 2882 | hpux*) |
| 2883 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 2884 | # not for PA HP-UX. |
| 2885 | - case "$host_cpu" in |
| 2886 | + case $host_cpu in |
| 2887 | hppa*64*|ia64*) |
| 2888 | # +Z the default |
| 2889 | ;; |
| 2890 | @@ -10810,6 +11121,16 @@ |
| 2891 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 2892 | fi |
| 2893 | ;; |
| 2894 | + darwin*) |
| 2895 | + # PIC is the default on this platform |
| 2896 | + # Common symbols not allowed in MH_DYLIB files |
| 2897 | + case $cc_basename in |
| 2898 | + xlc*) |
| 2899 | + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 2900 | + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2901 | + ;; |
| 2902 | + esac |
| 2903 | + ;; |
| 2904 | |
| 2905 | mingw* | pw32* | os2*) |
| 2906 | # This hack is so that the source file can tell whether it is being |
| 2907 | @@ -10821,7 +11142,7 @@ |
| 2908 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2909 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 2910 | # not for PA HP-UX. |
| 2911 | - case "$host_cpu" in |
| 2912 | + case $host_cpu in |
| 2913 | hppa*64*|ia64*) |
| 2914 | # +Z the default |
| 2915 | ;; |
| 2916 | @@ -10844,13 +11165,20 @@ |
| 2917 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2918 | ;; |
| 2919 | |
| 2920 | - linux*) |
| 2921 | - case $CC in |
| 2922 | + linux* | k*bsd*-gnu) |
| 2923 | + case $cc_basename in |
| 2924 | icc* | ecc*) |
| 2925 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2926 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 2927 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 2928 | ;; |
| 2929 | + pgcc* | pgf77* | pgf90* | pgf95*) |
| 2930 | + # Portland Group compilers (*not* the Pentium gcc compiler, |
| 2931 | + # which looks to be a dead project) |
| 2932 | + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2933 | + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 2934 | + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2935 | + ;; |
| 2936 | ccc*) |
| 2937 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2938 | # All Alpha code is PIC. |
| 2939 | @@ -10865,15 +11193,15 @@ |
| 2940 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 2941 | ;; |
| 2942 | |
| 2943 | - sco3.2v5*) |
| 2944 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' |
| 2945 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' |
| 2946 | - ;; |
| 2947 | - |
| 2948 | solaris*) |
| 2949 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2950 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 2951 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2952 | + case $cc_basename in |
| 2953 | + f77* | f90* | f95*) |
| 2954 | + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
| 2955 | + *) |
| 2956 | + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
| 2957 | + esac |
| 2958 | ;; |
| 2959 | |
| 2960 | sunos4*) |
| 2961 | @@ -10882,7 +11210,7 @@ |
| 2962 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2963 | ;; |
| 2964 | |
| 2965 | - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2966 | + sysv4 | sysv4.2uw2* | sysv4.3*) |
| 2967 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2968 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 2969 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2970 | @@ -10895,6 +11223,17 @@ |
| 2971 | fi |
| 2972 | ;; |
| 2973 | |
| 2974 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 2975 | + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2976 | + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 2977 | + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2978 | + ;; |
| 2979 | + |
| 2980 | + unicos*) |
| 2981 | + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 2982 | + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 2983 | + ;; |
| 2984 | + |
| 2985 | uts4*) |
| 2986 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 2987 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 2988 | @@ -10922,7 +11261,7 @@ |
| 2989 | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 2990 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
| 2991 | fi |
| 2992 | -case "$host_os" in |
| 2993 | +case $host_os in |
| 2994 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 2995 | *djgpp*) |
| 2996 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 2997 | @@ -10931,6 +11270,16 @@ |
| 2998 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
| 2999 | ;; |
| 3000 | esac |
| 3001 | + |
| 3002 | +# |
| 3003 | +# Check to make sure the static flag actually works. |
| 3004 | +# |
| 3005 | +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" |
| 3006 | +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
| 3007 | + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
| 3008 | + $lt_tmp_static_flag, |
| 3009 | + [], |
| 3010 | + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 3011 | ]) |
| 3012 | |
| 3013 | |
| 3014 | @@ -10955,7 +11304,10 @@ |
| 3015 | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
| 3016 | ;; |
| 3017 | cygwin* | mingw*) |
| 3018 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 3019 | + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 3020 | + ;; |
| 3021 | + linux* | k*bsd*-gnu) |
| 3022 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| 3023 | ;; |
| 3024 | *) |
| 3025 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 3026 | @@ -10981,7 +11333,7 @@ |
| 3027 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 3028 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 3029 | _LT_AC_TAGVAR(module_cmds, $1)= |
| 3030 | - _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 3031 | + _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 3032 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 3033 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 3034 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 3035 | @@ -10998,7 +11350,8 @@ |
| 3036 | # rely on this symbol name, it's probably fine to never include it in |
| 3037 | # preloaded symbol tables. |
| 3038 | extract_expsyms_cmds= |
| 3039 | - |
| 3040 | + # Just being paranoid about ensuring that cc_basename is set. |
| 3041 | + _LT_CC_BASENAME([$compiler]) |
| 3042 | case $host_os in |
| 3043 | cygwin* | mingw* | pw32*) |
| 3044 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 3045 | @@ -11008,6 +11361,10 @@ |
| 3046 | with_gnu_ld=no |
| 3047 | fi |
| 3048 | ;; |
| 3049 | + interix*) |
| 3050 | + # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 3051 | + with_gnu_ld=yes |
| 3052 | + ;; |
| 3053 | openbsd*) |
| 3054 | with_gnu_ld=no |
| 3055 | ;; |
| 3056 | @@ -11018,6 +11375,27 @@ |
| 3057 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 3058 | wlarc='${wl}' |
| 3059 | |
| 3060 | + # Set some defaults for GNU ld with shared library support. These |
| 3061 | + # are reset later if shared libraries are not supported. Putting them |
| 3062 | + # here allows them to be overridden if necessary. |
| 3063 | + runpath_var=LD_RUN_PATH |
| 3064 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 3065 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 3066 | + # ancient GNU ld didn't support --whole-archive et. al. |
| 3067 | + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 3068 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 3069 | + else |
| 3070 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 3071 | + fi |
| 3072 | + supports_anon_versioning=no |
| 3073 | + case `$LD -v 2>/dev/null` in |
| 3074 | + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 3075 | + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 3076 | + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 3077 | + *\ 2.11.*) ;; # other 2.11 versions |
| 3078 | + *) supports_anon_versioning=yes ;; |
| 3079 | + esac |
| 3080 | + |
| 3081 | # See if GNU ld supports shared libraries. |
| 3082 | case $host_os in |
| 3083 | aix3* | aix4* | aix5*) |
| 3084 | @@ -11055,7 +11433,7 @@ |
| 3085 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 3086 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 3087 | # support --undefined. This deserves some investigation. FIXME |
| 3088 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 3089 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3090 | else |
| 3091 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3092 | fi |
| 3093 | @@ -11065,13 +11443,13 @@ |
| 3094 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 3095 | # as there is no search path for DLLs. |
| 3096 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 3097 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no |
| 3098 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 3099 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 3100 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 3101 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 3102 | + _LT_AC_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' |
| 3103 | |
| 3104 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 3105 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 3106 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 3107 | # If the export-symbols file already is a .def file (1st line |
| 3108 | # is EXPORTS), use it as is; otherwise, prepend... |
| 3109 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 3110 | @@ -11080,23 +11458,70 @@ |
| 3111 | echo EXPORTS > $output_objdir/$soname.def; |
| 3112 | cat $export_symbols >> $output_objdir/$soname.def; |
| 3113 | fi~ |
| 3114 | - $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 3115 | + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 3116 | else |
| 3117 | - ld_shlibs=no |
| 3118 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3119 | fi |
| 3120 | ;; |
| 3121 | |
| 3122 | - netbsd*) |
| 3123 | + interix3*) |
| 3124 | + _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3125 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3126 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3127 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3128 | + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 3129 | + # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 3130 | + # default) and relocated if they conflict, which is a slow very memory |
| 3131 | + # consuming and fragmenting process. To avoid this, we pick a random, |
| 3132 | + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 3133 | + # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 3134 | + _LT_AC_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' |
| 3135 | + _LT_AC_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' |
| 3136 | + ;; |
| 3137 | + |
| 3138 | + linux* | k*bsd*-gnu) |
| 3139 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 3140 | + tmp_addflag= |
| 3141 | + case $cc_basename,$host_cpu in |
| 3142 | + pgcc*) # Portland Group C compiler |
| 3143 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 3144 | + tmp_addflag=' $pic_flag' |
| 3145 | + ;; |
| 3146 | + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 3147 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 3148 | + tmp_addflag=' $pic_flag -Mnomain' ;; |
| 3149 | + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 3150 | + tmp_addflag=' -i_dynamic' ;; |
| 3151 | + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 3152 | + tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 3153 | + ifc* | ifort*) # Intel Fortran compiler |
| 3154 | + tmp_addflag=' -nofor_main' ;; |
| 3155 | + esac |
| 3156 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3157 | + |
| 3158 | + if test $supports_anon_versioning = yes; then |
| 3159 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 3160 | + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 3161 | + $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 3162 | + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 3163 | + fi |
| 3164 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| 3165 | + else |
| 3166 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3167 | + fi |
| 3168 | + ;; |
| 3169 | + |
| 3170 | + netbsd* | netbsdelf*-gnu) |
| 3171 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3172 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 3173 | wlarc= |
| 3174 | else |
| 3175 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 3176 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3177 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3178 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3179 | fi |
| 3180 | ;; |
| 3181 | |
| 3182 | - solaris* | sysv5*) |
| 3183 | + solaris*) |
| 3184 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 3185 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3186 | cat <<EOF 1>&2 |
| 3187 | @@ -11110,13 +11535,40 @@ |
| 3188 | |
| 3189 | EOF |
| 3190 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 3191 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 3192 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3193 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3194 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3195 | else |
| 3196 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3197 | fi |
| 3198 | ;; |
| 3199 | |
| 3200 | + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 3201 | + case `$LD -v 2>&1` in |
| 3202 | + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
| 3203 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3204 | + cat <<_LT_EOF 1>&2 |
| 3205 | + |
| 3206 | +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 3207 | +*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 3208 | +*** is disabling shared libraries support. We urge you to upgrade GNU |
| 3209 | +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 3210 | +*** your PATH or compiler configuration so that the native linker is |
| 3211 | +*** used, and then restart. |
| 3212 | + |
| 3213 | +_LT_EOF |
| 3214 | + ;; |
| 3215 | + *) |
| 3216 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 3217 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 3218 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 3219 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 3220 | + else |
| 3221 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3222 | + fi |
| 3223 | + ;; |
| 3224 | + esac |
| 3225 | + ;; |
| 3226 | + |
| 3227 | sunos4*) |
| 3228 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 3229 | wlarc= |
| 3230 | @@ -11126,24 +11578,19 @@ |
| 3231 | |
| 3232 | *) |
| 3233 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 3234 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 3235 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3236 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3237 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3238 | else |
| 3239 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3240 | fi |
| 3241 | ;; |
| 3242 | esac |
| 3243 | |
| 3244 | - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
| 3245 | - runpath_var=LD_RUN_PATH |
| 3246 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 3247 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 3248 | - # ancient GNU ld didn't support --whole-archive et. al. |
| 3249 | - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 3250 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 3251 | - else |
| 3252 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 3253 | - fi |
| 3254 | + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then |
| 3255 | + runpath_var= |
| 3256 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 3257 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 3258 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 3259 | fi |
| 3260 | else |
| 3261 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 3262 | @@ -11155,7 +11602,7 @@ |
| 3263 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 3264 | # are no directories specified by -L. |
| 3265 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 3266 | - if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 3267 | + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 3268 | # Neither direct hardcoding nor static linking is supported with a |
| 3269 | # broken collect2. |
| 3270 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 3271 | @@ -11177,9 +11624,21 @@ |
| 3272 | else |
| 3273 | _LT_AC_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' |
| 3274 | fi |
| 3275 | + aix_use_runtimelinking=no |
| 3276 | + |
| 3277 | + # Test if we are trying to use run time linking or normal |
| 3278 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 3279 | + # need to do runtime linking. |
| 3280 | + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 3281 | + for ld_flag in $LDFLAGS; do |
| 3282 | + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 3283 | + aix_use_runtimelinking=yes |
| 3284 | + break |
| 3285 | + fi |
| 3286 | + done |
| 3287 | + ;; |
| 3288 | + esac |
| 3289 | |
| 3290 | - # KDE requires run time linking. Make it the default. |
| 3291 | - aix_use_runtimelinking=yes |
| 3292 | exp_sym_flag='-bexport' |
| 3293 | no_entry_flag='-bnoentry' |
| 3294 | fi |
| 3295 | @@ -11196,7 +11655,7 @@ |
| 3296 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3297 | |
| 3298 | if test "$GCC" = yes; then |
| 3299 | - case $host_os in aix4.[012]|aix4.[012].*) |
| 3300 | + case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 3301 | # We only want to do this on AIX 4.2 and lower, the check |
| 3302 | # below for broken collect2 doesn't work under 4.3+ |
| 3303 | collect2name=`${CC} -print-prog-name=collect2` |
| 3304 | @@ -11215,8 +11674,12 @@ |
| 3305 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 3306 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 3307 | fi |
| 3308 | + ;; |
| 3309 | esac |
| 3310 | shared_flag='-shared' |
| 3311 | + if test "$aix_use_runtimelinking" = yes; then |
| 3312 | + shared_flag="$shared_flag "'${wl}-G' |
| 3313 | + fi |
| 3314 | else |
| 3315 | # not using gcc |
| 3316 | if test "$host_cpu" = ia64; then |
| 3317 | @@ -11224,30 +11687,30 @@ |
| 3318 | # chokes on -Wl,-G. The following line is correct: |
| 3319 | shared_flag='-G' |
| 3320 | else |
| 3321 | - if test "$aix_use_runtimelinking" = yes; then |
| 3322 | - shared_flag='-qmkshrobj ${wl}-G' |
| 3323 | + if test "$aix_use_runtimelinking" = yes; then |
| 3324 | + shared_flag='${wl}-G' |
| 3325 | else |
| 3326 | - shared_flag='-qmkshrobj' |
| 3327 | - fi |
| 3328 | + shared_flag='${wl}-bM:SRE' |
| 3329 | + fi |
| 3330 | fi |
| 3331 | fi |
| 3332 | |
| 3333 | - # Let the compiler handle the export list. |
| 3334 | - _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 3335 | + # It seems that -bexpall does not export symbols beginning with |
| 3336 | + # underscore (_), so it is better to generate a list of symbols to export. |
| 3337 | + _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 3338 | if test "$aix_use_runtimelinking" = yes; then |
| 3339 | # Warning - without using the other runtime loading flags (-brtl), |
| 3340 | # -berok will link without error, but may produce a broken library. |
| 3341 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 3342 | # Determine the default libpath from the value encoded in an empty executable. |
| 3343 | - _LT_AC_SYS_LIBPATH_AIX |
| 3344 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 3345 | - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" |
| 3346 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 3347 | + _LT_AC_SYS_LIBPATH_AIX |
| 3348 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 3349 | + _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 3350 | else |
| 3351 | if test "$host_cpu" = ia64; then |
| 3352 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 3353 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 3354 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 3355 | + _LT_AC_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" |
| 3356 | else |
| 3357 | # Determine the default libpath from the value encoded in an empty executable. |
| 3358 | _LT_AC_SYS_LIBPATH_AIX |
| 3359 | @@ -11256,13 +11719,11 @@ |
| 3360 | # -berok will link without error, but may produce a broken library. |
| 3361 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 3362 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 3363 | - # -bexpall does not export symbols beginning with underscore (_) |
| 3364 | - _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 3365 | # Exported symbols can be pulled into shared objects from archives |
| 3366 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
| 3367 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 3368 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 3369 | - # This is similar to how AIX traditionally builds it's shared libraries. |
| 3370 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 3371 | + # This is similar to how AIX traditionally builds its shared libraries. |
| 3372 | + _LT_AC_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' |
| 3373 | fi |
| 3374 | fi |
| 3375 | ;; |
| 3376 | @@ -11275,7 +11736,7 @@ |
| 3377 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3378 | ;; |
| 3379 | |
| 3380 | - bsdi4*) |
| 3381 | + bsdi[[45]]*) |
| 3382 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
| 3383 | ;; |
| 3384 | |
| 3385 | @@ -11285,69 +11746,69 @@ |
| 3386 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 3387 | # no search path for DLLs. |
| 3388 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 3389 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no |
| 3390 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 3391 | # Tell ltmain to make .lib files, not .a files. |
| 3392 | libext=lib |
| 3393 | # Tell ltmain to make .dll files, not .so files. |
| 3394 | - shrext=".dll" |
| 3395 | + shrext_cmds=".dll" |
| 3396 | # FIXME: Setting linknames here is a bad hack. |
| 3397 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 3398 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 3399 | # The linker will automatically build a .lib file if we build a DLL. |
| 3400 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
| 3401 | # FIXME: Should let the user specify the lib program. |
| 3402 | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 3403 | - fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 3404 | + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
| 3405 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 3406 | ;; |
| 3407 | |
| 3408 | darwin* | rhapsody*) |
| 3409 | - if test "$GXX" = yes ; then |
| 3410 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3411 | - case "$host_os" in |
| 3412 | - rhapsody* | darwin1.[[012]]) |
| 3413 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' |
| 3414 | - ;; |
| 3415 | - *) # Darwin 1.3 on |
| 3416 | - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 3417 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 3418 | - else |
| 3419 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 3420 | - 10.[012]) |
| 3421 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 3422 | - ;; |
| 3423 | - 10.*) |
| 3424 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup' |
| 3425 | - ;; |
| 3426 | - esac |
| 3427 | - fi |
| 3428 | - ;; |
| 3429 | + case $host_os in |
| 3430 | + rhapsody* | darwin1.[[012]]) |
| 3431 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 3432 | + ;; |
| 3433 | + *) # Darwin 1.3 on |
| 3434 | + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 3435 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 3436 | + else |
| 3437 | + case ${MACOSX_DEPLOYMENT_TARGET} in |
| 3438 | + 10.[[012]]) |
| 3439 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 3440 | + ;; |
| 3441 | + 10.*) |
| 3442 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| 3443 | + ;; |
| 3444 | + esac |
| 3445 | + fi |
| 3446 | + ;; |
| 3447 | esac |
| 3448 | - lt_int_apple_cc_single_mod=no |
| 3449 | - output_verbose_link_cmd='echo' |
| 3450 | - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 3451 | - lt_int_apple_cc_single_mod=yes |
| 3452 | - fi |
| 3453 | - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 3454 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 3455 | - else |
| 3456 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring' |
| 3457 | - fi |
| 3458 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 3459 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 3460 | - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 3461 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3462 | - else |
| 3463 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3464 | - fi |
| 3465 | - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3466 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3467 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3468 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 3469 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 3470 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| 3471 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
| 3472 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3473 | - else |
| 3474 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3475 | - fi |
| 3476 | + if test "$GCC" = yes ; then |
| 3477 | + output_verbose_link_cmd='echo' |
| 3478 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 3479 | + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 3480 | + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 3481 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3482 | + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3483 | + else |
| 3484 | + case $cc_basename in |
| 3485 | + xlc*) |
| 3486 | + output_verbose_link_cmd='echo' |
| 3487 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 3488 | + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 3489 | + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 3490 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3491 | + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3492 | + ;; |
| 3493 | + *) |
| 3494 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 3495 | + ;; |
| 3496 | + esac |
| 3497 | + fi |
| 3498 | ;; |
| 3499 | |
| 3500 | dgux*) |
| 3501 | @@ -11380,8 +11841,8 @@ |
| 3502 | ;; |
| 3503 | |
| 3504 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 3505 | - freebsd* | kfreebsd*-gnu) |
| 3506 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' |
| 3507 | + freebsd* | dragonfly*) |
| 3508 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 3509 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 3510 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3511 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3512 | @@ -11389,7 +11850,7 @@ |
| 3513 | |
| 3514 | hpux9*) |
| 3515 | if test "$GCC" = yes; then |
| 3516 | - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 3517 | + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 3518 | else |
| 3519 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 3520 | fi |
| 3521 | @@ -11403,47 +11864,62 @@ |
| 3522 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3523 | ;; |
| 3524 | |
| 3525 | - hpux10* | hpux11*) |
| 3526 | + hpux10*) |
| 3527 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 3528 | - case "$host_cpu" in |
| 3529 | - hppa*64*|ia64*) |
| 3530 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 3531 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 3532 | + else |
| 3533 | + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 3534 | + fi |
| 3535 | + if test "$with_gnu_ld" = no; then |
| 3536 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 3537 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3538 | + |
| 3539 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3540 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3541 | + |
| 3542 | + # hardcode_minus_L: Not really in the search PATH, |
| 3543 | + # but as the default location of the library. |
| 3544 | + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 3545 | + fi |
| 3546 | + ;; |
| 3547 | + |
| 3548 | + hpux11*) |
| 3549 | + if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 3550 | + case $host_cpu in |
| 3551 | + hppa*64*) |
| 3552 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3553 | + ;; |
| 3554 | + ia64*) |
| 3555 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 3556 | ;; |
| 3557 | *) |
| 3558 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' |
| 3559 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 3560 | ;; |
| 3561 | esac |
| 3562 | else |
| 3563 | - case "$host_cpu" in |
| 3564 | - hppa*64*|ia64*) |
| 3565 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3566 | + case $host_cpu in |
| 3567 | + hppa*64*) |
| 3568 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3569 | + ;; |
| 3570 | + ia64*) |
| 3571 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 3572 | ;; |
| 3573 | *) |
| 3574 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 3575 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 3576 | ;; |
| 3577 | esac |
| 3578 | fi |
| 3579 | if test "$with_gnu_ld" = no; then |
| 3580 | - case "$host_cpu" in |
| 3581 | - hppa*64*) |
| 3582 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 3583 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 3584 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3585 | + |
| 3586 | + case $host_cpu in |
| 3587 | + hppa*64*|ia64*) |
| 3588 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 3589 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3590 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3591 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3592 | ;; |
| 3593 | - ia64*) |
| 3594 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 3595 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 3596 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3597 | - |
| 3598 | - # hardcode_minus_L: Not really in the search PATH, |
| 3599 | - # but as the default location of the library. |
| 3600 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 3601 | - ;; |
| 3602 | *) |
| 3603 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 3604 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3605 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3606 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3607 | |
| 3608 | @@ -11457,7 +11933,7 @@ |
| 3609 | |
| 3610 | irix5* | irix6* | nonstopux*) |
| 3611 | if test "$GCC" = yes; then |
| 3612 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 3613 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 3614 | else |
| 3615 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 3616 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
| 3617 | @@ -11467,7 +11943,7 @@ |
| 3618 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3619 | ;; |
| 3620 | |
| 3621 | - netbsd*) |
| 3622 | + netbsd* | netbsdelf*-gnu) |
| 3623 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3624 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 3625 | else |
| 3626 | @@ -11490,7 +11966,8 @@ |
| 3627 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3628 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3629 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3630 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
| 3631 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 3632 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 3633 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3634 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 3635 | else |
| 3636 | @@ -11500,7 +11977,7 @@ |
| 3637 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 3638 | ;; |
| 3639 | *) |
| 3640 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
| 3641 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 3642 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 3643 | ;; |
| 3644 | esac |
| 3645 | @@ -11511,14 +11988,14 @@ |
| 3646 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 3647 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 3648 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 3649 | - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def' |
| 3650 | + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 3651 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 3652 | ;; |
| 3653 | |
| 3654 | osf3*) |
| 3655 | if test "$GCC" = yes; then |
| 3656 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 3657 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 3658 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 3659 | else |
| 3660 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 3661 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 3662 | @@ -11530,13 +12007,13 @@ |
| 3663 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 3664 | if test "$GCC" = yes; then |
| 3665 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 3666 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 3667 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 3668 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 3669 | else |
| 3670 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 3671 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 3672 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 3673 | - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 3674 | + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
| 3675 | |
| 3676 | # Both c and cxx compiler support -rpath directly |
| 3677 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 3678 | @@ -11544,21 +12021,15 @@ |
| 3679 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 3680 | ;; |
| 3681 | |
| 3682 | - sco3.2v5*) |
| 3683 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3684 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3685 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 3686 | - runpath_var=LD_RUN_PATH |
| 3687 | - hardcode_runpath_var=yes |
| 3688 | - ;; |
| 3689 | - |
| 3690 | solaris*) |
| 3691 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
| 3692 | if test "$GCC" = yes; then |
| 3693 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 3694 | + wlarc='${wl}' |
| 3695 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3696 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3697 | - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' |
| 3698 | + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 3699 | else |
| 3700 | + wlarc='' |
| 3701 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3702 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3703 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 3704 | @@ -11567,8 +12038,18 @@ |
| 3705 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3706 | case $host_os in |
| 3707 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 3708 | - *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 3709 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
| 3710 | + *) |
| 3711 | + # The compiler driver will combine linker options so we |
| 3712 | + # cannot just pass the convience library names through |
| 3713 | + # without $wl, iff we do not link with $LD. |
| 3714 | + # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 3715 | + # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 3716 | + case $wlarc in |
| 3717 | + '') |
| 3718 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
| 3719 | + *) |
| 3720 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 3721 | + esac ;; |
| 3722 | esac |
| 3723 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3724 | ;; |
| 3725 | @@ -11577,7 +12058,7 @@ |
| 3726 | if test "x$host_vendor" = xsequent; then |
| 3727 | # Use $CC to link under sequent, because it throws in some extra .o |
| 3728 | # files that make .init and .fini sections work. |
| 3729 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' |
| 3730 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3731 | else |
| 3732 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 3733 | fi |
| 3734 | @@ -11625,36 +12106,45 @@ |
| 3735 | fi |
| 3736 | ;; |
| 3737 | |
| 3738 | - sysv4.2uw2*) |
| 3739 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 3740 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 3741 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 3742 | + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) |
| 3743 | + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 3744 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3745 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3746 | - hardcode_runpath_var=yes |
| 3747 | - runpath_var=LD_RUN_PATH |
| 3748 | - ;; |
| 3749 | + runpath_var='LD_RUN_PATH' |
| 3750 | |
| 3751 | - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
| 3752 | - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' |
| 3753 | if test "$GCC" = yes; then |
| 3754 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 3755 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3756 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3757 | else |
| 3758 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 3759 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3760 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3761 | fi |
| 3762 | - runpath_var='LD_RUN_PATH' |
| 3763 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3764 | ;; |
| 3765 | |
| 3766 | - sysv5*) |
| 3767 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
| 3768 | - # $CC -shared without GNU ld will not create a library from C++ |
| 3769 | - # object files and a static libstdc++, better avoid it by now |
| 3770 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3771 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3772 | - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 3773 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 3774 | + sysv5* | sco3.2v5* | sco5v6*) |
| 3775 | + # Note: We can NOT use -z defs as we might desire, because we do not |
| 3776 | + # link with -lc, and that would cause any symbols used from libc to |
| 3777 | + # always be unresolved, which means just about no library would |
| 3778 | + # ever link correctly. If we're not using GNU ld we use -z text |
| 3779 | + # though, which does catch some bad symbols but isn't as heavy-handed |
| 3780 | + # as -z defs. |
| 3781 | + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 3782 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 3783 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 3784 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 3785 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 3786 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 3787 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 3788 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 3789 | runpath_var='LD_RUN_PATH' |
| 3790 | + |
| 3791 | + if test "$GCC" = yes; then |
| 3792 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3793 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3794 | + else |
| 3795 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3796 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3797 | + fi |
| 3798 | ;; |
| 3799 | |
| 3800 | uts4*) |
| 3801 | @@ -11672,11 +12162,6 @@ |
| 3802 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
| 3803 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 3804 | |
| 3805 | -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 3806 | -if test "$GCC" = yes; then |
| 3807 | - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 3808 | -fi |
| 3809 | - |
| 3810 | # |
| 3811 | # Do we need to explicitly link libc? |
| 3812 | # |
| 3813 | @@ -11697,13 +12182,14 @@ |
| 3814 | AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
| 3815 | $rm conftest* |
| 3816 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 3817 | - |
| 3818 | + |
| 3819 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
| 3820 | soname=conftest |
| 3821 | lib=conftest |
| 3822 | libobjs=conftest.$ac_objext |
| 3823 | deplibs= |
| 3824 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
| 3825 | + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) |
| 3826 | compiler_flags=-v |
| 3827 | linker_flags=-v |
| 3828 | verstring= |
| 3829 | @@ -11831,7 +12317,7 @@ |
| 3830 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3831 | # along with /bin/sed that truncates output. |
| 3832 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3833 | - test ! -f $lt_ac_sed && break |
| 3834 | + test ! -f $lt_ac_sed && continue |
| 3835 | cat /dev/null > conftest.in |
| 3836 | lt_ac_count=0 |
| 3837 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3838 | --- aclocal.m4 |
| 3839 | +++ aclocal.m4 |
| 3840 | @@ -501,6 +501,35 @@ |
| 3841 | rmdir .tst 2>/dev/null |
| 3842 | AC_SUBST([am__leading_dot])]) |
| 3843 | |
| 3844 | +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
| 3845 | +# From Jim Meyering |
| 3846 | + |
| 3847 | +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 |
| 3848 | +# Free Software Foundation, Inc. |
| 3849 | +# |
| 3850 | +# This file is free software; the Free Software Foundation |
| 3851 | +# gives unlimited permission to copy and/or distribute it, |
| 3852 | +# with or without modifications, as long as this notice is preserved. |
| 3853 | + |
| 3854 | +# serial 4 |
| 3855 | + |
| 3856 | +AC_DEFUN([AM_MAINTAINER_MODE], |
| 3857 | +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
| 3858 | + dnl maintainer-mode is disabled by default |
| 3859 | + AC_ARG_ENABLE(maintainer-mode, |
| 3860 | +[ --enable-maintainer-mode enable make rules and dependencies not useful |
| 3861 | + (and sometimes confusing) to the casual installer], |
| 3862 | + USE_MAINTAINER_MODE=$enableval, |
| 3863 | + USE_MAINTAINER_MODE=no) |
| 3864 | + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
| 3865 | + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) |
| 3866 | + MAINT=$MAINTAINER_MODE_TRUE |
| 3867 | + AC_SUBST(MAINT)dnl |
| 3868 | +] |
| 3869 | +) |
| 3870 | + |
| 3871 | +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
| 3872 | + |
| 3873 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
| 3874 | |
| 3875 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
| 3876 | --- configure |
| 3877 | +++ configure |
| 3878 | @@ -278,15 +278,15 @@ |
| 3879 | |
| 3880 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 3881 | # if CDPATH is set. |
| 3882 | -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 3883 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 3884 | |
| 3885 | if test -z "$ECHO"; then |
| 3886 | if test "X${echo_test_string+set}" != Xset; then |
| 3887 | # find a string as large as possible, as long as the shell can cope with it |
| 3888 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 3889 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 3890 | - if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 3891 | - echo_test_string="`eval $cmd`" && |
| 3892 | + if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 3893 | + echo_test_string=`eval $cmd` && |
| 3894 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 3895 | then |
| 3896 | break |
| 3897 | @@ -464,7 +464,7 @@ |
| 3898 | # include <unistd.h> |
| 3899 | #endif" |
| 3900 | |
| 3901 | -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar KDECONFIG kde_libs_prefix kde_libs_htmldir CONF_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL HAVE_GCC_VISIBILITY unsermake_enable_pch_TRUE unsermake_enable_pch_FALSE USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG LDFLAGS_AS_NEEDED LDFLAGS_NEW_DTAGS KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN KDE_CHECK_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL KDE_USE_FPIE KDE_USE_PIE include_x11_TRUE include_x11_FALSE X_PRE_LIBS LIB_X11 LIB_XRENDER LIBSM X_INCLUDES X_LDFLAGS x_includes x_libraries QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS PERL MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH X_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS include_ARTS_TRUE include_ARTS_FALSE MAKEKDEWIDGETS KCONFIG_COMPILER KCFG_DEPENDENCIES DCOPIDLNG DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG MEINPROC KDE_XSL_STYLESHEET XMLLINT kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_kcfgdir kde_mimedir kde_wallpaperdir kde_bindir xdg_appsdir xdg_menudir xdg_directorydir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kdeinitdir kde_styledir kde_widgetdir LIB_KDED LIB_KDECORE LIB_KDEUI LIB_KIO LIB_KJS LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KUTILS LIB_KDEPIM LIB_KIMPROXY LIB_KNEWSTUFF LIB_KDNSSD LIB_KUNITTEST LIB_KSYCOCA LIB_KFILE LIB_KFM package quanta_datadir QUANTAUIRC_HOOK_TRUE QUANTAUIRC_HOOK_FALSE LIBXML_LIBS XML_CONFIG LIBXML_PREFIX LIBXML_CFLAGS LIBXSLT_REQUIRED_VERSION XSLT_CONFIG LIBXSLT_PREFIX LIBXSLT_LIBS LIBXSLT_CFLAGS LIB_KMDI KMDI_INCLUDES QEXTMDI_SUBDIR include_qextmdi_TRUE include_qextmdi_FALSE include_cvsservice_TRUE include_cvsservice_FALSE include_knewstuff_TRUE include_knewstuff_FALSE KNEWSTUFF_INCLUDES enable_editors XSLDBG_MAJOR_VERSION XSLDBG_MINOR_VERSION XSLDBG_MICRO_VERSION XSLDBG_VERSION XSLDBG_VERSION_INFO XSLDBG_VERSION_NUMBER DOCS_PATH XSLDBG_INCLUDEDIR XSLDBG_EXTRA_LIBS XSLDBG_CFLAGS XSLDBG_PREFIX BUILD_WYSIWYG_TRUE BUILD_WYSIWYG_FALSE TOPSUBDIRS lib_SUBDIR_included_TRUE lib_SUBDIR_included_FALSE doc_SUBDIR_included_TRUE doc_SUBDIR_included_FALSE kfilereplace_SUBDIR_included_TRUE kfilereplace_SUBDIR_included_FALSE kimagemapeditor_SUBDIR_included_TRUE kimagemapeditor_SUBDIR_included_FALSE klinkstatus_SUBDIR_included_TRUE klinkstatus_SUBDIR_included_FALSE kommander_SUBDIR_included_TRUE kommander_SUBDIR_included_FALSE kxsldbg_SUBDIR_included_TRUE kxsldbg_SUBDIR_included_FALSE quanta_SUBDIR_included_TRUE quanta_SUBDIR_included_FALSE LIBOBJS LTLIBOBJS' |
| 3902 | +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT KDECONFIG kde_libs_prefix kde_libs_htmldir CONF_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL HAVE_GCC_VISIBILITY unsermake_enable_pch_TRUE unsermake_enable_pch_FALSE USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG LDFLAGS_AS_NEEDED LDFLAGS_NEW_DTAGS KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN KDE_CHECK_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL KDE_USE_FPIE KDE_USE_PIE include_x11_TRUE include_x11_FALSE X_PRE_LIBS LIB_X11 LIB_XRENDER LIBSM X_INCLUDES X_LDFLAGS x_includes x_libraries QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS PERL MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH X_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS include_ARTS_TRUE include_ARTS_FALSE MAKEKDEWIDGETS KCONFIG_COMPILER KCFG_DEPENDENCIES DCOPIDLNG DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG MEINPROC KDE_XSL_STYLESHEET XMLLINT kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_kcfgdir kde_mimedir kde_wallpaperdir kde_bindir xdg_appsdir xdg_menudir xdg_directorydir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kdeinitdir kde_styledir kde_widgetdir LIB_KDED LIB_KDECORE LIB_KDEUI LIB_KIO LIB_KJS LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KUTILS LIB_KDEPIM LIB_KIMPROXY LIB_KNEWSTUFF LIB_KDNSSD LIB_KUNITTEST LIB_KSYCOCA LIB_KFILE LIB_KFM package quanta_datadir QUANTAUIRC_HOOK_TRUE QUANTAUIRC_HOOK_FALSE LIBXML_LIBS XML_CONFIG LIBXML_PREFIX LIBXML_CFLAGS LIBXSLT_REQUIRED_VERSION XSLT_CONFIG LIBXSLT_PREFIX LIBXSLT_LIBS LIBXSLT_CFLAGS LIB_KMDI KMDI_INCLUDES QEXTMDI_SUBDIR include_qextmdi_TRUE include_qextmdi_FALSE include_cvsservice_TRUE include_cvsservice_FALSE include_knewstuff_TRUE include_knewstuff_FALSE KNEWSTUFF_INCLUDES enable_editors XSLDBG_MAJOR_VERSION XSLDBG_MINOR_VERSION XSLDBG_MICRO_VERSION XSLDBG_VERSION XSLDBG_VERSION_INFO XSLDBG_VERSION_NUMBER DOCS_PATH XSLDBG_INCLUDEDIR XSLDBG_EXTRA_LIBS XSLDBG_CFLAGS XSLDBG_PREFIX BUILD_WYSIWYG_TRUE BUILD_WYSIWYG_FALSE TOPSUBDIRS lib_SUBDIR_included_TRUE lib_SUBDIR_included_FALSE doc_SUBDIR_included_TRUE doc_SUBDIR_included_FALSE kfilereplace_SUBDIR_included_TRUE kfilereplace_SUBDIR_included_FALSE kimagemapeditor_SUBDIR_included_TRUE kimagemapeditor_SUBDIR_included_FALSE klinkstatus_SUBDIR_included_TRUE klinkstatus_SUBDIR_included_FALSE kommander_SUBDIR_included_TRUE kommander_SUBDIR_included_FALSE kxsldbg_SUBDIR_included_TRUE kxsldbg_SUBDIR_included_FALSE quanta_SUBDIR_included_TRUE quanta_SUBDIR_included_FALSE LIBOBJS LTLIBOBJS' |
| 3903 | ac_subst_files='' |
| 3904 | |
| 3905 | # Initialize some variables set by options. |
| 3906 | @@ -1025,6 +1025,8 @@ |
| 3907 | Optional Features: |
| 3908 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 3909 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 3910 | + --enable-maintainer-mode enable make rules and dependencies not useful |
| 3911 | + (and sometimes confusing) to the casual installer |
| 3912 | --disable-fast-perl disable fast Makefile generation (needs perl) |
| 3913 | --enable-debug=ARG enables debug symbols (yes|no|full) default=no |
| 3914 | --disable-debug disables debug output and debug symbols default=no |
| 3915 | @@ -1189,7 +1191,7 @@ |
| 3916 | else |
| 3917 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 3918 | fi |
| 3919 | - cd $ac_popdir |
| 3920 | + cd "$ac_popdir" |
| 3921 | done |
| 3922 | fi |
| 3923 | |
| 3924 | @@ -2092,6 +2094,31 @@ |
| 3925 | |
| 3926 | |
| 3927 | |
| 3928 | +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3929 | +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 3930 | + # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 3931 | +if test "${enable_maintainer_mode+set}" = set; then |
| 3932 | + enableval="$enable_maintainer_mode" |
| 3933 | + USE_MAINTAINER_MODE=$enableval |
| 3934 | +else |
| 3935 | + USE_MAINTAINER_MODE=no |
| 3936 | +fi; |
| 3937 | + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 3938 | +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 3939 | + |
| 3940 | + |
| 3941 | +if test $USE_MAINTAINER_MODE = yes; then |
| 3942 | + MAINTAINER_MODE_TRUE= |
| 3943 | + MAINTAINER_MODE_FALSE='#' |
| 3944 | +else |
| 3945 | + MAINTAINER_MODE_TRUE='#' |
| 3946 | + MAINTAINER_MODE_FALSE= |
| 3947 | +fi |
| 3948 | + |
| 3949 | + MAINT=$MAINTAINER_MODE_TRUE |
| 3950 | + |
| 3951 | + |
| 3952 | + |
| 3953 | |
| 3954 | unset CDPATH |
| 3955 | |
| 3956 | @@ -3025,8 +3052,7 @@ |
| 3957 | cat conftest.err >&5 |
| 3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3959 | (exit $ac_status); } && |
| 3960 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3961 | - || test ! -s conftest.err' |
| 3962 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3964 | (eval $ac_try) 2>&5 |
| 3965 | ac_status=$? |
| 3966 | @@ -3084,8 +3110,7 @@ |
| 3967 | cat conftest.err >&5 |
| 3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3969 | (exit $ac_status); } && |
| 3970 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3971 | - || test ! -s conftest.err' |
| 3972 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3974 | (eval $ac_try) 2>&5 |
| 3975 | ac_status=$? |
| 3976 | @@ -3201,8 +3226,7 @@ |
| 3977 | cat conftest.err >&5 |
| 3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3979 | (exit $ac_status); } && |
| 3980 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3981 | - || test ! -s conftest.err' |
| 3982 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3984 | (eval $ac_try) 2>&5 |
| 3985 | ac_status=$? |
| 3986 | @@ -3256,8 +3280,7 @@ |
| 3987 | cat conftest.err >&5 |
| 3988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3989 | (exit $ac_status); } && |
| 3990 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3991 | - || test ! -s conftest.err' |
| 3992 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3994 | (eval $ac_try) 2>&5 |
| 3995 | ac_status=$? |
| 3996 | @@ -3302,8 +3325,7 @@ |
| 3997 | cat conftest.err >&5 |
| 3998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3999 | (exit $ac_status); } && |
| 4000 | - { ac_try='test -z "$ac_c_werror_flag" |
| 4001 | - || test ! -s conftest.err' |
| 4002 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4004 | (eval $ac_try) 2>&5 |
| 4005 | ac_status=$? |
| 4006 | @@ -3347,8 +3369,7 @@ |
| 4007 | cat conftest.err >&5 |
| 4008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4009 | (exit $ac_status); } && |
| 4010 | - { ac_try='test -z "$ac_c_werror_flag" |
| 4011 | - || test ! -s conftest.err' |
| 4012 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4014 | (eval $ac_try) 2>&5 |
| 4015 | ac_status=$? |
| 4016 | @@ -3905,8 +3926,7 @@ |
| 4017 | cat conftest.err >&5 |
| 4018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4019 | (exit $ac_status); } && |
| 4020 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4021 | - || test ! -s conftest.err' |
| 4022 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4024 | (eval $ac_try) 2>&5 |
| 4025 | ac_status=$? |
| 4026 | @@ -3964,8 +3984,7 @@ |
| 4027 | cat conftest.err >&5 |
| 4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4029 | (exit $ac_status); } && |
| 4030 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4031 | - || test ! -s conftest.err' |
| 4032 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4034 | (eval $ac_try) 2>&5 |
| 4035 | ac_status=$? |
| 4036 | @@ -4036,8 +4055,7 @@ |
| 4037 | cat conftest.err >&5 |
| 4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4039 | (exit $ac_status); } && |
| 4040 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4041 | - || test ! -s conftest.err' |
| 4042 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4044 | (eval $ac_try) 2>&5 |
| 4045 | ac_status=$? |
| 4046 | @@ -4081,8 +4099,7 @@ |
| 4047 | cat conftest.err >&5 |
| 4048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4049 | (exit $ac_status); } && |
| 4050 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4051 | - || test ! -s conftest.err' |
| 4052 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4054 | (eval $ac_try) 2>&5 |
| 4055 | ac_status=$? |
| 4056 | @@ -4260,8 +4277,7 @@ |
| 4057 | cat conftest.err >&5 |
| 4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4059 | (exit $ac_status); } && |
| 4060 | - { ac_try='test -z "$ac_c_werror_flag" |
| 4061 | - || test ! -s conftest.err' |
| 4062 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4064 | (eval $ac_try) 2>&5 |
| 4065 | ac_status=$? |
| 4066 | @@ -4372,8 +4388,7 @@ |
| 4067 | cat conftest.err >&5 |
| 4068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4069 | (exit $ac_status); } && |
| 4070 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4071 | - || test ! -s conftest.err' |
| 4072 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4074 | (eval $ac_try) 2>&5 |
| 4075 | ac_status=$? |
| 4076 | @@ -4461,8 +4476,7 @@ |
| 4077 | cat conftest.err >&5 |
| 4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4079 | (exit $ac_status); } && |
| 4080 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4081 | - || test ! -s conftest.err' |
| 4082 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4084 | (eval $ac_try) 2>&5 |
| 4085 | ac_status=$? |
| 4086 | @@ -4564,8 +4578,7 @@ |
| 4087 | cat conftest.err >&5 |
| 4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4089 | (exit $ac_status); } && |
| 4090 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4091 | - || test ! -s conftest.err' |
| 4092 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4094 | (eval $ac_try) 2>&5 |
| 4095 | ac_status=$? |
| 4096 | @@ -4664,8 +4677,7 @@ |
| 4097 | cat conftest.err >&5 |
| 4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4099 | (exit $ac_status); } && |
| 4100 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4101 | - || test ! -s conftest.err' |
| 4102 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4104 | (eval $ac_try) 2>&5 |
| 4105 | ac_status=$? |
| 4106 | @@ -4749,8 +4761,7 @@ |
| 4107 | cat conftest.err >&5 |
| 4108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4109 | (exit $ac_status); } && |
| 4110 | - { ac_try='test -z "$ac_c_werror_flag" |
| 4111 | - || test ! -s conftest.err' |
| 4112 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4114 | (eval $ac_try) 2>&5 |
| 4115 | ac_status=$? |
| 4116 | @@ -4839,8 +4850,7 @@ |
| 4117 | cat conftest.err >&5 |
| 4118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4119 | (exit $ac_status); } && |
| 4120 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4121 | - || test ! -s conftest.err' |
| 4122 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4124 | (eval $ac_try) 2>&5 |
| 4125 | ac_status=$? |
| 4126 | @@ -4927,8 +4937,7 @@ |
| 4127 | cat conftest.err >&5 |
| 4128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4129 | (exit $ac_status); } && |
| 4130 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4131 | - || test ! -s conftest.err' |
| 4132 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4134 | (eval $ac_try) 2>&5 |
| 4135 | ac_status=$? |
| 4136 | @@ -5015,8 +5024,7 @@ |
| 4137 | cat conftest.err >&5 |
| 4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4139 | (exit $ac_status); } && |
| 4140 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4141 | - || test ! -s conftest.err' |
| 4142 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4144 | (eval $ac_try) 2>&5 |
| 4145 | ac_status=$? |
| 4146 | @@ -5123,8 +5131,7 @@ |
| 4147 | cat conftest.err >&5 |
| 4148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4149 | (exit $ac_status); } && |
| 4150 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4151 | - || test ! -s conftest.err' |
| 4152 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4154 | (eval $ac_try) 2>&5 |
| 4155 | ac_status=$? |
| 4156 | @@ -5217,8 +5224,7 @@ |
| 4157 | cat conftest.err >&5 |
| 4158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4159 | (exit $ac_status); } && |
| 4160 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4161 | - || test ! -s conftest.err' |
| 4162 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4164 | (eval $ac_try) 2>&5 |
| 4165 | ac_status=$? |
| 4166 | @@ -5305,8 +5311,7 @@ |
| 4167 | cat conftest.err >&5 |
| 4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4169 | (exit $ac_status); } && |
| 4170 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4171 | - || test ! -s conftest.err' |
| 4172 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4174 | (eval $ac_try) 2>&5 |
| 4175 | ac_status=$? |
| 4176 | @@ -5393,8 +5398,7 @@ |
| 4177 | cat conftest.err >&5 |
| 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4179 | (exit $ac_status); } && |
| 4180 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4181 | - || test ! -s conftest.err' |
| 4182 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4184 | (eval $ac_try) 2>&5 |
| 4185 | ac_status=$? |
| 4186 | @@ -5481,8 +5485,7 @@ |
| 4187 | cat conftest.err >&5 |
| 4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4189 | (exit $ac_status); } && |
| 4190 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4191 | - || test ! -s conftest.err' |
| 4192 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4194 | (eval $ac_try) 2>&5 |
| 4195 | ac_status=$? |
| 4196 | @@ -5597,8 +5600,7 @@ |
| 4197 | cat conftest.err >&5 |
| 4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4199 | (exit $ac_status); } && |
| 4200 | - { ac_try='test -z "$ac_c_werror_flag" |
| 4201 | - || test ! -s conftest.err' |
| 4202 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4204 | (eval $ac_try) 2>&5 |
| 4205 | ac_status=$? |
| 4206 | @@ -5690,8 +5692,7 @@ |
| 4207 | cat conftest.err >&5 |
| 4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4209 | (exit $ac_status); } && |
| 4210 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4211 | - || test ! -s conftest.err' |
| 4212 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4214 | (eval $ac_try) 2>&5 |
| 4215 | ac_status=$? |
| 4216 | @@ -5779,8 +5780,7 @@ |
| 4217 | cat conftest.err >&5 |
| 4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4219 | (exit $ac_status); } && |
| 4220 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4221 | - || test ! -s conftest.err' |
| 4222 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4224 | (eval $ac_try) 2>&5 |
| 4225 | ac_status=$? |
| 4226 | @@ -5867,8 +5867,7 @@ |
| 4227 | cat conftest.err >&5 |
| 4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4229 | (exit $ac_status); } && |
| 4230 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4231 | - || test ! -s conftest.err' |
| 4232 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4234 | (eval $ac_try) 2>&5 |
| 4235 | ac_status=$? |
| 4236 | @@ -5955,8 +5954,7 @@ |
| 4237 | cat conftest.err >&5 |
| 4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4239 | (exit $ac_status); } && |
| 4240 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4241 | - || test ! -s conftest.err' |
| 4242 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4244 | (eval $ac_try) 2>&5 |
| 4245 | ac_status=$? |
| 4246 | @@ -6043,8 +6041,7 @@ |
| 4247 | cat conftest.err >&5 |
| 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4249 | (exit $ac_status); } && |
| 4250 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4251 | - || test ! -s conftest.err' |
| 4252 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4254 | (eval $ac_try) 2>&5 |
| 4255 | ac_status=$? |
| 4256 | @@ -6131,8 +6128,7 @@ |
| 4257 | cat conftest.err >&5 |
| 4258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4259 | (exit $ac_status); } && |
| 4260 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4261 | - || test ! -s conftest.err' |
| 4262 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4264 | (eval $ac_try) 2>&5 |
| 4265 | ac_status=$? |
| 4266 | @@ -6555,8 +6551,7 @@ |
| 4267 | cat conftest.err >&5 |
| 4268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4269 | (exit $ac_status); } && |
| 4270 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4271 | - || test ! -s conftest.err' |
| 4272 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4274 | (eval $ac_try) 2>&5 |
| 4275 | ac_status=$? |
| 4276 | @@ -6682,8 +6677,7 @@ |
| 4277 | cat conftest.err >&5 |
| 4278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4279 | (exit $ac_status); } && |
| 4280 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4281 | - || test ! -s conftest.err' |
| 4282 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4284 | (eval $ac_try) 2>&5 |
| 4285 | ac_status=$? |
| 4286 | @@ -6771,8 +6765,7 @@ |
| 4287 | cat conftest.err >&5 |
| 4288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4289 | (exit $ac_status); } && |
| 4290 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4291 | - || test ! -s conftest.err' |
| 4292 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4294 | (eval $ac_try) 2>&5 |
| 4295 | ac_status=$? |
| 4296 | @@ -6855,185 +6848,6 @@ |
| 4297 | KDE_USE_CLOSURE_TRUE="#" |
| 4298 | KDE_USE_CLOSURE_FALSE="" |
| 4299 | KDE_NO_UNDEFINED="" |
| 4300 | - case $host in |
| 4301 | - *-*-linux-gnu) |
| 4302 | - |
| 4303 | -echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5 |
| 4304 | -echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6 |
| 4305 | -kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'` |
| 4306 | -if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
| 4307 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4308 | -else |
| 4309 | - |
| 4310 | - |
| 4311 | - |
| 4312 | - ac_ext=cc |
| 4313 | -ac_cpp='$CXXCPP $CPPFLAGS' |
| 4314 | -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4315 | -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4316 | -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4317 | - |
| 4318 | -ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4319 | - |
| 4320 | - |
| 4321 | - save_CXXFLAGS="$CXXFLAGS" |
| 4322 | - CXXFLAGS="$CXXFLAGS -Wl,--no-undefined" |
| 4323 | - cat >conftest.$ac_ext <<_ACEOF |
| 4324 | -/* confdefs.h. */ |
| 4325 | -_ACEOF |
| 4326 | -cat confdefs.h >>conftest.$ac_ext |
| 4327 | -cat >>conftest.$ac_ext <<_ACEOF |
| 4328 | -/* end confdefs.h. */ |
| 4329 | - |
| 4330 | -int |
| 4331 | -main () |
| 4332 | -{ |
| 4333 | - return 0; |
| 4334 | - ; |
| 4335 | - return 0; |
| 4336 | -} |
| 4337 | -_ACEOF |
| 4338 | -rm -f conftest.$ac_objext conftest$ac_exeext |
| 4339 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4340 | - (eval $ac_link) 2>conftest.er1 |
| 4341 | - ac_status=$? |
| 4342 | - grep -v '^ *+' conftest.er1 >conftest.err |
| 4343 | - rm -f conftest.er1 |
| 4344 | - cat conftest.err >&5 |
| 4345 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4346 | - (exit $ac_status); } && |
| 4347 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4348 | - || test ! -s conftest.err' |
| 4349 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4350 | - (eval $ac_try) 2>&5 |
| 4351 | - ac_status=$? |
| 4352 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4353 | - (exit $ac_status); }; } && |
| 4354 | - { ac_try='test -s conftest$ac_exeext' |
| 4355 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4356 | - (eval $ac_try) 2>&5 |
| 4357 | - ac_status=$? |
| 4358 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4359 | - (exit $ac_status); }; }; then |
| 4360 | - eval "kde_cv_prog_cxx_$kde_cache=yes" |
| 4361 | -else |
| 4362 | - echo "$as_me: failed program was:" >&5 |
| 4363 | -sed 's/^/| /' conftest.$ac_ext >&5 |
| 4364 | - |
| 4365 | -fi |
| 4366 | -rm -f conftest.err conftest.$ac_objext \ |
| 4367 | - conftest$ac_exeext conftest.$ac_ext |
| 4368 | - CXXFLAGS="$save_CXXFLAGS" |
| 4369 | - ac_ext=c |
| 4370 | -ac_cpp='$CPP $CPPFLAGS' |
| 4371 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4372 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4373 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4374 | - |
| 4375 | - |
| 4376 | -fi |
| 4377 | - |
| 4378 | -if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
| 4379 | - echo "$as_me:$LINENO: result: yes" >&5 |
| 4380 | -echo "${ECHO_T}yes" >&6 |
| 4381 | - : |
| 4382 | - |
| 4383 | -echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5 |
| 4384 | -echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6 |
| 4385 | -kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'` |
| 4386 | -if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
| 4387 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4388 | -else |
| 4389 | - |
| 4390 | - |
| 4391 | - |
| 4392 | - ac_ext=cc |
| 4393 | -ac_cpp='$CXXCPP $CPPFLAGS' |
| 4394 | -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4395 | -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4396 | -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4397 | - |
| 4398 | -ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4399 | - |
| 4400 | - |
| 4401 | - save_CXXFLAGS="$CXXFLAGS" |
| 4402 | - CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined" |
| 4403 | - cat >conftest.$ac_ext <<_ACEOF |
| 4404 | -/* confdefs.h. */ |
| 4405 | -_ACEOF |
| 4406 | -cat confdefs.h >>conftest.$ac_ext |
| 4407 | -cat >>conftest.$ac_ext <<_ACEOF |
| 4408 | -/* end confdefs.h. */ |
| 4409 | - |
| 4410 | -int |
| 4411 | -main () |
| 4412 | -{ |
| 4413 | - return 0; |
| 4414 | - ; |
| 4415 | - return 0; |
| 4416 | -} |
| 4417 | -_ACEOF |
| 4418 | -rm -f conftest.$ac_objext conftest$ac_exeext |
| 4419 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4420 | - (eval $ac_link) 2>conftest.er1 |
| 4421 | - ac_status=$? |
| 4422 | - grep -v '^ *+' conftest.er1 >conftest.err |
| 4423 | - rm -f conftest.er1 |
| 4424 | - cat conftest.err >&5 |
| 4425 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4426 | - (exit $ac_status); } && |
| 4427 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 4428 | - || test ! -s conftest.err' |
| 4429 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4430 | - (eval $ac_try) 2>&5 |
| 4431 | - ac_status=$? |
| 4432 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4433 | - (exit $ac_status); }; } && |
| 4434 | - { ac_try='test -s conftest$ac_exeext' |
| 4435 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4436 | - (eval $ac_try) 2>&5 |
| 4437 | - ac_status=$? |
| 4438 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4439 | - (exit $ac_status); }; }; then |
| 4440 | - eval "kde_cv_prog_cxx_$kde_cache=yes" |
| 4441 | -else |
| 4442 | - echo "$as_me: failed program was:" >&5 |
| 4443 | -sed 's/^/| /' conftest.$ac_ext >&5 |
| 4444 | - |
| 4445 | -fi |
| 4446 | -rm -f conftest.err conftest.$ac_objext \ |
| 4447 | - conftest$ac_exeext conftest.$ac_ext |
| 4448 | - CXXFLAGS="$save_CXXFLAGS" |
| 4449 | - ac_ext=c |
| 4450 | -ac_cpp='$CPP $CPPFLAGS' |
| 4451 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4452 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4453 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4454 | - |
| 4455 | - |
| 4456 | -fi |
| 4457 | - |
| 4458 | -if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
| 4459 | - echo "$as_me:$LINENO: result: yes" >&5 |
| 4460 | -echo "${ECHO_T}yes" >&6 |
| 4461 | - : |
| 4462 | - KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined" |
| 4463 | -else |
| 4464 | - echo "$as_me:$LINENO: result: no" >&5 |
| 4465 | -echo "${ECHO_T}no" >&6 |
| 4466 | - : |
| 4467 | - KDE_NO_UNDEFINED="" |
| 4468 | -fi |
| 4469 | - |
| 4470 | -else |
| 4471 | - echo "$as_me:$LINENO: result: no" >&5 |
| 4472 | -echo "${ECHO_T}no" >&6 |
| 4473 | - : |
| 4474 | - KDE_NO_UNDEFINED="" |
| 4475 | -fi |
| 4476 | - |
| 4477 | - ;; |
| 4478 | - esac |
| 4479 | fi |
| 4480 | |
| 4481 | |
| 4482 | @@ -7208,7 +7022,7 @@ |
| 4483 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 4484 | # along with /bin/sed that truncates output. |
| 4485 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 4486 | - test ! -f $lt_ac_sed && break |
| 4487 | + test ! -f $lt_ac_sed && continue |
| 4488 | cat /dev/null > conftest.in |
| 4489 | lt_ac_count=0 |
| 4490 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 4491 | @@ -7313,7 +7127,7 @@ |
| 4492 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4493 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4494 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4495 | - # but apparently some GNU ld's only accept -v. |
| 4496 | + # but apparently some variants of GNU ld only accept -v. |
| 4497 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4498 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4499 | *GNU* | *'with BFD'*) |
| 4500 | @@ -7347,7 +7161,7 @@ |
| 4501 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4503 | else |
| 4504 | - # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 4505 | + # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4506 | case `$LD -v 2>&1 </dev/null` in |
| 4507 | *GNU* | *'with BFD'*) |
| 4508 | lt_cv_prog_gnu_ld=yes |
| 4509 | @@ -7377,6 +7191,15 @@ |
| 4510 | *) reload_flag=" $reload_flag" ;; |
| 4511 | esac |
| 4512 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4513 | +case $host_os in |
| 4514 | + darwin*) |
| 4515 | + if test "$GCC" = yes; then |
| 4516 | + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4517 | + else |
| 4518 | + reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4519 | + fi |
| 4520 | + ;; |
| 4521 | +esac |
| 4522 | |
| 4523 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4524 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 4525 | @@ -7387,36 +7210,43 @@ |
| 4526 | # Let the user override the test. |
| 4527 | lt_cv_path_NM="$NM" |
| 4528 | else |
| 4529 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4530 | - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 4531 | - IFS="$lt_save_ifs" |
| 4532 | - test -z "$ac_dir" && ac_dir=. |
| 4533 | - tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 4534 | - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4535 | - # Check to see if the nm accepts a BSD-compat flag. |
| 4536 | - # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4537 | - # nm: unknown option "B" ignored |
| 4538 | - # Tru64's nm complains that /dev/null is an invalid object file |
| 4539 | - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4540 | - */dev/null* | *'Invalid file or object type'*) |
| 4541 | - lt_cv_path_NM="$tmp_nm -B" |
| 4542 | - break |
| 4543 | - ;; |
| 4544 | - *) |
| 4545 | - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4546 | - */dev/null*) |
| 4547 | - lt_cv_path_NM="$tmp_nm -p" |
| 4548 | + lt_nm_to_check="${ac_tool_prefix}nm" |
| 4549 | + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4550 | + lt_nm_to_check="$lt_nm_to_check nm" |
| 4551 | + fi |
| 4552 | + for lt_tmp_nm in $lt_nm_to_check; do |
| 4553 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4554 | + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4555 | + IFS="$lt_save_ifs" |
| 4556 | + test -z "$ac_dir" && ac_dir=. |
| 4557 | + tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4558 | + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4559 | + # Check to see if the nm accepts a BSD-compat flag. |
| 4560 | + # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4561 | + # nm: unknown option "B" ignored |
| 4562 | + # Tru64's nm complains that /dev/null is an invalid object file |
| 4563 | + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4564 | + */dev/null* | *'Invalid file or object type'*) |
| 4565 | + lt_cv_path_NM="$tmp_nm -B" |
| 4566 | break |
| 4567 | ;; |
| 4568 | *) |
| 4569 | - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4570 | - continue # so that we can try to find one that supports BSD flags |
| 4571 | + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4572 | + */dev/null*) |
| 4573 | + lt_cv_path_NM="$tmp_nm -p" |
| 4574 | + break |
| 4575 | + ;; |
| 4576 | + *) |
| 4577 | + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4578 | + continue # so that we can try to find one that supports BSD flags |
| 4579 | + ;; |
| 4580 | + esac |
| 4581 | ;; |
| 4582 | esac |
| 4583 | - esac |
| 4584 | - fi |
| 4585 | + fi |
| 4586 | + done |
| 4587 | + IFS="$lt_save_ifs" |
| 4588 | done |
| 4589 | - IFS="$lt_save_ifs" |
| 4590 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4591 | fi |
| 4592 | fi |
| 4593 | @@ -7463,44 +7293,36 @@ |
| 4594 | lt_cv_deplibs_check_method=pass_all |
| 4595 | ;; |
| 4596 | |
| 4597 | -bsdi4*) |
| 4598 | +bsdi[45]*) |
| 4599 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4600 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4601 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4602 | ;; |
| 4603 | |
| 4604 | cygwin*) |
| 4605 | - lt_cv_deplibs_check_method=pass_all |
| 4606 | + # func_win32_libid is a shell function defined in ltmain.sh |
| 4607 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4608 | + lt_cv_file_magic_cmd='func_win32_libid' |
| 4609 | ;; |
| 4610 | |
| 4611 | mingw* | pw32*) |
| 4612 | - # win32_libid is a shell function defined in ltmain.sh |
| 4613 | - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4614 | - lt_cv_file_magic_cmd='win32_libid' |
| 4615 | + # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4616 | + # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4617 | + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4618 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4619 | ;; |
| 4620 | |
| 4621 | darwin* | rhapsody*) |
| 4622 | - # this will be overwritten by pass_all, but leave it in just in case |
| 4623 | - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 4624 | - lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4625 | - case "$host_os" in |
| 4626 | - rhapsody* | darwin1.[012]) |
| 4627 | - lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
| 4628 | - ;; |
| 4629 | - *) # Darwin 1.3 on |
| 4630 | - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 4631 | - ;; |
| 4632 | - esac |
| 4633 | lt_cv_deplibs_check_method=pass_all |
| 4634 | ;; |
| 4635 | |
| 4636 | -freebsd* | kfreebsd*-gnu) |
| 4637 | +freebsd* | dragonfly*) |
| 4638 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4639 | case $host_cpu in |
| 4640 | i*86 ) |
| 4641 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4642 | # Let's accept both of them until this is cleared up. |
| 4643 | - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 4644 | + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 4645 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4646 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4647 | ;; |
| 4648 | @@ -7516,7 +7338,7 @@ |
| 4649 | |
| 4650 | hpux10.20* | hpux11*) |
| 4651 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4652 | - case "$host_cpu" in |
| 4653 | + case $host_cpu in |
| 4654 | ia64*) |
| 4655 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4656 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4657 | @@ -7532,43 +7354,27 @@ |
| 4658 | esac |
| 4659 | ;; |
| 4660 | |
| 4661 | +interix3*) |
| 4662 | + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4663 | + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4664 | + ;; |
| 4665 | + |
| 4666 | irix5* | irix6* | nonstopux*) |
| 4667 | - case $host_os in |
| 4668 | - irix5* | nonstopux*) |
| 4669 | - # this will be overridden with pass_all, but let us keep it just in case |
| 4670 | - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 4671 | - ;; |
| 4672 | - *) |
| 4673 | - case $LD in |
| 4674 | - *-32|*"-32 ") libmagic=32-bit;; |
| 4675 | - *-n32|*"-n32 ") libmagic=N32;; |
| 4676 | - *-64|*"-64 ") libmagic=64-bit;; |
| 4677 | - *) libmagic=never-match;; |
| 4678 | - esac |
| 4679 | - # this will be overridden with pass_all, but let us keep it just in case |
| 4680 | - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 4681 | - ;; |
| 4682 | + case $LD in |
| 4683 | + *-32|*"-32 ") libmagic=32-bit;; |
| 4684 | + *-n32|*"-n32 ") libmagic=N32;; |
| 4685 | + *-64|*"-64 ") libmagic=64-bit;; |
| 4686 | + *) libmagic=never-match;; |
| 4687 | esac |
| 4688 | - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 4689 | lt_cv_deplibs_check_method=pass_all |
| 4690 | ;; |
| 4691 | |
| 4692 | # This must be Linux ELF. |
| 4693 | -linux*) |
| 4694 | - case $host_cpu in |
| 4695 | - alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* ) |
| 4696 | - lt_cv_deplibs_check_method=pass_all ;; |
| 4697 | - # the debian people say, arm and glibc 2.3.1 works for them with pass_all |
| 4698 | - arm* ) |
| 4699 | - lt_cv_deplibs_check_method=pass_all ;; |
| 4700 | - *) |
| 4701 | - # glibc up to 2.1.1 does not perform some relocations on ARM |
| 4702 | - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 4703 | - esac |
| 4704 | - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 4705 | +linux* | k*bsd*-gnu) |
| 4706 | + lt_cv_deplibs_check_method=pass_all |
| 4707 | ;; |
| 4708 | |
| 4709 | -netbsd*) |
| 4710 | +netbsd* | netbsdelf*-gnu) |
| 4711 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4712 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4713 | else |
| 4714 | @@ -7587,32 +7393,22 @@ |
| 4715 | ;; |
| 4716 | |
| 4717 | openbsd*) |
| 4718 | - lt_cv_file_magic_cmd=/usr/bin/file |
| 4719 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4720 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4721 | - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 4722 | + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 4723 | else |
| 4724 | - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 4725 | + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4726 | fi |
| 4727 | ;; |
| 4728 | |
| 4729 | osf3* | osf4* | osf5*) |
| 4730 | - # this will be overridden with pass_all, but let us keep it just in case |
| 4731 | - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 4732 | - lt_cv_file_magic_test_file=/shlib/libc.so |
| 4733 | - lt_cv_deplibs_check_method=pass_all |
| 4734 | - ;; |
| 4735 | - |
| 4736 | -sco3.2v5*) |
| 4737 | lt_cv_deplibs_check_method=pass_all |
| 4738 | ;; |
| 4739 | |
| 4740 | solaris*) |
| 4741 | lt_cv_deplibs_check_method=pass_all |
| 4742 | - lt_cv_file_magic_test_file=/lib/libc.so |
| 4743 | ;; |
| 4744 | |
| 4745 | -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4746 | +sysv4 | sysv4.3*) |
| 4747 | case $host_vendor in |
| 4748 | motorola) |
| 4749 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 4750 | @@ -7633,10 +7429,13 @@ |
| 4751 | siemens) |
| 4752 | lt_cv_deplibs_check_method=pass_all |
| 4753 | ;; |
| 4754 | + pc) |
| 4755 | + lt_cv_deplibs_check_method=pass_all |
| 4756 | + ;; |
| 4757 | esac |
| 4758 | ;; |
| 4759 | |
| 4760 | -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 4761 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4762 | lt_cv_deplibs_check_method=pass_all |
| 4763 | ;; |
| 4764 | esac |
| 4765 | @@ -7652,6 +7451,9 @@ |
| 4766 | # If no C compiler was specified, use CC. |
| 4767 | LTCC=${LTCC-"$CC"} |
| 4768 | |
| 4769 | +# If no C compiler flags were specified, use CFLAGS. |
| 4770 | +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 4771 | + |
| 4772 | # Allow CC to be a program name with arguments. |
| 4773 | compiler=$CC |
| 4774 | |
| 4775 | @@ -7686,7 +7488,7 @@ |
| 4776 | ;; |
| 4777 | *-*-irix6*) |
| 4778 | # Find out which ABI we are using. |
| 4779 | - echo '#line 7689 "configure"' > conftest.$ac_ext |
| 4780 | + echo '#line 7491 "configure"' > conftest.$ac_ext |
| 4781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4782 | (eval $ac_compile) 2>&5 |
| 4783 | ac_status=$? |
| 4784 | @@ -7729,14 +7531,13 @@ |
| 4785 | ac_status=$? |
| 4786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4787 | (exit $ac_status); }; then |
| 4788 | - case "`/usr/bin/file conftest.o`" in |
| 4789 | + case `/usr/bin/file conftest.o` in |
| 4790 | *32-bit*) |
| 4791 | - LINUX_64_MODE="32" |
| 4792 | case $host in |
| 4793 | x86_64-*linux*) |
| 4794 | LD="${LD-ld} -m elf_i386" |
| 4795 | ;; |
| 4796 | - ppc64-*linux*) |
| 4797 | + ppc64-*linux*|powerpc64-*linux*) |
| 4798 | LD="${LD-ld} -m elf32ppclinux" |
| 4799 | ;; |
| 4800 | s390x-*linux*) |
| 4801 | @@ -7748,7 +7549,6 @@ |
| 4802 | esac |
| 4803 | ;; |
| 4804 | *64-bit*) |
| 4805 | - LINUX_64_MODE="64" |
| 4806 | case $host in |
| 4807 | x86_64-*linux*) |
| 4808 | LD="${LD-ld} -m elf_x86_64" |
| 4809 | @@ -7808,8 +7608,7 @@ |
| 4810 | cat conftest.err >&5 |
| 4811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4812 | (exit $ac_status); } && |
| 4813 | - { ac_try='test -z "$ac_c_werror_flag" |
| 4814 | - || test ! -s conftest.err' |
| 4815 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4817 | (eval $ac_try) 2>&5 |
| 4818 | ac_status=$? |
| 4819 | @@ -7844,6 +7643,26 @@ |
| 4820 | CFLAGS="$SAVE_CFLAGS" |
| 4821 | fi |
| 4822 | ;; |
| 4823 | +sparc*-*solaris*) |
| 4824 | + # Find out which ABI we are using. |
| 4825 | + echo 'int i;' > conftest.$ac_ext |
| 4826 | + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4827 | + (eval $ac_compile) 2>&5 |
| 4828 | + ac_status=$? |
| 4829 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4830 | + (exit $ac_status); }; then |
| 4831 | + case `/usr/bin/file conftest.o` in |
| 4832 | + *64-bit*) |
| 4833 | + case $lt_cv_prog_gnu_ld in |
| 4834 | + yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 4835 | + *) LD="${LD-ld} -64" ;; |
| 4836 | + esac |
| 4837 | + ;; |
| 4838 | + esac |
| 4839 | + fi |
| 4840 | + rm -rf conftest* |
| 4841 | + ;; |
| 4842 | + |
| 4843 | |
| 4844 | esac |
| 4845 | |
| 4846 | @@ -7884,8 +7703,7 @@ |
| 4847 | cat conftest.err >&5 |
| 4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4849 | (exit $ac_status); } && |
| 4850 | - { ac_try='test -z "$ac_c_werror_flag" |
| 4851 | - || test ! -s conftest.err' |
| 4852 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4854 | (eval $ac_try) 2>&5 |
| 4855 | ac_status=$? |
| 4856 | @@ -8055,8 +7873,7 @@ |
| 4857 | cat conftest.err >&5 |
| 4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4859 | (exit $ac_status); } && |
| 4860 | - { ac_try='test -z "$ac_c_werror_flag" |
| 4861 | - || test ! -s conftest.err' |
| 4862 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4864 | (eval $ac_try) 2>&5 |
| 4865 | ac_status=$? |
| 4866 | @@ -8123,8 +7940,7 @@ |
| 4867 | cat conftest.err >&5 |
| 4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4869 | (exit $ac_status); } && |
| 4870 | - { ac_try='test -z "$ac_c_werror_flag" |
| 4871 | - || test ! -s conftest.err' |
| 4872 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4874 | (eval $ac_try) 2>&5 |
| 4875 | ac_status=$? |
| 4876 | @@ -8239,6 +8055,243 @@ |
| 4877 | |
| 4878 | done |
| 4879 | |
| 4880 | + |
| 4881 | + |
| 4882 | +if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 4883 | + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 4884 | + (test "X$CXX" != "Xg++"))) ; then |
| 4885 | + ac_ext=cc |
| 4886 | +ac_cpp='$CXXCPP $CPPFLAGS' |
| 4887 | +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4888 | +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4889 | +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4890 | +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4891 | +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4892 | +if test -z "$CXXCPP"; then |
| 4893 | + if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 4894 | + echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4895 | +else |
| 4896 | + # Double quotes because CXXCPP needs to be expanded |
| 4897 | + for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4898 | + do |
| 4899 | + ac_preproc_ok=false |
| 4900 | +for ac_cxx_preproc_warn_flag in '' yes |
| 4901 | +do |
| 4902 | + # Use a header file that comes with gcc, so configuring glibc |
| 4903 | + # with a fresh cross-compiler works. |
| 4904 | + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4905 | + # <limits.h> exists even on freestanding compilers. |
| 4906 | + # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4907 | + # not just through cpp. "Syntax error" is here to catch this case. |
| 4908 | + cat >conftest.$ac_ext <<_ACEOF |
| 4909 | +/* confdefs.h. */ |
| 4910 | +_ACEOF |
| 4911 | +cat confdefs.h >>conftest.$ac_ext |
| 4912 | +cat >>conftest.$ac_ext <<_ACEOF |
| 4913 | +/* end confdefs.h. */ |
| 4914 | +#ifdef __STDC__ |
| 4915 | +# include <limits.h> |
| 4916 | +#else |
| 4917 | +# include <assert.h> |
| 4918 | +#endif |
| 4919 | + Syntax error |
| 4920 | +_ACEOF |
| 4921 | +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4922 | + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4923 | + ac_status=$? |
| 4924 | + grep -v '^ *+' conftest.er1 >conftest.err |
| 4925 | + rm -f conftest.er1 |
| 4926 | + cat conftest.err >&5 |
| 4927 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4928 | + (exit $ac_status); } >/dev/null; then |
| 4929 | + if test -s conftest.err; then |
| 4930 | + ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4931 | + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4932 | + else |
| 4933 | + ac_cpp_err= |
| 4934 | + fi |
| 4935 | +else |
| 4936 | + ac_cpp_err=yes |
| 4937 | +fi |
| 4938 | +if test -z "$ac_cpp_err"; then |
| 4939 | + : |
| 4940 | +else |
| 4941 | + echo "$as_me: failed program was:" >&5 |
| 4942 | +sed 's/^/| /' conftest.$ac_ext >&5 |
| 4943 | + |
| 4944 | + # Broken: fails on valid input. |
| 4945 | +continue |
| 4946 | +fi |
| 4947 | +rm -f conftest.err conftest.$ac_ext |
| 4948 | + |
| 4949 | + # OK, works on sane cases. Now check whether non-existent headers |
| 4950 | + # can be detected and how. |
| 4951 | + cat >conftest.$ac_ext <<_ACEOF |
| 4952 | +/* confdefs.h. */ |
| 4953 | +_ACEOF |
| 4954 | +cat confdefs.h >>conftest.$ac_ext |
| 4955 | +cat >>conftest.$ac_ext <<_ACEOF |
| 4956 | +/* end confdefs.h. */ |
| 4957 | +#include <ac_nonexistent.h> |
| 4958 | +_ACEOF |
| 4959 | +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4960 | + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4961 | + ac_status=$? |
| 4962 | + grep -v '^ *+' conftest.er1 >conftest.err |
| 4963 | + rm -f conftest.er1 |
| 4964 | + cat conftest.err >&5 |
| 4965 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4966 | + (exit $ac_status); } >/dev/null; then |
| 4967 | + if test -s conftest.err; then |
| 4968 | + ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4969 | + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4970 | + else |
| 4971 | + ac_cpp_err= |
| 4972 | + fi |
| 4973 | +else |
| 4974 | + ac_cpp_err=yes |
| 4975 | +fi |
| 4976 | +if test -z "$ac_cpp_err"; then |
| 4977 | + # Broken: success on invalid input. |
| 4978 | +continue |
| 4979 | +else |
| 4980 | + echo "$as_me: failed program was:" >&5 |
| 4981 | +sed 's/^/| /' conftest.$ac_ext >&5 |
| 4982 | + |
| 4983 | + # Passes both tests. |
| 4984 | +ac_preproc_ok=: |
| 4985 | +break |
| 4986 | +fi |
| 4987 | +rm -f conftest.err conftest.$ac_ext |
| 4988 | + |
| 4989 | +done |
| 4990 | +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4991 | +rm -f conftest.err conftest.$ac_ext |
| 4992 | +if $ac_preproc_ok; then |
| 4993 | + break |
| 4994 | +fi |
| 4995 | + |
| 4996 | + done |
| 4997 | + ac_cv_prog_CXXCPP=$CXXCPP |
| 4998 | + |
| 4999 | +fi |
| 5000 | + CXXCPP=$ac_cv_prog_CXXCPP |
| 5001 | +else |
| 5002 | + ac_cv_prog_CXXCPP=$CXXCPP |
| 5003 | +fi |
| 5004 | +echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5005 | +echo "${ECHO_T}$CXXCPP" >&6 |
| 5006 | +ac_preproc_ok=false |
| 5007 | +for ac_cxx_preproc_warn_flag in '' yes |
| 5008 | +do |
| 5009 | + # Use a header file that comes with gcc, so configuring glibc |
| 5010 | + # with a fresh cross-compiler works. |
| 5011 | + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5012 | + # <limits.h> exists even on freestanding compilers. |
| 5013 | + # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5014 | + # not just through cpp. "Syntax error" is here to catch this case. |
| 5015 | + cat >conftest.$ac_ext <<_ACEOF |
| 5016 | +/* confdefs.h. */ |
| 5017 | +_ACEOF |
| 5018 | +cat confdefs.h >>conftest.$ac_ext |
| 5019 | +cat >>conftest.$ac_ext <<_ACEOF |
| 5020 | +/* end confdefs.h. */ |
| 5021 | +#ifdef __STDC__ |
| 5022 | +# include <limits.h> |
| 5023 | +#else |
| 5024 | +# include <assert.h> |
| 5025 | +#endif |
| 5026 | + Syntax error |
| 5027 | +_ACEOF |
| 5028 | +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5029 | + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5030 | + ac_status=$? |
| 5031 | + grep -v '^ *+' conftest.er1 >conftest.err |
| 5032 | + rm -f conftest.er1 |
| 5033 | + cat conftest.err >&5 |
| 5034 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5035 | + (exit $ac_status); } >/dev/null; then |
| 5036 | + if test -s conftest.err; then |
| 5037 | + ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5038 | + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5039 | + else |
| 5040 | + ac_cpp_err= |
| 5041 | + fi |
| 5042 | +else |
| 5043 | + ac_cpp_err=yes |
| 5044 | +fi |
| 5045 | +if test -z "$ac_cpp_err"; then |
| 5046 | + : |
| 5047 | +else |
| 5048 | + echo "$as_me: failed program was:" >&5 |
| 5049 | +sed 's/^/| /' conftest.$ac_ext >&5 |
| 5050 | + |
| 5051 | + # Broken: fails on valid input. |
| 5052 | +continue |
| 5053 | +fi |
| 5054 | +rm -f conftest.err conftest.$ac_ext |
| 5055 | + |
| 5056 | + # OK, works on sane cases. Now check whether non-existent headers |
| 5057 | + # can be detected and how. |
| 5058 | + cat >conftest.$ac_ext <<_ACEOF |
| 5059 | +/* confdefs.h. */ |
| 5060 | +_ACEOF |
| 5061 | +cat confdefs.h >>conftest.$ac_ext |
| 5062 | +cat >>conftest.$ac_ext <<_ACEOF |
| 5063 | +/* end confdefs.h. */ |
| 5064 | +#include <ac_nonexistent.h> |
| 5065 | +_ACEOF |
| 5066 | +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5067 | + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5068 | + ac_status=$? |
| 5069 | + grep -v '^ *+' conftest.er1 >conftest.err |
| 5070 | + rm -f conftest.er1 |
| 5071 | + cat conftest.err >&5 |
| 5072 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5073 | + (exit $ac_status); } >/dev/null; then |
| 5074 | + if test -s conftest.err; then |
| 5075 | + ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5076 | + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5077 | + else |
| 5078 | + ac_cpp_err= |
| 5079 | + fi |
| 5080 | +else |
| 5081 | + ac_cpp_err=yes |
| 5082 | +fi |
| 5083 | +if test -z "$ac_cpp_err"; then |
| 5084 | + # Broken: success on invalid input. |
| 5085 | +continue |
| 5086 | +else |
| 5087 | + echo "$as_me: failed program was:" >&5 |
| 5088 | +sed 's/^/| /' conftest.$ac_ext >&5 |
| 5089 | + |
| 5090 | + # Passes both tests. |
| 5091 | +ac_preproc_ok=: |
| 5092 | +break |
| 5093 | +fi |
| 5094 | +rm -f conftest.err conftest.$ac_ext |
| 5095 | + |
| 5096 | +done |
| 5097 | +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5098 | +rm -f conftest.err conftest.$ac_ext |
| 5099 | +if $ac_preproc_ok; then |
| 5100 | + : |
| 5101 | +else |
| 5102 | + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5103 | +See \`config.log' for more details." >&5 |
| 5104 | +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5105 | +See \`config.log' for more details." >&2;} |
| 5106 | + { (exit 1); exit 1; }; } |
| 5107 | +fi |
| 5108 | + |
| 5109 | +ac_ext=cc |
| 5110 | +ac_cpp='$CXXCPP $CPPFLAGS' |
| 5111 | +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5112 | +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5113 | +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5114 | + |
| 5115 | +fi |
| 5116 | + |
| 5117 | ac_ext=f |
| 5118 |