diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-09-05 22:58:05 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-09-05 22:58:05 +0000 |
commit | 6d621baba59ed092fe61579cfb491a0f8eeee412 (patch) | |
tree | 74f163feaec11b75e4759f8019effaad63e4f7b0 /configure.in | |
parent | 790f437cec1cc5002006ca352f6d791328919a40 (diff) | |
download | emacs-6d621baba59ed092fe61579cfb491a0f8eeee412.tar.gz |
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Handle $GCC_LINK_TEST_OPTIONS and
$NON_GCC_LINK_TEST_OPTIONS after the AC_PROG_... macros.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/configure.in b/configure.in index ef93016d717..d7268b1ca84 100644 --- a/configure.in +++ b/configure.in @@ -1200,16 +1200,6 @@ then CC="$CC $NON_GCC_TEST_OPTIONS" fi -if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x -then - ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" -fi - -if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x -then - ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" -fi - #### Some other nice autoconf tests. If you add a test here which #### should make an entry in src/config.h, don't forget to add an #### #undef clause to src/config.h.in for autoconf to modify. @@ -1223,6 +1213,18 @@ if test "x$RANLIB" = x; then AC_PROG_RANLIB fi +dnl Add our options to ac_link now, after it is set up. + +if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x +then + ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" +fi + +if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x +then + ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" +fi + dnl checks for Unix variants AC_AIX @@ -1817,6 +1819,14 @@ if test "${HAVE_X11}" = "yes"; then fi if test "${USE_X_TOOLKIT}" = "MOTIF"; then + AC_CACHE_CHECK(for LessTif where some systems put it, + [AC_TRY_COMPILE([#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>], + [int x = 5;], + emacs_cv_lesstif=yes, emacs_cv_lesstif=no) + if test $emacs_cv_lesstif = yes; then + CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" + LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" + fi AC_CACHE_CHECK(for Motif version 2.1, emacs_cv_motif_version_2_1, [AC_TRY_COMPILE([#include <Xm/Xm.h>], [#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |