patch-configure_ac 998 B

123456789101112131415161718192021222324252627282930313233
  1. $OpenBSD: patch-configure_ac,v 1.1.1.1 2013/04/11 14:05:18 zhuk Exp $
  2. --- configure.ac.orig Tue Jan 29 09:29:22 2013
  3. +++ configure.ac Wed Feb 13 17:18:09 2013
  4. @@ -17,8 +17,13 @@ AC_REVISION([$Revision: 1.1.1.1 $])
  5. AC_SUBST([PACKAGE_VERSION])
  6. AC_DEFINE_UNQUOTED([WCSLIB_VERSION], [$PACKAGE_VERSION], [Define wcslib version])
  7. -# Library version number, same as package version.
  8. -LIBVER="$PACKAGE_VERSION"
  9. +# Library version number. Usually same as package version,
  10. +# but could be different on some OSes, e.g., OpenBSD.
  11. +if test "x${LIBwcs_VERSION}" = x ; then
  12. + LIBVER="$PACKAGE_VERSION"
  13. +else
  14. + LIBVER="$LIBwcs_VERSION"
  15. +fi
  16. AC_SUBST([LIBVER])
  17. AC_CONFIG_SRCDIR([C/wcs.h])
  18. @@ -256,6 +261,12 @@ if test "x$ac_cv_c_compiler_gnu" = xyes ; then
  19. CFLAGS="$CFLAGS -mdynamic-no-pic"
  20. ;;
  21. esac
  22. + ;;
  23. + openbsd*)
  24. + SHRLIB="libwcs.so.$LIBVER"
  25. + SONAME="$SHRLIB"
  26. + SHRLD="$SHRLD -shared -Wl,-h\$(SONAME)"
  27. + SHRLN=
  28. ;;
  29. *)
  30. # Covers Linux and Solaris at least.