passenger 4.0.20 → 4.0.21
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- checksums.yaml +8 -8
- checksums.yaml.gz.asc +7 -7
- data.tar.gz.asc +7 -7
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/NEWS +15 -0
- data/README.md +5 -3
- data/Rakefile +1 -0
- data/bin/passenger-config +1 -5
- data/bin/passenger-install-apache2-module +53 -5
- data/bin/passenger-install-nginx-module +19 -6
- data/bin/passenger-memory-stats +3 -3
- data/build/agents.rb +11 -8
- data/build/apache2.rb +9 -5
- data/build/basics.rb +15 -21
- data/build/common_library.rb +16 -6
- data/build/cplusplus_support.rb +5 -5
- data/build/cxx_tests.rb +3 -3
- data/build/documentation.rb +1 -1
- data/build/misc.rb +4 -37
- data/build/node_tests.rb +29 -0
- data/build/oxt_tests.rb +1 -1
- data/build/packaging.rb +29 -10
- data/build/preprocessor.rb +2 -1
- data/build/test_basics.rb +15 -6
- data/debian.template/locations.ini.template +1 -0
- data/debian.template/passenger.install.template +1 -0
- data/dev/copy_boost_headers.rb +7 -3
- data/dev/run_travis.sh +32 -16
- data/doc/Users guide Apache.idmap.txt +22 -34
- data/doc/Users guide Apache.txt +20 -234
- data/doc/Users guide Nginx.idmap.txt +84 -66
- data/doc/Users guide Nginx.txt +50 -1
- data/doc/Users guide Standalone.idmap.txt +74 -0
- data/doc/Users guide Standalone.txt +22 -9
- data/doc/Users guide.txt +51 -0
- data/doc/users_guide_snippets/environment_variables.txt +0 -3
- data/doc/users_guide_snippets/installation.txt +337 -380
- data/doc/users_guide_snippets/installation/run_installer.txt +58 -0
- data/doc/users_guide_snippets/installation/verify_running_epilogue.txt +6 -0
- data/doc/users_guide_snippets/support_information.txt +2 -9
- data/doc/users_guide_snippets/troubleshooting/default.txt +112 -0
- data/doc/users_guide_snippets/troubleshooting/rails.txt +56 -0
- data/doc/users_guide_snippets/where_to_get_support.txt +9 -0
- data/ext/apache2/Bucket.h +1 -1
- data/ext/apache2/Configuration.hpp +0 -44
- data/ext/apache2/CreateDirConfig.cpp +1 -1
- data/ext/apache2/CreateDirConfig.cpp.erb +1 -1
- data/ext/apache2/Hooks.cpp +28 -21
- data/ext/apache2/MergeDirConfig.cpp +1 -0
- data/ext/apache2/MergeDirConfig.cpp.erb +1 -1
- data/ext/apache2/SetHeaders.cpp +73 -0
- data/ext/apache2/SetHeaders.cpp.erb +88 -0
- data/ext/boost/algorithm/string/detail/find_format.hpp +5 -5
- data/ext/boost/algorithm/string/detail/find_format_all.hpp +5 -5
- data/ext/boost/algorithm/string/detail/finder.hpp +1 -1
- data/ext/boost/algorithm/string/formatter.hpp +2 -2
- data/ext/boost/assert.hpp +6 -1
- data/ext/boost/atomic.hpp +18 -0
- data/ext/boost/atomic/atomic.hpp +241 -0
- data/ext/boost/atomic/detail/base.hpp +585 -0
- data/ext/boost/atomic/detail/cas32strong.hpp +885 -0
- data/ext/boost/atomic/detail/cas32weak.hpp +947 -0
- data/ext/boost/atomic/detail/cas64strong.hpp +443 -0
- data/ext/boost/atomic/detail/config.hpp +54 -0
- data/ext/boost/atomic/detail/gcc-alpha.hpp +368 -0
- data/ext/boost/atomic/detail/gcc-armv6plus.hpp +252 -0
- data/ext/boost/atomic/detail/gcc-cas.hpp +157 -0
- data/ext/boost/atomic/detail/gcc-ppc.hpp +2850 -0
- data/ext/boost/atomic/detail/gcc-sparcv9.hpp +1259 -0
- data/ext/boost/atomic/detail/gcc-x86.hpp +1766 -0
- data/ext/boost/atomic/detail/generic-cas.hpp +206 -0
- data/ext/boost/atomic/detail/interlocked.hpp +200 -0
- data/ext/boost/atomic/detail/linux-arm.hpp +189 -0
- data/ext/boost/atomic/detail/lockpool.hpp +97 -0
- data/ext/boost/atomic/detail/platform.hpp +62 -0
- data/ext/boost/atomic/detail/type-classification.hpp +45 -0
- data/ext/boost/chrono/config.hpp +8 -3
- data/ext/boost/chrono/duration.hpp +9 -10
- data/ext/boost/chrono/system_clocks.hpp +1 -1
- data/ext/boost/chrono/time_point.hpp +4 -3
- data/ext/boost/config/auto_link.hpp +53 -52
- data/ext/boost/config/compiler/borland.hpp +1 -0
- data/ext/boost/config/compiler/clang.hpp +24 -1
- data/ext/boost/config/compiler/codegear.hpp +1 -0
- data/ext/boost/config/compiler/common_edg.hpp +1 -0
- data/ext/boost/config/compiler/cray.hpp +1 -0
- data/ext/boost/config/compiler/digitalmars.hpp +1 -0
- data/ext/boost/config/compiler/gcc.hpp +29 -3
- data/ext/boost/config/compiler/gcc_xml.hpp +2 -1
- data/ext/boost/config/compiler/hp_acc.hpp +1 -0
- data/ext/boost/config/compiler/intel.hpp +1 -1
- data/ext/boost/config/compiler/metrowerks.hpp +1 -0
- data/ext/boost/config/compiler/mpw.hpp +1 -0
- data/ext/boost/config/compiler/pathscale.hpp +1 -0
- data/ext/boost/config/compiler/pgi.hpp +1 -0
- data/ext/boost/config/compiler/sunpro_cc.hpp +1 -0
- data/ext/boost/config/compiler/vacpp.hpp +3 -2
- data/ext/boost/config/compiler/visualc.hpp +25 -11
- data/ext/boost/config/platform/vxworks.hpp +353 -15
- data/ext/boost/config/select_compiler_config.hpp +4 -4
- data/ext/boost/config/stdlib/dinkumware.hpp +10 -3
- data/ext/boost/config/stdlib/libstdcpp3.hpp +2 -1
- data/ext/boost/config/suffix.hpp +45 -19
- data/ext/boost/date_time/format_date_parser.hpp +1 -11
- data/ext/boost/date_time/strings_from_facet.hpp +5 -3
- data/ext/boost/detail/atomic_redef_macros.hpp +19 -0
- data/ext/boost/detail/atomic_undef_macros.hpp +39 -0
- data/ext/boost/detail/endian.hpp +52 -4
- data/ext/boost/detail/scoped_enum_emulation.hpp +10 -10
- data/ext/boost/detail/select_type.hpp +36 -0
- data/ext/boost/exception/current_exception_cast.hpp +1 -1
- data/ext/boost/exception/detail/error_info_impl.hpp +3 -5
- data/ext/boost/exception/detail/exception_ptr.hpp +3 -3
- data/ext/boost/exception/detail/is_output_streamable.hpp +1 -1
- data/ext/boost/exception/detail/object_hex_dump.hpp +1 -1
- data/ext/boost/exception/detail/type_info.hpp +1 -1
- data/ext/boost/exception/diagnostic_information.hpp +15 -14
- data/ext/boost/exception/exception.hpp +1 -1
- data/ext/boost/exception/get_error_info.hpp +1 -1
- data/ext/boost/exception/info.hpp +12 -13
- data/ext/boost/exception/to_string.hpp +6 -1
- data/ext/boost/exception/to_string_stub.hpp +9 -1
- data/ext/boost/foreach.hpp +5 -5
- data/ext/boost/function/function_template.hpp +6 -6
- data/ext/boost/functional/hash/detail/float_functions.hpp +90 -0
- data/ext/boost/functional/hash/detail/hash_float.hpp +11 -2
- data/ext/boost/functional/hash/extensions.hpp +14 -2
- data/ext/boost/functional/hash/hash.hpp +26 -5
- data/ext/boost/get_pointer.hpp +17 -2
- data/ext/boost/integer_traits.hpp +1 -1
- data/ext/boost/lexical_cast.hpp +615 -395
- data/ext/boost/libs/atomic/lockpool.cpp +24 -0
- data/ext/boost/libs/system/src/error_code.cpp +25 -18
- data/ext/boost/libs/thread/src/future.cpp +7 -5
- data/ext/boost/libs/thread/src/pthread/once.cpp +9 -3
- data/ext/boost/libs/thread/src/pthread/once_atomic.cpp +90 -0
- data/ext/boost/libs/thread/src/pthread/thread.cpp +129 -95
- data/ext/boost/libs/thread/src/pthread/timeconv.inl +20 -1
- data/ext/boost/limits.hpp +1 -1
- data/ext/boost/math/policies/policy.hpp +10 -0
- data/ext/boost/math/special_functions/detail/round_fwd.hpp +17 -4
- data/ext/boost/math/special_functions/fpclassify.hpp +114 -45
- data/ext/boost/math/special_functions/math_fwd.hpp +195 -83
- data/ext/boost/math/special_functions/sign.hpp +13 -8
- data/ext/boost/math/tools/config.hpp +38 -16
- data/ext/boost/move/algorithm.hpp +275 -0
- data/ext/boost/move/core.hpp +332 -0
- data/ext/boost/move/detail/config_begin.hpp +23 -0
- data/ext/boost/move/detail/config_end.hpp +20 -0
- data/ext/boost/move/detail/meta_utils.hpp +158 -0
- data/ext/boost/move/iterator.hpp +298 -0
- data/ext/boost/move/move.hpp +10 -1256
- data/ext/boost/move/traits.hpp +142 -0
- data/ext/boost/move/utility.hpp +194 -0
- data/ext/boost/mpl/assert.hpp +72 -4
- data/ext/boost/noncopyable.hpp +15 -3
- data/ext/boost/pointer_to_other.hpp +55 -0
- data/ext/boost/range/concepts.hpp +4 -4
- data/ext/boost/range/detail/extract_optional_type.hpp +1 -1
- data/ext/boost/range/empty.hpp +1 -1
- data/ext/boost/range/iterator_range_core.hpp +4 -1
- data/ext/boost/range/iterator_range_io.hpp +2 -2
- data/ext/boost/ratio/config.hpp +6 -0
- data/ext/boost/ratio/detail/overflow_helpers.hpp +2 -2
- data/ext/boost/smart_ptr/allocate_shared_array.hpp +250 -0
- data/ext/boost/smart_ptr/detail/allocate_array_helper.hpp +169 -0
- data/ext/boost/smart_ptr/detail/array_deleter.hpp +124 -0
- data/ext/boost/smart_ptr/detail/array_traits.hpp +53 -0
- data/ext/boost/smart_ptr/detail/array_utility.hpp +178 -0
- data/ext/boost/smart_ptr/detail/make_array_helper.hpp +157 -0
- data/ext/boost/smart_ptr/detail/operator_bool.hpp +16 -9
- data/ext/boost/smart_ptr/detail/shared_count.hpp +78 -7
- data/ext/boost/smart_ptr/detail/sp_convertible.hpp +15 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base.hpp +12 -6
- data/ext/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_aix.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_cw_x86.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_nt.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_pt.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp +162 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_solaris.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_spin.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_sync.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp +1 -0
- data/ext/boost/smart_ptr/detail/sp_counted_impl.hpp +15 -0
- data/ext/boost/smart_ptr/detail/sp_forward.hpp +39 -0
- data/ext/boost/smart_ptr/detail/sp_has_sync.hpp +19 -3
- data/ext/boost/smart_ptr/detail/sp_if_array.hpp +31 -0
- data/ext/boost/smart_ptr/detail/sp_nullptr_t.hpp +45 -0
- data/ext/boost/smart_ptr/detail/spinlock_gcc_arm.hpp +5 -12
- data/ext/boost/smart_ptr/enable_shared_from_this.hpp +4 -4
- data/ext/boost/smart_ptr/make_shared.hpp +5 -1060
- data/ext/boost/smart_ptr/make_shared_array.hpp +247 -0
- data/ext/boost/smart_ptr/make_shared_object.hpp +1128 -0
- data/ext/boost/smart_ptr/scoped_array.hpp +32 -7
- data/ext/boost/smart_ptr/scoped_ptr.hpp +31 -5
- data/ext/boost/smart_ptr/shared_array.hpp +135 -20
- data/ext/boost/smart_ptr/shared_ptr.hpp +444 -126
- data/ext/boost/smart_ptr/weak_ptr.hpp +39 -28
- data/ext/boost/static_assert.hpp +74 -17
- data/ext/boost/system/error_code.hpp +76 -68
- data/ext/boost/system/system_error.hpp +5 -1
- data/ext/boost/thread/barrier.hpp +6 -2
- data/ext/boost/thread/completion_latch.hpp +233 -0
- data/ext/boost/thread/condition.hpp +6 -1
- data/ext/boost/thread/detail/async_func.hpp +571 -0
- data/ext/boost/thread/detail/config.hpp +248 -40
- data/ext/boost/thread/detail/counter.hpp +93 -0
- data/ext/boost/thread/detail/delete.hpp +12 -0
- data/ext/boost/thread/detail/invoke.hpp +1351 -0
- data/ext/boost/thread/detail/is_convertible.hpp +48 -0
- data/ext/boost/thread/detail/lockable_wrapper.hpp +45 -0
- data/ext/boost/thread/detail/log.hpp +83 -0
- data/ext/boost/thread/detail/make_tuple_indices.hpp +224 -0
- data/ext/boost/thread/detail/move.hpp +32 -16
- data/ext/boost/thread/detail/thread.hpp +236 -41
- data/ext/boost/thread/detail/thread_group.hpp +55 -9
- data/ext/boost/thread/detail/thread_interruption.hpp +4 -1
- data/ext/boost/thread/exceptions.hpp +2 -0
- data/ext/boost/thread/externally_locked.hpp +351 -0
- data/ext/boost/thread/externally_locked_stream.hpp +170 -0
- data/ext/boost/thread/future.hpp +2517 -455
- data/ext/boost/thread/future_error_code.hpp +61 -0
- data/ext/boost/thread/is_locked_by_this_thread.hpp +39 -0
- data/ext/boost/thread/latch.hpp +142 -0
- data/ext/boost/thread/lock_algorithms.hpp +468 -0
- data/ext/boost/thread/lock_concepts.hpp +197 -0
- data/ext/boost/thread/lock_factories.hpp +78 -0
- data/ext/boost/thread/lock_guard.hpp +88 -0
- data/ext/boost/thread/lock_options.hpp +31 -0
- data/ext/boost/thread/lock_traits.hpp +45 -0
- data/ext/boost/thread/lock_types.hpp +1226 -0
- data/ext/boost/thread/lockable_adapter.hpp +226 -0
- data/ext/boost/thread/lockable_concepts.hpp +157 -0
- data/ext/boost/thread/lockable_traits.hpp +207 -0
- data/ext/boost/thread/locks.hpp +5 -1816
- data/ext/boost/thread/mutex.hpp +33 -1
- data/ext/boost/thread/null_mutex.hpp +243 -0
- data/ext/boost/thread/once.hpp +10 -1
- data/ext/boost/thread/poly_lockable.hpp +68 -0
- data/ext/boost/thread/poly_lockable_adapter.hpp +89 -0
- data/ext/boost/thread/poly_shared_lockable.hpp +135 -0
- data/ext/boost/thread/poly_shared_lockable_adapter.hpp +170 -0
- data/ext/boost/thread/pthread/condition_variable.hpp +74 -26
- data/ext/boost/thread/pthread/condition_variable_fwd.hpp +54 -27
- data/ext/boost/thread/pthread/mutex.hpp +101 -38
- data/ext/boost/thread/pthread/once.hpp +459 -44
- data/ext/boost/thread/pthread/once_atomic.hpp +313 -0
- data/ext/boost/thread/pthread/recursive_mutex.hpp +19 -10
- data/ext/boost/thread/pthread/shared_mutex.hpp +226 -61
- data/ext/boost/thread/pthread/shared_mutex_assert.hpp +724 -0
- data/ext/boost/thread/pthread/thread_data.hpp +53 -50
- data/ext/boost/thread/pthread/timespec.hpp +96 -12
- data/ext/boost/thread/recursive_mutex.hpp +44 -1
- data/ext/boost/thread/reverse_lock.hpp +3 -2
- data/ext/boost/thread/scoped_thread.hpp +285 -0
- data/ext/boost/thread/shared_lock_guard.hpp +2 -1
- data/ext/boost/thread/shared_mutex.hpp +23 -0
- data/ext/boost/thread/strict_lock.hpp +235 -0
- data/ext/boost/thread/sync_bounded_queue.hpp +594 -0
- data/ext/boost/thread/sync_queue.hpp +516 -0
- data/ext/boost/thread/synchronized_value.hpp +1001 -0
- data/ext/boost/thread/testable_mutex.hpp +148 -0
- data/ext/boost/thread/thread.hpp +1 -13
- data/ext/boost/thread/thread_functors.hpp +57 -0
- data/ext/boost/thread/thread_guard.hpp +46 -0
- data/ext/boost/thread/thread_only.hpp +29 -0
- data/ext/boost/thread/v2/shared_mutex.hpp +1062 -0
- data/ext/boost/thread/v2/thread.hpp +37 -10
- data/ext/boost/thread/xtime.hpp +2 -1
- data/ext/boost/token_functions.hpp +16 -16
- data/ext/boost/type_traits/add_lvalue_reference.hpp +26 -0
- data/ext/boost/type_traits/add_reference.hpp +1 -1
- data/ext/boost/type_traits/add_rvalue_reference.hpp +4 -4
- data/ext/boost/type_traits/aligned_storage.hpp +13 -0
- data/ext/boost/type_traits/common_type.hpp +11 -12
- data/ext/boost/type_traits/config.hpp +1 -1
- data/ext/boost/type_traits/detail/common_type_imp.hpp +1 -1
- data/ext/boost/type_traits/detail/has_binary_operator.hpp +1 -1
- data/ext/boost/type_traits/detail/is_function_ptr_tester.hpp +1 -1
- data/ext/boost/type_traits/has_left_shift.hpp +49 -0
- data/ext/boost/type_traits/has_right_shift.hpp +49 -0
- data/ext/boost/type_traits/has_trivial_move_assign.hpp +57 -0
- data/ext/boost/type_traits/has_trivial_move_constructor.hpp +57 -0
- data/ext/boost/type_traits/intrinsics.hpp +18 -2
- data/ext/boost/type_traits/is_abstract.hpp +1 -1
- data/ext/boost/type_traits/is_array.hpp +1 -1
- data/ext/boost/type_traits/is_const.hpp +1 -1
- data/ext/boost/type_traits/is_convertible.hpp +78 -17
- data/ext/boost/type_traits/is_function.hpp +6 -1
- data/ext/boost/type_traits/is_integral.hpp +6 -1
- data/ext/boost/type_traits/is_nothrow_move_assignable.hpp +84 -0
- data/ext/boost/type_traits/is_nothrow_move_constructible.hpp +84 -0
- data/ext/boost/type_traits/is_pod.hpp +3 -1
- data/ext/boost/type_traits/is_rvalue_reference.hpp +1 -1
- data/ext/boost/type_traits/is_volatile.hpp +1 -1
- data/ext/boost/type_traits/make_signed.hpp +153 -0
- data/ext/boost/type_traits/make_unsigned.hpp +16 -0
- data/ext/boost/type_traits/remove_const.hpp +1 -1
- data/ext/boost/type_traits/remove_cv.hpp +1 -1
- data/ext/boost/type_traits/remove_reference.hpp +1 -1
- data/ext/boost/type_traits/remove_volatile.hpp +1 -1
- data/ext/boost/unordered/detail/allocate.hpp +1120 -0
- data/ext/boost/unordered/detail/buckets.hpp +876 -0
- data/ext/boost/unordered/detail/equivalent.hpp +680 -0
- data/ext/boost/unordered/detail/extract_key.hpp +183 -0
- data/ext/boost/unordered/detail/fwd.hpp +23 -0
- data/ext/boost/unordered/detail/table.hpp +861 -0
- data/ext/boost/unordered/detail/unique.hpp +622 -0
- data/ext/boost/unordered/detail/util.hpp +260 -0
- data/ext/boost/unordered/unordered_map.hpp +1652 -0
- data/ext/boost/unordered/unordered_map_fwd.hpp +65 -0
- data/ext/boost/unordered/unordered_set.hpp +1549 -0
- data/ext/boost/unordered/unordered_set_fwd.hpp +63 -0
- data/ext/boost/unordered_map.hpp +18 -0
- data/ext/boost/unordered_set.hpp +18 -0
- data/ext/boost/utility/addressof.hpp +2 -2
- data/ext/boost/utility/result_of.hpp +8 -1
- data/ext/boost/version.hpp +2 -2
- data/ext/common/Account.h +1 -1
- data/ext/common/AccountsDatabase.h +1 -1
- data/ext/common/AgentsStarter.cpp +3 -1
- data/ext/common/AgentsStarter.h +2 -2
- data/ext/common/ApplicationPool2/AppTypes.cpp +24 -6
- data/ext/common/ApplicationPool2/AppTypes.h +17 -8
- data/ext/common/ApplicationPool2/Common.h +12 -12
- data/ext/common/ApplicationPool2/DirectSpawner.h +2 -2
- data/ext/common/ApplicationPool2/DummySpawner.h +3 -3
- data/ext/common/ApplicationPool2/Group.h +6 -6
- data/ext/common/ApplicationPool2/Implementation.cpp +19 -19
- data/ext/common/ApplicationPool2/PipeWatcher.h +5 -5
- data/ext/common/ApplicationPool2/Pool.h +21 -21
- data/ext/common/ApplicationPool2/Process.h +6 -6
- data/ext/common/ApplicationPool2/Session.h +1 -1
- data/ext/common/ApplicationPool2/SmartSpawner.h +24 -12
- data/ext/common/ApplicationPool2/Socket.h +2 -2
- data/ext/common/ApplicationPool2/Spawner.h +64 -14
- data/ext/common/ApplicationPool2/SpawnerFactory.h +7 -7
- data/ext/common/ApplicationPool2/SuperGroup.h +5 -5
- data/ext/common/BackgroundEventLoop.cpp +4 -4
- data/ext/common/BackgroundEventLoop.h +1 -1
- data/ext/common/Constants.h +13 -1
- data/ext/common/EventedBufferedInput.h +8 -8
- data/ext/common/Exceptions.cpp +71 -0
- data/ext/common/Exceptions.h +60 -7
- data/ext/common/FileDescriptor.h +4 -4
- data/ext/common/MessageClient.h +1 -1
- data/ext/common/MessageServer.h +5 -5
- data/ext/common/MultiLibeio.cpp +3 -3
- data/ext/common/MultiLibeio.h +2 -2
- data/ext/common/RandomGenerator.h +11 -11
- data/ext/common/ResourceLocator.h +8 -1
- data/ext/common/SafeLibev.h +12 -12
- data/ext/common/ServerInstanceDir.h +11 -3
- data/ext/common/UnionStation.h +10 -10
- data/ext/common/Utils.cpp +11 -13
- data/ext/common/Utils.h +9 -9
- data/ext/common/Utils/BlockingQueue.h +10 -10
- data/ext/common/Utils/BufferedIO.h +1 -1
- data/ext/common/Utils/CachedFileStat.hpp +2 -2
- data/ext/common/Utils/FileChangeChecker.h +1 -1
- data/ext/common/Utils/HashMap.h +13 -4
- data/ext/common/Utils/IOUtils.cpp +33 -10
- data/ext/common/Utils/IniFile.h +3 -3
- data/ext/common/Utils/Lock.h +2 -2
- data/ext/common/Utils/MessagePassing.h +10 -10
- data/ext/common/Utils/ProcessMetricsCollector.h +24 -6
- data/ext/common/Utils/ScopeGuard.h +5 -5
- data/ext/common/Utils/jsoncpp.cpp +2 -0
- data/ext/common/agents/HelperAgent/FileBackedPipe.h +26 -26
- data/ext/common/agents/HelperAgent/Main.cpp +18 -18
- data/ext/common/agents/HelperAgent/RequestHandler.cpp +4 -4
- data/ext/common/agents/HelperAgent/RequestHandler.h +30 -21
- data/ext/common/agents/LoggingAgent/AdminController.h +1 -1
- data/ext/common/agents/LoggingAgent/FilterSupport.h +13 -11
- data/ext/common/agents/LoggingAgent/LoggingServer.h +11 -11
- data/ext/common/agents/LoggingAgent/Main.cpp +9 -9
- data/ext/common/agents/LoggingAgent/RemoteSender.h +3 -3
- data/ext/common/agents/SpawnPreparer.cpp +1 -0
- data/ext/common/agents/Watchdog/AgentWatcher.cpp +8 -7
- data/ext/common/agents/Watchdog/Main.cpp +81 -73
- data/ext/common/agents/Watchdog/ServerInstanceDirToucher.cpp +1 -1
- data/ext/libev/Changes +57 -0
- data/ext/libev/LICENSE +2 -1
- data/ext/libev/Makefile.in +110 -50
- data/ext/libev/README +8 -8
- data/ext/libev/aclocal.m4 +1503 -861
- data/ext/libev/config.guess +290 -304
- data/ext/libev/config.sub +77 -198
- data/ext/libev/configure +1735 -890
- data/ext/libev/configure.ac +3 -2
- data/ext/libev/ev++.h +6 -6
- data/ext/libev/ev.c +541 -214
- data/ext/libev/ev.h +106 -100
- data/ext/libev/ev_epoll.c +1 -1
- data/ext/libev/ev_kqueue.c +20 -4
- data/ext/libev/ev_vars.h +15 -16
- data/ext/libev/ev_win32.c +12 -2
- data/ext/libev/ev_wrap.h +162 -160
- data/ext/libev/event.c +29 -6
- data/ext/libev/event.h +9 -2
- data/ext/libev/ltmain.sh +2632 -1384
- data/ext/nginx/ConfigurationCommands.c +1 -1
- data/ext/nginx/ConfigurationCommands.c.erb +3 -1
- data/ext/nginx/ContentHandler.c +25 -2
- data/ext/nginx/CreateLocationConfig.c +1 -0
- data/ext/nginx/CreateLocationConfig.c.erb +1 -1
- data/ext/nginx/MergeLocationConfig.c +1 -0
- data/ext/nginx/MergeLocationConfig.c.erb +1 -1
- data/ext/nginx/config +12 -0
- data/ext/oxt/dynamic_thread_group.hpp +7 -4
- data/ext/oxt/system_calls.cpp +5 -1
- data/ext/oxt/system_calls.hpp +3 -0
- data/helper-scripts/node-loader.js +117 -249
- data/lib/phusion_passenger.rb +27 -5
- data/lib/phusion_passenger/abstract_installer.rb +104 -9
- data/lib/phusion_passenger/admin_tools/memory_stats.rb +10 -9
- data/lib/phusion_passenger/apache2/config_options.rb +6 -3
- data/lib/phusion_passenger/common_library.rb +7 -1
- data/lib/phusion_passenger/constants.rb +6 -0
- data/lib/phusion_passenger/loader_shared_helpers.rb +7 -4
- data/lib/phusion_passenger/nginx/config_options.rb +2 -1
- data/lib/phusion_passenger/packaging.rb +3 -0
- data/lib/phusion_passenger/platform_info/apache.rb +43 -6
- data/lib/phusion_passenger/platform_info/apache_detector.rb +15 -5
- data/lib/phusion_passenger/platform_info/compiler.rb +167 -32
- data/lib/phusion_passenger/platform_info/cxx_portability.rb +133 -77
- data/lib/phusion_passenger/platform_info/depcheck.rb +17 -7
- data/lib/phusion_passenger/platform_info/depcheck_specs/apache2.rb +3 -3
- data/lib/phusion_passenger/platform_info/depcheck_specs/compiler_toolchain.rb +4 -4
- data/lib/phusion_passenger/platform_info/depcheck_specs/ruby.rb +5 -6
- data/lib/phusion_passenger/platform_info/linux.rb +2 -1
- data/lib/phusion_passenger/platform_info/operating_system.rb +1 -1
- data/lib/phusion_passenger/platform_info/ruby.rb +18 -3
- data/lib/phusion_passenger/standalone/runtime_installer.rb +6 -2
- data/lib/phusion_passenger/standalone/start_command.rb +8 -2
- data/lib/phusion_passenger/utils/ansi_colors.rb +9 -0
- data/lib/phusion_passenger/utils/hosts_file_parser.rb +4 -2
- data/node_lib/phusion_passenger/httplib_emulation.js +141 -0
- data/node_lib/phusion_passenger/line_reader.js +154 -0
- data/node_lib/phusion_passenger/request_handler.js +65 -0
- data/node_lib/phusion_passenger/session_protocol_parser.js +113 -0
- data/resources/templates/apache2/deployment_example.txt.erb +2 -1
- data/resources/templates/apache2/installing_against_a_different_apache.txt.erb +14 -0
- data/resources/templates/apache2/multiple_apache_installations_detected.txt.erb +15 -0
- data/resources/templates/apache2/possible_solutions_for_compilation_and_installation_problems.txt.erb +4 -5
- data/resources/templates/general_error_with_html.html.template +1 -1
- data/resources/templates/installer_common/gem_install_permission_problems.txt.erb +17 -0
- data/resources/templates/installer_common/low_amount_of_memory_warning.txt.erb +6 -4
- data/resources/templates/installer_common/world_inaccessible_directories.txt.erb +16 -0
- data/resources/templates/nginx/deployment_example.txt.erb +2 -1
- data/resources/templates/nginx/possible_solutions_for_compilation_and_installation_problems.txt.erb +4 -5
- data/resources/templates/standalone/config.erb +1 -0
- data/test/cxx/ApplicationPool2/DirectSpawnerTest.cpp +3 -3
- data/test/cxx/ApplicationPool2/PoolTest.cpp +4 -4
- data/test/cxx/ApplicationPool2/ProcessTest.cpp +5 -5
- data/test/cxx/ApplicationPool2/SmartSpawnerTest.cpp +5 -5
- data/test/cxx/ApplicationPool2/SpawnerTestCases.cpp +1 -1
- data/test/cxx/EventedBufferedInputTest.cpp +6 -6
- data/test/cxx/FileBackedPipeTest.cpp +1 -1
- data/test/cxx/MessagePassingTest.cpp +1 -1
- data/test/cxx/MessageServerTest.cpp +4 -4
- data/test/cxx/RequestHandlerTest.cpp +7 -7
- data/test/cxx/UnionStationTest.cpp +2 -2
- data/test/node/line_reader_spec.js +338 -0
- data/test/node/spec_helper.js +27 -0
- data/test/ruby/standalone/runtime_installer_spec.rb +2 -1
- metadata +131 -22
- metadata.gz.asc +7 -7
- data/ext/boost/functional/hash/detail/container_fwd_0x.hpp +0 -29
- data/ext/boost/lambda/core.hpp +0 -79
- data/ext/boost/lambda/detail/actions.hpp +0 -174
- data/ext/boost/lambda/detail/arity_code.hpp +0 -110
- data/ext/boost/lambda/detail/function_adaptors.hpp +0 -789
- data/ext/boost/lambda/detail/is_instance_of.hpp +0 -104
- data/ext/boost/lambda/detail/lambda_config.hpp +0 -48
- data/ext/boost/lambda/detail/lambda_functor_base.hpp +0 -615
- data/ext/boost/lambda/detail/lambda_functors.hpp +0 -324
- data/ext/boost/lambda/detail/lambda_fwd.hpp +0 -74
- data/ext/boost/lambda/detail/lambda_traits.hpp +0 -578
- data/ext/boost/lambda/detail/member_ptr.hpp +0 -737
- data/ext/boost/lambda/detail/operator_actions.hpp +0 -139
- data/ext/boost/lambda/detail/operator_lambda_func_base.hpp +0 -271
- data/ext/boost/lambda/detail/operator_return_type_traits.hpp +0 -917
- data/ext/boost/lambda/detail/operators.hpp +0 -370
- data/ext/boost/lambda/detail/ret.hpp +0 -325
- data/ext/boost/lambda/detail/return_type_traits.hpp +0 -282
- data/ext/boost/lambda/detail/select_functions.hpp +0 -74
- data/ext/boost/lambda/lambda.hpp +0 -34
data/ext/libev/README
CHANGED
@@ -24,23 +24,23 @@ ABOUT
|
|
24
24
|
- relative timers/timeouts (handle time jumps).
|
25
25
|
- fast intra-thread communication between multiple
|
26
26
|
event loops (with optional fast linux eventfd backend).
|
27
|
-
- extremely easy to embed
|
28
|
-
|
27
|
+
- extremely easy to embed (fully documented, no dependencies,
|
28
|
+
autoconf supported but optional).
|
29
|
+
- very small codebase, no bloated library, simple code.
|
29
30
|
- fully extensible by being able to plug into the event loop,
|
30
31
|
integrate other event loops, integrate other event loop users.
|
31
32
|
- very little memory use (small watchers, small event loop data).
|
32
33
|
- optional C++ interface allowing method and function callbacks
|
33
34
|
at no extra memory or runtime overhead.
|
34
35
|
- optional Perl interface with similar characteristics (capable
|
35
|
-
of running Glib/Gtk2 on libev
|
36
|
-
libadns).
|
36
|
+
of running Glib/Gtk2 on libev).
|
37
37
|
- support for other languages (multiple C++ interfaces, D, Ruby,
|
38
38
|
Python) available from third-parties.
|
39
39
|
|
40
|
-
Examples of programs that embed libev: the EV perl module,
|
41
|
-
rxvt-unicode, gvpe (GNU Virtual Private Ethernet), the
|
42
|
-
server (http://www.deliantra.net/), Rubinius (a
|
43
|
-
VM), the Ebb web server, the Rev event toolkit.
|
40
|
+
Examples of programs that embed libev: the EV perl module, node.js,
|
41
|
+
auditd, rxvt-unicode, gvpe (GNU Virtual Private Ethernet), the
|
42
|
+
Deliantra MMORPG server (http://www.deliantra.net/), Rubinius (a
|
43
|
+
next-generation Ruby VM), the Ebb web server, the Rev event toolkit.
|
44
44
|
|
45
45
|
|
46
46
|
CONTRIBUTORS
|
data/ext/libev/aclocal.m4
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
# generated automatically by aclocal 1.11.
|
1
|
+
# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
|
2
2
|
|
3
3
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
4
|
-
# 2005, 2006, 2007, 2008, 2009
|
4
|
+
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
|
5
|
+
# Inc.
|
5
6
|
# This file is free software; the Free Software Foundation
|
6
7
|
# gives unlimited permission to copy and/or distribute it,
|
7
8
|
# with or without modifications, as long as this notice is preserved.
|
@@ -13,8 +14,8 @@
|
|
13
14
|
|
14
15
|
m4_ifndef([AC_AUTOCONF_VERSION],
|
15
16
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
16
|
-
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.
|
17
|
-
[m4_warning([this file was generated for autoconf 2.
|
17
|
+
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
|
18
|
+
[m4_warning([this file was generated for autoconf 2.69.
|
18
19
|
You have another version of autoconf. It may work, but is not guaranteed to.
|
19
20
|
If you have problems, you may need to regenerate the build system entirely.
|
20
21
|
To do so, use the procedure documented by the package, typically `autoreconf'.])])
|
@@ -22,7 +23,8 @@ To do so, use the procedure documented by the package, typically `autoreconf'.])
|
|
22
23
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
23
24
|
#
|
24
25
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
25
|
-
# 2006, 2007, 2008 Free Software
|
26
|
+
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
27
|
+
# Foundation, Inc.
|
26
28
|
# Written by Gordon Matzigkeit, 1996
|
27
29
|
#
|
28
30
|
# This file is free software; the Free Software Foundation gives
|
@@ -31,7 +33,8 @@ To do so, use the procedure documented by the package, typically `autoreconf'.])
|
|
31
33
|
|
32
34
|
m4_define([_LT_COPYING], [dnl
|
33
35
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
34
|
-
# 2006, 2007, 2008 Free Software
|
36
|
+
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
37
|
+
# Foundation, Inc.
|
35
38
|
# Written by Gordon Matzigkeit, 1996
|
36
39
|
#
|
37
40
|
# This file is part of GNU Libtool.
|
@@ -58,7 +61,7 @@ m4_define([_LT_COPYING], [dnl
|
|
58
61
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
59
62
|
])
|
60
63
|
|
61
|
-
# serial
|
64
|
+
# serial 57 LT_INIT
|
62
65
|
|
63
66
|
|
64
67
|
# LT_PREREQ(VERSION)
|
@@ -87,6 +90,7 @@ esac
|
|
87
90
|
# ------------------
|
88
91
|
AC_DEFUN([LT_INIT],
|
89
92
|
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
|
93
|
+
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
90
94
|
AC_BEFORE([$0], [LT_LANG])dnl
|
91
95
|
AC_BEFORE([$0], [LT_OUTPUT])dnl
|
92
96
|
AC_BEFORE([$0], [LTDL_INIT])dnl
|
@@ -103,6 +107,8 @@ AC_REQUIRE([LTVERSION_VERSION])dnl
|
|
103
107
|
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
|
104
108
|
m4_require([_LT_PROG_LTMAIN])dnl
|
105
109
|
|
110
|
+
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
|
111
|
+
|
106
112
|
dnl Parse OPTIONS
|
107
113
|
_LT_SET_OPTIONS([$0], [$1])
|
108
114
|
|
@@ -139,7 +145,7 @@ m4_defun([_LT_CC_BASENAME],
|
|
139
145
|
*) break;;
|
140
146
|
esac
|
141
147
|
done
|
142
|
-
cc_basename=`$ECHO "
|
148
|
+
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
143
149
|
])
|
144
150
|
|
145
151
|
|
@@ -159,6 +165,11 @@ m4_defun([_LT_FILEUTILS_DEFAULTS],
|
|
159
165
|
m4_defun([_LT_SETUP],
|
160
166
|
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
161
167
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
168
|
+
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
|
169
|
+
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
|
170
|
+
|
171
|
+
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
|
172
|
+
dnl
|
162
173
|
_LT_DECL([], [host_alias], [0], [The host system])dnl
|
163
174
|
_LT_DECL([], [host], [0])dnl
|
164
175
|
_LT_DECL([], [host_os], [0])dnl
|
@@ -181,10 +192,13 @@ _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
|
|
181
192
|
dnl
|
182
193
|
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
183
194
|
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
195
|
+
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
|
184
196
|
m4_require([_LT_CMD_RELOAD])dnl
|
185
197
|
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
|
198
|
+
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
|
186
199
|
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
|
187
200
|
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
201
|
+
m4_require([_LT_WITH_SYSROOT])dnl
|
188
202
|
|
189
203
|
_LT_CONFIG_LIBTOOL_INIT([
|
190
204
|
# See if we are running on zsh, and set the options which allow our
|
@@ -200,7 +214,6 @@ fi
|
|
200
214
|
_LT_CHECK_OBJDIR
|
201
215
|
|
202
216
|
m4_require([_LT_TAG_COMPILER])dnl
|
203
|
-
_LT_PROG_ECHO_BACKSLASH
|
204
217
|
|
205
218
|
case $host_os in
|
206
219
|
aix3*)
|
@@ -214,23 +227,6 @@ aix3*)
|
|
214
227
|
;;
|
215
228
|
esac
|
216
229
|
|
217
|
-
# Sed substitution that helps us do robust quoting. It backslashifies
|
218
|
-
# metacharacters that are still active within double-quoted strings.
|
219
|
-
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
|
220
|
-
|
221
|
-
# Same as above, but do not quote variable references.
|
222
|
-
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
|
223
|
-
|
224
|
-
# Sed substitution to delay expansion of an escaped shell variable in a
|
225
|
-
# double_quote_subst'ed string.
|
226
|
-
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
227
|
-
|
228
|
-
# Sed substitution to delay expansion of an escaped single quote.
|
229
|
-
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
230
|
-
|
231
|
-
# Sed substitution to avoid accidental globbing in evaled expressions
|
232
|
-
no_glob_subst='s/\*/\\\*/g'
|
233
|
-
|
234
230
|
# Global variables:
|
235
231
|
ofile=libtool
|
236
232
|
can_build_shared=yes
|
@@ -271,6 +267,28 @@ _LT_CONFIG_COMMANDS
|
|
271
267
|
])# _LT_SETUP
|
272
268
|
|
273
269
|
|
270
|
+
# _LT_PREPARE_SED_QUOTE_VARS
|
271
|
+
# --------------------------
|
272
|
+
# Define a few sed substitution that help us do robust quoting.
|
273
|
+
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
|
274
|
+
[# Backslashify metacharacters that are still active within
|
275
|
+
# double-quoted strings.
|
276
|
+
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
|
277
|
+
|
278
|
+
# Same as above, but do not quote variable references.
|
279
|
+
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
|
280
|
+
|
281
|
+
# Sed substitution to delay expansion of an escaped shell variable in a
|
282
|
+
# double_quote_subst'ed string.
|
283
|
+
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
284
|
+
|
285
|
+
# Sed substitution to delay expansion of an escaped single quote.
|
286
|
+
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
287
|
+
|
288
|
+
# Sed substitution to avoid accidental globbing in evaled expressions
|
289
|
+
no_glob_subst='s/\*/\\\*/g'
|
290
|
+
])
|
291
|
+
|
274
292
|
# _LT_PROG_LTMAIN
|
275
293
|
# ---------------
|
276
294
|
# Note that this code is called both from `configure', and `config.status'
|
@@ -423,7 +441,7 @@ m4_define([_lt_decl_all_varnames],
|
|
423
441
|
# declaration there will have the same value as in `configure'. VARNAME
|
424
442
|
# must have a single quote delimited value for this to work.
|
425
443
|
m4_define([_LT_CONFIG_STATUS_DECLARE],
|
426
|
-
[$1='`$ECHO "
|
444
|
+
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
|
427
445
|
|
428
446
|
|
429
447
|
# _LT_CONFIG_STATUS_DECLARATIONS
|
@@ -433,7 +451,7 @@ m4_define([_LT_CONFIG_STATUS_DECLARE],
|
|
433
451
|
# embedded single quotes properly. In configure, this macro expands
|
434
452
|
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
|
435
453
|
#
|
436
|
-
# <var>='`$ECHO "
|
454
|
+
# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
|
437
455
|
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
|
438
456
|
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
|
439
457
|
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
|
@@ -532,12 +550,20 @@ LTCC='$LTCC'
|
|
532
550
|
LTCFLAGS='$LTCFLAGS'
|
533
551
|
compiler='$compiler_DEFAULT'
|
534
552
|
|
553
|
+
# A function that is used when there is no print builtin or printf.
|
554
|
+
func_fallback_echo ()
|
555
|
+
{
|
556
|
+
eval 'cat <<_LTECHO_EOF
|
557
|
+
\$[]1
|
558
|
+
_LTECHO_EOF'
|
559
|
+
}
|
560
|
+
|
535
561
|
# Quote evaled strings.
|
536
562
|
for var in lt_decl_all_varnames([[ \
|
537
563
|
]], lt_decl_quote_varnames); do
|
538
|
-
case \`eval \\\\\$ECHO "
|
564
|
+
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
539
565
|
*[[\\\\\\\`\\"\\\$]]*)
|
540
|
-
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"
|
566
|
+
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
|
541
567
|
;;
|
542
568
|
*)
|
543
569
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
@@ -548,9 +574,9 @@ done
|
|
548
574
|
# Double-quote double-evaled strings.
|
549
575
|
for var in lt_decl_all_varnames([[ \
|
550
576
|
]], lt_decl_dquote_varnames); do
|
551
|
-
case \`eval \\\\\$ECHO "
|
577
|
+
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
552
578
|
*[[\\\\\\\`\\"\\\$]]*)
|
553
|
-
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"
|
579
|
+
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
554
580
|
;;
|
555
581
|
*)
|
556
582
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
@@ -558,16 +584,38 @@ for var in lt_decl_all_varnames([[ \
|
|
558
584
|
esac
|
559
585
|
done
|
560
586
|
|
561
|
-
# Fix-up fallback echo if it was mangled by the above quoting rules.
|
562
|
-
case \$lt_ECHO in
|
563
|
-
*'\\\[$]0 --fallback-echo"')dnl "
|
564
|
-
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
|
565
|
-
;;
|
566
|
-
esac
|
567
|
-
|
568
587
|
_LT_OUTPUT_LIBTOOL_INIT
|
569
588
|
])
|
570
589
|
|
590
|
+
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
|
591
|
+
# ------------------------------------
|
592
|
+
# Generate a child script FILE with all initialization necessary to
|
593
|
+
# reuse the environment learned by the parent script, and make the
|
594
|
+
# file executable. If COMMENT is supplied, it is inserted after the
|
595
|
+
# `#!' sequence but before initialization text begins. After this
|
596
|
+
# macro, additional text can be appended to FILE to form the body of
|
597
|
+
# the child script. The macro ends with non-zero status if the
|
598
|
+
# file could not be fully written (such as if the disk is full).
|
599
|
+
m4_ifdef([AS_INIT_GENERATED],
|
600
|
+
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
|
601
|
+
[m4_defun([_LT_GENERATED_FILE_INIT],
|
602
|
+
[m4_require([AS_PREPARE])]dnl
|
603
|
+
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
|
604
|
+
[lt_write_fail=0
|
605
|
+
cat >$1 <<_ASEOF || lt_write_fail=1
|
606
|
+
#! $SHELL
|
607
|
+
# Generated by $as_me.
|
608
|
+
$2
|
609
|
+
SHELL=\${CONFIG_SHELL-$SHELL}
|
610
|
+
export SHELL
|
611
|
+
_ASEOF
|
612
|
+
cat >>$1 <<\_ASEOF || lt_write_fail=1
|
613
|
+
AS_SHELL_SANITIZE
|
614
|
+
_AS_PREPARE
|
615
|
+
exec AS_MESSAGE_FD>&1
|
616
|
+
_ASEOF
|
617
|
+
test $lt_write_fail = 0 && chmod +x $1[]dnl
|
618
|
+
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
|
571
619
|
|
572
620
|
# LT_OUTPUT
|
573
621
|
# ---------
|
@@ -577,20 +625,11 @@ _LT_OUTPUT_LIBTOOL_INIT
|
|
577
625
|
AC_DEFUN([LT_OUTPUT],
|
578
626
|
[: ${CONFIG_LT=./config.lt}
|
579
627
|
AC_MSG_NOTICE([creating $CONFIG_LT])
|
580
|
-
|
581
|
-
|
582
|
-
# Generated by $as_me.
|
583
|
-
# Run this file to recreate a libtool stub with the current configuration.
|
584
|
-
|
585
|
-
lt_cl_silent=false
|
586
|
-
SHELL=\${CONFIG_SHELL-$SHELL}
|
587
|
-
_LTEOF
|
628
|
+
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
|
629
|
+
[# Run this file to recreate a libtool stub with the current configuration.])
|
588
630
|
|
589
631
|
cat >>"$CONFIG_LT" <<\_LTEOF
|
590
|
-
|
591
|
-
_AS_PREPARE
|
592
|
-
|
593
|
-
exec AS_MESSAGE_FD>&1
|
632
|
+
lt_cl_silent=false
|
594
633
|
exec AS_MESSAGE_LOG_FD>>config.log
|
595
634
|
{
|
596
635
|
echo
|
@@ -616,7 +655,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
|
616
655
|
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
617
656
|
configured by $[0], generated by m4_PACKAGE_STRING.
|
618
657
|
|
619
|
-
Copyright (C)
|
658
|
+
Copyright (C) 2011 Free Software Foundation, Inc.
|
620
659
|
This config.lt script is free software; the Free Software Foundation
|
621
660
|
gives unlimited permision to copy, distribute and modify it."
|
622
661
|
|
@@ -661,15 +700,13 @@ chmod +x "$CONFIG_LT"
|
|
661
700
|
# appending to config.log, which fails on DOS, as config.log is still kept
|
662
701
|
# open by configure. Here we exec the FD to /dev/null, effectively closing
|
663
702
|
# config.log, so it can be properly (re)opened and appended to by config.lt.
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
$lt_cl_success || AS_EXIT(1)
|
672
|
-
fi
|
703
|
+
lt_cl_success=:
|
704
|
+
test "$silent" = yes &&
|
705
|
+
lt_config_lt_args="$lt_config_lt_args --quiet"
|
706
|
+
exec AS_MESSAGE_LOG_FD>/dev/null
|
707
|
+
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
|
708
|
+
exec AS_MESSAGE_LOG_FD>>config.log
|
709
|
+
$lt_cl_success || AS_EXIT(1)
|
673
710
|
])# LT_OUTPUT
|
674
711
|
|
675
712
|
|
@@ -732,15 +769,12 @@ _LT_EOF
|
|
732
769
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
733
770
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
734
771
|
# is reportedly fixed, but why not run on old versions too?
|
735
|
-
sed '
|
736
|
-
|
772
|
+
sed '$q' "$ltmain" >> "$cfgfile" \
|
773
|
+
|| (rm -f "$cfgfile"; exit 1)
|
737
774
|
|
738
|
-
|
775
|
+
_LT_PROG_REPLACE_SHELLFNS
|
739
776
|
|
740
|
-
|
741
|
-
|| (rm -f "$cfgfile"; exit 1)
|
742
|
-
|
743
|
-
mv -f "$cfgfile" "$ofile" ||
|
777
|
+
mv -f "$cfgfile" "$ofile" ||
|
744
778
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
745
779
|
chmod +x "$ofile"
|
746
780
|
],
|
@@ -785,6 +819,7 @@ AC_DEFUN([LT_LANG],
|
|
785
819
|
m4_case([$1],
|
786
820
|
[C], [_LT_LANG(C)],
|
787
821
|
[C++], [_LT_LANG(CXX)],
|
822
|
+
[Go], [_LT_LANG(GO)],
|
788
823
|
[Java], [_LT_LANG(GCJ)],
|
789
824
|
[Fortran 77], [_LT_LANG(F77)],
|
790
825
|
[Fortran], [_LT_LANG(FC)],
|
@@ -806,6 +841,29 @@ m4_defun([_LT_LANG],
|
|
806
841
|
])# _LT_LANG
|
807
842
|
|
808
843
|
|
844
|
+
m4_ifndef([AC_PROG_GO], [
|
845
|
+
# NOTE: This macro has been submitted for inclusion into #
|
846
|
+
# GNU Autoconf as AC_PROG_GO. When it is available in #
|
847
|
+
# a released version of Autoconf we should remove this #
|
848
|
+
# macro and use it instead. #
|
849
|
+
m4_defun([AC_PROG_GO],
|
850
|
+
[AC_LANG_PUSH(Go)dnl
|
851
|
+
AC_ARG_VAR([GOC], [Go compiler command])dnl
|
852
|
+
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
|
853
|
+
_AC_ARG_VAR_LDFLAGS()dnl
|
854
|
+
AC_CHECK_TOOL(GOC, gccgo)
|
855
|
+
if test -z "$GOC"; then
|
856
|
+
if test -n "$ac_tool_prefix"; then
|
857
|
+
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
|
858
|
+
fi
|
859
|
+
fi
|
860
|
+
if test -z "$GOC"; then
|
861
|
+
AC_CHECK_PROG(GOC, gccgo, gccgo, false)
|
862
|
+
fi
|
863
|
+
])#m4_defun
|
864
|
+
])#m4_ifndef
|
865
|
+
|
866
|
+
|
809
867
|
# _LT_LANG_DEFAULT_CONFIG
|
810
868
|
# -----------------------
|
811
869
|
m4_defun([_LT_LANG_DEFAULT_CONFIG],
|
@@ -836,6 +894,10 @@ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
|
836
894
|
m4_ifdef([LT_PROG_GCJ],
|
837
895
|
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
|
838
896
|
|
897
|
+
AC_PROVIDE_IFELSE([AC_PROG_GO],
|
898
|
+
[LT_LANG(GO)],
|
899
|
+
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
|
900
|
+
|
839
901
|
AC_PROVIDE_IFELSE([LT_PROG_RC],
|
840
902
|
[LT_LANG(RC)],
|
841
903
|
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
|
@@ -846,11 +908,13 @@ AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
|
|
846
908
|
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
|
847
909
|
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
|
848
910
|
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
|
911
|
+
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
|
849
912
|
dnl aclocal-1.4 backwards compatibility:
|
850
913
|
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
|
851
914
|
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
|
852
915
|
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
|
853
916
|
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
|
917
|
+
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
|
854
918
|
|
855
919
|
|
856
920
|
# _LT_TAG_COMPILER
|
@@ -936,7 +1000,13 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
936
1000
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
937
1001
|
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
938
1002
|
_lt_result=$?
|
939
|
-
|
1003
|
+
# If there is a non-empty error log, and "single_module"
|
1004
|
+
# appears in it, assume the flag caused a linker warning
|
1005
|
+
if test -s conftest.err && $GREP single_module conftest.err; then
|
1006
|
+
cat conftest.err >&AS_MESSAGE_LOG_FD
|
1007
|
+
# Otherwise, if the output was created with a 0 exit code from
|
1008
|
+
# the compiler, it worked.
|
1009
|
+
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
|
940
1010
|
lt_cv_apple_cc_single_mod=yes
|
941
1011
|
else
|
942
1012
|
cat conftest.err >&AS_MESSAGE_LOG_FD
|
@@ -944,6 +1014,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
944
1014
|
rm -rf libconftest.dylib*
|
945
1015
|
rm -f conftest.*
|
946
1016
|
fi])
|
1017
|
+
|
947
1018
|
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
|
948
1019
|
[lt_cv_ld_exported_symbols_list],
|
949
1020
|
[lt_cv_ld_exported_symbols_list=no
|
@@ -955,6 +1026,34 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
955
1026
|
[lt_cv_ld_exported_symbols_list=no])
|
956
1027
|
LDFLAGS="$save_LDFLAGS"
|
957
1028
|
])
|
1029
|
+
|
1030
|
+
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
|
1031
|
+
[lt_cv_ld_force_load=no
|
1032
|
+
cat > conftest.c << _LT_EOF
|
1033
|
+
int forced_loaded() { return 2;}
|
1034
|
+
_LT_EOF
|
1035
|
+
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
|
1036
|
+
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
|
1037
|
+
echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
|
1038
|
+
$AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
|
1039
|
+
echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
|
1040
|
+
$RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
|
1041
|
+
cat > conftest.c << _LT_EOF
|
1042
|
+
int main() { return 0;}
|
1043
|
+
_LT_EOF
|
1044
|
+
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
|
1045
|
+
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
1046
|
+
_lt_result=$?
|
1047
|
+
if test -s conftest.err && $GREP force_load conftest.err; then
|
1048
|
+
cat conftest.err >&AS_MESSAGE_LOG_FD
|
1049
|
+
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
|
1050
|
+
lt_cv_ld_force_load=yes
|
1051
|
+
else
|
1052
|
+
cat conftest.err >&AS_MESSAGE_LOG_FD
|
1053
|
+
fi
|
1054
|
+
rm -f conftest.err libconftest.a conftest conftest.c
|
1055
|
+
rm -rf conftest.dSYM
|
1056
|
+
])
|
958
1057
|
case $host_os in
|
959
1058
|
rhapsody* | darwin1.[[012]])
|
960
1059
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
@@ -982,7 +1081,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
982
1081
|
else
|
983
1082
|
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
984
1083
|
fi
|
985
|
-
if test "$DSYMUTIL" != ":"; then
|
1084
|
+
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
|
986
1085
|
_lt_dsymutil='~$DSYMUTIL $lib || :'
|
987
1086
|
else
|
988
1087
|
_lt_dsymutil=
|
@@ -992,8 +1091,8 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
992
1091
|
])
|
993
1092
|
|
994
1093
|
|
995
|
-
# _LT_DARWIN_LINKER_FEATURES
|
996
|
-
#
|
1094
|
+
# _LT_DARWIN_LINKER_FEATURES([TAG])
|
1095
|
+
# ---------------------------------
|
997
1096
|
# Checks for linker and compiler features on darwin
|
998
1097
|
m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
999
1098
|
[
|
@@ -1002,7 +1101,13 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
1002
1101
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
1003
1102
|
_LT_TAGVAR(hardcode_automatic, $1)=yes
|
1004
1103
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
1005
|
-
|
1104
|
+
if test "$lt_cv_ld_force_load" = "yes"; then
|
1105
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
|
1106
|
+
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
|
1107
|
+
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
|
1108
|
+
else
|
1109
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
|
1110
|
+
fi
|
1006
1111
|
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
1007
1112
|
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
|
1008
1113
|
case $cc_basename in
|
@@ -1010,7 +1115,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
1010
1115
|
*) _lt_dar_can_shared=$GCC ;;
|
1011
1116
|
esac
|
1012
1117
|
if test "$_lt_dar_can_shared" = "yes"; then
|
1013
|
-
output_verbose_link_cmd=
|
1118
|
+
output_verbose_link_cmd=func_echo_all
|
1014
1119
|
_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
|
1015
1120
|
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
1016
1121
|
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
|
@@ -1026,203 +1131,142 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
1026
1131
|
fi
|
1027
1132
|
])
|
1028
1133
|
|
1029
|
-
# _LT_SYS_MODULE_PATH_AIX
|
1030
|
-
#
|
1134
|
+
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
|
1135
|
+
# ----------------------------------
|
1031
1136
|
# Links a minimal program and checks the executable
|
1032
1137
|
# for the system default hardcoded library path. In most cases,
|
1033
1138
|
# this is /usr/lib:/lib, but when the MPI compilers are used
|
1034
1139
|
# the location of the communication and MPI libs are included too.
|
1035
1140
|
# If we don't find anything, use the default library path according
|
1036
1141
|
# to the aix ld manual.
|
1142
|
+
# Store the results from the different compilers for each TAGNAME.
|
1143
|
+
# Allow to override them for all tags through lt_cv_aix_libpath.
|
1037
1144
|
m4_defun([_LT_SYS_MODULE_PATH_AIX],
|
1038
1145
|
[m4_require([_LT_DECL_SED])dnl
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1146
|
+
if test "${lt_cv_aix_libpath+set}" = set; then
|
1147
|
+
aix_libpath=$lt_cv_aix_libpath
|
1148
|
+
else
|
1149
|
+
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
|
1150
|
+
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
|
1151
|
+
lt_aix_libpath_sed='[
|
1152
|
+
/Import File Strings/,/^$/ {
|
1153
|
+
/^0/ {
|
1154
|
+
s/^0 *\([^ ]*\) *$/\1/
|
1155
|
+
p
|
1156
|
+
}
|
1157
|
+
}]'
|
1158
|
+
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
1159
|
+
# Check for a 64-bit object if we didn't find anything.
|
1160
|
+
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
|
1161
|
+
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
1162
|
+
fi],[])
|
1163
|
+
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
|
1164
|
+
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
|
1165
|
+
fi
|
1166
|
+
])
|
1167
|
+
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
|
1168
|
+
fi
|
1053
1169
|
])# _LT_SYS_MODULE_PATH_AIX
|
1054
1170
|
|
1055
1171
|
|
1056
1172
|
# _LT_SHELL_INIT(ARG)
|
1057
1173
|
# -------------------
|
1058
1174
|
m4_define([_LT_SHELL_INIT],
|
1059
|
-
[
|
1060
|
-
|
1061
|
-
|
1062
|
-
$1
|
1063
|
-
AC_DIVERT_POP
|
1064
|
-
])# _LT_SHELL_INIT
|
1175
|
+
[m4_divert_text([M4SH-INIT], [$1
|
1176
|
+
])])# _LT_SHELL_INIT
|
1177
|
+
|
1065
1178
|
|
1066
1179
|
|
1067
1180
|
# _LT_PROG_ECHO_BACKSLASH
|
1068
1181
|
# -----------------------
|
1069
|
-
#
|
1070
|
-
#
|
1182
|
+
# Find how we can fake an echo command that does not interpret backslash.
|
1183
|
+
# In particular, with Autoconf 2.60 or later we add some code to the start
|
1184
|
+
# of the generated configure script which will find a shell with a builtin
|
1185
|
+
# printf (which we can use as an echo command).
|
1071
1186
|
m4_defun([_LT_PROG_ECHO_BACKSLASH],
|
1072
|
-
[
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
ECHO=${lt_ECHO-echo}
|
1084
|
-
if test "X[$]1" = X--no-reexec; then
|
1085
|
-
# Discard the --no-reexec flag, and continue.
|
1086
|
-
shift
|
1087
|
-
elif test "X[$]1" = X--fallback-echo; then
|
1088
|
-
# Avoid inline document here, it may be left over
|
1089
|
-
:
|
1090
|
-
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
|
1091
|
-
# Yippee, $ECHO works!
|
1092
|
-
:
|
1187
|
+
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
1188
|
+
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
1189
|
+
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
1190
|
+
|
1191
|
+
AC_MSG_CHECKING([how to print strings])
|
1192
|
+
# Test print first, because it will be a builtin if present.
|
1193
|
+
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
1194
|
+
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
1195
|
+
ECHO='print -r --'
|
1196
|
+
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
1197
|
+
ECHO='printf %s\n'
|
1093
1198
|
else
|
1094
|
-
#
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
[$]*
|
1103
|
-
_LT_EOF
|
1104
|
-
exit 0
|
1199
|
+
# Use this function as a fallback that always works.
|
1200
|
+
func_fallback_echo ()
|
1201
|
+
{
|
1202
|
+
eval 'cat <<_LTECHO_EOF
|
1203
|
+
$[]1
|
1204
|
+
_LTECHO_EOF'
|
1205
|
+
}
|
1206
|
+
ECHO='func_fallback_echo'
|
1105
1207
|
fi
|
1106
1208
|
|
1107
|
-
#
|
1108
|
-
#
|
1109
|
-
(
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
# find a string as large as possible, as long as the shell can cope with it
|
1114
|
-
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
1115
|
-
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
1116
|
-
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
|
1117
|
-
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
|
1118
|
-
then
|
1119
|
-
break
|
1120
|
-
fi
|
1121
|
-
done
|
1122
|
-
fi
|
1123
|
-
|
1124
|
-
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
1125
|
-
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
1126
|
-
test "X$echo_testing_string" = "X$echo_test_string"; then
|
1127
|
-
:
|
1128
|
-
else
|
1129
|
-
# The Solaris, AIX, and Digital Unix default echo programs unquote
|
1130
|
-
# backslashes. This makes it impossible to quote backslashes using
|
1131
|
-
# echo "$something" | sed 's/\\/\\\\/g'
|
1132
|
-
#
|
1133
|
-
# So, first we look for a working echo in the user's PATH.
|
1134
|
-
|
1135
|
-
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
1136
|
-
for dir in $PATH /usr/ucb; do
|
1137
|
-
IFS="$lt_save_ifs"
|
1138
|
-
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
1139
|
-
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
1140
|
-
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
1141
|
-
test "X$echo_testing_string" = "X$echo_test_string"; then
|
1142
|
-
ECHO="$dir/echo"
|
1143
|
-
break
|
1144
|
-
fi
|
1145
|
-
done
|
1146
|
-
IFS="$lt_save_ifs"
|
1147
|
-
|
1148
|
-
if test "X$ECHO" = Xecho; then
|
1149
|
-
# We didn't find a better echo, so look for alternatives.
|
1150
|
-
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
|
1151
|
-
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
|
1152
|
-
test "X$echo_testing_string" = "X$echo_test_string"; then
|
1153
|
-
# This shell has a builtin print -r that does the trick.
|
1154
|
-
ECHO='print -r'
|
1155
|
-
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
|
1156
|
-
test "X$CONFIG_SHELL" != X/bin/ksh; then
|
1157
|
-
# If we have ksh, try running configure again with it.
|
1158
|
-
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
1159
|
-
export ORIGINAL_CONFIG_SHELL
|
1160
|
-
CONFIG_SHELL=/bin/ksh
|
1161
|
-
export CONFIG_SHELL
|
1162
|
-
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
1163
|
-
else
|
1164
|
-
# Try using printf.
|
1165
|
-
ECHO='printf %s\n'
|
1166
|
-
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
1167
|
-
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
1168
|
-
test "X$echo_testing_string" = "X$echo_test_string"; then
|
1169
|
-
# Cool, printf works
|
1170
|
-
:
|
1171
|
-
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
1172
|
-
test "X$echo_testing_string" = 'X\t' &&
|
1173
|
-
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
1174
|
-
test "X$echo_testing_string" = "X$echo_test_string"; then
|
1175
|
-
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
1176
|
-
export CONFIG_SHELL
|
1177
|
-
SHELL="$CONFIG_SHELL"
|
1178
|
-
export SHELL
|
1179
|
-
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
|
1180
|
-
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
1181
|
-
test "X$echo_testing_string" = 'X\t' &&
|
1182
|
-
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
1183
|
-
test "X$echo_testing_string" = "X$echo_test_string"; then
|
1184
|
-
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
|
1185
|
-
else
|
1186
|
-
# maybe with a smaller string...
|
1187
|
-
prev=:
|
1188
|
-
|
1189
|
-
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
1190
|
-
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
|
1191
|
-
then
|
1192
|
-
break
|
1193
|
-
fi
|
1194
|
-
prev="$cmd"
|
1195
|
-
done
|
1209
|
+
# func_echo_all arg...
|
1210
|
+
# Invoke $ECHO with all args, space-separated.
|
1211
|
+
func_echo_all ()
|
1212
|
+
{
|
1213
|
+
$ECHO "$*"
|
1214
|
+
}
|
1196
1215
|
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
# Oops. We lost completely, so just stick with echo.
|
1203
|
-
ECHO=echo
|
1204
|
-
fi
|
1205
|
-
fi
|
1206
|
-
fi
|
1207
|
-
fi
|
1208
|
-
fi
|
1209
|
-
fi
|
1216
|
+
case "$ECHO" in
|
1217
|
+
printf*) AC_MSG_RESULT([printf]) ;;
|
1218
|
+
print*) AC_MSG_RESULT([print -r]) ;;
|
1219
|
+
*) AC_MSG_RESULT([cat]) ;;
|
1220
|
+
esac
|
1210
1221
|
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1222
|
+
m4_ifdef([_AS_DETECT_SUGGESTED],
|
1223
|
+
[_AS_DETECT_SUGGESTED([
|
1224
|
+
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
|
1225
|
+
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
1226
|
+
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
1227
|
+
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
1228
|
+
PATH=/empty FPATH=/empty; export PATH FPATH
|
1229
|
+
test "X`printf %s $ECHO`" = "X$ECHO" \
|
1230
|
+
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
|
1217
1231
|
|
1218
|
-
AC_SUBST(lt_ECHO)
|
1219
|
-
])
|
1220
1232
|
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
|
1221
|
-
_LT_DECL([], [ECHO], [1],
|
1222
|
-
[An echo program that does not interpret backslashes])
|
1233
|
+
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
|
1223
1234
|
])# _LT_PROG_ECHO_BACKSLASH
|
1224
1235
|
|
1225
1236
|
|
1237
|
+
# _LT_WITH_SYSROOT
|
1238
|
+
# ----------------
|
1239
|
+
AC_DEFUN([_LT_WITH_SYSROOT],
|
1240
|
+
[AC_MSG_CHECKING([for sysroot])
|
1241
|
+
AC_ARG_WITH([sysroot],
|
1242
|
+
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
|
1243
|
+
(or the compiler's sysroot if not specified).],
|
1244
|
+
[], [with_sysroot=no])
|
1245
|
+
|
1246
|
+
dnl lt_sysroot will always be passed unquoted. We quote it here
|
1247
|
+
dnl in case the user passed a directory name.
|
1248
|
+
lt_sysroot=
|
1249
|
+
case ${with_sysroot} in #(
|
1250
|
+
yes)
|
1251
|
+
if test "$GCC" = yes; then
|
1252
|
+
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
1253
|
+
fi
|
1254
|
+
;; #(
|
1255
|
+
/*)
|
1256
|
+
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
1257
|
+
;; #(
|
1258
|
+
no|'')
|
1259
|
+
;; #(
|
1260
|
+
*)
|
1261
|
+
AC_MSG_RESULT([${with_sysroot}])
|
1262
|
+
AC_MSG_ERROR([The sysroot must be an absolute path.])
|
1263
|
+
;;
|
1264
|
+
esac
|
1265
|
+
|
1266
|
+
AC_MSG_RESULT([${lt_sysroot:-no}])
|
1267
|
+
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
|
1268
|
+
[dependent libraries, and in which our libraries should be installed.])])
|
1269
|
+
|
1226
1270
|
# _LT_ENABLE_LOCK
|
1227
1271
|
# ---------------
|
1228
1272
|
m4_defun([_LT_ENABLE_LOCK],
|
@@ -1251,7 +1295,7 @@ ia64-*-hpux*)
|
|
1251
1295
|
;;
|
1252
1296
|
*-*-irix6*)
|
1253
1297
|
# Find out which ABI we are using.
|
1254
|
-
echo '[#]line
|
1298
|
+
echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
|
1255
1299
|
if AC_TRY_EVAL(ac_compile); then
|
1256
1300
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
1257
1301
|
case `/usr/bin/file conftest.$ac_objext` in
|
@@ -1344,14 +1388,27 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
|
1344
1388
|
CFLAGS="$SAVE_CFLAGS"
|
1345
1389
|
fi
|
1346
1390
|
;;
|
1347
|
-
|
1391
|
+
*-*solaris*)
|
1348
1392
|
# Find out which ABI we are using.
|
1349
1393
|
echo 'int i;' > conftest.$ac_ext
|
1350
1394
|
if AC_TRY_EVAL(ac_compile); then
|
1351
1395
|
case `/usr/bin/file conftest.o` in
|
1352
1396
|
*64-bit*)
|
1353
1397
|
case $lt_cv_prog_gnu_ld in
|
1354
|
-
yes*)
|
1398
|
+
yes*)
|
1399
|
+
case $host in
|
1400
|
+
i?86-*-solaris*)
|
1401
|
+
LD="${LD-ld} -m elf_x86_64"
|
1402
|
+
;;
|
1403
|
+
sparc*-*-solaris*)
|
1404
|
+
LD="${LD-ld} -m elf64_sparc"
|
1405
|
+
;;
|
1406
|
+
esac
|
1407
|
+
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
1408
|
+
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
1409
|
+
LD="${LD-ld}_sol2"
|
1410
|
+
fi
|
1411
|
+
;;
|
1355
1412
|
*)
|
1356
1413
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
1357
1414
|
LD="${LD-ld} -64"
|
@@ -1369,14 +1426,47 @@ need_locks="$enable_libtool_lock"
|
|
1369
1426
|
])# _LT_ENABLE_LOCK
|
1370
1427
|
|
1371
1428
|
|
1429
|
+
# _LT_PROG_AR
|
1430
|
+
# -----------
|
1431
|
+
m4_defun([_LT_PROG_AR],
|
1432
|
+
[AC_CHECK_TOOLS(AR, [ar], false)
|
1433
|
+
: ${AR=ar}
|
1434
|
+
: ${AR_FLAGS=cru}
|
1435
|
+
_LT_DECL([], [AR], [1], [The archiver])
|
1436
|
+
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
|
1437
|
+
|
1438
|
+
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
|
1439
|
+
[lt_cv_ar_at_file=no
|
1440
|
+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
|
1441
|
+
[echo conftest.$ac_objext > conftest.lst
|
1442
|
+
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
|
1443
|
+
AC_TRY_EVAL([lt_ar_try])
|
1444
|
+
if test "$ac_status" -eq 0; then
|
1445
|
+
# Ensure the archiver fails upon bogus file names.
|
1446
|
+
rm -f conftest.$ac_objext libconftest.a
|
1447
|
+
AC_TRY_EVAL([lt_ar_try])
|
1448
|
+
if test "$ac_status" -ne 0; then
|
1449
|
+
lt_cv_ar_at_file=@
|
1450
|
+
fi
|
1451
|
+
fi
|
1452
|
+
rm -f conftest.* libconftest.a
|
1453
|
+
])
|
1454
|
+
])
|
1455
|
+
|
1456
|
+
if test "x$lt_cv_ar_at_file" = xno; then
|
1457
|
+
archiver_list_spec=
|
1458
|
+
else
|
1459
|
+
archiver_list_spec=$lt_cv_ar_at_file
|
1460
|
+
fi
|
1461
|
+
_LT_DECL([], [archiver_list_spec], [1],
|
1462
|
+
[How to feed a file listing to the archiver])
|
1463
|
+
])# _LT_PROG_AR
|
1464
|
+
|
1465
|
+
|
1372
1466
|
# _LT_CMD_OLD_ARCHIVE
|
1373
1467
|
# -------------------
|
1374
1468
|
m4_defun([_LT_CMD_OLD_ARCHIVE],
|
1375
|
-
[
|
1376
|
-
test -z "$AR" && AR=ar
|
1377
|
-
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
1378
|
-
_LT_DECL([], [AR], [1], [The archiver])
|
1379
|
-
_LT_DECL([], [AR_FLAGS], [1])
|
1469
|
+
[_LT_PROG_AR
|
1380
1470
|
|
1381
1471
|
AC_CHECK_TOOL(STRIP, strip, :)
|
1382
1472
|
test -z "$STRIP" && STRIP=:
|
@@ -1395,18 +1485,27 @@ old_postuninstall_cmds=
|
|
1395
1485
|
if test -n "$RANLIB"; then
|
1396
1486
|
case $host_os in
|
1397
1487
|
openbsd*)
|
1398
|
-
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$
|
1488
|
+
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
1399
1489
|
;;
|
1400
1490
|
*)
|
1401
|
-
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$
|
1491
|
+
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
1402
1492
|
;;
|
1403
1493
|
esac
|
1404
|
-
old_archive_cmds="$old_archive_cmds~\$RANLIB \$
|
1494
|
+
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
1405
1495
|
fi
|
1496
|
+
|
1497
|
+
case $host_os in
|
1498
|
+
darwin*)
|
1499
|
+
lock_old_archive_extraction=yes ;;
|
1500
|
+
*)
|
1501
|
+
lock_old_archive_extraction=no ;;
|
1502
|
+
esac
|
1406
1503
|
_LT_DECL([], [old_postinstall_cmds], [2])
|
1407
1504
|
_LT_DECL([], [old_postuninstall_cmds], [2])
|
1408
1505
|
_LT_TAGDECL([], [old_archive_cmds], [2],
|
1409
1506
|
[Commands used to build an old-style archive])
|
1507
|
+
_LT_DECL([], [lock_old_archive_extraction], [0],
|
1508
|
+
[Whether to use a lock for old archive extraction])
|
1410
1509
|
])# _LT_CMD_OLD_ARCHIVE
|
1411
1510
|
|
1412
1511
|
|
@@ -1431,15 +1530,15 @@ AC_CACHE_CHECK([$1], [$2],
|
|
1431
1530
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
1432
1531
|
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
1433
1532
|
-e 's:$: $lt_compiler_flag:'`
|
1434
|
-
(eval echo "\"\$as_me:
|
1533
|
+
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
1435
1534
|
(eval "$lt_compile" 2>conftest.err)
|
1436
1535
|
ac_status=$?
|
1437
1536
|
cat conftest.err >&AS_MESSAGE_LOG_FD
|
1438
|
-
echo "$as_me:
|
1537
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
1439
1538
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
1440
1539
|
# The compiler can only warn and ignore the option if not recognized
|
1441
1540
|
# So say no if there are warnings other than the usual output.
|
1442
|
-
$ECHO "
|
1541
|
+
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
1443
1542
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
1444
1543
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
1445
1544
|
$2=yes
|
@@ -1479,7 +1578,7 @@ AC_CACHE_CHECK([$1], [$2],
|
|
1479
1578
|
if test -s conftest.err; then
|
1480
1579
|
# Append any errors to the config.log.
|
1481
1580
|
cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
1482
|
-
$ECHO "
|
1581
|
+
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
1483
1582
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
1484
1583
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
1485
1584
|
$2=yes
|
@@ -1542,6 +1641,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
|
1542
1641
|
lt_cv_sys_max_cmd_len=8192;
|
1543
1642
|
;;
|
1544
1643
|
|
1644
|
+
mint*)
|
1645
|
+
# On MiNT this can take a long time and run out of memory.
|
1646
|
+
lt_cv_sys_max_cmd_len=8192;
|
1647
|
+
;;
|
1648
|
+
|
1545
1649
|
amigaos*)
|
1546
1650
|
# On AmigaOS with pdksh, this test takes hours, literally.
|
1547
1651
|
# So we just punt and use a minimum line length of 8192.
|
@@ -1567,6 +1671,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
|
1567
1671
|
lt_cv_sys_max_cmd_len=196608
|
1568
1672
|
;;
|
1569
1673
|
|
1674
|
+
os2*)
|
1675
|
+
# The test takes a long time on OS/2.
|
1676
|
+
lt_cv_sys_max_cmd_len=8192
|
1677
|
+
;;
|
1678
|
+
|
1570
1679
|
osf*)
|
1571
1680
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
1572
1681
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
@@ -1606,8 +1715,8 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
|
1606
1715
|
# If test is not a shell built-in, we'll probably end up computing a
|
1607
1716
|
# maximum length that is only half of the actual maximum length, but
|
1608
1717
|
# we can't tell.
|
1609
|
-
while { test "X"
|
1610
|
-
= "
|
1718
|
+
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
|
1719
|
+
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
1611
1720
|
test $i != 17 # 1/2 MB should be enough
|
1612
1721
|
do
|
1613
1722
|
i=`expr $i + 1`
|
@@ -1658,7 +1767,7 @@ else
|
|
1658
1767
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
1659
1768
|
lt_status=$lt_dlunknown
|
1660
1769
|
cat > conftest.$ac_ext <<_LT_EOF
|
1661
|
-
[#line
|
1770
|
+
[#line $LINENO "configure"
|
1662
1771
|
#include "confdefs.h"
|
1663
1772
|
|
1664
1773
|
#if HAVE_DLFCN_H
|
@@ -1699,7 +1808,13 @@ else
|
|
1699
1808
|
# endif
|
1700
1809
|
#endif
|
1701
1810
|
|
1702
|
-
|
1811
|
+
/* When -fvisbility=hidden is used, assume the code has been annotated
|
1812
|
+
correspondingly for the symbols needed. */
|
1813
|
+
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
1814
|
+
int fnord () __attribute__((visibility("default")));
|
1815
|
+
#endif
|
1816
|
+
|
1817
|
+
int fnord () { return 42; }
|
1703
1818
|
int main ()
|
1704
1819
|
{
|
1705
1820
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
@@ -1708,7 +1823,11 @@ int main ()
|
|
1708
1823
|
if (self)
|
1709
1824
|
{
|
1710
1825
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
1711
|
-
else
|
1826
|
+
else
|
1827
|
+
{
|
1828
|
+
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
1829
|
+
else puts (dlerror ());
|
1830
|
+
}
|
1712
1831
|
/* dlclose (self); */
|
1713
1832
|
}
|
1714
1833
|
else
|
@@ -1884,16 +2003,16 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
|
1884
2003
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
1885
2004
|
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
1886
2005
|
-e 's:$: $lt_compiler_flag:'`
|
1887
|
-
(eval echo "\"\$as_me:
|
2006
|
+
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
1888
2007
|
(eval "$lt_compile" 2>out/conftest.err)
|
1889
2008
|
ac_status=$?
|
1890
2009
|
cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
1891
|
-
echo "$as_me:
|
2010
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
1892
2011
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
1893
2012
|
then
|
1894
2013
|
# The compiler can only warn and ignore the option if not recognized
|
1895
2014
|
# So say no if there are warnings
|
1896
|
-
$ECHO "
|
2015
|
+
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
1897
2016
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
1898
2017
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
1899
2018
|
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
@@ -2052,6 +2171,7 @@ m4_require([_LT_DECL_EGREP])dnl
|
|
2052
2171
|
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
2053
2172
|
m4_require([_LT_DECL_OBJDUMP])dnl
|
2054
2173
|
m4_require([_LT_DECL_SED])dnl
|
2174
|
+
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
2055
2175
|
AC_MSG_CHECKING([dynamic linker characteristics])
|
2056
2176
|
m4_if([$1],
|
2057
2177
|
[], [
|
@@ -2060,16 +2180,23 @@ if test "$GCC" = yes; then
|
|
2060
2180
|
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
2061
2181
|
*) lt_awk_arg="/^libraries:/" ;;
|
2062
2182
|
esac
|
2063
|
-
|
2064
|
-
|
2183
|
+
case $host_os in
|
2184
|
+
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
|
2185
|
+
*) lt_sed_strip_eq="s,=/,/,g" ;;
|
2186
|
+
esac
|
2187
|
+
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
2188
|
+
case $lt_search_path_spec in
|
2189
|
+
*\;*)
|
2065
2190
|
# if the path contains ";" then we assume it to be the separator
|
2066
2191
|
# otherwise default to the standard path separator (i.e. ":") - it is
|
2067
2192
|
# assumed that no part of a normal pathname contains ";" but that should
|
2068
2193
|
# okay in the real world where ";" in dirpaths is itself problematic.
|
2069
|
-
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2194
|
+
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
2195
|
+
;;
|
2196
|
+
*)
|
2197
|
+
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
2198
|
+
;;
|
2199
|
+
esac
|
2073
2200
|
# Ok, now we have the path, separated by spaces, we can step through it
|
2074
2201
|
# and add multilib dir if necessary.
|
2075
2202
|
lt_tmp_lt_search_path_spec=
|
@@ -2082,7 +2209,7 @@ if test "$GCC" = yes; then
|
|
2082
2209
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
2083
2210
|
fi
|
2084
2211
|
done
|
2085
|
-
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
|
2212
|
+
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
2086
2213
|
BEGIN {RS=" "; FS="/|\n";} {
|
2087
2214
|
lt_foo="";
|
2088
2215
|
lt_count=0;
|
@@ -2102,7 +2229,13 @@ BEGIN {RS=" "; FS="/|\n";} {
|
|
2102
2229
|
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
|
2103
2230
|
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
|
2104
2231
|
}'`
|
2105
|
-
|
2232
|
+
# AWK program above erroneously prepends '/' to C:/dos/paths
|
2233
|
+
# for these hosts.
|
2234
|
+
case $host_os in
|
2235
|
+
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
2236
|
+
$SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
|
2237
|
+
esac
|
2238
|
+
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
2106
2239
|
else
|
2107
2240
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
2108
2241
|
fi])
|
@@ -2128,7 +2261,7 @@ need_version=unknown
|
|
2128
2261
|
|
2129
2262
|
case $host_os in
|
2130
2263
|
aix3*)
|
2131
|
-
version_type=linux
|
2264
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2132
2265
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
2133
2266
|
shlibpath_var=LIBPATH
|
2134
2267
|
|
@@ -2137,7 +2270,7 @@ aix3*)
|
|
2137
2270
|
;;
|
2138
2271
|
|
2139
2272
|
aix[[4-9]]*)
|
2140
|
-
version_type=linux
|
2273
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2141
2274
|
need_lib_prefix=no
|
2142
2275
|
need_version=no
|
2143
2276
|
hardcode_into_libs=yes
|
@@ -2190,7 +2323,7 @@ amigaos*)
|
|
2190
2323
|
m68k)
|
2191
2324
|
library_names_spec='$libname.ixlibrary $libname.a'
|
2192
2325
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
2193
|
-
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname
|
2326
|
+
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
|
2194
2327
|
;;
|
2195
2328
|
esac
|
2196
2329
|
;;
|
@@ -2202,7 +2335,7 @@ beos*)
|
|
2202
2335
|
;;
|
2203
2336
|
|
2204
2337
|
bsdi[[45]]*)
|
2205
|
-
version_type=linux
|
2338
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2206
2339
|
need_version=no
|
2207
2340
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2208
2341
|
soname_spec='${libname}${release}${shared_ext}$major'
|
@@ -2221,8 +2354,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
2221
2354
|
need_version=no
|
2222
2355
|
need_lib_prefix=no
|
2223
2356
|
|
2224
|
-
case $GCC,$
|
2225
|
-
yes
|
2357
|
+
case $GCC,$cc_basename in
|
2358
|
+
yes,*)
|
2359
|
+
# gcc
|
2226
2360
|
library_names_spec='$libname.dll.a'
|
2227
2361
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
2228
2362
|
postinstall_cmds='base_file=`basename \${file}`~
|
@@ -2243,36 +2377,83 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
2243
2377
|
cygwin*)
|
2244
2378
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
2245
2379
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
2246
|
-
|
2380
|
+
m4_if([$1], [],[
|
2381
|
+
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
|
2247
2382
|
;;
|
2248
2383
|
mingw* | cegcc*)
|
2249
2384
|
# MinGW DLLs use traditional 'lib' prefix
|
2250
2385
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
2251
|
-
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
2252
|
-
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
|
2253
|
-
# It is most probably a Windows format PATH printed by
|
2254
|
-
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
2255
|
-
# path with ; separators, and with drive letters. We can handle the
|
2256
|
-
# drive letters (cygwin fileutils understands them), so leave them,
|
2257
|
-
# especially as we might pass files found there to a mingw objdump,
|
2258
|
-
# which wouldn't understand a cygwinified path. Ahh.
|
2259
|
-
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
2260
|
-
else
|
2261
|
-
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
2262
|
-
fi
|
2263
2386
|
;;
|
2264
2387
|
pw32*)
|
2265
2388
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
2266
2389
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
2267
2390
|
;;
|
2268
2391
|
esac
|
2392
|
+
dynamic_linker='Win32 ld.exe'
|
2393
|
+
;;
|
2394
|
+
|
2395
|
+
*,cl*)
|
2396
|
+
# Native MSVC
|
2397
|
+
libname_spec='$name'
|
2398
|
+
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
2399
|
+
library_names_spec='${libname}.dll.lib'
|
2400
|
+
|
2401
|
+
case $build_os in
|
2402
|
+
mingw*)
|
2403
|
+
sys_lib_search_path_spec=
|
2404
|
+
lt_save_ifs=$IFS
|
2405
|
+
IFS=';'
|
2406
|
+
for lt_path in $LIB
|
2407
|
+
do
|
2408
|
+
IFS=$lt_save_ifs
|
2409
|
+
# Let DOS variable expansion print the short 8.3 style file name.
|
2410
|
+
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
2411
|
+
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
2412
|
+
done
|
2413
|
+
IFS=$lt_save_ifs
|
2414
|
+
# Convert to MSYS style.
|
2415
|
+
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
|
2416
|
+
;;
|
2417
|
+
cygwin*)
|
2418
|
+
# Convert to unix form, then to dos form, then back to unix form
|
2419
|
+
# but this time dos style (no spaces!) so that the unix form looks
|
2420
|
+
# like /cygdrive/c/PROGRA~1:/cygdr...
|
2421
|
+
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
2422
|
+
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
2423
|
+
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
2424
|
+
;;
|
2425
|
+
*)
|
2426
|
+
sys_lib_search_path_spec="$LIB"
|
2427
|
+
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
|
2428
|
+
# It is most probably a Windows format PATH.
|
2429
|
+
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
2430
|
+
else
|
2431
|
+
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
2432
|
+
fi
|
2433
|
+
# FIXME: find the short name or the path components, as spaces are
|
2434
|
+
# common. (e.g. "Program Files" -> "PROGRA~1")
|
2435
|
+
;;
|
2436
|
+
esac
|
2437
|
+
|
2438
|
+
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
2439
|
+
postinstall_cmds='base_file=`basename \${file}`~
|
2440
|
+
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
2441
|
+
dldir=$destdir/`dirname \$dlpath`~
|
2442
|
+
test -d \$dldir || mkdir -p \$dldir~
|
2443
|
+
$install_prog $dir/$dlname \$dldir/$dlname'
|
2444
|
+
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
2445
|
+
dlpath=$dir/\$dldll~
|
2446
|
+
$RM \$dlpath'
|
2447
|
+
shlibpath_overrides_runpath=yes
|
2448
|
+
dynamic_linker='Win32 link.exe'
|
2269
2449
|
;;
|
2270
2450
|
|
2271
2451
|
*)
|
2452
|
+
# Assume MSVC wrapper
|
2272
2453
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
2454
|
+
dynamic_linker='Win32 ld.exe'
|
2273
2455
|
;;
|
2274
2456
|
esac
|
2275
|
-
dynamic_linker='Win32 ld.exe'
|
2276
2457
|
# FIXME: first we should search . and the directory the executable is in
|
2277
2458
|
shlibpath_var=PATH
|
2278
2459
|
;;
|
@@ -2293,7 +2474,7 @@ m4_if([$1], [],[
|
|
2293
2474
|
;;
|
2294
2475
|
|
2295
2476
|
dgux*)
|
2296
|
-
version_type=linux
|
2477
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2297
2478
|
need_lib_prefix=no
|
2298
2479
|
need_version=no
|
2299
2480
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
@@ -2301,10 +2482,6 @@ dgux*)
|
|
2301
2482
|
shlibpath_var=LD_LIBRARY_PATH
|
2302
2483
|
;;
|
2303
2484
|
|
2304
|
-
freebsd1*)
|
2305
|
-
dynamic_linker=no
|
2306
|
-
;;
|
2307
|
-
|
2308
2485
|
freebsd* | dragonfly*)
|
2309
2486
|
# DragonFly does not have aout. When/if they implement a new
|
2310
2487
|
# versioning mechanism, adjust this.
|
@@ -2312,7 +2489,7 @@ freebsd* | dragonfly*)
|
|
2312
2489
|
objformat=`/usr/bin/objformat`
|
2313
2490
|
else
|
2314
2491
|
case $host_os in
|
2315
|
-
freebsd[[
|
2492
|
+
freebsd[[23]].*) objformat=aout ;;
|
2316
2493
|
*) objformat=elf ;;
|
2317
2494
|
esac
|
2318
2495
|
fi
|
@@ -2330,7 +2507,7 @@ freebsd* | dragonfly*)
|
|
2330
2507
|
esac
|
2331
2508
|
shlibpath_var=LD_LIBRARY_PATH
|
2332
2509
|
case $host_os in
|
2333
|
-
freebsd2
|
2510
|
+
freebsd2.*)
|
2334
2511
|
shlibpath_overrides_runpath=yes
|
2335
2512
|
;;
|
2336
2513
|
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
@@ -2349,13 +2526,16 @@ freebsd* | dragonfly*)
|
|
2349
2526
|
esac
|
2350
2527
|
;;
|
2351
2528
|
|
2352
|
-
|
2353
|
-
version_type=linux
|
2529
|
+
haiku*)
|
2530
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2354
2531
|
need_lib_prefix=no
|
2355
2532
|
need_version=no
|
2533
|
+
dynamic_linker="$host_os runtime_loader"
|
2356
2534
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
2357
2535
|
soname_spec='${libname}${release}${shared_ext}$major'
|
2358
|
-
shlibpath_var=
|
2536
|
+
shlibpath_var=LIBRARY_PATH
|
2537
|
+
shlibpath_overrides_runpath=yes
|
2538
|
+
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
2359
2539
|
hardcode_into_libs=yes
|
2360
2540
|
;;
|
2361
2541
|
|
@@ -2401,12 +2581,14 @@ hpux9* | hpux10* | hpux11*)
|
|
2401
2581
|
soname_spec='${libname}${release}${shared_ext}$major'
|
2402
2582
|
;;
|
2403
2583
|
esac
|
2404
|
-
# HP-UX runs *really* slowly unless shared libraries are mode 555
|
2584
|
+
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
2405
2585
|
postinstall_cmds='chmod 555 $lib'
|
2586
|
+
# or fails outright, so override atomically:
|
2587
|
+
install_override_mode=555
|
2406
2588
|
;;
|
2407
2589
|
|
2408
2590
|
interix[[3-9]]*)
|
2409
|
-
version_type=linux
|
2591
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2410
2592
|
need_lib_prefix=no
|
2411
2593
|
need_version=no
|
2412
2594
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
@@ -2422,7 +2604,7 @@ irix5* | irix6* | nonstopux*)
|
|
2422
2604
|
nonstopux*) version_type=nonstopux ;;
|
2423
2605
|
*)
|
2424
2606
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
2425
|
-
version_type=linux
|
2607
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2426
2608
|
else
|
2427
2609
|
version_type=irix
|
2428
2610
|
fi ;;
|
@@ -2459,9 +2641,9 @@ linux*oldld* | linux*aout* | linux*coff*)
|
|
2459
2641
|
dynamic_linker=no
|
2460
2642
|
;;
|
2461
2643
|
|
2462
|
-
# This must be
|
2463
|
-
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
2464
|
-
version_type=linux
|
2644
|
+
# This must be glibc/ELF.
|
2645
|
+
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
2646
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2465
2647
|
need_lib_prefix=no
|
2466
2648
|
need_version=no
|
2467
2649
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
@@ -2469,16 +2651,21 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
2469
2651
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
2470
2652
|
shlibpath_var=LD_LIBRARY_PATH
|
2471
2653
|
shlibpath_overrides_runpath=no
|
2654
|
+
|
2472
2655
|
# Some binutils ld are patched to set DT_RUNPATH
|
2473
|
-
|
2474
|
-
|
2475
|
-
|
2476
|
-
|
2477
|
-
|
2478
|
-
|
2479
|
-
|
2480
|
-
|
2481
|
-
|
2656
|
+
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
|
2657
|
+
[lt_cv_shlibpath_overrides_runpath=no
|
2658
|
+
save_LDFLAGS=$LDFLAGS
|
2659
|
+
save_libdir=$libdir
|
2660
|
+
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
|
2661
|
+
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
|
2662
|
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
2663
|
+
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
|
2664
|
+
[lt_cv_shlibpath_overrides_runpath=yes])])
|
2665
|
+
LDFLAGS=$save_LDFLAGS
|
2666
|
+
libdir=$save_libdir
|
2667
|
+
])
|
2668
|
+
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
2482
2669
|
|
2483
2670
|
# This implies no fast_install, which is unacceptable.
|
2484
2671
|
# Some rework will be needed to allow for fast_install
|
@@ -2487,7 +2674,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
2487
2674
|
|
2488
2675
|
# Append ld.so.conf contents to the search path
|
2489
2676
|
if test -f /etc/ld.so.conf; then
|
2490
|
-
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
2677
|
+
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
2491
2678
|
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
2492
2679
|
fi
|
2493
2680
|
|
@@ -2531,7 +2718,7 @@ netbsd*)
|
|
2531
2718
|
;;
|
2532
2719
|
|
2533
2720
|
newsos6)
|
2534
|
-
version_type=linux
|
2721
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2535
2722
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2536
2723
|
shlibpath_var=LD_LIBRARY_PATH
|
2537
2724
|
shlibpath_overrides_runpath=yes
|
@@ -2600,7 +2787,7 @@ rdos*)
|
|
2600
2787
|
;;
|
2601
2788
|
|
2602
2789
|
solaris*)
|
2603
|
-
version_type=linux
|
2790
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2604
2791
|
need_lib_prefix=no
|
2605
2792
|
need_version=no
|
2606
2793
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
@@ -2625,7 +2812,7 @@ sunos4*)
|
|
2625
2812
|
;;
|
2626
2813
|
|
2627
2814
|
sysv4 | sysv4.3*)
|
2628
|
-
version_type=linux
|
2815
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2629
2816
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2630
2817
|
soname_spec='${libname}${release}${shared_ext}$major'
|
2631
2818
|
shlibpath_var=LD_LIBRARY_PATH
|
@@ -2649,7 +2836,7 @@ sysv4 | sysv4.3*)
|
|
2649
2836
|
|
2650
2837
|
sysv4*MP*)
|
2651
2838
|
if test -d /usr/nec ;then
|
2652
|
-
version_type=linux
|
2839
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2653
2840
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
2654
2841
|
soname_spec='$libname${shared_ext}.$major'
|
2655
2842
|
shlibpath_var=LD_LIBRARY_PATH
|
@@ -2680,7 +2867,7 @@ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
2680
2867
|
|
2681
2868
|
tpf*)
|
2682
2869
|
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
2683
|
-
version_type=linux
|
2870
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2684
2871
|
need_lib_prefix=no
|
2685
2872
|
need_version=no
|
2686
2873
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
@@ -2690,7 +2877,7 @@ tpf*)
|
|
2690
2877
|
;;
|
2691
2878
|
|
2692
2879
|
uts4*)
|
2693
|
-
version_type=linux
|
2880
|
+
version_type=linux # correct to gnu/linux during the next big refactor
|
2694
2881
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
2695
2882
|
soname_spec='${libname}${release}${shared_ext}$major'
|
2696
2883
|
shlibpath_var=LD_LIBRARY_PATH
|
@@ -2732,6 +2919,8 @@ _LT_DECL([], [library_names_spec], [1],
|
|
2732
2919
|
The last name is the one that the linker finds with -lNAME]])
|
2733
2920
|
_LT_DECL([], [soname_spec], [1],
|
2734
2921
|
[[The coded name of the library, if different from the real name]])
|
2922
|
+
_LT_DECL([], [install_override_mode], [1],
|
2923
|
+
[Permission mode override for installation of shared libraries])
|
2735
2924
|
_LT_DECL([], [postinstall_cmds], [2],
|
2736
2925
|
[Command to use after installation of a shared archive])
|
2737
2926
|
_LT_DECL([], [postuninstall_cmds], [2],
|
@@ -2844,6 +3033,7 @@ AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
2844
3033
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
2845
3034
|
m4_require([_LT_DECL_SED])dnl
|
2846
3035
|
m4_require([_LT_DECL_EGREP])dnl
|
3036
|
+
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
|
2847
3037
|
|
2848
3038
|
AC_ARG_WITH([gnu-ld],
|
2849
3039
|
[AS_HELP_STRING([--with-gnu-ld],
|
@@ -2965,6 +3155,11 @@ case $reload_flag in
|
|
2965
3155
|
esac
|
2966
3156
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
2967
3157
|
case $host_os in
|
3158
|
+
cygwin* | mingw* | pw32* | cegcc*)
|
3159
|
+
if test "$GCC" != yes; then
|
3160
|
+
reload_cmds=false
|
3161
|
+
fi
|
3162
|
+
;;
|
2968
3163
|
darwin*)
|
2969
3164
|
if test "$GCC" = yes; then
|
2970
3165
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
@@ -2973,8 +3168,8 @@ case $host_os in
|
|
2973
3168
|
fi
|
2974
3169
|
;;
|
2975
3170
|
esac
|
2976
|
-
|
2977
|
-
|
3171
|
+
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
|
3172
|
+
_LT_TAGDECL([], [reload_cmds], [2])dnl
|
2978
3173
|
])# _LT_CMD_RELOAD
|
2979
3174
|
|
2980
3175
|
|
@@ -3026,16 +3221,18 @@ mingw* | pw32*)
|
|
3026
3221
|
# Base MSYS/MinGW do not provide the 'file' command needed by
|
3027
3222
|
# func_win32_libid shell function, so use a weaker test based on 'objdump',
|
3028
3223
|
# unless we find 'file', for example because we are cross-compiling.
|
3029
|
-
|
3224
|
+
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
|
3225
|
+
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
|
3030
3226
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
3031
3227
|
lt_cv_file_magic_cmd='func_win32_libid'
|
3032
3228
|
else
|
3033
|
-
|
3229
|
+
# Keep this pattern in sync with the one in func_win32_libid.
|
3230
|
+
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
3034
3231
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
3035
3232
|
fi
|
3036
3233
|
;;
|
3037
3234
|
|
3038
|
-
cegcc)
|
3235
|
+
cegcc*)
|
3039
3236
|
# use the weaker test based on 'objdump'. See mingw*.
|
3040
3237
|
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
3041
3238
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
@@ -3061,7 +3258,7 @@ freebsd* | dragonfly*)
|
|
3061
3258
|
fi
|
3062
3259
|
;;
|
3063
3260
|
|
3064
|
-
|
3261
|
+
haiku*)
|
3065
3262
|
lt_cv_deplibs_check_method=pass_all
|
3066
3263
|
;;
|
3067
3264
|
|
@@ -3073,11 +3270,11 @@ hpux10.20* | hpux11*)
|
|
3073
3270
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
3074
3271
|
;;
|
3075
3272
|
hppa*64*)
|
3076
|
-
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9]
|
3273
|
+
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
|
3077
3274
|
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
3078
3275
|
;;
|
3079
3276
|
*)
|
3080
|
-
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]
|
3277
|
+
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
|
3081
3278
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
3082
3279
|
;;
|
3083
3280
|
esac
|
@@ -3098,8 +3295,8 @@ irix5* | irix6* | nonstopux*)
|
|
3098
3295
|
lt_cv_deplibs_check_method=pass_all
|
3099
3296
|
;;
|
3100
3297
|
|
3101
|
-
# This must be
|
3102
|
-
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
3298
|
+
# This must be glibc/ELF.
|
3299
|
+
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
3103
3300
|
lt_cv_deplibs_check_method=pass_all
|
3104
3301
|
;;
|
3105
3302
|
|
@@ -3177,6 +3374,21 @@ tpf*)
|
|
3177
3374
|
;;
|
3178
3375
|
esac
|
3179
3376
|
])
|
3377
|
+
|
3378
|
+
file_magic_glob=
|
3379
|
+
want_nocaseglob=no
|
3380
|
+
if test "$build" = "$host"; then
|
3381
|
+
case $host_os in
|
3382
|
+
mingw* | pw32*)
|
3383
|
+
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
3384
|
+
want_nocaseglob=yes
|
3385
|
+
else
|
3386
|
+
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
|
3387
|
+
fi
|
3388
|
+
;;
|
3389
|
+
esac
|
3390
|
+
fi
|
3391
|
+
|
3180
3392
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
3181
3393
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
3182
3394
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
@@ -3184,7 +3396,11 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
3184
3396
|
_LT_DECL([], [deplibs_check_method], [1],
|
3185
3397
|
[Method to check whether dependent libraries are shared objects])
|
3186
3398
|
_LT_DECL([], [file_magic_cmd], [1],
|
3187
|
-
[Command to use when deplibs_check_method
|
3399
|
+
[Command to use when deplibs_check_method = "file_magic"])
|
3400
|
+
_LT_DECL([], [file_magic_glob], [1],
|
3401
|
+
[How to find potential files when deplibs_check_method = "file_magic"])
|
3402
|
+
_LT_DECL([], [want_nocaseglob], [1],
|
3403
|
+
[Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
|
3188
3404
|
])# _LT_CHECK_MAGIC_METHOD
|
3189
3405
|
|
3190
3406
|
|
@@ -3241,7 +3457,19 @@ if test "$lt_cv_path_NM" != "no"; then
|
|
3241
3457
|
NM="$lt_cv_path_NM"
|
3242
3458
|
else
|
3243
3459
|
# Didn't find any BSD compatible name lister, look for dumpbin.
|
3244
|
-
|
3460
|
+
if test -n "$DUMPBIN"; then :
|
3461
|
+
# Let the user override the test.
|
3462
|
+
else
|
3463
|
+
AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
|
3464
|
+
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
|
3465
|
+
*COFF*)
|
3466
|
+
DUMPBIN="$DUMPBIN -symbols"
|
3467
|
+
;;
|
3468
|
+
*)
|
3469
|
+
DUMPBIN=:
|
3470
|
+
;;
|
3471
|
+
esac
|
3472
|
+
fi
|
3245
3473
|
AC_SUBST([DUMPBIN])
|
3246
3474
|
if test "$DUMPBIN" != ":"; then
|
3247
3475
|
NM="$DUMPBIN"
|
@@ -3254,13 +3482,13 @@ _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
|
|
3254
3482
|
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
|
3255
3483
|
[lt_cv_nm_interface="BSD nm"
|
3256
3484
|
echo "int some_variable = 0;" > conftest.$ac_ext
|
3257
|
-
(eval echo "\"\$as_me:
|
3485
|
+
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
|
3258
3486
|
(eval "$ac_compile" 2>conftest.err)
|
3259
3487
|
cat conftest.err >&AS_MESSAGE_LOG_FD
|
3260
|
-
(eval echo "\"\$as_me:
|
3488
|
+
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
|
3261
3489
|
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
3262
3490
|
cat conftest.err >&AS_MESSAGE_LOG_FD
|
3263
|
-
(eval echo "\"\$as_me:
|
3491
|
+
(eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
|
3264
3492
|
cat conftest.out >&AS_MESSAGE_LOG_FD
|
3265
3493
|
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
3266
3494
|
lt_cv_nm_interface="MS dumpbin"
|
@@ -3275,6 +3503,67 @@ dnl aclocal-1.4 backwards compatibility:
|
|
3275
3503
|
dnl AC_DEFUN([AM_PROG_NM], [])
|
3276
3504
|
dnl AC_DEFUN([AC_PROG_NM], [])
|
3277
3505
|
|
3506
|
+
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
|
3507
|
+
# --------------------------------
|
3508
|
+
# how to determine the name of the shared library
|
3509
|
+
# associated with a specific link library.
|
3510
|
+
# -- PORTME fill in with the dynamic library characteristics
|
3511
|
+
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
|
3512
|
+
[m4_require([_LT_DECL_EGREP])
|
3513
|
+
m4_require([_LT_DECL_OBJDUMP])
|
3514
|
+
m4_require([_LT_DECL_DLLTOOL])
|
3515
|
+
AC_CACHE_CHECK([how to associate runtime and link libraries],
|
3516
|
+
lt_cv_sharedlib_from_linklib_cmd,
|
3517
|
+
[lt_cv_sharedlib_from_linklib_cmd='unknown'
|
3518
|
+
|
3519
|
+
case $host_os in
|
3520
|
+
cygwin* | mingw* | pw32* | cegcc*)
|
3521
|
+
# two different shell functions defined in ltmain.sh
|
3522
|
+
# decide which to use based on capabilities of $DLLTOOL
|
3523
|
+
case `$DLLTOOL --help 2>&1` in
|
3524
|
+
*--identify-strict*)
|
3525
|
+
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
3526
|
+
;;
|
3527
|
+
*)
|
3528
|
+
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
3529
|
+
;;
|
3530
|
+
esac
|
3531
|
+
;;
|
3532
|
+
*)
|
3533
|
+
# fallback: assume linklib IS sharedlib
|
3534
|
+
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
3535
|
+
;;
|
3536
|
+
esac
|
3537
|
+
])
|
3538
|
+
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
3539
|
+
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
3540
|
+
|
3541
|
+
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
|
3542
|
+
[Command to associate shared and link libraries])
|
3543
|
+
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
|
3544
|
+
|
3545
|
+
|
3546
|
+
# _LT_PATH_MANIFEST_TOOL
|
3547
|
+
# ----------------------
|
3548
|
+
# locate the manifest tool
|
3549
|
+
m4_defun([_LT_PATH_MANIFEST_TOOL],
|
3550
|
+
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
|
3551
|
+
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
3552
|
+
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
|
3553
|
+
[lt_cv_path_mainfest_tool=no
|
3554
|
+
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
|
3555
|
+
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
3556
|
+
cat conftest.err >&AS_MESSAGE_LOG_FD
|
3557
|
+
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
3558
|
+
lt_cv_path_mainfest_tool=yes
|
3559
|
+
fi
|
3560
|
+
rm -f conftest*])
|
3561
|
+
if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
3562
|
+
MANIFEST_TOOL=:
|
3563
|
+
fi
|
3564
|
+
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
|
3565
|
+
])# _LT_PATH_MANIFEST_TOOL
|
3566
|
+
|
3278
3567
|
|
3279
3568
|
# LT_LIB_M
|
3280
3569
|
# --------
|
@@ -3283,7 +3572,7 @@ AC_DEFUN([LT_LIB_M],
|
|
3283
3572
|
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
3284
3573
|
LIBM=
|
3285
3574
|
case $host in
|
3286
|
-
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
|
3575
|
+
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
|
3287
3576
|
# These system don't have libm, or don't need it
|
3288
3577
|
;;
|
3289
3578
|
*-ncr-sysv4.3*)
|
@@ -3311,7 +3600,12 @@ m4_defun([_LT_COMPILER_NO_RTTI],
|
|
3311
3600
|
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
3312
3601
|
|
3313
3602
|
if test "$GCC" = yes; then
|
3314
|
-
|
3603
|
+
case $cc_basename in
|
3604
|
+
nvcc*)
|
3605
|
+
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
|
3606
|
+
*)
|
3607
|
+
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
|
3608
|
+
esac
|
3315
3609
|
|
3316
3610
|
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
|
3317
3611
|
lt_cv_prog_compiler_rtti_exceptions,
|
@@ -3328,6 +3622,7 @@ _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
|
|
3328
3622
|
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
|
3329
3623
|
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
3330
3624
|
AC_REQUIRE([AC_PROG_CC])dnl
|
3625
|
+
AC_REQUIRE([AC_PROG_AWK])dnl
|
3331
3626
|
AC_REQUIRE([LT_PATH_NM])dnl
|
3332
3627
|
AC_REQUIRE([LT_PATH_LD])dnl
|
3333
3628
|
m4_require([_LT_DECL_SED])dnl
|
@@ -3395,8 +3690,8 @@ esac
|
|
3395
3690
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
3396
3691
|
|
3397
3692
|
# Transform an extracted symbol line into symbol name and symbol address
|
3398
|
-
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)
|
3399
|
-
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)
|
3693
|
+
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
3694
|
+
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
3400
3695
|
|
3401
3696
|
# Handle CRLF in mingw tool chain
|
3402
3697
|
opt_cr=
|
@@ -3420,6 +3715,7 @@ for ac_symprfx in "" "_"; do
|
|
3420
3715
|
# which start with @ or ?.
|
3421
3716
|
lt_cv_sys_global_symbol_pipe="$AWK ['"\
|
3422
3717
|
" {last_section=section; section=\$ 3};"\
|
3718
|
+
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
3423
3719
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
3424
3720
|
" \$ 0!~/External *\|/{next};"\
|
3425
3721
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
@@ -3432,6 +3728,7 @@ for ac_symprfx in "" "_"; do
|
|
3432
3728
|
else
|
3433
3729
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
3434
3730
|
fi
|
3731
|
+
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
3435
3732
|
|
3436
3733
|
# Check to see that the pipe works correctly.
|
3437
3734
|
pipe_works=no
|
@@ -3453,7 +3750,7 @@ _LT_EOF
|
|
3453
3750
|
if AC_TRY_EVAL(ac_compile); then
|
3454
3751
|
# Now try to grab the symbols.
|
3455
3752
|
nlist=conftest.nm
|
3456
|
-
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
|
3753
|
+
if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
|
3457
3754
|
# Try sorting and uniquifying the output.
|
3458
3755
|
if sort "$nlist" | uniq > "$nlist"T; then
|
3459
3756
|
mv -f "$nlist"T "$nlist"
|
@@ -3465,6 +3762,18 @@ _LT_EOF
|
|
3465
3762
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
3466
3763
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
3467
3764
|
cat <<_LT_EOF > conftest.$ac_ext
|
3765
|
+
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
3766
|
+
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
3767
|
+
/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
3768
|
+
relocations are performed -- see ld's documentation on pseudo-relocs. */
|
3769
|
+
# define LT@&t@_DLSYM_CONST
|
3770
|
+
#elif defined(__osf__)
|
3771
|
+
/* This system does not cope well with relocations in const data. */
|
3772
|
+
# define LT@&t@_DLSYM_CONST
|
3773
|
+
#else
|
3774
|
+
# define LT@&t@_DLSYM_CONST const
|
3775
|
+
#endif
|
3776
|
+
|
3468
3777
|
#ifdef __cplusplus
|
3469
3778
|
extern "C" {
|
3470
3779
|
#endif
|
@@ -3476,7 +3785,7 @@ _LT_EOF
|
|
3476
3785
|
cat <<_LT_EOF >> conftest.$ac_ext
|
3477
3786
|
|
3478
3787
|
/* The mapping between symbol names and symbols. */
|
3479
|
-
|
3788
|
+
LT@&t@_DLSYM_CONST struct {
|
3480
3789
|
const char *name;
|
3481
3790
|
void *address;
|
3482
3791
|
}
|
@@ -3502,15 +3811,15 @@ static const void *lt_preloaded_setup() {
|
|
3502
3811
|
_LT_EOF
|
3503
3812
|
# Now try linking the two files.
|
3504
3813
|
mv conftest.$ac_objext conftstm.$ac_objext
|
3505
|
-
|
3506
|
-
|
3814
|
+
lt_globsym_save_LIBS=$LIBS
|
3815
|
+
lt_globsym_save_CFLAGS=$CFLAGS
|
3507
3816
|
LIBS="conftstm.$ac_objext"
|
3508
3817
|
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
3509
3818
|
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
3510
3819
|
pipe_works=yes
|
3511
3820
|
fi
|
3512
|
-
LIBS
|
3513
|
-
CFLAGS
|
3821
|
+
LIBS=$lt_globsym_save_LIBS
|
3822
|
+
CFLAGS=$lt_globsym_save_CFLAGS
|
3514
3823
|
else
|
3515
3824
|
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
3516
3825
|
fi
|
@@ -3543,6 +3852,13 @@ else
|
|
3543
3852
|
AC_MSG_RESULT(ok)
|
3544
3853
|
fi
|
3545
3854
|
|
3855
|
+
# Response file support.
|
3856
|
+
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
3857
|
+
nm_file_list_spec='@'
|
3858
|
+
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
|
3859
|
+
nm_file_list_spec='@'
|
3860
|
+
fi
|
3861
|
+
|
3546
3862
|
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
|
3547
3863
|
[Take the output of nm and produce a listing of raw symbols and C names])
|
3548
3864
|
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
|
@@ -3553,6 +3869,8 @@ _LT_DECL([global_symbol_to_c_name_address],
|
|
3553
3869
|
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
|
3554
3870
|
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
|
3555
3871
|
[Transform the output of nm in a C name address pair when lib prefix is needed])
|
3872
|
+
_LT_DECL([], [nm_file_list_spec], [1],
|
3873
|
+
[Specify filename containing input files for $NM])
|
3556
3874
|
]) # _LT_CMD_GLOBAL_SYMBOLS
|
3557
3875
|
|
3558
3876
|
|
@@ -3564,7 +3882,6 @@ _LT_TAGVAR(lt_prog_compiler_wl, $1)=
|
|
3564
3882
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
3565
3883
|
_LT_TAGVAR(lt_prog_compiler_static, $1)=
|
3566
3884
|
|
3567
|
-
AC_MSG_CHECKING([for $compiler option to produce PIC])
|
3568
3885
|
m4_if([$1], [CXX], [
|
3569
3886
|
# C++ specific cases for pic, static, wl, etc.
|
3570
3887
|
if test "$GXX" = yes; then
|
@@ -3615,6 +3932,11 @@ m4_if([$1], [CXX], [
|
|
3615
3932
|
# DJGPP does not support shared libraries at all
|
3616
3933
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
3617
3934
|
;;
|
3935
|
+
haiku*)
|
3936
|
+
# PIC is the default for Haiku.
|
3937
|
+
# The "-static" flag exists, but is broken.
|
3938
|
+
_LT_TAGVAR(lt_prog_compiler_static, $1)=
|
3939
|
+
;;
|
3618
3940
|
interix[[3-9]]*)
|
3619
3941
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
3620
3942
|
# Instead, we relocate shared libraries at runtime.
|
@@ -3664,6 +3986,12 @@ m4_if([$1], [CXX], [
|
|
3664
3986
|
;;
|
3665
3987
|
esac
|
3666
3988
|
;;
|
3989
|
+
mingw* | cygwin* | os2* | pw32* | cegcc*)
|
3990
|
+
# This hack is so that the source file can tell whether it is being
|
3991
|
+
# built for inclusion in a dll (and should export symbols for example).
|
3992
|
+
m4_if([$1], [GCJ], [],
|
3993
|
+
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
3994
|
+
;;
|
3667
3995
|
dgux*)
|
3668
3996
|
case $cc_basename in
|
3669
3997
|
ec++*)
|
@@ -3720,7 +4048,7 @@ m4_if([$1], [CXX], [
|
|
3720
4048
|
;;
|
3721
4049
|
esac
|
3722
4050
|
;;
|
3723
|
-
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
4051
|
+
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
3724
4052
|
case $cc_basename in
|
3725
4053
|
KCC*)
|
3726
4054
|
# KAI C++ Compiler
|
@@ -3753,8 +4081,8 @@ m4_if([$1], [CXX], [
|
|
3753
4081
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
3754
4082
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
3755
4083
|
;;
|
3756
|
-
xlc* | xlC*)
|
3757
|
-
# IBM XL 8.0 on PPC
|
4084
|
+
xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
|
4085
|
+
# IBM XL 8.0, 9.0 on PPC and BlueGene
|
3758
4086
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
3759
4087
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
|
3760
4088
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
|
@@ -3816,7 +4144,7 @@ m4_if([$1], [CXX], [
|
|
3816
4144
|
;;
|
3817
4145
|
solaris*)
|
3818
4146
|
case $cc_basename in
|
3819
|
-
CC*)
|
4147
|
+
CC* | sunCC*)
|
3820
4148
|
# Sun C++ 4.2, 5.x and Centerline C++
|
3821
4149
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
3822
4150
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
@@ -3920,6 +4248,12 @@ m4_if([$1], [CXX], [
|
|
3920
4248
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
3921
4249
|
;;
|
3922
4250
|
|
4251
|
+
haiku*)
|
4252
|
+
# PIC is the default for Haiku.
|
4253
|
+
# The "-static" flag exists, but is broken.
|
4254
|
+
_LT_TAGVAR(lt_prog_compiler_static, $1)=
|
4255
|
+
;;
|
4256
|
+
|
3923
4257
|
hpux*)
|
3924
4258
|
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
3925
4259
|
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
@@ -3962,6 +4296,15 @@ m4_if([$1], [CXX], [
|
|
3962
4296
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
3963
4297
|
;;
|
3964
4298
|
esac
|
4299
|
+
|
4300
|
+
case $cc_basename in
|
4301
|
+
nvcc*) # Cuda Compiler Driver 2.2
|
4302
|
+
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
|
4303
|
+
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
4304
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
|
4305
|
+
fi
|
4306
|
+
;;
|
4307
|
+
esac
|
3965
4308
|
else
|
3966
4309
|
# PORTME Check for flag to pass linker flags through the system compiler.
|
3967
4310
|
case $host_os in
|
@@ -4004,7 +4347,7 @@ m4_if([$1], [CXX], [
|
|
4004
4347
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
4005
4348
|
;;
|
4006
4349
|
|
4007
|
-
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
4350
|
+
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
4008
4351
|
case $cc_basename in
|
4009
4352
|
# old Intel for x86_64 which still supported -KPIC.
|
4010
4353
|
ecc*)
|
@@ -4025,7 +4368,13 @@ m4_if([$1], [CXX], [
|
|
4025
4368
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
|
4026
4369
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
|
4027
4370
|
;;
|
4028
|
-
|
4371
|
+
nagfor*)
|
4372
|
+
# NAG Fortran compiler
|
4373
|
+
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
|
4374
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
4375
|
+
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
4376
|
+
;;
|
4377
|
+
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
4029
4378
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
4030
4379
|
# which looks to be a dead project)
|
4031
4380
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
@@ -4037,25 +4386,40 @@ m4_if([$1], [CXX], [
|
|
4037
4386
|
# All Alpha code is PIC.
|
4038
4387
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
4039
4388
|
;;
|
4040
|
-
xl*)
|
4041
|
-
# IBM XL C 8.0/Fortran 10.1 on PPC
|
4389
|
+
xl* | bgxl* | bgf* | mpixl*)
|
4390
|
+
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
4042
4391
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
4043
4392
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
|
4044
4393
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
|
4045
4394
|
;;
|
4046
4395
|
*)
|
4047
4396
|
case `$CC -V 2>&1 | sed 5q` in
|
4397
|
+
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
|
4398
|
+
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
4399
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
4400
|
+
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
4401
|
+
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
4402
|
+
;;
|
4403
|
+
*Sun\ F* | *Sun*Fortran*)
|
4404
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
4405
|
+
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
4406
|
+
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
4407
|
+
;;
|
4048
4408
|
*Sun\ C*)
|
4049
4409
|
# Sun C 5.9
|
4050
4410
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
4051
4411
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
4052
4412
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
4053
4413
|
;;
|
4054
|
-
|
4055
|
-
|
4056
|
-
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-
|
4414
|
+
*Intel*\ [[CF]]*Compiler*)
|
4415
|
+
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
4416
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
4417
|
+
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
4418
|
+
;;
|
4419
|
+
*Portland\ Group*)
|
4420
|
+
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
4421
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
4057
4422
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
4058
|
-
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
4059
4423
|
;;
|
4060
4424
|
esac
|
4061
4425
|
;;
|
@@ -4087,7 +4451,7 @@ m4_if([$1], [CXX], [
|
|
4087
4451
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
4088
4452
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
4089
4453
|
case $cc_basename in
|
4090
|
-
f77* | f90* | f95*)
|
4454
|
+
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
4091
4455
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
|
4092
4456
|
*)
|
4093
4457
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
|
@@ -4144,9 +4508,11 @@ case $host_os in
|
|
4144
4508
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
|
4145
4509
|
;;
|
4146
4510
|
esac
|
4147
|
-
|
4148
|
-
|
4149
|
-
|
4511
|
+
|
4512
|
+
AC_CACHE_CHECK([for $compiler option to produce PIC],
|
4513
|
+
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
|
4514
|
+
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
|
4515
|
+
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
|
4150
4516
|
|
4151
4517
|
#
|
4152
4518
|
# Check to make sure the PIC flag actually works.
|
@@ -4165,6 +4531,8 @@ fi
|
|
4165
4531
|
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
|
4166
4532
|
[Additional compiler flags for building library objects])
|
4167
4533
|
|
4534
|
+
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
|
4535
|
+
[How to pass a linker flag through the compiler])
|
4168
4536
|
#
|
4169
4537
|
# Check to make sure the static flag actually works.
|
4170
4538
|
#
|
@@ -4185,6 +4553,7 @@ _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
|
|
4185
4553
|
m4_defun([_LT_LINKER_SHLIBS],
|
4186
4554
|
[AC_REQUIRE([LT_PATH_LD])dnl
|
4187
4555
|
AC_REQUIRE([LT_PATH_NM])dnl
|
4556
|
+
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
|
4188
4557
|
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
4189
4558
|
m4_require([_LT_DECL_EGREP])dnl
|
4190
4559
|
m4_require([_LT_DECL_SED])dnl
|
@@ -4193,30 +4562,40 @@ m4_require([_LT_TAG_COMPILER])dnl
|
|
4193
4562
|
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
4194
4563
|
m4_if([$1], [CXX], [
|
4195
4564
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
4565
|
+
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
4196
4566
|
case $host_os in
|
4197
4567
|
aix[[4-9]]*)
|
4198
4568
|
# If we're using GNU nm, then we don't want the "-C" option.
|
4199
4569
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
4570
|
+
# Also, AIX nm treats weak defined symbols like other global defined
|
4571
|
+
# symbols, whereas GNU nm marks them as "W".
|
4200
4572
|
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
4201
|
-
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
4573
|
+
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
4202
4574
|
else
|
4203
4575
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
4204
4576
|
fi
|
4205
4577
|
;;
|
4206
4578
|
pw32*)
|
4207
4579
|
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
4208
|
-
|
4580
|
+
;;
|
4209
4581
|
cygwin* | mingw* | cegcc*)
|
4210
|
-
|
4211
|
-
|
4212
|
-
|
4582
|
+
case $cc_basename in
|
4583
|
+
cl*)
|
4584
|
+
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
4585
|
+
;;
|
4586
|
+
*)
|
4587
|
+
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
4588
|
+
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
4589
|
+
;;
|
4590
|
+
esac
|
4591
|
+
;;
|
4592
|
+
linux* | k*bsd*-gnu | gnu*)
|
4213
4593
|
_LT_TAGVAR(link_all_deplibs, $1)=no
|
4214
|
-
|
4594
|
+
;;
|
4215
4595
|
*)
|
4216
4596
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
4217
|
-
|
4597
|
+
;;
|
4218
4598
|
esac
|
4219
|
-
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
4220
4599
|
], [
|
4221
4600
|
runpath_var=
|
4222
4601
|
_LT_TAGVAR(allow_undefined_flag, $1)=
|
@@ -4231,7 +4610,6 @@ m4_if([$1], [CXX], [
|
|
4231
4610
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
4232
4611
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
4233
4612
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
4234
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
4235
4613
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
4236
4614
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
4237
4615
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
@@ -4276,13 +4654,39 @@ dnl Note also adjust exclude_expsyms for C++ above.
|
|
4276
4654
|
openbsd*)
|
4277
4655
|
with_gnu_ld=no
|
4278
4656
|
;;
|
4279
|
-
linux* | k*bsd*-gnu)
|
4657
|
+
linux* | k*bsd*-gnu | gnu*)
|
4280
4658
|
_LT_TAGVAR(link_all_deplibs, $1)=no
|
4281
4659
|
;;
|
4282
4660
|
esac
|
4283
4661
|
|
4284
4662
|
_LT_TAGVAR(ld_shlibs, $1)=yes
|
4663
|
+
|
4664
|
+
# On some targets, GNU ld is compatible enough with the native linker
|
4665
|
+
# that we're better off using the native interface for both.
|
4666
|
+
lt_use_gnu_ld_interface=no
|
4285
4667
|
if test "$with_gnu_ld" = yes; then
|
4668
|
+
case $host_os in
|
4669
|
+
aix*)
|
4670
|
+
# The AIX port of GNU ld has always aspired to compatibility
|
4671
|
+
# with the native linker. However, as the warning in the GNU ld
|
4672
|
+
# block says, versions before 2.19.5* couldn't really create working
|
4673
|
+
# shared libraries, regardless of the interface used.
|
4674
|
+
case `$LD -v 2>&1` in
|
4675
|
+
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
4676
|
+
*\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
|
4677
|
+
*\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
|
4678
|
+
*)
|
4679
|
+
lt_use_gnu_ld_interface=yes
|
4680
|
+
;;
|
4681
|
+
esac
|
4682
|
+
;;
|
4683
|
+
*)
|
4684
|
+
lt_use_gnu_ld_interface=yes
|
4685
|
+
;;
|
4686
|
+
esac
|
4687
|
+
fi
|
4688
|
+
|
4689
|
+
if test "$lt_use_gnu_ld_interface" = yes; then
|
4286
4690
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
4287
4691
|
wlarc='${wl}'
|
4288
4692
|
|
@@ -4316,11 +4720,12 @@ dnl Note also adjust exclude_expsyms for C++ above.
|
|
4316
4720
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
4317
4721
|
cat <<_LT_EOF 1>&2
|
4318
4722
|
|
4319
|
-
*** Warning: the GNU linker, at least up to release 2.
|
4723
|
+
*** Warning: the GNU linker, at least up to release 2.19, is reported
|
4320
4724
|
*** to be unable to reliably create shared libraries on AIX.
|
4321
4725
|
*** Therefore, libtool is disabling shared libraries support. If you
|
4322
|
-
*** really care for shared libraries, you may want to
|
4323
|
-
*** so that a non-GNU linker is found
|
4726
|
+
*** really care for shared libraries, you may want to install binutils
|
4727
|
+
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
4728
|
+
*** You will then need to restart the configuration process.
|
4324
4729
|
|
4325
4730
|
_LT_EOF
|
4326
4731
|
fi
|
@@ -4356,10 +4761,12 @@ _LT_EOF
|
|
4356
4761
|
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
4357
4762
|
# as there is no search path for DLLs.
|
4358
4763
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
4764
|
+
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
|
4359
4765
|
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
4360
4766
|
_LT_TAGVAR(always_export_symbols, $1)=no
|
4361
4767
|
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
4362
|
-
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA
|
4768
|
+
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
4769
|
+
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
4363
4770
|
|
4364
4771
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
4365
4772
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
@@ -4377,6 +4784,11 @@ _LT_EOF
|
|
4377
4784
|
fi
|
4378
4785
|
;;
|
4379
4786
|
|
4787
|
+
haiku*)
|
4788
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
4789
|
+
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
4790
|
+
;;
|
4791
|
+
|
4380
4792
|
interix[[3-9]]*)
|
4381
4793
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
4382
4794
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
@@ -4402,15 +4814,16 @@ _LT_EOF
|
|
4402
4814
|
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
4403
4815
|
&& test "$tmp_diet" = no
|
4404
4816
|
then
|
4405
|
-
tmp_addflag=
|
4817
|
+
tmp_addflag=' $pic_flag'
|
4406
4818
|
tmp_sharedflag='-shared'
|
4407
4819
|
case $cc_basename,$host_cpu in
|
4408
4820
|
pgcc*) # Portland Group C compiler
|
4409
|
-
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done;
|
4821
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
4410
4822
|
tmp_addflag=' $pic_flag'
|
4411
4823
|
;;
|
4412
|
-
pgf77* | pgf90* | pgf95*
|
4413
|
-
|
4824
|
+
pgf77* | pgf90* | pgf95* | pgfortran*)
|
4825
|
+
# Portland Group f77 and f90 compilers
|
4826
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
4414
4827
|
tmp_addflag=' $pic_flag -Mnomain' ;;
|
4415
4828
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
4416
4829
|
tmp_addflag=' -i_dynamic' ;;
|
@@ -4421,13 +4834,17 @@ _LT_EOF
|
|
4421
4834
|
lf95*) # Lahey Fortran 8.1
|
4422
4835
|
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
4423
4836
|
tmp_sharedflag='--shared' ;;
|
4424
|
-
xl[[cC]]*)
|
4837
|
+
xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
4425
4838
|
tmp_sharedflag='-qmkshrobj'
|
4426
4839
|
tmp_addflag= ;;
|
4840
|
+
nvcc*) # Cuda Compiler Driver 2.2
|
4841
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
4842
|
+
_LT_TAGVAR(compiler_needs_object, $1)=yes
|
4843
|
+
;;
|
4427
4844
|
esac
|
4428
4845
|
case `$CC -V 2>&1 | sed 5q` in
|
4429
4846
|
*Sun\ C*) # Sun C 5.9
|
4430
|
-
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done;
|
4847
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
4431
4848
|
_LT_TAGVAR(compiler_needs_object, $1)=yes
|
4432
4849
|
tmp_sharedflag='-G' ;;
|
4433
4850
|
*Sun\ F*) # Sun Fortran 8.3
|
@@ -4443,17 +4860,16 @@ _LT_EOF
|
|
4443
4860
|
fi
|
4444
4861
|
|
4445
4862
|
case $cc_basename in
|
4446
|
-
xlf*)
|
4863
|
+
xlf* | bgf* | bgxlf* | mpixlf*)
|
4447
4864
|
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
4448
4865
|
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
|
4449
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
4450
|
-
_LT_TAGVAR(
|
4451
|
-
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
4866
|
+
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
4867
|
+
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
4452
4868
|
if test "x$supports_anon_versioning" = xyes; then
|
4453
4869
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
4454
4870
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
4455
4871
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
4456
|
-
$LD -shared $libobjs $deplibs $
|
4872
|
+
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
4457
4873
|
fi
|
4458
4874
|
;;
|
4459
4875
|
esac
|
@@ -4467,8 +4883,8 @@ _LT_EOF
|
|
4467
4883
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
4468
4884
|
wlarc=
|
4469
4885
|
else
|
4470
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
4471
|
-
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
4886
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
4887
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
4472
4888
|
fi
|
4473
4889
|
;;
|
4474
4890
|
|
@@ -4486,8 +4902,8 @@ _LT_EOF
|
|
4486
4902
|
|
4487
4903
|
_LT_EOF
|
4488
4904
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
4489
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
4490
|
-
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
4905
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
4906
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
4491
4907
|
else
|
4492
4908
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
4493
4909
|
fi
|
@@ -4533,8 +4949,8 @@ _LT_EOF
|
|
4533
4949
|
|
4534
4950
|
*)
|
4535
4951
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
4536
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
4537
|
-
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
4952
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
4953
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
4538
4954
|
else
|
4539
4955
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
4540
4956
|
fi
|
@@ -4574,8 +4990,10 @@ _LT_EOF
|
|
4574
4990
|
else
|
4575
4991
|
# If we're using GNU nm, then we don't want the "-C" option.
|
4576
4992
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
4993
|
+
# Also, AIX nm treats weak defined symbols like other global
|
4994
|
+
# defined symbols, whereas GNU nm marks them as "W".
|
4577
4995
|
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
4578
|
-
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
4996
|
+
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
4579
4997
|
else
|
4580
4998
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
4581
4999
|
fi
|
@@ -4663,9 +5081,9 @@ _LT_EOF
|
|
4663
5081
|
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
4664
5082
|
# Determine the default libpath from the value encoded in an
|
4665
5083
|
# empty executable.
|
4666
|
-
_LT_SYS_MODULE_PATH_AIX
|
5084
|
+
_LT_SYS_MODULE_PATH_AIX([$1])
|
4667
5085
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
4668
|
-
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then
|
5086
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
4669
5087
|
else
|
4670
5088
|
if test "$host_cpu" = ia64; then
|
4671
5089
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
@@ -4674,14 +5092,19 @@ _LT_EOF
|
|
4674
5092
|
else
|
4675
5093
|
# Determine the default libpath from the value encoded in an
|
4676
5094
|
# empty executable.
|
4677
|
-
_LT_SYS_MODULE_PATH_AIX
|
5095
|
+
_LT_SYS_MODULE_PATH_AIX([$1])
|
4678
5096
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
4679
5097
|
# Warning - without using the other run time loading flags,
|
4680
5098
|
# -berok will link without error, but may produce a broken library.
|
4681
5099
|
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
4682
5100
|
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
4683
|
-
|
4684
|
-
|
5101
|
+
if test "$with_gnu_ld" = yes; then
|
5102
|
+
# We only use this code for GNU lds that support --whole-archive.
|
5103
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
5104
|
+
else
|
5105
|
+
# Exported symbols can be pulled into shared objects from archives
|
5106
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
5107
|
+
fi
|
4685
5108
|
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
4686
5109
|
# This is similar to how AIX traditionally builds its shared libraries.
|
4687
5110
|
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
@@ -4713,20 +5136,64 @@ _LT_EOF
|
|
4713
5136
|
# Microsoft Visual C++.
|
4714
5137
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
4715
5138
|
# no search path for DLLs.
|
4716
|
-
|
4717
|
-
|
4718
|
-
|
4719
|
-
|
4720
|
-
|
4721
|
-
|
4722
|
-
|
4723
|
-
|
4724
|
-
|
4725
|
-
|
4726
|
-
|
4727
|
-
|
4728
|
-
|
4729
|
-
|
5139
|
+
case $cc_basename in
|
5140
|
+
cl*)
|
5141
|
+
# Native MSVC
|
5142
|
+
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
5143
|
+
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
5144
|
+
_LT_TAGVAR(always_export_symbols, $1)=yes
|
5145
|
+
_LT_TAGVAR(file_list_spec, $1)='@'
|
5146
|
+
# Tell ltmain to make .lib files, not .a files.
|
5147
|
+
libext=lib
|
5148
|
+
# Tell ltmain to make .dll files, not .so files.
|
5149
|
+
shrext_cmds=".dll"
|
5150
|
+
# FIXME: Setting linknames here is a bad hack.
|
5151
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
5152
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
5153
|
+
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
5154
|
+
else
|
5155
|
+
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
5156
|
+
fi~
|
5157
|
+
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
5158
|
+
linknames='
|
5159
|
+
# The linker will not automatically build a static lib if we build a DLL.
|
5160
|
+
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
5161
|
+
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
5162
|
+
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
5163
|
+
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
|
5164
|
+
# Don't use ranlib
|
5165
|
+
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
5166
|
+
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
|
5167
|
+
lt_tool_outputfile="@TOOL_OUTPUT@"~
|
5168
|
+
case $lt_outputfile in
|
5169
|
+
*.exe|*.EXE) ;;
|
5170
|
+
*)
|
5171
|
+
lt_outputfile="$lt_outputfile.exe"
|
5172
|
+
lt_tool_outputfile="$lt_tool_outputfile.exe"
|
5173
|
+
;;
|
5174
|
+
esac~
|
5175
|
+
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
5176
|
+
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
5177
|
+
$RM "$lt_outputfile.manifest";
|
5178
|
+
fi'
|
5179
|
+
;;
|
5180
|
+
*)
|
5181
|
+
# Assume MSVC wrapper
|
5182
|
+
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
5183
|
+
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
5184
|
+
# Tell ltmain to make .lib files, not .a files.
|
5185
|
+
libext=lib
|
5186
|
+
# Tell ltmain to make .dll files, not .so files.
|
5187
|
+
shrext_cmds=".dll"
|
5188
|
+
# FIXME: Setting linknames here is a bad hack.
|
5189
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
5190
|
+
# The linker will automatically build a .lib file if we build a DLL.
|
5191
|
+
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
5192
|
+
# FIXME: Should let the user specify the lib program.
|
5193
|
+
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
5194
|
+
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
5195
|
+
;;
|
5196
|
+
esac
|
4730
5197
|
;;
|
4731
5198
|
|
4732
5199
|
darwin* | rhapsody*)
|
@@ -4739,10 +5206,6 @@ _LT_EOF
|
|
4739
5206
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
4740
5207
|
;;
|
4741
5208
|
|
4742
|
-
freebsd1*)
|
4743
|
-
_LT_TAGVAR(ld_shlibs, $1)=no
|
4744
|
-
;;
|
4745
|
-
|
4746
5209
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
4747
5210
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
4748
5211
|
# does not break anything, and helps significantly (at the cost of a little
|
@@ -4755,7 +5218,7 @@ _LT_EOF
|
|
4755
5218
|
;;
|
4756
5219
|
|
4757
5220
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
4758
|
-
freebsd2
|
5221
|
+
freebsd2.*)
|
4759
5222
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
4760
5223
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
4761
5224
|
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
@@ -4764,7 +5227,7 @@ _LT_EOF
|
|
4764
5227
|
|
4765
5228
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
4766
5229
|
freebsd* | dragonfly*)
|
4767
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
5230
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
4768
5231
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
4769
5232
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
4770
5233
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
@@ -4772,7 +5235,7 @@ _LT_EOF
|
|
4772
5235
|
|
4773
5236
|
hpux9*)
|
4774
5237
|
if test "$GCC" = yes; then
|
4775
|
-
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared
|
5238
|
+
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
4776
5239
|
else
|
4777
5240
|
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
4778
5241
|
fi
|
@@ -4787,14 +5250,13 @@ _LT_EOF
|
|
4787
5250
|
;;
|
4788
5251
|
|
4789
5252
|
hpux10*)
|
4790
|
-
if test "$GCC" = yes
|
4791
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared
|
5253
|
+
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
5254
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
4792
5255
|
else
|
4793
5256
|
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
4794
5257
|
fi
|
4795
5258
|
if test "$with_gnu_ld" = no; then
|
4796
5259
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
4797
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
4798
5260
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
4799
5261
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
4800
5262
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
@@ -4806,16 +5268,16 @@ _LT_EOF
|
|
4806
5268
|
;;
|
4807
5269
|
|
4808
5270
|
hpux11*)
|
4809
|
-
if test "$GCC" = yes
|
5271
|
+
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
4810
5272
|
case $host_cpu in
|
4811
5273
|
hppa*64*)
|
4812
5274
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
4813
5275
|
;;
|
4814
5276
|
ia64*)
|
4815
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared
|
5277
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
4816
5278
|
;;
|
4817
5279
|
*)
|
4818
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared
|
5280
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
4819
5281
|
;;
|
4820
5282
|
esac
|
4821
5283
|
else
|
@@ -4827,7 +5289,14 @@ _LT_EOF
|
|
4827
5289
|
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
4828
5290
|
;;
|
4829
5291
|
*)
|
4830
|
-
|
5292
|
+
m4_if($1, [], [
|
5293
|
+
# Older versions of the 11.00 compiler do not understand -b yet
|
5294
|
+
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
5295
|
+
_LT_LINKER_OPTION([if $CC understands -b],
|
5296
|
+
_LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
|
5297
|
+
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
|
5298
|
+
[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
|
5299
|
+
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
|
4831
5300
|
;;
|
4832
5301
|
esac
|
4833
5302
|
fi
|
@@ -4855,19 +5324,34 @@ _LT_EOF
|
|
4855
5324
|
|
4856
5325
|
irix5* | irix6* | nonstopux*)
|
4857
5326
|
if test "$GCC" = yes; then
|
4858
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" &&
|
5327
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
4859
5328
|
# Try to use the -exported_symbol ld option, if it does not
|
4860
5329
|
# work, assume that -exports_file does not work either and
|
4861
5330
|
# implicitly export all symbols.
|
4862
|
-
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4866
|
-
|
4867
|
-
|
5331
|
+
# This should be the same for all languages, so no per-tag cache variable.
|
5332
|
+
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
|
5333
|
+
[lt_cv_irix_exported_symbol],
|
5334
|
+
[save_LDFLAGS="$LDFLAGS"
|
5335
|
+
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
5336
|
+
AC_LINK_IFELSE(
|
5337
|
+
[AC_LANG_SOURCE(
|
5338
|
+
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
|
5339
|
+
[C++], [[int foo (void) { return 0; }]],
|
5340
|
+
[Fortran 77], [[
|
5341
|
+
subroutine foo
|
5342
|
+
end]],
|
5343
|
+
[Fortran], [[
|
5344
|
+
subroutine foo
|
5345
|
+
end]])])],
|
5346
|
+
[lt_cv_irix_exported_symbol=yes],
|
5347
|
+
[lt_cv_irix_exported_symbol=no])
|
5348
|
+
LDFLAGS="$save_LDFLAGS"])
|
5349
|
+
if test "$lt_cv_irix_exported_symbol" = yes; then
|
5350
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
5351
|
+
fi
|
4868
5352
|
else
|
4869
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" &&
|
4870
|
-
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" &&
|
5353
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
5354
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
4871
5355
|
fi
|
4872
5356
|
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
4873
5357
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
@@ -4929,17 +5413,17 @@ _LT_EOF
|
|
4929
5413
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
4930
5414
|
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
4931
5415
|
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
4932
|
-
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def
|
5416
|
+
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
|
4933
5417
|
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
4934
5418
|
;;
|
4935
5419
|
|
4936
5420
|
osf3*)
|
4937
5421
|
if test "$GCC" = yes; then
|
4938
5422
|
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
4939
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" &&
|
5423
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
4940
5424
|
else
|
4941
5425
|
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
4942
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" &&
|
5426
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
4943
5427
|
fi
|
4944
5428
|
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
4945
5429
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
@@ -4949,13 +5433,13 @@ _LT_EOF
|
|
4949
5433
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
4950
5434
|
if test "$GCC" = yes; then
|
4951
5435
|
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
4952
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" &&
|
5436
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
4953
5437
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
4954
5438
|
else
|
4955
5439
|
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
4956
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" &&
|
5440
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
4957
5441
|
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
|
4958
|
-
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "
|
5442
|
+
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
|
4959
5443
|
|
4960
5444
|
# Both c and cxx compiler support -rpath directly
|
4961
5445
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
@@ -4968,9 +5452,9 @@ _LT_EOF
|
|
4968
5452
|
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
|
4969
5453
|
if test "$GCC" = yes; then
|
4970
5454
|
wlarc='${wl}'
|
4971
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
5455
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
4972
5456
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
4973
|
-
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
5457
|
+
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
4974
5458
|
else
|
4975
5459
|
case `$CC -V 2>&1` in
|
4976
5460
|
*"Compilers 5.0"*)
|
@@ -5146,36 +5630,38 @@ x|xyes)
|
|
5146
5630
|
# Test whether the compiler implicitly links with -lc since on some
|
5147
5631
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
5148
5632
|
# to ld, don't add -lc before -lgcc.
|
5149
|
-
|
5150
|
-
|
5151
|
-
|
5152
|
-
|
5153
|
-
|
5154
|
-
|
5155
|
-
|
5156
|
-
|
5157
|
-
|
5158
|
-
|
5159
|
-
|
5160
|
-
|
5161
|
-
|
5162
|
-
|
5163
|
-
|
5164
|
-
|
5165
|
-
|
5166
|
-
|
5167
|
-
|
5168
|
-
|
5169
|
-
|
5170
|
-
|
5171
|
-
|
5172
|
-
|
5173
|
-
|
5174
|
-
|
5175
|
-
|
5176
|
-
|
5177
|
-
|
5178
|
-
|
5633
|
+
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
|
5634
|
+
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
|
5635
|
+
[$RM conftest*
|
5636
|
+
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
5637
|
+
|
5638
|
+
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
5639
|
+
soname=conftest
|
5640
|
+
lib=conftest
|
5641
|
+
libobjs=conftest.$ac_objext
|
5642
|
+
deplibs=
|
5643
|
+
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
|
5644
|
+
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
|
5645
|
+
compiler_flags=-v
|
5646
|
+
linker_flags=-v
|
5647
|
+
verstring=
|
5648
|
+
output_objdir=.
|
5649
|
+
libname=conftest
|
5650
|
+
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
|
5651
|
+
_LT_TAGVAR(allow_undefined_flag, $1)=
|
5652
|
+
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
|
5653
|
+
then
|
5654
|
+
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
5655
|
+
else
|
5656
|
+
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
5657
|
+
fi
|
5658
|
+
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
|
5659
|
+
else
|
5660
|
+
cat conftest.err 1>&5
|
5661
|
+
fi
|
5662
|
+
$RM conftest*
|
5663
|
+
])
|
5664
|
+
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
|
5179
5665
|
;;
|
5180
5666
|
esac
|
5181
5667
|
fi
|
@@ -5212,9 +5698,6 @@ _LT_TAGDECL([], [no_undefined_flag], [1],
|
|
5212
5698
|
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
|
5213
5699
|
[Flag to hardcode $libdir into a binary during linking.
|
5214
5700
|
This must work even if $libdir does not exist])
|
5215
|
-
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
|
5216
|
-
[[If ld is used when linking, flag to hardcode $libdir into a binary
|
5217
|
-
during linking. This must work even if $libdir does not exist]])
|
5218
5701
|
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
|
5219
5702
|
[Whether we need a single "-rpath" flag with a separated argument])
|
5220
5703
|
_LT_TAGDECL([], [hardcode_direct], [0],
|
@@ -5240,8 +5723,6 @@ _LT_TAGDECL([], [inherit_rpath], [0],
|
|
5240
5723
|
to runtime path list])
|
5241
5724
|
_LT_TAGDECL([], [link_all_deplibs], [0],
|
5242
5725
|
[Whether libtool must link a program against all its dependency libraries])
|
5243
|
-
_LT_TAGDECL([], [fix_srcfile_path], [1],
|
5244
|
-
[Fix the shell variable $srcfile for the compiler])
|
5245
5726
|
_LT_TAGDECL([], [always_export_symbols], [0],
|
5246
5727
|
[Set to "yes" if exported symbols are required])
|
5247
5728
|
_LT_TAGDECL([], [export_symbols_cmds], [2],
|
@@ -5252,6 +5733,8 @@ _LT_TAGDECL([], [include_expsyms], [1],
|
|
5252
5733
|
[Symbols that must always be exported])
|
5253
5734
|
_LT_TAGDECL([], [prelink_cmds], [2],
|
5254
5735
|
[Commands necessary for linking programs (against libraries) with templates])
|
5736
|
+
_LT_TAGDECL([], [postlink_cmds], [2],
|
5737
|
+
[Commands necessary for finishing linking programs])
|
5255
5738
|
_LT_TAGDECL([], [file_list_spec], [1],
|
5256
5739
|
[Specify filename containing input files])
|
5257
5740
|
dnl FIXME: Not yet implemented
|
@@ -5341,37 +5824,22 @@ CC="$lt_save_CC"
|
|
5341
5824
|
])# _LT_LANG_C_CONFIG
|
5342
5825
|
|
5343
5826
|
|
5344
|
-
# _LT_PROG_CXX
|
5345
|
-
# ------------
|
5346
|
-
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
|
5347
|
-
# compiler, we have our own version here.
|
5348
|
-
m4_defun([_LT_PROG_CXX],
|
5349
|
-
[
|
5350
|
-
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
|
5351
|
-
AC_PROG_CXX
|
5352
|
-
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
5353
|
-
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
5354
|
-
(test "X$CXX" != "Xg++"))) ; then
|
5355
|
-
AC_PROG_CXXCPP
|
5356
|
-
else
|
5357
|
-
_lt_caught_CXX_error=yes
|
5358
|
-
fi
|
5359
|
-
popdef([AC_MSG_ERROR])
|
5360
|
-
])# _LT_PROG_CXX
|
5361
|
-
|
5362
|
-
dnl aclocal-1.4 backwards compatibility:
|
5363
|
-
dnl AC_DEFUN([_LT_PROG_CXX], [])
|
5364
|
-
|
5365
|
-
|
5366
5827
|
# _LT_LANG_CXX_CONFIG([TAG])
|
5367
5828
|
# --------------------------
|
5368
5829
|
# Ensure that the configuration variables for a C++ compiler are suitably
|
5369
5830
|
# defined. These variables are subsequently used by _LT_CONFIG to write
|
5370
5831
|
# the compiler configuration to `libtool'.
|
5371
5832
|
m4_defun([_LT_LANG_CXX_CONFIG],
|
5372
|
-
[
|
5373
|
-
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
5833
|
+
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
5374
5834
|
m4_require([_LT_DECL_EGREP])dnl
|
5835
|
+
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
|
5836
|
+
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
5837
|
+
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
5838
|
+
(test "X$CXX" != "Xg++"))) ; then
|
5839
|
+
AC_PROG_CXXCPP
|
5840
|
+
else
|
5841
|
+
_lt_caught_CXX_error=yes
|
5842
|
+
fi
|
5375
5843
|
|
5376
5844
|
AC_LANG_PUSH(C++)
|
5377
5845
|
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
@@ -5383,7 +5851,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
5383
5851
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
5384
5852
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
5385
5853
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
5386
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
5387
5854
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
5388
5855
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
5389
5856
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
@@ -5393,6 +5860,8 @@ _LT_TAGVAR(module_cmds, $1)=
|
|
5393
5860
|
_LT_TAGVAR(module_expsym_cmds, $1)=
|
5394
5861
|
_LT_TAGVAR(link_all_deplibs, $1)=unknown
|
5395
5862
|
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
5863
|
+
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
5864
|
+
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
5396
5865
|
_LT_TAGVAR(no_undefined_flag, $1)=
|
5397
5866
|
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
5398
5867
|
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
@@ -5424,6 +5893,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5424
5893
|
|
5425
5894
|
# Allow CC to be a program name with arguments.
|
5426
5895
|
lt_save_CC=$CC
|
5896
|
+
lt_save_CFLAGS=$CFLAGS
|
5427
5897
|
lt_save_LD=$LD
|
5428
5898
|
lt_save_GCC=$GCC
|
5429
5899
|
GCC=$GXX
|
@@ -5441,6 +5911,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5441
5911
|
fi
|
5442
5912
|
test -z "${LDCXX+set}" || LD=$LDCXX
|
5443
5913
|
CC=${CXX-"c++"}
|
5914
|
+
CFLAGS=$CXXFLAGS
|
5444
5915
|
compiler=$CC
|
5445
5916
|
_LT_TAGVAR(compiler, $1)=$CC
|
5446
5917
|
_LT_CC_BASENAME([$compiler])
|
@@ -5462,8 +5933,8 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5462
5933
|
# Check if GNU C++ uses GNU ld as the underlying linker, since the
|
5463
5934
|
# archiving commands below assume that GNU ld is being used.
|
5464
5935
|
if test "$with_gnu_ld" = yes; then
|
5465
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
5466
|
-
_LT_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'
|
5936
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
5937
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
5467
5938
|
|
5468
5939
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
5469
5940
|
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
@@ -5495,7 +5966,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5495
5966
|
# Commands to make compiler produce verbose output that lists
|
5496
5967
|
# what "hidden" libraries, object files and flags are used when
|
5497
5968
|
# linking a shared library.
|
5498
|
-
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
|
5969
|
+
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
5499
5970
|
|
5500
5971
|
else
|
5501
5972
|
GXX=no
|
@@ -5604,10 +6075,10 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5604
6075
|
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
5605
6076
|
# Determine the default libpath from the value encoded in an empty
|
5606
6077
|
# executable.
|
5607
|
-
_LT_SYS_MODULE_PATH_AIX
|
6078
|
+
_LT_SYS_MODULE_PATH_AIX([$1])
|
5608
6079
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
5609
6080
|
|
5610
|
-
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then
|
6081
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
5611
6082
|
else
|
5612
6083
|
if test "$host_cpu" = ia64; then
|
5613
6084
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
@@ -5616,14 +6087,19 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5616
6087
|
else
|
5617
6088
|
# Determine the default libpath from the value encoded in an
|
5618
6089
|
# empty executable.
|
5619
|
-
_LT_SYS_MODULE_PATH_AIX
|
6090
|
+
_LT_SYS_MODULE_PATH_AIX([$1])
|
5620
6091
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
5621
6092
|
# Warning - without using the other run time loading flags,
|
5622
6093
|
# -berok will link without error, but may produce a broken library.
|
5623
6094
|
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
5624
6095
|
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
5625
|
-
|
5626
|
-
|
6096
|
+
if test "$with_gnu_ld" = yes; then
|
6097
|
+
# We only use this code for GNU lds that support --whole-archive.
|
6098
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
6099
|
+
else
|
6100
|
+
# Exported symbols can be pulled into shared objects from archives
|
6101
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
6102
|
+
fi
|
5627
6103
|
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
5628
6104
|
# This is similar to how AIX traditionally builds its shared
|
5629
6105
|
# libraries.
|
@@ -5653,28 +6129,75 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5653
6129
|
;;
|
5654
6130
|
|
5655
6131
|
cygwin* | mingw* | pw32* | cegcc*)
|
5656
|
-
|
5657
|
-
|
5658
|
-
|
5659
|
-
|
5660
|
-
|
5661
|
-
|
5662
|
-
|
5663
|
-
|
5664
|
-
|
5665
|
-
|
5666
|
-
|
5667
|
-
|
5668
|
-
|
5669
|
-
|
5670
|
-
|
5671
|
-
|
5672
|
-
|
5673
|
-
|
5674
|
-
|
5675
|
-
|
5676
|
-
|
5677
|
-
|
6132
|
+
case $GXX,$cc_basename in
|
6133
|
+
,cl* | no,cl*)
|
6134
|
+
# Native MSVC
|
6135
|
+
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
6136
|
+
# no search path for DLLs.
|
6137
|
+
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
6138
|
+
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
6139
|
+
_LT_TAGVAR(always_export_symbols, $1)=yes
|
6140
|
+
_LT_TAGVAR(file_list_spec, $1)='@'
|
6141
|
+
# Tell ltmain to make .lib files, not .a files.
|
6142
|
+
libext=lib
|
6143
|
+
# Tell ltmain to make .dll files, not .so files.
|
6144
|
+
shrext_cmds=".dll"
|
6145
|
+
# FIXME: Setting linknames here is a bad hack.
|
6146
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
6147
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
6148
|
+
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
6149
|
+
else
|
6150
|
+
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
6151
|
+
fi~
|
6152
|
+
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
6153
|
+
linknames='
|
6154
|
+
# The linker will not automatically build a static lib if we build a DLL.
|
6155
|
+
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
6156
|
+
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
6157
|
+
# Don't use ranlib
|
6158
|
+
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
6159
|
+
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
|
6160
|
+
lt_tool_outputfile="@TOOL_OUTPUT@"~
|
6161
|
+
case $lt_outputfile in
|
6162
|
+
*.exe|*.EXE) ;;
|
6163
|
+
*)
|
6164
|
+
lt_outputfile="$lt_outputfile.exe"
|
6165
|
+
lt_tool_outputfile="$lt_tool_outputfile.exe"
|
6166
|
+
;;
|
6167
|
+
esac~
|
6168
|
+
func_to_tool_file "$lt_outputfile"~
|
6169
|
+
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
6170
|
+
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
6171
|
+
$RM "$lt_outputfile.manifest";
|
6172
|
+
fi'
|
6173
|
+
;;
|
6174
|
+
*)
|
6175
|
+
# g++
|
6176
|
+
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
6177
|
+
# as there is no search path for DLLs.
|
6178
|
+
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
6179
|
+
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
|
6180
|
+
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
6181
|
+
_LT_TAGVAR(always_export_symbols, $1)=no
|
6182
|
+
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
6183
|
+
|
6184
|
+
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
6185
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
6186
|
+
# If the export-symbols file already is a .def file (1st line
|
6187
|
+
# is EXPORTS), use it as is; otherwise, prepend...
|
6188
|
+
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
6189
|
+
cp $export_symbols $output_objdir/$soname.def;
|
6190
|
+
else
|
6191
|
+
echo EXPORTS > $output_objdir/$soname.def;
|
6192
|
+
cat $export_symbols >> $output_objdir/$soname.def;
|
6193
|
+
fi~
|
6194
|
+
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
6195
|
+
else
|
6196
|
+
_LT_TAGVAR(ld_shlibs, $1)=no
|
6197
|
+
fi
|
6198
|
+
;;
|
6199
|
+
esac
|
6200
|
+
;;
|
5678
6201
|
darwin* | rhapsody*)
|
5679
6202
|
_LT_DARWIN_LINKER_FEATURES($1)
|
5680
6203
|
;;
|
@@ -5697,7 +6220,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5697
6220
|
esac
|
5698
6221
|
;;
|
5699
6222
|
|
5700
|
-
|
6223
|
+
freebsd2.*)
|
5701
6224
|
# C++ shared libraries reported to be fairly broken before
|
5702
6225
|
# switch to ELF
|
5703
6226
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
@@ -5713,7 +6236,9 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5713
6236
|
_LT_TAGVAR(ld_shlibs, $1)=yes
|
5714
6237
|
;;
|
5715
6238
|
|
5716
|
-
|
6239
|
+
haiku*)
|
6240
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
6241
|
+
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
5717
6242
|
;;
|
5718
6243
|
|
5719
6244
|
hpux9*)
|
@@ -5740,11 +6265,11 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5740
6265
|
# explicitly linking system object files so we need to strip them
|
5741
6266
|
# from the output so that they don't get included in the library
|
5742
6267
|
# dependencies.
|
5743
|
-
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;
|
6268
|
+
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
|
5744
6269
|
;;
|
5745
6270
|
*)
|
5746
6271
|
if test "$GXX" = yes; then
|
5747
|
-
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib
|
6272
|
+
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
5748
6273
|
else
|
5749
6274
|
# FIXME: insert proper C++ library support
|
5750
6275
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
@@ -5805,7 +6330,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5805
6330
|
# explicitly linking system object files so we need to strip them
|
5806
6331
|
# from the output so that they don't get included in the library
|
5807
6332
|
# dependencies.
|
5808
|
-
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;
|
6333
|
+
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
|
5809
6334
|
;;
|
5810
6335
|
*)
|
5811
6336
|
if test "$GXX" = yes; then
|
@@ -5815,10 +6340,10 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5815
6340
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
5816
6341
|
;;
|
5817
6342
|
ia64*)
|
5818
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib
|
6343
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
5819
6344
|
;;
|
5820
6345
|
*)
|
5821
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib
|
6346
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
5822
6347
|
;;
|
5823
6348
|
esac
|
5824
6349
|
fi
|
@@ -5848,7 +6373,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5848
6373
|
case $cc_basename in
|
5849
6374
|
CC*)
|
5850
6375
|
# SGI C++
|
5851
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" &&
|
6376
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
5852
6377
|
|
5853
6378
|
# Archives containing C++ object files must be created using
|
5854
6379
|
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
@@ -5859,9 +6384,9 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5859
6384
|
*)
|
5860
6385
|
if test "$GXX" = yes; then
|
5861
6386
|
if test "$with_gnu_ld" = no; then
|
5862
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" &&
|
6387
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
5863
6388
|
else
|
5864
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" &&
|
6389
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
5865
6390
|
fi
|
5866
6391
|
fi
|
5867
6392
|
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
@@ -5872,7 +6397,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5872
6397
|
_LT_TAGVAR(inherit_rpath, $1)=yes
|
5873
6398
|
;;
|
5874
6399
|
|
5875
|
-
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
6400
|
+
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
5876
6401
|
case $cc_basename in
|
5877
6402
|
KCC*)
|
5878
6403
|
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
@@ -5890,7 +6415,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5890
6415
|
# explicitly linking system object files so we need to strip them
|
5891
6416
|
# from the output so that they don't get included in the library
|
5892
6417
|
# dependencies.
|
5893
|
-
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done;
|
6418
|
+
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
|
5894
6419
|
|
5895
6420
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
5896
6421
|
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
@@ -5927,26 +6452,26 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5927
6452
|
pgCC* | pgcpp*)
|
5928
6453
|
# Portland Group C++ compiler
|
5929
6454
|
case `$CC -V` in
|
5930
|
-
*pgCC\ [[1-5]]
|
6455
|
+
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
|
5931
6456
|
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
|
5932
6457
|
rm -rf $tpldir~
|
5933
6458
|
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
|
5934
|
-
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
|
6459
|
+
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
|
5935
6460
|
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
|
5936
6461
|
rm -rf $tpldir~
|
5937
6462
|
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
|
5938
|
-
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
|
6463
|
+
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
|
5939
6464
|
$RANLIB $oldlib'
|
5940
6465
|
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
|
5941
6466
|
rm -rf $tpldir~
|
5942
6467
|
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
5943
|
-
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
6468
|
+
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
5944
6469
|
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
|
5945
6470
|
rm -rf $tpldir~
|
5946
6471
|
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
5947
|
-
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
6472
|
+
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
5948
6473
|
;;
|
5949
|
-
*) # Version 6
|
6474
|
+
*) # Version 6 and above use weak symbols
|
5950
6475
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
5951
6476
|
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
5952
6477
|
;;
|
@@ -5954,7 +6479,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5954
6479
|
|
5955
6480
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
5956
6481
|
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
5957
|
-
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done;
|
6482
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
5958
6483
|
;;
|
5959
6484
|
cxx*)
|
5960
6485
|
# Compaq C++
|
@@ -5973,9 +6498,9 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5973
6498
|
# explicitly linking system object files so we need to strip them
|
5974
6499
|
# from the output so that they don't get included in the library
|
5975
6500
|
# dependencies.
|
5976
|
-
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist
|
6501
|
+
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
|
5977
6502
|
;;
|
5978
|
-
xl*)
|
6503
|
+
xl* | mpixl* | bgxl*)
|
5979
6504
|
# IBM XL 8.0 on PPC, with GNU ld
|
5980
6505
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
5981
6506
|
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
@@ -5995,13 +6520,13 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
5995
6520
|
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
5996
6521
|
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
|
5997
6522
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
5998
|
-
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done;
|
6523
|
+
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
5999
6524
|
_LT_TAGVAR(compiler_needs_object, $1)=yes
|
6000
6525
|
|
6001
6526
|
# Not sure whether something based on
|
6002
6527
|
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
6003
6528
|
# would be better.
|
6004
|
-
output_verbose_link_cmd='
|
6529
|
+
output_verbose_link_cmd='func_echo_all'
|
6005
6530
|
|
6006
6531
|
# Archives containing C++ object files must be created using
|
6007
6532
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
@@ -6070,7 +6595,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6070
6595
|
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
6071
6596
|
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
6072
6597
|
fi
|
6073
|
-
output_verbose_link_cmd=
|
6598
|
+
output_verbose_link_cmd=func_echo_all
|
6074
6599
|
else
|
6075
6600
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
6076
6601
|
fi
|
@@ -6105,15 +6630,15 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6105
6630
|
case $host in
|
6106
6631
|
osf3*)
|
6107
6632
|
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
6108
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" &&
|
6633
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
6109
6634
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
6110
6635
|
;;
|
6111
6636
|
*)
|
6112
6637
|
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
6113
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" &&
|
6638
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
6114
6639
|
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
6115
6640
|
echo "-hidden">> $lib.exp~
|
6116
|
-
$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 "
|
6641
|
+
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
|
6117
6642
|
$RM $lib.exp'
|
6118
6643
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
6119
6644
|
;;
|
@@ -6129,17 +6654,17 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6129
6654
|
# explicitly linking system object files so we need to strip them
|
6130
6655
|
# from the output so that they don't get included in the library
|
6131
6656
|
# dependencies.
|
6132
|
-
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist
|
6657
|
+
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
|
6133
6658
|
;;
|
6134
6659
|
*)
|
6135
6660
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
6136
6661
|
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
6137
6662
|
case $host in
|
6138
6663
|
osf3*)
|
6139
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" &&
|
6664
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
6140
6665
|
;;
|
6141
6666
|
*)
|
6142
|
-
_LT_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" &&
|
6667
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
6143
6668
|
;;
|
6144
6669
|
esac
|
6145
6670
|
|
@@ -6149,7 +6674,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6149
6674
|
# Commands to make compiler produce verbose output that lists
|
6150
6675
|
# what "hidden" libraries, object files and flags are used when
|
6151
6676
|
# linking a shared library.
|
6152
|
-
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
|
6677
|
+
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
6153
6678
|
|
6154
6679
|
else
|
6155
6680
|
# FIXME: insert proper C++ library support
|
@@ -6185,7 +6710,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6185
6710
|
|
6186
6711
|
solaris*)
|
6187
6712
|
case $cc_basename in
|
6188
|
-
CC*)
|
6713
|
+
CC* | sunCC*)
|
6189
6714
|
# Sun C++ 4.2, 5.x and Centerline C++
|
6190
6715
|
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
|
6191
6716
|
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
@@ -6206,7 +6731,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6206
6731
|
esac
|
6207
6732
|
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
6208
6733
|
|
6209
|
-
output_verbose_link_cmd='
|
6734
|
+
output_verbose_link_cmd='func_echo_all'
|
6210
6735
|
|
6211
6736
|
# Archives containing C++ object files must be created using
|
6212
6737
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
@@ -6226,14 +6751,14 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6226
6751
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
6227
6752
|
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
|
6228
6753
|
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
|
6229
|
-
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
6754
|
+
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
6230
6755
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
6231
|
-
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
6756
|
+
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
6232
6757
|
|
6233
6758
|
# Commands to make compiler produce verbose output that lists
|
6234
6759
|
# what "hidden" libraries, object files and flags are used when
|
6235
6760
|
# linking a shared library.
|
6236
|
-
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
|
6761
|
+
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
6237
6762
|
else
|
6238
6763
|
# g++ 2.7 appears to require `-G' NOT `-shared' on this
|
6239
6764
|
# platform.
|
@@ -6244,7 +6769,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6244
6769
|
# Commands to make compiler produce verbose output that lists
|
6245
6770
|
# what "hidden" libraries, object files and flags are used when
|
6246
6771
|
# linking a shared library.
|
6247
|
-
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
|
6772
|
+
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
6248
6773
|
fi
|
6249
6774
|
|
6250
6775
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
|
@@ -6298,6 +6823,10 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6298
6823
|
CC*)
|
6299
6824
|
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
6300
6825
|
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
6826
|
+
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
|
6827
|
+
'"$_LT_TAGVAR(old_archive_cmds, $1)"
|
6828
|
+
_LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
|
6829
|
+
'"$_LT_TAGVAR(reload_cmds, $1)"
|
6301
6830
|
;;
|
6302
6831
|
*)
|
6303
6832
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
@@ -6353,6 +6882,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
6353
6882
|
fi # test -n "$compiler"
|
6354
6883
|
|
6355
6884
|
CC=$lt_save_CC
|
6885
|
+
CFLAGS=$lt_save_CFLAGS
|
6356
6886
|
LDCXX=$LD
|
6357
6887
|
LD=$lt_save_LD
|
6358
6888
|
GCC=$lt_save_GCC
|
@@ -6367,6 +6897,29 @@ AC_LANG_POP
|
|
6367
6897
|
])# _LT_LANG_CXX_CONFIG
|
6368
6898
|
|
6369
6899
|
|
6900
|
+
# _LT_FUNC_STRIPNAME_CNF
|
6901
|
+
# ----------------------
|
6902
|
+
# func_stripname_cnf prefix suffix name
|
6903
|
+
# strip PREFIX and SUFFIX off of NAME.
|
6904
|
+
# PREFIX and SUFFIX must not contain globbing or regex special
|
6905
|
+
# characters, hashes, percent signs, but SUFFIX may contain a leading
|
6906
|
+
# dot (in which case that matches only a dot).
|
6907
|
+
#
|
6908
|
+
# This function is identical to the (non-XSI) version of func_stripname,
|
6909
|
+
# except this one can be used by m4 code that may be executed by configure,
|
6910
|
+
# rather than the libtool script.
|
6911
|
+
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
|
6912
|
+
AC_REQUIRE([_LT_DECL_SED])
|
6913
|
+
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
|
6914
|
+
func_stripname_cnf ()
|
6915
|
+
{
|
6916
|
+
case ${2} in
|
6917
|
+
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
6918
|
+
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
6919
|
+
esac
|
6920
|
+
} # func_stripname_cnf
|
6921
|
+
])# _LT_FUNC_STRIPNAME_CNF
|
6922
|
+
|
6370
6923
|
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
|
6371
6924
|
# ---------------------------------
|
6372
6925
|
# Figure out "hidden" library dependencies from verbose
|
@@ -6375,6 +6928,7 @@ AC_LANG_POP
|
|
6375
6928
|
# objects, libraries and library flags.
|
6376
6929
|
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
|
6377
6930
|
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
6931
|
+
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
|
6378
6932
|
# Dependencies to place before and after the object being linked:
|
6379
6933
|
_LT_TAGVAR(predep_objects, $1)=
|
6380
6934
|
_LT_TAGVAR(postdep_objects, $1)=
|
@@ -6424,7 +6978,20 @@ public class foo {
|
|
6424
6978
|
}
|
6425
6979
|
};
|
6426
6980
|
_LT_EOF
|
6981
|
+
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
|
6982
|
+
package foo
|
6983
|
+
func foo() {
|
6984
|
+
}
|
6985
|
+
_LT_EOF
|
6427
6986
|
])
|
6987
|
+
|
6988
|
+
_lt_libdeps_save_CFLAGS=$CFLAGS
|
6989
|
+
case "$CC $CFLAGS " in #(
|
6990
|
+
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
6991
|
+
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
6992
|
+
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
|
6993
|
+
esac
|
6994
|
+
|
6428
6995
|
dnl Parse the compiler output and extract the necessary
|
6429
6996
|
dnl objects, libraries and library flags.
|
6430
6997
|
if AC_TRY_EVAL(ac_compile); then
|
@@ -6436,7 +7003,7 @@ if AC_TRY_EVAL(ac_compile); then
|
|
6436
7003
|
pre_test_object_deps_done=no
|
6437
7004
|
|
6438
7005
|
for p in `eval "$output_verbose_link_cmd"`; do
|
6439
|
-
case $p in
|
7006
|
+
case ${prev}${p} in
|
6440
7007
|
|
6441
7008
|
-L* | -R* | -l*)
|
6442
7009
|
# Some compilers place space between "-{L,R}" and the path.
|
@@ -6445,13 +7012,22 @@ if AC_TRY_EVAL(ac_compile); then
|
|
6445
7012
|
test $p = "-R"; then
|
6446
7013
|
prev=$p
|
6447
7014
|
continue
|
6448
|
-
else
|
6449
|
-
prev=
|
6450
7015
|
fi
|
6451
7016
|
|
7017
|
+
# Expand the sysroot to ease extracting the directories later.
|
7018
|
+
if test -z "$prev"; then
|
7019
|
+
case $p in
|
7020
|
+
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
|
7021
|
+
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
|
7022
|
+
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
|
7023
|
+
esac
|
7024
|
+
fi
|
7025
|
+
case $p in
|
7026
|
+
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
|
7027
|
+
esac
|
6452
7028
|
if test "$pre_test_object_deps_done" = no; then
|
6453
|
-
case $
|
6454
|
-
-L
|
7029
|
+
case ${prev} in
|
7030
|
+
-L | -R)
|
6455
7031
|
# Internal compiler library paths should come after those
|
6456
7032
|
# provided the user. The postdeps already come after the
|
6457
7033
|
# user supplied libs so there is no need to process them.
|
@@ -6471,8 +7047,10 @@ if AC_TRY_EVAL(ac_compile); then
|
|
6471
7047
|
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
|
6472
7048
|
fi
|
6473
7049
|
fi
|
7050
|
+
prev=
|
6474
7051
|
;;
|
6475
7052
|
|
7053
|
+
*.lto.$objext) ;; # Ignore GCC LTO objects
|
6476
7054
|
*.$objext)
|
6477
7055
|
# This assumes that the test object file only shows up
|
6478
7056
|
# once in the compiler output.
|
@@ -6508,6 +7086,7 @@ else
|
|
6508
7086
|
fi
|
6509
7087
|
|
6510
7088
|
$RM -f confest.$objext
|
7089
|
+
CFLAGS=$_lt_libdeps_save_CFLAGS
|
6511
7090
|
|
6512
7091
|
# PORTME: override above test on systems where it is broken
|
6513
7092
|
m4_if([$1], [CXX],
|
@@ -6544,7 +7123,7 @@ linux*)
|
|
6544
7123
|
|
6545
7124
|
solaris*)
|
6546
7125
|
case $cc_basename in
|
6547
|
-
CC*)
|
7126
|
+
CC* | sunCC*)
|
6548
7127
|
# The more standards-conforming stlport4 library is
|
6549
7128
|
# incompatible with the Cstd library. Avoid specifying
|
6550
7129
|
# it if it's in CXXFLAGS. Ignore libCrun as
|
@@ -6588,32 +7167,16 @@ _LT_TAGDECL([], [compiler_lib_search_path], [1],
|
|
6588
7167
|
])# _LT_SYS_HIDDEN_LIBDEPS
|
6589
7168
|
|
6590
7169
|
|
6591
|
-
# _LT_PROG_F77
|
6592
|
-
# ------------
|
6593
|
-
# Since AC_PROG_F77 is broken, in that it returns the empty string
|
6594
|
-
# if there is no fortran compiler, we have our own version here.
|
6595
|
-
m4_defun([_LT_PROG_F77],
|
6596
|
-
[
|
6597
|
-
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
|
6598
|
-
AC_PROG_F77
|
6599
|
-
if test -z "$F77" || test "X$F77" = "Xno"; then
|
6600
|
-
_lt_disable_F77=yes
|
6601
|
-
fi
|
6602
|
-
popdef([AC_MSG_ERROR])
|
6603
|
-
])# _LT_PROG_F77
|
6604
|
-
|
6605
|
-
dnl aclocal-1.4 backwards compatibility:
|
6606
|
-
dnl AC_DEFUN([_LT_PROG_F77], [])
|
6607
|
-
|
6608
|
-
|
6609
7170
|
# _LT_LANG_F77_CONFIG([TAG])
|
6610
7171
|
# --------------------------
|
6611
7172
|
# Ensure that the configuration variables for a Fortran 77 compiler are
|
6612
7173
|
# suitably defined. These variables are subsequently used by _LT_CONFIG
|
6613
7174
|
# to write the compiler configuration to `libtool'.
|
6614
7175
|
m4_defun([_LT_LANG_F77_CONFIG],
|
6615
|
-
[
|
6616
|
-
|
7176
|
+
[AC_LANG_PUSH(Fortran 77)
|
7177
|
+
if test -z "$F77" || test "X$F77" = "Xno"; then
|
7178
|
+
_lt_disable_F77=yes
|
7179
|
+
fi
|
6617
7180
|
|
6618
7181
|
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
6619
7182
|
_LT_TAGVAR(allow_undefined_flag, $1)=
|
@@ -6623,7 +7186,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
6623
7186
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
6624
7187
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
6625
7188
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
6626
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
6627
7189
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
6628
7190
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
6629
7191
|
_LT_TAGVAR(hardcode_automatic, $1)=no
|
@@ -6632,6 +7194,8 @@ _LT_TAGVAR(module_cmds, $1)=
|
|
6632
7194
|
_LT_TAGVAR(module_expsym_cmds, $1)=
|
6633
7195
|
_LT_TAGVAR(link_all_deplibs, $1)=unknown
|
6634
7196
|
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
7197
|
+
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
7198
|
+
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
6635
7199
|
_LT_TAGVAR(no_undefined_flag, $1)=
|
6636
7200
|
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
6637
7201
|
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
@@ -6671,7 +7235,9 @@ if test "$_lt_disable_F77" != yes; then
|
|
6671
7235
|
# Allow CC to be a program name with arguments.
|
6672
7236
|
lt_save_CC="$CC"
|
6673
7237
|
lt_save_GCC=$GCC
|
7238
|
+
lt_save_CFLAGS=$CFLAGS
|
6674
7239
|
CC=${F77-"f77"}
|
7240
|
+
CFLAGS=$FFLAGS
|
6675
7241
|
compiler=$CC
|
6676
7242
|
_LT_TAGVAR(compiler, $1)=$CC
|
6677
7243
|
_LT_CC_BASENAME([$compiler])
|
@@ -6725,38 +7291,24 @@ if test "$_lt_disable_F77" != yes; then
|
|
6725
7291
|
|
6726
7292
|
GCC=$lt_save_GCC
|
6727
7293
|
CC="$lt_save_CC"
|
7294
|
+
CFLAGS="$lt_save_CFLAGS"
|
6728
7295
|
fi # test "$_lt_disable_F77" != yes
|
6729
7296
|
|
6730
7297
|
AC_LANG_POP
|
6731
7298
|
])# _LT_LANG_F77_CONFIG
|
6732
7299
|
|
6733
7300
|
|
6734
|
-
# _LT_PROG_FC
|
6735
|
-
# -----------
|
6736
|
-
# Since AC_PROG_FC is broken, in that it returns the empty string
|
6737
|
-
# if there is no fortran compiler, we have our own version here.
|
6738
|
-
m4_defun([_LT_PROG_FC],
|
6739
|
-
[
|
6740
|
-
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
|
6741
|
-
AC_PROG_FC
|
6742
|
-
if test -z "$FC" || test "X$FC" = "Xno"; then
|
6743
|
-
_lt_disable_FC=yes
|
6744
|
-
fi
|
6745
|
-
popdef([AC_MSG_ERROR])
|
6746
|
-
])# _LT_PROG_FC
|
6747
|
-
|
6748
|
-
dnl aclocal-1.4 backwards compatibility:
|
6749
|
-
dnl AC_DEFUN([_LT_PROG_FC], [])
|
6750
|
-
|
6751
|
-
|
6752
7301
|
# _LT_LANG_FC_CONFIG([TAG])
|
6753
7302
|
# -------------------------
|
6754
7303
|
# Ensure that the configuration variables for a Fortran compiler are
|
6755
7304
|
# suitably defined. These variables are subsequently used by _LT_CONFIG
|
6756
7305
|
# to write the compiler configuration to `libtool'.
|
6757
7306
|
m4_defun([_LT_LANG_FC_CONFIG],
|
6758
|
-
[
|
6759
|
-
|
7307
|
+
[AC_LANG_PUSH(Fortran)
|
7308
|
+
|
7309
|
+
if test -z "$FC" || test "X$FC" = "Xno"; then
|
7310
|
+
_lt_disable_FC=yes
|
7311
|
+
fi
|
6760
7312
|
|
6761
7313
|
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
6762
7314
|
_LT_TAGVAR(allow_undefined_flag, $1)=
|
@@ -6766,7 +7318,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
6766
7318
|
_LT_TAGVAR(hardcode_direct, $1)=no
|
6767
7319
|
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
6768
7320
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
6769
|
-
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
6770
7321
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
6771
7322
|
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
6772
7323
|
_LT_TAGVAR(hardcode_automatic, $1)=no
|
@@ -6775,6 +7326,8 @@ _LT_TAGVAR(module_cmds, $1)=
|
|
6775
7326
|
_LT_TAGVAR(module_expsym_cmds, $1)=
|
6776
7327
|
_LT_TAGVAR(link_all_deplibs, $1)=unknown
|
6777
7328
|
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
7329
|
+
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
7330
|
+
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
6778
7331
|
_LT_TAGVAR(no_undefined_flag, $1)=
|
6779
7332
|
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
6780
7333
|
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
@@ -6814,7 +7367,9 @@ if test "$_lt_disable_FC" != yes; then
|
|
6814
7367
|
# Allow CC to be a program name with arguments.
|
6815
7368
|
lt_save_CC="$CC"
|
6816
7369
|
lt_save_GCC=$GCC
|
7370
|
+
lt_save_CFLAGS=$CFLAGS
|
6817
7371
|
CC=${FC-"f95"}
|
7372
|
+
CFLAGS=$FCFLAGS
|
6818
7373
|
compiler=$CC
|
6819
7374
|
GCC=$ac_cv_fc_compiler_gnu
|
6820
7375
|
|
@@ -6870,7 +7425,8 @@ if test "$_lt_disable_FC" != yes; then
|
|
6870
7425
|
fi # test -n "$compiler"
|
6871
7426
|
|
6872
7427
|
GCC=$lt_save_GCC
|
6873
|
-
CC
|
7428
|
+
CC=$lt_save_CC
|
7429
|
+
CFLAGS=$lt_save_CFLAGS
|
6874
7430
|
fi # test "$_lt_disable_FC" != yes
|
6875
7431
|
|
6876
7432
|
AC_LANG_POP
|
@@ -6907,10 +7463,12 @@ _LT_COMPILER_BOILERPLATE
|
|
6907
7463
|
_LT_LINKER_BOILERPLATE
|
6908
7464
|
|
6909
7465
|
# Allow CC to be a program name with arguments.
|
6910
|
-
lt_save_CC
|
7466
|
+
lt_save_CC=$CC
|
7467
|
+
lt_save_CFLAGS=$CFLAGS
|
6911
7468
|
lt_save_GCC=$GCC
|
6912
7469
|
GCC=yes
|
6913
7470
|
CC=${GCJ-"gcj"}
|
7471
|
+
CFLAGS=$GCJFLAGS
|
6914
7472
|
compiler=$CC
|
6915
7473
|
_LT_TAGVAR(compiler, $1)=$CC
|
6916
7474
|
_LT_TAGVAR(LD, $1)="$LD"
|
@@ -6920,6 +7478,8 @@ _LT_CC_BASENAME([$compiler])
|
|
6920
7478
|
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
6921
7479
|
|
6922
7480
|
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
7481
|
+
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
7482
|
+
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
6923
7483
|
|
6924
7484
|
if test -n "$compiler"; then
|
6925
7485
|
_LT_COMPILER_NO_RTTI($1)
|
@@ -6935,10 +7495,78 @@ fi
|
|
6935
7495
|
AC_LANG_RESTORE
|
6936
7496
|
|
6937
7497
|
GCC=$lt_save_GCC
|
6938
|
-
CC
|
7498
|
+
CC=$lt_save_CC
|
7499
|
+
CFLAGS=$lt_save_CFLAGS
|
6939
7500
|
])# _LT_LANG_GCJ_CONFIG
|
6940
7501
|
|
6941
7502
|
|
7503
|
+
# _LT_LANG_GO_CONFIG([TAG])
|
7504
|
+
# --------------------------
|
7505
|
+
# Ensure that the configuration variables for the GNU Go compiler
|
7506
|
+
# are suitably defined. These variables are subsequently used by _LT_CONFIG
|
7507
|
+
# to write the compiler configuration to `libtool'.
|
7508
|
+
m4_defun([_LT_LANG_GO_CONFIG],
|
7509
|
+
[AC_REQUIRE([LT_PROG_GO])dnl
|
7510
|
+
AC_LANG_SAVE
|
7511
|
+
|
7512
|
+
# Source file extension for Go test sources.
|
7513
|
+
ac_ext=go
|
7514
|
+
|
7515
|
+
# Object file extension for compiled Go test sources.
|
7516
|
+
objext=o
|
7517
|
+
_LT_TAGVAR(objext, $1)=$objext
|
7518
|
+
|
7519
|
+
# Code to be used in simple compile tests
|
7520
|
+
lt_simple_compile_test_code="package main; func main() { }"
|
7521
|
+
|
7522
|
+
# Code to be used in simple link tests
|
7523
|
+
lt_simple_link_test_code='package main; func main() { }'
|
7524
|
+
|
7525
|
+
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
7526
|
+
_LT_TAG_COMPILER
|
7527
|
+
|
7528
|
+
# save warnings/boilerplate of simple test code
|
7529
|
+
_LT_COMPILER_BOILERPLATE
|
7530
|
+
_LT_LINKER_BOILERPLATE
|
7531
|
+
|
7532
|
+
# Allow CC to be a program name with arguments.
|
7533
|
+
lt_save_CC=$CC
|
7534
|
+
lt_save_CFLAGS=$CFLAGS
|
7535
|
+
lt_save_GCC=$GCC
|
7536
|
+
GCC=yes
|
7537
|
+
CC=${GOC-"gccgo"}
|
7538
|
+
CFLAGS=$GOFLAGS
|
7539
|
+
compiler=$CC
|
7540
|
+
_LT_TAGVAR(compiler, $1)=$CC
|
7541
|
+
_LT_TAGVAR(LD, $1)="$LD"
|
7542
|
+
_LT_CC_BASENAME([$compiler])
|
7543
|
+
|
7544
|
+
# Go did not exist at the time GCC didn't implicitly link libc in.
|
7545
|
+
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
7546
|
+
|
7547
|
+
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
7548
|
+
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
7549
|
+
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
7550
|
+
|
7551
|
+
if test -n "$compiler"; then
|
7552
|
+
_LT_COMPILER_NO_RTTI($1)
|
7553
|
+
_LT_COMPILER_PIC($1)
|
7554
|
+
_LT_COMPILER_C_O($1)
|
7555
|
+
_LT_COMPILER_FILE_LOCKS($1)
|
7556
|
+
_LT_LINKER_SHLIBS($1)
|
7557
|
+
_LT_LINKER_HARDCODE_LIBPATH($1)
|
7558
|
+
|
7559
|
+
_LT_CONFIG($1)
|
7560
|
+
fi
|
7561
|
+
|
7562
|
+
AC_LANG_RESTORE
|
7563
|
+
|
7564
|
+
GCC=$lt_save_GCC
|
7565
|
+
CC=$lt_save_CC
|
7566
|
+
CFLAGS=$lt_save_CFLAGS
|
7567
|
+
])# _LT_LANG_GO_CONFIG
|
7568
|
+
|
7569
|
+
|
6942
7570
|
# _LT_LANG_RC_CONFIG([TAG])
|
6943
7571
|
# -------------------------
|
6944
7572
|
# Ensure that the configuration variables for the Windows resource compiler
|
@@ -6970,9 +7598,11 @@ _LT_LINKER_BOILERPLATE
|
|
6970
7598
|
|
6971
7599
|
# Allow CC to be a program name with arguments.
|
6972
7600
|
lt_save_CC="$CC"
|
7601
|
+
lt_save_CFLAGS=$CFLAGS
|
6973
7602
|
lt_save_GCC=$GCC
|
6974
7603
|
GCC=
|
6975
7604
|
CC=${RC-"windres"}
|
7605
|
+
CFLAGS=
|
6976
7606
|
compiler=$CC
|
6977
7607
|
_LT_TAGVAR(compiler, $1)=$CC
|
6978
7608
|
_LT_CC_BASENAME([$compiler])
|
@@ -6985,7 +7615,8 @@ fi
|
|
6985
7615
|
|
6986
7616
|
GCC=$lt_save_GCC
|
6987
7617
|
AC_LANG_RESTORE
|
6988
|
-
CC
|
7618
|
+
CC=$lt_save_CC
|
7619
|
+
CFLAGS=$lt_save_CFLAGS
|
6989
7620
|
])# _LT_LANG_RC_CONFIG
|
6990
7621
|
|
6991
7622
|
|
@@ -7005,6 +7636,13 @@ dnl aclocal-1.4 backwards compatibility:
|
|
7005
7636
|
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
|
7006
7637
|
|
7007
7638
|
|
7639
|
+
# LT_PROG_GO
|
7640
|
+
# ----------
|
7641
|
+
AC_DEFUN([LT_PROG_GO],
|
7642
|
+
[AC_CHECK_TOOL(GOC, gccgo,)
|
7643
|
+
])
|
7644
|
+
|
7645
|
+
|
7008
7646
|
# LT_PROG_RC
|
7009
7647
|
# ----------
|
7010
7648
|
AC_DEFUN([LT_PROG_RC],
|
@@ -7044,6 +7682,15 @@ _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
|
|
7044
7682
|
AC_SUBST([OBJDUMP])
|
7045
7683
|
])
|
7046
7684
|
|
7685
|
+
# _LT_DECL_DLLTOOL
|
7686
|
+
# ----------------
|
7687
|
+
# Ensure DLLTOOL variable is set.
|
7688
|
+
m4_defun([_LT_DECL_DLLTOOL],
|
7689
|
+
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
7690
|
+
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
7691
|
+
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
|
7692
|
+
AC_SUBST([DLLTOOL])
|
7693
|
+
])
|
7047
7694
|
|
7048
7695
|
# _LT_DECL_SED
|
7049
7696
|
# ------------
|
@@ -7135,8 +7782,8 @@ m4_defun([_LT_CHECK_SHELL_FEATURES],
|
|
7135
7782
|
# Try some XSI features
|
7136
7783
|
xsi_shell=no
|
7137
7784
|
( _lt_dummy="a/b/c"
|
7138
|
-
test "${_lt_dummy##*/},${_lt_dummy%/*}
|
7139
|
-
= c,a/b
|
7785
|
+
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
7786
|
+
= c,a/b,b/c, \
|
7140
7787
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
7141
7788
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
7142
7789
|
&& xsi_shell=yes
|
@@ -7175,222 +7822,177 @@ _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
|
|
7175
7822
|
])# _LT_CHECK_SHELL_FEATURES
|
7176
7823
|
|
7177
7824
|
|
7178
|
-
#
|
7179
|
-
#
|
7180
|
-
#
|
7181
|
-
|
7182
|
-
[
|
7183
|
-
|
7184
|
-
|
7185
|
-
|
7186
|
-
|
7187
|
-
|
7188
|
-
#
|
7189
|
-
|
7190
|
-
|
7191
|
-
|
7192
|
-
|
7193
|
-
* ) func_dirname_result="${3}" ;;
|
7194
|
-
esac
|
7195
|
-
}
|
7196
|
-
|
7197
|
-
# func_basename file
|
7198
|
-
func_basename ()
|
7199
|
-
{
|
7200
|
-
func_basename_result="${1##*/}"
|
7201
|
-
}
|
7202
|
-
|
7203
|
-
# func_dirname_and_basename file append nondir_replacement
|
7204
|
-
# perform func_basename and func_dirname in a single function
|
7205
|
-
# call:
|
7206
|
-
# dirname: Compute the dirname of FILE. If nonempty,
|
7207
|
-
# add APPEND to the result, otherwise set result
|
7208
|
-
# to NONDIR_REPLACEMENT.
|
7209
|
-
# value returned in "$func_dirname_result"
|
7210
|
-
# basename: Compute filename of FILE.
|
7211
|
-
# value retuned in "$func_basename_result"
|
7212
|
-
# Implementation must be kept synchronized with func_dirname
|
7213
|
-
# and func_basename. For efficiency, we do not delegate to
|
7214
|
-
# those functions but instead duplicate the functionality here.
|
7215
|
-
func_dirname_and_basename ()
|
7216
|
-
{
|
7217
|
-
case ${1} in
|
7218
|
-
*/*) func_dirname_result="${1%/*}${2}" ;;
|
7219
|
-
* ) func_dirname_result="${3}" ;;
|
7220
|
-
esac
|
7221
|
-
func_basename_result="${1##*/}"
|
7222
|
-
}
|
7223
|
-
|
7224
|
-
# func_stripname prefix suffix name
|
7225
|
-
# strip PREFIX and SUFFIX off of NAME.
|
7226
|
-
# PREFIX and SUFFIX must not contain globbing or regex special
|
7227
|
-
# characters, hashes, percent signs, but SUFFIX may contain a leading
|
7228
|
-
# dot (in which case that matches only a dot).
|
7229
|
-
func_stripname ()
|
7230
|
-
{
|
7231
|
-
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
7232
|
-
# positional parameters, so assign one to ordinary parameter first.
|
7233
|
-
func_stripname_result=${3}
|
7234
|
-
func_stripname_result=${func_stripname_result#"${1}"}
|
7235
|
-
func_stripname_result=${func_stripname_result%"${2}"}
|
7236
|
-
}
|
7237
|
-
|
7238
|
-
# func_opt_split
|
7239
|
-
func_opt_split ()
|
7240
|
-
{
|
7241
|
-
func_opt_split_opt=${1%%=*}
|
7242
|
-
func_opt_split_arg=${1#*=}
|
7243
|
-
}
|
7244
|
-
|
7245
|
-
# func_lo2o object
|
7246
|
-
func_lo2o ()
|
7247
|
-
{
|
7248
|
-
case ${1} in
|
7249
|
-
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
7250
|
-
*) func_lo2o_result=${1} ;;
|
7251
|
-
esac
|
7252
|
-
}
|
7253
|
-
|
7254
|
-
# func_xform libobj-or-source
|
7255
|
-
func_xform ()
|
7256
|
-
{
|
7257
|
-
func_xform_result=${1%.*}.lo
|
7258
|
-
}
|
7259
|
-
|
7260
|
-
# func_arith arithmetic-term...
|
7261
|
-
func_arith ()
|
7262
|
-
{
|
7263
|
-
func_arith_result=$(( $[*] ))
|
7264
|
-
}
|
7265
|
-
|
7266
|
-
# func_len string
|
7267
|
-
# STRING may not start with a hyphen.
|
7268
|
-
func_len ()
|
7269
|
-
{
|
7270
|
-
func_len_result=${#1}
|
7271
|
-
}
|
7825
|
+
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
|
7826
|
+
# ------------------------------------------------------
|
7827
|
+
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
|
7828
|
+
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
|
7829
|
+
m4_defun([_LT_PROG_FUNCTION_REPLACE],
|
7830
|
+
[dnl {
|
7831
|
+
sed -e '/^$1 ()$/,/^} # $1 /c\
|
7832
|
+
$1 ()\
|
7833
|
+
{\
|
7834
|
+
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
|
7835
|
+
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
|
7836
|
+
&& mv -f "$cfgfile.tmp" "$cfgfile" \
|
7837
|
+
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
7838
|
+
test 0 -eq $? || _lt_function_replace_fail=:
|
7839
|
+
])
|
7272
7840
|
|
7273
|
-
_LT_EOF
|
7274
|
-
;;
|
7275
|
-
*) # Bourne compatible functions.
|
7276
|
-
cat << \_LT_EOF >> "$cfgfile"
|
7277
7841
|
|
7278
|
-
#
|
7279
|
-
#
|
7280
|
-
#
|
7281
|
-
|
7282
|
-
|
7283
|
-
|
7284
|
-
|
7285
|
-
|
7286
|
-
|
7287
|
-
|
7288
|
-
|
7289
|
-
|
7290
|
-
|
7842
|
+
# _LT_PROG_REPLACE_SHELLFNS
|
7843
|
+
# -------------------------
|
7844
|
+
# Replace existing portable implementations of several shell functions with
|
7845
|
+
# equivalent extended shell implementations where those features are available..
|
7846
|
+
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
|
7847
|
+
[if test x"$xsi_shell" = xyes; then
|
7848
|
+
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
|
7849
|
+
case ${1} in
|
7850
|
+
*/*) func_dirname_result="${1%/*}${2}" ;;
|
7851
|
+
* ) func_dirname_result="${3}" ;;
|
7852
|
+
esac])
|
7853
|
+
|
7854
|
+
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
|
7855
|
+
func_basename_result="${1##*/}"])
|
7856
|
+
|
7857
|
+
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
|
7858
|
+
case ${1} in
|
7859
|
+
*/*) func_dirname_result="${1%/*}${2}" ;;
|
7860
|
+
* ) func_dirname_result="${3}" ;;
|
7861
|
+
esac
|
7862
|
+
func_basename_result="${1##*/}"])
|
7291
7863
|
|
7292
|
-
|
7293
|
-
|
7294
|
-
|
7295
|
-
|
7296
|
-
}
|
7864
|
+
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
|
7865
|
+
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
7866
|
+
# positional parameters, so assign one to ordinary parameter first.
|
7867
|
+
func_stripname_result=${3}
|
7868
|
+
func_stripname_result=${func_stripname_result#"${1}"}
|
7869
|
+
func_stripname_result=${func_stripname_result%"${2}"}])
|
7297
7870
|
|
7298
|
-
dnl
|
7299
|
-
|
7300
|
-
|
7871
|
+
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
|
7872
|
+
func_split_long_opt_name=${1%%=*}
|
7873
|
+
func_split_long_opt_arg=${1#*=}])
|
7301
7874
|
|
7302
|
-
|
7303
|
-
|
7304
|
-
|
7305
|
-
# characters, hashes, percent signs, but SUFFIX may contain a leading
|
7306
|
-
# dot (in which case that matches only a dot).
|
7307
|
-
# func_strip_suffix prefix name
|
7308
|
-
func_stripname ()
|
7309
|
-
{
|
7310
|
-
case ${2} in
|
7311
|
-
.*) func_stripname_result=`$ECHO "X${3}" \
|
7312
|
-
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
|
7313
|
-
*) func_stripname_result=`$ECHO "X${3}" \
|
7314
|
-
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
|
7315
|
-
esac
|
7316
|
-
}
|
7875
|
+
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
|
7876
|
+
func_split_short_opt_arg=${1#??}
|
7877
|
+
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
|
7317
7878
|
|
7318
|
-
|
7319
|
-
|
7320
|
-
|
7879
|
+
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
|
7880
|
+
case ${1} in
|
7881
|
+
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
7882
|
+
*) func_lo2o_result=${1} ;;
|
7883
|
+
esac])
|
7321
7884
|
|
7322
|
-
|
7323
|
-
func_opt_split ()
|
7324
|
-
{
|
7325
|
-
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
|
7326
|
-
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
|
7327
|
-
}
|
7885
|
+
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
|
7328
7886
|
|
7329
|
-
|
7330
|
-
func_lo2o ()
|
7331
|
-
{
|
7332
|
-
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
|
7333
|
-
}
|
7887
|
+
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
|
7334
7888
|
|
7335
|
-
#
|
7336
|
-
|
7337
|
-
{
|
7338
|
-
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
|
7339
|
-
}
|
7889
|
+
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
|
7890
|
+
fi
|
7340
7891
|
|
7341
|
-
|
7342
|
-
|
7343
|
-
{
|
7344
|
-
func_arith_result=`expr "$[@]"`
|
7345
|
-
}
|
7892
|
+
if test x"$lt_shell_append" = xyes; then
|
7893
|
+
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
|
7346
7894
|
|
7347
|
-
|
7348
|
-
|
7349
|
-
|
7350
|
-
{
|
7351
|
-
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
|
7352
|
-
}
|
7895
|
+
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
|
7896
|
+
func_quote_for_eval "${2}"
|
7897
|
+
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
|
7898
|
+
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
|
7353
7899
|
|
7354
|
-
|
7355
|
-
|
7900
|
+
# Save a `func_append' function call where possible by direct use of '+='
|
7901
|
+
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
7902
|
+
&& mv -f "$cfgfile.tmp" "$cfgfile" \
|
7903
|
+
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
7904
|
+
test 0 -eq $? || _lt_function_replace_fail=:
|
7905
|
+
else
|
7906
|
+
# Save a `func_append' function call even when '+=' is not available
|
7907
|
+
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
7908
|
+
&& mv -f "$cfgfile.tmp" "$cfgfile" \
|
7909
|
+
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
7910
|
+
test 0 -eq $? || _lt_function_replace_fail=:
|
7911
|
+
fi
|
7356
7912
|
|
7357
|
-
|
7358
|
-
|
7359
|
-
|
7913
|
+
if test x"$_lt_function_replace_fail" = x":"; then
|
7914
|
+
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
|
7915
|
+
fi
|
7916
|
+
])
|
7360
7917
|
|
7361
|
-
#
|
7362
|
-
#
|
7363
|
-
|
7364
|
-
|
7365
|
-
|
7366
|
-
|
7367
|
-
|
7918
|
+
# _LT_PATH_CONVERSION_FUNCTIONS
|
7919
|
+
# -----------------------------
|
7920
|
+
# Determine which file name conversion functions should be used by
|
7921
|
+
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
|
7922
|
+
# for certain cross-compile configurations and native mingw.
|
7923
|
+
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
|
7924
|
+
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
7925
|
+
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
7926
|
+
AC_MSG_CHECKING([how to convert $build file names to $host format])
|
7927
|
+
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
|
7928
|
+
[case $host in
|
7929
|
+
*-*-mingw* )
|
7930
|
+
case $build in
|
7931
|
+
*-*-mingw* ) # actually msys
|
7932
|
+
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
7933
|
+
;;
|
7934
|
+
*-*-cygwin* )
|
7935
|
+
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
7936
|
+
;;
|
7937
|
+
* ) # otherwise, assume *nix
|
7938
|
+
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
7939
|
+
;;
|
7940
|
+
esac
|
7368
7941
|
;;
|
7369
|
-
*)
|
7370
|
-
|
7371
|
-
|
7372
|
-
|
7373
|
-
|
7374
|
-
|
7375
|
-
|
7376
|
-
|
7377
|
-
|
7378
|
-
|
7379
|
-
|
7942
|
+
*-*-cygwin* )
|
7943
|
+
case $build in
|
7944
|
+
*-*-mingw* ) # actually msys
|
7945
|
+
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
7946
|
+
;;
|
7947
|
+
*-*-cygwin* )
|
7948
|
+
lt_cv_to_host_file_cmd=func_convert_file_noop
|
7949
|
+
;;
|
7950
|
+
* ) # otherwise, assume *nix
|
7951
|
+
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
7952
|
+
;;
|
7953
|
+
esac
|
7380
7954
|
;;
|
7381
|
-
|
7955
|
+
* ) # unhandled hosts (and "normal" native builds)
|
7956
|
+
lt_cv_to_host_file_cmd=func_convert_file_noop
|
7957
|
+
;;
|
7958
|
+
esac
|
7959
|
+
])
|
7960
|
+
to_host_file_cmd=$lt_cv_to_host_file_cmd
|
7961
|
+
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
|
7962
|
+
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
|
7963
|
+
[0], [convert $build file names to $host format])dnl
|
7964
|
+
|
7965
|
+
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
|
7966
|
+
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
|
7967
|
+
[#assume ordinary cross tools, or native build.
|
7968
|
+
lt_cv_to_tool_file_cmd=func_convert_file_noop
|
7969
|
+
case $host in
|
7970
|
+
*-*-mingw* )
|
7971
|
+
case $build in
|
7972
|
+
*-*-mingw* ) # actually msys
|
7973
|
+
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
7974
|
+
;;
|
7975
|
+
esac
|
7976
|
+
;;
|
7977
|
+
esac
|
7382
7978
|
])
|
7979
|
+
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
7980
|
+
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
|
7981
|
+
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
|
7982
|
+
[0], [convert $build files to toolchain format])dnl
|
7983
|
+
])# _LT_PATH_CONVERSION_FUNCTIONS
|
7383
7984
|
|
7384
7985
|
# Helper functions for option handling. -*- Autoconf -*-
|
7385
7986
|
#
|
7386
|
-
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation,
|
7987
|
+
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
|
7988
|
+
# Inc.
|
7387
7989
|
# Written by Gary V. Vaughan, 2004
|
7388
7990
|
#
|
7389
7991
|
# This file is free software; the Free Software Foundation gives
|
7390
7992
|
# unlimited permission to copy and/or distribute it, with or without
|
7391
7993
|
# modifications, as long as this notice is preserved.
|
7392
7994
|
|
7393
|
-
# serial
|
7995
|
+
# serial 7 ltoptions.m4
|
7394
7996
|
|
7395
7997
|
# This is to help aclocal find these macros, as it can't see m4_define.
|
7396
7998
|
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
@@ -7505,7 +8107,7 @@ LT_OPTION_DEFINE([LT_INIT], [win32-dll],
|
|
7505
8107
|
[enable_win32_dll=yes
|
7506
8108
|
|
7507
8109
|
case $host in
|
7508
|
-
*-*-cygwin* | *-*-mingw* | *-*-pw32* |
|
8110
|
+
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
7509
8111
|
AC_CHECK_TOOL(AS, as, false)
|
7510
8112
|
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
7511
8113
|
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
@@ -7513,13 +8115,13 @@ case $host in
|
|
7513
8115
|
esac
|
7514
8116
|
|
7515
8117
|
test -z "$AS" && AS=as
|
7516
|
-
_LT_DECL([], [AS], [
|
8118
|
+
_LT_DECL([], [AS], [1], [Assembler program])dnl
|
7517
8119
|
|
7518
8120
|
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
7519
|
-
_LT_DECL([], [DLLTOOL], [
|
8121
|
+
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
|
7520
8122
|
|
7521
8123
|
test -z "$OBJDUMP" && OBJDUMP=objdump
|
7522
|
-
_LT_DECL([], [OBJDUMP], [
|
8124
|
+
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
|
7523
8125
|
])# win32-dll
|
7524
8126
|
|
7525
8127
|
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
@@ -7705,9 +8307,24 @@ dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
|
|
7705
8307
|
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
7706
8308
|
m4_define([_LT_WITH_PIC],
|
7707
8309
|
[AC_ARG_WITH([pic],
|
7708
|
-
[AS_HELP_STRING([--with-pic],
|
8310
|
+
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
|
7709
8311
|
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
7710
|
-
[
|
8312
|
+
[lt_p=${PACKAGE-default}
|
8313
|
+
case $withval in
|
8314
|
+
yes|no) pic_mode=$withval ;;
|
8315
|
+
*)
|
8316
|
+
pic_mode=default
|
8317
|
+
# Look at the argument we got. We use all the common list separators.
|
8318
|
+
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
8319
|
+
for lt_pkg in $withval; do
|
8320
|
+
IFS="$lt_save_ifs"
|
8321
|
+
if test "X$lt_pkg" = "X$lt_p"; then
|
8322
|
+
pic_mode=yes
|
8323
|
+
fi
|
8324
|
+
done
|
8325
|
+
IFS="$lt_save_ifs"
|
8326
|
+
;;
|
8327
|
+
esac],
|
7711
8328
|
[pic_mode=default])
|
7712
8329
|
|
7713
8330
|
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
@@ -7877,31 +8494,31 @@ m4_define([lt_dict_filter],
|
|
7877
8494
|
# unlimited permission to copy and/or distribute it, with or without
|
7878
8495
|
# modifications, as long as this notice is preserved.
|
7879
8496
|
|
7880
|
-
#
|
8497
|
+
# @configure_input@
|
7881
8498
|
|
7882
|
-
# serial
|
8499
|
+
# serial 3337 ltversion.m4
|
7883
8500
|
# This file is part of GNU Libtool
|
7884
8501
|
|
7885
|
-
m4_define([LT_PACKAGE_VERSION], [2.2
|
7886
|
-
m4_define([LT_PACKAGE_REVISION], [1.
|
8502
|
+
m4_define([LT_PACKAGE_VERSION], [2.4.2])
|
8503
|
+
m4_define([LT_PACKAGE_REVISION], [1.3337])
|
7887
8504
|
|
7888
8505
|
AC_DEFUN([LTVERSION_VERSION],
|
7889
|
-
[macro_version='2.2
|
7890
|
-
macro_revision='1.
|
8506
|
+
[macro_version='2.4.2'
|
8507
|
+
macro_revision='1.3337'
|
7891
8508
|
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
7892
8509
|
_LT_DECL(, macro_revision, 0)
|
7893
8510
|
])
|
7894
8511
|
|
7895
8512
|
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
7896
8513
|
#
|
7897
|
-
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
|
8514
|
+
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
|
7898
8515
|
# Written by Scott James Remnant, 2004.
|
7899
8516
|
#
|
7900
8517
|
# This file is free software; the Free Software Foundation gives
|
7901
8518
|
# unlimited permission to copy and/or distribute it, with or without
|
7902
8519
|
# modifications, as long as this notice is preserved.
|
7903
8520
|
|
7904
|
-
# serial
|
8521
|
+
# serial 5 lt~obsolete.m4
|
7905
8522
|
|
7906
8523
|
# These exist entirely to fool aclocal when bootstrapping libtool.
|
7907
8524
|
#
|
@@ -7971,7 +8588,6 @@ m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
|
7971
8588
|
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
7972
8589
|
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
7973
8590
|
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
7974
|
-
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
|
7975
8591
|
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
7976
8592
|
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
7977
8593
|
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
@@ -7984,13 +8600,23 @@ m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
|
7984
8600
|
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
7985
8601
|
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
7986
8602
|
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
7987
|
-
|
7988
|
-
|
8603
|
+
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
|
8604
|
+
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
|
8605
|
+
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
|
8606
|
+
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
|
8607
|
+
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
|
8608
|
+
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
|
8609
|
+
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
8610
|
+
|
8611
|
+
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
|
8612
|
+
# Foundation, Inc.
|
7989
8613
|
#
|
7990
8614
|
# This file is free software; the Free Software Foundation
|
7991
8615
|
# gives unlimited permission to copy and/or distribute it,
|
7992
8616
|
# with or without modifications, as long as this notice is preserved.
|
7993
8617
|
|
8618
|
+
# serial 1
|
8619
|
+
|
7994
8620
|
# AM_AUTOMAKE_VERSION(VERSION)
|
7995
8621
|
# ----------------------------
|
7996
8622
|
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
@@ -8000,7 +8626,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
8000
8626
|
[am__api_version='1.11'
|
8001
8627
|
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
8002
8628
|
dnl require some minimum version. Point them to the right macro.
|
8003
|
-
m4_if([$1], [1.11.
|
8629
|
+
m4_if([$1], [1.11.6], [],
|
8004
8630
|
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
8005
8631
|
])
|
8006
8632
|
|
@@ -8016,19 +8642,21 @@ m4_define([_AM_AUTOCONF_VERSION], [])
|
|
8016
8642
|
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
8017
8643
|
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
8018
8644
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
8019
|
-
[AM_AUTOMAKE_VERSION([1.11.
|
8645
|
+
[AM_AUTOMAKE_VERSION([1.11.6])dnl
|
8020
8646
|
m4_ifndef([AC_AUTOCONF_VERSION],
|
8021
8647
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
8022
8648
|
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
8023
8649
|
|
8024
8650
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
8025
8651
|
|
8026
|
-
# Copyright (C) 2001, 2003, 2005
|
8652
|
+
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
|
8027
8653
|
#
|
8028
8654
|
# This file is free software; the Free Software Foundation
|
8029
8655
|
# gives unlimited permission to copy and/or distribute it,
|
8030
8656
|
# with or without modifications, as long as this notice is preserved.
|
8031
8657
|
|
8658
|
+
# serial 1
|
8659
|
+
|
8032
8660
|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
8033
8661
|
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
8034
8662
|
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
@@ -8110,14 +8738,14 @@ AC_CONFIG_COMMANDS_PRE(
|
|
8110
8738
|
Usually this means the macro was only invoked conditionally.]])
|
8111
8739
|
fi])])
|
8112
8740
|
|
8113
|
-
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
|
8114
|
-
# Free Software Foundation, Inc.
|
8741
|
+
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
|
8742
|
+
# 2010, 2011 Free Software Foundation, Inc.
|
8115
8743
|
#
|
8116
8744
|
# This file is free software; the Free Software Foundation
|
8117
8745
|
# gives unlimited permission to copy and/or distribute it,
|
8118
8746
|
# with or without modifications, as long as this notice is preserved.
|
8119
8747
|
|
8120
|
-
# serial
|
8748
|
+
# serial 12
|
8121
8749
|
|
8122
8750
|
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
8123
8751
|
# written in clear, in which case automake, when reading aclocal.m4,
|
@@ -8157,6 +8785,7 @@ AC_CACHE_CHECK([dependency style of $depcc],
|
|
8157
8785
|
# instance it was reported that on HP-UX the gcc test will end up
|
8158
8786
|
# making a dummy file named `D' -- because `-MD' means `put the output
|
8159
8787
|
# in D'.
|
8788
|
+
rm -rf conftest.dir
|
8160
8789
|
mkdir conftest.dir
|
8161
8790
|
# Copy depcomp to subdir because otherwise we won't find it if we're
|
8162
8791
|
# using a relative directory.
|
@@ -8221,7 +8850,7 @@ AC_CACHE_CHECK([dependency style of $depcc],
|
|
8221
8850
|
break
|
8222
8851
|
fi
|
8223
8852
|
;;
|
8224
|
-
msvisualcpp | msvcmsys)
|
8853
|
+
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
8225
8854
|
# This compiler won't grok `-c -o', but also, the minuso test has
|
8226
8855
|
# not run yet. These depmodes are late enough in the game, and
|
8227
8856
|
# so weak that their functioning should not be impacted.
|
@@ -8286,10 +8915,13 @@ AC_DEFUN([AM_DEP_TRACK],
|
|
8286
8915
|
if test "x$enable_dependency_tracking" != xno; then
|
8287
8916
|
am_depcomp="$ac_aux_dir/depcomp"
|
8288
8917
|
AMDEPBACKSLASH='\'
|
8918
|
+
am__nodep='_no'
|
8289
8919
|
fi
|
8290
8920
|
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
8291
8921
|
AC_SUBST([AMDEPBACKSLASH])dnl
|
8292
8922
|
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
8923
|
+
AC_SUBST([am__nodep])dnl
|
8924
|
+
_AM_SUBST_NOTMAKE([am__nodep])dnl
|
8293
8925
|
])
|
8294
8926
|
|
8295
8927
|
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
@@ -8511,12 +9143,15 @@ for _am_header in $config_headers :; do
|
|
8511
9143
|
done
|
8512
9144
|
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
8513
9145
|
|
8514
|
-
# Copyright (C) 2001, 2003, 2005, 2008
|
9146
|
+
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
|
9147
|
+
# Inc.
|
8515
9148
|
#
|
8516
9149
|
# This file is free software; the Free Software Foundation
|
8517
9150
|
# gives unlimited permission to copy and/or distribute it,
|
8518
9151
|
# with or without modifications, as long as this notice is preserved.
|
8519
9152
|
|
9153
|
+
# serial 1
|
9154
|
+
|
8520
9155
|
# AM_PROG_INSTALL_SH
|
8521
9156
|
# ------------------
|
8522
9157
|
# Define $install_sh.
|
@@ -8556,8 +9191,8 @@ AC_SUBST([am__leading_dot])])
|
|
8556
9191
|
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
8557
9192
|
# From Jim Meyering
|
8558
9193
|
|
8559
|
-
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
|
8560
|
-
# Free Software Foundation, Inc.
|
9194
|
+
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
|
9195
|
+
# 2011 Free Software Foundation, Inc.
|
8561
9196
|
#
|
8562
9197
|
# This file is free software; the Free Software Foundation
|
8563
9198
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -8577,7 +9212,7 @@ AC_DEFUN([AM_MAINTAINER_MODE],
|
|
8577
9212
|
[disable], [m4_define([am_maintainer_other], [enable])],
|
8578
9213
|
[m4_define([am_maintainer_other], [enable])
|
8579
9214
|
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
|
8580
|
-
AC_MSG_CHECKING([whether to
|
9215
|
+
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
8581
9216
|
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
|
8582
9217
|
AC_ARG_ENABLE([maintainer-mode],
|
8583
9218
|
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
|
@@ -8688,12 +9323,15 @@ else
|
|
8688
9323
|
fi
|
8689
9324
|
])
|
8690
9325
|
|
8691
|
-
# Copyright (C) 2003, 2004, 2005, 2006
|
9326
|
+
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
|
9327
|
+
# Inc.
|
8692
9328
|
#
|
8693
9329
|
# This file is free software; the Free Software Foundation
|
8694
9330
|
# gives unlimited permission to copy and/or distribute it,
|
8695
9331
|
# with or without modifications, as long as this notice is preserved.
|
8696
9332
|
|
9333
|
+
# serial 1
|
9334
|
+
|
8697
9335
|
# AM_PROG_MKDIR_P
|
8698
9336
|
# ---------------
|
8699
9337
|
# Check for `mkdir -p'.
|
@@ -8716,13 +9354,14 @@ esac
|
|
8716
9354
|
|
8717
9355
|
# Helper functions for option handling. -*- Autoconf -*-
|
8718
9356
|
|
8719
|
-
# Copyright (C) 2001, 2002, 2003, 2005, 2008
|
9357
|
+
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
|
9358
|
+
# Foundation, Inc.
|
8720
9359
|
#
|
8721
9360
|
# This file is free software; the Free Software Foundation
|
8722
9361
|
# gives unlimited permission to copy and/or distribute it,
|
8723
9362
|
# with or without modifications, as long as this notice is preserved.
|
8724
9363
|
|
8725
|
-
# serial
|
9364
|
+
# serial 5
|
8726
9365
|
|
8727
9366
|
# _AM_MANGLE_OPTION(NAME)
|
8728
9367
|
# -----------------------
|
@@ -8730,13 +9369,13 @@ AC_DEFUN([_AM_MANGLE_OPTION],
|
|
8730
9369
|
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
8731
9370
|
|
8732
9371
|
# _AM_SET_OPTION(NAME)
|
8733
|
-
#
|
9372
|
+
# --------------------
|
8734
9373
|
# Set option NAME. Presently that only means defining a flag for this option.
|
8735
9374
|
AC_DEFUN([_AM_SET_OPTION],
|
8736
9375
|
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
8737
9376
|
|
8738
9377
|
# _AM_SET_OPTIONS(OPTIONS)
|
8739
|
-
#
|
9378
|
+
# ------------------------
|
8740
9379
|
# OPTIONS is a space-separated list of Automake options.
|
8741
9380
|
AC_DEFUN([_AM_SET_OPTIONS],
|
8742
9381
|
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
@@ -8812,12 +9451,14 @@ Check your system clock])
|
|
8812
9451
|
fi
|
8813
9452
|
AC_MSG_RESULT(yes)])
|
8814
9453
|
|
8815
|
-
# Copyright (C) 2001, 2003, 2005
|
9454
|
+
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
|
8816
9455
|
#
|
8817
9456
|
# This file is free software; the Free Software Foundation
|
8818
9457
|
# gives unlimited permission to copy and/or distribute it,
|
8819
9458
|
# with or without modifications, as long as this notice is preserved.
|
8820
9459
|
|
9460
|
+
# serial 1
|
9461
|
+
|
8821
9462
|
# AM_PROG_INSTALL_STRIP
|
8822
9463
|
# ---------------------
|
8823
9464
|
# One issue with vendor `install' (even GNU) is that you can't
|
@@ -8840,13 +9481,13 @@ fi
|
|
8840
9481
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
8841
9482
|
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
8842
9483
|
|
8843
|
-
# Copyright (C) 2006, 2008
|
9484
|
+
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
|
8844
9485
|
#
|
8845
9486
|
# This file is free software; the Free Software Foundation
|
8846
9487
|
# gives unlimited permission to copy and/or distribute it,
|
8847
9488
|
# with or without modifications, as long as this notice is preserved.
|
8848
9489
|
|
8849
|
-
# serial
|
9490
|
+
# serial 3
|
8850
9491
|
|
8851
9492
|
# _AM_SUBST_NOTMAKE(VARIABLE)
|
8852
9493
|
# ---------------------------
|
@@ -8855,13 +9496,13 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
8855
9496
|
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
8856
9497
|
|
8857
9498
|
# AM_SUBST_NOTMAKE(VARIABLE)
|
8858
|
-
#
|
9499
|
+
# --------------------------
|
8859
9500
|
# Public sister of _AM_SUBST_NOTMAKE.
|
8860
9501
|
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
8861
9502
|
|
8862
9503
|
# Check how to create a tarball. -*- Autoconf -*-
|
8863
9504
|
|
8864
|
-
# Copyright (C) 2004, 2005
|
9505
|
+
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
|
8865
9506
|
#
|
8866
9507
|
# This file is free software; the Free Software Foundation
|
8867
9508
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -8883,10 +9524,11 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
8883
9524
|
# a tarball read from stdin.
|
8884
9525
|
# $(am__untar) < result.tar
|
8885
9526
|
AC_DEFUN([_AM_PROG_TAR],
|
8886
|
-
[# Always define AMTAR for backward compatibility.
|
8887
|
-
|
9527
|
+
[# Always define AMTAR for backward compatibility. Yes, it's still used
|
9528
|
+
# in the wild :-( We should find a proper way to deprecate it ...
|
9529
|
+
AC_SUBST([AMTAR], ['$${TAR-tar}'])
|
8888
9530
|
m4_if([$1], [v7],
|
8889
|
-
[am__tar='
|
9531
|
+
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
|
8890
9532
|
[m4_case([$1], [ustar],, [pax],,
|
8891
9533
|
[m4_fatal([Unknown tar format])])
|
8892
9534
|
AC_MSG_CHECKING([how to create a $1 tar archive])
|