]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1445: openSUSE: configure doesn't find the Motif library v9.0.1445
authorBram Moolenaar <Bram@vim.org>
Wed, 12 Apr 2023 15:24:03 +0000 (16:24 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 12 Apr 2023 15:24:03 +0000 (16:24 +0100)
Problem:    openSUSE: configure doesn't find the Motif library. (Tony
            Mechelynck)
Solution:   Also search in /usr/lib64.

src/auto/configure
src/configure.ac
src/version.c

index 57e498fc6a6156a4dcd7fdaa74bce78457a1d6ce..77d2f5e6570585c5814ef970e112e8ce38ad36e3 100755 (executable)
@@ -10216,9 +10216,9 @@ $as_echo "no" >&6; }
 
         GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
 
-                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
+                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
-    gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
+    gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib64 /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
     GUI_LIB_LOC=
     for try in $gui_libs; do
       for libtry in "$try"/libXm.a "$try"/libXm.dll.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
@@ -10228,7 +10228,8 @@ $as_echo_n "checking for location of Motif GUI libs... " >&6; }
       done
     done
     if test -n "$GUI_LIB_LOC"; then
-            if test "$GUI_LIB_LOC" = /usr/lib \
+                  if test "$GUI_LIB_LOC" = /usr/lib \
+          -o "$GUI_LIB_LOC" = /usr/lib64 \
           -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
           -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
        GUI_LIB_LOC=
index ec4141dc87a95d8da0c695e3240609989da5e8fc..0c776a2c422c999fa8f27059332bb8b93689049d 100644 (file)
@@ -2976,8 +2976,9 @@ if test -z "$SKIP_MOTIF"; then
     dnl Ubuntu has libXm.so in /usr/lib/i386-linux-gnu and elsewhere.  The
     dnl linker will figure out which one to use, we only check if one exists.
     dnl Cygwin uses the .dll.a extension.
+    dnl OpenSUSE appears to use /usr/lib64.
     AC_MSG_CHECKING(for location of Motif GUI libs)
-    gui_libs="`echo $x_libraries|sed 's%/[^/][^/]*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
+    gui_libs="`echo $x_libraries|sed 's%/[^/][^/]*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib64 /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
     GUI_LIB_LOC=
     for try in $gui_libs; do
       for libtry in "$try"/libXm.a "$try"/libXm.dll.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
@@ -2987,8 +2988,10 @@ if test -z "$SKIP_MOTIF"; then
       done
     done
     if test -n "$GUI_LIB_LOC"; then
-      dnl Remove /usr/lib, it causes trouble on some systems
+      dnl Remove /usr/lib, it causes trouble on some systems.
+      dnl For consistency also remove other standard lib directories.
       if test "$GUI_LIB_LOC" = /usr/lib \
+          -o "$GUI_LIB_LOC" = /usr/lib64 \
           -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
           -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
        GUI_LIB_LOC=
index b5df8c5160421f75c271783abaf249539a92c2e8..e9a53d7bc7ef1a3d148164b073f1dc290266c919 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1445,
 /**/
     1444,
 /**/