configure IMO broken

Russell Miller rmiller at duskglow.com
Thu Aug 21 04:19:57 BST 2003


I almost have a patch ready to fix this issue.  Essentially, it
checks whether the qt-dir and the (lib-config --prefix) are the same.
If not, it checks for the existence of (lib-config --prefix)/lib/libqt-mt.so.
If it finds one, it spits out an error at the end of the configure process.

The error is:

  echo "Some required libraries have been found in a location that is not the"
  echo "same as the qt-dir prefix you have specified, but which contains"
  echo "libqt-mt.  This is dangerous because it is possible that"
  echo "a wrong version of libqt-mt may be linked to.  This is probably not"
  echo "what you meant to do.  Installing kde-support into your prefix"
  echo "directory and running configure again should resolve this problem."
  echo ""
  echo "You may ignore this message and continue with the make process, but you"
  echo "are running the risk of dynamic linking errors (unresolved symbols)"
  echo "and other Bad Things."

I've just tested it for libxslt and it works flawlessly.  Attached is that
patch.  Should be similar for the rest of the dependencies (which I haven't
done yet).

--Russell
-------------- next part --------------
--- configure.in.bot.orig	Wed Aug 20 18:29:48 2003
+++ configure.in.bot	Wed Aug 20 18:39:17 2003
@@ -110,3 +110,17 @@
   fi
   all_tests=bad
 fi
+
+if test "$qt_is_not_in_prefix" = "yes"; then
+  echo ""
+  echo "Some required libraries have been found in a location that is not the"
+  echo "same as the qt-dir prefix you have specified, but which contains"
+  echo "contains libqt-mt.  This is dangerous because it is possible that"
+  echo "a wrong version of libqt-mt may be linked to.  This is probably not"
+  echo "what you meant to do.  Installing kde-support into your prefix"
+  echo "directory and running configure again should resolve this problem."
+  echo ""
+  echo "You may ignore this message and continue with the make process, but you"
+  echo "are running the risk of dynamic linking errors (unresolved symbols)"
+  echo "and other Bad Things."
+fi
--- kdoctools/configure.in.in.orig	Wed Aug 20 18:57:14 2003
+++ kdoctools/configure.in.in	Wed Aug 20 21:52:21 2003
@@ -42,6 +42,7 @@
      vers=`$XSLT_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
      if test -n "$vers" && test "$vers" -ge 1000007; then
        LIBXSLT_LIBS="`$XSLT_CONFIG --libs`"
+       LIBXSLT_PREFIX="`$XSLT_CONFIG --prefix`"
        LIBXSLT_RPATH=
        for args in $LIBXSLT_LIBS; do
 	  case $args in
@@ -58,6 +59,16 @@
        HELP_SUBDIR=
      fi
   fi
+
+  echo $ECHO_N "checking for xslt/qt library gotcha... $ECHO_C" >&6
+  if test "x${LIBXSLT_PREFIX}" != "x${with_qt_dir}"; then
+    if test -e "${LIBXSLT_PREFIX}/lib/libqt-mt.so"; then
+      echo $ECHO_N "yes $ECHO_C" >&6
+      qt_is_not_in_prefix="yes"
+    else
+      echo "no $ECHO_C" >&6
+    fi
+  fi
 fi
 
 AC_DEFUN(KDOCTOOLS_CHECK_BZIP2,


More information about the kde-core-devel mailing list