aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-09-19 15:25:38 +0000
committerRichard M. Stallman2002-09-19 15:25:38 +0000
commit9811b1cf6fad6f23aece50b19bac827a459daae4 (patch)
tree01e7bf817a80cb6be24ac3eb37e4bb53f0846693
parent5967d9633f6129517a27455ef3ddedce10ddd613 (diff)
downloademacs-9811b1cf6fad6f23aece50b19bac827a459daae4.tar.gz
emacs-9811b1cf6fad6f23aece50b19bac827a459daae4.zip
Fix the LessTif-directory-finder for real.
-rw-r--r--ChangeLog4
-rw-r--r--configure.in22
2 files changed, 23 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a89d07d6d9..98e3f2b8e52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12002-09-19 Richard M. Stallman <rms@gnu.org>
2
3 * configure.in: Fix the LessTif-directory-finder for real.
4
12002-09-14 Richard M. Stallman <rms@gnu.org> 52002-09-14 Richard M. Stallman <rms@gnu.org>
2 6
3 * Makefile.in (maybe_bootstrap): Test for complete absence 7 * Makefile.in (maybe_bootstrap): Test for complete absence
diff --git a/configure.in b/configure.in
index c511be2e9d9..2e077da175a 100644
--- a/configure.in
+++ b/configure.in
@@ -1659,8 +1659,9 @@ else
1659fi 1659fi
1660AC_MSG_RESULT($HAVE_XFREE386) 1660AC_MSG_RESULT($HAVE_XFREE386)
1661 1661
1662# Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used 1662# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
1663# for the tests that follow. We set it back to REAL_CFLAGS later on. 1663# used for the tests that follow. We set them back to REAL_CFLAGS and
1664# REAL_CPPFLAGS later on.
1664 1665
1665REAL_CPPFLAGS="$CPPFLAGS" 1666REAL_CPPFLAGS="$CPPFLAGS"
1666 1667
@@ -1831,12 +1832,27 @@ fi
1831 1832
1832if test "${USE_X_TOOLKIT}" = "MOTIF"; then 1833if test "${USE_X_TOOLKIT}" = "MOTIF"; then
1833 AC_CACHE_CHECK(for LessTif where some systems put it, emacs_cv_lesstif, 1834 AC_CACHE_CHECK(for LessTif where some systems put it, emacs_cv_lesstif,
1835 # We put this in CFLAGS temporarily to precede other -I options
1836 # that might be in CFLAGS temporarily.
1837 # We put this in CPPFLAGS where it precedes the other -I options.
1838 OLD_CPPFLAGS=$CPPFLAGS
1839 OLD_CFLAGS=$CFLAGS
1840 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
1841 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
1834 [AC_TRY_COMPILE([#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>], 1842 [AC_TRY_COMPILE([#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>],
1835 [int x = 5;], 1843 [int x = 5;],
1836 emacs_cv_lesstif=yes, emacs_cv_lesstif=no)]) 1844 emacs_cv_lesstif=yes, emacs_cv_lesstif=no)])
1837 if test $emacs_cv_lesstif = yes; then 1845 if test $emacs_cv_lesstif = yes; then
1838 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 1846 # Make sure this -I option remains in CPPFLAGS after it is set
1847 # back to REAL_CPPFLAGS.
1848 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
1849 # have those other -I options anyway. Ultimately, having this
1850 # directory ultimately in CPPFLAGS will be enough.
1851 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
1839 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" 1852 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
1853 else
1854 CFLAGS=$OLD_CFLAGS
1855 CPPFLAGS=$OLD_CPPFLAGS
1840 fi 1856 fi
1841 AC_CACHE_CHECK(for Motif version 2.1, emacs_cv_motif_version_2_1, 1857 AC_CACHE_CHECK(for Motif version 2.1, emacs_cv_motif_version_2_1,
1842 [AC_TRY_COMPILE([#include <Xm/Xm.h>], 1858 [AC_TRY_COMPILE([#include <Xm/Xm.h>],