diff options
| author | Stefan Monnier | 2005-03-16 22:21:31 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-03-16 22:21:31 +0000 |
| commit | 4693dbc99df74d4c8a2e27d582c0b5fbb53420bf (patch) | |
| tree | beccfa5f876b41c43e8508d10ec6e08cf647d499 | |
| parent | d5161e8c9b0ba111fccd41482c0735c3c769d225 (diff) | |
| download | emacs-4693dbc99df74d4c8a2e27d582c0b5fbb53420bf.tar.gz emacs-4693dbc99df74d4c8a2e27d582c0b5fbb53420bf.zip | |
Don't let a special LessTif/Motif1.2 install
shadow the main Lesstif/Motif-2.1 libs and includes.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rwxr-xr-x | configure | 145 | ||||
| -rw-r--r-- | configure.in | 49 |
3 files changed, 103 insertions, 96 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * configure.in <Motif>: Don't let a special LessTif/Motif1.2 install | ||
| 4 | shadow the main Lesstif/Motif-2.1 libs and includes. | ||
| 5 | |||
| 1 | 2005-03-10 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 6 | 2005-03-10 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * configure.in: Only add XASSERTS to cppflags. | 8 | * configure.in: Only add XASSERTS to cppflags. |
| @@ -10680,78 +10680,6 @@ fi | |||
| 10680 | fi | 10680 | fi |
| 10681 | 10681 | ||
| 10682 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 10682 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 10683 | echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 | ||
| 10684 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6 | ||
| 10685 | if test "${emacs_cv_lesstif+set}" = set; then | ||
| 10686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 10687 | else | ||
| 10688 | # We put this in CFLAGS temporarily to precede other -I options | ||
| 10689 | # that might be in CFLAGS temporarily. | ||
| 10690 | # We put this in CPPFLAGS where it precedes the other -I options. | ||
| 10691 | OLD_CPPFLAGS=$CPPFLAGS | ||
| 10692 | OLD_CFLAGS=$CFLAGS | ||
| 10693 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | ||
| 10694 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | ||
| 10695 | cat >conftest.$ac_ext <<_ACEOF | ||
| 10696 | /* confdefs.h. */ | ||
| 10697 | _ACEOF | ||
| 10698 | cat confdefs.h >>conftest.$ac_ext | ||
| 10699 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 10700 | /* end confdefs.h. */ | ||
| 10701 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | ||
| 10702 | int | ||
| 10703 | main () | ||
| 10704 | { | ||
| 10705 | int x = 5; | ||
| 10706 | ; | ||
| 10707 | return 0; | ||
| 10708 | } | ||
| 10709 | _ACEOF | ||
| 10710 | rm -f conftest.$ac_objext | ||
| 10711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 10712 | (eval $ac_compile) 2>conftest.er1 | ||
| 10713 | ac_status=$? | ||
| 10714 | grep -v '^ *+' conftest.er1 >conftest.err | ||
| 10715 | rm -f conftest.er1 | ||
| 10716 | cat conftest.err >&5 | ||
| 10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 10718 | (exit $ac_status); } && | ||
| 10719 | { ac_try='test -z "$ac_c_werror_flag" | ||
| 10720 | || test ! -s conftest.err' | ||
| 10721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 10722 | (eval $ac_try) 2>&5 | ||
| 10723 | ac_status=$? | ||
| 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 10725 | (exit $ac_status); }; } && | ||
| 10726 | { ac_try='test -s conftest.$ac_objext' | ||
| 10727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 10728 | (eval $ac_try) 2>&5 | ||
| 10729 | ac_status=$? | ||
| 10730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 10731 | (exit $ac_status); }; }; then | ||
| 10732 | emacs_cv_lesstif=yes | ||
| 10733 | else | ||
| 10734 | echo "$as_me: failed program was:" >&5 | ||
| 10735 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 10736 | |||
| 10737 | emacs_cv_lesstif=no | ||
| 10738 | fi | ||
| 10739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 10740 | fi | ||
| 10741 | echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 | ||
| 10742 | echo "${ECHO_T}$emacs_cv_lesstif" >&6 | ||
| 10743 | if test $emacs_cv_lesstif = yes; then | ||
| 10744 | # Make sure this -I option remains in CPPFLAGS after it is set | ||
| 10745 | # back to REAL_CPPFLAGS. | ||
| 10746 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | ||
| 10747 | # have those other -I options anyway. Ultimately, having this | ||
| 10748 | # directory ultimately in CPPFLAGS will be enough. | ||
| 10749 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | ||
| 10750 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | ||
| 10751 | else | ||
| 10752 | CFLAGS=$OLD_CFLAGS | ||
| 10753 | CPPFLAGS=$OLD_CPPFLAGS | ||
| 10754 | fi | ||
| 10755 | echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 | 10683 | echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
| 10756 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 | 10684 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
| 10757 | if test "${emacs_cv_motif_version_2_1+set}" = set; then | 10685 | if test "${emacs_cv_motif_version_2_1+set}" = set; then |
| @@ -10892,6 +10820,79 @@ cat >>confdefs.h <<\_ACEOF | |||
| 10892 | _ACEOF | 10820 | _ACEOF |
| 10893 | 10821 | ||
| 10894 | fi | 10822 | fi |
| 10823 | else | ||
| 10824 | echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 | ||
| 10825 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6 | ||
| 10826 | if test "${emacs_cv_lesstif+set}" = set; then | ||
| 10827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 10828 | else | ||
| 10829 | # We put this in CFLAGS temporarily to precede other -I options | ||
| 10830 | # that might be in CFLAGS temporarily. | ||
| 10831 | # We put this in CPPFLAGS where it precedes the other -I options. | ||
| 10832 | OLD_CPPFLAGS=$CPPFLAGS | ||
| 10833 | OLD_CFLAGS=$CFLAGS | ||
| 10834 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | ||
| 10835 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | ||
| 10836 | cat >conftest.$ac_ext <<_ACEOF | ||
| 10837 | /* confdefs.h. */ | ||
| 10838 | _ACEOF | ||
| 10839 | cat confdefs.h >>conftest.$ac_ext | ||
| 10840 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 10841 | /* end confdefs.h. */ | ||
| 10842 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | ||
| 10843 | int | ||
| 10844 | main () | ||
| 10845 | { | ||
| 10846 | int x = 5; | ||
| 10847 | ; | ||
| 10848 | return 0; | ||
| 10849 | } | ||
| 10850 | _ACEOF | ||
| 10851 | rm -f conftest.$ac_objext | ||
| 10852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 10853 | (eval $ac_compile) 2>conftest.er1 | ||
| 10854 | ac_status=$? | ||
| 10855 | grep -v '^ *+' conftest.er1 >conftest.err | ||
| 10856 | rm -f conftest.er1 | ||
| 10857 | cat conftest.err >&5 | ||
| 10858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 10859 | (exit $ac_status); } && | ||
| 10860 | { ac_try='test -z "$ac_c_werror_flag" | ||
| 10861 | || test ! -s conftest.err' | ||
| 10862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 10863 | (eval $ac_try) 2>&5 | ||
| 10864 | ac_status=$? | ||
| 10865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 10866 | (exit $ac_status); }; } && | ||
| 10867 | { ac_try='test -s conftest.$ac_objext' | ||
| 10868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 10869 | (eval $ac_try) 2>&5 | ||
| 10870 | ac_status=$? | ||
| 10871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 10872 | (exit $ac_status); }; }; then | ||
| 10873 | emacs_cv_lesstif=yes | ||
| 10874 | else | ||
| 10875 | echo "$as_me: failed program was:" >&5 | ||
| 10876 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 10877 | |||
| 10878 | emacs_cv_lesstif=no | ||
| 10879 | fi | ||
| 10880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 10881 | fi | ||
| 10882 | echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 | ||
| 10883 | echo "${ECHO_T}$emacs_cv_lesstif" >&6 | ||
| 10884 | if test $emacs_cv_lesstif = yes; then | ||
| 10885 | # Make sure this -I option remains in CPPFLAGS after it is set | ||
| 10886 | # back to REAL_CPPFLAGS. | ||
| 10887 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | ||
| 10888 | # have those other -I options anyway. Ultimately, having this | ||
| 10889 | # directory ultimately in CPPFLAGS will be enough. | ||
| 10890 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | ||
| 10891 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | ||
| 10892 | else | ||
| 10893 | CFLAGS=$OLD_CFLAGS | ||
| 10894 | CPPFLAGS=$OLD_CPPFLAGS | ||
| 10895 | fi | ||
| 10895 | fi | 10896 | fi |
| 10896 | fi | 10897 | fi |
| 10897 | 10898 | ||
diff --git a/configure.in b/configure.in index 291ae9a9c08..1a818a5b74e 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3,7 +3,7 @@ dnl To rebuild the `configure' script from this, execute the command | |||
| 3 | dnl autoconf | 3 | dnl autoconf |
| 4 | dnl in the directory containing this script. | 4 | dnl in the directory containing this script. |
| 5 | dnl | 5 | dnl |
| 6 | dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003, 2004 | 6 | dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
| 7 | dnl Free Software Foundation, Inc. | 7 | dnl Free Software Foundation, Inc. |
| 8 | dnl | 8 | dnl |
| 9 | dnl This file is part of GNU Emacs. | 9 | dnl This file is part of GNU Emacs. |
| @@ -2080,29 +2080,6 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 2080 | fi | 2080 | fi |
| 2081 | 2081 | ||
| 2082 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 2082 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 2083 | AC_CACHE_CHECK(for LessTif where some systems put it, emacs_cv_lesstif, | ||
| 2084 | # We put this in CFLAGS temporarily to precede other -I options | ||
| 2085 | # that might be in CFLAGS temporarily. | ||
| 2086 | # We put this in CPPFLAGS where it precedes the other -I options. | ||
| 2087 | OLD_CPPFLAGS=$CPPFLAGS | ||
| 2088 | OLD_CFLAGS=$CFLAGS | ||
| 2089 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | ||
| 2090 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | ||
| 2091 | [AC_TRY_COMPILE([#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>], | ||
| 2092 | [int x = 5;], | ||
| 2093 | emacs_cv_lesstif=yes, emacs_cv_lesstif=no)]) | ||
| 2094 | if test $emacs_cv_lesstif = yes; then | ||
| 2095 | # Make sure this -I option remains in CPPFLAGS after it is set | ||
| 2096 | # back to REAL_CPPFLAGS. | ||
| 2097 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | ||
| 2098 | # have those other -I options anyway. Ultimately, having this | ||
| 2099 | # directory ultimately in CPPFLAGS will be enough. | ||
| 2100 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | ||
| 2101 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | ||
| 2102 | else | ||
| 2103 | CFLAGS=$OLD_CFLAGS | ||
| 2104 | CPPFLAGS=$OLD_CPPFLAGS | ||
| 2105 | fi | ||
| 2106 | AC_CACHE_CHECK(for Motif version 2.1, emacs_cv_motif_version_2_1, | 2083 | AC_CACHE_CHECK(for Motif version 2.1, emacs_cv_motif_version_2_1, |
| 2107 | [AC_TRY_COMPILE([#include <Xm/Xm.h>], | 2084 | [AC_TRY_COMPILE([#include <Xm/Xm.h>], |
| 2108 | [#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | 2085 | [#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
| @@ -2121,6 +2098,30 @@ Motif version prior to 2.1. | |||
| 2121 | AC_DEFINE(HAVE_LIBXP, 1, | 2098 | AC_DEFINE(HAVE_LIBXP, 1, |
| 2122 | [Define to 1 if you have the Xp library (-lXp).]) | 2099 | [Define to 1 if you have the Xp library (-lXp).]) |
| 2123 | fi | 2100 | fi |
| 2101 | else | ||
| 2102 | AC_CACHE_CHECK(for LessTif where some systems put it, emacs_cv_lesstif, | ||
| 2103 | # We put this in CFLAGS temporarily to precede other -I options | ||
| 2104 | # that might be in CFLAGS temporarily. | ||
| 2105 | # We put this in CPPFLAGS where it precedes the other -I options. | ||
| 2106 | OLD_CPPFLAGS=$CPPFLAGS | ||
| 2107 | OLD_CFLAGS=$CFLAGS | ||
| 2108 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | ||
| 2109 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | ||
| 2110 | [AC_TRY_COMPILE([#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>], | ||
| 2111 | [int x = 5;], | ||
| 2112 | emacs_cv_lesstif=yes, emacs_cv_lesstif=no)]) | ||
| 2113 | if test $emacs_cv_lesstif = yes; then | ||
| 2114 | # Make sure this -I option remains in CPPFLAGS after it is set | ||
| 2115 | # back to REAL_CPPFLAGS. | ||
| 2116 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | ||
| 2117 | # have those other -I options anyway. Ultimately, having this | ||
| 2118 | # directory ultimately in CPPFLAGS will be enough. | ||
| 2119 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | ||
| 2120 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | ||
| 2121 | else | ||
| 2122 | CFLAGS=$OLD_CFLAGS | ||
| 2123 | CPPFLAGS=$OLD_CPPFLAGS | ||
| 2124 | fi | ||
| 2124 | fi | 2125 | fi |
| 2125 | fi | 2126 | fi |
| 2126 | 2127 | ||