Mercurial > emacs
changeset 2329:b8028b77b69a
* configure: Add `--x-includes' and `--x-libraries' options. I
think these are dopey, but no less than three alpha testers, at
large sites, have said they have their X files installed in odd
places.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 23 Mar 1993 05:31:35 +0000 |
parents | 82e4fed9cdd6 |
children | 4420aeeb8ff9 |
files | configure1.in |
diffstat | 1 files changed, 51 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure1.in Tue Mar 23 04:58:07 1993 +0000 +++ b/configure1.in Tue Mar 23 05:31:35 1993 +0000 @@ -64,6 +64,16 @@ system to use; if all are omitted, use X11 if present. If you don't want X, specify \`--with-x=no'. +The --x-includes=DIR option tells the build process where to search for + the X Windows header files. If this option is omitted, the + build process assumes they exist in a directory the compiler + checks by default. + +The --x-libraries=DIR option tells the build process where to look for + the X windows libraries. If this option is omitted, the build + process assumes they are in a directory the compiler checks by + default. + The --with-gcc option says that the build process should use GCC to compile Emacs. If you have GCC but don't want to use it, specify \`--with-gcc=no'. \`configure' tries to guess whether @@ -85,7 +95,8 @@ ### names. config_h_opts=" \ HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \ -SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST" +SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\ +LD_SWITCH_SITE C_SWITCH_SITE" ### Record all the arguments, so we can save them in config.status. arguments="$@" @@ -170,6 +181,41 @@ echo "${progname}: Beware - the \`--srcdir' option doesn't work yet." >&2 ;; + ## Has the user tried to tell us where the X files are? + ## I think these are dopey, but no less than three alpha + ## testers, at large sites, have said they have their X files + ## installed in odd places. + "x-includes" ) + ## If the value was omitted, get it from the next argument. + if [ "${valomitted}" = "yes" ]; then + ## Get the next argument from the argument list, if there is one. + if [ $# = 1 ]; then + (echo "${progname}: You must give a value for the \`--${opt}' option, as in + \`--${opt}=FOO'." + echo "${short_usage}") >&2 + exit 1 + fi + shift; val="$1" + fi + x_includes="${val}" + C_SWITCH_SITE="-I${x_includes}" + ;; + "x-libraries" ) + ## If the value was omitted, get it from the next argument. + if [ "${valomitted}" = "yes" ]; then + ## Get the next argument from the argument list, if there is one. + if [ $# = 1 ]; then + (echo "${progname}: You must give a value for the \`--${opt}' option, as in + \`--${opt}=FOO'." + echo "${short_usage}") >&2 + exit 1 + fi + shift; val="$1" + fi + x_libraries="${val}" + LD_SWITCH_SITE="-L${x_libraries}" + ;; + ## Has the user asked for some help? "usage" | "help" ) echo "${long_usage}" | more @@ -1001,6 +1047,7 @@ #### Describe the results. ### Create a verbal description of what we have done. + message="Configured for \`${configuration}'. What operating system and machine description files should Emacs use? @@ -1009,7 +1056,9 @@ Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} What window system should Emacs use? ${window_system} What compiler should emacs be built with? ${default_cc} - Should the compilation use \`-g' and/or \`-O'? ${default_cflags-neither}" + Should the compilation use \`-g' and/or \`-O'? ${default_cflags-neither}${x_includes+ + Where do we find X Windows header files? }${x_includes}${x_libraries+ + Where do we find X Windows libraries? }${x_libraries}" ### Write config.status, documenting the damage we have done.