Frank Jensen <Frank.Jensen(a)hugin.com> writes:
I notice that "configure" in the XEmacs 21.4.13
distribution no longer
searches in /usr/dt/include for header files. (XEmacs 21.4.12 did
search that directory.) The result is that Dt/Dt.h is not found.
Was that an intentional change?
I'm using Solaris 8.
I do not think this was intentional. It looks to me like the patch:
http://list-archive.xemacs.org/xemacs-patches/200302/msg00137.html
caused this problem. I've included the contents of that patch (cut
and pasted from the web, so it may not feed cleanly to 'patch -R')
here:
diff -u -r1.151.2.11 configure.in
--- configure.in 2003/01/07 03:57:03 1.151.2.11
+++ configure.in 2003/02/14 03:45:20
@@ -2735,23 +2735,30 @@
XE_APPEND(lwlib, MAKE_SUBDIR)
XE_APPEND(lwlib, SRC_SUBDIR_DEPS)
- dnl Try to find Motif/CDE/Tooltalk dirs
- dnl These take precedence over other X libs/includes, so PRE-pend
- for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1"
"/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
- inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
- if test -d "$lib_dir" -a -d "$inc_dir"; then
- case "$x_libraries" in *"$lib_dir"* ) ;; *)
- x_libraries="$lib_dir $x_libraries"
- XE_PREPEND(-L${lib_dir}, X_LIBS) ;;
- esac
- case "$x_includes" in "$inc_dir"* ) ;; *)
- x_includes="$inc_dir $x_includes"
- XE_PREPEND(-I${inc_dir}, X_CFLAGS) ;;
- esac
- break; dnl only need ONE Motif implementation!
- fi
- done
+ dnl Look for Motif, but only if not found in $x_includes and $x_libraries
+ AC_CHECK_HEADER(Xm/Xm.h, [AC_CHECK_LIB(Xm, XmStringFree, got_motif=yes)])
+
+ if test "$got_motif" != "yes"; then
+ dnl Try to find Motif/CDE/Tooltalk dirs
+ dnl These take precedence over other X libs/includes, so PRE-pend
+ for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
+ "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
+ inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
+ if test -d "$lib_dir" -a -d "$inc_dir"; then
+ case "$x_libraries" in *"$lib_dir"* ) ;; *)
+ x_libraries="$lib_dir $x_libraries"
+ XE_PREPEND(-L${lib_dir}, X_LIBS) ;;
+ esac
+ case "$x_includes" in "$inc_dir"* ) ;; *)
+ x_includes="$inc_dir $x_includes"
+ XE_PREPEND(-I${inc_dir}, X_CFLAGS) ;;
+ esac
+ break; dnl only need ONE Motif implementation!
+ fi
+ done
+ fi
+
On my Solaris 5.8 box here are work, the AC_CHECK_HEADER macro
returned true:
checking for Xm/Xm.h... yes
checking for XmStringFree in -lXm... yes
so /usr/dt/{include,lib} were not searched.
Martin, my guess is that this was unintentional, right?
- Vin