pkg://xemacs-21.4.10.tar.gz:10610789/
xemacs-21.4.10/configure.in
downloads
dnl Define our own header notice with own copyright
define([AC_INIT_NOTICE],
[#### Configuration script for XEmacs. Largely divergent from FSF.
#### Guess values for system-dependent variables and create Makefiles.
#### Generated automatically using autoconf version] AC_ACVERSION [
#### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
#### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
#### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
#### Copyright (C) 1995, 1996 Ben Wing.
#### Copyright (C) 2000, 2001 Martin Buchholz.
#### Copyright (C) 1998, 1999 J. Kean Johnston.
### Don't edit this script!
### This script was automatically generated by the `autoconf' program
### from the file `./configure.in'.
### To rebuild it, execute the command
### autoconf
### in the this directory. You must have autoconf version 2.13 or later.
### Note: this script has not yet been ported to autoconf version 2.5x.
### This file is part of XEmacs.
### XEmacs is free software; you can redistribute it and/or modify it
### under the terms of the GNU General Public License as published by
### the Free Software Foundation; either version 2, or (at your
### option) any later version.
### XEmacs is distributed in the hope that it will be useful, but
### WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
### General Public License for more details.
### You should have received a copy of the GNU General Public License
### along with XEmacs; see the file COPYING. If not, write to the Free
### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
### 02111-1307, USA.
### For usage, run `./configure --help'
### For more detailed information on building and installing XEmacs,
### read the file `INSTALL'.
###
### If configure succeeds, it leaves its status in config.status.
### A log of configuration tests can be found in config.log.
### If configure fails after disturbing the status quo,
### config.status is removed.
])
dnl Since XEmacs has configuration requirements that autoconf cannot
dnl meet, this file is an unholy marriage of custom-baked
dnl configuration code and autoconf macros.
dnl We use the m4 quoting characters [ ] (as established by the
dnl autoconf system), so quote them like this: [[foo]]
AC_PREREQ(2.13)dnl
dnl Redefine some standard autoconf macros
dnl here is how XEmacs is different:
dnl - no cache file
dnl - non-standard options
dnl - support for extra-verbosity
dnl - ordinary libs are handled separately from X libs (might be a mistake)
dnl - various random kludges (e.g. -with-dnet=no)
dnl PRINT_VAR(var var ...) prints values of shell variables
define([PRINT_VAR],[for var in patsubst([$1],[[
]+],[ ]); do eval "echo \"$var = '\$$var'\""; done])
dnl Disable cache files:
dnl This is controversial, but I am convinced this is the right way to go,
dnl at least by default. Otherwise there are too many surprises.
define([AC_CACHE_LOAD], )dnl
define([AC_CACHE_SAVE], )dnl
define([AC_CACHE_VAL], [
$2
])dnl
dnl Redefine AC_TRY_RUN_NATIVE to not throw away stderr while running
dnl AC_TRY_RUN_NATIVE(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE]])
define([AC_TRY_RUN_NATIVE],
[cat > conftest.$ac_ext <<EOF
[#]line __oline__ "configure"
#include "confdefs.h"
[$1]
EOF
if AC_TRY_EVAL(ac_link) && test -s conftest && (./conftest; exit $?) 2>&AC_FD_CC
then
dnl Do not remove the temporary files here, so they can be examined.
ifelse([$2], , :, [$2])
else
conftest_rc="$?"
echo "configure: failed program was:" >&AC_FD_CC
cat conftest.$ac_ext >&AC_FD_CC
ifelse([$3], , , [ rm -fr conftest*
$3
])dnl
fi
rm -fr conftest*])dnl AC_TRY_RUN_NATIVE
dnl Avoid spurious cross-compiling warnings from AC_TRY_RUN
dnl XEmacs is unlikely to ever cross-compile
define([AC_TRY_RUN],[AC_TRY_RUN_NATIVE([$1], [$2], [$3])])dnl
dnl Redefine AC_DEFINE* to provide more output if extra_verbose
dnl Set VARIABLE to VALUE, verbatim, or 1.
dnl AC_DEFINE(VARIABLE [, VALUE])
define([AC_DEFINE],
[{ test "$extra_verbose" = "yes" && cat << \EOF
Defining $1[]ifelse($#, 2, [ = $2],)
EOF
cat >> confdefs.h <<\EOF
[#define] $1 ifelse($#, 2, [$2], 1)
EOF
}
])dnl AC_DEFINE
define([AC_DEFINE_UNQUOTED],
[{ test "$extra_verbose" = "yes" && cat << EOF
Defining $1[]ifelse($#, 2, [ = $2],)
EOF
cat >> confdefs.h <<EOF
[#define] $1 ifelse($#, 2, [$2], 1)
EOF
}
])dnl AC_DEFINE_UNQUOTED
dnl redefine AC_CHECK_LIB in accordance with our own value of ac_link
dnl Add in extra kludgy check to support with_dnet=no
dnl Add in extra LDFLAGS arg, which PRECEDES libs
dnl Support --with-dnet=no
dnl AC_CHECK_LIB(LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND
dnl [, OTHER-LIBRARIES] [, LDFLAGS]]]])
define([AC_CHECK_LIB],
[ifelse([$1],dnet, [if test "$with_dnet" = "no" ; then
ac_cv_lib_dnet_dnet_ntoa=no
ifelse([$4], , , [$4]
)dnl
else
])]
AC_CHECK_LIB_ORIG_HACKED([$1],[$2],[$3],[$4],[$5], [$6])
[ifelse([$1],dnet,[fi
])]dnl
)dnl AC_CHECK_LIB
define([AC_CHECK_LIB_ORIG_HACKED],
[ifelse([$5],,AC_MSG_CHECKING([for $2 in -l$1]),
xe_msg_checking="for [$2] in -l[$1]"
test -n "[$5]" && xe_msg_checking="$xe_msg_checking using extra libs [$5]"
AC_MSG_CHECKING("$xe_msg_checking"))
dnl Use a cache variable name containing both the library and function name,
dnl because the test really is for library $1 defining function $2, not
dnl just for library $1. Separate tests with the same $1 and different $2s
dnl may have different results.
ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
AC_CACHE_VAL(ac_cv_lib_$ac_lib_var,
[xe_check_libs="$6 -l$1 $5"
AC_TRY_LINK(dnl
ifelse([$2], [main], , dnl Avoid conflicting decl of main.
[/* Override any gcc2 internal prototype to avoid an error. */
]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
extern "C"
#endif
])dnl
[/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $2();
]),
[$2()],
eval "ac_cv_lib_$ac_lib_var=yes",
eval "ac_cv_lib_$ac_lib_var=no")
xe_check_libs=""
])dnl
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
AC_MSG_RESULT(yes)
ifelse([$3], ,
[changequote(, )dnl
ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
changequote([, ])dnl
AC_DEFINE_UNQUOTED($ac_tr_lib)
XE_PREPEND([-l$1], LIBS)
], [$3])
else
AC_MSG_RESULT(no)
ifelse([$4], , , [$4
])dnl
fi
])dnl AC_CHECK_LIB_ORIG_HACKED
dnl AC_LANG_C()
define([AC_LANG_C],
[define([AC_LANG], [C])dnl
ac_ext=c
dnl CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
dnl ac_cpp='$CPP $CPPFLAGS'
dnl ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
dnl ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
ac_cpp='$CPP '"$xe_cppflags"
ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&AC_FD_CC'
ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&AC_FD_CC'
cross_compiling=no
]) dnl AC_LANG_C
dnl The construct foo=`echo $w1 $w2 $w3` fails on some systems if $w1 = -e or -n
dnl So we use the following instead.
dnl XE_SPACE(var, words)
define([XE_SPACE],[
T=""
for W in $2; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
$1="$T"
])dnl XE_SPACE
dnl XE_ADD_OBJS(foo.o ...)
define([XE_ADD_OBJS],
[extra_objs="$extra_objs [$1]" && dnl
if test "$extra_verbose" = "yes"; then
echo " xemacs will be linked with \"[$1]\""
fi])dnl XE_ADD_OBJS
dnl XE_APPEND(value, varname)
define([XE_APPEND],
[[$2]="$[$2] [$1]" && dnl
if test "$extra_verbose" = "yes"; then echo " Appending \"[$1]\" to \$[$2]"; fi])
dnl XE_PREPEND(value, varname)
define([XE_PREPEND],
[[$2]="[$1] $[$2]" && dnl
if test "$extra_verbose" = "yes"; then echo " Prepending \"[$1]\" to \$[$2]"; fi])
dnl XE_DIE(message)
define([XE_DIE], [{ echo "Error:" $1 >&2; exit 1; }])
dnl XE_STRIP_4TH_COMPONENT(var)
dnl Changes i986-pc-linux-gnu to i986-pc-linux, as God (not RMS) intended.
define([XE_STRIP_4TH_COMPONENT],
[$1=`echo "$$1" | sed '[s/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/]'`])
dnl Initialize some variables set by options.
dnl The variables have the same names as the options, with
dnl dashes changed to underlines.
define([AC_INIT_PARSE_ARGS],[
dnl Get sane consistent behavior from various shells
dnl Avoid losing with weird user CDPATHs
if test -n "$ZSH_VERSION"; then
dnl zsh's Bourne shell emulation options
setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
dnl zsh-3.1-beta drops core on the following
dnl unset CDPATH
if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
elif test -n "$BASH_VERSION"; then
dnl Use Posix mode with bash
set -o posix
unset CDPATH
else
if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
fi
dnl Initialize some variables set by options.
dnl The variables have the same names as the options, with
dnl dashes changed to underlines.
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
dnl Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
dnl Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
])dnl AC_INIT_PARSE_ARGS
AC_INIT(src/lisp.h)dnl
AC_CONFIG_HEADER(src/config.h lwlib/config.h)
dnl Remove any more than one leading "." element from the path name.
dnl If we do not remove them, then another "./" will be prepended to
dnl the file name each time we use config.status, and the program name
dnl will get larger and larger. This would not be a problem, except
dnl that since progname gets recorded in all the Makefiles this script
dnl produces, move-if-change thinks they're different when they're
dnl not.
dnl
dnl It would be nice if we could put the ./ in a \( \) group and then
dnl apply the * operator to that, so we remove as many leading './././'s
dnl as are present, but some seds (like Ultrix's sed) don't allow you to
dnl apply * to a \( \) group. Bleah.
progname="`echo $0 | sed 's:^\./\./:\./:'`"
dnl -----------------------------
dnl Establish some default values
dnl -----------------------------
XE_APPEND(lib-src, MAKE_SUBDIR)
XE_APPEND(lib-src, INSTALL_ARCH_DEP_SUBDIR)
prefix='/usr/local'
exec_prefix='${prefix}'
bindir='${exec_prefix}/bin'
dnl FSF 19.29 changes to:
dnl datadir='${prefix}/share'
dnl sharedstatedir='${prefix}/com'
dnl libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/lib'
statedir='${prefix}/lib'
libdir='${exec_prefix}/lib'
mandir='${prefix}/man/man1'
inststaticdir='${PROGNAME}'
instvardir='${PROGNAME}-${version}'
infodir='${datadir}/${instvardir}/info'
infopath=''
install_pp=''
lispdir='${datadir}/${instvardir}/lisp'
moduledir='${libdir}/${instvardir}/${configuration}/modules'
sitelispdir='${datadir}/${inststaticdir}/site-lisp'
sitemoduledir='${libdir}/${inststaticdir}/site-modules'
pkgdir='${datadir}/${instvardir}/lisp'
package_path=''
etcdir='${datadir}/${instvardir}/etc'
archlibdir='${libdir}/${instvardir}/${configuration}'
docdir='${archlibdir}'
with_netinstall="no"
with_prefix='yes'
with_site_lisp='no'
with_site_modules='yes'
with_menubars=''
with_scrollbars=''
with_widgets=''
with_dialogs=''
with_file_coding=''
cpp='' cppflags='' libs='' ldflags=''
extra_includes=''
dynamic=''
with_x11=''
with_msw=''
rel_alloc='default'
with_system_malloc='default'
with_dlmalloc='default'
dnl ESD is associated with crashes and lockups due to incorrect signal use.
with_esd_sound='no'
native_sound_lib=''
dnl These should be set to the empty string when we want gtk / gnome to
dnl be auto-detected instead of manually specified.
with_gtk='no'
with_gnome='no'
dnl use_assertions should be 'yes' by default. Too many people in this
dnl world have core dumps turned off by default or \"cannot find where the
dnl core file went\". At least we should get some useful output ...
use_assertions="yes"
dnl the following is set to yes or no later.
with_toolbars=""
with_tty=""
use_union_type="no"
with_dnet=""
pdump="no"
dnl dragndrop is still experimental. When it is stable, comment out the following line:
with_dragndrop="no"
dnl Too annoying, even if mandated by IPv6 (and I'm not even sure of that)
with_ipv6_cname="no"
dnl ------------------
dnl Options Processing
dnl ------------------
define([USAGE_ERROR],
[(echo "$progname: Usage error:"
echo " " $1
echo " Use \`$progname --help' to show usage.") >&2 && exit 1])
dnl Record all the arguments, so we can save them in config.status.
arguments="$@"
dnl Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
dnl in order to get the arguments back in $@, we have to do an
dnl 'eval set x "$quoted_arguments"; shift'
dnl # We use sed to turn embedded ' into '"'"'. I truly hate sh quoting.
quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
quoted_arguments=
for i in "$@"; do
case "$i" in
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c) ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
*)
quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
quoted_arguments="$quoted_arguments '$quoted_i'" ;;
esac
done
dnl Do not use shift -- that destroys the argument list, which autoconf needs
dnl to produce config.status. It turns out that "set - $arguments" does not
dnl work portably.
dnl However, it also turns out that many shells cannot expand ${10} at all.
dnl So using an index variable does not work either. It is possible to use
dnl some shell magic to make 'set x "$arguments"; shift' work portably.
while test $# != 0; do
arg="$1"; shift
case "$arg" in
--no-create|--no-recursion) ;;
dnl Anything starting with a hyphen we assume is an option.
-* )
dnl Separate the switch name from the value it is being given.
case "$arg" in
-*=*)
opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([[^=]]*\)=.*$:\1:'`
val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[[^=]]*=\(.*\)$:\1:'`
valomitted=no
;;
dnl special case these strings since echo may silently eat them:
dnl --help ) opt=help val=yes valomitted=yes ;;
dnl --version ) opt=version val=yes valomitted=yes ;;
dnl -e ) opt=e val=yes valomitted=yes ;;
dnl -E ) opt=E val=yes valomitted=yes ;;
dnl -n ) opt=n val=yes valomitted=yes ;;
-*)
dnl If FOO is a boolean argument, --FOO is equivalent to
dnl --FOO=yes. Otherwise, the value comes from the next
dnl argument - see below.
opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
val="yes" valomitted=yes
;;
esac
dnl translate "-" in option string to "_"
optname="$opt"
opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
dnl Support --without-FOO as a synonym for --with-FOO=no
case "${valomitted}-${opt}" in yes-without_* )
opt=`echo $opt | sed 's/without/with/'`
valomitted="no" val="no" ;;
esac
dnl Process the option.
case "$opt" in
dnl Process (many) boolean options
with_site_lisp | \
with_prefix | \
with_site_modules | \
with_x | \
with_x11 | \
with_gtk | \
with_gnome | \
with_msw | \
with_gcc | \
dynamic | \
with_ncurses | \
with_dnet | \
with_socks | \
with_dragndrop | \
with_cde | \
with_offix | \
with_gpm | \
with_xpm | \
with_xface | \
with_gif | \
with_jpeg | \
with_png | \
with_tiff | \
with_wmcommand | \
with_xmu | \
with_purify | \
with_quantify | \
with_toolbars | \
with_tty | \
with_xfs | \
with_i18n3 | \
with_mule | \
with_file_coding| \
with_canna | \
with_wnn | \
with_wnn6 | \
with_workshop | \
with_sparcworks | \
with_tooltalk | \
with_ldap | \
with_postgresql | \
with_pop | \
with_kerberos | \
with_hesiod | \
with_dnet | \
with_infodock | \
with_netinstall | \
with_ipv6_cname | \
external_widget | \
verbose | \
extra_verbose | \
usage_tracking | \
use_union_type | \
pdump | \
debug | \
use_assertions | \
memory_usage_stats | \
with_clash_detection | \
with_modules | \
quick_build )
dnl Make sure the value given was either "yes" or "no".
case "$val" in
y | ye | yes ) val=yes ;;
n | no ) val=no ;;
* ) USAGE_ERROR("The \`--$optname' option requires a boolean value: \`yes' or \`no'.") ;;
esac
eval "$opt=\"$val\"" ;;
dnl Options that take a user-supplied value, as in --x-includes=/usr/X11R6/include
dnl The cache-file option is ignored (for compatibility with other configures)
srcdir | \
compiler | \
cflags | \
cpp | \
cppflags | \
libs | \
ldflags | \
cache_file | \
native_sound_lib| \
site_lisp | \
x_includes | \
x_libraries | \
site_includes | \
site_libraries | \
site_prefixes | \
site_runtime_libraries )
dnl If the value was omitted, get it from the next argument.
if test "$valomitted" = "yes" ; then
dnl Get the next argument from the argument list, if there is one.
if test "$#" = 0 ; then
USAGE_ERROR("The \`--$optname' option requires a value.");
fi
val="$1"; shift
fi
eval "$opt=\"$val\""
;;
dnl Options that take "yes", "no", or "default" values
rel_alloc | \
with_dlmalloc | \
with_debug_malloc | use_debug_malloc | \
with_system_malloc | use_system_malloc )
case "$val" in
y | ye | yes ) val=yes ;;
n | no ) val=no ;;
d | de | def | defa | defau | defaul | default ) val=default ;;
* ) USAGE_ERROR(["The \`--$optname' option requires one of these values:
\`yes', \`no', or \`default'."]) ;;
esac
case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
eval "$opt=\"$val\""
;;
dnl Has the user requested database support?
"with_database" )
with_database_berkdb=no
with_database_dbm=no
with_database_gdbm=no
for x in `echo "$val" | sed -e 's/,/ /g'` ; do
case "$x" in
no ) ;;
b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
d | db | dbm ) with_database_dbm=yes ;;
g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
* ) USAGE_ERROR(["The \`--$optname' option value
must be either \`no' or a comma-separated list
of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."]) ;;
esac
done
if test "$with_database_dbm" = "yes" -a \
"$with_database_gdbm" = "yes"; then
USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified
with the \`--$optname' option.")
fi
;;
dnl Has the user requested sound support?
"with_sound" )
dnl values is a subset of all,native,nas,esd
dnl or their negatives: none,nonative,nonas,noesd
for x in `echo "$val" | sed -e 's/,/ /g'` ; do
case "$x" in
dnl all and none are only permitted as the first in the list.
n | no | non | none ) new_sdefault=no ;;
a | al | all | both ) new_sdefault=yes ;;
native ) with_native_sound=yes ;;
nonative ) with_native_sound=no ;;
nas ) with_nas_sound=yes ;;
nonas ) with_nas_sound=no ;;
esd ) with_esd_sound=yes ;;
noesd ) with_esd_sound=no ;;
* ) bogus_sound=yes ;;
esac
if test "$bogus_sound" -o \
\( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
USAGE_ERROR(["Valid types for the \`--$optname' option are:
$types.
Option \`all' or \`none' must be first in the list.
The default is to autodetect native and NAS sound support."])
elif test -n "$new_sdefault" ; then
with_native_sound=$new_sdefault
with_nas_sound=$new_sdefault
with_esd_sound=$new_sdefault
new_sdefault= # reset this
fi
sound_notfirst=true
done
;;
dnl Has the user specified a preferred Athena widget set?
dnl This bit expands any alias names out for us...
"with_athena" )
case "$val" in
xa | xaw ) val=xaw ;;
3 | 3d | xaw3d ) val=3d ;;
dnl No `n' for next, someone may try `no'
ne | nex | next | naxtaw) val=next ;;
dnl Have not tested the next two...
9 | 95 | xaw95 ) val=95 ;;
xp | xpm | xawxpm ) val=xpm ;;
* ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
\`xaw', \`3d', \`next', \`95', or \`xpm'."]) ;;
esac
eval "$opt=\"$val\""
;;
dnl Has the user requested XIM support?
"with_xim" )
case "$val" in
y | ye | yes ) val=yes ;;
n | no | non | none ) val=no ;;
x | xl | xli | xlib ) val=xlib ;;
m | mo | mot | moti | motif ) val=motif ;;
* ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
\`motif', \`xlib', \`yes', or \`no'."]) ;;
esac
eval "$opt=\"$val\""
;;
dnl Mail locking specification
"mail_locking" )
case "$val" in
lockf ) val=lockf ;;
flock ) val=flock ;;
file | dot ) val=file ;;
locking ) val=locking ;;
* ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
\`lockf', \`flock', \`file', \`locking', or \`mmdf'."]) ;;
esac
eval "$opt=\"$val\""
;;
dnl Has the user requested error-checking?
"error_checking" )
dnl value can be all, none, and/or a list of categories to check.
dnl Example: --error-checking=all,noextents,nobufpos
dnl Example: --error-checking=none,malloc,gc
for x in `echo "$val" | sed -e 's/,/ /g'` ; do
case "$x" in
dnl all and none are only permitted as the first in the list.
n | no | non | none ) new_default=no ;;
a | al | all ) new_default=yes ;;
extents ) error_check_extents=yes ;;
noextents ) error_check_extents=no ;;
typecheck ) error_check_typecheck=yes ;;
notypecheck ) error_check_typecheck=no ;;
bufpos ) error_check_bufpos=yes ;;
nobufpos ) error_check_bufpos=no ;;
gc ) error_check_gc=yes ;;
nogc ) error_check_gc=no ;;
malloc ) error_check_malloc=yes ;;
nomalloc ) error_check_malloc=no ;;
byte_code ) error_check_byte_code=yes ;;
nobyte_code ) error_check_byte_code=no ;;
glyphs ) error_check_glyphs=yes ;;
noglyphs ) error_check_glyphs=no ;;
* ) bogus_error_check=yes ;;
esac
if test "$bogus_error_check" -o \
\( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
if test "$error_check_default" = yes ; then
types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
else
types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
fi
USAGE_ERROR(["Valid types for the \`--$optname' option are:
$types."])
elif test -n "$new_default" ; then
error_check_extents=$new_default
error_check_typecheck=$new_default
error_check_bufpos=$new_default
error_check_gc=$new_default
error_check_malloc=$new_default
error_check_byte_code=$new_default
error_check_glyphs=$new_default
new_default= # reset this
fi
echeck_notfirst=true
done
;;
dnl Has the user tried to tell us where the X files are?
dnl I think these are dopey, but no less than three alpha
dnl testers, at large sites, have said they have their X files
dnl installed in odd places.
dnl Has the user specified one of the path options?
prefix | exec_prefix | bindir | datadir | statedir | libdir | \
mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
archlibdir | docdir | package_path | moduledir )
dnl If the value was omitted, get it from the next argument.
if test "$valomitted" = "yes"; then
if test "$#" = 0; then
USAGE_ERROR("The \`--$optname' option requires a value.");
fi
val="$1"; shift
fi
eval "$opt=\"$val\""
dnl You need to synchronize this with the way the
dnl default values are built.
case "$opt" in
dnl prefix is taken care of by --with-prefix
exec_prefix ) AC_DEFINE(EXEC_PREFIX_USER_DEFINED) ;;
lispdir ) AC_DEFINE(LISPDIR_USER_DEFINED) ;;
sitelispdir ) AC_DEFINE(SITELISPDIR_USER_DEFINED) ;;
moduledir ) AC_DEFINE(MODULEDIR_USER_DEFINED) ;;
etcdir ) AC_DEFINE(ETCDIR_USER_DEFINED) ;;
infodir ) AC_DEFINE(INFODIR_USER_DEFINED) ;;
infopath ) AC_DEFINE(INFOPATH_USER_DEFINED) ;;
package_path ) AC_DEFINE(PACKAGE_PATH_USER_DEFINED) ;;
datadir )
AC_DEFINE(INFODIR_USER_DEFINED)
AC_DEFINE(LISPDIR_USER_DEFINED)
AC_DEFINE(MODULEDIR_USER_DEFINED)
AC_DEFINE(ETCDIR_USER_DEFINED)
AC_DEFINE(DOCDIR_USER_DEFINED)
AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;;
docdir ) AC_DEFINE(DOCDIR_USER_DEFINED) ;;
exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;;
esac
;;
dnl --no-create added by autoconf for use by config.status
"no_create" ) ;;
dnl Has the user asked for some help?
"usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
dnl Has the user specified the toolkit(s) to use for GUI elements?
"with_menubars" | \
"with_scrollbars" | \
"with_dialogs" | \
"with_widgets" )
case "$val" in
l | lu | luc | luci | lucid ) val=lucid ;;
mo | mot | moti | motif ) val=motif ;;
a | at | ath | athe | athen | athena ) val=athena ;;
n | no | non | none ) val=no ;;
y | ye | yes ) val=yes ;;
dnl Explicit --with-widgets on command line means yes.
"") val=yes ;;
g | gt | gtk ) val=gtk ;;
ms | msw ) val=msw ;;
* ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
\`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."]) ;;
esac
eval "$opt=\"$val\""
;;
dnl Obsolete legacy argument? Warn, but otherwise ignore.
"use_minimal_tagbits" | \
"use_indexed_lrecord_implementation" | \
"run_in_place" | \
"const_is_losing" | \
"with_gnu_make" )
AC_MSG_WARN([Obsolete option \`--$optname' ignored.])
;;
dnl Unrecognized option? No mercy for user errors.
* ) USAGE_ERROR("Unrecognized option: $arg") ;;
esac
;;
dnl Assume anything with multiple hyphens is a configuration name.
*-*-*) configuration="$arg" ;;
dnl Unrecognized argument? No mercy for user errors.
*) USAGE_ERROR("Unrecognized argument: $arg") ;;
esac
done
dnl -------------------------
dnl Finish options processing
dnl -------------------------
dnl Several options are equivalent to, and override, environment variables.
test -n "$cpp" && CPP="$cpp"
test -n "$cppflags" && CPPFLAGS="$cppflags"
test -n "$libs" && LIBS="$libs"
test -n "$ldflags" && LDFLAGS="$ldflags"
dnl Get the arguments back. See the diatribe on Shell Magic above.
eval set x "$quoted_arguments"; shift
dnl --extra-verbose implies --verbose
test "$extra_verbose" = "yes" && verbose=yes
dnl with_x is an obsolete synonym for with_x11
test -n "$with_x" && with_x11="$with_x"
dnl --with-quantify or --with-purify imply --use-system-malloc
if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
test "$with_system_malloc" = "default" && with_system_malloc=yes
fi
dnl XE_CHECK_FEATURE_DEPENDENCY(feature1, feature2)
define([XE_CHECK_FEATURE_DEPENDENCY],
[if test "$with_$1 $with_$2" = "yes no"; then
USAGE_ERROR("--with-$1 requires --with-$2")
elif test "$with_$2" = "no" ; then with_$1=no
elif test "$with_$1" = "yes"; then with_$2=yes
fi
])
dnl CDE requires tooltalk
XE_CHECK_FEATURE_DEPENDENCY(cde, tooltalk)
dnl Find the source directory.
case "$srcdir" in
dnl If srcdir is not specified, see if "." or ".." might work.
"" )
for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[[^/]]*$||'`" "." ".." ; do
if test -f "$dir/src/lisp.h" -a \
-f "$dir/lisp/version.el" ; then
srcdir="$dir"
break
fi
done
if test -z "$srcdir" ; then
USAGE_ERROR(["Neither the current directory nor its parent seem to
contain the XEmacs sources. If you do not want to build XEmacs in its
source tree, you should run \`$progname' in the directory in which
you wish to build XEmacs, using the \`--srcdir' option to say where the
sources may be found."])
fi
;;
dnl Otherwise, check if the directory they specified is okay.
* )
if test ! -f "$srcdir/src/lisp.h" -o \
! -f "$srcdir/lisp/version.el" ; then
USAGE_ERROR(["The directory specified with the \`--srcdir' option,
\`$srcdir', doesn't seem to contain the XEmacs sources. You should
either run the \`$progname' script at the top of the XEmacs source
tree, or use the \`--srcdir' option to specify the XEmacs source directory."])
fi
;;
esac
dnl ###########################################################################
if test -z "$configuration"; then
dnl Guess the configuration
configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
if test -z "$configuration"; then
USAGE_ERROR(["XEmacs has not been ported to this host type.
Try explicitly specifying the CONFIGURATION when rerunning configure."])
fi
fi
AC_PROG_LN_S
dnl Make symlinks for etc, lisp, and info directories while the path
dnl is still relative. We do not symlink lock because someone may
dnl have stuck the source on a read-only partition. Instead we
dnl create it as an actual directory later on if it does not already
dnl exist.
for dir in lisp etc man info tests; do
if test ! -d "$dir" ; then
echo Making symbolic link to "$srcdir/$dir"
${LN_S} "$srcdir/$dir" "$dir"
fi
done
dnl Do our best to deal with automounter brokenness
dnl CANONICALIZE_PATH(varname)
define([CANONICALIZE_PATH],
[if test -d "/net"; then
if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
$1=`echo "[$]$1" | \
sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
fi])dnl
dnl Calculate canonical name for blddir (i.e. current directory).
dnl PWD may already be the preferable absolute name for ".",
dnl but we can't trust it - it is sometimes inaccurate.
absolute_pwd="`pwd`";
if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
then blddir="$PWD"
else blddir="$absolute_pwd"; CANONICALIZE_PATH(blddir)
fi
AC_SUBST(blddir)
dnl Make srcdir absolute, if not already. It is important to
dnl avoid running the path through pwd unnecessary, since pwd can
dnl give you automounter prefixes, which can go away.
case "$srcdir" in
/* ) ;;
. ) srcdir="$blddir" ;;
* ) srcdir="`cd $srcdir && pwd`"; CANONICALIZE_PATH(srcdir) ;;
esac
dnl Check if the source directory already has a configured system in it.
if test `pwd` != `sh -c cd $srcdir && pwd` \
&& test -f "$srcdir/src/config.h"; then
(echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
echo " as a build directory right now; it has been configured in its own"
echo " right. To configure in another directory as well, you MUST"
echo " use GNU make. If you do not have GNU make, then you must"
echo " now do \`make distclean' in $srcdir,"
echo " and then run $progname again.") >&2
extrasub='/^VPATH[[ ]]*=/c\
vpath %.c $(srcdir)\
vpath %.h $(srcdir)\
vpath %.y $(srcdir)\
vpath %.l $(srcdir)\
vpath %.s $(srcdir)\
vpath %.in $(srcdir)'
fi
dnl ----------------------------------------
dnl Find out which version of XEmacs this is
dnl ----------------------------------------
. "$srcdir/version.sh" || exit 1;
dnl Must do the following first to determine verbosity for AC_DEFINE
if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
: "${extra_verbose=$beta}"
version="${emacs_major_version}.${emacs_minor_version}"
AC_DEFINE_UNQUOTED(EMACS_MAJOR_VERSION, $emacs_major_version)
AC_DEFINE_UNQUOTED(EMACS_MINOR_VERSION, $emacs_minor_version)
if test -n "$emacs_beta_version" ; then
if test "$beta" = "yes"; then
version="${version}-b${emacs_beta_version}"
AC_DEFINE_UNQUOTED(EMACS_BETA_VERSION, $emacs_beta_version)
else
version="${version}.${emacs_beta_version}"
AC_DEFINE_UNQUOTED(EMACS_PATCH_LEVEL, $emacs_beta_version)
fi
fi
AC_DEFINE_UNQUOTED(XEMACS_CODENAME, "$xemacs_codename")
AC_DEFINE_UNQUOTED(EMACS_VERSION, "$version")
if test "$with_infodock" = "yes"; then
if test ! -f ../../ID-INSTALL; then
echo "Cannot build InfoDock without InfoDock sources"
with_infodock=no
fi
fi
if test "$with_infodock" = "yes"; then
dnl InfoDock version numbers. XEmacs will use the same style of numbering
dnl after the release of XEmacs 21.0.
AC_DEFINE_UNQUOTED(INFODOCK_MAJOR_VERSION, $infodock_major_version)
AC_DEFINE_UNQUOTED(INFODOCK_MINOR_VERSION, $infodock_minor_version)
AC_DEFINE_UNQUOTED(INFODOCK_BUILD_VERSION, $infodock_build_version)
version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
PROGNAME=infodock
CPPFLAGS="$CPPFLAGS -DINFODOCK"
else
PROGNAME=xemacs
fi
AC_DEFINE_UNQUOTED(EMACS_PROGNAME, "$PROGNAME")
dnl ----------------------------------
dnl Error checking and debugging flags
dnl ----------------------------------
dnl Error checking default to "yes" in beta versions, to "no" in releases.
dnl Same goes for --debug and --extra-verbosity.
if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
test "${error_check_extents=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS)
test "${error_check_typecheck=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPECHECK)
test "${error_check_bufpos=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BUFPOS)
test "${error_check_gc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC)
test "${error_check_malloc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC)
test "${error_check_byte_code=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BYTE_CODE)
test "${error_check_glyphs=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GLYPHS)
dnl debug=yes must be set when error checking is present. This should be
dnl fixed up.
dnl debug implies other options
if test "${debug:=$beta}" = "yes"; then
use_assertions=yes memory_usage_stats=yes
XE_ADD_OBJS(debug.o)
XE_ADD_OBJS(tests.o)
AC_DEFINE(DEBUG_XEMACS)
fi
test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS)
test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS)
dnl ------------------------------
dnl Determine the s&m files to use
dnl ------------------------------
dnl Given the configuration name, set machfile and opsysfile to the
dnl names of the m/*.h and s/*.h files we should use.
dnl Canonicalize the configuration name.
AC_MSG_CHECKING("host system type")
dnl allow -workshop suffix on configuration name
internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
XE_STRIP_4TH_COMPONENT(configuration)
XE_STRIP_4TH_COMPONENT(canonical)
AC_MSG_RESULT($configuration)
dnl If you add support for a new configuration, add code to this
dnl switch statement to recognize your configuration name and select
dnl the appropriate operating system and machine description files.
dnl You would hope that you could choose an m/*.h file pretty much
dnl based on the machine portion of the configuration name, and an s-
dnl file based on the operating system portion. However, it turns out
dnl that each m/*.h file is pretty manufacturer-specific - for
dnl example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
dnl all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
dnl machines. So we basically have to have a special case for each
dnl configuration name.
dnl As far as handling version numbers on operating systems is
dnl concerned, make sure things will fail in a fixable way. If
dnl /etc/MACHINES says nothing about version numbers, be
dnl prepared to handle anything reasonably. If version numbers
dnl matter, be sure /etc/MACHINES says something about it.
dnl Eric Raymond says we should accept strings like "sysvr4" to mean
dnl "System V Release 4"; he writes, "The old convention encouraged"
dnl "confusion between `system' and `release' levels'."
machine='' opsys=''
dnl Straightforward machine determination
case "$canonical" in
sparc-*-* ) machine=sparc ;;
alpha*-*-* ) machine=alpha ;;
vax-*-* ) machine=vax ;;
mips-dec-* ) machine=pmax ;;
mips-sgi-irix6* ) machine=iris6d ;;
mips-sgi-* ) machine=iris4d ;;
mips*-linux ) machine=mips ;;
romp-ibm-* ) machine=ibmrt ;;
rs6000-ibm-aix* ) machine=ibmrs6000 ;;
powerpc-ibm-aix* ) machine=ibmrs6000 ;;
powerpc*-* ) machine=powerpc ;;
hppa-*-* ) machine=hp800 ;;
m88k-dg-* ) machine=aviion ;;
m68*-sony-* ) machine=news ;;
mips-sony-* ) machine=news-risc ;;
clipper-* ) machine=clipper ;;
arm* ) machine=arm ;;
ns32k-* ) machine=ns32000 ;;
esac
dnl Straightforward OS determination
case "$canonical" in
*-*-linux* ) opsys=linux ;;
*-*-netbsd* ) opsys=netbsd ;;
*-*-openbsd* ) opsys=openbsd ;;
*-*-nextstep* ) opsys=nextstep ;;
*-*-vms ) opsys=vms ;;
dnl DEC OSF
*-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
*-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
*-dec-osf3.[[2-9]] ) opsys=decosf3-2 ;;
*-dec-osf3* ) opsys=decosf3-1 ;;
*-dec-osf[[4-9]]* ) opsys=decosf4-0 ;;
dnl DEC Ultrix
*-*-ultrix[[0-3]].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
*-*-ultrix4.[[12]]* ) opsys=bsd4-3 ;;
*-*-ultrix* ) opsys=ultrix4-3 ;;
dnl AIX
*-*-aix3.1* ) opsys=aix3-1 ;;
*-*-aix3.2.5 ) opsys=aix3-2-5 ;;
*-*-aix3* ) opsys=aix3-2 ;;
*-*-aix4.0* ) opsys=aix4 ;;
*-*-aix4.1* ) opsys=aix4-1 ;;
*-*-aix4* ) opsys=aix4-2 ;;
dnl Other generic OSes
*-gnu* ) opsys=gnu ;;
*-*-bsd4.[[01]] ) opsys=bsd4-1 ;;
*-*-bsd4.2 ) opsys=bsd4-2 ;;
*-*-bsd4.3 ) opsys=bsd4-3 ;;
*-*-aos4.2 ) opsys=bsd4-2 ;;
*-*-aos* ) opsys=bsd4-3 ;;
*-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
*-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
*-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
*-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
*-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
*-*-sysv4.[[2-9]]* | *-sysvr4.[[2-9]]* )
if test -z "$NON_GNU_CPP" ; then
for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
done
fi
opsys=usg5-4-2 ;;
*-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
*-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
esac
case "$canonical" in
dnl NetBSD ports
*-*-netbsd* )
case "$canonical" in
i[[3-9]]86-*-netbsd*) machine=intel386 ;;
hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
dnl Yes, this is somewhat bogus.
machine=hp9000s300 ;;
pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
esac
;;
dnl OpenBSD ports
*-*-openbsd* )
case "${canonical}" in
i386-*-openbsd*) machine=intel386 ;;
m68k-*-openbsd*) machine=hp9000s300 ;;
mipsel-*-openbsd*) machine=pmax ;;
esac
;;
dnl Acorn RISCiX:
arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
dnl Alliant machines
fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
dnl Altos 3068
m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
dnl Amdahl UTS
580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
dnl Apollo, Domain/OS
m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
dnl AT&T 3b2, 3b5, 3b15, 3b20
we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
dnl AT&T 3b1 - The Mighty Unix PC!
m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
dnl Bull machines
rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
dnl CCI 5/32, 6/32 -- see "Tahoe".
dnl Celerity
celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
dnl Convex
*-convex-bsd* | *-convex-convexos* )
machine=convex opsys=bsd4-3
NON_GNU_CPP="cc -E -P"
;;
dnl Cubix QBx/386
i[[3-9]]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
dnl Darwin, a.k.a. MacOS X (based on Mach and Freebsd)
*-*-darwin*)
opsys=darwin
RANLIB="ranlib -c" dnl Avoids a link error with lwlib-config.c
pdump=yes dnl No "native" working dumper available
;;
dnl Data General AViiON Machines
i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
m88k-dg-dgux* ) opsys=dgux ;;
dnl Motorola Delta machines
m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
m88k-motorola-sysv4* )
dnl jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
dnl needs POSIX_SIGNALS and therefore needs usg5-4-2.
dnl I hope there are not other 4.0 versions for this machine
dnl which really need usg5-4 instead.
machine=delta88k opsys=usg5-4-2
;;
m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
dnl Dual machines
m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
dnl Encore machines
ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
dnl Gould Power Node and NP1
pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
dnl Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
dnl as far as XEmacs is concerned).
m88k-harris-cxux* )
dnl Build needs to be different on 7.0 and later releases
case "`uname -r`" in
[[56]].[[0-9]] ) machine=nh4000 opsys=cxux ;;
[[7]].[[0-9]] ) machine=nh4000 opsys=cxux7 ;;
esac
NON_GNU_CPP="/lib/cpp"
;;
dnl Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
dnl Harris power pc NightHawk running Power UNIX (Series 6000)
powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
dnl Honeywell XPS100
xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
dnl HP 9000 series 200 or 300
m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
dnl HP-UX
*-hp-hpux* )
dnl Figure out machine and opsys orthogonally
case "$canonical" in
m68* ) machine=hp9000s300 ;;
hppa* ) machine=hp800 ;;
esac
case "$canonical" in
*-hp-hpux7* ) opsys=hpux ;;
*-hp-hpux8* ) opsys=hpux8 ;;
*-hp-hpux9* ) opsys=hpux9 ;;
*-hp-hpux10* ) opsys=hpux10 ;;
*-hp-hpux11* ) opsys=hpux11 ;;
* ) opsys=hpux ;;
esac
dnl HP has a broken "strcat"
case "$opsys" in hpux9 | hpux10 ) XE_ADD_OBJS(strcat.o) ;; esac
if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
;;
dnl Orion machines
orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
dnl IBM machines
i[[3-9]]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
i[[3-9]]86-ibm-aix1.[[23]]* | i[[3-9]]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
romp-ibm-aos* ) opsys=bsd4-3 ;;
romp-ibm-bsd* ) opsys=bsd4-3 ;;
romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
dnl Integrated Solutions "Optimum V"
m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
dnl Intel 386 machines where we do care about the manufacturer
i[[3-9]]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
dnl Prime EXL
i[[3-9]]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
dnl Sequent Symmetry running Dynix
i[[3-9]]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
dnl Sequent Symmetry running DYNIX/ptx
i[[3-9]]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
dnl Unspecified sysv on an ncr machine defaults to svr4.2.
dnl (Plain usg5-4 does not turn on POSIX signals, which we need.)
i[[3-9]]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
dnl Intel Paragon OSF/1
i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
dnl Intel 860
i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
dnl Masscomp machines
m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
dnl Megatest machines
m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
dnl Workstations sold by MIPS
dnl This is not necessarily all workstations using the MIPS processor -
dnl Irises are produced by SGI, and DECstations by DEC.
mips-mips-usg* ) machine=mips4 ;;
mips-mips-riscos4 )
machine=mips4
NON_GNU_CC="cc -systype bsd43"
NON_GNU_CPP="cc -systype bsd43 -E"
case "$canonical" in
mips-mips-riscos4* ) opsys=bsd4-3 ;;
mips-mips-riscos5* ) opsys=riscos5 ;;
esac
;;
mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
dnl NeXT
m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
dnl The complete machine from National Semiconductor
ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
dnl NCR machines
m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
dnl Nixdorf Targon 31
m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
dnl Nu (TI or LMI)
m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
dnl Plexus
m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
dnl Pyramid machines
pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
dnl Sequent Balance
ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
dnl Siemens Nixdorf
mips-siemens-sysv* | mips-sni-sysv*)
machine=mips-siemens opsys=usg5-4
NON_GNU_CC=/usr/ccs/bin/cc
NON_GNU_CPP=/usr/ccs/lib/cpp
;;
dnl NEC
mips-nec-sysv*)
machine=mips-nec
NON_GNU_CC=/usr/ccs/bin/cc
NON_GNU_CPP=/usr/ccs/lib/cpp
;;
dnl Silicon Graphics machines
dnl Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
dnl Iris 4D
mips-sgi-irix3.* ) opsys=irix3-3 ;;
mips-sgi-irix4.* ) opsys=irix4-0 ;;
mips-sgi-irix6* ) opsys=irix6-0 ;;
mips-sgi-irix5.1* ) opsys=irix5-1 ;;
mips-sgi-irix5.2* ) opsys=irix5-2 ;;
mips-sgi-irix5.* ) opsys=irix5-3 ;;
mips-sgi-irix* ) opsys=irix5-0 ;;
dnl SONY machines
*-sony-newsos[[34]]* | *-sony-news[[34]]* ) opsys=bsd4-3 ;;
*-sony-news* ) opsys=newsos5 ;;
dnl Stride
m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
dnl Suns
*-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
dnl Hardware type
case "$canonical" in
m68*-sunos1* ) machine=sun1 ;;
m68*-sunos2* ) machine=sun2 ;;
m68* ) machine=sun3 ;;
i*86*-sun-sunos[[34]]* ) machine=sun386 ;;
i*86-*-* ) machine=intel386 ;;
rs6000* ) machine=rs6000 ;;
esac
dnl Make $canonical even more so.
case "$canonical" in *-sunos5*)
canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
esac
dnl On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
dnl On SunOS 5, use cc -E, need dynodump, RANLIB not needed
dnl But, SunOS 5.6 no longer needs dynodump because it has a similar
dnl function integrated.
case "$canonical" in
*-sunos4* )
#test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
: ;;
*-solaris2* )
#test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
RANLIB=':' ;;
esac
case "$canonical" in
*-solaris* )
opsys=sol2
os_release=`uname -r | sed -e 's/^\([[0-9]]\)\.\([[0-9]]\).*/\1\2/'`
AC_DEFINE_UNQUOTED(OS_RELEASE, $os_release) ;;
dnl The last Sun386 ran 4.0.
i*86-*-sunos4* ) opsys=sunos4-0 ;;
*-sunos4.0* ) opsys=sunos4-0 ;;
*-sunos4.1.2* ) opsys=sunos4-1-2 ;;
*-sunos4.1.3* ) opsys=sunos4-1-3 ;;
*-sunos4.1.[[4-9]]* ) opsys=sunos4-1-4 ;;
*-sunos4* | *-sunos ) opsys=sunos4-1 ;;