1Author: Henning Meirer-Geinitz 2 3 Use "libsane" soname for every backend (all systems but AIX and mingw) 4 5diff --git a/ltmain.sh b/ltmain.sh 6--- a/ltmain.sh 7+++ b/ltmain.sh 8@@ -9708,6 +9708,23 @@ 9 dlname=$soname 10 fi 11 12+ # If -module or -export-dynamic was specified, set the dlname 13+ if test "$module" = yes || test "$export_dynamic" = yes; then 14+ # On all known operating systems, these are identical. 15+ dlname="$soname" 16+ fi 17+ 18+ # On sane-backends the internal name for every lib is "libsane" 19+ # not "libsane-backendname" so that linking to each backend is possible. 20+ case $host in 21+ *mingw*) 22+ ;; 23+ *aix*) 24+ ;; 25+ *) 26+ soname=`echo $soname | sed -e "s/libsane-[A-Za-z_0-9]*/libsane/g"` 27+ esac 28+ 29 lib=$output_objdir/$realname 30 linknames= 31 for link 32@@ -10166,12 +10183,6 @@ 33 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' 34 fi 35 done 36- 37- # If -module or -export-dynamic was specified, set the dlname. 38- if test yes = "$module" || test yes = "$export_dynamic"; then 39- # On all known operating systems, these are identical. 40- dlname=$soname 41- fi 42 fi 43 ;; 44 45