# HG changeset patch # User james # Date 1143735747 0 # Node ID d45de99b5d7913c34a35ff8f4418bd2b7b8cd7db # Parent 90856eac4a5601f5daf7925d8304939a843c0f26 [xemacs-hg @ 2006-03-30 16:22:26 by james] Fix FOR_MSW detection with the XPM library. See xemacs-patches message . diff -r 90856eac4a56 -r d45de99b5d79 ChangeLog --- a/ChangeLog Wed Mar 29 21:51:10 2006 +0000 +++ b/ChangeLog Thu Mar 30 16:22:27 2006 +0000 @@ -1,3 +1,7 @@ +2006-03-30 Jerry James + + * configure.ac: Fix FOR_MSW XPM test, broken by previous update. + 2006-03-27 Jerry James * aclocal.m4: Updates for autoconf 2.59. diff -r 90856eac4a56 -r d45de99b5d79 configure --- a/configure Wed Mar 29 21:51:10 2006 +0000 +++ b/configure Thu Mar 30 16:22:27 2006 +0000 @@ -16430,7 +16430,7 @@ /usr/openwin/share/include' if test "$ac_x_includes" = no; then - # Guess where to find include files, by looking for Intrinsic.h. + # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -16438,7 +16438,7 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 @@ -16465,7 +16465,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 for ac_dir in $ac_x_header_dirs; do - if test -r "$ac_dir/X11/Intrinsic.h"; then + if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi @@ -16486,11 +16486,11 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include -int -main () -{ -XtMalloc (0) +#include +int +main () +{ +XrmInitialize () ; return 0; } @@ -23606,7 +23606,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -XpmCreatePixmapFromData() + +int +main () +{ +XpmCreatePixmapFromData(); + ; + return 0; +} _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 diff -r 90856eac4a56 -r d45de99b5d79 configure.ac --- a/configure.ac Wed Mar 29 21:51:10 2006 +0000 +++ b/configure.ac Thu Mar 30 16:22:27 2006 +0000 @@ -4014,7 +4014,7 @@ XE_PREPEND("$incpath_xpm", XE_CFLAGS) AC_MSG_CHECKING([for "FOR_MSW" xpm]) xe_check_libs=-lXpm - AC_LINK_IFELSE([AC_LANG_SOURCE([XpmCreatePixmapFromData()])], + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[XpmCreatePixmapFromData();])], [xpm_for_msw=no], [xpm_for_msw=yes]) xe_check_libs=