aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorStefan Monnier2005-03-16 22:21:31 +0000
committerStefan Monnier2005-03-16 22:21:31 +0000
commit4693dbc99df74d4c8a2e27d582c0b5fbb53420bf (patch)
treebeccfa5f876b41c43e8508d10ec6e08cf647d499 /configure
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure145
1 files changed, 73 insertions, 72 deletions
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