aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in149
1 files changed, 43 insertions, 106 deletions
diff --git a/configure.in b/configure.in
index abf68ea4af1..ea4d9adf6ea 100644
--- a/configure.in
+++ b/configure.in
@@ -33,13 +33,13 @@ AC_ARG_WITH(x-toolkit,
33 n | no ) val=no ;; 33 n | no ) val=no ;;
34 l | lu | luc | luci | lucid ) val=lucid ;; 34 l | lu | luc | luci | lucid ) val=lucid ;;
35 a | at | ath | athe | athena ) val=athena ;; 35 a | at | ath | athe | athena ) val=athena ;;
36# These don't currently work. 36dnl These don't currently work.
37# m | mo | mot | moti | motif ) val=motif ;; 37dnl m | mo | mot | moti | motif ) val=motif ;;
38# o | op | ope | open | open- | open-l | open-lo \ 38dnl o | op | ope | open | open- | open-l | open-lo \
39# | open-loo | open-look ) val=open-look ;; 39dnl | open-loo | open-look ) val=open-look ;;
40 * ) 40 * )
41[#] AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value 41dnl AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value
42[#]which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'.]) 42dnl which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'.])
43AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value 43AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value
44which is \`yes', \`no', \`lucid', or \`athena'. 44which is \`yes', \`no', \`lucid', or \`athena'.
45Currently, \`yes', \`athena' and \`lucid' are synonyms.]) 45Currently, \`yes', \`athena' and \`lucid' are synonyms.])
@@ -49,17 +49,14 @@ Currently, \`yes', \`athena' and \`lucid' are synonyms.])
49]) 49])
50AC_ARG_WITH(gcc, 50AC_ARG_WITH(gcc,
51[ --with-gcc Use GCC to compile Emacs]) 51[ --with-gcc Use GCC to compile Emacs])
52AC_ARG_ENABLE(in-place, 52dnl AC_ARG_ENABLE(single-tree,
53[ --enable-in-place Use libraries and data files directly out of the 53dnl [ --enable-single-tree Create a directory tree at DIR which looks like:
54 source tree]) 54dnl .../DIR/bin/CONFIGNAME (emacs, etags, etc.)
55AC_ARG_ENABLE(single-tree, 55dnl .../DIR/bin/CONFIGNAME/etc (movemail, etc.)
56[ --enable-single-tree Create a directory tree at DIR which looks like: 56dnl .../DIR/common/lisp (emacs' lisp files)
57 .../DIR/bin/CONFIGNAME (emacs, etags, etc.) 57dnl .../DIR/common/site-lisp (local lisp files)
58 .../DIR/bin/CONFIGNAME/etc (movemail, etc.) 58dnl .../DIR/common/lib (DOC, TUTORIAL, etc.)
59 .../DIR/common/lisp (emacs' lisp files) 59dnl .../DIR/common/lock (lockfiles)])
60 .../DIR/common/site-lisp (local lisp files)
61 .../DIR/common/lib (DOC, TUTORIAL, etc.)
62 .../DIR/common/lock (lockfiles)])
63 60
64#### Make srcdir absolute, if it isn't already. It's important to 61#### Make srcdir absolute, if it isn't already. It's important to
65#### avoid running the path through pwd unnecessary, since pwd can 62#### avoid running the path through pwd unnecessary, since pwd can
@@ -840,82 +837,32 @@ AC_LONG_FILE_NAMES
840dnl other checks for UNIX variants 837dnl other checks for UNIX variants
841 838
842#### Choose a window system. 839#### Choose a window system.
843AC_MSG_CHECKING(for specified window system)
844 840
845window_system='' 841case "${with_x10}" in
846case "${with_x}" in 842 yes ) window_system=x10 ;;
847 yes ) window_system=${window_system}x11 ;; 843 no ) window_system=none ;;
848 no ) window_system=${window_system}none ;; 844 *) test -n "$with_x11" && with_x="$with_x11"
849esac 845 AC_FIND_X
850 846 if test "$no_x" = yes; then
851case "${window_system}" in 847 window_system=none
852 .* ) ;;
853 * )
854 case "${with_x11}" in
855 yes ) window_system=x11 ;;
856 no ) window_system=none ;;
857 esac
858 case "${with_x10}" in
859 yes ) window_system=x10 ;;
860 no ) window_system=none ;;
861 esac ;;
862esac
863
864case "${window_system}" in
865 "none" | "x11" | "x10" ) ;;
866 "" )
867 # --x-includes or --x-libraries implies --with-x11.
868 if test "${x_includes}" != NONE || test "${x_libraries}" != NONE; then
869 window_system=x11
870 else 848 else
871 # If the user didn't specify a window system and we found X11, use it.
872 if test -r /usr/lib/libX11.a \
873 -o -d /usr/include/X11 \
874 -o -d /usr/X386/include \
875 -o -d ${x_includes}/X11 ; then
876 window_system=x11
877 fi
878 fi
879 ;;
880 * )
881 AC_MSG_ERROR(Don't specify a window system more than once.)
882 ;;
883esac
884
885AC_MSG_RESULT(${window_system})
886
887case "${window_system}" in
888 "" | "x11" )
889 ### If the user hasn't specified where we should find X, try
890 ### letting Autoconf figure that out.
891 if test "${x_includes}" = NONE && test "${x_libraries}" = NONE; then
892 AC_FIND_X
893 fi
894 if test "${x_includes}" != NONE || test "${x_libraries}" != NONE; then
895 window_system=x11 849 window_system=x11
896 fi 850 fi
897 ;; 851 ;;
898esac 852esac
899 853
900test -z "${window_system}" && window_system=none
901
902test "${x_libraries}" != NONE && LD_SWITCH_X_SITE="-L${x_libraries}" 854test "${x_libraries}" != NONE && LD_SWITCH_X_SITE="-L${x_libraries}"
903test "${x_libraries}" != NONE && LD_SWITCH_X_SITE_AUX="-R${x_libraries}" 855test "${x_libraries}" != NONE && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
904test "${x_includes}" != NONE && C_SWITCH_X_SITE="-I${x_includes}" 856test "${x_includes}" != NONE && C_SWITCH_X_SITE="-I${x_includes}"
905 857
906# Avoid forcing the search of /usr/include before fixed include files.
907if test "$C_SWITCH_X_SITE" = "-I/usr/include"; then
908 C_SWITCH_X_SITE=" "
909fi
910
911case "${window_system}" in 858case "${window_system}" in
912 x11 ) 859 x11 )
913 HAVE_X_WINDOWS=yes 860 HAVE_X_WINDOWS=yes
914 HAVE_X11=yes 861 HAVE_X11=yes
915 case "${with_x_toolkit}" in 862 case "${with_x_toolkit}" in
916 athena | lucid ) USE_X_TOOLKIT=LUCID ;; 863 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
917 motif ) USE_X_TOOLKIT=MOTIF ;; 864dnl motif ) USE_X_TOOLKIT=MOTIF ;;
918 open-look ) USE_X_TOOLKIT=OPEN_LOOK ;; 865dnl open-look ) USE_X_TOOLKIT=OPEN_LOOK ;;
919 * ) USE_X_TOOLKIT=none ;; 866 * ) USE_X_TOOLKIT=none ;;
920 esac 867 esac
921 ;; 868 ;;
@@ -1223,36 +1170,26 @@ if test "${LISP_FLOAT_TYPE}" = "yes" ; then
1223 AC_DEFINE(LISP_FLOAT_TYPE) 1170 AC_DEFINE(LISP_FLOAT_TYPE)
1224fi 1171fi
1225 1172
1226# ====================== Developer's configuration ======================= 1173dnl # ====================== Developer's configuration =======================
1227 1174dnl
1228# The following assignments make sense if you're running Emacs on a single 1175dnl # The following assignments make sense if you're running Emacs on a single
1229# machine, one version at a time, and you want changes to the lisp and etc 1176dnl # machine, one version at a time, and you want changes to the lisp and etc
1230# directories in the source tree to show up immediately in your working 1177dnl # directories in the source tree to show up immediately in your working
1231# environment. It saves a great deal of disk space by not duplicating the 1178dnl # environment. It saves a great deal of disk space by not duplicating the
1232# lisp and etc directories. 1179dnl # lisp and etc directories.
1233 1180dnl
1234if test "$enable_in_place" = "yes"; then 1181dnl if test "$enable_single_tree" = "yes"; then
1235 lispdir='${srcdir}/lisp' 1182dnl bindir='${exec_prefix}/bin/${configuration}'
1236 locallisppath='${srcdir}/site-lisp' 1183dnl datadir='${prefix}/common'
1237 etcdir='${srcdir}/etc' 1184dnl statedir='${prefix}/common'
1238 lockdir='${srcdir}/lock' 1185dnl libdir='${bindir}'
1239 # We used to make archlibdir and docdir absolute, 1186dnl lispdir='${prefix}/common/lisp'
1240 # but that caused trouble with automounters. 1187dnl locallisppath='${prefix}/common/site-lisp'
1241 archlibdir='${srcdir}/lib-src' 1188dnl lockdir='${prefix}/common/lock'
1242 docdir='${srcdir}/etc' 1189dnl archlibdir='${libdir}/etc'
1243 infodir='${srcdir}/info' 1190dnl etcdir='${prefix}/common/data'
1244elif test "$enable_single_tree" = "yes"; then 1191dnl docdir='${prefix}/common/data'
1245 bindir='${exec_prefix}/bin/${configuration}' 1192dnl fi
1246 datadir='${prefix}/common'
1247 statedir='${prefix}/common'
1248 libdir='${bindir}'
1249 lispdir='${prefix}/common/lisp'
1250 locallisppath='${prefix}/common/site-lisp'
1251 lockdir='${prefix}/common/lock'
1252 archlibdir='${libdir}/etc'
1253 etcdir='${prefix}/common/data'
1254 docdir='${prefix}/common/data'
1255fi
1256 1193
1257#### Report on what we decided to do. 1194#### Report on what we decided to do.
1258echo " 1195echo "