diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/lesstif/files/ac_have_libxp.m4.diff | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/lesstif/files/ac_have_libxp.m4.diff')
-rw-r--r-- | recipes/lesstif/files/ac_have_libxp.m4.diff | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/recipes/lesstif/files/ac_have_libxp.m4.diff b/recipes/lesstif/files/ac_have_libxp.m4.diff new file mode 100644 index 0000000000..577bd5de0a --- /dev/null +++ b/recipes/lesstif/files/ac_have_libxp.m4.diff @@ -0,0 +1,57 @@ +Index: lesstif2-0.95.0/ac_have_libxp.m4 +=================================================================== +--- lesstif2-0.95.0.orig/ac_have_libxp.m4 2004-02-01 16:49:40.000000000 +0100 ++++ lesstif2-0.95.0/ac_have_libxp.m4 2006-07-11 11:11:36.000000000 +0200 +@@ -11,6 +11,52 @@ + dnl Makefiles. Perhaps one should immediately add those libs + dnl to link commands which include libXm version2.1?! + dnl ++AC_DEFUN(LT_HAVE_LIBXP, ++[AC_REQUIRE([AC_PATH_X]) ++AC_CACHE_CHECK(whether libXp is available, lt_cv_libxp, ++[lt_save_CFLAGS="$CFLAGS" ++lt_save_CPPFLAGS="$CPPFLAGS" ++lt_save_LIBS="$LIBS" ++LIBS="$X_LIBS -lXp -lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" ++CFLAGS="$X_CFLAGS $CFLAGS" ++CPPFLAGS="$X_CFLAGS $CPPFLAGS" ++AC_TRY_LINK([ ++#include <X11/Intrinsic.h> ++#include <X11/extensions/Print.h> ++],[ ++Display *display=NULL; ++short major_version, minor_version; ++Status rc; ++rc=XpQueryVersion(display, &major_version, &minor_version); ++], ++lt_cv_libxp=yes, ++lt_cv_libxp=no) ++]) ++if test $lt_cv_libxp = yes; then ++ AC_DEFINE(HAVE_LIB_XP) ++ LT_HAVELIBXP=1 ++else ++ LT_HAVELIBXP=0 ++fi ++AM_CONDITIONAL(Have_Libxp, test "$lt_cv_libxp" = "yes") ++AC_SUBST(LT_HAVELIBXP) ++CFLAGS="$lt_save_CFLAGS" ++CPPFLAGS="$lt_save_CPPFLAGS" ++LIBS="$lt_save_LIBS" ++]) ++dnl ++dnl Check for libXp ++dnl In fact this check ensures that ++dnl - <X11/extensions/Print.h> and ++dnl - both libXp and libXext ++dnl are in place ++dnl Perhaps AC_CHECK_LIB() could be used as well, but ++dnl requires the same amount of work to get all linker ++dnl flags and additional libraries specified. ++dnl If the test succeeds 'Have_Libxp' will be defined within our ++dnl Makefiles. Perhaps one should immediately add those libs ++dnl to link commands which include libXm version2.1?! ++dnl + AC_DEFUN([LT_HAVE_LIBXP], + [AC_REQUIRE([AC_PATH_X]) + AC_CACHE_CHECK(whether libXp is available, lt_cv_libxp, |