patch-aclocal_m4 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- libtirpc-0.2.0.orig/aclocal.m4 2009-05-29 00:13:37.000000000 +0200
  3. +++ libtirpc-0.2.0/aclocal.m4 2009-05-31 05:10:54.000000000 +0200
  4. @@ -13,15 +13,15 @@
  5. m4_ifndef([AC_AUTOCONF_VERSION],
  6. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7. -m4_if(AC_AUTOCONF_VERSION, [2.63],,
  8. -[m4_warning([this file was generated for autoconf 2.63.
  9. +m4_if(AC_AUTOCONF_VERSION, [2.61],,
  10. +[m4_warning([this file was generated for autoconf 2.61.
  11. You have another version of autoconf. It may work, but is not guaranteed to.
  12. If you have problems, you may need to regenerate the build system entirely.
  13. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  14. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  15. -# serial 52 AC_PROG_LIBTOOL
  16. +# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
  17. # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  18. @@ -645,7 +645,6 @@ s390*-*linux*|sparc*-*linux*)
  19. esac
  20. ;;
  21. *64-bit*)
  22. - libsuff=64
  23. case $host in
  24. x86_64-*kfreebsd*-gnu)
  25. LD="${LD-ld} -m elf_x86_64_fbsd"
  26. @@ -1708,13 +1707,11 @@ linux* | k*bsd*-gnu)
  27. # Some rework will be needed to allow for fast_install
  28. # before this can be enabled.
  29. hardcode_into_libs=yes
  30. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  32. # Append ld.so.conf contents to the search path
  33. if test -f /etc/ld.so.conf; then
  34. 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' ' '`
  35. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  36. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  37. fi
  38. # We used to test for /lib/ld.so.1 and disable shared libraries on
  39. @@ -1726,6 +1723,18 @@ linux* | k*bsd*-gnu)
  40. dynamic_linker='GNU/Linux ld.so'
  41. ;;
  42. +netbsdelf*-gnu)
  43. + version_type=linux
  44. + need_lib_prefix=no
  45. + need_version=no
  46. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  47. + soname_spec='${libname}${release}${shared_ext}$major'
  48. + shlibpath_var=LD_LIBRARY_PATH
  49. + shlibpath_overrides_runpath=no
  50. + hardcode_into_libs=yes
  51. + dynamic_linker='NetBSD ld.elf_so'
  52. + ;;
  53. +
  54. netbsd*)
  55. version_type=sunos
  56. need_lib_prefix=no
  57. @@ -2507,7 +2516,7 @@ linux* | k*bsd*-gnu)
  58. lt_cv_deplibs_check_method=pass_all
  59. ;;
  60. -netbsd*)
  61. +netbsd* | netbsdelf*-gnu)
  62. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  63. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  64. else
  65. @@ -3514,7 +3523,7 @@ case $host_os in
  66. ;;
  67. esac
  68. ;;
  69. - netbsd*)
  70. + netbsd* | netbsdelf*-gnu)
  71. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  72. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  73. wlarc=
  74. @@ -5206,7 +5215,7 @@ AC_MSG_CHECKING([for $compiler option to
  75. ;;
  76. esac
  77. ;;
  78. - netbsd*)
  79. + netbsd* | netbsdelf*-gnu)
  80. ;;
  81. osf3* | osf4* | osf5*)
  82. case $cc_basename in
  83. @@ -5583,6 +5592,9 @@ ifelse([$1],[CXX],[
  84. cygwin* | mingw*)
  85. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  86. ;;
  87. + linux* | k*bsd*-gnu)
  88. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  89. + ;;
  90. *)
  91. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  92. ;;
  93. @@ -5791,12 +5803,13 @@ EOF
  94. $echo "local: *; };" >> $output_objdir/$libname.ver~
  95. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  96. fi
  97. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  98. else
  99. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  100. fi
  101. ;;
  102. - netbsd*)
  103. + netbsd* | netbsdelf*-gnu)
  104. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  105. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  106. wlarc=
  107. @@ -6227,7 +6240,7 @@ _LT_EOF
  108. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  109. ;;
  110. - netbsd*)
  111. + netbsd* | netbsdelf*-gnu)
  112. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  113. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  114. else
  115. @@ -6726,14 +6739,16 @@ fi])
  116. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  117. # ---------------------------------------------
  118. m4_define([_PKG_CONFIG],
  119. -[if test -n "$$1"; then
  120. - pkg_cv_[]$1="$$1"
  121. - elif test -n "$PKG_CONFIG"; then
  122. - PKG_CHECK_EXISTS([$3],
  123. - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  124. - [pkg_failed=yes])
  125. - else
  126. - pkg_failed=untried
  127. +[if test -n "$PKG_CONFIG"; then
  128. + if test -n "$$1"; then
  129. + pkg_cv_[]$1="$$1"
  130. + else
  131. + PKG_CHECK_EXISTS([$3],
  132. + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  133. + [pkg_failed=yes])
  134. + fi
  135. +else
  136. + pkg_failed=untried
  137. fi[]dnl
  138. ])# _PKG_CONFIG
  139. @@ -6777,9 +6792,9 @@ See the pkg-config man page for more det
  140. if test $pkg_failed = yes; then
  141. _PKG_SHORT_ERRORS_SUPPORTED
  142. if test $_pkg_short_errors_supported = yes; then
  143. - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
  144. + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
  145. else
  146. - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
  147. + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  148. fi
  149. # Put the nasty error message in config.log where it belongs
  150. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD