aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-03-16 22:21:31 +0000
committerStefan Monnier2005-03-16 22:21:31 +0000
commit4693dbc99df74d4c8a2e27d582c0b5fbb53420bf (patch)
treebeccfa5f876b41c43e8508d10ec6e08cf647d499
parentd5161e8c9b0ba111fccd41482c0735c3c769d225 (diff)
downloademacs-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--ChangeLog5
-rwxr-xr-xconfigure145
-rw-r--r--configure.in49
3 files changed, 103 insertions, 96 deletions
diff --git a/ChangeLog b/ChangeLog
index 2462370b170..93cdb3d7872 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12005-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
12005-03-10 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 62005-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.
diff --git a/configure b/configure
index d5efd286ff0..32a9d4d94a6 100755
--- a/configure
+++ b/configure
@@ -10680,78 +10680,6 @@ fi
10680fi 10680fi
10681 10681
10682if test "${USE_X_TOOLKIT}" = "MOTIF"; then 10682if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10683 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10684echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10685if test "${emacs_cv_lesstif+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687else
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
10698cat confdefs.h >>conftest.$ac_ext
10699cat >>conftest.$ac_ext <<_ACEOF
10700/* end confdefs.h. */
10701#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10702int
10703main ()
10704{
10705int x = 5;
10706 ;
10707 return 0;
10708}
10709_ACEOF
10710rm -f conftest.$ac_objext
10711if { (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
10733else
10734 echo "$as_me: failed program was:" >&5
10735sed 's/^/| /' conftest.$ac_ext >&5
10736
10737emacs_cv_lesstif=no
10738fi
10739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10740fi
10741echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10742echo "${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
10756echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 10684echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10757if test "${emacs_cv_motif_version_2_1+set}" = set; then 10685if 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
10825echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10826if test "${emacs_cv_lesstif+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
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
10839cat confdefs.h >>conftest.$ac_ext
10840cat >>conftest.$ac_ext <<_ACEOF
10841/* end confdefs.h. */
10842#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10843int
10844main ()
10845{
10846int x = 5;
10847 ;
10848 return 0;
10849}
10850_ACEOF
10851rm -f conftest.$ac_objext
10852if { (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
10874else
10875 echo "$as_me: failed program was:" >&5
10876sed 's/^/| /' conftest.$ac_ext >&5
10877
10878emacs_cv_lesstif=no
10879fi
10880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10881fi
10882echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10883echo "${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
10896fi 10897fi
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
3dnl autoconf 3dnl autoconf
4dnl in the directory containing this script. 4dnl in the directory containing this script.
5dnl 5dnl
6dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003, 2004 6dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7dnl Free Software Foundation, Inc. 7dnl Free Software Foundation, Inc.
8dnl 8dnl
9dnl This file is part of GNU Emacs. 9dnl This file is part of GNU Emacs.
@@ -2080,29 +2080,6 @@ if test "${HAVE_X11}" = "yes"; then
2080fi 2080fi
2081 2081
2082if test "${USE_X_TOOLKIT}" = "MOTIF"; then 2082if 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
2125fi 2126fi
2126 2127