Parent Directory
|
Revision Log
Preparing upload
| 1 | #DPATCHLEVEL=0 |
| 2 | # vi: ft=diff |
| 3 | --- acinclude.m4 |
| 4 | +++ acinclude.m4 |
| 5 | @@ -1688,15 +1688,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 | @@ -2138,9 +2129,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 | @@ -3288,39 +3276,39 @@ |
| 32 | |
| 33 | if test "x$GXX" = "xyes"; then |
| 34 | kde_have_gcc_visibility=no |
| 35 | - KDE_CHECK_COMPILER_FLAG(fvisibility=hidden, |
| 36 | - [ |
| 37 | - kde_have_gcc_visibility=yes |
| 38 | - AC_CACHE_CHECK([if Qt is patched for -fvisibility], kde_cv_val_qt_gcc_visibility_patched, |
| 39 | - [ |
| 40 | - AC_LANG_SAVE |
| 41 | - AC_LANG_CPLUSPLUS |
| 42 | - |
| 43 | - safe_CXXFLAGS=$CXXFLAGS |
| 44 | - CXXFLAGS="$CXXFLAGS $all_includes" |
| 45 | - |
| 46 | - AC_TRY_COMPILE( |
| 47 | - [ |
| 48 | -#include <qglobal.h> |
| 49 | -#if Q_EXPORT - 0 != 0 |
| 50 | -/* if this compiles, then Q_EXPORT is undefined */ |
| 51 | -/* if Q_EXPORT is nonempty, this will break compilation */ |
| 52 | -#endif |
| 53 | - ], [/* elvis is alive */], |
| 54 | - kde_cv_val_qt_gcc_visibility_patched=no, kde_cv_val_qt_gcc_visibility_patched=yes) |
| 55 | - |
| 56 | - CXXFLAGS=$safe_CXXFLAGS |
| 57 | - AC_LANG_RESTORE |
| 58 | - ] |
| 59 | - ) |
| 60 | - |
| 61 | - if test x$kde_cv_val_qt_gcc_visibility_patched = "xyes"; then |
| 62 | - CXXFLAGS="$CXXFLAGS -fvisibility=hidden" |
| 63 | - KDE_CHECK_VISIBILITY_GCC_BUG |
| 64 | - HAVE_GCC_VISIBILITY=1 |
| 65 | - AC_DEFINE_UNQUOTED(__KDE_HAVE_GCC_VISIBILITY, "$HAVE_GCC_VISIBILITY", [define to 1 if -fvisibility is supported]) |
| 66 | - fi |
| 67 | - ]) |
| 68 | +dnl KDE_CHECK_COMPILER_FLAG(fvisibility=hidden, |
| 69 | +dnl [ |
| 70 | +dnl kde_have_gcc_visibility=yes |
| 71 | +dnl AC_CACHE_CHECK([if Qt is patched for -fvisibility], kde_cv_val_qt_gcc_visibility_patched, |
| 72 | +dnl [ |
| 73 | +dnl AC_LANG_SAVE |
| 74 | +dnl AC_LANG_CPLUSPLUS |
| 75 | +dnl |
| 76 | +dnl safe_CXXFLAGS=$CXXFLAGS |
| 77 | +dnl CXXFLAGS="$CXXFLAGS $all_includes" |
| 78 | +dnl |
| 79 | +dnl AC_TRY_COMPILE( |
| 80 | +dnl [ |
| 81 | +dnl #include <qglobal.h> |
| 82 | +dnl #if Q_EXPORT - 0 != 0 |
| 83 | +dnl /* if this compiles, then Q_EXPORT is undefined */ |
| 84 | +dnl /* if Q_EXPORT is nonempty, this will break compilation */ |
| 85 | +dnl #endif |
| 86 | +dnl ], [/* elvis is alive */], |
| 87 | +dnl kde_cv_val_qt_gcc_visibility_patched=no, kde_cv_val_qt_gcc_visibility_patched=yes) |
| 88 | +dnl |
| 89 | +dnl CXXFLAGS=$safe_CXXFLAGS |
| 90 | +dnl AC_LANG_RESTORE |
| 91 | +dnl ] |
| 92 | +dnl ) |
| 93 | +dnl |
| 94 | +dnl if test x$kde_cv_val_qt_gcc_visibility_patched = "xyes"; then |
| 95 | +dnl CXXFLAGS="$CXXFLAGS -fvisibility=hidden" |
| 96 | +dnl KDE_CHECK_VISIBILITY_GCC_BUG |
| 97 | +dnl HAVE_GCC_VISIBILITY=1 |
| 98 | +dnl AC_DEFINE_UNQUOTED(__KDE_HAVE_GCC_VISIBILITY, "$HAVE_GCC_VISIBILITY", [define to 1 if -fvisibility is supported]) |
| 99 | +dnl fi |
| 100 | +dnl ]) |
| 101 | fi |
| 102 | ]) |
| 103 | |
| 104 | @@ -5799,6 +5787,7 @@ |
| 105 | ## the same distribution terms that you use for the rest of that program. |
| 106 | |
| 107 | # serial 47 AC_PROG_LIBTOOL |
| 108 | +# Debian $Rev: 214 $ |
| 109 | |
| 110 | |
| 111 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
| 112 | @@ -5858,7 +5847,7 @@ |
| 113 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 114 | |
| 115 | # Always use our own libtool. |
| 116 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' |
| 117 | +LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 118 | AC_SUBST(LIBTOOL)dnl |
| 119 | |
| 120 | # Prevent multiple expansion |
| 121 | @@ -6272,12 +6261,11 @@ |
| 122 | if AC_TRY_EVAL(ac_compile); then |
| 123 | case "`/usr/bin/file conftest.o`" in |
| 124 | *32-bit*) |
| 125 | - LINUX_64_MODE="32" |
| 126 | case $host in |
| 127 | x86_64-*linux*) |
| 128 | LD="${LD-ld} -m elf_i386" |
| 129 | ;; |
| 130 | - ppc64-*linux*) |
| 131 | + ppc64-*linux*|powerpc64-*linux*) |
| 132 | LD="${LD-ld} -m elf32ppclinux" |
| 133 | ;; |
| 134 | s390x-*linux*) |
| 135 | @@ -6289,7 +6277,6 @@ |
| 136 | esac |
| 137 | ;; |
| 138 | *64-bit*) |
| 139 | - LINUX_64_MODE="64" |
| 140 | case $host in |
| 141 | x86_64-*linux*) |
| 142 | LD="${LD-ld} -m elf_x86_64" |
| 143 | @@ -6419,7 +6406,7 @@ |
| 144 | AC_MSG_CHECKING([the maximum length of command line arguments]) |
| 145 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
| 146 | i=0 |
| 147 | - testring="ABCD" |
| 148 | + teststring="ABCD" |
| 149 | |
| 150 | case $build_os in |
| 151 | msdosdjgpp*) |
| 152 | @@ -6448,20 +6435,26 @@ |
| 153 | lt_cv_sys_max_cmd_len=8192; |
| 154 | ;; |
| 155 | |
| 156 | + amigaos*) |
| 157 | + # On AmigaOS with pdksh, this test takes hours, literally. |
| 158 | + # So we just punt and use a minimum line length of 8192. |
| 159 | + lt_cv_sys_max_cmd_len=8192; |
| 160 | + ;; |
| 161 | + |
| 162 | *) |
| 163 | # If test is not a shell built-in, we'll probably end up computing a |
| 164 | # maximum length that is only half of the actual maximum length, but |
| 165 | # we can't tell. |
| 166 | - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 167 | - = "XX$testring") >/dev/null 2>&1 && |
| 168 | - new_result=`expr "X$testring" : ".*" 2>&1` && |
| 169 | + while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 170 | + = "XX$teststring") >/dev/null 2>&1 && |
| 171 | + new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 172 | lt_cv_sys_max_cmd_len=$new_result && |
| 173 | test $i != 17 # 1/2 MB should be enough |
| 174 | do |
| 175 | i=`expr $i + 1` |
| 176 | - testring=$testring$testring |
| 177 | + teststring=$teststring$teststring |
| 178 | done |
| 179 | - testring= |
| 180 | + teststring= |
| 181 | # Add a significant safety factor because C++ compilers can tack on massive |
| 182 | # amounts of additional arguments before passing them to the linker. |
| 183 | # It appears as though 1/2 is a usable value. |
| 184 | @@ -6611,7 +6604,7 @@ |
| 185 | lt_cv_dlopen_self=yes |
| 186 | ]) |
| 187 | ;; |
| 188 | - |
| 189 | + |
| 190 | *) |
| 191 | AC_CHECK_FUNC([shl_load], |
| 192 | [lt_cv_dlopen="shl_load"], |
| 193 | @@ -6700,13 +6693,6 @@ |
| 194 | mkdir out |
| 195 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 196 | |
| 197 | - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 198 | - # that will create temporary files in the current directory regardless of |
| 199 | - # the output directory. Thus, making CWD read-only will cause this test |
| 200 | - # to fail, enabling locking or at least warning the user not to do parallel |
| 201 | - # builds. |
| 202 | - chmod -w . |
| 203 | - |
| 204 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 205 | # Insert the option either (1) after the last *FLAGS variable, or |
| 206 | # (2) before a word containing "conftest.", or (3) at the end. |
| 207 | @@ -6730,8 +6716,11 @@ |
| 208 | fi |
| 209 | fi |
| 210 | chmod u+w . |
| 211 | - $rm conftest* out/* |
| 212 | - rmdir out |
| 213 | + $rm conftest* |
| 214 | + # SGI C++ compiler will create directory out/ii_files/ for |
| 215 | + # template instantiation |
| 216 | + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 217 | + $rm out/* && rmdir out |
| 218 | cd .. |
| 219 | rmdir conftest |
| 220 | $rm conftest* |
| 221 | @@ -6848,7 +6837,7 @@ |
| 222 | *) |
| 223 | AC_MSG_RESULT([no]) |
| 224 | ;; |
| 225 | - esac |
| 226 | + esac |
| 227 | fi |
| 228 | ])# AC_LIBTOOL_SYS_LIB_STRIP |
| 229 | |
| 230 | @@ -6861,7 +6850,7 @@ |
| 231 | library_names_spec= |
| 232 | libname_spec='lib$name' |
| 233 | soname_spec= |
| 234 | -shrext=".so" |
| 235 | +shrext_cmds=".so" |
| 236 | postinstall_cmds= |
| 237 | postuninstall_cmds= |
| 238 | finish_cmds= |
| 239 | @@ -6871,7 +6860,20 @@ |
| 240 | version_type=none |
| 241 | dynamic_linker="$host_os ld.so" |
| 242 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 243 | -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 244 | +if test "$GCC" = yes; then |
| 245 | + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 246 | + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 247 | + # if the path contains ";" then we assume it to be the separator |
| 248 | + # otherwise default to the standard path separator (i.e. ":") - it is |
| 249 | + # assumed that no part of a normal pathname contains ";" but that should |
| 250 | + # okay in the real world where ";" in dirpaths is itself problematic. |
| 251 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 252 | + else |
| 253 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 254 | + fi |
| 255 | +else |
| 256 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 257 | +fi |
| 258 | need_lib_prefix=unknown |
| 259 | hardcode_into_libs=no |
| 260 | |
| 261 | @@ -6936,7 +6938,7 @@ |
| 262 | amigaos*) |
| 263 | library_names_spec='$libname.ixlibrary $libname.a' |
| 264 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 265 | - 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' |
| 266 | + 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' |
| 267 | ;; |
| 268 | |
| 269 | beos*) |
| 270 | @@ -6961,7 +6963,7 @@ |
| 271 | |
| 272 | cygwin* | mingw* | pw32*) |
| 273 | version_type=windows |
| 274 | - shrext=".dll" |
| 275 | + shrext_cmds=".dll" |
| 276 | need_version=no |
| 277 | need_lib_prefix=no |
| 278 | |
| 279 | @@ -7026,7 +7028,7 @@ |
| 280 | soname_spec='${libname}${release}${major}$shared_ext' |
| 281 | shlibpath_overrides_runpath=yes |
| 282 | shlibpath_var=DYLD_LIBRARY_PATH |
| 283 | - shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 284 | + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 285 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 286 | if test "$GCC" = yes; then |
| 287 | 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"` |
| 288 | @@ -7049,7 +7051,7 @@ |
| 289 | dynamic_linker=no |
| 290 | ;; |
| 291 | |
| 292 | -freebsd*-gnu*) |
| 293 | +kfreebsd*-gnu) |
| 294 | version_type=linux |
| 295 | need_lib_prefix=no |
| 296 | need_version=no |
| 297 | @@ -7109,7 +7111,7 @@ |
| 298 | need_version=no |
| 299 | case "$host_cpu" in |
| 300 | ia64*) |
| 301 | - shrext='.so' |
| 302 | + shrext_cmds='.so' |
| 303 | hardcode_into_libs=yes |
| 304 | dynamic_linker="$host_os dld.so" |
| 305 | shlibpath_var=LD_LIBRARY_PATH |
| 306 | @@ -7124,7 +7126,7 @@ |
| 307 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 308 | ;; |
| 309 | hppa*64*) |
| 310 | - shrext='.sl' |
| 311 | + shrext_cmds='.sl' |
| 312 | hardcode_into_libs=yes |
| 313 | dynamic_linker="$host_os dld.sl" |
| 314 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 315 | @@ -7135,7 +7137,7 @@ |
| 316 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 317 | ;; |
| 318 | *) |
| 319 | - shrext='.sl' |
| 320 | + shrext_cmds='.sl' |
| 321 | dynamic_linker="$host_os dld.sl" |
| 322 | shlibpath_var=SHLIB_PATH |
| 323 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 324 | @@ -7197,22 +7199,19 @@ |
| 325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 326 | soname_spec='${libname}${release}${shared_ext}$major' |
| 327 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 328 | - libsuff= |
| 329 | - if test "x$LINUX_64_MODE" = x64; then |
| 330 | - # Some platforms are per default 64-bit, so there's no /lib64 |
| 331 | - if test -d /lib64; then |
| 332 | - libsuff=64 |
| 333 | - fi |
| 334 | - fi |
| 335 | shlibpath_var=LD_LIBRARY_PATH |
| 336 | shlibpath_overrides_runpath=no |
| 337 | - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
| 338 | - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
| 339 | # This implies no fast_install, which is unacceptable. |
| 340 | # Some rework will be needed to allow for fast_install |
| 341 | # before this can be enabled. |
| 342 | hardcode_into_libs=yes |
| 343 | |
| 344 | + # Append ld.so.conf contents to the search path |
| 345 | + if test -f /etc/ld.so.conf; then |
| 346 | + lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 347 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 348 | + fi |
| 349 | + |
| 350 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 351 | # powerpc, because MkLinux only supported shared libraries with the |
| 352 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 353 | @@ -7222,6 +7221,30 @@ |
| 354 | dynamic_linker='GNU/Linux ld.so' |
| 355 | ;; |
| 356 | |
| 357 | +netbsdelf*-gnu) |
| 358 | + version_type=linux |
| 359 | + need_lib_prefix=no |
| 360 | + need_version=no |
| 361 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 362 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 363 | + shlibpath_var=LD_LIBRARY_PATH |
| 364 | + shlibpath_overrides_runpath=no |
| 365 | + hardcode_into_libs=yes |
| 366 | + dynamic_linker='NetBSD ld.elf_so' |
| 367 | + ;; |
| 368 | + |
| 369 | +knetbsd*-gnu) |
| 370 | + version_type=linux |
| 371 | + need_lib_prefix=no |
| 372 | + need_version=no |
| 373 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 374 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 375 | + shlibpath_var=LD_LIBRARY_PATH |
| 376 | + shlibpath_overrides_runpath=no |
| 377 | + hardcode_into_libs=yes |
| 378 | + dynamic_linker='GNU ld.so' |
| 379 | + ;; |
| 380 | + |
| 381 | netbsd*) |
| 382 | version_type=sunos |
| 383 | need_lib_prefix=no |
| 384 | @@ -7231,7 +7254,7 @@ |
| 385 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 386 | dynamic_linker='NetBSD (a.out) ld.so' |
| 387 | else |
| 388 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 389 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 390 | soname_spec='${libname}${release}${shared_ext}$major' |
| 391 | dynamic_linker='NetBSD ld.elf_so' |
| 392 | fi |
| 393 | @@ -7260,7 +7283,7 @@ |
| 394 | openbsd*) |
| 395 | version_type=sunos |
| 396 | need_lib_prefix=no |
| 397 | - need_version=no |
| 398 | + need_version=yes |
| 399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 400 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 401 | shlibpath_var=LD_LIBRARY_PATH |
| 402 | @@ -7280,7 +7303,7 @@ |
| 403 | |
| 404 | os2*) |
| 405 | libname_spec='$name' |
| 406 | - shrext=".dll" |
| 407 | + shrext_cmds=".dll" |
| 408 | need_lib_prefix=no |
| 409 | library_names_spec='$libname${shared_ext} $libname.a' |
| 410 | dynamic_linker='OS/2 ld.exe' |
| 411 | @@ -7871,31 +7894,23 @@ |
| 412 | ;; |
| 413 | |
| 414 | cygwin*) |
| 415 | - lt_cv_deplibs_check_method=pass_all |
| 416 | + # func_win32_libid is a shell function defined in ltmain.sh |
| 417 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 418 | + lt_cv_file_magic_cmd='func_win32_libid' |
| 419 | ;; |
| 420 | - |
| 421 | + |
| 422 | mingw* | pw32*) |
| 423 | - # win32_libid is a shell function defined in ltmain.sh |
| 424 | - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 425 | - lt_cv_file_magic_cmd='win32_libid' |
| 426 | + # Base MSYS/MinGW do not provide the 'file' command needed by |
| 427 | + # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 428 | + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 429 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 430 | ;; |
| 431 | |
| 432 | darwin* | rhapsody*) |
| 433 | - # this will be overwritten by pass_all, but leave it in just in case |
| 434 | - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 435 | - lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 436 | - case "$host_os" in |
| 437 | - rhapsody* | darwin1.[[012]]) |
| 438 | - lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
| 439 | - ;; |
| 440 | - *) # Darwin 1.3 on |
| 441 | - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 442 | - ;; |
| 443 | - esac |
| 444 | lt_cv_deplibs_check_method=pass_all |
| 445 | ;; |
| 446 | |
| 447 | -freebsd*) |
| 448 | +freebsd* | kfreebsd*-gnu) |
| 449 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 450 | case $host_cpu in |
| 451 | i*86 ) |
| 452 | @@ -7934,42 +7949,21 @@ |
| 453 | ;; |
| 454 | |
| 455 | irix5* | irix6* | nonstopux*) |
| 456 | - case $host_os in |
| 457 | - irix5* | nonstopux*) |
| 458 | - # this will be overridden with pass_all, but let us keep it just in case |
| 459 | - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 460 | - ;; |
| 461 | - *) |
| 462 | - case $LD in |
| 463 | - *-32|*"-32 ") libmagic=32-bit;; |
| 464 | - *-n32|*"-n32 ") libmagic=N32;; |
| 465 | - *-64|*"-64 ") libmagic=64-bit;; |
| 466 | - *) libmagic=never-match;; |
| 467 | - esac |
| 468 | - # this will be overridden with pass_all, but let us keep it just in case |
| 469 | - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" |
| 470 | - ;; |
| 471 | + case $LD in |
| 472 | + *-32|*"-32 ") libmagic=32-bit;; |
| 473 | + *-n32|*"-n32 ") libmagic=N32;; |
| 474 | + *-64|*"-64 ") libmagic=64-bit;; |
| 475 | + *) libmagic=never-match;; |
| 476 | esac |
| 477 | - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 478 | lt_cv_deplibs_check_method=pass_all |
| 479 | ;; |
| 480 | |
| 481 | # This must be Linux ELF. |
| 482 | linux*) |
| 483 | - case $host_cpu in |
| 484 | - alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* ) |
| 485 | - lt_cv_deplibs_check_method=pass_all ;; |
| 486 | - # the debian people say, arm and glibc 2.3.1 works for them with pass_all |
| 487 | - arm* ) |
| 488 | - lt_cv_deplibs_check_method=pass_all ;; |
| 489 | - *) |
| 490 | - # glibc up to 2.1.1 does not perform some relocations on ARM |
| 491 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
| 492 | - esac |
| 493 | - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 494 | + lt_cv_deplibs_check_method=pass_all |
| 495 | ;; |
| 496 | |
| 497 | -netbsd*) |
| 498 | +netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 499 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 500 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 501 | else |
| 502 | @@ -7998,9 +7992,6 @@ |
| 503 | ;; |
| 504 | |
| 505 | osf3* | osf4* | osf5*) |
| 506 | - # this will be overridden with pass_all, but let us keep it just in case |
| 507 | - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 508 | - lt_cv_file_magic_test_file=/shlib/libc.so |
| 509 | lt_cv_deplibs_check_method=pass_all |
| 510 | ;; |
| 511 | |
| 512 | @@ -8010,7 +8001,6 @@ |
| 513 | |
| 514 | solaris*) |
| 515 | lt_cv_deplibs_check_method=pass_all |
| 516 | - lt_cv_file_magic_test_file=/lib/libc.so |
| 517 | ;; |
| 518 | |
| 519 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 520 | @@ -8276,7 +8266,7 @@ |
| 521 | fi |
| 522 | if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
| 523 | AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
| 524 | - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : |
| 525 | + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : |
| 526 | else |
| 527 | AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
| 528 | _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
| 529 | @@ -8326,7 +8316,7 @@ |
| 530 | fi |
| 531 | ;; |
| 532 | |
| 533 | -aix4*) |
| 534 | +aix4* | aix5*) |
| 535 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 536 | test "$enable_shared" = yes && enable_static=no |
| 537 | fi |
| 538 | @@ -8336,29 +8326,29 @@ |
| 539 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 540 | case "$host_os" in |
| 541 | rhapsody* | darwin1.[[012]]) |
| 542 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' |
| 543 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
| 544 | ;; |
| 545 | *) # Darwin 1.3 on |
| 546 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 547 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 548 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| 549 | else |
| 550 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 551 | - 10.[012]) |
| 552 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 553 | - ;; |
| 554 | - 10.*) |
| 555 | - allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' |
| 556 | - ;; |
| 557 | - esac |
| 558 | + case ${MACOSX_DEPLOYMENT_TARGET} in |
| 559 | + 10.[[012]]) |
| 560 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| 561 | + ;; |
| 562 | + 10.*) |
| 563 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
| 564 | + ;; |
| 565 | + esac |
| 566 | fi |
| 567 | ;; |
| 568 | esac |
| 569 | output_verbose_link_cmd='echo' |
| 570 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 571 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 572 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 573 | + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 574 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 575 | - _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}' |
| 576 | - _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}' |
| 577 | + _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}' |
| 578 | + _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}' |
| 579 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 580 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 581 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 582 | @@ -8366,8 +8356,8 @@ |
| 583 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 584 | else |
| 585 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 586 | - fi |
| 587 | - ;; |
| 588 | + fi |
| 589 | + ;; |
| 590 | esac |
| 591 | AC_MSG_RESULT([$enable_shared]) |
| 592 | |
| 593 | @@ -8475,8 +8465,8 @@ |
| 594 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 595 | # archiving commands below assume that GNU ld is being used. |
| 596 | if test "$with_gnu_ld" = yes; then |
| 597 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
| 598 | - _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' |
| 599 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 600 | + _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' |
| 601 | |
| 602 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 603 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 604 | @@ -8502,7 +8492,7 @@ |
| 605 | # linker, instead of GNU ld. If possible, this setting should |
| 606 | # overridden to take advantage of the native linker features on |
| 607 | # the platform it is being used on. |
| 608 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib' |
| 609 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 610 | fi |
| 611 | |
| 612 | # Commands to make compiler produce verbose output that lists |
| 613 | @@ -8532,8 +8522,22 @@ |
| 614 | exp_sym_flag='-Bexport' |
| 615 | no_entry_flag="" |
| 616 | else |
| 617 | - # KDE requires run time linking. Make it the default. |
| 618 | - aix_use_runtimelinking=yes |
| 619 | + aix_use_runtimelinking=no |
| 620 | + |
| 621 | + # Test if we are trying to use run time linking or normal |
| 622 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 623 | + # need to do runtime linking. |
| 624 | + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 625 | + for ld_flag in $LDFLAGS; do |
| 626 | + case $ld_flag in |
| 627 | + *-brtl*) |
| 628 | + aix_use_runtimelinking=yes |
| 629 | + break |
| 630 | + ;; |
| 631 | + esac |
| 632 | + done |
| 633 | + esac |
| 634 | + |
| 635 | exp_sym_flag='-bexport' |
| 636 | no_entry_flag='-bnoentry' |
| 637 | fi |
| 638 | @@ -8579,15 +8583,16 @@ |
| 639 | shared_flag='-G' |
| 640 | else |
| 641 | if test "$aix_use_runtimelinking" = yes; then |
| 642 | - shared_flag='-qmkshrobj ${wl}-G' |
| 643 | + shared_flag='${wl}-G' |
| 644 | else |
| 645 | - shared_flag='-qmkshrobj' |
| 646 | + shared_flag='${wl}-bM:SRE' |
| 647 | fi |
| 648 | fi |
| 649 | fi |
| 650 | |
| 651 | - # Let the compiler handle the export list. |
| 652 | - _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 653 | + # It seems that -bexpall does not export symbols beginning with |
| 654 | + # underscore (_), so it is better to generate a list of symbols to export. |
| 655 | + _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 656 | if test "$aix_use_runtimelinking" = yes; then |
| 657 | # Warning - without using the other runtime loading flags (-brtl), |
| 658 | # -berok will link without error, but may produce a broken library. |
| 659 | @@ -8596,13 +8601,12 @@ |
| 660 | _LT_AC_SYS_LIBPATH_AIX |
| 661 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 662 | |
| 663 | - _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" |
| 664 | - _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" |
| 665 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 666 | else |
| 667 | if test "$host_cpu" = ia64; then |
| 668 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 669 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 670 | - _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" |
| 671 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 672 | else |
| 673 | # Determine the default libpath from the value encoded in an empty executable. |
| 674 | _LT_AC_SYS_LIBPATH_AIX |
| 675 | @@ -8617,7 +8621,7 @@ |
| 676 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
| 677 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 678 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 679 | - _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' |
| 680 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 681 | fi |
| 682 | fi |
| 683 | ;; |
| 684 | @@ -8634,12 +8638,12 @@ |
| 685 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 686 | # as there is no search path for DLLs. |
| 687 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 688 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no |
| 689 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 690 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 691 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 692 | |
| 693 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 694 | - _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' |
| 695 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 696 | # If the export-symbols file already is a .def file (1st line |
| 697 | # is EXPORTS), use it as is; otherwise, prepend... |
| 698 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 699 | @@ -8648,7 +8652,7 @@ |
| 700 | echo EXPORTS > $output_objdir/$soname.def; |
| 701 | cat $export_symbols >> $output_objdir/$soname.def; |
| 702 | fi~ |
| 703 | - $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' |
| 704 | + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 705 | else |
| 706 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 707 | fi |
| 708 | @@ -8659,20 +8663,20 @@ |
| 709 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 710 | case "$host_os" in |
| 711 | rhapsody* | darwin1.[[012]]) |
| 712 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' |
| 713 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
| 714 | ;; |
| 715 | *) # Darwin 1.3 on |
| 716 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 717 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 718 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| 719 | else |
| 720 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 721 | - 10.[012]) |
| 722 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 723 | - ;; |
| 724 | - 10.*) |
| 725 | - allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' |
| 726 | - ;; |
| 727 | - esac |
| 728 | + case ${MACOSX_DEPLOYMENT_TARGET} in |
| 729 | + 10.[[012]]) |
| 730 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| 731 | + ;; |
| 732 | + 10.*) |
| 733 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
| 734 | + ;; |
| 735 | + esac |
| 736 | fi |
| 737 | ;; |
| 738 | esac |
| 739 | @@ -8682,19 +8686,19 @@ |
| 740 | lt_int_apple_cc_single_mod=yes |
| 741 | fi |
| 742 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 743 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 744 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 745 | else |
| 746 | - _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' |
| 747 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 748 | fi |
| 749 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 750 | + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 751 | |
| 752 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 753 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 754 | - _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}' |
| 755 | + _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}' |
| 756 | else |
| 757 | - _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}' |
| 758 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 759 | fi |
| 760 | - _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}' |
| 761 | + _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}' |
| 762 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 763 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 764 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 765 | @@ -8729,7 +8733,7 @@ |
| 766 | freebsd-elf*) |
| 767 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 768 | ;; |
| 769 | - freebsd*) |
| 770 | + freebsd* | kfreebsd*-gnu) |
| 771 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 772 | # conventions |
| 773 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 774 | @@ -8751,7 +8755,7 @@ |
| 775 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 776 | ;; |
| 777 | aCC) |
| 778 | - _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' |
| 779 | + _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' |
| 780 | # Commands to make compiler produce verbose output that lists |
| 781 | # what "hidden" libraries, object files and flags are used when |
| 782 | # linking a shared library. |
| 783 | @@ -8760,11 +8764,11 @@ |
| 784 | # explicitly linking system object files so we need to strip them |
| 785 | # from the output so that they don't get included in the library |
| 786 | # dependencies. |
| 787 | - 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' |
| 788 | + 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' |
| 789 | ;; |
| 790 | *) |
| 791 | if test "$GXX" = yes; then |
| 792 | - _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' |
| 793 | + _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' |
| 794 | else |
| 795 | # FIXME: insert proper C++ library support |
| 796 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 797 | @@ -8821,7 +8825,7 @@ |
| 798 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 799 | ;; |
| 800 | *) |
| 801 | - _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' |
| 802 | + _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' |
| 803 | ;; |
| 804 | esac |
| 805 | # Commands to make compiler produce verbose output that lists |
| 806 | @@ -8842,7 +8846,7 @@ |
| 807 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 808 | ;; |
| 809 | *) |
| 810 | - _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' |
| 811 | + _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' |
| 812 | ;; |
| 813 | esac |
| 814 | fi |
| 815 | @@ -8857,7 +8861,7 @@ |
| 816 | case $cc_basename in |
| 817 | CC) |
| 818 | # SGI C++ |
| 819 | - _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' |
| 820 | + _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 ${objdir}/so_locations -o $lib' |
| 821 | |
| 822 | # Archives containing C++ object files must be created using |
| 823 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 824 | @@ -8868,9 +8872,9 @@ |
| 825 | *) |
| 826 | if test "$GXX" = yes; then |
| 827 | if test "$with_gnu_ld" = no; then |
| 828 | - _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' |
| 829 | + _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}${objdir}/so_locations -o $lib' |
| 830 | else |
| 831 | - _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' |
| 832 | + _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' |
| 833 | fi |
| 834 | fi |
| 835 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 836 | @@ -8887,8 +8891,8 @@ |
| 837 | # KCC will only create a shared library if the output file |
| 838 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 839 | # to its proper name (with version) after linking. |
| 840 | - _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' |
| 841 | - _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' |
| 842 | + _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' |
| 843 | + _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' |
| 844 | # Commands to make compiler produce verbose output that lists |
| 845 | # what "hidden" libraries, object files and flags are used when |
| 846 | # linking a shared library. |
| 847 | @@ -8910,16 +8914,16 @@ |
| 848 | # Intel C++ |
| 849 | with_gnu_ld=yes |
| 850 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 851 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
| 852 | - _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' |
| 853 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 854 | + _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' |
| 855 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 856 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 857 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 858 | ;; |
| 859 | cxx) |
| 860 | # Compaq C++ |
| 861 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
| 862 | - _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' |
| 863 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 864 | + _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' |
| 865 | |
| 866 | runpath_var=LD_RUN_PATH |
| 867 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 868 | @@ -8957,7 +8961,7 @@ |
| 869 | ;; |
| 870 | esac |
| 871 | ;; |
| 872 | - netbsd*) |
| 873 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 874 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 875 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 876 | wlarc= |
| 877 | @@ -8976,7 +8980,7 @@ |
| 878 | # KCC will only create a shared library if the output file |
| 879 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 880 | # to its proper name (with version) after linking. |
| 881 | - _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' |
| 882 | + _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' |
| 883 | |
| 884 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 885 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 886 | @@ -8993,7 +8997,7 @@ |
| 887 | ;; |
| 888 | cxx) |
| 889 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 890 | - _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' |
| 891 | + _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 ${objdir}/so_locations -o $lib' |
| 892 | |
| 893 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 894 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 895 | @@ -9011,7 +9015,7 @@ |
| 896 | *) |
| 897 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 898 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 899 | - _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' |
| 900 | + _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}${objdir}/so_locations -o $lib' |
| 901 | |
| 902 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 903 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 904 | @@ -9036,7 +9040,7 @@ |
| 905 | # KCC will only create a shared library if the output file |
| 906 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 907 | # to its proper name (with version) after linking. |
| 908 | - _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' |
| 909 | + _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' |
| 910 | |
| 911 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 912 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 913 | @@ -9052,10 +9056,10 @@ |
| 914 | ;; |
| 915 | cxx) |
| 916 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 917 | - _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' |
| 918 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 919 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 920 | echo "-hidden">> $lib.exp~ |
| 921 | - $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~ |
| 922 | + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
| 923 | $rm $lib.exp' |
| 924 | |
| 925 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 926 | @@ -9074,7 +9078,7 @@ |
| 927 | *) |
| 928 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 929 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 930 | - _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' |
| 931 | + _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}${objdir}/so_locations -o $lib' |
| 932 | |
| 933 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 934 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 935 | @@ -9131,9 +9135,9 @@ |
| 936 | CC) |
| 937 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 938 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 939 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
| 940 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 941 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 942 | - $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' |
| 943 | + $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 944 | |
| 945 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 946 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 947 | @@ -9167,7 +9171,7 @@ |
| 948 | ;; |
| 949 | gcx) |
| 950 | # Green Hills C++ Compiler |
| 951 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
| 952 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 953 | |
| 954 | # The C++ compiler must be used to create the archive. |
| 955 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 956 | @@ -9177,9 +9181,9 @@ |
| 957 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 958 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
| 959 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 960 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
| 961 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 962 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 963 | - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
| 964 | + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 965 | |
| 966 | # Commands to make compiler produce verbose output that lists |
| 967 | # what "hidden" libraries, object files and flags are used when |
| 968 | @@ -9188,9 +9192,9 @@ |
| 969 | else |
| 970 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 971 | # platform. |
| 972 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
| 973 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 974 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 975 | - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
| 976 | + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 977 | |
| 978 | # Commands to make compiler produce verbose output that lists |
| 979 | # what "hidden" libraries, object files and flags are used when |
| 980 | @@ -9358,7 +9362,7 @@ |
| 981 | fi |
| 982 | ;; |
| 983 | |
| 984 | - *.$objext|*.$libext) |
| 985 | + *.$objext) |
| 986 | # This assumes that the test object file only shows up |
| 987 | # once in the compiler output. |
| 988 | if test "$p" = "conftest.$objext"; then |
| 989 | @@ -9467,7 +9471,7 @@ |
| 990 | postinstall_cmds='$RANLIB $lib' |
| 991 | fi |
| 992 | ;; |
| 993 | -aix4*) |
| 994 | +aix4* | aix5*) |
| 995 | test "$enable_shared" = yes && enable_static=no |
| 996 | ;; |
| 997 | esac |
| 998 | @@ -9609,11 +9613,12 @@ |
| 999 | # without removal of \ escapes. |
| 1000 | if test -n "${ZSH_VERSION+set}" ; then |
| 1001 | setopt NO_GLOB_SUBST |
| 1002 | - fi |
| 1003 | + fi |
| 1004 | # Now quote all the things that may contain metacharacters while being |
| 1005 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 1006 | # variables and quote the copies for generation of the libtool script. |
| 1007 | - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 1008 | + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 1009 | + SED SHELL STRIP \ |
| 1010 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 1011 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 1012 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 1013 | @@ -9663,7 +9668,7 @@ |
| 1014 | _LT_AC_TAGVAR(archive_cmds, $1) | \ |
| 1015 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
| 1016 | _LT_AC_TAGVAR(module_cmds, $1) | \ |
| 1017 | - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
| 1018 | + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
| 1019 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
| 1020 | _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
| 1021 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 1022 | @@ -9794,7 +9799,7 @@ |
| 1023 | NM=$lt_NM |
| 1024 | |
| 1025 | # A symbol stripping program |
| 1026 | -STRIP=$STRIP |
| 1027 | +STRIP=$lt_STRIP |
| 1028 | |
| 1029 | # Used to examine libraries when file_magic_cmd begins "file" |
| 1030 | MAGIC_CMD=$MAGIC_CMD |
| 1031 | @@ -9825,7 +9830,7 @@ |
| 1032 | libext="$libext" |
| 1033 | |
| 1034 | # Shared library suffix (normally ".so"). |
| 1035 | -shrext='$shrext' |
| 1036 | +shrext_cmds='$shrext_cmds' |
| 1037 | |
| 1038 | # Executable file suffix (normally ""). |
| 1039 | exeext="$exeext" |
| 1040 | @@ -10069,7 +10074,10 @@ |
| 1041 | # If there is no Makefile yet, we rely on a make rule to execute |
| 1042 | # `config.status --recheck' to rerun these tests and create the |
| 1043 | # libtool script then. |
| 1044 | - test -f Makefile && make "$ltmain" |
| 1045 | + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 1046 | + if test -f "$ltmain_in"; then |
| 1047 | + test -f Makefile && make "$ltmain" |
| 1048 | + fi |
| 1049 | fi |
| 1050 | ])# AC_LIBTOOL_CONFIG |
| 1051 | |
| 1052 | @@ -10142,7 +10150,7 @@ |
| 1053 | symcode='[[BCDEGQRST]]' |
| 1054 | ;; |
| 1055 | solaris* | sysv5*) |
| 1056 | - symcode='[[BDT]]' |
| 1057 | + symcode='[[BDRT]]' |
| 1058 | ;; |
| 1059 | sysv4) |
| 1060 | symcode='[[DFNSTU]]' |
| 1061 | @@ -10160,7 +10168,7 @@ |
| 1062 | # If we're using GNU nm, then use its standard symbol codes. |
| 1063 | case `$NM -V 2>&1` in |
| 1064 | *GNU* | *'with BFD'*) |
| 1065 | - symcode='[[ABCDGISTW]]' ;; |
| 1066 | + symcode='[[ABCDGIRSTW]]' ;; |
| 1067 | esac |
| 1068 | |
| 1069 | # Try without a prefix undercore, then with it. |
| 1070 | @@ -10375,7 +10383,7 @@ |
| 1071 | ;; |
| 1072 | esac |
| 1073 | ;; |
| 1074 | - freebsd*) |
| 1075 | + freebsd* | kfreebsd*-gnu) |
| 1076 | # FreeBSD uses GNU C++ |
| 1077 | ;; |
| 1078 | hpux9* | hpux10* | hpux11*) |
| 1079 | @@ -10426,7 +10434,7 @@ |
| 1080 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 1081 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 1082 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 1083 | - ;; |
| 1084 | + ;; |
| 1085 | cxx) |
| 1086 | # Compaq C++ |
| 1087 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 1088 | @@ -10451,7 +10459,7 @@ |
| 1089 | ;; |
| 1090 | esac |
| 1091 | ;; |
| 1092 | - netbsd*) |
| 1093 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 1094 | ;; |
| 1095 | osf3* | osf4* | osf5*) |
| 1096 | case $cc_basename in |
| 1097 | @@ -10762,6 +10770,9 @@ |
| 1098 | cygwin* | mingw*) |
| 1099 | _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' |
| 1100 | ;; |
| 1101 | + linux*) |
| 1102 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| 1103 | + ;; |
| 1104 | *) |
| 1105 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 1106 | ;; |
| 1107 | @@ -10786,7 +10797,7 @@ |
| 1108 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 1109 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 1110 | _LT_AC_TAGVAR(module_cmds, $1)= |
| 1111 | - _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 1112 | + _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 1113 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 1114 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 1115 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 1116 | @@ -10860,7 +10871,7 @@ |
| 1117 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 1118 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 1119 | # support --undefined. This deserves some investigation. FIXME |
| 1120 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 1121 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 1122 | else |
| 1123 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1124 | fi |
| 1125 | @@ -10870,13 +10881,13 @@ |
| 1126 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 1127 | # as there is no search path for DLLs. |
| 1128 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 1129 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no |
| 1130 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 1131 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 1132 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 1133 | _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' |
| 1134 | |
| 1135 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 1136 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 1137 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 1138 | # If the export-symbols file already is a .def file (1st line |
| 1139 | # is EXPORTS), use it as is; otherwise, prepend... |
| 1140 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 1141 | @@ -10885,19 +10896,19 @@ |
| 1142 | echo EXPORTS > $output_objdir/$soname.def; |
| 1143 | cat $export_symbols >> $output_objdir/$soname.def; |
| 1144 | fi~ |
| 1145 | - $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 1146 | + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 1147 | else |
| 1148 | ld_shlibs=no |
| 1149 | fi |
| 1150 | ;; |
| 1151 | |
| 1152 | - netbsd*) |
| 1153 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 1154 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 1155 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 1156 | wlarc= |
| 1157 | else |
| 1158 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 1159 | - _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' |
| 1160 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 1161 | + _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' |
| 1162 | fi |
| 1163 | ;; |
| 1164 | |
| 1165 | @@ -10915,8 +10926,8 @@ |
| 1166 | |
| 1167 | EOF |
| 1168 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 1169 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 1170 | - _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' |
| 1171 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 1172 | + _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' |
| 1173 | else |
| 1174 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1175 | fi |
| 1176 | @@ -10929,10 +10940,36 @@ |
| 1177 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 1178 | ;; |
| 1179 | |
| 1180 | + linux*) |
| 1181 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 1182 | + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 1183 | + _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" |
| 1184 | + supports_anon_versioning=no |
| 1185 | + case `$LD -v 2>/dev/null` in |
| 1186 | + *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 1187 | + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 1188 | + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 1189 | + *\ 2.11.*) ;; # other 2.11 versions |
| 1190 | + *) supports_anon_versioning=yes ;; |
| 1191 | + esac |
| 1192 | + if test $supports_anon_versioning = yes; then |
| 1193 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 1194 | +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 1195 | +$echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 1196 | + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 1197 | + else |
| 1198 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" |
| 1199 | + fi |
| 1200 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| 1201 | + else |
| 1202 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1203 | + fi |
| 1204 | + ;; |
| 1205 | + |
| 1206 | *) |
| 1207 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 1208 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 1209 | - _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' |
| 1210 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 1211 | + _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' |
| 1212 | else |
| 1213 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1214 | fi |
| 1215 | @@ -10982,9 +11019,20 @@ |
| 1216 | else |
| 1217 | _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' |
| 1218 | fi |
| 1219 | + aix_use_runtimelinking=no |
| 1220 | + |
| 1221 | + # Test if we are trying to use run time linking or normal |
| 1222 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 1223 | + # need to do runtime linking. |
| 1224 | + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 1225 | + for ld_flag in $LDFLAGS; do |
| 1226 | + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 1227 | + aix_use_runtimelinking=yes |
| 1228 | + break |
| 1229 | + fi |
| 1230 | + done |
| 1231 | + esac |
| 1232 | |
| 1233 | - # KDE requires run time linking. Make it the default. |
| 1234 | - aix_use_runtimelinking=yes |
| 1235 | exp_sym_flag='-bexport' |
| 1236 | no_entry_flag='-bnoentry' |
| 1237 | fi |
| 1238 | @@ -11030,29 +11078,29 @@ |
| 1239 | shared_flag='-G' |
| 1240 | else |
| 1241 | if test "$aix_use_runtimelinking" = yes; then |
| 1242 | - shared_flag='-qmkshrobj ${wl}-G' |
| 1243 | + shared_flag='${wl}-G' |
| 1244 | else |
| 1245 | - shared_flag='-qmkshrobj' |
| 1246 | + shared_flag='${wl}-bM:SRE' |
| 1247 | fi |
| 1248 | fi |
| 1249 | fi |
| 1250 | |
| 1251 | - # Let the compiler handle the export list. |
| 1252 | - _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 1253 | + # It seems that -bexpall does not export symbols beginning with |
| 1254 | + # underscore (_), so it is better to generate a list of symbols to export. |
| 1255 | + _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 1256 | if test "$aix_use_runtimelinking" = yes; then |
| 1257 | # Warning - without using the other runtime loading flags (-brtl), |
| 1258 | # -berok will link without error, but may produce a broken library. |
| 1259 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 1260 | # Determine the default libpath from the value encoded in an empty executable. |
| 1261 | - _LT_AC_SYS_LIBPATH_AIX |
| 1262 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 1263 | - _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" |
| 1264 | - _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" |
| 1265 | + _LT_AC_SYS_LIBPATH_AIX |
| 1266 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 1267 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 1268 | else |
| 1269 | if test "$host_cpu" = ia64; then |
| 1270 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 1271 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 1272 | - _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" |
| 1273 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 1274 | else |
| 1275 | # Determine the default libpath from the value encoded in an empty executable. |
| 1276 | _LT_AC_SYS_LIBPATH_AIX |
| 1277 | @@ -11067,7 +11115,7 @@ |
| 1278 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
| 1279 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 1280 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 1281 | - _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' |
| 1282 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 1283 | fi |
| 1284 | fi |
| 1285 | ;; |
| 1286 | @@ -11090,13 +11138,13 @@ |
| 1287 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 1288 | # no search path for DLLs. |
| 1289 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 1290 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=no |
| 1291 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 1292 | # Tell ltmain to make .lib files, not .a files. |
| 1293 | libext=lib |
| 1294 | # Tell ltmain to make .dll files, not .so files. |
| 1295 | - shrext=".dll" |
| 1296 | + shrext_cmds=".dll" |
| 1297 | # FIXME: Setting linknames here is a bad hack. |
| 1298 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 1299 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 1300 | # The linker will automatically build a .lib file if we build a DLL. |
| 1301 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
| 1302 | # FIXME: Should let the user specify the lib program. |
| 1303 | @@ -11110,21 +11158,21 @@ |
| 1304 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 1305 | case "$host_os" in |
| 1306 | rhapsody* | darwin1.[[012]]) |
| 1307 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress' |
| 1308 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
| 1309 | ;; |
| 1310 | *) # Darwin 1.3 on |
| 1311 | - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 1312 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 1313 | - else |
| 1314 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 1315 | - 10.[012]) |
| 1316 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 1317 | - ;; |
| 1318 | - 10.*) |
| 1319 | - allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' |
| 1320 | - ;; |
| 1321 | - esac |
| 1322 | - fi |
| 1323 | + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 1324 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| 1325 | + else |
| 1326 | + case ${MACOSX_DEPLOYMENT_TARGET} in |
| 1327 | + 10.[[012]]) |
| 1328 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| 1329 | + ;; |
| 1330 | + 10.*) |
| 1331 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
| 1332 | + ;; |
| 1333 | + esac |
| 1334 | + fi |
| 1335 | ;; |
| 1336 | esac |
| 1337 | lt_int_apple_cc_single_mod=no |
| 1338 | @@ -11133,26 +11181,26 @@ |
| 1339 | lt_int_apple_cc_single_mod=yes |
| 1340 | fi |
| 1341 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 1342 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 1343 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 1344 | else |
| 1345 | - _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' |
| 1346 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 1347 | fi |
| 1348 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 1349 | + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 1350 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 1351 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 1352 | - _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}' |
| 1353 | + _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}' |
| 1354 | else |
| 1355 | - _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}' |
| 1356 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1357 | fi |
| 1358 | - _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}' |
| 1359 | + _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}' |
| 1360 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 1361 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 1362 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 1363 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| 1364 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 1365 | - else |
| 1366 | + else |
| 1367 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 1368 | - fi |
| 1369 | + fi |
| 1370 | ;; |
| 1371 | |
| 1372 | dgux*) |
| 1373 | @@ -11185,8 +11233,8 @@ |
| 1374 | ;; |
| 1375 | |
| 1376 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 1377 | - freebsd*) |
| 1378 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' |
| 1379 | + freebsd* | kfreebsd*-gnu) |
| 1380 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 1381 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 1382 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 1383 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 1384 | @@ -11194,7 +11242,7 @@ |
| 1385 | |
| 1386 | hpux9*) |
| 1387 | if test "$GCC" = yes; then |
| 1388 | - _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' |
| 1389 | + _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' |
| 1390 | else |
| 1391 | _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' |
| 1392 | fi |
| 1393 | @@ -11212,10 +11260,10 @@ |
| 1394 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 1395 | case "$host_cpu" in |
| 1396 | hppa*64*|ia64*) |
| 1397 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 1398 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 1399 | ;; |
| 1400 | *) |
| 1401 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' |
| 1402 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 1403 | ;; |
| 1404 | esac |
| 1405 | else |
| 1406 | @@ -11262,7 +11310,7 @@ |
| 1407 | |
| 1408 | irix5* | irix6* | nonstopux*) |
| 1409 | if test "$GCC" = yes; then |
| 1410 | - _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' |
| 1411 | + _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' |
| 1412 | else |
| 1413 | _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' |
| 1414 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
| 1415 | @@ -11272,7 +11320,7 @@ |
| 1416 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 1417 | ;; |
| 1418 | |
| 1419 | - netbsd*) |
| 1420 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 1421 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 1422 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 1423 | else |
| 1424 | @@ -11295,7 +11343,7 @@ |
| 1425 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 1426 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 1427 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 1428 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
| 1429 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 1430 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 1431 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 1432 | else |
| 1433 | @@ -11305,7 +11353,7 @@ |
| 1434 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 1435 | ;; |
| 1436 | *) |
| 1437 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
| 1438 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 1439 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 1440 | ;; |
| 1441 | esac |
| 1442 | @@ -11316,14 +11364,14 @@ |
| 1443 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 1444 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 1445 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 1446 | - _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' |
| 1447 | + _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' |
| 1448 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 1449 | ;; |
| 1450 | |
| 1451 | osf3*) |
| 1452 | if test "$GCC" = yes; then |
| 1453 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 1454 | - _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' |
| 1455 | + _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' |
| 1456 | else |
| 1457 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 1458 | _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' |
| 1459 | @@ -11335,7 +11383,7 @@ |
| 1460 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 1461 | if test "$GCC" = yes; then |
| 1462 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 1463 | - _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' |
| 1464 | + _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' |
| 1465 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 1466 | else |
| 1467 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 1468 | @@ -11360,9 +11408,9 @@ |
| 1469 | solaris*) |
| 1470 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
| 1471 | if test "$GCC" = yes; then |
| 1472 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 1473 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 1474 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 1475 | - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' |
| 1476 | + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 1477 | else |
| 1478 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 1479 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 1480 | @@ -11382,7 +11430,7 @@ |
| 1481 | if test "x$host_vendor" = xsequent; then |
| 1482 | # Use $CC to link under sequent, because it throws in some extra .o |
| 1483 | # files that make .init and .fini sections work. |
| 1484 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' |
| 1485 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 1486 | else |
| 1487 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 1488 | fi |
| 1489 | @@ -11442,9 +11490,9 @@ |
| 1490 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
| 1491 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' |
| 1492 | if test "$GCC" = yes; then |
| 1493 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 1494 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 1495 | else |
| 1496 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 1497 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 1498 | fi |
| 1499 | runpath_var='LD_RUN_PATH' |
| 1500 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 1501 | @@ -11502,7 +11550,7 @@ |
| 1502 | AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
| 1503 | $rm conftest* |
| 1504 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 1505 | - |
| 1506 | + |
| 1507 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
| 1508 | soname=conftest |
| 1509 | lib=conftest |
| 1510 | @@ -11661,8 +11709,8 @@ |
| 1511 | fi |
| 1512 | done |
| 1513 | done |
| 1514 | -]) |
| 1515 | SED=$lt_cv_path_SED |
| 1516 | +]) |
| 1517 | AC_MSG_RESULT([$SED]) |
| 1518 | ]) |
| 1519 | |
| 1520 | --- aclocal.m4 |
| 1521 | +++ aclocal.m4 |
| 1522 | @@ -1,4 +1,4 @@ |
| 1523 | -# generated automatically by aclocal 1.9.5 -*- Autoconf -*- |
| 1524 | +# generated automatically by aclocal 1.9.6 -*- Autoconf -*- |
| 1525 | |
| 1526 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 1527 | # 2005 Free Software Foundation, Inc. |
| 1528 | @@ -28,7 +28,7 @@ |
| 1529 | # Call AM_AUTOMAKE_VERSION so it can be traced. |
| 1530 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
| 1531 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
| 1532 | - [AM_AUTOMAKE_VERSION([1.9.5])]) |
| 1533 | + [AM_AUTOMAKE_VERSION([1.9.6])]) |
| 1534 | |
| 1535 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
| 1536 | |
| 1537 | @@ -501,6 +501,35 @@ |
| 1538 | rmdir .tst 2>/dev/null |
| 1539 | AC_SUBST([am__leading_dot])]) |
| 1540 | |
| 1541 | +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
| 1542 | +# From Jim Meyering |
| 1543 | + |
| 1544 | +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 |
| 1545 | +# Free Software Foundation, Inc. |
| 1546 | +# |
| 1547 | +# This file is free software; the Free Software Foundation |
| 1548 | +# gives unlimited permission to copy and/or distribute it, |
| 1549 | +# with or without modifications, as long as this notice is preserved. |
| 1550 | + |
| 1551 | +# serial 4 |
| 1552 | + |
| 1553 | +AC_DEFUN([AM_MAINTAINER_MODE], |
| 1554 | +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
| 1555 | + dnl maintainer-mode is disabled by default |
| 1556 | + AC_ARG_ENABLE(maintainer-mode, |
| 1557 | +[ --enable-maintainer-mode enable make rules and dependencies not useful |
| 1558 | + (and sometimes confusing) to the casual installer], |
| 1559 | + USE_MAINTAINER_MODE=$enableval, |
| 1560 | + USE_MAINTAINER_MODE=no) |
| 1561 | + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
| 1562 | + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) |
| 1563 | + MAINT=$MAINTAINER_MODE_TRUE |
| 1564 | + AC_SUBST(MAINT)dnl |
| 1565 | +] |
| 1566 | +) |
| 1567 | + |
| 1568 | +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
| 1569 | + |
| 1570 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
| 1571 | |
| 1572 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
| 1573 | --- configure |
| 1574 | +++ configure |
| 1575 | @@ -464,7 +464,7 @@ |
| 1576 | # include <unistd.h> |
| 1577 | #endif" |
| 1578 | |
| 1579 | -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 MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL 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_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 GLINC GLLIB COMPILE_GL_XSAVERS_TRUE COMPILE_GL_XSAVERS_FALSE COMPILE_GL_KSAVERS_TRUE COMPILE_GL_KSAVERS_FALSE COMPILE_X11_KSAVERS_TRUE COMPILE_X11_KSAVERS_FALSE COMPILE_ARTS_KSAVERS_TRUE COMPILE_ARTS_KSAVERS_FALSE LIBART_LIBS LIBART_CFLAGS LIBART_RPATH COMPILE_LIBART_KSAVERS_TRUE COMPILE_LIBART_KSAVERS_FALSE DPMSINC DPMSLIB include_XSCREENSAVER_TRUE include_XSCREENSAVER_FALSE XSCREENSAVER_HACKS_DIR TOPSUBDIRS IconThemes_SUBDIR_included_TRUE IconThemes_SUBDIR_included_FALSE emoticons_SUBDIR_included_TRUE emoticons_SUBDIR_included_FALSE icewm_themes_SUBDIR_included_TRUE icewm_themes_SUBDIR_included_FALSE kscreensaver_SUBDIR_included_TRUE kscreensaver_SUBDIR_included_FALSE kwin_styles_SUBDIR_included_TRUE kwin_styles_SUBDIR_included_FALSE kworldclock_SUBDIR_included_TRUE kworldclock_SUBDIR_included_FALSE sounds_SUBDIR_included_TRUE sounds_SUBDIR_included_FALSE styles_SUBDIR_included_TRUE styles_SUBDIR_included_FALSE wallpapers_SUBDIR_included_TRUE wallpapers_SUBDIR_included_FALSE LIBOBJS LTLIBOBJS' |
| 1580 | +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 MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL 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_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 GLINC GLLIB COMPILE_GL_XSAVERS_TRUE COMPILE_GL_XSAVERS_FALSE COMPILE_GL_KSAVERS_TRUE COMPILE_GL_KSAVERS_FALSE COMPILE_X11_KSAVERS_TRUE COMPILE_X11_KSAVERS_FALSE COMPILE_ARTS_KSAVERS_TRUE COMPILE_ARTS_KSAVERS_FALSE LIBART_LIBS LIBART_CFLAGS LIBART_RPATH COMPILE_LIBART_KSAVERS_TRUE COMPILE_LIBART_KSAVERS_FALSE DPMSINC DPMSLIB include_XSCREENSAVER_TRUE include_XSCREENSAVER_FALSE XSCREENSAVER_HACKS_DIR TOPSUBDIRS IconThemes_SUBDIR_included_TRUE IconThemes_SUBDIR_included_FALSE emoticons_SUBDIR_included_TRUE emoticons_SUBDIR_included_FALSE icewm_themes_SUBDIR_included_TRUE icewm_themes_SUBDIR_included_FALSE kscreensaver_SUBDIR_included_TRUE kscreensaver_SUBDIR_included_FALSE kwin_styles_SUBDIR_included_TRUE kwin_styles_SUBDIR_included_FALSE kworldclock_SUBDIR_included_TRUE kworldclock_SUBDIR_included_FALSE sounds_SUBDIR_included_TRUE sounds_SUBDIR_included_FALSE styles_SUBDIR_included_TRUE styles_SUBDIR_included_FALSE wallpapers_SUBDIR_included_TRUE wallpapers_SUBDIR_included_FALSE LIBOBJS LTLIBOBJS' |
| 1581 | ac_subst_files='' |
| 1582 | |
| 1583 | # Initialize some variables set by options. |
| 1584 | @@ -1025,6 +1025,8 @@ |
| 1585 | Optional Features: |
| 1586 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1587 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1588 | + --enable-maintainer-mode enable make rules and dependencies not useful |
| 1589 | + (and sometimes confusing) to the casual installer |
| 1590 | --disable-fast-perl disable fast Makefile generation (needs perl) |
| 1591 | --enable-debug=ARG enables debug symbols (yes|no|full) default=no |
| 1592 | --disable-debug disables debug output and debug symbols default=no |
| 1593 | @@ -1181,7 +1183,7 @@ |
| 1594 | else |
| 1595 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1596 | fi |
| 1597 | - cd $ac_popdir |
| 1598 | + cd "$ac_popdir" |
| 1599 | done |
| 1600 | fi |
| 1601 | |
| 1602 | @@ -2084,6 +2086,31 @@ |
| 1603 | |
| 1604 | |
| 1605 | |
| 1606 | +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1607 | +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 1608 | + # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1609 | +if test "${enable_maintainer_mode+set}" = set; then |
| 1610 | + enableval="$enable_maintainer_mode" |
| 1611 | + USE_MAINTAINER_MODE=$enableval |
| 1612 | +else |
| 1613 | + USE_MAINTAINER_MODE=no |
| 1614 | +fi; |
| 1615 | + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 1616 | +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 1617 | + |
| 1618 | + |
| 1619 | +if test $USE_MAINTAINER_MODE = yes; then |
| 1620 | + MAINTAINER_MODE_TRUE= |
| 1621 | + MAINTAINER_MODE_FALSE='#' |
| 1622 | +else |
| 1623 | + MAINTAINER_MODE_TRUE='#' |
| 1624 | + MAINTAINER_MODE_FALSE= |
| 1625 | +fi |
| 1626 | + |
| 1627 | + MAINT=$MAINTAINER_MODE_TRUE |
| 1628 | + |
| 1629 | + |
| 1630 | + |
| 1631 | |
| 1632 | unset CDPATH |
| 1633 | |
| 1634 | @@ -3017,8 +3044,7 @@ |
| 1635 | cat conftest.err >&5 |
| 1636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1637 | (exit $ac_status); } && |
| 1638 | - { ac_try='test -z "$ac_c_werror_flag" |
| 1639 | - || test ! -s conftest.err' |
| 1640 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1642 | (eval $ac_try) 2>&5 |
| 1643 | ac_status=$? |
| 1644 | @@ -3076,8 +3102,7 @@ |
| 1645 | cat conftest.err >&5 |
| 1646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1647 | (exit $ac_status); } && |
| 1648 | - { ac_try='test -z "$ac_c_werror_flag" |
| 1649 | - || test ! -s conftest.err' |
| 1650 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1652 | (eval $ac_try) 2>&5 |
| 1653 | ac_status=$? |
| 1654 | @@ -3193,8 +3218,7 @@ |
| 1655 | cat conftest.err >&5 |
| 1656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1657 | (exit $ac_status); } && |
| 1658 | - { ac_try='test -z "$ac_c_werror_flag" |
| 1659 | - || test ! -s conftest.err' |
| 1660 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1662 | (eval $ac_try) 2>&5 |
| 1663 | ac_status=$? |
| 1664 | @@ -3248,8 +3272,7 @@ |
| 1665 | cat conftest.err >&5 |
| 1666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1667 | (exit $ac_status); } && |
| 1668 | - { ac_try='test -z "$ac_c_werror_flag" |
| 1669 | - || test ! -s conftest.err' |
| 1670 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1672 | (eval $ac_try) 2>&5 |
| 1673 | ac_status=$? |
| 1674 | @@ -3294,8 +3317,7 @@ |
| 1675 | cat conftest.err >&5 |
| 1676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1677 | (exit $ac_status); } && |
| 1678 | - { ac_try='test -z "$ac_c_werror_flag" |
| 1679 | - || test ! -s conftest.err' |
| 1680 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1682 | (eval $ac_try) 2>&5 |
| 1683 | ac_status=$? |
| 1684 | @@ -3339,8 +3361,7 @@ |
| 1685 | cat conftest.err >&5 |
| 1686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1687 | (exit $ac_status); } && |
| 1688 | - { ac_try='test -z "$ac_c_werror_flag" |
| 1689 | - || test ! -s conftest.err' |
| 1690 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1692 | (eval $ac_try) 2>&5 |
| 1693 | ac_status=$? |
| 1694 | @@ -3897,8 +3918,7 @@ |
| 1695 | cat conftest.err >&5 |
| 1696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1697 | (exit $ac_status); } && |
| 1698 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1699 | - || test ! -s conftest.err' |
| 1700 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1702 | (eval $ac_try) 2>&5 |
| 1703 | ac_status=$? |
| 1704 | @@ -3956,8 +3976,7 @@ |
| 1705 | cat conftest.err >&5 |
| 1706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1707 | (exit $ac_status); } && |
| 1708 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1709 | - || test ! -s conftest.err' |
| 1710 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1712 | (eval $ac_try) 2>&5 |
| 1713 | ac_status=$? |
| 1714 | @@ -4028,8 +4047,7 @@ |
| 1715 | cat conftest.err >&5 |
| 1716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1717 | (exit $ac_status); } && |
| 1718 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1719 | - || test ! -s conftest.err' |
| 1720 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1722 | (eval $ac_try) 2>&5 |
| 1723 | ac_status=$? |
| 1724 | @@ -4073,8 +4091,7 @@ |
| 1725 | cat conftest.err >&5 |
| 1726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1727 | (exit $ac_status); } && |
| 1728 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1729 | - || test ! -s conftest.err' |
| 1730 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1732 | (eval $ac_try) 2>&5 |
| 1733 | ac_status=$? |
| 1734 | @@ -4252,8 +4269,7 @@ |
| 1735 | cat conftest.err >&5 |
| 1736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1737 | (exit $ac_status); } && |
| 1738 | - { ac_try='test -z "$ac_c_werror_flag" |
| 1739 | - || test ! -s conftest.err' |
| 1740 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1742 | (eval $ac_try) 2>&5 |
| 1743 | ac_status=$? |
| 1744 | @@ -4364,8 +4380,7 @@ |
| 1745 | cat conftest.err >&5 |
| 1746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1747 | (exit $ac_status); } && |
| 1748 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1749 | - || test ! -s conftest.err' |
| 1750 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1752 | (eval $ac_try) 2>&5 |
| 1753 | ac_status=$? |
| 1754 | @@ -4453,8 +4468,7 @@ |
| 1755 | cat conftest.err >&5 |
| 1756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1757 | (exit $ac_status); } && |
| 1758 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1759 | - || test ! -s conftest.err' |
| 1760 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1762 | (eval $ac_try) 2>&5 |
| 1763 | ac_status=$? |
| 1764 | @@ -4556,8 +4570,7 @@ |
| 1765 | cat conftest.err >&5 |
| 1766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1767 | (exit $ac_status); } && |
| 1768 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1769 | - || test ! -s conftest.err' |
| 1770 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1772 | (eval $ac_try) 2>&5 |
| 1773 | ac_status=$? |
| 1774 | @@ -4656,8 +4669,7 @@ |
| 1775 | cat conftest.err >&5 |
| 1776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1777 | (exit $ac_status); } && |
| 1778 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1779 | - || test ! -s conftest.err' |
| 1780 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1782 | (eval $ac_try) 2>&5 |
| 1783 | ac_status=$? |
| 1784 | @@ -4741,8 +4753,7 @@ |
| 1785 | cat conftest.err >&5 |
| 1786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1787 | (exit $ac_status); } && |
| 1788 | - { ac_try='test -z "$ac_c_werror_flag" |
| 1789 | - || test ! -s conftest.err' |
| 1790 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1792 | (eval $ac_try) 2>&5 |
| 1793 | ac_status=$? |
| 1794 | @@ -4831,8 +4842,7 @@ |
| 1795 | cat conftest.err >&5 |
| 1796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1797 | (exit $ac_status); } && |
| 1798 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1799 | - || test ! -s conftest.err' |
| 1800 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1802 | (eval $ac_try) 2>&5 |
| 1803 | ac_status=$? |
| 1804 | @@ -4919,8 +4929,7 @@ |
| 1805 | cat conftest.err >&5 |
| 1806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1807 | (exit $ac_status); } && |
| 1808 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1809 | - || test ! -s conftest.err' |
| 1810 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1812 | (eval $ac_try) 2>&5 |
| 1813 | ac_status=$? |
| 1814 | @@ -5007,8 +5016,7 @@ |
| 1815 | cat conftest.err >&5 |
| 1816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1817 | (exit $ac_status); } && |
| 1818 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1819 | - || test ! -s conftest.err' |
| 1820 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1822 | (eval $ac_try) 2>&5 |
| 1823 | ac_status=$? |
| 1824 | @@ -5114,8 +5122,7 @@ |
| 1825 | cat conftest.err >&5 |
| 1826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1827 | (exit $ac_status); } && |
| 1828 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1829 | - || test ! -s conftest.err' |
| 1830 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1832 | (eval $ac_try) 2>&5 |
| 1833 | ac_status=$? |
| 1834 | @@ -5202,8 +5209,7 @@ |
| 1835 | cat conftest.err >&5 |
| 1836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1837 | (exit $ac_status); } && |
| 1838 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1839 | - || test ! -s conftest.err' |
| 1840 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1842 | (eval $ac_try) 2>&5 |
| 1843 | ac_status=$? |
| 1844 | @@ -5290,8 +5296,7 @@ |
| 1845 | cat conftest.err >&5 |
| 1846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1847 | (exit $ac_status); } && |
| 1848 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1849 | - || test ! -s conftest.err' |
| 1850 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1852 | (eval $ac_try) 2>&5 |
| 1853 | ac_status=$? |
| 1854 | @@ -5378,8 +5383,7 @@ |
| 1855 | cat conftest.err >&5 |
| 1856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1857 | (exit $ac_status); } && |
| 1858 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1859 | - || test ! -s conftest.err' |
| 1860 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1862 | (eval $ac_try) 2>&5 |
| 1863 | ac_status=$? |
| 1864 | @@ -5510,8 +5514,7 @@ |
| 1865 | cat conftest.err >&5 |
| 1866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1867 | (exit $ac_status); } && |
| 1868 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1869 | - || test ! -s conftest.err' |
| 1870 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1872 | (eval $ac_try) 2>&5 |
| 1873 | ac_status=$? |
| 1874 | @@ -5599,8 +5602,7 @@ |
| 1875 | cat conftest.err >&5 |
| 1876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1877 | (exit $ac_status); } && |
| 1878 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1879 | - || test ! -s conftest.err' |
| 1880 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1882 | (eval $ac_try) 2>&5 |
| 1883 | ac_status=$? |
| 1884 | @@ -5687,8 +5689,7 @@ |
| 1885 | cat conftest.err >&5 |
| 1886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1887 | (exit $ac_status); } && |
| 1888 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1889 | - || test ! -s conftest.err' |
| 1890 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1892 | (eval $ac_try) 2>&5 |
| 1893 | ac_status=$? |
| 1894 | @@ -5775,8 +5776,7 @@ |
| 1895 | cat conftest.err >&5 |
| 1896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1897 | (exit $ac_status); } && |
| 1898 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1899 | - || test ! -s conftest.err' |
| 1900 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1902 | (eval $ac_try) 2>&5 |
| 1903 | ac_status=$? |
| 1904 | @@ -5863,8 +5863,7 @@ |
| 1905 | cat conftest.err >&5 |
| 1906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1907 | (exit $ac_status); } && |
| 1908 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1909 | - || test ! -s conftest.err' |
| 1910 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1912 | (eval $ac_try) 2>&5 |
| 1913 | ac_status=$? |
| 1914 | @@ -5951,8 +5950,7 @@ |
| 1915 | cat conftest.err >&5 |
| 1916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1917 | (exit $ac_status); } && |
| 1918 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1919 | - || test ! -s conftest.err' |
| 1920 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1922 | (eval $ac_try) 2>&5 |
| 1923 | ac_status=$? |
| 1924 | @@ -6375,8 +6373,7 @@ |
| 1925 | cat conftest.err >&5 |
| 1926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1927 | (exit $ac_status); } && |
| 1928 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1929 | - || test ! -s conftest.err' |
| 1930 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1932 | (eval $ac_try) 2>&5 |
| 1933 | ac_status=$? |
| 1934 | @@ -6502,8 +6499,7 @@ |
| 1935 | cat conftest.err >&5 |
| 1936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1937 | (exit $ac_status); } && |
| 1938 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1939 | - || test ! -s conftest.err' |
| 1940 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1942 | (eval $ac_try) 2>&5 |
| 1943 | ac_status=$? |
| 1944 | @@ -6591,8 +6587,7 @@ |
| 1945 | cat conftest.err >&5 |
| 1946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1947 | (exit $ac_status); } && |
| 1948 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 1949 | - || test ! -s conftest.err' |
| 1950 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 1951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1952 | (eval $ac_try) 2>&5 |
| 1953 | ac_status=$? |
| 1954 | @@ -6675,185 +6670,6 @@ |
| 1955 | KDE_USE_CLOSURE_TRUE="#" |
| 1956 | KDE_USE_CLOSURE_FALSE="" |
| 1957 | KDE_NO_UNDEFINED="" |
| 1958 | - case $host in |
| 1959 | - *-*-linux-gnu) |
| 1960 | - |
| 1961 | -echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5 |
| 1962 | -echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6 |
| 1963 | -kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'` |
| 1964 | -if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
| 1965 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1966 | -else |
| 1967 | - |
| 1968 | - |
| 1969 | - |
| 1970 | - ac_ext=cc |
| 1971 | -ac_cpp='$CXXCPP $CPPFLAGS' |
| 1972 | -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1973 | -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1974 | -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1975 | - |
| 1976 | -ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1977 | - |
| 1978 | - |
| 1979 | - save_CXXFLAGS="$CXXFLAGS" |
| 1980 | - CXXFLAGS="$CXXFLAGS -Wl,--no-undefined" |
| 1981 | - cat >conftest.$ac_ext <<_ACEOF |
| 1982 | -/* confdefs.h. */ |
| 1983 | -_ACEOF |
| 1984 | -cat confdefs.h >>conftest.$ac_ext |
| 1985 | -cat >>conftest.$ac_ext <<_ACEOF |
| 1986 | -/* end confdefs.h. */ |
| 1987 | - |
| 1988 | -int |
| 1989 | -main () |
| 1990 | -{ |
| 1991 | - return 0; |
| 1992 | - ; |
| 1993 | - return 0; |
| 1994 | -} |
| 1995 | -_ACEOF |
| 1996 | -rm -f conftest.$ac_objext conftest$ac_exeext |
| 1997 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1998 | - (eval $ac_link) 2>conftest.er1 |
| 1999 | - ac_status=$? |
| 2000 | - grep -v '^ *+' conftest.er1 >conftest.err |
| 2001 | - rm -f conftest.er1 |
| 2002 | - cat conftest.err >&5 |
| 2003 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2004 | - (exit $ac_status); } && |
| 2005 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 2006 | - || test ! -s conftest.err' |
| 2007 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2008 | - (eval $ac_try) 2>&5 |
| 2009 | - ac_status=$? |
| 2010 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2011 | - (exit $ac_status); }; } && |
| 2012 | - { ac_try='test -s conftest$ac_exeext' |
| 2013 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2014 | - (eval $ac_try) 2>&5 |
| 2015 | - ac_status=$? |
| 2016 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2017 | - (exit $ac_status); }; }; then |
| 2018 | - eval "kde_cv_prog_cxx_$kde_cache=yes" |
| 2019 | -else |
| 2020 | - echo "$as_me: failed program was:" >&5 |
| 2021 | -sed 's/^/| /' conftest.$ac_ext >&5 |
| 2022 | - |
| 2023 | -fi |
| 2024 | -rm -f conftest.err conftest.$ac_objext \ |
| 2025 | - conftest$ac_exeext conftest.$ac_ext |
| 2026 | - CXXFLAGS="$save_CXXFLAGS" |
| 2027 | - ac_ext=c |
| 2028 | -ac_cpp='$CPP $CPPFLAGS' |
| 2029 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2030 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2031 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2032 | - |
| 2033 | - |
| 2034 | -fi |
| 2035 | - |
| 2036 | -if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
| 2037 | - echo "$as_me:$LINENO: result: yes" >&5 |
| 2038 | -echo "${ECHO_T}yes" >&6 |
| 2039 | - : |
| 2040 | - |
| 2041 | -echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5 |
| 2042 | -echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6 |
| 2043 | -kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'` |
| 2044 | -if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then |
| 2045 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2046 | -else |
| 2047 | - |
| 2048 | - |
| 2049 | - |
| 2050 | - ac_ext=cc |
| 2051 | -ac_cpp='$CXXCPP $CPPFLAGS' |
| 2052 | -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2053 | -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2054 | -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2055 | - |
| 2056 | -ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 2057 | - |
| 2058 | - |
| 2059 | - save_CXXFLAGS="$CXXFLAGS" |
| 2060 | - CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined" |
| 2061 | - cat >conftest.$ac_ext <<_ACEOF |
| 2062 | -/* confdefs.h. */ |
| 2063 | -_ACEOF |
| 2064 | -cat confdefs.h >>conftest.$ac_ext |
| 2065 | -cat >>conftest.$ac_ext <<_ACEOF |
| 2066 | -/* end confdefs.h. */ |
| 2067 | - |
| 2068 | -int |
| 2069 | -main () |
| 2070 | -{ |
| 2071 | - return 0; |
| 2072 | - ; |
| 2073 | - return 0; |
| 2074 | -} |
| 2075 | -_ACEOF |
| 2076 | -rm -f conftest.$ac_objext conftest$ac_exeext |
| 2077 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2078 | - (eval $ac_link) 2>conftest.er1 |
| 2079 | - ac_status=$? |
| 2080 | - grep -v '^ *+' conftest.er1 >conftest.err |
| 2081 | - rm -f conftest.er1 |
| 2082 | - cat conftest.err >&5 |
| 2083 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2084 | - (exit $ac_status); } && |
| 2085 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 2086 | - || test ! -s conftest.err' |
| 2087 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2088 | - (eval $ac_try) 2>&5 |
| 2089 | - ac_status=$? |
| 2090 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2091 | - (exit $ac_status); }; } && |
| 2092 | - { ac_try='test -s conftest$ac_exeext' |
| 2093 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2094 | - (eval $ac_try) 2>&5 |
| 2095 | - ac_status=$? |
| 2096 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2097 | - (exit $ac_status); }; }; then |
| 2098 | - eval "kde_cv_prog_cxx_$kde_cache=yes" |
| 2099 | -else |
| 2100 | - echo "$as_me: failed program was:" >&5 |
| 2101 | -sed 's/^/| /' conftest.$ac_ext >&5 |
| 2102 | - |
| 2103 | -fi |
| 2104 | -rm -f conftest.err conftest.$ac_objext \ |
| 2105 | - conftest$ac_exeext conftest.$ac_ext |
| 2106 | - CXXFLAGS="$save_CXXFLAGS" |
| 2107 | - ac_ext=c |
| 2108 | -ac_cpp='$CPP $CPPFLAGS' |
| 2109 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2110 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2111 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2112 | - |
| 2113 | - |
| 2114 | -fi |
| 2115 | - |
| 2116 | -if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then |
| 2117 | - echo "$as_me:$LINENO: result: yes" >&5 |
| 2118 | -echo "${ECHO_T}yes" >&6 |
| 2119 | - : |
| 2120 | - KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined" |
| 2121 | -else |
| 2122 | - echo "$as_me:$LINENO: result: no" >&5 |
| 2123 | -echo "${ECHO_T}no" >&6 |
| 2124 | - : |
| 2125 | - KDE_NO_UNDEFINED="" |
| 2126 | -fi |
| 2127 | - |
| 2128 | -else |
| 2129 | - echo "$as_me:$LINENO: result: no" >&5 |
| 2130 | -echo "${ECHO_T}no" >&6 |
| 2131 | - : |
| 2132 | - KDE_NO_UNDEFINED="" |
| 2133 | -fi |
| 2134 | - |
| 2135 | - ;; |
| 2136 | - esac |
| 2137 | fi |
| 2138 | |
| 2139 | |
| 2140 | @@ -7042,10 +6858,10 @@ |
| 2141 | fi |
| 2142 | done |
| 2143 | done |
| 2144 | +SED=$lt_cv_path_SED |
| 2145 | |
| 2146 | fi |
| 2147 | |
| 2148 | -SED=$lt_cv_path_SED |
| 2149 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 2150 | echo "${ECHO_T}$SED" >&6 |
| 2151 | |
| 2152 | @@ -7279,31 +7095,23 @@ |
| 2153 | ;; |
| 2154 | |
| 2155 | cygwin*) |
| 2156 | - lt_cv_deplibs_check_method=pass_all |
| 2157 | + # func_win32_libid is a shell function defined in ltmain.sh |
| 2158 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 2159 | + lt_cv_file_magic_cmd='func_win32_libid' |
| 2160 | ;; |
| 2161 | |
| 2162 | mingw* | pw32*) |
| 2163 | - # win32_libid is a shell function defined in ltmain.sh |
| 2164 | - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 2165 | - lt_cv_file_magic_cmd='win32_libid' |
| 2166 | + # Base MSYS/MinGW do not provide the 'file' command needed by |
| 2167 | + # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 2168 | + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 2169 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 2170 | ;; |
| 2171 | |
| 2172 | darwin* | rhapsody*) |
| 2173 | - # this will be overwritten by pass_all, but leave it in just in case |
| 2174 | - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 2175 | - lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2176 | - case "$host_os" in |
| 2177 | - rhapsody* | darwin1.[012]) |
| 2178 | - lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
| 2179 | - ;; |
| 2180 | - *) # Darwin 1.3 on |
| 2181 | - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 2182 | - ;; |
| 2183 | - esac |
| 2184 | lt_cv_deplibs_check_method=pass_all |
| 2185 | ;; |
| 2186 | |
| 2187 | -freebsd*) |
| 2188 | +freebsd* | kfreebsd*-gnu) |
| 2189 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2190 | case $host_cpu in |
| 2191 | i*86 ) |
| 2192 | @@ -7342,42 +7150,21 @@ |
| 2193 | ;; |
| 2194 | |
| 2195 | irix5* | irix6* | nonstopux*) |
| 2196 | - case $host_os in |
| 2197 | - irix5* | nonstopux*) |
| 2198 | - # this will be overridden with pass_all, but let us keep it just in case |
| 2199 | - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 2200 | - ;; |
| 2201 | - *) |
| 2202 | - case $LD in |
| 2203 | - *-32|*"-32 ") libmagic=32-bit;; |
| 2204 | - *-n32|*"-n32 ") libmagic=N32;; |
| 2205 | - *-64|*"-64 ") libmagic=64-bit;; |
| 2206 | - *) libmagic=never-match;; |
| 2207 | - esac |
| 2208 | - # this will be overridden with pass_all, but let us keep it just in case |
| 2209 | - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 2210 | - ;; |
| 2211 | + case $LD in |
| 2212 | + *-32|*"-32 ") libmagic=32-bit;; |
| 2213 | + *-n32|*"-n32 ") libmagic=N32;; |
| 2214 | + *-64|*"-64 ") libmagic=64-bit;; |
| 2215 | + *) libmagic=never-match;; |
| 2216 | esac |
| 2217 | - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 2218 | lt_cv_deplibs_check_method=pass_all |
| 2219 | ;; |
| 2220 | |
| 2221 | # This must be Linux ELF. |
| 2222 | linux*) |
| 2223 | - case $host_cpu in |
| 2224 | - alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* ) |
| 2225 | - lt_cv_deplibs_check_method=pass_all ;; |
| 2226 | - # the debian people say, arm and glibc 2.3.1 works for them with pass_all |
| 2227 | - arm* ) |
| 2228 | - lt_cv_deplibs_check_method=pass_all ;; |
| 2229 | - *) |
| 2230 | - # glibc up to 2.1.1 does not perform some relocations on ARM |
| 2231 | - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 2232 | - esac |
| 2233 | - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 2234 | + lt_cv_deplibs_check_method=pass_all |
| 2235 | ;; |
| 2236 | |
| 2237 | -netbsd*) |
| 2238 | +netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 2239 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2240 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 2241 | else |
| 2242 | @@ -7406,9 +7193,6 @@ |
| 2243 | ;; |
| 2244 | |
| 2245 | osf3* | osf4* | osf5*) |
| 2246 | - # this will be overridden with pass_all, but let us keep it just in case |
| 2247 | - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 2248 | - lt_cv_file_magic_test_file=/shlib/libc.so |
| 2249 | lt_cv_deplibs_check_method=pass_all |
| 2250 | ;; |
| 2251 | |
| 2252 | @@ -7418,7 +7202,6 @@ |
| 2253 | |
| 2254 | solaris*) |
| 2255 | lt_cv_deplibs_check_method=pass_all |
| 2256 | - lt_cv_file_magic_test_file=/lib/libc.so |
| 2257 | ;; |
| 2258 | |
| 2259 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2260 | @@ -7495,7 +7278,7 @@ |
| 2261 | ;; |
| 2262 | *-*-irix6*) |
| 2263 | # Find out which ABI we are using. |
| 2264 | - echo '#line 7498 "configure"' > conftest.$ac_ext |
| 2265 | + echo '#line 7281 "configure"' > conftest.$ac_ext |
| 2266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2267 | (eval $ac_compile) 2>&5 |
| 2268 | ac_status=$? |
| 2269 | @@ -7540,12 +7323,11 @@ |
| 2270 | (exit $ac_status); }; then |
| 2271 | case "`/usr/bin/file conftest.o`" in |
| 2272 | *32-bit*) |
| 2273 | - LINUX_64_MODE="32" |
| 2274 | case $host in |
| 2275 | x86_64-*linux*) |
| 2276 | LD="${LD-ld} -m elf_i386" |
| 2277 | ;; |
| 2278 | - ppc64-*linux*) |
| 2279 | + ppc64-*linux*|powerpc64-*linux*) |
| 2280 | LD="${LD-ld} -m elf32ppclinux" |
| 2281 | ;; |
| 2282 | s390x-*linux*) |
| 2283 | @@ -7557,7 +7339,6 @@ |
| 2284 | esac |
| 2285 | ;; |
| 2286 | *64-bit*) |
| 2287 | - LINUX_64_MODE="64" |
| 2288 | case $host in |
| 2289 | x86_64-*linux*) |
| 2290 | LD="${LD-ld} -m elf_x86_64" |
| 2291 | @@ -7617,8 +7398,7 @@ |
| 2292 | cat conftest.err >&5 |
| 2293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2294 | (exit $ac_status); } && |
| 2295 | - { ac_try='test -z "$ac_c_werror_flag" |
| 2296 | - || test ! -s conftest.err' |
| 2297 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2299 | (eval $ac_try) 2>&5 |
| 2300 | ac_status=$? |
| 2301 | @@ -7693,8 +7473,7 @@ |
| 2302 | cat conftest.err >&5 |
| 2303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2304 | (exit $ac_status); } && |
| 2305 | - { ac_try='test -z "$ac_c_werror_flag" |
| 2306 | - || test ! -s conftest.err' |
| 2307 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2309 | (eval $ac_try) 2>&5 |
| 2310 | ac_status=$? |
| 2311 | @@ -7864,8 +7643,7 @@ |
| 2312 | cat conftest.err >&5 |
| 2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2314 | (exit $ac_status); } && |
| 2315 | - { ac_try='test -z "$ac_c_werror_flag" |
| 2316 | - || test ! -s conftest.err' |
| 2317 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2319 | (eval $ac_try) 2>&5 |
| 2320 | ac_status=$? |
| 2321 | @@ -7932,8 +7710,7 @@ |
| 2322 | cat conftest.err >&5 |
| 2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2324 | (exit $ac_status); } && |
| 2325 | - { ac_try='test -z "$ac_c_werror_flag" |
| 2326 | - || test ! -s conftest.err' |
| 2327 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2329 | (eval $ac_try) 2>&5 |
| 2330 | ac_status=$? |
| 2331 | @@ -8140,7 +7917,7 @@ |
| 2332 | |
| 2333 | |
| 2334 | # Provide some information about the compiler. |
| 2335 | -echo "$as_me:8143:" \ |
| 2336 | +echo "$as_me:7920:" \ |
| 2337 | "checking for Fortran 77 compiler version" >&5 |
| 2338 | ac_compiler=`set X $ac_compile; echo $2` |
| 2339 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2340 | @@ -8186,8 +7963,7 @@ |
| 2341 | cat conftest.err >&5 |
| 2342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2343 | (exit $ac_status); } && |
| 2344 | - { ac_try='test -z "$ac_f77_werror_flag" |
| 2345 | - || test ! -s conftest.err' |
| 2346 | + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2348 | (eval $ac_try) 2>&5 |
| 2349 | ac_status=$? |
| 2350 | @@ -8236,8 +8012,7 @@ |
| 2351 | cat conftest.err >&5 |
| 2352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2353 | (exit $ac_status); } && |
| 2354 | - { ac_try='test -z "$ac_f77_werror_flag" |
| 2355 | - || test ! -s conftest.err' |
| 2356 | + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 2357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2358 | (eval $ac_try) 2>&5 |
| 2359 | ac_status=$? |
| 2360 | @@ -8295,7 +8070,7 @@ |
| 2361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2362 | else |
| 2363 | i=0 |
| 2364 | - testring="ABCD" |
| 2365 | + teststring="ABCD" |
| 2366 | |
| 2367 | case $build_os in |
| 2368 | msdosdjgpp*) |
| 2369 | @@ -8324,20 +8099,26 @@ |
| 2370 | lt_cv_sys_max_cmd_len=8192; |
| 2371 | ;; |
| 2372 | |
| 2373 | + amigaos*) |
| 2374 | + # On AmigaOS with pdksh, this test takes hours, literally. |
| 2375 | + # So we just punt and use a minimum line length of 8192. |
| 2376 | + lt_cv_sys_max_cmd_len=8192; |
| 2377 | + ;; |
| 2378 | + |
| 2379 | *) |
| 2380 | # If test is not a shell built-in, we'll probably end up computing a |
| 2381 | # maximum length that is only half of the actual maximum length, but |
| 2382 | # we can't tell. |
| 2383 | - while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 2384 | - = "XX$testring") >/dev/null 2>&1 && |
| 2385 | - new_result=`expr "X$testring" : ".*" 2>&1` && |
| 2386 | + while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 2387 | + = "XX$teststring") >/dev/null 2>&1 && |
| 2388 | + new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 2389 | lt_cv_sys_max_cmd_len=$new_result && |
| 2390 | test $i != 17 # 1/2 MB should be enough |
| 2391 | do |
| 2392 | i=`expr $i + 1` |
| 2393 | - testring=$testring$testring |
| 2394 | + teststring=$teststring$teststring |
| 2395 | done |
| 2396 | - testring= |
| 2397 | + teststring= |
| 2398 | # Add a significant safety factor because C++ compilers can tack on massive |
| 2399 | # amounts of additional arguments before passing them to the linker. |
| 2400 | # It appears as though 1/2 is a usable value. |
| 2401 | @@ -8405,7 +8186,7 @@ |
| 2402 | symcode='[BCDEGQRST]' |
| 2403 | ;; |
| 2404 | solaris* | sysv5*) |
| 2405 | - symcode='[BDT]' |
| 2406 | + symcode='[BDRT]' |
| 2407 | ;; |
| 2408 | sysv4) |
| 2409 | symcode='[DFNSTU]' |
| 2410 | @@ -8423,7 +8204,7 @@ |
| 2411 | # If we're using GNU nm, then use its standard symbol codes. |
| 2412 | case `$NM -V 2>&1` in |
| 2413 | *GNU* | *'with BFD'*) |
| 2414 | - symcode='[ABCDGISTW]' ;; |
| 2415 | + symcode='[ABCDGIRSTW]' ;; |
| 2416 | esac |
| 2417 | |
| 2418 | # Try without a prefix undercore, then with it. |
| 2419 | @@ -9172,11 +8953,11 @@ |
| 2420 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 2421 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 2422 | -e 's:$: $lt_compiler_flag:'` |
| 2423 | - (eval echo "\"\$as_me:9175: $lt_compile\"" >&5) |
| 2424 | + (eval echo "\"\$as_me:8956: $lt_compile\"" >&5) |
| 2425 | (eval "$lt_compile" 2>conftest.err) |
| 2426 | ac_status=$? |
| 2427 | cat conftest.err >&5 |
| 2428 | - echo "$as_me:9179: \$? = $ac_status" >&5 |
| 2429 | + echo "$as_me:8960: \$? = $ac_status" >&5 |
| 2430 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 2431 | # The compiler can only warn and ignore the option if not recognized |
| 2432 | # So say no if there are warnings |
| 2433 | @@ -9405,11 +9186,11 @@ |
| 2434 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 2435 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 2436 | -e 's:$: $lt_compiler_flag:'` |
| 2437 | - (eval echo "\"\$as_me:9408: $lt_compile\"" >&5) |
| 2438 | + (eval echo "\"\$as_me:9189: $lt_compile\"" >&5) |
| 2439 | (eval "$lt_compile" 2>conftest.err) |
| 2440 | ac_status=$? |
| 2441 | cat conftest.err >&5 |
| 2442 | - echo "$as_me:9412: \$? = $ac_status" >&5 |
| 2443 | + echo "$as_me:9193: \$? = $ac_status" >&5 |
| 2444 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 2445 | # The compiler can only warn and ignore the option if not recognized |
| 2446 | # So say no if there are warnings |
| 2447 | @@ -9456,13 +9237,6 @@ |
| 2448 | mkdir out |
| 2449 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 2450 | |
| 2451 | - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 2452 | - # that will create temporary files in the current directory regardless of |
| 2453 | - # the output directory. Thus, making CWD read-only will cause this test |
| 2454 | - # to fail, enabling locking or at least warning the user not to do parallel |
| 2455 | - # builds. |
| 2456 | - chmod -w . |
| 2457 | - |
| 2458 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 2459 | # Insert the option either (1) after the last *FLAGS variable, or |
| 2460 | # (2) before a word containing "conftest.", or (3) at the end. |
| 2461 | @@ -9472,11 +9246,11 @@ |
| 2462 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 2463 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 2464 | -e 's:$: $lt_compiler_flag:'` |
| 2465 | - (eval echo "\"\$as_me:9475: $lt_compile\"" >&5) |
| 2466 | + (eval echo "\"\$as_me:9249: $lt_compile\"" >&5) |
| 2467 | (eval "$lt_compile" 2>out/conftest.err) |
| 2468 | ac_status=$? |
| 2469 | cat out/conftest.err >&5 |
| 2470 | - echo "$as_me:9479: \$? = $ac_status" >&5 |
| 2471 | + echo "$as_me:9253: \$? = $ac_status" >&5 |
| 2472 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 2473 | then |
| 2474 | # The compiler can only warn and ignore the option if not recognized |
| 2475 | @@ -9486,8 +9260,11 @@ |
| 2476 | fi |
| 2477 | fi |
| 2478 | chmod u+w . |
| 2479 | - $rm conftest* out/* |
| 2480 | - rmdir out |
| 2481 | + $rm conftest* |
| 2482 | + # SGI C++ compiler will create directory out/ii_files/ for |
| 2483 | + # template instantiation |
| 2484 | + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 2485 | + $rm out/* && rmdir out |
| 2486 | cd .. |
| 2487 | rmdir conftest |
| 2488 | $rm conftest* |
| 2489 | @@ -9615,7 +9392,7 @@ |
| 2490 | allow_undefined_flag=unsupported |
| 2491 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 2492 | # support --undefined. This deserves some investigation. FIXME |
| 2493 | - archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 2494 | + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 2495 | else |
| 2496 | ld_shlibs=no |
| 2497 | fi |
| 2498 | @@ -9625,13 +9402,13 @@ |
| 2499 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 2500 | # as there is no search path for DLLs. |
| 2501 | hardcode_libdir_flag_spec='-L$libdir' |
| 2502 | - allow_undefined_flag=no |
| 2503 | + allow_undefined_flag=unsupported |
| 2504 | always_export_symbols=no |
| 2505 | enable_shared_with_static_runtimes=yes |
| 2506 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 2507 | |
| 2508 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 2509 | - archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 2510 | + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 2511 | # If the export-symbols file already is a .def file (1st line |
| 2512 | # is EXPORTS), use it as is; otherwise, prepend... |
| 2513 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 2514 | @@ -9640,19 +9417,19 @@ |
| 2515 | echo EXPORTS > $output_objdir/$soname.def; |
| 2516 | cat $export_symbols >> $output_objdir/$soname.def; |
| 2517 | fi~ |
| 2518 | - $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 2519 | + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 2520 | else |
| 2521 | ld_shlibs=no |
| 2522 | fi |
| 2523 | ;; |
| 2524 | |
| 2525 | - netbsd*) |
| 2526 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 2527 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 2528 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 2529 | wlarc= |
| 2530 | else |
| 2531 | - archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 2532 | - archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 2533 | + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 2534 | + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 2535 | fi |
| 2536 | ;; |
| 2537 | |
| 2538 | @@ -9670,8 +9447,8 @@ |
| 2539 | |
| 2540 | EOF |
| 2541 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 2542 | - archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 2543 | - archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 2544 | + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 2545 | + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 2546 | else |
| 2547 | ld_shlibs=no |
| 2548 | fi |
| 2549 | @@ -9684,10 +9461,36 @@ |
| 2550 | hardcode_shlibpath_var=no |
| 2551 | ;; |
| 2552 | |
| 2553 | + linux*) |
| 2554 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 2555 | + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 2556 | + archive_cmds="$tmp_archive_cmds" |
| 2557 | + supports_anon_versioning=no |
| 2558 | + case `$LD -v 2>/dev/null` in |
| 2559 | + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 2560 | + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 2561 | + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 2562 | + *\ 2.11.*) ;; # other 2.11 versions |
| 2563 | + *) supports_anon_versioning=yes ;; |
| 2564 | + esac |
| 2565 | + if test $supports_anon_versioning = yes; then |
| 2566 | + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 2567 | +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 2568 | +$echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 2569 | + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 2570 | + else |
| 2571 | + archive_expsym_cmds="$tmp_archive_cmds" |
| 2572 | + fi |
| 2573 | + link_all_deplibs=no |
| 2574 | + else |
| 2575 | + ld_shlibs=no |
| 2576 | + fi |
| 2577 | + ;; |
| 2578 | + |
| 2579 | *) |
| 2580 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 2581 | - archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 2582 | - archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 2583 | + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 2584 | + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 2585 | else |
| 2586 | ld_shlibs=no |
| 2587 | fi |
| 2588 | @@ -9737,9 +9540,20 @@ |
| 2589 | else |
| 2590 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 2591 | fi |
| 2592 | + aix_use_runtimelinking=no |
| 2593 | + |
| 2594 | + # Test if we are trying to use run time linking or normal |
| 2595 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 2596 | + # need to do runtime linking. |
| 2597 | + case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 2598 | + for ld_flag in $LDFLAGS; do |
| 2599 | + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 2600 | + aix_use_runtimelinking=yes |
| 2601 | + break |
| 2602 | + fi |
| 2603 | + done |
| 2604 | + esac |
| 2605 | |
| 2606 | - # KDE requires run time linking. Make it the default. |
| 2607 | - aix_use_runtimelinking=yes |
| 2608 | exp_sym_flag='-bexport' |
| 2609 | no_entry_flag='-bnoentry' |
| 2610 | fi |
| 2611 | @@ -9785,21 +9599,22 @@ |
| 2612 | shared_flag='-G' |
| 2613 | else |
| 2614 | if test "$aix_use_runtimelinking" = yes; then |
| 2615 | - shared_flag='-qmkshrobj ${wl}-G' |
| 2616 | + shared_flag='${wl}-G' |
| 2617 | else |
| 2618 | - shared_flag='-qmkshrobj' |
| 2619 | + shared_flag='${wl}-bM:SRE' |
| 2620 | fi |
| 2621 | fi |
| 2622 | fi |
| 2623 | |
| 2624 | - # Let the compiler handle the export list. |
| 2625 | - always_export_symbols=no |
| 2626 | + # It seems that -bexpall does not export symbols beginning with |
| 2627 | + # underscore (_), so it is better to generate a list of symbols to export. |
| 2628 | + always_export_symbols=yes |
| 2629 | if test "$aix_use_runtimelinking" = yes; then |
| 2630 | # Warning - without using the other runtime loading flags (-brtl), |
| 2631 | # -berok will link without error, but may produce a broken library. |
| 2632 | allow_undefined_flag='-berok' |
| 2633 | # Determine the default libpath from the value encoded in an empty executable. |
| 2634 | - cat >conftest.$ac_ext <<_ACEOF |
| 2635 | + cat >conftest.$ac_ext <<_ACEOF |
| 2636 | /* confdefs.h. */ |
| 2637 | _ACEOF |
| 2638 | cat confdefs.h >>conftest.$ac_ext |
| 2639 | @@ -9823,8 +9638,7 @@ |
| 2640 | cat conftest.err >&5 |
| 2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2642 | (exit $ac_status); } && |
| 2643 | - { ac_try='test -z "$ac_c_werror_flag" |
| 2644 | - || test ! -s conftest.err' |
| 2645 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2647 | (eval $ac_try) 2>&5 |
| 2648 | ac_status=$? |
| 2649 | @@ -9851,14 +9665,13 @@ |
| 2650 | conftest$ac_exeext conftest.$ac_ext |
| 2651 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 2652 | |
| 2653 | - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 2654 | - archive_cmds="\$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" |
| 2655 | - archive_expsym_cmds="\$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" |
| 2656 | + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 2657 | + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 2658 | else |
| 2659 | if test "$host_cpu" = ia64; then |
| 2660 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 2661 | allow_undefined_flag="-z nodefs" |
| 2662 | - archive_expsym_cmds="\$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" |
| 2663 | + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 2664 | else |
| 2665 | # Determine the default libpath from the value encoded in an empty executable. |
| 2666 | cat >conftest.$ac_ext <<_ACEOF |
| 2667 | @@ -9885,8 +9698,7 @@ |
| 2668 | cat conftest.err >&5 |
| 2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2670 | (exit $ac_status); } && |
| 2671 | - { ac_try='test -z "$ac_c_werror_flag" |
| 2672 | - || test ! -s conftest.err' |
| 2673 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2675 | (eval $ac_try) 2>&5 |
| 2676 | ac_status=$? |
| 2677 | @@ -9924,7 +9736,7 @@ |
| 2678 | whole_archive_flag_spec=' ' |
| 2679 | archive_cmds_need_lc=yes |
| 2680 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 2681 | - archive_expsym_cmds="\$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' |
| 2682 | + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 2683 | fi |
| 2684 | fi |
| 2685 | ;; |
| 2686 | @@ -9947,13 +9759,13 @@ |
| 2687 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 2688 | # no search path for DLLs. |
| 2689 | hardcode_libdir_flag_spec=' ' |
| 2690 | - allow_undefined_flag=no |
| 2691 | + allow_undefined_flag=unsupported |
| 2692 | # Tell ltmain to make .lib files, not .a files. |
| 2693 | libext=lib |
| 2694 | # Tell ltmain to make .dll files, not .so files. |
| 2695 | - shrext=".dll" |
| 2696 | + shrext_cmds=".dll" |
| 2697 | # FIXME: Setting linknames here is a bad hack. |
| 2698 | - archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 2699 | + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 2700 | # The linker will automatically build a .lib file if we build a DLL. |
| 2701 | old_archive_From_new_cmds='true' |
| 2702 | # FIXME: Should let the user specify the lib program. |
| 2703 | @@ -9967,21 +9779,21 @@ |
| 2704 | archive_cmds_need_lc=no |
| 2705 | case "$host_os" in |
| 2706 | rhapsody* | darwin1.[012]) |
| 2707 | - allow_undefined_flag='-Wl,-undefined -Wl,suppress' |
| 2708 | + allow_undefined_flag='-undefined suppress' |
| 2709 | ;; |
| 2710 | *) # Darwin 1.3 on |
| 2711 | - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 2712 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 2713 | - else |
| 2714 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 2715 | - 10.012) |
| 2716 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 2717 | - ;; |
| 2718 | - 10.*) |
| 2719 | - allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' |
| 2720 | - ;; |
| 2721 | - esac |
| 2722 | - fi |
| 2723 | + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 2724 | + allow_undefined_flag='-flat_namespace -undefined suppress' |
| 2725 | + else |
| 2726 | + case ${MACOSX_DEPLOYMENT_TARGET} in |
| 2727 | + 10.[012]) |
| 2728 | + allow_undefined_flag='-flat_namespace -undefined suppress' |
| 2729 | + ;; |
| 2730 | + 10.*) |
| 2731 | + allow_undefined_flag='-undefined dynamic_lookup' |
| 2732 | + ;; |
| 2733 | + esac |
| 2734 | + fi |
| 2735 | ;; |
| 2736 | esac |
| 2737 | lt_int_apple_cc_single_mod=no |
| 2738 | @@ -9990,18 +9802,18 @@ |
| 2739 | lt_int_apple_cc_single_mod=yes |
| 2740 | fi |
| 2741 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 2742 | - archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 2743 | + archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 2744 | else |
| 2745 | - archive_cmds='$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' |
| 2746 | + archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 2747 | fi |
| 2748 | - module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 2749 | + module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 2750 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 2751 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 2752 | - archive_expsym_cmds='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}' |
| 2753 | + archive_expsym_cmds='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}' |
| 2754 | else |
| 2755 | - archive_expsym_cmds='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}' |
| 2756 | + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 2757 | fi |
| 2758 | - module_expsym_cmds='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}' |
| 2759 | + module_expsym_cmds='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}' |
| 2760 | hardcode_direct=no |
| 2761 | hardcode_automatic=yes |
| 2762 | hardcode_shlibpath_var=unsupported |
| 2763 | @@ -10042,8 +9854,8 @@ |
| 2764 | ;; |
| 2765 | |
| 2766 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 2767 | - freebsd*) |
| 2768 | - archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' |
| 2769 | + freebsd* | kfreebsd*-gnu) |
| 2770 | + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 2771 | hardcode_libdir_flag_spec='-R$libdir' |
| 2772 | hardcode_direct=yes |
| 2773 | hardcode_shlibpath_var=no |
| 2774 | @@ -10051,7 +9863,7 @@ |
| 2775 | |
| 2776 | hpux9*) |
| 2777 | if test "$GCC" = yes; then |
| 2778 | - archive_cmds='$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' |
| 2779 | + archive_cmds='$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' |
| 2780 | else |
| 2781 | archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 2782 | fi |
| 2783 | @@ -10069,10 +9881,10 @@ |
| 2784 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 2785 | case "$host_cpu" in |
| 2786 | hppa*64*|ia64*) |
| 2787 | - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 2788 | + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2789 | ;; |
| 2790 | *) |
| 2791 | - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' |
| 2792 | + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 2793 | ;; |
| 2794 | esac |
| 2795 | else |
| 2796 | @@ -10119,7 +9931,7 @@ |
| 2797 | |
| 2798 | irix5* | irix6* | nonstopux*) |
| 2799 | if test "$GCC" = yes; then |
| 2800 | - archive_cmds='$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' |
| 2801 | + archive_cmds='$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' |
| 2802 | else |
| 2803 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 2804 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 2805 | @@ -10129,7 +9941,7 @@ |
| 2806 | link_all_deplibs=yes |
| 2807 | ;; |
| 2808 | |
| 2809 | - netbsd*) |
| 2810 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 2811 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 2812 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 2813 | else |
| 2814 | @@ -10152,7 +9964,7 @@ |
| 2815 | hardcode_direct=yes |
| 2816 | hardcode_shlibpath_var=no |
| 2817 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 2818 | - archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
| 2819 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 2820 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 2821 | export_dynamic_flag_spec='${wl}-E' |
| 2822 | else |
| 2823 | @@ -10162,7 +9974,7 @@ |
| 2824 | hardcode_libdir_flag_spec='-R$libdir' |
| 2825 | ;; |
| 2826 | *) |
| 2827 | - archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
| 2828 | + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 2829 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 2830 | ;; |
| 2831 | esac |
| 2832 | @@ -10173,14 +9985,14 @@ |
| 2833 | hardcode_libdir_flag_spec='-L$libdir' |
| 2834 | hardcode_minus_L=yes |
| 2835 | allow_undefined_flag=unsupported |
| 2836 | - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def' |
| 2837 | + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 2838 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 2839 | ;; |
| 2840 | |
| 2841 | osf3*) |
| 2842 | if test "$GCC" = yes; then |
| 2843 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 2844 | - archive_cmds='$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' |
| 2845 | + archive_cmds='$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' |
| 2846 | else |
| 2847 | allow_undefined_flag=' -expect_unresolved \*' |
| 2848 | archive_cmds='$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' |
| 2849 | @@ -10192,7 +10004,7 @@ |
| 2850 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 2851 | if test "$GCC" = yes; then |
| 2852 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 2853 | - archive_cmds='$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' |
| 2854 | + archive_cmds='$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' |
| 2855 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 2856 | else |
| 2857 | allow_undefined_flag=' -expect_unresolved \*' |
| 2858 | @@ -10217,9 +10029,9 @@ |
| 2859 | solaris*) |
| 2860 | no_undefined_flag=' -z text' |
| 2861 | if test "$GCC" = yes; then |
| 2862 | - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 2863 | + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2864 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 2865 | - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' |
| 2866 | + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 2867 | else |
| 2868 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 2869 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 2870 | @@ -10239,7 +10051,7 @@ |
| 2871 | if test "x$host_vendor" = xsequent; then |
| 2872 | # Use $CC to link under sequent, because it throws in some extra .o |
| 2873 | # files that make .init and .fini sections work. |
| 2874 | - archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' |
| 2875 | + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2876 | else |
| 2877 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 2878 | fi |
| 2879 | @@ -10299,9 +10111,9 @@ |
| 2880 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 2881 | no_undefined_flag='${wl}-z ${wl}text' |
| 2882 | if test "$GCC" = yes; then |
| 2883 | - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 2884 | + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2885 | else |
| 2886 | - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 2887 | + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 2888 | fi |
| 2889 | runpath_var='LD_RUN_PATH' |
| 2890 | hardcode_shlibpath_var=no |
| 2891 | @@ -10407,7 +10219,7 @@ |
| 2892 | library_names_spec= |
| 2893 | libname_spec='lib$name' |
| 2894 | soname_spec= |
| 2895 | -shrext=".so" |
| 2896 | +shrext_cmds=".so" |
| 2897 | postinstall_cmds= |
| 2898 | postuninstall_cmds= |
| 2899 | finish_cmds= |
| 2900 | @@ -10417,7 +10229,20 @@ |
| 2901 | version_type=none |
| 2902 | dynamic_linker="$host_os ld.so" |
| 2903 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 2904 | -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 2905 | +if test "$GCC" = yes; then |
| 2906 | + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 2907 | + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 2908 | + # if the path contains ";" then we assume it to be the separator |
| 2909 | + # otherwise default to the standard path separator (i.e. ":") - it is |
| 2910 | + # assumed that no part of a normal pathname contains ";" but that should |
| 2911 | + # okay in the real world where ";" in dirpaths is itself problematic. |
| 2912 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 2913 | + else |
| 2914 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 2915 | + fi |
| 2916 | +else |
| 2917 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 2918 | +fi |
| 2919 | need_lib_prefix=unknown |
| 2920 | hardcode_into_libs=no |
| 2921 | |
| 2922 | @@ -10482,7 +10307,7 @@ |
| 2923 | amigaos*) |
| 2924 | library_names_spec='$libname.ixlibrary $libname.a' |
| 2925 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 2926 | - 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' |
| 2927 | + 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' |
| 2928 | ;; |
| 2929 | |
| 2930 | beos*) |
| 2931 | @@ -10507,7 +10332,7 @@ |
| 2932 | |
| 2933 | cygwin* | mingw* | pw32*) |
| 2934 | version_type=windows |
| 2935 | - shrext=".dll" |
| 2936 | + shrext_cmds=".dll" |
| 2937 | need_version=no |
| 2938 | need_lib_prefix=no |
| 2939 | |
| 2940 | @@ -10572,7 +10397,7 @@ |
| 2941 | soname_spec='${libname}${release}${major}$shared_ext' |
| 2942 | shlibpath_overrides_runpath=yes |
| 2943 | shlibpath_var=DYLD_LIBRARY_PATH |
| 2944 | - shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 2945 | + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 2946 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 2947 | if test "$GCC" = yes; then |
| 2948 | 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"` |
| 2949 | @@ -10595,7 +10420,7 @@ |
| 2950 | dynamic_linker=no |
| 2951 | ;; |
| 2952 | |
| 2953 | -freebsd*-gnu*) |
| 2954 | +kfreebsd*-gnu) |
| 2955 | version_type=linux |
| 2956 | need_lib_prefix=no |
| 2957 | need_version=no |
| 2958 | @@ -10655,7 +10480,7 @@ |
| 2959 | need_version=no |
| 2960 | case "$host_cpu" in |
| 2961 | ia64*) |
| 2962 | - shrext='.so' |
| 2963 | + shrext_cmds='.so' |
| 2964 | hardcode_into_libs=yes |
| 2965 | dynamic_linker="$host_os dld.so" |
| 2966 | shlibpath_var=LD_LIBRARY_PATH |
| 2967 | @@ -10670,7 +10495,7 @@ |
| 2968 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2969 | ;; |
| 2970 | hppa*64*) |
| 2971 | - shrext='.sl' |
| 2972 | + shrext_cmds='.sl' |
| 2973 | hardcode_into_libs=yes |
| 2974 | dynamic_linker="$host_os dld.sl" |
| 2975 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 2976 | @@ -10681,7 +10506,7 @@ |
| 2977 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2978 | ;; |
| 2979 | *) |
| 2980 | - shrext='.sl' |
| 2981 | + shrext_cmds='.sl' |
| 2982 | dynamic_linker="$host_os dld.sl" |
| 2983 | shlibpath_var=SHLIB_PATH |
| 2984 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 2985 | @@ -10743,22 +10568,19 @@ |
| 2986 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2987 | soname_spec='${libname}${release}${shared_ext}$major' |
| 2988 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 2989 | - libsuff= |
| 2990 | - if test "x$LINUX_64_MODE" = x64; then |
| 2991 | - # Some platforms are per default 64-bit, so there's no /lib64 |
| 2992 | - if test -d /lib64; then |
| 2993 | - libsuff=64 |
| 2994 | - fi |
| 2995 | - fi |
| 2996 | shlibpath_var=LD_LIBRARY_PATH |
| 2997 | shlibpath_overrides_runpath=no |
| 2998 | - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
| 2999 | - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
| 3000 | # This implies no fast_install, which is unacceptable. |
| 3001 | # Some rework will be needed to allow for fast_install |
| 3002 | # before this can be enabled. |
| 3003 | hardcode_into_libs=yes |
| 3004 | |
| 3005 | + # Append ld.so.conf contents to the search path |
| 3006 | + if test -f /etc/ld.so.conf; then |
| 3007 | + lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 3008 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 3009 | + fi |
| 3010 | + |
| 3011 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 3012 | # powerpc, because MkLinux only supported shared libraries with the |
| 3013 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 3014 | @@ -10768,6 +10590,30 @@ |
| 3015 | dynamic_linker='GNU/Linux ld.so' |
| 3016 | ;; |
| 3017 | |
| 3018 | +netbsdelf*-gnu) |
| 3019 | + version_type=linux |
| 3020 | + need_lib_prefix=no |
| 3021 | + need_version=no |
| 3022 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 3023 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 3024 | + shlibpath_var=LD_LIBRARY_PATH |
| 3025 | + shlibpath_overrides_runpath=no |
| 3026 | + hardcode_into_libs=yes |
| 3027 | + dynamic_linker='NetBSD ld.elf_so' |
| 3028 | + ;; |
| 3029 | + |
| 3030 | +knetbsd*-gnu) |
| 3031 | + version_type=linux |
| 3032 | + need_lib_prefix=no |
| 3033 | + need_version=no |
| 3034 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 3035 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 3036 | + shlibpath_var=LD_LIBRARY_PATH |
| 3037 | + shlibpath_overrides_runpath=no |
| 3038 | + hardcode_into_libs=yes |
| 3039 | + dynamic_linker='GNU ld.so' |
| 3040 | + ;; |
| 3041 | + |
| 3042 | netbsd*) |
| 3043 | version_type=sunos |
| 3044 | need_lib_prefix=no |
| 3045 | @@ -10777,7 +10623,7 @@ |
| 3046 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 3047 | dynamic_linker='NetBSD (a.out) ld.so' |
| 3048 | else |
| 3049 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 3050 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 3051 | soname_spec='${libname}${release}${shared_ext}$major' |
| 3052 | dynamic_linker='NetBSD ld.elf_so' |
| 3053 | fi |
| 3054 | @@ -10806,7 +10652,7 @@ |
| 3055 | openbsd*) |
| 3056 | version_type=sunos |
| 3057 | need_lib_prefix=no |
| 3058 | - need_version=no |
| 3059 | + need_version=yes |
| 3060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 3061 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 3062 | shlibpath_var=LD_LIBRARY_PATH |
| 3063 | @@ -10826,7 +10672,7 @@ |
| 3064 | |
| 3065 | os2*) |
| 3066 | libname_spec='$name' |
| 3067 | - shrext=".dll" |
| 3068 | + shrext_cmds=".dll" |
| 3069 | need_lib_prefix=no |
| 3070 | library_names_spec='$libname${shared_ext} $libname.a' |
| 3071 | dynamic_linker='OS/2 ld.exe' |
| 3072 | @@ -11055,8 +10901,7 @@ |
| 3073 | cat conftest.err >&5 |
| 3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3075 | (exit $ac_status); } && |
| 3076 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3077 | - || test ! -s conftest.err' |
| 3078 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3080 | (eval $ac_try) 2>&5 |
| 3081 | ac_status=$? |
| 3082 | @@ -11159,8 +11004,7 @@ |
| 3083 | cat conftest.err >&5 |
| 3084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3085 | (exit $ac_status); } && |
| 3086 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3087 | - || test ! -s conftest.err' |
| 3088 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3090 | (eval $ac_try) 2>&5 |
| 3091 | ac_status=$? |
| 3092 | @@ -11225,8 +11069,7 @@ |
| 3093 | cat conftest.err >&5 |
| 3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3095 | (exit $ac_status); } && |
| 3096 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3097 | - || test ! -s conftest.err' |
| 3098 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3100 | (eval $ac_try) 2>&5 |
| 3101 | ac_status=$? |
| 3102 | @@ -11319,8 +11162,7 @@ |
| 3103 | cat conftest.err >&5 |
| 3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3105 | (exit $ac_status); } && |
| 3106 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3107 | - || test ! -s conftest.err' |
| 3108 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3110 | (eval $ac_try) 2>&5 |
| 3111 | ac_status=$? |
| 3112 | @@ -11385,8 +11227,7 @@ |
| 3113 | cat conftest.err >&5 |
| 3114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3115 | (exit $ac_status); } && |
| 3116 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3117 | - || test ! -s conftest.err' |
| 3118 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3120 | (eval $ac_try) 2>&5 |
| 3121 | ac_status=$? |
| 3122 | @@ -11452,8 +11293,7 @@ |
| 3123 | cat conftest.err >&5 |
| 3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3125 | (exit $ac_status); } && |
| 3126 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3127 | - || test ! -s conftest.err' |
| 3128 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3130 | (eval $ac_try) 2>&5 |
| 3131 | ac_status=$? |
| 3132 | @@ -11519,8 +11359,7 @@ |
| 3133 | cat conftest.err >&5 |
| 3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3135 | (exit $ac_status); } && |
| 3136 | - { ac_try='test -z "$ac_c_werror_flag" |
| 3137 | - || test ! -s conftest.err' |
| 3138 | + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3140 | (eval $ac_try) 2>&5 |
| 3141 | ac_status=$? |
| 3142 | @@ -11595,7 +11434,7 @@ |
| 3143 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 3144 | lt_status=$lt_dlunknown |
| 3145 | cat > conftest.$ac_ext <<EOF |
| 3146 | -#line 11598 "configure" |
| 3147 | +#line 11437 "configure" |
| 3148 | #include "confdefs.h" |
| 3149 | |
| 3150 | #if HAVE_DLFCN_H |
| 3151 | @@ -11693,7 +11532,7 @@ |
| 3152 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 3153 | lt_status=$lt_dlunknown |
| 3154 | cat > conftest.$ac_ext <<EOF |
| 3155 | -#line 11696 "configure" |
| 3156 | +#line 11535 "configure" |
| 3157 | #include "confdefs.h" |
| 3158 | |
| 3159 | #if HAVE_DLFCN_H |
| 3160 | @@ -11818,7 +11657,7 @@ |
| 3161 | fi |
| 3162 | ;; |
| 3163 | |
| 3164 | -aix4*) |
| 3165 | +aix4* | aix5*) |
| 3166 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 3167 | test "$enable_shared" = yes && enable_static=no |
| 3168 | fi |
| 3169 | @@ -11828,29 +11667,29 @@ |
| 3170 | archive_cmds_need_lc=no |
| 3171 | case "$host_os" in |
| 3172 | rhapsody* | darwin1.[012]) |
| 3173 | - allow_undefined_flag='-Wl,-undefined -Wl,suppress' |
| 3174 | + allow_undefined_flag='-undefined suppress' |
| 3175 | ;; |
| 3176 | *) # Darwin 1.3 on |
| 3177 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 3178 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 3179 | + allow_undefined_flag='-flat_namespace -undefined suppress' |
| 3180 | else |
| 3181 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 3182 | - 10.012) |
| 3183 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 3184 | - ;; |
| 3185 | - 10.*) |
| 3186 | - allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' |
| 3187 | - ;; |
| 3188 | - esac |
| 3189 | + case ${MACOSX_DEPLOYMENT_TARGET} in |
| 3190 | + 10.[012]) |
| 3191 | + allow_undefined_flag='-flat_namespace -undefined suppress' |
| 3192 | + ;; |
| 3193 | + 10.*) |
| 3194 | + allow_undefined_flag='-undefined dynamic_lookup' |
| 3195 | + ;; |
| 3196 | + esac |
| 3197 | fi |
| 3198 | ;; |
| 3199 | esac |
| 3200 | output_verbose_link_cmd='echo' |
| 3201 | - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 3202 | - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 3203 | + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 3204 | + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 3205 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 3206 | - archive_expsym_cmds='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}' |
| 3207 | - module_expsym_cmds='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}' |
| 3208 | + archive_expsym_cmds='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}' |
| 3209 | + module_expsym_cmds='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}' |
| 3210 | hardcode_direct=no |
| 3211 | hardcode_automatic=yes |
| 3212 | hardcode_shlibpath_var=unsupported |
| 3213 | @@ -11884,7 +11723,8 @@ |
| 3214 | # Now quote all the things that may contain metacharacters while being |
| 3215 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 3216 | # variables and quote the copies for generation of the libtool script. |
| 3217 | - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 3218 | + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 3219 | + SED SHELL STRIP \ |
| 3220 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 3221 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 3222 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 3223 | @@ -12062,7 +11902,7 @@ |
| 3224 | NM=$lt_NM |
| 3225 | |
| 3226 | # A symbol stripping program |
| 3227 | -STRIP=$STRIP |
| 3228 | +STRIP=$lt_STRIP |
| 3229 | |
| 3230 | # Used to examine libraries when file_magic_cmd begins "file" |
| 3231 | MAGIC_CMD=$MAGIC_CMD |
| 3232 | @@ -12093,7 +11933,7 @@ |
| 3233 | libext="$libext" |
| 3234 | |
| 3235 | # Shared library suffix (normally ".so"). |
| 3236 | -shrext='$shrext' |
| 3237 | +shrext_cmds='$shrext_cmds' |
| 3238 | |
| 3239 | # Executable file suffix (normally ""). |
| 3240 | exeext="$exeext" |
| 3241 | @@ -12335,7 +12175,10 @@ |
| 3242 | # If there is no Makefile yet, we rely on a make rule to execute |
| 3243 | # `config.status --recheck' to rerun these tests and create the |
| 3244 | # libtool script then. |
| 3245 | - test -f Makefile && make "$ltmain" |
| 3246 | + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 3247 | + if test -f "$ltmain_in"; then |
| 3248 | + test -f Makefile && make "$ltmain" |
| 3249 | + fi |
| 3250 | fi |
| 3251 | |
| 3252 | |
| 3253 | @@ -12603,8 +12446,8 @@ |
| 3254 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 3255 | # archiving commands below assume that GNU ld is being used. |
| 3256 | if test "$with_gnu_ld" = yes; then |
| 3257 | - archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
| 3258 | - archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3259 | + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3260 | + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3261 | |
| 3262 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 3263 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 3264 | @@ -12630,7 +12473,7 @@ |
| 3265 | # linker, instead of GNU ld. If possible, this setting should |
| 3266 | # overridden to take advantage of the native linker features on |
| 3267 | # the platform it is being used on. |
| 3268 | - archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib' |
| 3269 | + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 3270 | fi |
| 3271 | |
| 3272 | # Commands to make compiler produce verbose output that lists |
| 3273 | @@ -12661,8 +12504,22 @@ |
| 3274 | exp_sym_flag='-Bexport' |
| 3275 | no_entry_flag="" |
| 3276 | else |
| 3277 | - # KDE requires run time linking. Make it the default. |
| 3278 | - aix_use_runtimelinking=yes |
| 3279 | + aix_use_runtimelinking=no |
| 3280 | + |
| 3281 | + # Test if we are trying to use run time linking or normal |
| 3282 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 3283 | + # need to do runtime linking. |
| 3284 | + case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 3285 | + for ld_flag in $LDFLAGS; do |
| 3286 | + case $ld_flag in |
| 3287 | + *-brtl*) |
| 3288 | + aix_use_runtimelinking=yes |
| 3289 | + break |
| 3290 | + ;; |
| 3291 | + esac |
| 3292 | + done |
| 3293 | + esac |
| 3294 | + |
| 3295 | exp_sym_flag='-bexport' |
| 3296 | no_entry_flag='-bnoentry' |
| 3297 | fi |
| 3298 | @@ -12708,15 +12565,16 @@ |
| 3299 | shared_flag='-G' |
| 3300 | else |
| 3301 | if test "$aix_use_runtimelinking" = yes; then |
| 3302 | - shared_flag='-qmkshrobj ${wl}-G' |
| 3303 | + shared_flag='${wl}-G' |
| 3304 | else |
| 3305 | - shared_flag='-qmkshrobj' |
| 3306 | + shared_flag='${wl}-bM:SRE' |
| 3307 | fi |
| 3308 | fi |
| 3309 | fi |
| 3310 | |
| 3311 | - # Let the compiler handle the export list. |
| 3312 | - always_export_symbols_CXX=no |
| 3313 | + # It seems that -bexpall does not export symbols beginning with |
| 3314 | + # underscore (_), so it is better to generate a list of symbols to export. |
| 3315 | + always_export_symbols_CXX=yes |
| 3316 | if test "$aix_use_runtimelinking" = yes; then |
| 3317 | # Warning - without using the other runtime loading flags (-brtl), |
| 3318 | # -berok will link without error, but may produce a broken library. |
| 3319 | @@ -12746,8 +12604,7 @@ |
| 3320 | cat conftest.err >&5 |
| 3321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3322 | (exit $ac_status); } && |
| 3323 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 3324 | - || test ! -s conftest.err' |
| 3325 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3327 | (eval $ac_try) 2>&5 |
| 3328 | ac_status=$? |
| 3329 | @@ -12776,13 +12633,12 @@ |
| 3330 | |
| 3331 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 3332 | |
| 3333 | - archive_cmds_CXX="\$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" |
| 3334 | - archive_expsym_cmds_CXX="\$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" |
| 3335 | + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 3336 | else |
| 3337 | if test "$host_cpu" = ia64; then |
| 3338 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 3339 | allow_undefined_flag_CXX="-z nodefs" |
| 3340 | - archive_expsym_cmds_CXX="\$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" |
| 3341 | + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 3342 | else |
| 3343 | # Determine the default libpath from the value encoded in an empty executable. |
| 3344 | cat >conftest.$ac_ext <<_ACEOF |
| 3345 | @@ -12809,8 +12665,7 @@ |
| 3346 | cat conftest.err >&5 |
| 3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3348 | (exit $ac_status); } && |
| 3349 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 3350 | - || test ! -s conftest.err' |
| 3351 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3353 | (eval $ac_try) 2>&5 |
| 3354 | ac_status=$? |
| 3355 | @@ -12848,7 +12703,7 @@ |
| 3356 | whole_archive_flag_spec_CXX=' ' |
| 3357 | archive_cmds_need_lc_CXX=yes |
| 3358 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 3359 | - archive_expsym_cmds_CXX="\$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' |
| 3360 | + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 3361 | fi |
| 3362 | fi |
| 3363 | ;; |
| 3364 | @@ -12865,12 +12720,12 @@ |
| 3365 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 3366 | # as there is no search path for DLLs. |
| 3367 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 3368 | - allow_undefined_flag_CXX=no |
| 3369 | + allow_undefined_flag_CXX=unsupported |
| 3370 | always_export_symbols_CXX=no |
| 3371 | enable_shared_with_static_runtimes_CXX=yes |
| 3372 | |
| 3373 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 3374 | - archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 3375 | + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 3376 | # If the export-symbols file already is a .def file (1st line |
| 3377 | # is EXPORTS), use it as is; otherwise, prepend... |
| 3378 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 3379 | @@ -12879,7 +12734,7 @@ |
| 3380 | echo EXPORTS > $output_objdir/$soname.def; |
| 3381 | cat $export_symbols >> $output_objdir/$soname.def; |
| 3382 | fi~ |
| 3383 | - $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' |
| 3384 | + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 3385 | else |
| 3386 | ld_shlibs_CXX=no |
| 3387 | fi |
| 3388 | @@ -12890,20 +12745,20 @@ |
| 3389 | archive_cmds_need_lc_CXX=no |
| 3390 | case "$host_os" in |
| 3391 | rhapsody* | darwin1.[012]) |
| 3392 | - allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress' |
| 3393 | + allow_undefined_flag_CXX='-undefined suppress' |
| 3394 | ;; |
| 3395 | *) # Darwin 1.3 on |
| 3396 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 3397 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 3398 | + allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 3399 | else |
| 3400 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 3401 | - 10.012) |
| 3402 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 3403 | - ;; |
| 3404 | - 10.*) |
| 3405 | - allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' |
| 3406 | - ;; |
| 3407 | - esac |
| 3408 | + case ${MACOSX_DEPLOYMENT_TARGET} in |
| 3409 | + 10.[012]) |
| 3410 | + allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 3411 | + ;; |
| 3412 | + 10.*) |
| 3413 | + allow_undefined_flag_CXX='-undefined dynamic_lookup' |
| 3414 | + ;; |
| 3415 | + esac |
| 3416 | fi |
| 3417 | ;; |
| 3418 | esac |
| 3419 | @@ -12913,19 +12768,19 @@ |
| 3420 | lt_int_apple_cc_single_mod=yes |
| 3421 | fi |
| 3422 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 3423 | - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 3424 | + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 3425 | else |
| 3426 | - archive_cmds_CXX='$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' |
| 3427 | + archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 3428 | fi |
| 3429 | - module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 3430 | + module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 3431 | |
| 3432 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 3433 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 3434 | - archive_expsym_cmds_CXX='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}' |
| 3435 | + archive_expsym_cmds_CXX='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}' |
| 3436 | else |
| 3437 | - archive_expsym_cmds_CXX='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}' |
| 3438 | + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 3439 | fi |
| 3440 | - module_expsym_cmds_CXX='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}' |
| 3441 | + module_expsym_cmds_CXX='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}' |
| 3442 | hardcode_direct_CXX=no |
| 3443 | hardcode_automatic_CXX=yes |
| 3444 | hardcode_shlibpath_var_CXX=unsupported |
| 3445 | @@ -12960,7 +12815,7 @@ |
| 3446 | freebsd-elf*) |
| 3447 | archive_cmds_need_lc_CXX=no |
| 3448 | ;; |
| 3449 | - freebsd*) |
| 3450 | + freebsd* | kfreebsd*-gnu) |
| 3451 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 3452 | # conventions |
| 3453 | ld_shlibs_CXX=yes |
| 3454 | @@ -12982,7 +12837,7 @@ |
| 3455 | ld_shlibs_CXX=no |
| 3456 | ;; |
| 3457 | aCC) |
| 3458 | - archive_cmds_CXX='$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' |
| 3459 | + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 3460 | # Commands to make compiler produce verbose output that lists |
| 3461 | # what "hidden" libraries, object files and flags are used when |
| 3462 | # linking a shared library. |
| 3463 | @@ -12991,11 +12846,11 @@ |
| 3464 | # explicitly linking system object files so we need to strip them |
| 3465 | # from the output so that they don't get included in the library |
| 3466 | # dependencies. |
| 3467 | - 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' |
| 3468 | + 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' |
| 3469 | ;; |
| 3470 | *) |
| 3471 | if test "$GXX" = yes; then |
| 3472 | - archive_cmds_CXX='$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' |
| 3473 | + archive_cmds_CXX='$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' |
| 3474 | else |
| 3475 | # FIXME: insert proper C++ library support |
| 3476 | ld_shlibs_CXX=no |
| 3477 | @@ -13052,7 +12907,7 @@ |
| 3478 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 3479 | ;; |
| 3480 | *) |
| 3481 | - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
| 3482 | + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 3483 | ;; |
| 3484 | esac |
| 3485 | # Commands to make compiler produce verbose output that lists |
| 3486 | @@ -13073,7 +12928,7 @@ |
| 3487 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 3488 | ;; |
| 3489 | *) |
| 3490 | - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
| 3491 | + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 3492 | ;; |
| 3493 | esac |
| 3494 | fi |
| 3495 | @@ -13088,7 +12943,7 @@ |
| 3496 | case $cc_basename in |
| 3497 | CC) |
| 3498 | # SGI C++ |
| 3499 | - archive_cmds_CXX='$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' |
| 3500 | + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 3501 | |
| 3502 | # Archives containing C++ object files must be created using |
| 3503 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 3504 | @@ -13099,9 +12954,9 @@ |
| 3505 | *) |
| 3506 | if test "$GXX" = yes; then |
| 3507 | if test "$with_gnu_ld" = no; then |
| 3508 | - archive_cmds_CXX='$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' |
| 3509 | + archive_cmds_CXX='$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}${objdir}/so_locations -o $lib' |
| 3510 | else |
| 3511 | - archive_cmds_CXX='$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' |
| 3512 | + archive_cmds_CXX='$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' |
| 3513 | fi |
| 3514 | fi |
| 3515 | link_all_deplibs_CXX=yes |
| 3516 | @@ -13118,8 +12973,8 @@ |
| 3517 | # KCC will only create a shared library if the output file |
| 3518 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 3519 | # to its proper name (with version) after linking. |
| 3520 | - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
| 3521 | - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 3522 | + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 3523 | + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 3524 | # Commands to make compiler produce verbose output that lists |
| 3525 | # what "hidden" libraries, object files and flags are used when |
| 3526 | # linking a shared library. |
| 3527 | @@ -13141,16 +12996,16 @@ |
| 3528 | # Intel C++ |
| 3529 | with_gnu_ld=yes |
| 3530 | archive_cmds_need_lc_CXX=no |
| 3531 | - archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
| 3532 | - archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3533 | + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3534 | + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3535 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 3536 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 3537 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 3538 | ;; |
| 3539 | cxx) |
| 3540 | # Compaq C++ |
| 3541 | - archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' |
| 3542 | - archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 3543 | + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3544 | + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 3545 | |
| 3546 | runpath_var=LD_RUN_PATH |
| 3547 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 3548 | @@ -13188,7 +13043,7 @@ |
| 3549 | ;; |
| 3550 | esac |
| 3551 | ;; |
| 3552 | - netbsd*) |
| 3553 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 3554 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3555 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 3556 | wlarc= |
| 3557 | @@ -13207,7 +13062,7 @@ |
| 3558 | # KCC will only create a shared library if the output file |
| 3559 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 3560 | # to its proper name (with version) after linking. |
| 3561 | - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
| 3562 | + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 3563 | |
| 3564 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 3565 | hardcode_libdir_separator_CXX=: |
| 3566 | @@ -13224,7 +13079,7 @@ |
| 3567 | ;; |
| 3568 | cxx) |
| 3569 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 3570 | - archive_cmds_CXX='$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' |
| 3571 | + archive_cmds_CXX='$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 ${objdir}/so_locations -o $lib' |
| 3572 | |
| 3573 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 3574 | hardcode_libdir_separator_CXX=: |
| 3575 | @@ -13242,7 +13097,7 @@ |
| 3576 | *) |
| 3577 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 3578 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 3579 | - archive_cmds_CXX='$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' |
| 3580 | + archive_cmds_CXX='$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}${objdir}/so_locations -o $lib' |
| 3581 | |
| 3582 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 3583 | hardcode_libdir_separator_CXX=: |
| 3584 | @@ -13267,7 +13122,7 @@ |
| 3585 | # KCC will only create a shared library if the output file |
| 3586 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 3587 | # to its proper name (with version) after linking. |
| 3588 | - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' |
| 3589 | + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 3590 | |
| 3591 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 3592 | hardcode_libdir_separator_CXX=: |
| 3593 | @@ -13283,10 +13138,10 @@ |
| 3594 | ;; |
| 3595 | cxx) |
| 3596 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 3597 | - archive_cmds_CXX='$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' |
| 3598 | + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 3599 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 3600 | echo "-hidden">> $lib.exp~ |
| 3601 | - $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~ |
| 3602 | + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
| 3603 | $rm $lib.exp' |
| 3604 | |
| 3605 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 3606 | @@ -13305,7 +13160,7 @@ |
| 3607 | *) |
| 3608 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 3609 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 3610 | - archive_cmds_CXX='$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' |
| 3611 | + archive_cmds_CXX='$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}${objdir}/so_locations -o $lib' |
| 3612 | |
| 3613 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 3614 | hardcode_libdir_separator_CXX=: |
| 3615 | @@ -13362,9 +13217,9 @@ |
| 3616 | CC) |
| 3617 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 3618 | no_undefined_flag_CXX=' -zdefs' |
| 3619 | - archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' |
| 3620 | + archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 3621 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3622 | - $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' |
| 3623 | + $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 3624 | |
| 3625 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 3626 | hardcode_shlibpath_var_CXX=no |
| 3627 | @@ -13398,7 +13253,7 @@ |
| 3628 | ;; |
| 3629 | gcx) |
| 3630 | # Green Hills C++ Compiler |
| 3631 | - archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
| 3632 | + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 3633 | |
| 3634 | # The C++ compiler must be used to create the archive. |
| 3635 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 3636 | @@ -13408,9 +13263,9 @@ |
| 3637 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 3638 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 3639 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 3640 | - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
| 3641 | + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 3642 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3643 | - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
| 3644 | + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 3645 | |
| 3646 | # Commands to make compiler produce verbose output that lists |
| 3647 | # what "hidden" libraries, object files and flags are used when |
| 3648 | @@ -13419,9 +13274,9 @@ |
| 3649 | else |
| 3650 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 3651 | # platform. |
| 3652 | - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' |
| 3653 | + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 3654 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3655 | - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' |
| 3656 | + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 3657 | |
| 3658 | # Commands to make compiler produce verbose output that lists |
| 3659 | # what "hidden" libraries, object files and flags are used when |
| 3660 | @@ -13536,7 +13391,7 @@ |
| 3661 | fi |
| 3662 | ;; |
| 3663 | |
| 3664 | - *.$objext|*.$libext) |
| 3665 | + *.$objext) |
| 3666 | # This assumes that the test object file only shows up |
| 3667 | # once in the compiler output. |
| 3668 | if test "$p" = "conftest.$objext"; then |
| 3669 | @@ -13671,7 +13526,7 @@ |
| 3670 | ;; |
| 3671 | esac |
| 3672 | ;; |
| 3673 | - freebsd*) |
| 3674 | + freebsd* | kfreebsd*-gnu) |
| 3675 | # FreeBSD uses GNU C++ |
| 3676 | ;; |
| 3677 | hpux9* | hpux10* | hpux11*) |
| 3678 | @@ -13747,7 +13602,7 @@ |
| 3679 | ;; |
| 3680 | esac |
| 3681 | ;; |
| 3682 | - netbsd*) |
| 3683 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 3684 | ;; |
| 3685 | osf3* | osf4* | osf5*) |
| 3686 | case $cc_basename in |
| 3687 | @@ -13858,11 +13713,11 @@ |
| 3688 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 3689 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 3690 | -e 's:$: $lt_compiler_flag:'` |
| 3691 | - (eval echo "\"\$as_me:13861: $lt_compile\"" >&5) |
| 3692 | + (eval echo "\"\$as_me:13716: $lt_compile\"" >&5) |
| 3693 | (eval "$lt_compile" 2>conftest.err) |
| 3694 | ac_status=$? |
| 3695 | cat conftest.err >&5 |
| 3696 | - echo "$as_me:13865: \$? = $ac_status" >&5 |
| 3697 | + echo "$as_me:13720: \$? = $ac_status" >&5 |
| 3698 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 3699 | # The compiler can only warn and ignore the option if not recognized |
| 3700 | # So say no if there are warnings |
| 3701 | @@ -13909,13 +13764,6 @@ |
| 3702 | mkdir out |
| 3703 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 3704 | |
| 3705 | - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 3706 | - # that will create temporary files in the current directory regardless of |
| 3707 | - # the output directory. Thus, making CWD read-only will cause this test |
| 3708 | - # to fail, enabling locking or at least warning the user not to do parallel |
| 3709 | - # builds. |
| 3710 | - chmod -w . |
| 3711 | - |
| 3712 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 3713 | # Insert the option either (1) after the last *FLAGS variable, or |
| 3714 | # (2) before a word containing "conftest.", or (3) at the end. |
| 3715 | @@ -13925,11 +13773,11 @@ |
| 3716 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 3717 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 3718 | -e 's:$: $lt_compiler_flag:'` |
| 3719 | - (eval echo "\"\$as_me:13928: $lt_compile\"" >&5) |
| 3720 | + (eval echo "\"\$as_me:13776: $lt_compile\"" >&5) |
| 3721 | (eval "$lt_compile" 2>out/conftest.err) |
| 3722 | ac_status=$? |
| 3723 | cat out/conftest.err >&5 |
| 3724 | - echo "$as_me:13932: \$? = $ac_status" >&5 |
| 3725 | + echo "$as_me:13780: \$? = $ac_status" >&5 |
| 3726 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 3727 | then |
| 3728 | # The compiler can only warn and ignore the option if not recognized |
| 3729 | @@ -13939,8 +13787,11 @@ |
| 3730 | fi |
| 3731 | fi |
| 3732 | chmod u+w . |
| 3733 | - $rm conftest* out/* |
| 3734 | - rmdir out |
| 3735 | + $rm conftest* |
| 3736 | + # SGI C++ compiler will create directory out/ii_files/ for |
| 3737 | + # template instantiation |
| 3738 | + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 3739 | + $rm out/* && rmdir out |
| 3740 | cd .. |
| 3741 | rmdir conftest |
| 3742 | $rm conftest* |
| 3743 | @@ -13992,6 +13843,9 @@ |
| 3744 | cygwin* | mingw*) |
| 3745 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 3746 | ;; |
| 3747 | + linux*) |
| 3748 | + link_all_deplibs_CXX=no |
| 3749 | + ;; |
| 3750 | *) |
| 3751 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 3752 | ;; |
| 3753 | @@ -14073,7 +13927,7 @@ |
| 3754 | library_names_spec= |
| 3755 | libname_spec='lib$name' |
| 3756 | soname_spec= |
| 3757 | -shrext=".so" |
| 3758 | +shrext_cmds=".so" |
| 3759 | postinstall_cmds= |
| 3760 | postuninstall_cmds= |
| 3761 | finish_cmds= |
| 3762 | @@ -14083,7 +13937,20 @@ |
| 3763 | version_type=none |
| 3764 | dynamic_linker="$host_os ld.so" |
| 3765 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 3766 | -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 3767 | +if test "$GCC" = yes; then |
| 3768 | + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 3769 | + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 3770 | + # if the path contains ";" then we assume it to be the separator |
| 3771 | + # otherwise default to the standard path separator (i.e. ":") - it is |
| 3772 | + # assumed that no part of a normal pathname contains ";" but that should |
| 3773 | + # okay in the real world where ";" in dirpaths is itself problematic. |
| 3774 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 3775 | + else |
| 3776 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 3777 | + fi |
| 3778 | +else |
| 3779 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 3780 | +fi |
| 3781 | need_lib_prefix=unknown |
| 3782 | hardcode_into_libs=no |
| 3783 | |
| 3784 | @@ -14148,7 +14015,7 @@ |
| 3785 | amigaos*) |
| 3786 | library_names_spec='$libname.ixlibrary $libname.a' |
| 3787 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 3788 | - 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' |
| 3789 | + 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' |
| 3790 | ;; |
| 3791 | |
| 3792 | beos*) |
| 3793 | @@ -14173,7 +14040,7 @@ |
| 3794 | |
| 3795 | cygwin* | mingw* | pw32*) |
| 3796 | version_type=windows |
| 3797 | - shrext=".dll" |
| 3798 | + shrext_cmds=".dll" |
| 3799 | need_version=no |
| 3800 | need_lib_prefix=no |
| 3801 | |
| 3802 | @@ -14238,7 +14105,7 @@ |
| 3803 | soname_spec='${libname}${release}${major}$shared_ext' |
| 3804 | shlibpath_overrides_runpath=yes |
| 3805 | shlibpath_var=DYLD_LIBRARY_PATH |
| 3806 | - shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 3807 | + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 3808 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 3809 | if test "$GCC" = yes; then |
| 3810 | 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"` |
| 3811 | @@ -14261,7 +14128,7 @@ |
| 3812 | dynamic_linker=no |
| 3813 | ;; |
| 3814 | |
| 3815 | -freebsd*-gnu*) |
| 3816 | +kfreebsd*-gnu) |
| 3817 | version_type=linux |
| 3818 | need_lib_prefix=no |
| 3819 | need_version=no |
| 3820 | @@ -14321,7 +14188,7 @@ |
| 3821 | need_version=no |
| 3822 | case "$host_cpu" in |
| 3823 | ia64*) |
| 3824 | - shrext='.so' |
| 3825 | + shrext_cmds='.so' |
| 3826 | hardcode_into_libs=yes |
| 3827 | dynamic_linker="$host_os dld.so" |
| 3828 | shlibpath_var=LD_LIBRARY_PATH |
| 3829 | @@ -14336,7 +14203,7 @@ |
| 3830 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 3831 | ;; |
| 3832 | hppa*64*) |
| 3833 | - shrext='.sl' |
| 3834 | + shrext_cmds='.sl' |
| 3835 | hardcode_into_libs=yes |
| 3836 | dynamic_linker="$host_os dld.sl" |
| 3837 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 3838 | @@ -14347,7 +14214,7 @@ |
| 3839 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 3840 | ;; |
| 3841 | *) |
| 3842 | - shrext='.sl' |
| 3843 | + shrext_cmds='.sl' |
| 3844 | dynamic_linker="$host_os dld.sl" |
| 3845 | shlibpath_var=SHLIB_PATH |
| 3846 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 3847 | @@ -14409,22 +14276,19 @@ |
| 3848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3849 | soname_spec='${libname}${release}${shared_ext}$major' |
| 3850 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 3851 | - libsuff= |
| 3852 | - if test "x$LINUX_64_MODE" = x64; then |
| 3853 | - # Some platforms are per default 64-bit, so there's no /lib64 |
| 3854 | - if test -d /lib64; then |
| 3855 | - libsuff=64 |
| 3856 | - fi |
| 3857 | - fi |
| 3858 | shlibpath_var=LD_LIBRARY_PATH |
| 3859 | shlibpath_overrides_runpath=no |
| 3860 | - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
| 3861 | - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
| 3862 | # This implies no fast_install, which is unacceptable. |
| 3863 | # Some rework will be needed to allow for fast_install |
| 3864 | # before this can be enabled. |
| 3865 | hardcode_into_libs=yes |
| 3866 | |
| 3867 | + # Append ld.so.conf contents to the search path |
| 3868 | + if test -f /etc/ld.so.conf; then |
| 3869 | + lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 3870 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 3871 | + fi |
| 3872 | + |
| 3873 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 3874 | # powerpc, because MkLinux only supported shared libraries with the |
| 3875 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 3876 | @@ -14434,6 +14298,30 @@ |
| 3877 | dynamic_linker='GNU/Linux ld.so' |
| 3878 | ;; |
| 3879 | |
| 3880 | +netbsdelf*-gnu) |
| 3881 | + version_type=linux |
| 3882 | + need_lib_prefix=no |
| 3883 | + need_version=no |
| 3884 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 3885 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 3886 | + shlibpath_var=LD_LIBRARY_PATH |
| 3887 | + shlibpath_overrides_runpath=no |
| 3888 | + hardcode_into_libs=yes |
| 3889 | + dynamic_linker='NetBSD ld.elf_so' |
| 3890 | + ;; |
| 3891 | + |
| 3892 | +knetbsd*-gnu) |
| 3893 | + version_type=linux |
| 3894 | + need_lib_prefix=no |
| 3895 | + need_version=no |
| 3896 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 3897 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 3898 | + shlibpath_var=LD_LIBRARY_PATH |
| 3899 | + shlibpath_overrides_runpath=no |
| 3900 | + hardcode_into_libs=yes |
| 3901 | + dynamic_linker='GNU ld.so' |
| 3902 | + ;; |
| 3903 | + |
| 3904 | netbsd*) |
| 3905 | version_type=sunos |
| 3906 | need_lib_prefix=no |
| 3907 | @@ -14443,7 +14331,7 @@ |
| 3908 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 3909 | dynamic_linker='NetBSD (a.out) ld.so' |
| 3910 | else |
| 3911 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 3912 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 3913 | soname_spec='${libname}${release}${shared_ext}$major' |
| 3914 | dynamic_linker='NetBSD ld.elf_so' |
| 3915 | fi |
| 3916 | @@ -14472,7 +14360,7 @@ |
| 3917 | openbsd*) |
| 3918 | version_type=sunos |
| 3919 | need_lib_prefix=no |
| 3920 | - need_version=no |
| 3921 | + need_version=yes |
| 3922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 3923 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 3924 | shlibpath_var=LD_LIBRARY_PATH |
| 3925 | @@ -14492,7 +14380,7 @@ |
| 3926 | |
| 3927 | os2*) |
| 3928 | libname_spec='$name' |
| 3929 | - shrext=".dll" |
| 3930 | + shrext_cmds=".dll" |
| 3931 | need_lib_prefix=no |
| 3932 | library_names_spec='$libname${shared_ext} $libname.a' |
| 3933 | dynamic_linker='OS/2 ld.exe' |
| 3934 | @@ -14721,8 +14609,7 @@ |
| 3935 | cat conftest.err >&5 |
| 3936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3937 | (exit $ac_status); } && |
| 3938 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 3939 | - || test ! -s conftest.err' |
| 3940 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3942 | (eval $ac_try) 2>&5 |
| 3943 | ac_status=$? |
| 3944 | @@ -14825,8 +14712,7 @@ |
| 3945 | cat conftest.err >&5 |
| 3946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3947 | (exit $ac_status); } && |
| 3948 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 3949 | - || test ! -s conftest.err' |
| 3950 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3952 | (eval $ac_try) 2>&5 |
| 3953 | ac_status=$? |
| 3954 | @@ -14891,8 +14777,7 @@ |
| 3955 | cat conftest.err >&5 |
| 3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3957 | (exit $ac_status); } && |
| 3958 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 3959 | - || test ! -s conftest.err' |
| 3960 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3962 | (eval $ac_try) 2>&5 |
| 3963 | ac_status=$? |
| 3964 | @@ -14985,8 +14870,7 @@ |
| 3965 | cat conftest.err >&5 |
| 3966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3967 | (exit $ac_status); } && |
| 3968 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 3969 | - || test ! -s conftest.err' |
| 3970 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3972 | (eval $ac_try) 2>&5 |
| 3973 | ac_status=$? |
| 3974 | @@ -15051,8 +14935,7 @@ |
| 3975 | cat conftest.err >&5 |
| 3976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3977 | (exit $ac_status); } && |
| 3978 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 3979 | - || test ! -s conftest.err' |
| 3980 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3982 | (eval $ac_try) 2>&5 |
| 3983 | ac_status=$? |
| 3984 | @@ -15118,8 +15001,7 @@ |
| 3985 | cat conftest.err >&5 |
| 3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3987 | (exit $ac_status); } && |
| 3988 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 3989 | - || test ! -s conftest.err' |
| 3990 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3992 | (eval $ac_try) 2>&5 |
| 3993 | ac_status=$? |
| 3994 | @@ -15185,8 +15067,7 @@ |
| 3995 | cat conftest.err >&5 |
| 3996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3997 | (exit $ac_status); } && |
| 3998 | - { ac_try='test -z "$ac_cxx_werror_flag" |
| 3999 | - || test ! -s conftest.err' |
| 4000 | + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4002 | (eval $ac_try) 2>&5 |
| 4003 | ac_status=$? |
| 4004 | @@ -15261,7 +15142,7 @@ |
| 4005 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 4006 | lt_status=$lt_dlunknown |
| 4007 | cat > conftest.$ac_ext <<EOF |
| 4008 | -#line 15264 "configure" |
| 4009 | +#line 15145 "configure" |
| 4010 | #include "confdefs.h" |
| 4011 | |
| 4012 | #if HAVE_DLFCN_H |
| 4013 | @@ -15359,7 +15240,7 @@ |
| 4014 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 4015 | lt_status=$lt_dlunknown |
| 4016 | cat > conftest.$ac_ext <<EOF |
| 4017 | -#line 15362 "configure" |
| 4018 | +#line 15243 "configure" |
| 4019 | #include "confdefs.h" |
| 4020 | |
| 4021 | #if HAVE_DLFCN_H |
| 4022 | @@ -15476,7 +15357,8 @@ |
| 4023 | # Now quote all the things that may contain metacharacters while being |
| 4024 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 4025 | # variables and quote the copies for generation of the libtool script. |
| 4026 | - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 4027 | + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 4028 | + SED SHELL STRIP \ |
| 4029 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 4030 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 4031 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 4032 | @@ -15606,7 +15488,7 @@ |
| 4033 | NM=$lt_NM |
| 4034 | |
| 4035 | # A symbol stripping program |
| 4036 | -STRIP=$STRIP |
| 4037 | +STRIP=$lt_STRIP |
| 4038 | |
| 4039 | # Used to examine libraries when file_magic_cmd begins "file" |
| 4040 | MAGIC_CMD=$MAGIC_CMD |
| 4041 | @@ -15637,7 +15519,7 @@ |
| 4042 | libext="$libext" |
| 4043 | |
| 4044 | # Shared library suffix (normally ".so"). |
| 4045 | -shrext='$shrext' |
| 4046 | +shrext_cmds='$shrext_cmds' |
| 4047 | |
| 4048 | # Executable file suffix (normally ""). |
| 4049 | exeext="$exeext" |
| 4050 | @@ -15854,7 +15736,10 @@ |
| 4051 | # If there is no Makefile yet, we rely on a make rule to execute |
| 4052 | # `config.status --recheck' to rerun these tests and create the |
| 4053 | # libtool script then. |
| 4054 | - test -f Makefile && make "$ltmain" |
| 4055 | + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 4056 | + if test -f "$ltmain_in"; then |
| 4057 | + test -f Makefile && make "$ltmain" |
| 4058 | + fi |
| 4059 | fi |
| 4060 | |
| 4061 | |
| 4062 | @@ -15956,7 +15841,7 @@ |
| 4063 | postinstall_cmds='$RANLIB $lib' |
| 4064 | fi |
| 4065 | ;; |
| 4066 | -aix4*) |
| 4067 | +aix4* | aix5*) |
| 4068 | test "$enable_shared" = yes && enable_static=no |
| 4069 | ;; |
| 4070 | esac |
| 4071 | @@ -16182,11 +16067,11 @@ |
| 4072 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 4073 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 4074 | -e 's:$: $lt_compiler_flag:'` |
| 4075 | - (eval echo "\"\$as_me:16185: $lt_compile\"" >&5) |
| 4076 | + (eval echo "\"\$as_me:16070: $lt_compile\"" >&5) |
| 4077 | (eval "$lt_compile" 2>conftest.err) |
| 4078 | ac_status=$? |
| 4079 | cat conftest.err >&5 |
| 4080 | - echo "$as_me:16189: \$? = $ac_status" >&5 |
| 4081 | + echo "$as_me:16074: \$? = $ac_status" >&5 |
| 4082 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 4083 | # The compiler can only warn and ignore the option if not recognized |
| 4084 | # So say no if there are warnings |
| 4085 | @@ -16233,13 +16118,6 @@ |
| 4086 | mkdir out |
| 4087 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 4088 | |
| 4089 | - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 4090 | - # that will create temporary files in the current directory regardless of |
| 4091 | - # the output directory. Thus, making CWD read-only will cause this test |
| 4092 | - # to fail, enabling locking or at least warning the user not to do parallel |
| 4093 | - # builds. |
| 4094 | - chmod -w . |
| 4095 | - |
| 4096 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 4097 | # Insert the option either (1) after the last *FLAGS variable, or |
| 4098 | # (2) before a word containing "conftest.", or (3) at the end. |
| 4099 | @@ -16249,11 +16127,11 @@ |
| 4100 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 4101 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 4102 | -e 's:$: $lt_compiler_flag:'` |
| 4103 | - (eval echo "\"\$as_me:16252: $lt_compile\"" >&5) |
| 4104 | + (eval echo "\"\$as_me:16130: $lt_compile\"" >&5) |
| 4105 | (eval "$lt_compile" 2>out/conftest.err) |
| 4106 | ac_status=$? |
| 4107 | cat out/conftest.err >&5 |
| 4108 | - echo "$as_me:16256: \$? = $ac_status" >&5 |
| 4109 | + echo "$as_me:16134: \$? = $ac_status" >&5 |
| 4110 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 4111 | then |
| 4112 | # The compiler can only warn and ignore the option if not recognized |
| 4113 | @@ -16263,8 +16141,11 @@ |
| 4114 | fi |
| 4115 | fi |
| 4116 | chmod u+w . |
| 4117 | - $rm conftest* out/* |
| 4118 | - rmdir out |
| 4119 | + $rm conftest* |
| 4120 | + # SGI C++ compiler will create directory out/ii_files/ for |
| 4121 | + # template instantiation |
| 4122 | + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 4123 | + $rm out/* && rmdir out |
| 4124 | cd .. |
| 4125 | rmdir conftest |
| 4126 | $rm conftest* |
| 4127 | @@ -16392,7 +16273,7 @@ |
| 4128 | allow_undefined_flag_F77=unsupported |
| 4129 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 4130 | # support --undefined. This deserves some investigation. FIXME |
| 4131 | - archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 4132 | + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4133 | else |
| 4134 | ld_shlibs_F77=no |
| 4135 | fi |
| 4136 | @@ -16402,13 +16283,13 @@ |
| 4137 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 4138 | # as there is no search path for DLLs. |
| 4139 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 4140 | - allow_undefined_flag_F77=no |
| 4141 | + allow_undefined_flag_F77=unsupported |
| 4142 | always_export_symbols_F77=no |
| 4143 | enable_shared_with_static_runtimes_F77=yes |
| 4144 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 4145 | |
| 4146 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 4147 | - archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 4148 | + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 4149 | # If the export-symbols file already is a .def file (1st line |
| 4150 | # is EXPORTS), use it as is; otherwise, prepend... |
| 4151 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 4152 | @@ -16417,19 +16298,19 @@ |
| 4153 | echo EXPORTS > $output_objdir/$soname.def; |
| 4154 | cat $export_symbols >> $output_objdir/$soname.def; |
| 4155 | fi~ |
| 4156 | - $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 4157 | + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 4158 | else |
| 4159 | ld_shlibs=no |
| 4160 | fi |
| 4161 | ;; |
| 4162 | |
| 4163 | - netbsd*) |
| 4164 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 4165 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 4166 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 4167 | wlarc= |
| 4168 | else |
| 4169 | - archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 4170 | - archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4171 | + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4172 | + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4173 | fi |
| 4174 | ;; |
| 4175 | |
| 4176 | @@ -16447,8 +16328,8 @@ |
| 4177 | |
| 4178 | EOF |
| 4179 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 4180 | - archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 4181 | - archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4182 | + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4183 | + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4184 | else |
| 4185 | ld_shlibs_F77=no |
| 4186 | fi |
| 4187 | @@ -16461,10 +16342,36 @@ |
| 4188 | hardcode_shlibpath_var_F77=no |
| 4189 | ;; |
| 4190 | |
| 4191 | + linux*) |
| 4192 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 4193 | + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4194 | + archive_cmds_F77="$tmp_archive_cmds" |
| 4195 | + supports_anon_versioning=no |
| 4196 | + case `$LD -v 2>/dev/null` in |
| 4197 | + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 4198 | + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 4199 | + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 4200 | + *\ 2.11.*) ;; # other 2.11 versions |
| 4201 | + *) supports_anon_versioning=yes ;; |
| 4202 | + esac |
| 4203 | + if test $supports_anon_versioning = yes; then |
| 4204 | + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 4205 | +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 4206 | +$echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 4207 | + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 4208 | + else |
| 4209 | + archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 4210 | + fi |
| 4211 | + link_all_deplibs_F77=no |
| 4212 | + else |
| 4213 | + ld_shlibs_F77=no |
| 4214 | + fi |
| 4215 | + ;; |
| 4216 | + |
| 4217 | *) |
| 4218 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 4219 | - archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 4220 | - archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4221 | + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4222 | + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4223 | else |
| 4224 | ld_shlibs_F77=no |
| 4225 | fi |
| 4226 | @@ -16514,9 +16421,20 @@ |
| 4227 | else |
| 4228 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 4229 | fi |
| 4230 | + aix_use_runtimelinking=no |
| 4231 | + |
| 4232 | + # Test if we are trying to use run time linking or normal |
| 4233 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 4234 | + # need to do runtime linking. |
| 4235 | + case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 4236 | + for ld_flag in $LDFLAGS; do |
| 4237 | + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 4238 | + aix_use_runtimelinking=yes |
| 4239 | + break |
| 4240 | + fi |
| 4241 | + done |
| 4242 | + esac |
| 4243 | |
| 4244 | - # KDE requires run time linking. Make it the default. |
| 4245 | - aix_use_runtimelinking=yes |
| 4246 | exp_sym_flag='-bexport' |
| 4247 | no_entry_flag='-bnoentry' |
| 4248 | fi |
| 4249 | @@ -16562,21 +16480,22 @@ |
| 4250 | shared_flag='-G' |
| 4251 | else |
| 4252 | if test "$aix_use_runtimelinking" = yes; then |
| 4253 | - shared_flag='-qmkshrobj ${wl}-G' |
| 4254 | + shared_flag='${wl}-G' |
| 4255 | else |
| 4256 | - shared_flag='-qmkshrobj' |
| 4257 | + shared_flag='${wl}-bM:SRE' |
| 4258 | fi |
| 4259 | fi |
| 4260 | fi |
| 4261 | |
| 4262 | - # Let the compiler handle the export list. |
| 4263 | - always_export_symbols_F77=no |
| 4264 | + # It seems that -bexpall does not export symbols beginning with |
| 4265 | + # underscore (_), so it is better to generate a list of symbols to export. |
| 4266 | + always_export_symbols_F77=yes |
| 4267 | if test "$aix_use_runtimelinking" = yes; then |
| 4268 | # Warning - without using the other runtime loading flags (-brtl), |
| 4269 | # -berok will link without error, but may produce a broken library. |
| 4270 | allow_undefined_flag_F77='-berok' |
| 4271 | # Determine the default libpath from the value encoded in an empty executable. |
| 4272 | - cat >conftest.$ac_ext <<_ACEOF |
| 4273 | + cat >conftest.$ac_ext <<_ACEOF |
| 4274 | program main |
| 4275 | |
| 4276 | end |
| 4277 | @@ -16590,8 +16509,7 @@ |
| 4278 | cat conftest.err >&5 |
| 4279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4280 | (exit $ac_status); } && |
| 4281 | - { ac_try='test -z "$ac_f77_werror_flag" |
| 4282 | - || test ! -s conftest.err' |
| 4283 | + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 4284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4285 | (eval $ac_try) 2>&5 |
| 4286 | ac_status=$? |
| 4287 | @@ -16618,14 +16536,13 @@ |
| 4288 | conftest$ac_exeext conftest.$ac_ext |
| 4289 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 4290 | |
| 4291 | - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 4292 | - archive_cmds_F77="\$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" |
| 4293 | - archive_expsym_cmds_F77="\$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" |
| 4294 | + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 4295 | + archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 4296 | else |
| 4297 | if test "$host_cpu" = ia64; then |
| 4298 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 4299 | allow_undefined_flag_F77="-z nodefs" |
| 4300 | - archive_expsym_cmds_F77="\$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" |
| 4301 | + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 4302 | else |
| 4303 | # Determine the default libpath from the value encoded in an empty executable. |
| 4304 | cat >conftest.$ac_ext <<_ACEOF |
| 4305 | @@ -16642,8 +16559,7 @@ |
| 4306 | cat conftest.err >&5 |
| 4307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4308 | (exit $ac_status); } && |
| 4309 | - { ac_try='test -z "$ac_f77_werror_flag" |
| 4310 | - || test ! -s conftest.err' |
| 4311 | + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 4312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4313 | (eval $ac_try) 2>&5 |
| 4314 | ac_status=$? |
| 4315 | @@ -16681,7 +16597,7 @@ |
| 4316 | whole_archive_flag_spec_F77=' ' |
| 4317 | archive_cmds_need_lc_F77=yes |
| 4318 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 4319 | - archive_expsym_cmds_F77="\$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' |
| 4320 | + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 4321 | fi |
| 4322 | fi |
| 4323 | ;; |
| 4324 | @@ -16704,13 +16620,13 @@ |
| 4325 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 4326 | # no search path for DLLs. |
| 4327 | hardcode_libdir_flag_spec_F77=' ' |
| 4328 | - allow_undefined_flag_F77=no |
| 4329 | + allow_undefined_flag_F77=unsupported |
| 4330 | # Tell ltmain to make .lib files, not .a files. |
| 4331 | libext=lib |
| 4332 | # Tell ltmain to make .dll files, not .so files. |
| 4333 | - shrext=".dll" |
| 4334 | + shrext_cmds=".dll" |
| 4335 | # FIXME: Setting linknames here is a bad hack. |
| 4336 | - archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 4337 | + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 4338 | # The linker will automatically build a .lib file if we build a DLL. |
| 4339 | old_archive_From_new_cmds_F77='true' |
| 4340 | # FIXME: Should let the user specify the lib program. |
| 4341 | @@ -16724,21 +16640,21 @@ |
| 4342 | archive_cmds_need_lc_F77=no |
| 4343 | case "$host_os" in |
| 4344 | rhapsody* | darwin1.[012]) |
| 4345 | - allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress' |
| 4346 | + allow_undefined_flag_F77='-undefined suppress' |
| 4347 | ;; |
| 4348 | *) # Darwin 1.3 on |
| 4349 | - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 4350 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 4351 | - else |
| 4352 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 4353 | - 10.012) |
| 4354 | - allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' |
| 4355 | - ;; |
| 4356 | - 10.*) |
| 4357 | - allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' |
| 4358 | - ;; |
| 4359 | - esac |
| 4360 | - fi |
| 4361 | + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 4362 | + allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 4363 | + else |
| 4364 | + case ${MACOSX_DEPLOYMENT_TARGET} in |
| 4365 | + 10.[012]) |
| 4366 | + allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 4367 | + ;; |
| 4368 | + 10.*) |
| 4369 | + allow_undefined_flag_F77='-undefined dynamic_lookup' |
| 4370 | + ;; |
| 4371 | + esac |
| 4372 | + fi |
| 4373 | ;; |
| 4374 | esac |
| 4375 | lt_int_apple_cc_single_mod=no |
| 4376 | @@ -16747,18 +16663,18 @@ |
| 4377 | lt_int_apple_cc_single_mod=yes |
| 4378 | fi |
| 4379 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 4380 | - archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' |
| 4381 | + archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 4382 | else |
| 4383 | - archive_cmds_F77='$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' |
| 4384 | + archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 4385 | fi |
| 4386 | - module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' |
| 4387 | + module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 4388 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 4389 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 4390 | - archive_expsym_cmds_F77='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}' |
| 4391 | + archive_expsym_cmds_F77='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}' |
| 4392 | else |
| 4393 | - archive_expsym_cmds_F77='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}' |
| 4394 | + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 4395 | fi |
| 4396 | - module_expsym_cmds_F77='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}' |
| 4397 | + module_expsym_cmds_F77='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}' |
| 4398 | hardcode_direct_F77=no |
| 4399 | hardcode_automatic_F77=yes |
| 4400 | hardcode_shlibpath_var_F77=unsupported |
| 4401 | @@ -16799,8 +16715,8 @@ |
| 4402 | ;; |
| 4403 | |
| 4404 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 4405 | - freebsd*) |
| 4406 | - archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' |
| 4407 | + freebsd* | kfreebsd*-gnu) |
| 4408 | + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 4409 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 4410 | hardcode_direct_F77=yes |
| 4411 | hardcode_shlibpath_var_F77=no |
| 4412 | @@ -16808,7 +16724,7 @@ |
| 4413 | |
| 4414 | hpux9*) |
| 4415 | if test "$GCC" = yes; then |
| 4416 | - archive_cmds_F77='$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' |
| 4417 | + archive_cmds_F77='$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' |
| 4418 | else |
| 4419 | archive_cmds_F77='$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' |
| 4420 | fi |
| 4421 | @@ -16826,10 +16742,10 @@ |
| 4422 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 4423 | case "$host_cpu" in |
| 4424 | hppa*64*|ia64*) |
| 4425 | - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 4426 | + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4427 | ;; |
| 4428 | *) |
| 4429 | - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' |
| 4430 | + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 4431 | ;; |
| 4432 | esac |
| 4433 | else |
| 4434 | @@ -16876,7 +16792,7 @@ |
| 4435 | |
| 4436 | irix5* | irix6* | nonstopux*) |
| 4437 | if test "$GCC" = yes; then |
| 4438 | - archive_cmds_F77='$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' |
| 4439 | + archive_cmds_F77='$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' |
| 4440 | else |
| 4441 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 4442 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 4443 | @@ -16886,7 +16802,7 @@ |
| 4444 | link_all_deplibs_F77=yes |
| 4445 | ;; |
| 4446 | |
| 4447 | - netbsd*) |
| 4448 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 4449 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 4450 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 4451 | else |
| 4452 | @@ -16909,7 +16825,7 @@ |
| 4453 | hardcode_direct_F77=yes |
| 4454 | hardcode_shlibpath_var_F77=no |
| 4455 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4456 | - archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
| 4457 | + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 4458 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 4459 | export_dynamic_flag_spec_F77='${wl}-E' |
| 4460 | else |
| 4461 | @@ -16919,7 +16835,7 @@ |
| 4462 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 4463 | ;; |
| 4464 | *) |
| 4465 | - archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' |
| 4466 | + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 4467 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 4468 | ;; |
| 4469 | esac |
| 4470 | @@ -16930,14 +16846,14 @@ |
| 4471 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 4472 | hardcode_minus_L_F77=yes |
| 4473 | allow_undefined_flag_F77=unsupported |
| 4474 | - archive_cmds_F77='$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' |
| 4475 | + archive_cmds_F77='$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' |
| 4476 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 4477 | ;; |
| 4478 | |
| 4479 | osf3*) |
| 4480 | if test "$GCC" = yes; then |
| 4481 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 4482 | - archive_cmds_F77='$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' |
| 4483 | + archive_cmds_F77='$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' |
| 4484 | else |
| 4485 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 4486 | archive_cmds_F77='$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' |
| 4487 | @@ -16949,7 +16865,7 @@ |
| 4488 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 4489 | if test "$GCC" = yes; then |
| 4490 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 4491 | - archive_cmds_F77='$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' |
| 4492 | + archive_cmds_F77='$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' |
| 4493 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 4494 | else |
| 4495 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 4496 | @@ -16974,9 +16890,9 @@ |
| 4497 | solaris*) |
| 4498 | no_undefined_flag_F77=' -z text' |
| 4499 | if test "$GCC" = yes; then |
| 4500 | - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 4501 | + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4502 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 4503 | - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' |
| 4504 | + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 4505 | else |
| 4506 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4507 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 4508 | @@ -16996,7 +16912,7 @@ |
| 4509 | if test "x$host_vendor" = xsequent; then |
| 4510 | # Use $CC to link under sequent, because it throws in some extra .o |
| 4511 | # files that make .init and .fini sections work. |
| 4512 | - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' |
| 4513 | + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4514 | else |
| 4515 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 4516 | fi |
| 4517 | @@ -17056,9 +16972,9 @@ |
| 4518 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 4519 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 4520 | if test "$GCC" = yes; then |
| 4521 | - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 4522 | + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4523 | else |
| 4524 | - archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' |
| 4525 | + archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4526 | fi |
| 4527 | runpath_var='LD_RUN_PATH' |
| 4528 | hardcode_shlibpath_var_F77=no |
| 4529 | @@ -17164,7 +17080,7 @@ |
| 4530 | library_names_spec= |
| 4531 | libname_spec='lib$name' |
| 4532 | soname_spec= |
| 4533 | -shrext=".so" |
| 4534 | +shrext_cmds=".so" |
| 4535 | postinstall_cmds= |
| 4536 | postuninstall_cmds= |
| 4537 | finish_cmds= |
| 4538 | @@ -17174,7 +17090,20 @@ |
| 4539 | version_type=none |
| 4540 | dynamic_linker="$host_os ld.so" |
| 4541 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 4542 | -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 4543 | +if test "$GCC" = yes; then |
| 4544 | + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 4545 | + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 4546 | + # if the path contains ";" then we assume it to be the separator |
| 4547 | + # otherwise default to the standard path separator (i.e. ":") - it is |
| 4548 | + # assumed that no part of a normal pathname contains ";" but that should |
| 4549 | + # okay in the real world where ";" in dirpaths is itself problematic. |
| 4550 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 4551 | + else |
| 4552 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 4553 | + fi |
| 4554 | +else |
| 4555 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 4556 | +fi |
| 4557 | need_lib_prefix=unknown |
| 4558 | hardcode_into_libs=no |
| 4559 | |
| 4560 | @@ -17239,7 +17168,7 @@ |
| 4561 | amigaos*) |
| 4562 | library_names_spec='$libname.ixlibrary $libname.a' |
| 4563 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 4564 | - 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' |
| 4565 | + 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' |
| 4566 | ;; |
| 4567 | |
| 4568 | beos*) |
| 4569 | @@ -17264,7 +17193,7 @@ |
| 4570 | |
| 4571 | cygwin* | mingw* | pw32*) |
| 4572 | version_type=windows |
| 4573 | - shrext=".dll" |
| 4574 | + shrext_cmds=".dll" |
| 4575 | need_version=no |
| 4576 | need_lib_prefix=no |
| 4577 | |
| 4578 | @@ -17329,7 +17258,7 @@ |
| 4579 | soname_spec='${libname}${release}${major}$shared_ext' |
| 4580 | shlibpath_overrides_runpath=yes |
| 4581 | shlibpath_var=DYLD_LIBRARY_PATH |
| 4582 | - shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 4583 | + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 4584 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 4585 | if test "$GCC" = yes; then |
| 4586 | 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"` |
| 4587 | @@ -17352,7 +17281,7 @@ |
| 4588 | dynamic_linker=no |
| 4589 | ;; |
| 4590 | |
| 4591 | -freebsd*-gnu*) |
| 4592 | +kfreebsd*-gnu) |
| 4593 | version_type=linux |
| 4594 | need_lib_prefix=no |
| 4595 | need_version=no |
| 4596 | @@ -17412,7 +17341,7 @@ |
| 4597 | need_version=no |
| 4598 | case "$host_cpu" in |
| 4599 | ia64*) |
| 4600 | - shrext='.so' |
| 4601 | + shrext_cmds='.so' |
| 4602 | hardcode_into_libs=yes |
| 4603 | dynamic_linker="$host_os dld.so" |
| 4604 | shlibpath_var=LD_LIBRARY_PATH |
| 4605 | @@ -17427,7 +17356,7 @@ |
| 4606 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 4607 | ;; |
| 4608 | hppa*64*) |
| 4609 | - shrext='.sl' |
| 4610 | + shrext_cmds='.sl' |
| 4611 | hardcode_into_libs=yes |
| 4612 | dynamic_linker="$host_os dld.sl" |
| 4613 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 4614 | @@ -17438,7 +17367,7 @@ |
| 4615 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 4616 | ;; |
| 4617 | *) |
| 4618 | - shrext='.sl' |
| 4619 | + shrext_cmds='.sl' |
| 4620 | dynamic_linker="$host_os dld.sl" |
| 4621 | shlibpath_var=SHLIB_PATH |
| 4622 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 4623 | @@ -17500,22 +17429,19 @@ |
| 4624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4625 | soname_spec='${libname}${release}${shared_ext}$major' |
| 4626 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 4627 | - libsuff= |
| 4628 | - if test "x$LINUX_64_MODE" = x64; then |
| 4629 | - # Some platforms are per default 64-bit, so there's no /lib64 |
| 4630 | - if test -d /lib64; then |
| 4631 | - libsuff=64 |
| 4632 | - fi |
| 4633 | - fi |
| 4634 | shlibpath_var=LD_LIBRARY_PATH |
| 4635 | shlibpath_overrides_runpath=no |
| 4636 | - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
| 4637 | - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
| 4638 | # This implies no fast_install, which is unacceptable. |
| 4639 | # Some rework will be needed to allow for fast_install |
| 4640 | # before this can be enabled. |
| 4641 | hardcode_into_libs=yes |
| 4642 | |
| 4643 | + # Append ld.so.conf contents to the search path |
| 4644 | + if test -f /etc/ld.so.conf; then |
| 4645 | + lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 4646 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 4647 | + fi |
| 4648 | + |
| 4649 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 4650 | # powerpc, because MkLinux only supported shared libraries with the |
| 4651 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 4652 | @@ -17525,6 +17451,30 @@ |
| 4653 | dynamic_linker='GNU/Linux ld.so' |
| 4654 | ;; |
| 4655 | |
| 4656 | +netbsdelf*-gnu) |
| 4657 | + version_type=linux |
| 4658 | + need_lib_prefix=no |
| 4659 | + need_version=no |
| 4660 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 4661 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4662 | + shlibpath_var=LD_LIBRARY_PATH |
| 4663 | + shlibpath_overrides_runpath=no |
| 4664 | + hardcode_into_libs=yes |
| 4665 | + dynamic_linker='NetBSD ld.elf_so' |
| 4666 | + ;; |
| 4667 | + |
| 4668 | +knetbsd*-gnu) |
| 4669 | + version_type=linux |
| 4670 | + need_lib_prefix=no |
| 4671 | + need_version=no |
| 4672 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 4673 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4674 | + shlibpath_var=LD_LIBRARY_PATH |
| 4675 | + shlibpath_overrides_runpath=no |
| 4676 | + hardcode_into_libs=yes |
| 4677 | + dynamic_linker='GNU ld.so' |
| 4678 | + ;; |
| 4679 | + |
| 4680 | netbsd*) |
| 4681 | version_type=sunos |
| 4682 | need_lib_prefix=no |
| 4683 | @@ -17534,7 +17484,7 @@ |
| 4684 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 4685 | dynamic_linker='NetBSD (a.out) ld.so' |
| 4686 | else |
| 4687 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 4688 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 4689 | soname_spec='${libname}${release}${shared_ext}$major' |
| 4690 | dynamic_linker='NetBSD ld.elf_so' |
| 4691 | fi |
| 4692 | @@ -17563,7 +17513,7 @@ |
| 4693 | openbsd*) |
| 4694 | version_type=sunos |
| 4695 | need_lib_prefix=no |
| 4696 | - need_version=no |
| 4697 | + need_version=yes |
| 4698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 4699 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 4700 | shlibpath_var=LD_LIBRARY_PATH |
| 4701 | @@ -17583,7 +17533,7 @@ |
| 4702 | |
| 4703 | os2*) |
| 4704 | libname_spec='$name' |
| 4705 | - shrext=".dll" |
| 4706 | + shrext_cmds=".dll" |
| 4707 | need_lib_prefix=no |
| 4708 | library_names_spec='$libname${shared_ext} $libname.a' |
| 4709 | dynamic_linker='OS/2 ld.exe' |
| 4710 | @@ -17762,7 +17712,8 @@ |
| 4711 | # Now quote all the things that may contain metacharacters while being |
| 4712 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 4713 | # variables and quote the copies for generation of the libtool script. |
| 4714 | - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 4715 | + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 4716 | + SED SHELL STRIP \ |
| 4717 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 4718 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 4719 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 4720 | @@ -17892,7 +17843,7 @@ |
| 4721 | NM=$lt_NM |
| 4722 | |
| 4723 | # A symbol stripping program |
| 4724 | -STRIP=$STRIP |
| 4725 | +STRIP=$lt_STRIP |
| 4726 | |
| 4727 | # Used to examine libraries when file_magic_cmd begins "file" |
| 4728 | MAGIC_CMD=$MAGIC_CMD |
| 4729 | @@ -17923,7 +17874,7 @@ |
| 4730 | libext="$libext" |
| 4731 | |
| 4732 | # Shared library suffix (normally ".so"). |
| 4733 | -shrext='$shrext' |
| 4734 | +shrext_cmds='$shrext_cmds' |
| 4735 | |
| 4736 | # Executable file suffix (normally ""). |
| 4737 | exeext="$exeext" |
| 4738 | @@ -18140,7 +18091,10 @@ |
| 4739 | # If there is no Makefile yet, we rely on a make rule to execute |
| 4740 | # `config.status --recheck' to rerun these tests and create the |
| 4741 | # libtool script then. |
| 4742 | - test -f Makefile && make "$ltmain" |
| 4743 | + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 4744 | + if test -f "$ltmain_in"; then |
| 4745 | + test -f Makefile && make "$ltmain" |
| 4746 | + fi |
| 4747 | fi |
| 4748 | |
| 4749 | |
| 4750 | @@ -18222,11 +18176,11 @@ |
| 4751 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 4752 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 4753 | -e 's:$: $lt_compiler_flag:'` |
| 4754 | - (eval echo "\"\$as_me:18225: $lt_compile\"" >&5) |
| 4755 | + (eval echo "\"\$as_me:18179: $lt_compile\"" >&5) |
| 4756 | (eval "$lt_compile" 2>conftest.err) |
| 4757 | ac_status=$? |
| 4758 | cat conftest.err >&5 |
| 4759 | - echo "$as_me:18229: \$? = $ac_status" >&5 |
| 4760 | + echo "$as_me:18183: \$? = $ac_status" >&5 |
| 4761 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 4762 | # The compiler can only warn and ignore the option if not recognized |
| 4763 | # So say no if there are warnings |
| 4764 | @@ -18455,11 +18409,11 @@ |
| 4765 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 4766 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 4767 | -e 's:$: $lt_compiler_flag:'` |
| 4768 | - (eval echo "\"\$as_me:18458: $lt_compile\"" >&5) |
| 4769 | + (eval echo "\"\$as_me:18412: $lt_compile\"" >&5) |
| 4770 | (eval "$lt_compile" 2>conftest.err) |
| 4771 | ac_status=$? |
| 4772 | cat conftest.err >&5 |
| 4773 | - echo "$as_me:18462: \$? = $ac_status" >&5 |
| 4774 | + echo "$as_me:18416: \$? = $ac_status" >&5 |
| 4775 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 4776 | # The compiler can only warn and ignore the option if not recognized |
| 4777 | # So say no if there are warnings |
| 4778 | @@ -18506,13 +18460,6 @@ |
| 4779 | mkdir out |
| 4780 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 4781 | |
| 4782 | - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 4783 | - # that will create temporary files in the current directory regardless of |
| 4784 | - # the output directory. Thus, making CWD read-only will cause this test |
| 4785 | - # to fail, enabling locking or at least warning the user not to do parallel |
| 4786 | - # builds. |
| 4787 | - chmod -w . |
| 4788 | - |
| 4789 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 4790 | # Insert the option either (1) after the last *FLAGS variable, or |
| 4791 | # (2) before a word containing "conftest.", or (3) at the end. |
| 4792 | @@ -18522,11 +18469,11 @@ |
| 4793 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 4794 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 4795 | -e 's:$: $lt_compiler_flag:'` |
| 4796 | - (eval echo "\"\$as_me:18525: $lt_compile\"" >&5) |
| 4797 | + (eval echo "\"\$as_me:18472: $lt_compile\"" >&5) |
| 4798 | (eval "$lt_compile" 2>out/conftest.err) |
| 4799 | ac_status=$? |
| 4800 | cat out/conftest.err >&5 |
| 4801 | - echo "$as_me:18529: \$? = $ac_status" >&5 |
| 4802 | + echo "$as_me:18476: \$? = $ac_status" >&5 |
| 4803 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 4804 | then |
| 4805 | # The compiler can only warn and ignore the option if not recognized |
| 4806 | @@ -18536,8 +18483,11 @@ |
| 4807 | fi |
| 4808 | fi |
| 4809 | chmod u+w . |
| 4810 | - $rm conftest* out/* |
| 4811 | - rmdir out |
| 4812 | + $rm conftest* |
| 4813 | + # SGI C++ compiler will create directory out/ii_files/ for |
| 4814 | + # template instantiation |
| 4815 | + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 4816 | + $rm out/* && rmdir out |
| 4817 | cd .. |
| 4818 | rmdir conftest |
| 4819 | $rm conftest* |
| 4820 | @@ -18665,7 +18615,7 @@ |
| 4821 | allow_undefined_flag_GCJ=unsupported |
| 4822 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 4823 | # support --undefined. This deserves some investigation. FIXME |
| 4824 | - archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 4825 | + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4826 | else |
| 4827 | ld_shlibs_GCJ=no |
| 4828 | fi |
| 4829 | @@ -18675,13 +18625,13 @@ |
| 4830 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 4831 | # as there is no search path for DLLs. |
| 4832 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 4833 | - allow_undefined_flag_GCJ=no |
| 4834 | + allow_undefined_flag_GCJ=unsupported |
| 4835 | always_export_symbols_GCJ=no |
| 4836 | enable_shared_with_static_runtimes_GCJ=yes |
| 4837 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 4838 | |
| 4839 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 4840 | - archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 4841 | + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 4842 | # If the export-symbols file already is a .def file (1st line |
| 4843 | # is EXPORTS), use it as is; otherwise, prepend... |
| 4844 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 4845 | @@ -18690,19 +18640,19 @@ |
| 4846 | echo EXPORTS > $output_objdir/$soname.def; |
| 4847 | cat $export_symbols >> $output_objdir/$soname.def; |
| 4848 | fi~ |
| 4849 | - $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 4850 | + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 4851 | else |
| 4852 | ld_shlibs=no |
| 4853 | fi |
| 4854 | ;; |
| 4855 | |
| 4856 | - netbsd*) |
| 4857 | + netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| 4858 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 4859 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 4860 | wlarc= |
| 4861 | else |
| 4862 | - archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 4863 | - archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4864 | + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4865 | + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4866 | fi |
| 4867 | ;; |
| 4868 | |
| 4869 | @@ -18720,8 +18670,8 @@ |
| 4870 | |
| 4871 | EOF |
| 4872 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 4873 | - archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' |
| 4874 | - archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4875 | + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4876 | + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4877 | else |
| 4878 | ld_shlibs_GCJ=no |
| 4879 | fi |
| 4880 | @@ -18734,10 +18684,36 @@ |
| 4881 | hardcode_shlibpath_var_GCJ=no |
| 4882 | ;; |
| 4883 | |
| 4884 | + linux*) |
| 4885 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 4886 | + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4887 | + archive_cmds_GCJ="$tmp_archive_cmds" |
| 4888 | + supports_anon_versioning=no |
| 4889 | + case `$LD -v 2>/dev/null` in |
| 4890 | + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 4891 | + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |