sane-backends/sane-backends-1.0.20-rpath.patch

70 lines
2.0 KiB
Diff
Raw Normal View History

2009-08-31 16:04:19 +00:00
commit 1249be5ecbd635feeb880b2c60582b34bc04a798
Author: Nils Philippsen <nils@redhat.com>
2009-08-31 16:04:19 +00:00
Date: Mon Aug 31 16:38:23 2009 +0200
2009-08-31 16:04:19 +00:00
path: rpath
Squashed commit of the following:
2009-08-31 16:04:19 +00:00
commit c37206c9fa724e19f6929d8a77e5399ca6b87f1f
Author: Nils Philippsen <nils@redhat.com>
Date: Mon Aug 31 16:34:42 2009 +0200
fix --enable-rpath
commit be2982b2d1ae4d889b4cecec289336b4b03579aa
Author: Nils Philippsen <nils@redhat.com>
Date: Tue Jun 2 16:12:23 2009 +0200
add --enable-rpath to configure.in
make using runtime library search path configurable
diff --git a/acinclude.m4 b/acinclude.m4
2009-08-31 16:04:19 +00:00
index 6413b60..b2bb065 100644
--- a/acinclude.m4
+++ b/acinclude.m4
2009-08-31 16:04:19 +00:00
@@ -383,19 +383,29 @@ dnl
AC_DEFUN([SANE_LINKER_RPATH],
[dnl AC_REQUIRE([AC_SUBST])dnl This line resulted in an empty AC_SUBST() !!
- AC_CACHE_CHECK([linker parameter to set runtime link path], my_cv_LINKER_RPATH,
- [my_cv_LINKER_RPATH=
- case "$host_os" in
- linux* | freebsd* | netbsd* | openbsd* | irix*)
- # I believe this only works with GNU ld [pere 2001-04-16]
- my_cv_LINKER_RPATH="-Wl,-rpath,"
- ;;
- solaris*)
- my_cv_LINKER_RPATH="-R "
- ;;
- esac
- ])
- LINKER_RPATH="$my_cv_LINKER_RPATH"
+ AC_MSG_CHECKING([whether runtime link path should be used])
+ AC_ARG_ENABLE([rpath],
+ [AS_HELP_STRING([--enable-rpath],
2009-08-31 16:04:19 +00:00
+ [use runtime library search path @<:@default=yes@:>@])])
+
+ LINKER_RPATH=
+ AS_IF([test "x$enable_rpath" != xno],
+ AC_MSG_RESULT([yes])
+ [AC_CACHE_CHECK([linker parameter to set runtime link path], my_cv_LINKER_RPATH,
+ [my_cv_LINKER_RPATH=
+ case "$host_os" in
+ linux* | freebsd* | netbsd* | openbsd* | irix*)
+ # I believe this only works with GNU ld [pere 2001-04-16]
+ my_cv_LINKER_RPATH="-Wl,-rpath,"
+ ;;
+ solaris*)
+ my_cv_LINKER_RPATH="-R "
+ ;;
+ esac
+ ])
+ LINKER_RPATH="$my_cv_LINKER_RPATH"],
+ [AC_MSG_RESULT([no])
+ LINKER_RPATH=])
AC_SUBST(LINKER_RPATH)dnl
])