diff -Nru /tmp/OaXG1gSwbK/mozart-1.3.2.20060615+dfsg/aclocal.m4 mozart-1.4.0/aclocal.m4 --- mozart-1.3.2.20060615+dfsg/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 +++ mozart-1.4.0/aclocal.m4 2009-04-29 14:24:55.000000000 +0100 @@ -0,0 +1,1576 @@ +dnl -*- m4 -*- +dnl +dnl Authors: +dnl Denys Duchier (duchier@ps.uni-sb.de) +dnl Michael Mehl (mehl@dfki.de) +dnl +dnl Copyright: +dnl Denys Duchier (1998) +dnl +dnl Last change: +dnl $Date: 2008-06-26 15:39:31 +0200 (Thu, 26 Jun 2008) $ by $Author: raph $ +dnl $Revision: 17003 $ +dnl +dnl This file is part of Mozart, an implementation +dnl of Oz 3: +dnl http://www.mozart-oz.org +dnl +dnl See the file "LICENSE" or +dnl http://www.mozart-oz.org/LICENSE.html +dnl for information on usage and redistribution +dnl of this file, and for a DISCLAIMER OF ALL +dnl WARRANTIES. +dnl + +dnl ================================================================== +dnl SRCDIR, SRCTOP, BUILDTOP +dnl ================================================================== + +dnl ------------------------------------------------------------------ +dnl OZ_PATH_SRCDIR +dnl +dnl makes sure that $srcdir is absolute and sets SRCDIR. Obviously +dnl this one _must_ not be cached or else recursive configure will +dnl become very confused +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_PATH_SRCDIR,[ + srcdir=`cd $srcdir && pwd` + SRCDIR="$srcdir" + AC_SUBST(SRCDIR) +]) + +dnl ------------------------------------------------------------------ +dnl OZ_PATH_UPWARD(VAR,DIR,FILES) +dnl +dnl looks upward from DIR for a directory that contains one of the +dnl FILES and sets VAR to the abolute path to this directory, else +dnl leaves VAR unchanged. First it looks upward for the 1st file, if +dnl it does not find it, then it tries with the next file, etc... +dnl Thus you should list first the files that are more surely +dnl characteristic of the directory that you are looking for, and last +dnl those files that are strongly indicative, but not necessarily +dnl sure bets. +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_PATH_UPWARD,[ + oz_tmp_dir=[$2] + oz_tmp_ok= + oz_for="[$3]" + for oz_tmp1 in $oz_for; do + for oz_tmp2 in $oz_tmp_dir \ + $oz_tmp_dir/.. \ + $oz_tmp_dir/../.. \ + $oz_tmp_dir/../../.. \ + $oz_tmp_dir/../../../.. \ + $oz_tmp_dir/../../../../..; do + if test -r "$oz_tmp2/$oz_tmp1"; then + [$1]=`cd $oz_tmp2 && pwd` + oz_tmp_ok=yes + break + fi + done + test -n "$oz_tmp_ok" && break + done]) + +dnl ------------------------------------------------------------------ +dnl OZ_PATH_SRCTOP +dnl +dnl sets SRCTOP by looking upward from $srcdir for a directory +dnl containing file OZVERSION +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_PATH_SRCTOP,[ + AC_CACHE_CHECK([for SRCTOP],oz_cv_path_SRCTOP,[ + OZ_PATH_UPWARD(oz_cv_path_SRCTOP,$srcdir,[OZVERSION]) + if test -z "$oz_cv_path_SRCTOP"; then + AC_MSG_ERROR([cannot find SRCTOP]) + fi]) + SRCTOP=$oz_cv_path_SRCTOP + AC_SUBST(SRCTOP)]) + +dnl ------------------------------------------------------------------ +dnl OZ_PATH_BUILDTOP +dnl +dnl sets BUILDTOP by looking upward from the current directory +dnl for a directory containing either contrib or config.cache. We +dnl look for config.cache last because some people may want to run +dnl configure only in a subdirectory of the source tree. +dnl ------------------------------------------------------------------ + +dnl DEBIAN: +dnl In upstream this is looking for contrib then config.cache. This breaks for +dnl Debian where we build from within the source tree (and the search for contrib +dnl sets BUILDTOP to SRCTOP). I don't see why just config.cache shouldn't work +dnl for all cases ... +AC_DEFUN(OZ_PATH_BUILDTOP,[ + AC_CACHE_CHECK([for BUILDTOP],oz_cv_path_BUILDTOP,[ + OZ_PATH_UPWARD(oz_cv_path_BUILDTOP,.,[config.cache]) + if test -z "$oz_cv_path_BUILDTOP"; then + AC_MSG_ERROR([cannot find BUILDTOP]) + fi]) + BUILDTOP=$oz_cv_path_BUILDTOP + AC_SUBST(BUILDTOP)]) + +AC_DEFUN(OZ_PROG_INSTALL,[ + if test "${INSTALL+set}" = set; then + AC_CACHE_CHECK([whether to unset broken INSTALL], + oz_cv_unset_INSTALL,[ + echo >conftest.$$ + if $INSTALL -c -m 644 conftest.$$ /tmp >/dev/null 2>&1; then + rm -f /tmp/conftest.$$ 2>/dev/null + oz_cv_unset_INSTALL=no + oz_cv_given_INSTALL="$INSTALL" + else + oz_cv_unset_INSTALL=yes + fi + rm -f conftest.$$ 2>/dev/null]) + test "$oz_cv_unset_INSTALL" = yes && unset INSTALL + fi + AC_PROG_INSTALL + if test "$INSTALL" = "$oz_cv_given_INSTALL"; then + ac_given_INSTALL="$oz_cv_given_INSTALL" + fi + OZ_PATH_PROG(INSTALL_DIR, mkinstalldirs)]) + +AC_DEFUN(OZ_BUILD_DATE,[ + AC_CACHE_CHECK([for build date],oz_cv_build_date,[ + oz_cv_build_date=`date +"%Y%m%d"`]) + OZBUILDDATE=$oz_cv_build_date; + AC_SUBST(OZBUILDDATE)]) + +AC_DEFUN(OZ_BUILD_TIME,[ + AC_CACHE_CHECK([for build time],oz_cv_build_time,[ + oz_cv_build_time=`date +"%H%M%S"`]) + OZBUILDTIME=$oz_cv_build_time; + AC_SUBST(OZBUILDTIME)]) + +AC_DEFUN(OZ_VERSION,[ + AC_CACHE_CHECK([for oz version],oz_cv_ozversion,[ + oz_cv_ozversion=`sh $SRCTOP/OZVERSION`]) + OZVERSION=$oz_cv_ozversion; + AC_SUBST(OZVERSION)]) + +AC_DEFUN(OZ_INIT, [ + AC_PREFIX_DEFAULT(/usr/local/oz) + OZ_PATH_SRCDIR + OZ_PATH_SRCTOP + OZ_PATH_BUILDTOP + AC_CONFIG_AUX_DIR($SRCTOP) + if test "$host_os" = ""; then + AC_CANONICAL_HOST + fi + OZ_PROG_MAKE + AC_PROG_MAKE_SET + OZ_PROG_INSTALL + OZ_VERSION + HOMEURL="http://www.mozart-oz.org/home-$OZVERSION" + HOMECACHE="http/www.mozart-oz.org/home-$OZVERSION" + AC_SUBST(HOMEURL) + AC_SUBST(HOMECACHE) + case "$target" in + i386-mingw32|i386-mingw32msvc) + PLATFORM=win32-i486 + platform="win32-i486" + ozplatform=$platform + + cross_compiling=yes + + CXX=${target}-gcc + CC=${CXX} + RANLIB=${target}-ranlib + AR=${target}-ar + STRIP=${target}-strip + WINDRES=${target}-windres + AS=${target}-as + DLLTOOL=${target}-dlltool + DLLWRAP=${target}-dllwrap + OZTOOL="sh $BUILDTOP/platform/emulator/${target}-oztool" + enable_contrib_psql=no + enable_contrib_gdbm=yes + enable_contrib_regex=yes + enable_contrib_os=no + ;; + + *) + OZ_PATH_PROG(OZPLATFORM,ozplatform) + PLATFORM=`$OZPLATFORM || exit 1` + OZ_PATH_PROG(OZTOOL,oztool,[OZTOOL="sh $BUILDTOP/platform/emulator/oztool.sh"]) + ;; + esac + OZ_ARG_WITH_INC_DIR + OZ_ARG_WITH_LIB_DIR + AC_SUBST(CPPFLAGS) + AC_SUBST(LDFLAGS) + OZ_BUILD_DATE + OZ_BUILD_TIME + AC_SUBST(PLATFORM) + OZ_OZLOADSEP + OZ_OZLOADWIN +]) + +dnl ================================================================== +dnl VERSION CHECKING +dnl ================================================================== + +dnl ------------------------------------------------------------------ +dnl OZ_CHECK_VERSION(OK,GOT,WANT) +dnl +dnl GOT and WANT consist of integers separated by single periods, e.g. +dnl 23.1 or 3.5.7, and OK is set to yes or no according to whether +dnl GOT >= WANT with respect to the obvious ordering. To accomodate +dnl such program as perl, we also permit `_' and `-' instead of `.' +dnl +dnl for example +dnl OZ_CHECK_VERSION(OK,$VERSION,2.5.4) +dnl sets OK to yes or no, according to whether $VERSION is greater +dnl than 2.5.4 +dnl +dnl Note that we now support having one letter at the end: this +dnl interpreted as a "beta" version. Thus 1.3.23c is less that +dnl 1.3.23, but more than 1.3.23a. +dnl +dnl `set $oz_tmp_got DONE' results in the component integers being +dnl assigned to positional parameters $1, $2 etc... DONE marks the +dnl of this sequence. The for loop goes through what we `want' but +dnl also through what correspondingly we `got' through positional +dnl parameter $1. the `shift' at the end of the loop moves left +dnl all positional parameters, thus bringing the next thing we `got' +dnl into $1. +dnl +dnl Note that if GOT is empty the test succeeds (so don't do it) +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_PREPARE_VERSION,[ + oz_tmp="$[$1]" +changequote(<,>) + oz_tmp=`echo $oz_tmp | sed -e 's/[a-z]/.\0/'` + oz_tmp=`echo $oz_tmp | sed -e 's/[._-]/ /g'` +changequote([,]) + [$1]=$oz_tmp]) + +AC_DEFUN(OZ_CHECK_VERSION,[ + oz_tmp_got="[$2]" + oz_tmp_want="[$3]" + OZ_PREPARE_VERSION(oz_tmp_got) + OZ_PREPARE_VERSION(oz_tmp_want) + set $oz_tmp_got DONE + oz_tmp__ok=yes + for oz_tmp_cur in $oz_tmp_want; do + case $oz_tmp_cur in + DONE) + case $[1] in + [a-z]) oz_tmp__ok=no;; + *);; + esac + break + ;; + [a-z]) + case $[1] in + DONE) break;; + [a-z]) + if test `expr $oz_tmp_cur '<=' $[1]` -eq 0; then + oz_tmp__ok=no + break + fi + ;; + *) break + ;; + esac + ;; + *) + case $[1] in + DONE) oz_tmp__ok=no + break + ;; + [a-z]) oz_tmp__ok=no + break + ;; + *) if test "$oz_tmp_cur" -lt "$[1]"; then + break + elif test "$oz_tmp_cur" -gt "$[1]"; then + oz_tmp__ok=no + break + fi + ;; + esac + ;; + esac + [shift] + done + [$1]=$oz_tmp__ok]) + +dnl ------------------------------------------------------------------ +dnl OZ_PROG_VERSION_CHECK(VAR,PROG,VERSION [,HOW]) +dnl +dnl gets the --version of PROG and compares it to VERSION +dnl sets VAR to yes or no accordingly. HOW is the command to execute +dnl to get the text containing the string `version XXXX' where XXXX +dnl is the version number. If HOW is not supplied we use the +dnl --version option. +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_PROG_VERSION_CHECK,[ + AC_MSG_CHECKING([$2 version is at least $3]) + [$1]=no + if oz_tmp_version1=`ifelse([$4],[],[$2 --version],[$4]) 2>/dev/null`; then + # first we try to locate the string "version" + oz_tmp_version2=`echo "${oz_tmp_version1}" | tr '\012' ' '` +changequote(<,>) + oz_tmp_version=`expr "${oz_tmp_version2}" : '.*version \([0-9._-]*[a-z]\{0,1\}\)'` + # if that failed: we look at the end of the first line + if test -z "$oz_tmp_version"; then + oz_tmp_IFS="$IFS" + IFS=' +' + for oz_tmp_version3 in ${oz_tmp_version1}; do + oz_tmp_version=`expr "${oz_tmp_version3}" : '.* \([0-9._-]*[a-z]\{0,1\}\)$'` + # else try to match the entire first line + if test -z "$oz_tmp_version"; then + oz_tmp_version=`expr "${oz_tmp_version3}" : '\([0-9._-]*[a-z]\{0,1\}\)$'` + fi + break + done + IFS="$oz_tmp_IFS" + fi +changequote([,]) + if test -n "$oz_tmp_version"; then + OZ_CHECK_VERSION([$1],$oz_tmp_version,[$3]) + fi + fi + if test -z "$oz_tmp_version"; then + AC_MSG_RESULT([no (cannot find version)]) + elif test $[$1] = no; then + AC_MSG_RESULT([no]) + else + AC_MSG_RESULT([yes ($oz_tmp_version)]) + fi]) + +dnl ================================================================== +dnl CHOOSE C++ COMPILER +dnl +dnl choose only if the choice is not already in the cache. At +dnl Christian's request, CXXFLAGS is set to -O by default if it is not +dnl already set in the environment +dnl ================================================================== + +AC_DEFUN(OZ_VERSION_GXX,[3.3.2]) +AC_DEFUN(OZ_CXX_CHOOSE,[ + if test -z "$oz_cv_cxx__chosen"; then + : ${CXXFLAGS="-O"} + OZ_ARG_WITH_CXX + AC_PROG_CXX + if test "${GXX}" = yes; then + if oz_tmp=`$CXX -dumpversion 2>/dev/null` || oz_tmp=`$CXX --version 2>/dev/null`; then + if expr "$oz_tmp" : egcs >/dev/null; then +dnl I don't know what the appropriate version number is for egcs + AC_MSG_WARN([dont know how to check egcs version, assuming ok]) + else + OZ_PROG_VERSION_CHECK(oz_tmp_ok,$CXX,OZ_VERSION_GXX,$CXX -dumpversion || $CXX --version) + if test "$oz_tmp_ok" = no; then + AC_MSG_ERROR([ +configure found the GNU C++ compiler $CXX version $oz_tmp_version +but version] OZ_VERSION_GXX [or higher is required to build the +system. It can be retrieved from: + + ftp://ftp.gnu.org/pub/gnu/gcc/ + +The latest version at this time is 4.1.0 and is available +packaged as the following archive: + + gcc-4.1.0.tar.bz2 + +You may find a mirror archive closer to you by consulting: + + http://www.gnu.org/order/ftp.html +]) + fi + fi + else + AC_MSG_WARN([Could not check $CXX version, assuming ok]) + fi + fi + case "$PLATFORM" in + *win32*) + case "$CXX" in + *mno-cygwin*) + ;; + *) + OZ_CXX_OPTIONS(-mno-cygwin,oz_tmp) + CXX="$CXX${oz_tmp:+ }$oz_tmp" + ;; + esac + ;; + *) + ;; + esac + AC_PROG_CXXCPP + oz_cv_CXX=$CXX + oz_cv_CXXCPP=$CXXCPP + oz_cv_GXX=$GXX + oz_cv_CXXFLAGS=$CXXFLAGS + oz_cv_cxx__chosen=yes + else + OZ_FROM_CACHE(CXX,[for C++ compiler]) + OZ_FROM_CACHE(GXX,[whether we are using GNU C++]) + OZ_FROM_CACHE(CXXCPP,[for C++ preprocessor]) + if test "${CXXFLAGS+set}" != set; then + OZ_FROM_CACHE(CFLAGS,[for default CXXFLAGS]) + fi + fi + AC_SUBST(CXX) + AC_SUBST(CXXCPP)]) + +dnl ------------------------------------------------------------------ +dnl OZ_FROM_CACHE(VAR,MSG) +dnl +dnl sets VAR to $oz_cv_VAR while printing an appropriate MSG +dnl this is useful to give feedback to the user. use this when +dnl whether to compute a value is decided directly through an `if' +dnl test rather than by calling e.g. AC_CACHE_CHECK. +dnl +dnl OZ_MSG_FRONT(MSG) +dnl +dnl Same idea as AC_MSG_CHECKING, but doesn't say `Checking ', it just +dnl displays the MSG +dnl +dnl OZ_MSG_CACHING(MSG,VAR) +dnl +dnl gives feedback when caching a value that was computed as a side +dnl effect of doing something else. +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_FROM_CACHE,[ + OZ_MSG_FRONT([checking $2]) + [$1]=$oz_cv_$1 + AC_MSG_RESULT([(cached) $$1])]) + +define(OZ_MSG_FRONT, +[echo $ac_n "$1""... $ac_c" 1>&AC_FD_MSG +echo "configure:__oline__: $1" >&AC_FD_CC]) + +define(OZ_MSG_CACHING,[ + OZ_MSG_FRONT([Caching $1]) + AC_MSG_RESULT($$2)]) + +dnl ------------------------------------------------------------------ +dnl OZ_ARG_WITH_CXX +dnl +dnl maybe sets CCC to a specific C++ compiler +dnl 1. --with-cxx= (command line) +dnl 2. oz_cv_with_cxx (config.cache) +dnl 3. oz_with_cxx= (config.site) +dnl this is intended to be used by AC_PROG_CXX because it checks +dnl $CCC first in its list of alternative C++ compiler names +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_ARG_WITH_CXX,[ + AC_ARG_WITH(cxx, + [--with-cxx= use as C++ compiler (default=NONE)], + oz_cv_with_cxx=$with_cxx) + : ${CCC:=$oz_cv_with_cxx} + : ${CCC:=$oz_with_cxx} + : ${CXX:=$CCC} +]) + +dnl ================================================================== +dnl CHOOSE C COMPILER +dnl +dnl At Christian's request CFLAGS is set to -O by default if it is not +dnl already set in the environment. +dnl ================================================================== + +AC_DEFUN(OZ_VERSION_GCC,[3.3.2]) +AC_DEFUN(OZ_CC_CHOOSE,[ + if test -z "$oz_cv_cc__chosen"; then + : ${CFLAGS="-O"} + AC_PROG_CC + if test "$GCC" = yes; then + if oz_tmp=`$CC -dumpversion 2>/dev/null` || oz_tmp=`$CC --version 2>/dev/null`; then + if expr "$oz_tmp" : egcs >/dev/null; then +dnl I don't know what the appropriate version number is for egcs + AC_MSG_WARN([dont know how to check egcs version, assuming ok]) + else + OZ_PROG_VERSION_CHECK(oz_tmp_ok,$CC,OZ_VERSION_GCC,$CC -dumpversion || $CC --version) + if test "$oz_tmp_ok" = no; then + AC_MSG_ERROR([ +configure found the GNU C compiler $CC version $oz_tmp_version +but version] OZ_VERSION_GCC [or higher is required to build the +system. It can be retrieved from: + + ftp://ftp.gnu.org/pub/gnu/gcc/ + +The latest version at this time is 4.1.0 and is available +packaged as the following archive: + + gcc-4.1.0.tar.bz2 + +You may find a mirror archive closer to you by consulting: + + http://www.gnu.org/order/ftp.html +]) + fi + fi + else + AC_MSG_WARN([Could not check $CC version, assuming ok]) + fi + fi + case "$PLATFORM" in + *win32*) + case "$CC" in + *mno-cygwin*) + ;; + *) + OZ_CC_OPTIONS(-mno-cygwin,oz_tmp) + CC="$CC${oztmp:+ }$oz_tmp" + ;; + esac + ;; + *) + ;; + esac + AC_PROG_CPP + oz_cv_CC=$CC + oz_cv_CPP=$CPP + oz_cv_GCC=$GCC + oz_cv_CFLAGS=$CFLAGS + oz_cv_cc__chosen=yes + else + OZ_FROM_CACHE(CC,[for C compiler]) + OZ_FROM_CACHE(GCC,[whether we are using GNU C]) + OZ_FROM_CACHE(CPP,[for C preprocessor]) + if test "${CFLAGS+set}" != set ; then + OZ_FROM_CACHE(CFLAGS,[for default CFLAGS]) + fi + fi + AC_SUBST(CC) + AC_SUBST(CPP)]) + +dnl ================================================================== +dnl LOCATE UTILITIES AND CHECK VERSION NUMBERS +dnl ================================================================== + +dnl ------------------------------------------------------------------ +dnl OZ_PROG_FLEX or OZ_PROG_LEX +dnl +dnl locate GNU flex and check its version number. sets LEX and FLEX +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_PROG_LEX,[OZ_PROG_FLEX]) +AC_DEFUN(OZ_VERSION_FLEX,[2.5.3]) +AC_DEFUN(OZ_PROG_LEX_GNU,[ + if `$LEX -S/dev/null --version 2>/dev/null >/dev/null`; then + GNU_LEX=yes + else + GNU_LEX=no + fi]) + +AC_DEFUN(OZ_PROG_FLEX,[ + if test -z "$oz_cv_LEX"; then + AC_PROG_LEX + OZ_PROG_LEX_GNU + if test "$GNU_LEX" = no; then + oz_tmp_ok=no + AC_MSG_WARN([$LEX is not GNU flex]) + else + OZ_PROG_VERSION_CHECK(oz_tmp_ok,$LEX,OZ_VERSION_FLEX) + fi + if test "$oz_tmp_ok" = yes; then + oz_cv_LEX=$LEX + else + if test "$oz_coolness" = yes; then + LEX=flex_not_found + AC_MSG_WARN(GNU flex not found) + else + AC_MSG_ERROR([ +GNU flex version] OZ_VERSION_FLEX [or higher is needed to build the +system. It can be retrieved from: + + ftp://ftp.gnu.org/pub/gnu/non-gnu/flex/ + +The latest version at this time is 2.5.4a and is available +packaged as the following archive: + + flex-2.5.4a.tar.gz + +You may find a mirror archive closer to you by consulting: + + http://www.gnu.org/order/ftp.html + +You may find additional information or more recent releases +on the flex development site: + + http://lex.sourceforge.net/ +]) + fi + fi + else + OZ_FROM_CACHE(LEX,[for GNU flex]) + fi + FLEX=$LEX + AC_SUBST(LEX) + AC_SUBST(FLEX)]) + +dnl ------------------------------------------------------------------ +dnl OZ_PROG_BISON or OZ_PROG_YACC +dnl +dnl locate GNU bison and check its version number. sets YACC and BISON +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_PROG_YACC,[OZ_PROG_BISON]) +AC_DEFUN(OZ_VERSION_BISON,[1.25]) +AC_DEFUN(OZ_PROG_YACC_GNU,[ + if oz_tmp=`$YACC --version 2>/dev/null` && \ + oz_tmp=`expr "$oz_tmp" : '.*GNU'`; then + GNU_YACC=yes; + else + GNU_YACC=no + fi]) + +AC_DEFUN(OZ_PROG_BISON,[ + if test -z "$oz_cv_YACC"; then + AC_PROG_YACC + OZ_PROG_YACC_GNU + if test "$GNU_YACC" = no; then + oz_tmp_ok=no + AC_MSG_WARN([$YACC is not GNU bison]) + else + OZ_PROG_VERSION_CHECK(oz_tmp_ok,$YACC,OZ_VERSION_BISON) + fi + if test "$oz_tmp_ok" = yes; then + oz_cv_YACC=$YACC + else + if test "$oz_coolness" = yes; then + YACC=bison_not_found + AC_MSG_WARN(bison not found) + else + AC_MSG_ERROR([ +GNU bison version] OZ_VERSION_BISON [or higher is needed to build the system. +It can be retrieved from: + + ftp://ftp.gnu.org/pub/gnu/bison/ + +The latest version at this time is 1.875 and is available +packaged as the following archive: + + bison-1.875.tar.gz + + +You may find a mirror archive closer to you by consulting: + + http://www.gnu.org/order/ftp.html +]) + fi + fi + else + OZ_FROM_CACHE(YACC,[for GNU bison]) + fi + BISON=$YACC + AC_SUBST(YACC) + AC_SUBST(BISON)]) + +dnl ------------------------------------------------------------------ +dnl OZ_PROG_PERL +dnl +dnl locate perl and checks its version number. sets PERL +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_VERSION_PERL,[5]) +AC_DEFUN(OZ_PROG_PERL,[ + if test -z "$oz_cv_PERL"; then + AC_CHECK_PROGS(PERL,perl perl5,NONE) + if test "$PERL" = NONE; then + oz_tmp_ok=no; + else +changequote(<,>) + oz_tmp_version=`$PERL -e 'print "[$]\n";' | sed 's|^.||'` +changequote([,]) + OZ_CHECK_VERSION(oz_tmp_ok,$oz_tmp_version,OZ_VERSION_PERL) + fi + if test "$oz_tmp_ok" = yes; then + oz_cv_PERL=$PERL + else + if test "$oz_coolness" = yes; then + PERL=perl_not_found + AC_MSG_WARN(perl not found) + else + AC_MSG_ERROR([ +Perl version] OZ_VERSION_PERL [or higher is needed to build the system. +It can be retrieved from: + + http://www.perl.org/get.html + +The latest version at this time is 5.8.2. You may find further +information on the Perl site: + + http://www.perl.org/ +]) + fi + fi + else + OZ_FROM_CACHE(PERL,[for perl]) + fi + AC_SUBST(PERL)]) + +dnl ------------------------------------------------------------------ +dnl OZ_PROG_M4 +dnl +dnl locate GNU m4. sets M4 and M4_S +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_PROG_M4_GNU,[ + if oz_tmp=`$M4 --version 2>/dev/null` && \ + oz_tmp=`expr "$oz_tmp" : GNU`; then + GNU_M4=yes + else + GNU_M4=no + fi]) + +AC_DEFUN(OZ_PROG_M4,[ + if test -z "$oz_cv_M4"; then + AC_CHECK_PROGS(M4,gm4 m4,NONE) + if test "$M4" = NONE; then + oz_tmp_ok=no; + else + OZ_PROG_M4_GNU + if test "$GNU_M4" = no; then + oz_tmp_ok=no + AC_MSG_WARN([$M4 is not GNU m4]) + else + oz_tmp_ok=yes + fi + if test "$oz_tmp_ok" = yes; then + oz_cv_M4=$M4 + else + if test "$oz_coolness" = yes; then + M4=m4_not_found + AC_MSG_WARN(m4 not found) + else + AC_MSG_ERROR([ +GNU m4 is needed to build the system. +It can be retrieved from: + + ftp://ftp.gnu.org/pub/gnu/m4/ + +The latest version at this time is 1.4 and is available +packaged as the following archive: + + m4-1.4.tar.gz + +You may find a mirror archive closer to you by consulting: + + http://www.gnu.org/order/ftp.html +]) + fi + fi + fi + else + OZ_FROM_CACHE(M4,[for GNU m4]) + fi + M4_S="-s" + AC_SUBST(M4) + AC_SUBST(M4_S)]) + +dnl ------------------------------------------------------------------ +dnl OZ_PROG_MAKE +dnl +dnl locate GNU make. sets MAKE +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_PROG_MAKE_GNU,[ + if oz_tmp=`$MAKE -n --version 2>/dev/null` && \ + oz_tmp=`expr "$oz_tmp" : GNU`; then + GNU_MAKE=yes + else + GNU_MAKE=no + fi]) + +AC_DEFUN(OZ_PROG_MAKE,[ + if test -z "$oz_cv_MAKE"; then + AC_CHECK_PROGS(MAKE,gmake make,NONE) + if test "$MAKE" = NONE; then + oz_tmp_ok=no + else + OZ_PROG_MAKE_GNU + if test "$GNU_MAKE" = no; then + oz_tmp_ok=no + AC_MSG_WARN([$MAKE is not GNU make]) + else + oz_tmp_ok=yes + fi + fi + if test "$oz_tmp_ok" = yes; then + oz_cv_MAKE=$MAKE + else + AC_MSG_ERROR([ +GNU make is needed to build the system. +It can be retrieved from: + + ftp://ftp.gnu.org/pub/gnu/make/ + +The latest version at this time is 3.80 and is available +packaged as the following archive: + + make-3.80.tar.gz + +You may find a mirror archive closer to you by consulting: + + http://www.gnu.org/order/ftp.html +]) + fi + else + OZ_FROM_CACHE(MAKE,[for GNU make]) + fi + AC_SUBST(MAKE)]) + +dnl ------------------------------------------------------------------ +dnl OZ_LIB_GMP +dnl +dnl locates gmp.h and libgmp and checks the version number +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_VERSION_GMP,[2]) + +AC_DEFUN(OZ_LIB_GMP,[ +AC_MSG_CHECKING(for --with-gmp) +AC_ARG_WITH(gmp, + [--with-gmp= search gmp library and header in (default: yes)], + with_gmp=$withval, + with_gmp=yes) + +if test "$with_gmp" != no +then + AC_MSG_RESULT($with_gmp) + + if test "${with_gmp}" != yes + then + oz_gmp_lib_dir=$with_gmp + oz_gmp_inc_dir=$with_gmp + fi + + oz_inc_path="$oz_gmp_inc_dir $oz_inc_path" + oz_lib_path="$oz_gmp_lib_dir $oz_lib_path" + +else + AC_MSG_RESULT(no) +fi + +OZ_CHECK_HEADER_PATH(gmp.h, + [oz_gmp_inc_found=yes], +dnl try adding /usr/include/gmp2 for Debian + [oz_inc_path_sav=$oz_inc_path + oz_inc_path="$oz_inc_path /usr/include/gmp2" + OZ_CHECK_HEADER_PATH(gmp.h, + [oz_gmp_inc_found=yes], + [oz_gmp_inc_found=no + oz_inc_path=$oz_inc_path_sav])]) + +if test "$oz_gmp_inc_found" = yes; then +dnl first check for GMP 3 + OZ_CHECK_LIB_PATH(gmp, __gmpz_init, + oz_gmp_lib_found=gmp, +dnl if that fail, try GMP 2 + OZ_CHECK_LIB_PATH(gmp, mpz_init, + oz_gmp_lib_found=gmp, + OZ_CHECK_LIB_PATH(gmp2, mpz_init, + oz_gmp_lib_found=gmp2, + oz_gmp_lib_found=no))) +fi + +if test "$oz_gmp_lib_found" != no; then + AC_MSG_CHECKING(gmp version is at least OZ_VERSION_GMP) + if test -z "$oz_cv_gmp_version_ok"; then + cat > conftest.$ac_ext < +TheVersion __GNU_MP_VERSION __GNU_MP_VERSION_MINOR +EOF + oz_tmp=`$CXXCPP $CPPFLAGS conftest.$ac_ext | egrep TheVersion`; + rm -f conftest.$ac_ext 2>/dev/null +changequote(<,>) + OZ_GMP_MAJOR=`expr "$oz_tmp" : 'TheVersion *\([0-9]*\) '` + OZ_GMP_MINOR=`expr "$oz_tmp" : 'TheVersion *[0-9]* *\([0-9]*\) *$'` +changequote([,]) + if oz_tmp=`expr "$oz_tmp" : 'TheVersion \(.*\)$'`; then + OZ_CHECK_VERSION(oz_tmp_ok,$oz_tmp,OZ_VERSION_GMP) + test "$oz_tmp_ok" = yes && oz_cv_gmp_version_ok=$oz_tmp_ok + else + oz_tmp_ok=no + fi + oz_cv_gmp_version_major=$OZ_GMP_MAJOR + oz_cv_gmp_version_minor=$OZ_GMP_MINOR + AC_MSG_RESULT($oz_tmp_ok) + else + oz_tmp_ok=$oz_cv_gmp_version_ok + OZ_GMP_MAJOR=$oz_cv_gmp_version_major + OZ_GMP_MINOR=$oz_cv_gmp_version_minor + AC_MSG_RESULT([(cached) $oz_tmp_ok]) + fi + oz_gmp_version_ok=$oz_tmp_ok +fi + +if test "$oz_gmp_inc_found" = no; then + AC_MSG_WARN([required GNU MP include file not found]) +elif test "$oz_gmp_lib_found" = no; then + AC_MSG_WARN([required GNU MP lib not found]) +elif test "$oz_gmp_version_ok" = no; then + AC_MSG_WARN([GNU MP version too old]) +fi + +if test "$oz_gmp_inc_found" = no || \ + test "$oz_gmp_lib_found" = no || \ + test "$oz_gmp_version_ok" = no; then + AC_MSG_ERROR([ +The GNU Multiple Precision Arithmetic Library (gmp) +version] OZ_VERSION_GMP [or higher is required +to build the system. It can be retrieved from: + + ftp://ftp.gnu.org/pub/gnu/gmp/ + +The latest version at this time is 4.1.2 and is available +packaged as the following archive: + + ftp://ftp.gnu.org/pub/gnu/gmp/gmp-4.1.2.tar.gz + +You may find a mirror archive closer to you by consulting: + + http://www.gnu.org/order/ftp.html +]) +fi]) + +dnl ------------------------------------------------------------------ +dnl OZ_LIB_ZLIB +dnl +dnl locates libz and zlib.h +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_LIB_ZLIB,[ + AC_MSG_CHECKING(for --with-zlib) + AC_ARG_WITH(zlib, + [--with-zlib= search zlib library and header in (default: yes)], + with_zlib=$withval, + with_zlib=yes) +if test "$with_zlib" != no +then + AC_MSG_RESULT($with_zlib) + + if test "${with_zlib}" != yes + then + oz_zlib_lib_dir=$with_zlib + oz_zlib_inc_dir=$with_zlib + fi + + oz_inc_path="$oz_zlib_inc_dir $oz_inc_path" + oz_lib_path="$oz_zlib_lib_dir $oz_lib_path" + +else + AC_MSG_RESULT(no) +fi + +OZ_CHECK_HEADER_PATH(zlib.h,oz_zlib_inc_found=yes,oz_zlib_inc_found=no) + +if test "$oz_zlib_inc_found" = yes; then + OZ_CHECK_LIB_PATH(z, zlibVersion, oz_zlib_lib_found=yes, + OZ_CHECK_LIB_PATH(gz, zlibVersion, oz_zlib_lib_found=yes, + oz_zlib_lib_found=no)) +fi + +if test "$oz_zlib_inc_found" = no; then + AC_MSG_WARN([required ZLIB include file zlib.h not found]) +elif test "$oz_zlib_lib_found" = no; then + AC_MSG_WARN([required ZLIB library libz not found]) +fi + +if test "$oz_zlib_inc_found" = no || \ + test "$oz_zlib_lib_found" = no; then + AC_MSG_ERROR([ +The ZLIB general purpose compression library is required to +build the system. It can be retrieved from: + + http://www.gzip.org/zlib/ + +]) +fi +]) + +dnl ------------------------------------------------------------------ +dnl OZ_NEEDS_FUNC(FUNCTION) +dnl +dnl makes sure that FUNCTION is now available, else signals an error. +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_NEEDS_FUNC,[ + AC_CHECK_FUNC([$1],[oz_tmp_ok=yes],[oz_tmp_ok=no]) + if test "$oz_tmp_ok" = no; then + AC_MSG_ERROR([Function $1 is not available. +The system cannot be built. +]) + fi]) + +dnl ------------------------------------------------------------------ +dnl OZ_ARG_WITH_GLOBAL_OZ +dnl +dnl typically, we do NOT want to bootstrap the system using an existing +dnl mozart installation. This can be overriden with an explicit +dnl --with-global-oz +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_ARG_WITH_GLOBAL_OZ,[ + AC_MSG_CHECKING([for --with-global-oz]) + AC_ARG_WITH(global-oz, + [--with-global-oz allows to use an existing oz installation to build the system (default: no)], + [oz_cv_global_oz="$with_global_oz"], + [oz_cv_global_oz=no]) + WITH_GLOBAL_OZ="$oz_cv_global_oz" + AC_MSG_RESULT($WITH_GLOBAL_OZ) +]) + +dnl ------------------------------------------------------------------ +dnl OZ_PATH_PROG(VAR,PROGRAM,ACTION-IF-NOT-FOUND) +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_PATH_PROG, [ + if test -z "$WITH_GLOBAL_OZ"; then + OZ_ARG_WITH_GLOBAL_OZ + fi + dummy_PATH="$PATH" + if test "$WITH_GLOBAL_OZ" = no; then + for oz_prog_tmp in $2; do + case $oz_prog_tmp in + oz|ozc|ozl|oztool|ozengine|ozplatform|ozdoc) + dummy_PATH="$SRCTOP/share/bin:$SRCTOP" + ;; + esac + done + fi + dummy_PWD=`pwd | sed 's/\//\\\\\//g'` + dummy_PATH=`echo $dummy_PATH | sed -e 's/::/:/g' | sed -e 's/:$//g'` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.:/$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.\//$dummy_PWD\//g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.\$/:$dummy_PWD/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.:/:$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:.\//:$dummy_PWD\//g"` + oz_for="$dummy_PATH:$SRCTOP/share/bin:$SRCTOP" + AC_PATH_PROG($1,$2,,$oz_for) + case "$host_os" in + cygwin*) ;; + *) $1=`echo $$1 | sed -e "s|//|/|g"`;; + esac + if test ! -n "$$1" + then + $1=undefined + $3 + fi + ]) + +AC_DEFUN(OZ_TRY_LINK, [ + AC_TRY_LINK( +#ifdef __cplusplus +extern "C" +#endif +char $1(); +, +$1(),$2,$3)]) + +AC_DEFUN(OZ_CHECK_LIB, [ + oz_saved_LIBS=$LIBS + OZ_TRY_LINK($2,$3, + [if test "${oz_enable_link_static}" = yes; then + oz_add_libs="-Xlinker -Bstatic -l$1 -Xlinker -Bdynamic" + LIBS="$oz_add_libs${oz_saved_LIBS:+ }$oz_saved_LIBS" + OZ_TRY_LINK($2, $3, + [LIBS="-l$1 $oz_saved_LIBS" + oz_add_libs="-l$1" + OZ_TRY_LINK($2,$3, + [LIBS=$oz_saved_LIBS + oz_add_libs=no + $4])]) + else + LIBS="-l$1 $oz_saved_LIBS" + oz_add_libs="-l$1" + OZ_TRY_LINK($2,$3, + [LIBS=$oz_saved_LIBS + oz_add_libs=no + $4]) + fi])]) + +AC_DEFUN(OZ_CXX_OPTIONS, [ + ozm_out= + if test -n "$1" + then + echo 'void f(){}' > oz_conftest.c + oz_for="$1" + for ozm_opt in $oz_for + do + AC_MSG_CHECKING(c++ compiler option $ozm_opt) + ozm_ropt=`echo $ozm_opt | sed -e 's/[[^a-zA-Z0-9_]]/_/g'` + AC_CACHE_VAL(oz_cv_gxxopt_$ozm_ropt, + if test -z "`${CXX} ${ozm_out} ${ozm_opt} -c oz_conftest.c 2>&1`"; then + eval "oz_cv_gxxopt_$ozm_ropt=yes" + else + eval "oz_cv_gxxopt_$ozm_ropt=no" + fi) + if eval "test \"`echo '$''{'oz_cv_gxxopt_$ozm_ropt'}'`\" = yes"; then + ozm_out="$ozm_out $ozm_opt" + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi + done + rm -f oz_conftest* + fi + $2="$ozm_out" + ]) + +AC_DEFUN(OZ_CXX_FIRST_OPTION, [ + ozm_out= + if test -n "$1" + then + echo 'void f(){}' > oz_conftest.c + oz_for="$1" + for ozm_opt in $oz_for + do + AC_MSG_CHECKING(c++ compiler option $ozm_opt) + ozm_ropt=`echo $ozm_opt | sed -e 's/[[^a-zA-Z0-9_]]/_/g'` + AC_CACHE_VAL(oz_cv_gxxopt_$ozm_ropt, + if test -z "`${CXX} ${ozm_out} ${ozm_opt} -c oz_conftest.c 2>&1`"; then + eval "oz_cv_gxxopt_$ozm_ropt=yes" + else + eval "oz_cv_gxxopt_$ozm_ropt=no" + fi) + if eval "test \"`echo '$''{'oz_cv_gxxopt_$ozm_ropt'}'`\" = yes"; then + ozm_out="$ozm_out $ozm_opt" + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi + if test -n "$ozm_out"; then + break; + fi + done + rm -f oz_conftest* + fi + $2="$ozm_out" + ]) + +AC_DEFUN(OZ_CC_OPTIONS, [ + ozm_out= + if test -n "$1" + then + echo 'void f(){}' > oz_conftest.c + oz_for="$1" + for ozm_opt in $oz_for + do + AC_MSG_CHECKING(cc compiler option $ozm_opt) + ozm_ropt=`echo $ozm_opt | sed -e 's/[[^a-zA-Z0-9_]]/_/g'` + AC_CACHE_VAL(oz_cv_gccopt_$ozm_ropt, + if test -z "`${CC} ${ozm_out} ${ozm_opt} -c oz_conftest.c 2>&1`"; then + eval "oz_cv_gccopt_$ozm_ropt=yes" + else + eval "oz_cv_gccopt_$ozm_ropt=no" + fi) + if eval "test \"`echo '$''{'oz_cv_gccopt_$ozm_ropt'}'`\" = yes"; then + ozm_out="$ozm_out $ozm_opt" + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi + done + rm -f oz_conftest* + fi + $2="$ozm_out" + ]) + +AC_DEFUN(OZ_CC_FIRST_OPTION, [ + ozm_out= + if test -n "$1" + then + echo 'void f(){}' > oz_conftest.c + oz_for="$1" + for ozm_opt in $oz_for + do + AC_MSG_CHECKING(cc compiler option $ozm_opt) + ozm_ropt=`echo $ozm_opt | sed -e 's/[[^a-zA-Z0-9_]]/_/g'` + AC_CACHE_VAL(oz_cv_gccopt_$ozm_ropt, + if test -z "`${CC} ${ozm_out} ${ozm_opt} -c oz_conftest.c 2>&1`"; then + eval "oz_cv_gccopt_$ozm_ropt=yes" + else + eval "oz_cv_gccopt_$ozm_ropt=no" + fi) + if eval "test \"`echo '$''{'oz_cv_gccopt_$ozm_ropt'}'`\" = yes"; then + ozm_out="$ozm_out $ozm_opt" + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi + if test -n "$ozm_out"; then + break; + fi + done + rm -f oz_conftest* + fi + $2="$ozm_out" + ]) + +AC_DEFUN(OZ_ADDTO_LDFLAGS,[ + if test "[$1]" != yes && test "[$1]" != no; then + oz_tmp_ok=yes + for oz_tmp in $LDFLAGS NONE; do + if test "$oz_tmp" = "[$1]"; then + oz_tmp_ok=no + break + fi + done + test "$oz_tmp_ok" = yes && LDFLAGS="[$1]${LDFLAGS:+ }$LDFLAGS" + fi +]) + +AC_DEFUN(OZ_ADDTO_LIBS,[ + if test -n "[$1]" && test "[$1]" != yes && test "[$1]" != no; then + LIBS="[$1]${LIBS:+ }$LIBS" + fi]) + +AC_DEFUN(OZ_CHECK_LIB_PATH,[ + if test -n "$[oz_cv_lib_path_ldflags_]patsubst($1_$2,[[^a-zA-Z0-9_]],_)"; then + AC_MSG_CHECKING([for library $1]) + oz_add_ldflags=$[oz_cv_lib_path_ldflags_]patsubst($1_$2,[[^a-zA-Z0-9_]],_) + oz_add_libs=$[oz_cv_lib_path_libs_]patsubst($1_$2,[[^a-zA-Z0-9_]],_) + if test "$oz_add_ldflags" = no; then + oz_tmp=no + else + if test -n "$oz_add_ldflags" && test "$oz_add_ldflags" != yes; then + oz_tmp="$oz_add_ldflags (LDFLAGS)" + else + oz_tmp= + fi + if test -n "$oz_add_libs" && \ + test "$oz_add_libs" != yes && \ + test "$oz_add_libs" != no; then + oz_tmp="$oz_tmp${oz_tmp:+ }$oz_add_libs (LIBS)" + fi + fi + AC_MSG_RESULT([(cached) $oz_tmp]) + else + oz_tmp_ldflags=$LDFLAGS + oz_tmp_libs=$LIBS + oz_add_ldflags=no + oz_add_libs=no + AC_MSG_CHECKING([for $2 in -l$1 (default)]) + OZ_CHECK_LIB($1,$2, + [AC_MSG_RESULT(yes) + oz_add_ldflags=yes + ], + [AC_MSG_RESULT(no) + for p in $oz_lib_path; do + LDFLAGS="-L$p $oz_tmp_ldflags" + AC_MSG_CHECKING([for $2 in -L$p -l$1]) + OZ_CHECK_LIB($1,$2, + [AC_MSG_RESULT(yes) + oz_add_ldflags="-L$p" + break], + [AC_MSG_RESULT(no)]) + done]) + LDFLAGS=$oz_tmp_ldflags + LIBS=$oz_tmp_libs + [oz_cv_lib_path_ldflags_]patsubst($1_$2,[[^a-zA-Z0-9_]],_)=$oz_add_ldflags + [oz_cv_lib_path_libs_]patsubst($1_$2,[[^a-zA-Z0-9_]],_)=$oz_add_libs + fi + if test "$oz_add_ldflags" = no; then + ifelse([$4],[],:,[$4]) + else + OZ_ADDTO_LDFLAGS($oz_add_ldflags) + OZ_ADDTO_LIBS($oz_add_libs) + $3 + fi]) + + +AC_DEFUN(OZ_ADDTO_CPPFLAGS,[ + if test "[$1]" != yes && test "[$1]" != no; then + oz_tmp_ok=yes + for oz_tmp in $CPPFLAGS NONE; do + if test "$oz_tmp" = "[$1]"; then + oz_tmp_ok=no + break + fi + done + test "$oz_tmp_ok" = yes && CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }[$1]" + fi +]) + + +AC_DEFUN(OZ_CHECK_HEADER_PATH, [ + AC_CACHE_CHECK([for $1],dnl +changequote(`,')oz_cv_header_`'patsubst($1,[^a-zA-Z0-9],_), +changequote([,]) + [ + oz_tmp_cppflags="$CPPFLAGS" + oz_tmp_ok=no + for oz_tmp in $oz_inc_path; do + CPPFLAGS="$oz_tmp_cppflags -I$oz_tmp" + AC_TRY_CPP([#include "$1"],[ + oz_tmp_ok="-I$oz_tmp" + break]) + done + CPPFLAGS="$oz_tmp_cppflags" + if test "$oz_tmp_ok" = no; then + AC_TRY_CPP([#include "$1"],[ + oz_tmp_ok=yes],) + fi +changequote(`,')oz_cv_header_`'patsubst($1,[^a-zA-Z0-9],_)="$oz_tmp_ok" +changequote([,]) + ]) +changequote(`,') + oz_tmp_val=$oz_cv_header_`'patsubst($1,[^a-zA-Z0-9],_) +changequote([,]) + if test "$oz_tmp_val" != no; then + if test "$oz_tmp_val" != yes; then + OZ_ADDTO_CPPFLAGS($oz_tmp_val) + fi + $2 + else + ifelse([$3],[],:,$3) + fi]) + +AC_DEFUN(OZ_CONTRIB_INIT,[ + OZ_INIT + OZ_PATH_PROG(OZC,ozc) + OZ_PATH_PROG(OZL,ozl) + OZ_PATH_PROG(OZE,ozengine) +]) + +AC_DEFUN(OZ_CONTRIB_INIT_CXX,[ + OZ_CONTRIB_INIT +dnl we actually need the c++ compiler to test for libraries +dnl just oztool does not suffice since configure doesn't use +dnl oztool but calls the compiler directly + OZ_CXX_CHOOSE + AC_SUBST(CPPFLAGS) + AC_SUBST(CXXFLAGS) + AC_LANG_CPLUSPLUS +dnl OZ_PATH_PROG(OZTOOL,oztool,[OZTOOL="sh $BUILDTOP/platform/emulator/oztool.sh"]) +]) + + +dnl ------------------------------------------------------------------ +dnl OZ_ENABLE +dnl +dnl a canonical macro to check for enable options +dnl OZ_ENABLE(name,comment,default, on_yes, on_no) +dnl tests for the option --enable/disable-name +dnl the 'default' can be either 'yes' or 'no' +dnl if the option is enabled 'on_yes' is executed, else 'on_no' +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_ENABLE, [ + AC_MSG_CHECKING(for --enable-$1) + AC_ARG_ENABLE($1, [--enable-$1 $2 (default=$3)]) + : ${[oz_enable_]translit($1,-,_)=$3} + if test -n "${[enable_]translit($1,-,_)}"; then + [oz_enable_]translit($1,-,_)=$[enable_]translit($1,-,_) + fi + if test "${[oz_enable_]translit($1,-,_)}" != no; then + ifelse($4,[],AC_MSG_RESULT(yes),$4) + else + ifelse($5,[],AC_MSG_RESULT(no),$5) + fi + ]) + +dnl ------------------------------------------------------------------ +dnl OZ_COMPILE_ELISP +dnl check for --enable-compile-elisp +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_COMPILE_ELISP, + [OZ_ENABLE(compile-elisp,[whether to compile elisp files],yes, + COMPILE_ELISP=yes, + COMPILE_ELISP=no) + AC_MSG_RESULT($COMPILE_ELISP) + AC_SUBST(COMPILE_ELISP)]) + +dnl ------------------------------------------------------------------ +dnl OZ_EMACS +dnl tries to locate emacs or xemacs +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_EMACS,[ + AC_CHECK_PROGS(THEEMACS, emacs xemacs, emacs) + AC_SUBST(THEEMACS)]) + +dnl ------------------------------------------------------------------ +dnl OZ_EMACS_OPTIONS +dnl check with what options to start an emacs subprocess, e.g. +dnl to perform highlighting when processing the documentation +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_EMACS_OPTIONS,[ + AC_REQUIRE([OZ_EMACS]) + AC_MSG_CHECKING([for --with-emacs-options]) + AC_ARG_WITH(emacs-options, + [--with-emacs-options=OPTIONS command-[line] options for emacs subprocess (default: -q --no-site-[file])], + [oz_cv_emacs_options="$with_emacs_options"], + [ if $THEEMACS --version 2>&1 | egrep XEmacs >/dev/null; then + oz_cv_emacs_options="-q -no-site-[file]" + else + oz_cv_emacs_options="-q --no-site-[file]" + fi ]) + EMACS_OPTIONS="$oz_cv_emacs_options" + AC_SUBST(EMACS_OPTIONS) + AC_MSG_RESULT($EMACS_OPTIONS)]) + +dnl ------------------------------------------------------------------ +dnl OZ_DENYS_EVENTS +dnl check for --enable-denys-events +dnl sets DENYS_EVENTS accordingly +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_DENYS_EVENTS, + [OZ_ENABLE(denys-events,[enable new events mechanism],no, + DENYS_EVENTS=yes, + DENYS_EVENTS=no) + AC_MSG_RESULT($DENYS_EVENTS) + AC_SUBST(DENYS_EVENTS)]) + +dnl ------------------------------------------------------------------ +dnl OZ_SITE_PROPERTY +dnl check for --enable-site-property +dnl sets SITE_PROPERTY accordingly +dnl defaults to on (not supported, will disappear when better alternative) +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_SITE_PROPERTY, + [OZ_ENABLE(site-property,[enable site property support],yes, + SITE_PROPERTY=yes, + SITE_PROPERTY=no) + AC_MSG_RESULT($SITE_PROPERTY) + AC_SUBST(SITE_PROPERTY)]) + +dnl ------------------------------------------------------------------ +dnl OZ_ARG_WITH_LIB_DIR +dnl +dnl maybe adds some directories to LDFLAGS and oz_lib_path +dnl --with-lib-dirs=d1,...,dn +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_ARG_WITH_LIB_DIR,[ + AC_MSG_CHECKING(for --with-lib-dir) + AC_ARG_WITH(lib-dir, + [--with-lib-dir=d1,...,dn add these dirs to LDFLAGS], + [oz_cv_with_lib_dirs=$with_lib_dir], + [: ${oz_cv_with_lib_dirs=$oz_with_lib_dir}]) + AC_MSG_RESULT($with_lib_dir) + oz_tmp_IFS="$IFS" + IFS="," + # reverse the list of dirs + oz_tmp_dirs="" + for oz_tmp in $oz_cv_with_lib_dirs DONE; do + if test "$oz_tmp" != DONE; then + oz_tmp_dirs="$oz_tmp${oz_tmp_dirs:+ }$oz_tmp_dirs" + fi + done + # add them to LDFLAGS and oz_lib_path + IFS=$oz_tmp_IFS + : ${oz_lib_path=""} + for oz_tmp1 in $oz_tmp_dirs DONE; do + if test "$oz_tmp1" != DONE; then + OZ_ADDTO_LDFLAGS(-L$oz_tmp1) + oz_lib_path="$oz_tmp1${oz_lib_path:+ }$oz_lib_path" + fi + done +]) + +dnl ------------------------------------------------------------------ +dnl OZ_ARG_WITH_INC_DIR +dnl +dnl maybe adds some directories to CPPFLAGS +dnl --with-inc-dirs=d1,...,dn +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_ARG_WITH_INC_DIR,[ + AC_MSG_CHECKING(for --with-inc-dir) + AC_ARG_WITH(inc-dir, + [--with-inc-dir=d1,...,dn add these dirs to CPPFLAGS], + [oz_cv_with_inc_dirs=$with_inc_dir], + [: ${oz_cv_with_inc_dirs=$oz_with_inc_dir}]) + AC_MSG_RESULT($with_inc_dir) + oz_tmp_IFS="$IFS" + IFS="," + # reverse the list of dirs + oz_tmp_dirs="" + for oz_tmp in $oz_cv_with_inc_dirs DONE; do + if test "$oz_tmp" != DONE; then + oz_tmp_dirs="$oz_tmp${oz_tmp_dirs:+ }$oz_tmp_dirs" + fi + done + # add them to CPPFLAGS and oz_inc_path + IFS=$oz_tmp_IFS + : ${oz_inc_path=""} + for oz_tmp1 in $oz_tmp_dirs DONE; do + if test "$oz_tmp1" != DONE; then + OZ_ADDTO_CPPFLAGS(-I$oz_tmp1) + oz_inc_path="$oz_tmp1${oz_inc_path:+ }$oz_inc_path" + fi + done +]) + +dnl ------------------------------------------------------------------ +dnl defines some vars that need special care under Windows +dnl +dnl OZ_OZLOADSEP +dnl define OZLOADSEP to be ":" on Unix and ";" on Windows +dnl +dnl OZ_LOADWIN +dnl +dnl on Unix we typically added to OZ_LOAD specs like prefix=/=/ and +dnl prefix=./=./ to say that absolute paths should be tried as such +dnl but on Windows these specs don't match path that begin with a +dnl drive. Instead we need to add rules like prefix=y:/=y:/ and for +dnl robustness, we need to add both the lowercase and the uppercase +dnl versions. We define variable OZLOADWIN to contain such specs +dnl both for the srcdir and for the build dir; each spec is prefixed +dnl by the character `%' which serves as the portable path separator +dnl to be subsequently substituted by the platform specific one. +dnl OZLOADWIN can be cached because the drives for source dir and +dnl build dir are the same for the entire build. +dnl ------------------------------------------------------------------ + +AC_DEFUN(OZ_OZLOADSEP,[ + AC_CACHE_CHECK([for OZLOADSEP],oz_cv_OZLOADSEP,[ + case $PLATFORM in + win32*) oz_cv_OZLOADSEP=';' + ;; + *) oz_cv_OZLOADSEP=':' + ;; + esac + ]) + OZLOADSEP="$oz_cv_OZLOADSEP"; + AC_SUBST(OZLOADSEP) +]) + +AC_DEFUN(OZ_OZLOADWIN,[ + AC_CACHE_CHECK([for OZLOADWIN],oz_cv_OZLOADWIN,[ +changequote(<,>) + case $PLATFORM in + win32*) + oztmp=`pwd` + oztmp=`cygpath -a -w "$oztmp"` + oztmp=`expr "$oztmp" : "\(.\):"` + if test -n "$oztmp"; then + oztmplo=`echo $oztmp | tr '[:upper:]' '[:lower:]'` + oztmphi=`echo $oztmp | tr '[:lower:]' '[:upper:]'` + oz_cv_OZLOADWIN="%prefix=${oztmplo}:/=${oztmplo}:/%prefix=${oztmphi}:/=${oztmphi}:/" + fi + oztmp=`cygpath -a -w "$srcdir"` + oztmp=`expr "$oztmp" : "\(.\):"` + if test -n "$oztmp"; then + oztmplo=`echo $oztmp | tr '[:upper:]' '[:lower:]'` + oztmphi=`echo $oztmp | tr '[:lower:]' '[:upper:]'` + oz_cv_OZLOADWIN="${oz_cv_OZLOADWIN}%prefix=${oztmplo}:/=${oztmplo}:/%prefix=${oztmphi}:/=${oztmphi}:/" + fi + ;; + *) oz_cv_OZLOADWIN= + ;; + esac +changequote([,]) + ]) + OZLOADWIN="$oz_cv_OZLOADWIN" + AC_SUBST(OZLOADWIN) +]) diff -Nru /tmp/OaXG1gSwbK/mozart-1.3.2.20060615+dfsg/config.guess /tmp/efLMu3Nlpk/mozart-1.4.0/config.guess --- mozart-1.3.2.20060615+dfsg/config.guess 1970-01-01 01:00:00.000000000 +0100 +++ mozart-1.4.0/config.guess 2009-04-29 14:24:55.000000000 +0100 @@ -0,0 +1,1545 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. + +timestamp='2008-01-23' + +# This file 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 of the License, or +# (at your option) any later version. +# +# This program 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 this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Originally written by Per Bothner . +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit build system type. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +if [ "${UNAME_SYSTEM}" = "Linux" ] ; then + eval $set_cc_for_build + cat << EOF > $dummy.c + #include + #ifdef __UCLIBC__ + # ifdef __UCLIBC_CONFIG_VERSION__ + LIBC=uclibc __UCLIBC_CONFIG_VERSION__ + # else + LIBC=uclibc + # endif + #else + LIBC=gnu + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'` +fi + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep __ELF__ >/dev/null + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[456]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep __LP64__ >/dev/null + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + case ${UNAME_MACHINE} in + pc98) + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:[3456]*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + EM64T | authenticamd) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + cris:Linux:*:*) + echo cris-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo frv-unknown-linux-${LIBC} + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips + #else + CPU= + #endif + #endif +EOF + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips64 + #undef mips64el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mips64el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips64 + #else + CPU= + #endif + #endif +EOF + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + or32:Linux:*:*) + echo or32-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; + esac + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. cd to the root directory to prevent + # problems with other programs or directories called `ld' in the path. + # Set LC_ALL=C to ensure ld outputs messages in English. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ + | sed -ne '/supported targets:/!d + s/[ ][ ]*/ /g + s/.*supported targets: *// + s/ .*// + p'` + case "$ld_supported_targets" in + elf32-i386) + TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}" + ;; + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout" + exit ;; + coff-i386) + echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff" + exit ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld" + exit ;; + esac + # This should get integrated into the C code below, but now we hack + if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi + # Determine whether the default compiler is a.out or elf + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #ifdef __ELF__ + # ifdef __GLIBC__ + # if __GLIBC__ >= 2 + LIBC=gnu + # else + LIBC=gnulibc1 + # endif + # else + LIBC=gnulibc1 + # endif + #else + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) + LIBC=gnu + #else + LIBC=gnuaout + #endif + #endif + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^LIBC/{ + s: ::g + p + }'`" + test x"${LIBC}" != x && { + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit + } + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } + ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i386. + echo i386-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + unknown) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff -Nru /tmp/OaXG1gSwbK/mozart-1.3.2.20060615+dfsg/config.sub /tmp/efLMu3Nlpk/mozart-1.4.0/config.sub --- mozart-1.3.2.20060615+dfsg/config.sub 1970-01-01 01:00:00.000000000 +0100 +++ mozart-1.4.0/config.sub 2009-04-29 14:24:55.000000000 +0100 @@ -0,0 +1,1676 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. + +timestamp='2008-01-16' + +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file 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 of the License, or +# (at your option) any later version. +# +# This program 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 this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray) + os= + basic_machine=$1 + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx | dvp \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | mt \ + | msp430 \ + | nios | nios2 \ + | ns16k | ns32k \ + | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu | strongarm \ + | tahoe | thumb | tic4x | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ + | z8k) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]a*eb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mipsEE* | ee | ps2) + basic_machine=mips64r5900el-scei + case $os in + -linux*) + ;; + *) + os=-elf + ;; + esac + ;; + iop) + basic_machine=mipsel-scei + os=-irx + ;; + dvp) + basic_machine=dvp-scei + os=-elf + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; + tile*) + basic_machine=tile-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -irx*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -zvmoe) + os=-zvmoe + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff -Nru /tmp/OaXG1gSwbK/mozart-1.3.2.20060615+dfsg/configure /tmp/efLMu3Nlpk/mozart-1.4.0/configure --- mozart-1.3.2.20060615+dfsg/configure 1970-01-01 01:00:00.000000000 +0100 +++ mozart-1.4.0/configure 2009-04-29 14:24:55.000000000 +0100 @@ -0,0 +1,1794 @@ +#! /bin/sh + +# Guess values for system-dependent variables and create Makefiles. +# Generated automatically using autoconf version 2.13 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Defaults: +ac_help= +ac_default_prefix=/usr/local +# Any additions from configure.in: +ac_default_prefix=/usr/local/oz +ac_help="$ac_help +--with-global-oz allows to use an existing oz installation to build the system (default: no)" +ac_help="$ac_help +--with-global-oz allows to use an existing oz installation to build the system (default: no)" +ac_help="$ac_help +--with-global-oz allows to use an existing oz installation to build the system (default: no)" +ac_help="$ac_help +--with-inc-dir=d1,...,dn add these dirs to CPPFLAGS" +ac_help="$ac_help +--with-lib-dir=d1,...,dn add these dirs to LDFLAGS" +ac_help="$ac_help +--enable-contrib + configure the contributions (default: yes)" +ac_help="$ac_help +--enable-doc + configure the documentation (default: yes)" +ac_help="$ac_help +--enable-subdirs= + which subdirs should be configured (default: $oz_subdirs)" +ac_help="$ac_help +--with-stdlib=DIR + directory where mozart standard library is checked out (default=NONE)" + +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +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 +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Initialize some other variables. +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 + +ac_prev= +for ac_option +do + + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + case "$ac_option" in + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir="$ac_optarg" ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build="$ac_optarg" ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file="$ac_optarg" ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix="$ac_optarg" ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he) + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat << EOF +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] + --libdir=DIR object code libraries in DIR [EPREFIX/lib] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +EOF + cat << EOF +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR +EOF + if test -n "$ac_help"; then + echo "--enable and --with options recognized:$ac_help" + fi + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$ac_optarg" ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir="$ac_optarg" ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir="$ac_optarg" ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir="$ac_optarg" ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir="$ac_optarg" ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir="$ac_optarg" ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir="$ac_optarg" ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir="$ac_optarg" ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix="$ac_optarg" ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix="$ac_optarg" ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix="$ac_optarg" ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name="$ac_optarg" ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir="$ac_optarg" ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir="$ac_optarg" ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site="$ac_optarg" ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir="$ac_optarg" ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir="$ac_optarg" ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version 2.13" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes="$ac_optarg" ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries="$ac_optarg" ;; + + -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + ;; + + *) + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then + echo "configure: warning: $ac_option: invalid host type" 1>&2 + fi + if test "x$nonopt" != xNONE; then + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } +fi + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +# 6 checking for... messages and results +# 5 compiler messages saved in config.log +if test "$silent" = yes; then + exec 6>/dev/null +else + exec 6>&1 +fi +exec 5>./config.log + +echo "\ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +" 1>&5 + +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell metacharacters. +ac_configure_args= +for ac_arg +do + case "$ac_arg" 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) ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) ac_configure_args="$ac_configure_args $ac_arg" ;; + esac +done + +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo > confdefs.h + +# A filename unique to this package, relative to the directory that +# configure is in, which we can look for to find out if srcdir is correct. +ac_unique_file=OZVERSION + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + else + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + fi +fi +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` + +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + echo "loading site script $ac_site_file" + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + echo "loading cache $cache_file" + . $cache_file +else + echo "creating cache $cache_file" + > $cache_file +fi + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +ac_exeext= +ac_objext=o +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi + + + + + + + srcdir=`cd $srcdir && pwd` + SRCDIR="$srcdir" + + + + echo $ac_n "checking for SRCTOP""... $ac_c" 1>&6 +echo "configure:558: checking for SRCTOP" >&5 +if eval "test \"`echo '$''{'oz_cv_path_SRCTOP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + oz_tmp_dir=$srcdir + oz_tmp_ok= + oz_for="OZVERSION" + for oz_tmp1 in $oz_for; do + for oz_tmp2 in $oz_tmp_dir \ + $oz_tmp_dir/.. \ + $oz_tmp_dir/../.. \ + $oz_tmp_dir/../../.. \ + $oz_tmp_dir/../../../.. \ + $oz_tmp_dir/../../../../..; do + if test -r "$oz_tmp2/$oz_tmp1"; then + oz_cv_path_SRCTOP=`cd $oz_tmp2 && pwd` + oz_tmp_ok=yes + break + fi + done + test -n "$oz_tmp_ok" && break + done + if test -z "$oz_cv_path_SRCTOP"; then + { echo "configure: error: cannot find SRCTOP" 1>&2; exit 1; } + fi +fi + +echo "$ac_t""$oz_cv_path_SRCTOP" 1>&6 + SRCTOP=$oz_cv_path_SRCTOP + + + echo $ac_n "checking for BUILDTOP""... $ac_c" 1>&6 +echo "configure:592: checking for BUILDTOP" >&5 +if eval "test \"`echo '$''{'oz_cv_path_BUILDTOP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + oz_tmp_dir=. + oz_tmp_ok= + oz_for="config.cache" + for oz_tmp1 in $oz_for; do + for oz_tmp2 in $oz_tmp_dir \ + $oz_tmp_dir/.. \ + $oz_tmp_dir/../.. \ + $oz_tmp_dir/../../.. \ + $oz_tmp_dir/../../../.. \ + $oz_tmp_dir/../../../../..; do + if test -r "$oz_tmp2/$oz_tmp1"; then + oz_cv_path_BUILDTOP=`cd $oz_tmp2 && pwd` + oz_tmp_ok=yes + break + fi + done + test -n "$oz_tmp_ok" && break + done + if test -z "$oz_cv_path_BUILDTOP"; then + { echo "configure: error: cannot find BUILDTOP" 1>&2; exit 1; } + fi +fi + +echo "$ac_t""$oz_cv_path_BUILDTOP" 1>&6 + BUILDTOP=$oz_cv_path_BUILDTOP + + ac_aux_dir= +for ac_dir in $SRCTOP $srcdir/$SRCTOP; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { echo "configure: error: can not find install-sh or install.sh in $SRCTOP $srcdir/$SRCTOP" 1>&2; exit 1; } +fi +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + + if test "$host_os" = ""; then + +# Make sure we can run config.sub. +if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } +fi + +echo $ac_n "checking host system type""... $ac_c" 1>&6 +echo "configure:651: checking host system type" >&5 + +host_alias=$host +case "$host_alias" in +NONE) + case $nonopt in + NONE) + if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : + else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } + fi ;; + *) host_alias=$nonopt ;; + esac ;; +esac + +host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$host" 1>&6 + + fi + + if test -z "$oz_cv_MAKE"; then + for ac_prog in gmake make +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:679: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$MAKE"; then + ac_cv_prog_MAKE="$MAKE" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_MAKE="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +MAKE="$ac_cv_prog_MAKE" +if test -n "$MAKE"; then + echo "$ac_t""$MAKE" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$MAKE" && break +done +test -n "$MAKE" || MAKE="NONE" + + if test "$MAKE" = NONE; then + oz_tmp_ok=no + else + + if oz_tmp=`$MAKE -n --version 2>/dev/null` && \ + oz_tmp=`expr "$oz_tmp" : GNU`; then + GNU_MAKE=yes + else + GNU_MAKE=no + fi + if test "$GNU_MAKE" = no; then + oz_tmp_ok=no + echo "configure: warning: $MAKE is not GNU make" 1>&2 + else + oz_tmp_ok=yes + fi + fi + if test "$oz_tmp_ok" = yes; then + oz_cv_MAKE=$MAKE + else + { echo "configure: error: +GNU make is needed to build the system. +It can be retrieved from: + + ftp://ftp.gnu.org/pub/gnu/make/ + +The latest version at this time is 3.80 and is available +packaged as the following archive: + + make-3.80.tar.gz + +You may find a mirror archive closer to you by consulting: + + http://www.gnu.org/order/ftp.html +" 1>&2; exit 1; } + fi + else + + echo $ac_n "checking for GNU make""... $ac_c" 1>&6 +echo "configure:748: checking for GNU make" >&5 + MAKE=$oz_cv_MAKE + echo "$ac_t""(cached) $MAKE" 1>&6 + fi + + echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 +echo "configure:754: checking whether ${MAKE-make} sets \${MAKE}" >&5 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftestmake <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftestmake +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$ac_t""yes" 1>&6 + SET_MAKE= +else + echo "$ac_t""no" 1>&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + + + if test "${INSTALL+set}" = set; then + echo $ac_n "checking whether to unset broken INSTALL""... $ac_c" 1>&6 +echo "configure:783: checking whether to unset broken INSTALL" >&5 +if eval "test \"`echo '$''{'oz_cv_unset_INSTALL'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + echo >conftest.$$ + if $INSTALL -c -m 644 conftest.$$ /tmp >/dev/null 2>&1; then + rm -f /tmp/conftest.$$ 2>/dev/null + oz_cv_unset_INSTALL=no + oz_cv_given_INSTALL="$INSTALL" + else + oz_cv_unset_INSTALL=yes + fi + rm -f conftest.$$ 2>/dev/null +fi + +echo "$ac_t""$oz_cv_unset_INSTALL" 1>&6 + test "$oz_cv_unset_INSTALL" = yes && unset INSTALL + fi + # Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 +echo "configure:814: checking for a BSD compatible install" >&5 +if test -z "$INSTALL"; then +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" + for ac_dir in $PATH; do + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if test -f $ac_dir/$ac_prog; then + if test $ac_prog = install && + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + IFS="$ac_save_IFS" + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL="$ac_cv_path_install" + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL="$ac_install_sh" + fi +fi +echo "$ac_t""$INSTALL" 1>&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + + if test "$INSTALL" = "$oz_cv_given_INSTALL"; then + ac_given_INSTALL="$oz_cv_given_INSTALL" + fi + + if test -z "$WITH_GLOBAL_OZ"; then + + echo $ac_n "checking for --with-global-oz""... $ac_c" 1>&6 +echo "configure:873: checking for --with-global-oz" >&5 + # Check whether --with-global-oz or --without-global-oz was given. +if test "${with_global_oz+set}" = set; then + withval="$with_global_oz" + oz_cv_global_oz="$with_global_oz" +else + oz_cv_global_oz=no +fi + + WITH_GLOBAL_OZ="$oz_cv_global_oz" + echo "$ac_t""$WITH_GLOBAL_OZ" 1>&6 + + fi + dummy_PATH="$PATH" + if test "$WITH_GLOBAL_OZ" = no; then + for oz_prog_tmp in mkinstalldirs; do + case $oz_prog_tmp in + oz|ozc|ozl|oztool|ozengine|ozplatform|ozdoc) + dummy_PATH="$SRCTOP/share/bin:$SRCTOP" + ;; + esac + done + fi + dummy_PWD=`pwd | sed 's/\//\\\\\//g'` + dummy_PATH=`echo $dummy_PATH | sed -e 's/::/:/g' | sed -e 's/:$//g'` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.:/$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.\//$dummy_PWD\//g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.\$/:$dummy_PWD/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.:/:$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:.\//:$dummy_PWD\//g"` + oz_for="$dummy_PATH:$SRCTOP/share/bin:$SRCTOP" + # Extract the first word of "mkinstalldirs", so it can be a program name with args. +set dummy mkinstalldirs; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:907: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_INSTALL_DIR'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$INSTALL_DIR" in + /*) + ac_cv_path_INSTALL_DIR="$INSTALL_DIR" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_INSTALL_DIR="$INSTALL_DIR" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$oz_for" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_INSTALL_DIR="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +INSTALL_DIR="$ac_cv_path_INSTALL_DIR" +if test -n "$INSTALL_DIR"; then + echo "$ac_t""$INSTALL_DIR" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + case "$host_os" in + cygwin*) ;; + *) INSTALL_DIR=`echo $INSTALL_DIR | sed -e "s|//|/|g"`;; + esac + if test ! -n "$INSTALL_DIR" + then + INSTALL_DIR=undefined + + fi + + + echo $ac_n "checking for oz version""... $ac_c" 1>&6 +echo "configure:951: checking for oz version" >&5 +if eval "test \"`echo '$''{'oz_cv_ozversion'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + oz_cv_ozversion=`sh $SRCTOP/OZVERSION` +fi + +echo "$ac_t""$oz_cv_ozversion" 1>&6 + OZVERSION=$oz_cv_ozversion; + + HOMEURL="http://www.mozart-oz.org/home-$OZVERSION" + HOMECACHE="http/www.mozart-oz.org/home-$OZVERSION" + + + case "$target" in + i386-mingw32|i386-mingw32msvc) + PLATFORM=win32-i486 + platform="win32-i486" + ozplatform=$platform + + cross_compiling=yes + + CXX=${target}-gcc + CC=${CXX} + RANLIB=${target}-ranlib + AR=${target}-ar + STRIP=${target}-strip + WINDRES=${target}-windres + AS=${target}-as + DLLTOOL=${target}-dlltool + DLLWRAP=${target}-dllwrap + OZTOOL="sh $BUILDTOP/platform/emulator/${target}-oztool" + enable_contrib_psql=no + enable_contrib_gdbm=yes + enable_contrib_regex=yes + enable_contrib_os=no + ;; + + *) + + if test -z "$WITH_GLOBAL_OZ"; then + + echo $ac_n "checking for --with-global-oz""... $ac_c" 1>&6 +echo "configure:995: checking for --with-global-oz" >&5 + # Check whether --with-global-oz or --without-global-oz was given. +if test "${with_global_oz+set}" = set; then + withval="$with_global_oz" + oz_cv_global_oz="$with_global_oz" +else + oz_cv_global_oz=no +fi + + WITH_GLOBAL_OZ="$oz_cv_global_oz" + echo "$ac_t""$WITH_GLOBAL_OZ" 1>&6 + + fi + dummy_PATH="$PATH" + if test "$WITH_GLOBAL_OZ" = no; then + for oz_prog_tmp in ozplatform; do + case $oz_prog_tmp in + oz|ozc|ozl|oztool|ozengine|ozplatform|ozdoc) + dummy_PATH="$SRCTOP/share/bin:$SRCTOP" + ;; + esac + done + fi + dummy_PWD=`pwd | sed 's/\//\\\\\//g'` + dummy_PATH=`echo $dummy_PATH | sed -e 's/::/:/g' | sed -e 's/:$//g'` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.:/$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.\//$dummy_PWD\//g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.\$/:$dummy_PWD/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.:/:$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:.\//:$dummy_PWD\//g"` + oz_for="$dummy_PATH:$SRCTOP/share/bin:$SRCTOP" + # Extract the first word of "ozplatform", so it can be a program name with args. +set dummy ozplatform; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1029: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_OZPLATFORM'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$OZPLATFORM" in + /*) + ac_cv_path_OZPLATFORM="$OZPLATFORM" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_OZPLATFORM="$OZPLATFORM" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$oz_for" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_OZPLATFORM="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +OZPLATFORM="$ac_cv_path_OZPLATFORM" +if test -n "$OZPLATFORM"; then + echo "$ac_t""$OZPLATFORM" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + case "$host_os" in + cygwin*) ;; + *) OZPLATFORM=`echo $OZPLATFORM | sed -e "s|//|/|g"`;; + esac + if test ! -n "$OZPLATFORM" + then + OZPLATFORM=undefined + + fi + + PLATFORM=`$OZPLATFORM || exit 1` + + if test -z "$WITH_GLOBAL_OZ"; then + + echo $ac_n "checking for --with-global-oz""... $ac_c" 1>&6 +echo "configure:1076: checking for --with-global-oz" >&5 + # Check whether --with-global-oz or --without-global-oz was given. +if test "${with_global_oz+set}" = set; then + withval="$with_global_oz" + oz_cv_global_oz="$with_global_oz" +else + oz_cv_global_oz=no +fi + + WITH_GLOBAL_OZ="$oz_cv_global_oz" + echo "$ac_t""$WITH_GLOBAL_OZ" 1>&6 + + fi + dummy_PATH="$PATH" + if test "$WITH_GLOBAL_OZ" = no; then + for oz_prog_tmp in oztool; do + case $oz_prog_tmp in + oz|ozc|ozl|oztool|ozengine|ozplatform|ozdoc) + dummy_PATH="$SRCTOP/share/bin:$SRCTOP" + ;; + esac + done + fi + dummy_PWD=`pwd | sed 's/\//\\\\\//g'` + dummy_PATH=`echo $dummy_PATH | sed -e 's/::/:/g' | sed -e 's/:$//g'` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.:/$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.\//$dummy_PWD\//g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.\$/:$dummy_PWD/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.:/:$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:.\//:$dummy_PWD\//g"` + oz_for="$dummy_PATH:$SRCTOP/share/bin:$SRCTOP" + # Extract the first word of "oztool", so it can be a program name with args. +set dummy oztool; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1110: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_OZTOOL'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$OZTOOL" in + /*) + ac_cv_path_OZTOOL="$OZTOOL" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_OZTOOL="$OZTOOL" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$oz_for" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_OZTOOL="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +OZTOOL="$ac_cv_path_OZTOOL" +if test -n "$OZTOOL"; then + echo "$ac_t""$OZTOOL" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + case "$host_os" in + cygwin*) ;; + *) OZTOOL=`echo $OZTOOL | sed -e "s|//|/|g"`;; + esac + if test ! -n "$OZTOOL" + then + OZTOOL=undefined + OZTOOL="sh $BUILDTOP/platform/emulator/oztool.sh" + fi + + ;; + esac + + echo $ac_n "checking for --with-inc-dir""... $ac_c" 1>&6 +echo "configure:1156: checking for --with-inc-dir" >&5 + # Check whether --with-inc-dir or --without-inc-dir was given. +if test "${with_inc_dir+set}" = set; then + withval="$with_inc_dir" + oz_cv_with_inc_dirs=$with_inc_dir +else + : ${oz_cv_with_inc_dirs=$oz_with_inc_dir} +fi + + echo "$ac_t""$with_inc_dir" 1>&6 + oz_tmp_IFS="$IFS" + IFS="," + # reverse the list of dirs + oz_tmp_dirs="" + for oz_tmp in $oz_cv_with_inc_dirs DONE; do + if test "$oz_tmp" != DONE; then + oz_tmp_dirs="$oz_tmp${oz_tmp_dirs:+ }$oz_tmp_dirs" + fi + done + # add them to CPPFLAGS and oz_inc_path + IFS=$oz_tmp_IFS + : ${oz_inc_path=""} + for oz_tmp1 in $oz_tmp_dirs DONE; do + if test "$oz_tmp1" != DONE; then + + if test "-I$oz_tmp1" != yes && test "-I$oz_tmp1" != no; then + oz_tmp_ok=yes + for oz_tmp in $CPPFLAGS NONE; do + if test "$oz_tmp" = "-I$oz_tmp1"; then + oz_tmp_ok=no + break + fi + done + test "$oz_tmp_ok" = yes && CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I$oz_tmp1" + fi + + oz_inc_path="$oz_tmp1${oz_inc_path:+ }$oz_inc_path" + fi + done + + + echo $ac_n "checking for --with-lib-dir""... $ac_c" 1>&6 +echo "configure:1198: checking for --with-lib-dir" >&5 + # Check whether --with-lib-dir or --without-lib-dir was given. +if test "${with_lib_dir+set}" = set; then + withval="$with_lib_dir" + oz_cv_with_lib_dirs=$with_lib_dir +else + : ${oz_cv_with_lib_dirs=$oz_with_lib_dir} +fi + + echo "$ac_t""$with_lib_dir" 1>&6 + oz_tmp_IFS="$IFS" + IFS="," + # reverse the list of dirs + oz_tmp_dirs="" + for oz_tmp in $oz_cv_with_lib_dirs DONE; do + if test "$oz_tmp" != DONE; then + oz_tmp_dirs="$oz_tmp${oz_tmp_dirs:+ }$oz_tmp_dirs" + fi + done + # add them to LDFLAGS and oz_lib_path + IFS=$oz_tmp_IFS + : ${oz_lib_path=""} + for oz_tmp1 in $oz_tmp_dirs DONE; do + if test "$oz_tmp1" != DONE; then + + if test "-L$oz_tmp1" != yes && test "-L$oz_tmp1" != no; then + oz_tmp_ok=yes + for oz_tmp in $LDFLAGS NONE; do + if test "$oz_tmp" = "-L$oz_tmp1"; then + oz_tmp_ok=no + break + fi + done + test "$oz_tmp_ok" = yes && LDFLAGS="-L$oz_tmp1${LDFLAGS:+ }$LDFLAGS" + fi + + oz_lib_path="$oz_tmp1${oz_lib_path:+ }$oz_lib_path" + fi + done + + + + + echo $ac_n "checking for build date""... $ac_c" 1>&6 +echo "configure:1242: checking for build date" >&5 +if eval "test \"`echo '$''{'oz_cv_build_date'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + oz_cv_build_date=`date +"%Y%m%d"` +fi + +echo "$ac_t""$oz_cv_build_date" 1>&6 + OZBUILDDATE=$oz_cv_build_date; + + + echo $ac_n "checking for build time""... $ac_c" 1>&6 +echo "configure:1255: checking for build time" >&5 +if eval "test \"`echo '$''{'oz_cv_build_time'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + oz_cv_build_time=`date +"%H%M%S"` +fi + +echo "$ac_t""$oz_cv_build_time" 1>&6 + OZBUILDTIME=$oz_cv_build_time; + + + + echo $ac_n "checking for OZLOADSEP""... $ac_c" 1>&6 +echo "configure:1269: checking for OZLOADSEP" >&5 +if eval "test \"`echo '$''{'oz_cv_OZLOADSEP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + case $PLATFORM in + win32*) oz_cv_OZLOADSEP=';' + ;; + *) oz_cv_OZLOADSEP=':' + ;; + esac + +fi + +echo "$ac_t""$oz_cv_OZLOADSEP" 1>&6 + OZLOADSEP="$oz_cv_OZLOADSEP"; + + + + echo $ac_n "checking for OZLOADWIN""... $ac_c" 1>&6 +echo "configure:1289: checking for OZLOADWIN" >&5 +if eval "test \"`echo '$''{'oz_cv_OZLOADWIN'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + case $PLATFORM in + win32*) + oztmp=`pwd` + oztmp=`cygpath -a -w "$oztmp"` + oztmp=`expr "$oztmp" : "\(.\):"` + if test -n "$oztmp"; then + oztmplo=`echo $oztmp | tr '[:upper:]' '[:lower:]'` + oztmphi=`echo $oztmp | tr '[:lower:]' '[:upper:]'` + oz_cv_OZLOADWIN="%prefix=${oztmplo}:/=${oztmplo}:/%prefix=${oztmphi}:/=${oztmphi}:/" + fi + oztmp=`cygpath -a -w "$srcdir"` + oztmp=`expr "$oztmp" : "\(.\):"` + if test -n "$oztmp"; then + oztmplo=`echo $oztmp | tr '[:upper:]' '[:lower:]'` + oztmphi=`echo $oztmp | tr '[:lower:]' '[:upper:]'` + oz_cv_OZLOADWIN="${oz_cv_OZLOADWIN}%prefix=${oztmplo}:/=${oztmplo}:/%prefix=${oztmphi}:/=${oztmphi}:/" + fi + ;; + *) oz_cv_OZLOADWIN= + ;; + esac + + +fi + +echo "$ac_t""$oz_cv_OZLOADWIN" 1>&6 + OZLOADWIN="$oz_cv_OZLOADWIN" + + + + +echo $ac_n "checking for --enable-contrib""... $ac_c" 1>&6 +echo "configure:1327: checking for --enable-contrib" >&5 +# Check whether --enable-contrib or --disable-contrib was given. +if test "${enable_contrib+set}" = set; then + enableval="$enable_contrib" + : +fi + + +if test "${enable_contrib}" != no +then + : ${oz_enable_contrib=contrib} + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking for --enable-doc""... $ac_c" 1>&6 +echo "configure:1344: checking for --enable-doc" >&5 +# Check whether --enable-doc or --disable-doc was given. +if test "${enable_doc+set}" = set; then + enableval="$enable_doc" + : +fi + + +if test "${enable_doc}" != no +then + : ${oz_enable_doc=doc} + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test "$target" = "i386-mingw32" +then + : ${oz_subdirs="platform $oz_enable_contrib"} +else + : ${oz_subdirs="platform share $oz_enable_contrib $oz_enable_doc"} +fi + +echo $ac_n "checking for --enable-subdirs""... $ac_c" 1>&6 +echo "configure:1368: checking for --enable-subdirs" >&5 +# Check whether --enable-subdirs or --disable-subdirs was given. +if test "${enable_subdirs+set}" = set; then + enableval="$enable_subdirs" + : +fi + + +if test -n "${enable_subdirs}" +then + case $enable_subdirs in + no) + oz_subdirs= + ;; + yes) + ;; + *) + oz_subdirs=${enable_subdirs} + ;; + esac +fi + +echo "$ac_t""$oz_subdirs" 1>&6 + + + +echo $ac_n "checking for --with-stdlib""... $ac_c" 1>&6 +echo "configure:1395: checking for --with-stdlib" >&5 +# Check whether --with-stdlib or --without-stdlib was given. +if test "${with_stdlib+set}" = set; then + withval="$with_stdlib" + oz_stdlib=${with_stdlib} +fi + +: ${oz_stdlib=} +if test -n "$oz_stdlib"; then + oz_stdlib=`cd "$oz_stdlib" && pwd` +fi +echo "$ac_t""$oz_stdlib" 1>&6 +OZSTDLIB="$oz_stdlib" + + +subdirs="$oz_subdirs" + + +trap '' 1 2 15 +cat > confcache <<\EOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +EOF +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +(set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote substitution + # turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + -e "s/'/'\\\\''/g" \ + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' + ;; + esac >> confcache +if cmp -s $cache_file confcache; then + : +else + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Any assignment to VPATH causes Sun make to only execute +# the first set of double-colon rules, so remove it if not needed. +# If there is a colon in the path, we need to keep it. +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' +fi + +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +cat > conftest.defs <<\EOF +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g +s%\[%\\&%g +s%\]%\\&%g +s%\$%$$%g +EOF +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` +rm -f conftest.defs + + +# Without the "./", some shells look in PATH for config.status. +: ${CONFIG_STATUS=./config.status} + +echo creating $CONFIG_STATUS +rm -f $CONFIG_STATUS +cat > $CONFIG_STATUS </dev/null | sed 1q`: +# +# $0 $ac_configure_args +# +# Compiler output produced by configure, useful for debugging +# configure, is in ./config.log if it exists. + +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" +for ac_option +do + case "\$ac_option" in + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; + -version | --version | --versio | --versi | --vers | --ver | --ve | --v) + echo "$CONFIG_STATUS generated by autoconf version 2.13" + exit 0 ;; + -help | --help | --hel | --he | --h) + echo "\$ac_cs_usage"; exit 0 ;; + *) echo "\$ac_cs_usage"; exit 1 ;; + esac +done + +ac_given_srcdir=$srcdir +ac_given_INSTALL="$INSTALL" + +trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +EOF +cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF +$ac_vpsub +$extrasub +s%@SHELL@%$SHELL%g +s%@CFLAGS@%$CFLAGS%g +s%@CPPFLAGS@%$CPPFLAGS%g +s%@CXXFLAGS@%$CXXFLAGS%g +s%@FFLAGS@%$FFLAGS%g +s%@DEFS@%$DEFS%g +s%@LDFLAGS@%$LDFLAGS%g +s%@LIBS@%$LIBS%g +s%@exec_prefix@%$exec_prefix%g +s%@prefix@%$prefix%g +s%@program_transform_name@%$program_transform_name%g +s%@bindir@%$bindir%g +s%@sbindir@%$sbindir%g +s%@libexecdir@%$libexecdir%g +s%@datadir@%$datadir%g +s%@sysconfdir@%$sysconfdir%g +s%@sharedstatedir@%$sharedstatedir%g +s%@localstatedir@%$localstatedir%g +s%@libdir@%$libdir%g +s%@includedir@%$includedir%g +s%@oldincludedir@%$oldincludedir%g +s%@infodir@%$infodir%g +s%@mandir@%$mandir%g +s%@SRCDIR@%$SRCDIR%g +s%@SRCTOP@%$SRCTOP%g +s%@BUILDTOP@%$BUILDTOP%g +s%@host@%$host%g +s%@host_alias@%$host_alias%g +s%@host_cpu@%$host_cpu%g +s%@host_vendor@%$host_vendor%g +s%@host_os@%$host_os%g +s%@MAKE@%$MAKE%g +s%@SET_MAKE@%$SET_MAKE%g +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g +s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g +s%@INSTALL_DATA@%$INSTALL_DATA%g +s%@INSTALL_DIR@%$INSTALL_DIR%g +s%@OZVERSION@%$OZVERSION%g +s%@HOMEURL@%$HOMEURL%g +s%@HOMECACHE@%$HOMECACHE%g +s%@OZPLATFORM@%$OZPLATFORM%g +s%@OZTOOL@%$OZTOOL%g +s%@OZBUILDDATE@%$OZBUILDDATE%g +s%@OZBUILDTIME@%$OZBUILDTIME%g +s%@PLATFORM@%$PLATFORM%g +s%@OZLOADSEP@%$OZLOADSEP%g +s%@OZLOADWIN@%$OZLOADWIN%g +s%@oz_subdirs@%$oz_subdirs%g +s%@OZSTDLIB@%$OZSTDLIB%g +s%@subdirs@%$subdirs%g + +CEOF +EOF + +cat >> $CONFIG_STATUS <<\EOF + +# Split the substitutions into bite-sized pieces for seds with +# small command number limits, like on Digital OSF/1 and HP-UX. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_file=1 # Number of current file. +ac_beg=1 # First line for current file. +ac_end=$ac_max_sed_cmds # Line after last line for current file. +ac_more_lines=: +ac_sed_cmds="" +while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file + else + sed "${ac_end}q" conftest.subs > conftest.s$ac_file + fi + if test ! -s conftest.s$ac_file; then + ac_more_lines=false + rm -f conftest.s$ac_file + else + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f conftest.s$ac_file" + else + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + fi + ac_file=`expr $ac_file + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_cmds` + fi +done +if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat +fi +EOF + +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. + + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dir_suffix= ac_dots= + fi + + case "$ac_given_srcdir" in + .) srcdir=. + if test -z "$ac_dots"; then top_srcdir=. + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + *) # Relative path. + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" + top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + case "$ac_given_INSTALL" in + [/$]*) INSTALL="$ac_given_INSTALL" ;; + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac + + echo creating "$ac_file" + rm -f "$ac_file" + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + case "$ac_file" in + *Makefile*) ac_comsub="1i\\ +# $configure_input" ;; + *) ac_comsub= ;; + esac + + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + sed -e "$ac_comsub +s%@configure_input@%$configure_input%g +s%@srcdir@%$srcdir%g +s%@top_srcdir@%$top_srcdir%g +s%@INSTALL@%$INSTALL%g +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file +fi; done +rm -f conftest.s* + +EOF +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF + +exit 0 +EOF +chmod +x $CONFIG_STATUS +rm -fr confdefs* $ac_clean_files +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + +if test "$no_recursion" != yes; then + + # Remove --cache-file and --srcdir arguments so they do not pile up. + ac_sub_configure_args= + ac_prev= + for ac_arg in $ac_configure_args; do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case "$ac_arg" in + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; + esac + done + + for ac_config_dir in $oz_subdirs; do + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + if test ! -d $srcdir/$ac_config_dir; then + continue + fi + + echo configuring in $ac_config_dir + + case "$srcdir" in + .) ;; + *) + if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; + else + { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } + fi + ;; + esac + + ac_popdir=`pwd` + cd $ac_config_dir + + # A "../" for each directory in /$ac_config_dir. + ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` + + case "$srcdir" in + .) # No --srcdir option. We are building in place. + ac_sub_srcdir=$srcdir ;; + /*) # Absolute path. + ac_sub_srcdir=$srcdir/$ac_config_dir ;; + *) # Relative path. + ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; + esac + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_sub_srcdir/configure; then + ac_sub_configure=$ac_sub_srcdir/configure + elif test -f $ac_sub_srcdir/configure.in; then + ac_sub_configure=$ac_configure + else + echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + + # Make the cache file name correct relative to the subdirectory. + case "$cache_file" in + /*) ac_sub_cache_file=$cache_file ;; + *) # Relative path. + ac_sub_cache_file="$ac_dots$cache_file" ;; + esac + case "$ac_given_INSTALL" in + [/$]*) INSTALL="$ac_given_INSTALL" ;; + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac + + echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" + # The eval makes quoting arguments work. + if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir + then : + else + { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } + fi + fi + + cd "$ac_popdir" + done +fi + + + diff -Nru /tmp/OaXG1gSwbK/mozart-1.3.2.20060615+dfsg/configure.in /tmp/efLMu3Nlpk/mozart-1.4.0/configure.in --- mozart-1.3.2.20060615+dfsg/configure.in 1970-01-01 01:00:00.000000000 +0100 +++ mozart-1.4.0/configure.in 2002-07-25 16:45:59.000000000 +0100 @@ -0,0 +1,115 @@ +dnl -*- sh -*- +dnl +dnl Authors: +dnl Michael Mehl (mehl@dfki.de) +dnl +dnl Contributors: +dnl Denys Duchier, (duchier@ps.uni-sb.de) +dnl +dnl Copyright: +dnl Michael Mehl (1997) +dnl +dnl Last change: +dnl $Date: 2002-07-25 17:45:59 +0200 (Thu, 25 Jul 2002) $ by $Author: duchier $ +dnl $Revision: 15026 $ +dnl +dnl This file is part of Mozart, an implementation +dnl of Oz 3: +dnl http://www.mozart-oz.org +dnl +dnl See the file "LICENSE" or +dnl http://www.mozart-oz.org/LICENSE.html +dnl for information on usage and redistribution +dnl of this file, and for a DISCLAIMER OF ALL +dnl WARRANTIES. +dnl + +dnl Process this file with autoconf to produce a configure script. + +dnl ***************************************************************** +dnl INITIALIZE +dnl ***************************************************************** + +dnl This will check that we are in the Oz directory and initiate +AC_INIT(OZVERSION) + +OZ_INIT + +AC_MSG_CHECKING(for --enable-contrib) +AC_ARG_ENABLE(contrib, + [--enable-contrib + configure the contributions (default: yes)]) + +if test "${enable_contrib}" != no +then + : ${oz_enable_contrib=contrib} + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +AC_MSG_CHECKING(for --enable-doc) +AC_ARG_ENABLE(doc, + [--enable-doc + configure the documentation (default: yes)]) + +if test "${enable_doc}" != no +then + : ${oz_enable_doc=doc} + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +if test "$target" = "i386-mingw32" +then + : ${oz_subdirs="platform $oz_enable_contrib"} +else + : ${oz_subdirs="platform share $oz_enable_contrib $oz_enable_doc"} +fi + +AC_MSG_CHECKING(for --enable-subdirs) +AC_ARG_ENABLE(subdirs, + [--enable-subdirs= + which subdirs should be configured (default: $oz_subdirs)]) + +if test -n "${enable_subdirs}" +then + case $enable_subdirs in + no) + oz_subdirs= + ;; + yes) + ;; + *) + oz_subdirs=${enable_subdirs} + ;; + esac +fi + +AC_MSG_RESULT($oz_subdirs) + +AC_SUBST(oz_subdirs) + +AC_MSG_CHECKING(for --with-stdlib) +AC_ARG_WITH(stdlib, + [--with-stdlib=DIR + directory where mozart standard library is checked out (default=NONE)], + oz_stdlib=${with_stdlib}) +: ${oz_stdlib=} +if test -n "$oz_stdlib"; then + oz_stdlib=`cd "$oz_stdlib" && pwd` +fi +AC_MSG_RESULT($oz_stdlib) +OZSTDLIB="$oz_stdlib" +AC_SUBST(OZSTDLIB) + +AC_CONFIG_SUBDIRS($oz_subdirs) + +AC_OUTPUT(Makefile) + +errprint(ifdef([OZ_INIT], + [autoconf succeeded. +], + [autoconf failed: use 'autoconf -l .' to include ./aclocal.m4. +])) diff -Nru /tmp/OaXG1gSwbK/mozart-1.3.2.20060615+dfsg/contrib/ap/configure /tmp/efLMu3Nlpk/mozart-1.4.0/contrib/ap/configure --- mozart-1.3.2.20060615+dfsg/contrib/ap/configure 1970-01-01 01:00:00.000000000 +0100 +++ mozart-1.4.0/contrib/ap/configure 2009-04-29 14:24:55.000000000 +0100 @@ -0,0 +1,1844 @@ +#! /bin/sh + +# Guess values for system-dependent variables and create Makefiles. +# Generated automatically using autoconf version 2.13 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Defaults: +ac_help= +ac_default_prefix=/usr/local +# Any additions from configure.in: +ac_default_prefix=/usr/local/oz +ac_help="$ac_help +--with-global-oz allows to use an existing oz installation to build the system (default: no)" +ac_help="$ac_help +--with-global-oz allows to use an existing oz installation to build the system (default: no)" +ac_help="$ac_help +--with-global-oz allows to use an existing oz installation to build the system (default: no)" +ac_help="$ac_help +--with-inc-dir=d1,...,dn add these dirs to CPPFLAGS" +ac_help="$ac_help +--with-lib-dir=d1,...,dn add these dirs to LDFLAGS" +ac_help="$ac_help +--with-global-oz allows to use an existing oz installation to build the system (default: no)" +ac_help="$ac_help +--with-global-oz allows to use an existing oz installation to build the system (default: no)" +ac_help="$ac_help +--with-global-oz allows to use an existing oz installation to build the system (default: no)" + +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +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 +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Initialize some other variables. +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 + +ac_prev= +for ac_option +do + + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + case "$ac_option" in + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir="$ac_optarg" ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build="$ac_optarg" ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file="$ac_optarg" ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix="$ac_optarg" ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he) + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat << EOF +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] + --libdir=DIR object code libraries in DIR [EPREFIX/lib] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +EOF + cat << EOF +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR +EOF + if test -n "$ac_help"; then + echo "--enable and --with options recognized:$ac_help" + fi + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$ac_optarg" ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir="$ac_optarg" ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir="$ac_optarg" ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir="$ac_optarg" ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir="$ac_optarg" ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir="$ac_optarg" ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir="$ac_optarg" ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir="$ac_optarg" ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix="$ac_optarg" ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix="$ac_optarg" ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix="$ac_optarg" ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name="$ac_optarg" ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir="$ac_optarg" ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir="$ac_optarg" ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site="$ac_optarg" ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir="$ac_optarg" ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir="$ac_optarg" ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version 2.13" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes="$ac_optarg" ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries="$ac_optarg" ;; + + -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + ;; + + *) + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then + echo "configure: warning: $ac_option: invalid host type" 1>&2 + fi + if test "x$nonopt" != xNONE; then + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } +fi + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +# 6 checking for... messages and results +# 5 compiler messages saved in config.log +if test "$silent" = yes; then + exec 6>/dev/null +else + exec 6>&1 +fi +exec 5>./config.log + +echo "\ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +" 1>&5 + +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell metacharacters. +ac_configure_args= +for ac_arg +do + case "$ac_arg" 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) ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) ac_configure_args="$ac_configure_args $ac_arg" ;; + esac +done + +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo > confdefs.h + +# A filename unique to this package, relative to the directory that +# configure is in, which we can look for to find out if srcdir is correct. +ac_unique_file=OptionSheet.oz + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + else + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + fi +fi +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` + +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + echo "loading site script $ac_site_file" + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + echo "loading cache $cache_file" + . $cache_file +else + echo "creating cache $cache_file" + > $cache_file +fi + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +ac_exeext= +ac_objext=o +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi + + + + + + + srcdir=`cd $srcdir && pwd` + SRCDIR="$srcdir" + + + + echo $ac_n "checking for SRCTOP""... $ac_c" 1>&6 +echo "configure:552: checking for SRCTOP" >&5 +if eval "test \"`echo '$''{'oz_cv_path_SRCTOP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + oz_tmp_dir=$srcdir + oz_tmp_ok= + oz_for="OZVERSION" + for oz_tmp1 in $oz_for; do + for oz_tmp2 in $oz_tmp_dir \ + $oz_tmp_dir/.. \ + $oz_tmp_dir/../.. \ + $oz_tmp_dir/../../.. \ + $oz_tmp_dir/../../../.. \ + $oz_tmp_dir/../../../../..; do + if test -r "$oz_tmp2/$oz_tmp1"; then + oz_cv_path_SRCTOP=`cd $oz_tmp2 && pwd` + oz_tmp_ok=yes + break + fi + done + test -n "$oz_tmp_ok" && break + done + if test -z "$oz_cv_path_SRCTOP"; then + { echo "configure: error: cannot find SRCTOP" 1>&2; exit 1; } + fi +fi + +echo "$ac_t""$oz_cv_path_SRCTOP" 1>&6 + SRCTOP=$oz_cv_path_SRCTOP + + + echo $ac_n "checking for BUILDTOP""... $ac_c" 1>&6 +echo "configure:586: checking for BUILDTOP" >&5 +if eval "test \"`echo '$''{'oz_cv_path_BUILDTOP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + oz_tmp_dir=. + oz_tmp_ok= + oz_for="config.cache" + for oz_tmp1 in $oz_for; do + for oz_tmp2 in $oz_tmp_dir \ + $oz_tmp_dir/.. \ + $oz_tmp_dir/../.. \ + $oz_tmp_dir/../../.. \ + $oz_tmp_dir/../../../.. \ + $oz_tmp_dir/../../../../..; do + if test -r "$oz_tmp2/$oz_tmp1"; then + oz_cv_path_BUILDTOP=`cd $oz_tmp2 && pwd` + oz_tmp_ok=yes + break + fi + done + test -n "$oz_tmp_ok" && break + done + if test -z "$oz_cv_path_BUILDTOP"; then + { echo "configure: error: cannot find BUILDTOP" 1>&2; exit 1; } + fi +fi + +echo "$ac_t""$oz_cv_path_BUILDTOP" 1>&6 + BUILDTOP=$oz_cv_path_BUILDTOP + + ac_aux_dir= +for ac_dir in $SRCTOP $srcdir/$SRCTOP; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { echo "configure: error: can not find install-sh or install.sh in $SRCTOP $srcdir/$SRCTOP" 1>&2; exit 1; } +fi +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + + if test "$host_os" = ""; then + +# Make sure we can run config.sub. +if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } +fi + +echo $ac_n "checking host system type""... $ac_c" 1>&6 +echo "configure:645: checking host system type" >&5 + +host_alias=$host +case "$host_alias" in +NONE) + case $nonopt in + NONE) + if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : + else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } + fi ;; + *) host_alias=$nonopt ;; + esac ;; +esac + +host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$host" 1>&6 + + fi + + if test -z "$oz_cv_MAKE"; then + for ac_prog in gmake make +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:673: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$MAKE"; then + ac_cv_prog_MAKE="$MAKE" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_MAKE="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +MAKE="$ac_cv_prog_MAKE" +if test -n "$MAKE"; then + echo "$ac_t""$MAKE" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$MAKE" && break +done +test -n "$MAKE" || MAKE="NONE" + + if test "$MAKE" = NONE; then + oz_tmp_ok=no + else + + if oz_tmp=`$MAKE -n --version 2>/dev/null` && \ + oz_tmp=`expr "$oz_tmp" : GNU`; then + GNU_MAKE=yes + else + GNU_MAKE=no + fi + if test "$GNU_MAKE" = no; then + oz_tmp_ok=no + echo "configure: warning: $MAKE is not GNU make" 1>&2 + else + oz_tmp_ok=yes + fi + fi + if test "$oz_tmp_ok" = yes; then + oz_cv_MAKE=$MAKE + else + { echo "configure: error: +GNU make is needed to build the system. +It can be retrieved from: + + ftp://ftp.gnu.org/pub/gnu/make/ + +The latest version at this time is 3.80 and is available +packaged as the following archive: + + make-3.80.tar.gz + +You may find a mirror archive closer to you by consulting: + + http://www.gnu.org/order/ftp.html +" 1>&2; exit 1; } + fi + else + + echo $ac_n "checking for GNU make""... $ac_c" 1>&6 +echo "configure:742: checking for GNU make" >&5 + MAKE=$oz_cv_MAKE + echo "$ac_t""(cached) $MAKE" 1>&6 + fi + + echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 +echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftestmake <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftestmake +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$ac_t""yes" 1>&6 + SET_MAKE= +else + echo "$ac_t""no" 1>&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + + + if test "${INSTALL+set}" = set; then + echo $ac_n "checking whether to unset broken INSTALL""... $ac_c" 1>&6 +echo "configure:777: checking whether to unset broken INSTALL" >&5 +if eval "test \"`echo '$''{'oz_cv_unset_INSTALL'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + echo >conftest.$$ + if $INSTALL -c -m 644 conftest.$$ /tmp >/dev/null 2>&1; then + rm -f /tmp/conftest.$$ 2>/dev/null + oz_cv_unset_INSTALL=no + oz_cv_given_INSTALL="$INSTALL" + else + oz_cv_unset_INSTALL=yes + fi + rm -f conftest.$$ 2>/dev/null +fi + +echo "$ac_t""$oz_cv_unset_INSTALL" 1>&6 + test "$oz_cv_unset_INSTALL" = yes && unset INSTALL + fi + # Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 +echo "configure:808: checking for a BSD compatible install" >&5 +if test -z "$INSTALL"; then +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" + for ac_dir in $PATH; do + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if test -f $ac_dir/$ac_prog; then + if test $ac_prog = install && + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + IFS="$ac_save_IFS" + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL="$ac_cv_path_install" + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL="$ac_install_sh" + fi +fi +echo "$ac_t""$INSTALL" 1>&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + + if test "$INSTALL" = "$oz_cv_given_INSTALL"; then + ac_given_INSTALL="$oz_cv_given_INSTALL" + fi + + if test -z "$WITH_GLOBAL_OZ"; then + + echo $ac_n "checking for --with-global-oz""... $ac_c" 1>&6 +echo "configure:867: checking for --with-global-oz" >&5 + # Check whether --with-global-oz or --without-global-oz was given. +if test "${with_global_oz+set}" = set; then + withval="$with_global_oz" + oz_cv_global_oz="$with_global_oz" +else + oz_cv_global_oz=no +fi + + WITH_GLOBAL_OZ="$oz_cv_global_oz" + echo "$ac_t""$WITH_GLOBAL_OZ" 1>&6 + + fi + dummy_PATH="$PATH" + if test "$WITH_GLOBAL_OZ" = no; then + for oz_prog_tmp in mkinstalldirs; do + case $oz_prog_tmp in + oz|ozc|ozl|oztool|ozengine|ozplatform|ozdoc) + dummy_PATH="$SRCTOP/share/bin:$SRCTOP" + ;; + esac + done + fi + dummy_PWD=`pwd | sed 's/\//\\\\\//g'` + dummy_PATH=`echo $dummy_PATH | sed -e 's/::/:/g' | sed -e 's/:$//g'` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.:/$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.\//$dummy_PWD\//g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.\$/:$dummy_PWD/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.:/:$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:.\//:$dummy_PWD\//g"` + oz_for="$dummy_PATH:$SRCTOP/share/bin:$SRCTOP" + # Extract the first word of "mkinstalldirs", so it can be a program name with args. +set dummy mkinstalldirs; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:901: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_INSTALL_DIR'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$INSTALL_DIR" in + /*) + ac_cv_path_INSTALL_DIR="$INSTALL_DIR" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_INSTALL_DIR="$INSTALL_DIR" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$oz_for" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_INSTALL_DIR="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +INSTALL_DIR="$ac_cv_path_INSTALL_DIR" +if test -n "$INSTALL_DIR"; then + echo "$ac_t""$INSTALL_DIR" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + case "$host_os" in + cygwin*) ;; + *) INSTALL_DIR=`echo $INSTALL_DIR | sed -e "s|//|/|g"`;; + esac + if test ! -n "$INSTALL_DIR" + then + INSTALL_DIR=undefined + + fi + + + echo $ac_n "checking for oz version""... $ac_c" 1>&6 +echo "configure:945: checking for oz version" >&5 +if eval "test \"`echo '$''{'oz_cv_ozversion'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + oz_cv_ozversion=`sh $SRCTOP/OZVERSION` +fi + +echo "$ac_t""$oz_cv_ozversion" 1>&6 + OZVERSION=$oz_cv_ozversion; + + HOMEURL="http://www.mozart-oz.org/home-$OZVERSION" + HOMECACHE="http/www.mozart-oz.org/home-$OZVERSION" + + + case "$target" in + i386-mingw32|i386-mingw32msvc) + PLATFORM=win32-i486 + platform="win32-i486" + ozplatform=$platform + + cross_compiling=yes + + CXX=${target}-gcc + CC=${CXX} + RANLIB=${target}-ranlib + AR=${target}-ar + STRIP=${target}-strip + WINDRES=${target}-windres + AS=${target}-as + DLLTOOL=${target}-dlltool + DLLWRAP=${target}-dllwrap + OZTOOL="sh $BUILDTOP/platform/emulator/${target}-oztool" + enable_contrib_psql=no + enable_contrib_gdbm=yes + enable_contrib_regex=yes + enable_contrib_os=no + ;; + + *) + + if test -z "$WITH_GLOBAL_OZ"; then + + echo $ac_n "checking for --with-global-oz""... $ac_c" 1>&6 +echo "configure:989: checking for --with-global-oz" >&5 + # Check whether --with-global-oz or --without-global-oz was given. +if test "${with_global_oz+set}" = set; then + withval="$with_global_oz" + oz_cv_global_oz="$with_global_oz" +else + oz_cv_global_oz=no +fi + + WITH_GLOBAL_OZ="$oz_cv_global_oz" + echo "$ac_t""$WITH_GLOBAL_OZ" 1>&6 + + fi + dummy_PATH="$PATH" + if test "$WITH_GLOBAL_OZ" = no; then + for oz_prog_tmp in ozplatform; do + case $oz_prog_tmp in + oz|ozc|ozl|oztool|ozengine|ozplatform|ozdoc) + dummy_PATH="$SRCTOP/share/bin:$SRCTOP" + ;; + esac + done + fi + dummy_PWD=`pwd | sed 's/\//\\\\\//g'` + dummy_PATH=`echo $dummy_PATH | sed -e 's/::/:/g' | sed -e 's/:$//g'` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.:/$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.\//$dummy_PWD\//g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.\$/:$dummy_PWD/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.:/:$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:.\//:$dummy_PWD\//g"` + oz_for="$dummy_PATH:$SRCTOP/share/bin:$SRCTOP" + # Extract the first word of "ozplatform", so it can be a program name with args. +set dummy ozplatform; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1023: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_OZPLATFORM'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$OZPLATFORM" in + /*) + ac_cv_path_OZPLATFORM="$OZPLATFORM" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_OZPLATFORM="$OZPLATFORM" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$oz_for" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_OZPLATFORM="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +OZPLATFORM="$ac_cv_path_OZPLATFORM" +if test -n "$OZPLATFORM"; then + echo "$ac_t""$OZPLATFORM" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + case "$host_os" in + cygwin*) ;; + *) OZPLATFORM=`echo $OZPLATFORM | sed -e "s|//|/|g"`;; + esac + if test ! -n "$OZPLATFORM" + then + OZPLATFORM=undefined + + fi + + PLATFORM=`$OZPLATFORM || exit 1` + + if test -z "$WITH_GLOBAL_OZ"; then + + echo $ac_n "checking for --with-global-oz""... $ac_c" 1>&6 +echo "configure:1070: checking for --with-global-oz" >&5 + # Check whether --with-global-oz or --without-global-oz was given. +if test "${with_global_oz+set}" = set; then + withval="$with_global_oz" + oz_cv_global_oz="$with_global_oz" +else + oz_cv_global_oz=no +fi + + WITH_GLOBAL_OZ="$oz_cv_global_oz" + echo "$ac_t""$WITH_GLOBAL_OZ" 1>&6 + + fi + dummy_PATH="$PATH" + if test "$WITH_GLOBAL_OZ" = no; then + for oz_prog_tmp in oztool; do + case $oz_prog_tmp in + oz|ozc|ozl|oztool|ozengine|ozplatform|ozdoc) + dummy_PATH="$SRCTOP/share/bin:$SRCTOP" + ;; + esac + done + fi + dummy_PWD=`pwd | sed 's/\//\\\\\//g'` + dummy_PATH=`echo $dummy_PATH | sed -e 's/::/:/g' | sed -e 's/:$//g'` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.:/$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.\//$dummy_PWD\//g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.\$/:$dummy_PWD/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.:/:$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:.\//:$dummy_PWD\//g"` + oz_for="$dummy_PATH:$SRCTOP/share/bin:$SRCTOP" + # Extract the first word of "oztool", so it can be a program name with args. +set dummy oztool; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1104: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_OZTOOL'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$OZTOOL" in + /*) + ac_cv_path_OZTOOL="$OZTOOL" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_OZTOOL="$OZTOOL" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$oz_for" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_OZTOOL="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +OZTOOL="$ac_cv_path_OZTOOL" +if test -n "$OZTOOL"; then + echo "$ac_t""$OZTOOL" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + case "$host_os" in + cygwin*) ;; + *) OZTOOL=`echo $OZTOOL | sed -e "s|//|/|g"`;; + esac + if test ! -n "$OZTOOL" + then + OZTOOL=undefined + OZTOOL="sh $BUILDTOP/platform/emulator/oztool.sh" + fi + + ;; + esac + + echo $ac_n "checking for --with-inc-dir""... $ac_c" 1>&6 +echo "configure:1150: checking for --with-inc-dir" >&5 + # Check whether --with-inc-dir or --without-inc-dir was given. +if test "${with_inc_dir+set}" = set; then + withval="$with_inc_dir" + oz_cv_with_inc_dirs=$with_inc_dir +else + : ${oz_cv_with_inc_dirs=$oz_with_inc_dir} +fi + + echo "$ac_t""$with_inc_dir" 1>&6 + oz_tmp_IFS="$IFS" + IFS="," + # reverse the list of dirs + oz_tmp_dirs="" + for oz_tmp in $oz_cv_with_inc_dirs DONE; do + if test "$oz_tmp" != DONE; then + oz_tmp_dirs="$oz_tmp${oz_tmp_dirs:+ }$oz_tmp_dirs" + fi + done + # add them to CPPFLAGS and oz_inc_path + IFS=$oz_tmp_IFS + : ${oz_inc_path=""} + for oz_tmp1 in $oz_tmp_dirs DONE; do + if test "$oz_tmp1" != DONE; then + + if test "-I$oz_tmp1" != yes && test "-I$oz_tmp1" != no; then + oz_tmp_ok=yes + for oz_tmp in $CPPFLAGS NONE; do + if test "$oz_tmp" = "-I$oz_tmp1"; then + oz_tmp_ok=no + break + fi + done + test "$oz_tmp_ok" = yes && CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I$oz_tmp1" + fi + + oz_inc_path="$oz_tmp1${oz_inc_path:+ }$oz_inc_path" + fi + done + + + echo $ac_n "checking for --with-lib-dir""... $ac_c" 1>&6 +echo "configure:1192: checking for --with-lib-dir" >&5 + # Check whether --with-lib-dir or --without-lib-dir was given. +if test "${with_lib_dir+set}" = set; then + withval="$with_lib_dir" + oz_cv_with_lib_dirs=$with_lib_dir +else + : ${oz_cv_with_lib_dirs=$oz_with_lib_dir} +fi + + echo "$ac_t""$with_lib_dir" 1>&6 + oz_tmp_IFS="$IFS" + IFS="," + # reverse the list of dirs + oz_tmp_dirs="" + for oz_tmp in $oz_cv_with_lib_dirs DONE; do + if test "$oz_tmp" != DONE; then + oz_tmp_dirs="$oz_tmp${oz_tmp_dirs:+ }$oz_tmp_dirs" + fi + done + # add them to LDFLAGS and oz_lib_path + IFS=$oz_tmp_IFS + : ${oz_lib_path=""} + for oz_tmp1 in $oz_tmp_dirs DONE; do + if test "$oz_tmp1" != DONE; then + + if test "-L$oz_tmp1" != yes && test "-L$oz_tmp1" != no; then + oz_tmp_ok=yes + for oz_tmp in $LDFLAGS NONE; do + if test "$oz_tmp" = "-L$oz_tmp1"; then + oz_tmp_ok=no + break + fi + done + test "$oz_tmp_ok" = yes && LDFLAGS="-L$oz_tmp1${LDFLAGS:+ }$LDFLAGS" + fi + + oz_lib_path="$oz_tmp1${oz_lib_path:+ }$oz_lib_path" + fi + done + + + + + echo $ac_n "checking for build date""... $ac_c" 1>&6 +echo "configure:1236: checking for build date" >&5 +if eval "test \"`echo '$''{'oz_cv_build_date'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + oz_cv_build_date=`date +"%Y%m%d"` +fi + +echo "$ac_t""$oz_cv_build_date" 1>&6 + OZBUILDDATE=$oz_cv_build_date; + + + echo $ac_n "checking for build time""... $ac_c" 1>&6 +echo "configure:1249: checking for build time" >&5 +if eval "test \"`echo '$''{'oz_cv_build_time'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + oz_cv_build_time=`date +"%H%M%S"` +fi + +echo "$ac_t""$oz_cv_build_time" 1>&6 + OZBUILDTIME=$oz_cv_build_time; + + + + echo $ac_n "checking for OZLOADSEP""... $ac_c" 1>&6 +echo "configure:1263: checking for OZLOADSEP" >&5 +if eval "test \"`echo '$''{'oz_cv_OZLOADSEP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + case $PLATFORM in + win32*) oz_cv_OZLOADSEP=';' + ;; + *) oz_cv_OZLOADSEP=':' + ;; + esac + +fi + +echo "$ac_t""$oz_cv_OZLOADSEP" 1>&6 + OZLOADSEP="$oz_cv_OZLOADSEP"; + + + + echo $ac_n "checking for OZLOADWIN""... $ac_c" 1>&6 +echo "configure:1283: checking for OZLOADWIN" >&5 +if eval "test \"`echo '$''{'oz_cv_OZLOADWIN'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + case $PLATFORM in + win32*) + oztmp=`pwd` + oztmp=`cygpath -a -w "$oztmp"` + oztmp=`expr "$oztmp" : "\(.\):"` + if test -n "$oztmp"; then + oztmplo=`echo $oztmp | tr '[:upper:]' '[:lower:]'` + oztmphi=`echo $oztmp | tr '[:lower:]' '[:upper:]'` + oz_cv_OZLOADWIN="%prefix=${oztmplo}:/=${oztmplo}:/%prefix=${oztmphi}:/=${oztmphi}:/" + fi + oztmp=`cygpath -a -w "$srcdir"` + oztmp=`expr "$oztmp" : "\(.\):"` + if test -n "$oztmp"; then + oztmplo=`echo $oztmp | tr '[:upper:]' '[:lower:]'` + oztmphi=`echo $oztmp | tr '[:lower:]' '[:upper:]'` + oz_cv_OZLOADWIN="${oz_cv_OZLOADWIN}%prefix=${oztmplo}:/=${oztmplo}:/%prefix=${oztmphi}:/=${oztmphi}:/" + fi + ;; + *) oz_cv_OZLOADWIN= + ;; + esac + + +fi + +echo "$ac_t""$oz_cv_OZLOADWIN" 1>&6 + OZLOADWIN="$oz_cv_OZLOADWIN" + + + + + if test -z "$WITH_GLOBAL_OZ"; then + + echo $ac_n "checking for --with-global-oz""... $ac_c" 1>&6 +echo "configure:1323: checking for --with-global-oz" >&5 + # Check whether --with-global-oz or --without-global-oz was given. +if test "${with_global_oz+set}" = set; then + withval="$with_global_oz" + oz_cv_global_oz="$with_global_oz" +else + oz_cv_global_oz=no +fi + + WITH_GLOBAL_OZ="$oz_cv_global_oz" + echo "$ac_t""$WITH_GLOBAL_OZ" 1>&6 + + fi + dummy_PATH="$PATH" + if test "$WITH_GLOBAL_OZ" = no; then + for oz_prog_tmp in ozc; do + case $oz_prog_tmp in + oz|ozc|ozl|oztool|ozengine|ozplatform|ozdoc) + dummy_PATH="$SRCTOP/share/bin:$SRCTOP" + ;; + esac + done + fi + dummy_PWD=`pwd | sed 's/\//\\\\\//g'` + dummy_PATH=`echo $dummy_PATH | sed -e 's/::/:/g' | sed -e 's/:$//g'` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.:/$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.\//$dummy_PWD\//g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.\$/:$dummy_PWD/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.:/:$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:.\//:$dummy_PWD\//g"` + oz_for="$dummy_PATH:$SRCTOP/share/bin:$SRCTOP" + # Extract the first word of "ozc", so it can be a program name with args. +set dummy ozc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1357: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_OZC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$OZC" in + /*) + ac_cv_path_OZC="$OZC" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_OZC="$OZC" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$oz_for" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_OZC="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +OZC="$ac_cv_path_OZC" +if test -n "$OZC"; then + echo "$ac_t""$OZC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + case "$host_os" in + cygwin*) ;; + *) OZC=`echo $OZC | sed -e "s|//|/|g"`;; + esac + if test ! -n "$OZC" + then + OZC=undefined + + fi + + + if test -z "$WITH_GLOBAL_OZ"; then + + echo $ac_n "checking for --with-global-oz""... $ac_c" 1>&6 +echo "configure:1403: checking for --with-global-oz" >&5 + # Check whether --with-global-oz or --without-global-oz was given. +if test "${with_global_oz+set}" = set; then + withval="$with_global_oz" + oz_cv_global_oz="$with_global_oz" +else + oz_cv_global_oz=no +fi + + WITH_GLOBAL_OZ="$oz_cv_global_oz" + echo "$ac_t""$WITH_GLOBAL_OZ" 1>&6 + + fi + dummy_PATH="$PATH" + if test "$WITH_GLOBAL_OZ" = no; then + for oz_prog_tmp in ozl; do + case $oz_prog_tmp in + oz|ozc|ozl|oztool|ozengine|ozplatform|ozdoc) + dummy_PATH="$SRCTOP/share/bin:$SRCTOP" + ;; + esac + done + fi + dummy_PWD=`pwd | sed 's/\//\\\\\//g'` + dummy_PATH=`echo $dummy_PATH | sed -e 's/::/:/g' | sed -e 's/:$//g'` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.:/$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.\//$dummy_PWD\//g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.\$/:$dummy_PWD/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.:/:$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:.\//:$dummy_PWD\//g"` + oz_for="$dummy_PATH:$SRCTOP/share/bin:$SRCTOP" + # Extract the first word of "ozl", so it can be a program name with args. +set dummy ozl; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1437: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_OZL'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$OZL" in + /*) + ac_cv_path_OZL="$OZL" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_OZL="$OZL" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$oz_for" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_OZL="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +OZL="$ac_cv_path_OZL" +if test -n "$OZL"; then + echo "$ac_t""$OZL" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + case "$host_os" in + cygwin*) ;; + *) OZL=`echo $OZL | sed -e "s|//|/|g"`;; + esac + if test ! -n "$OZL" + then + OZL=undefined + + fi + + + if test -z "$WITH_GLOBAL_OZ"; then + + echo $ac_n "checking for --with-global-oz""... $ac_c" 1>&6 +echo "configure:1483: checking for --with-global-oz" >&5 + # Check whether --with-global-oz or --without-global-oz was given. +if test "${with_global_oz+set}" = set; then + withval="$with_global_oz" + oz_cv_global_oz="$with_global_oz" +else + oz_cv_global_oz=no +fi + + WITH_GLOBAL_OZ="$oz_cv_global_oz" + echo "$ac_t""$WITH_GLOBAL_OZ" 1>&6 + + fi + dummy_PATH="$PATH" + if test "$WITH_GLOBAL_OZ" = no; then + for oz_prog_tmp in ozengine; do + case $oz_prog_tmp in + oz|ozc|ozl|oztool|ozengine|ozplatform|ozdoc) + dummy_PATH="$SRCTOP/share/bin:$SRCTOP" + ;; + esac + done + fi + dummy_PWD=`pwd | sed 's/\//\\\\\//g'` + dummy_PATH=`echo $dummy_PATH | sed -e 's/::/:/g' | sed -e 's/:$//g'` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.:/$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/^\.\//$dummy_PWD\//g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.\$/:$dummy_PWD/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:\.:/:$dummy_PWD:/g"` + dummy_PATH=`echo $dummy_PATH | sed -e "s/:.\//:$dummy_PWD\//g"` + oz_for="$dummy_PATH:$SRCTOP/share/bin:$SRCTOP" + # Extract the first word of "ozengine", so it can be a program name with args. +set dummy ozengine; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1517: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_OZE'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$OZE" in + /*) + ac_cv_path_OZE="$OZE" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_OZE="$OZE" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$oz_for" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_OZE="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +OZE="$ac_cv_path_OZE" +if test -n "$OZE"; then + echo "$ac_t""$OZE" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + case "$host_os" in + cygwin*) ;; + *) OZE=`echo $OZE | sed -e "s|//|/|g"`;; + esac + if test ! -n "$OZE" + then + OZE=undefined + + fi + + +trap '' 1 2 15 +cat > confcache <<\EOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +EOF +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +(set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote substitution + # turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + -e "s/'/'\\\\''/g" \ + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' + ;; + esac >> confcache +if cmp -s $cache_file confcache; then + : +else + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Any assignment to VPATH causes Sun make to only execute +# the first set of double-colon rules, so remove it if not needed. +# If there is a colon in the path, we need to keep it. +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' +fi + +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +cat > conftest.defs <<\EOF +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g +s%\[%\\&%g +s%\]%\\&%g +s%\$%$$%g +EOF +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` +rm -f conftest.defs + + +# Without the "./", some shells look in PATH for config.status. +: ${CONFIG_STATUS=./config.status} + +echo creating $CONFIG_STATUS +rm -f $CONFIG_STATUS +cat > $CONFIG_STATUS </dev/null | sed 1q`: +# +# $0 $ac_configure_args +# +# Compiler output produced by configure, useful for debugging +# configure, is in ./config.log if it exists. + +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" +for ac_option +do + case "\$ac_option" in + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; + -version | --version | --versio | --versi | --vers | --ver | --ve | --v) + echo "$CONFIG_STATUS generated by autoconf version 2.13" + exit 0 ;; + -help | --help | --hel | --he | --h) + echo "\$ac_cs_usage"; exit 0 ;; + *) echo "\$ac_cs_usage"; exit 1 ;; + esac +done + +ac_given_srcdir=$srcdir +ac_given_INSTALL="$INSTALL" + +trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +EOF +cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF +$ac_vpsub +$extrasub +s%@SHELL@%$SHELL%g +s%@CFLAGS@%$CFLAGS%g +s%@CPPFLAGS@%$CPPFLAGS%g +s%@CXXFLAGS@%$CXXFLAGS%g +s%@FFLAGS@%$FFLAGS%g +s%@DEFS@%$DEFS%g +s%@LDFLAGS@%$LDFLAGS%g +s%@LIBS@%$LIBS%g +s%@exec_prefix@%$exec_prefix%g +s%@prefix@%$prefix%g +s%@program_transform_name@%$program_transform_name%g +s%@bindir@%$bindir%g +s%@sbindir@%$sbindir%g +s%@libexecdir@%$libexecdir%g +s%@datadir@%$datadir%g +s%@sysconfdir@%$sysconfdir%g +s%@sharedstatedir@%$sharedstatedir%g +s%@localstatedir@%$localstatedir%g +s%@libdir@%$libdir%g +s%@includedir@%$includedir%g +s%@oldincludedir@%$oldincludedir%g +s%@infodir@%$infodir%g +s%@mandir@%$mandir%g +s%@SRCDIR@%$SRCDIR%g +s%@SRCTOP@%$SRCTOP%g +s%@BUILDTOP@%$BUILDTOP%g +s%@host@%$host%g +s%@host_alias@%$host_alias%g +s%@host_cpu@%$host_cpu%g +s%@host_vendor@%$host_vendor%g +s%@host_os@%$host_os%g +s%@MAKE@%$MAKE%g +s%@SET_MAKE@%$SET_MAKE%g +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g +s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g +s%@INSTALL_DATA@%$INSTALL_DATA%g +s%@INSTALL_DIR@%$INSTALL_DIR%g +s%@OZVERSION@%$OZVERSION%g +s%@HOMEURL@%$HOMEURL%g +s%@HOMECACHE@%$HOMECACHE%g +s%@OZPLATFORM@%$OZPLATFORM%g +s%@OZTOOL@%$OZTOOL%g +s%@OZBUILDDATE@%$OZBUILDDATE%g +s%@OZBUILDTIME@%$OZBUILDTIME%g +s%@PLATFORM@%$PLATFORM%g +s%@OZLOADSEP@%$OZLOADSEP%g +s%@OZLOADWIN@%$OZLOADWIN%g +s%@OZC@%$OZC%g +s%@OZL@%$OZL%g +s%@OZE@%$OZE%g + +CEOF +EOF + +cat >> $CONFIG_STATUS <<\EOF + +# Split the substitutions into bite-sized pieces for seds with +# small command number limits, like on Digital OSF/1 and HP-UX. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_file=1 # Number of current file. +ac_beg=1 # First line for current file. +ac_end=$ac_max_sed_cmds # Line after last line for current file. +ac_more_lines=: +ac_sed_cmds="" +while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file + else + sed "${ac_end}q" conftest.subs > conftest.s$ac_file + fi + if test ! -s conftest.s$ac_file; then + ac_more_lines=false + rm -f conftest.s$ac_file + else + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f conftest.s$ac_file" + else + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + fi + ac_file=`expr $ac_file + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_cmds` + fi +done +if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat +fi +EOF + +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. + + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dir_suffix= ac_dots= + fi + + case "$ac_given_srcdir" in + .) srcdir=. + if test -z "$ac_dots"; then top_srcdir=. + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + *) # Relative path. + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" + top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + case "$ac_given_INSTALL" in + [/$]*) INSTALL="$ac_given_INSTALL" ;; + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac + + echo creating "$ac_file" + rm -f "$ac_file" + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + case "$ac_file" in + *Makefile*) ac_comsub="1i\\ +# $configure_input" ;; + *) ac_comsub= ;; + esac + + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + sed -e "$ac_comsub +s%@configure_input@%$configure_input%g +s%@srcdir@%$srcdir%g +s%@top_srcdir@%$top_srcdir%g +s%@INSTALL@%$INSTALL%g +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file +fi; done +rm -f conftest.s* + +EOF +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF + +exit 0 +EOF +chmod +x $CONFIG_STATUS +rm -fr confdefs* $ac_clean_files +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + + + diff -Nru /tmp/OaXG1gSwbK/mozart-1.3.2.20060615+dfsg/contrib/ap/configure.in /tmp/efLMu3Nlpk/mozart-1.4.0/contrib/ap/configure.in --- mozart-1.3.2.20060615+dfsg/contrib/ap/configure.in 1970-01-01 01:00:00.000000000 +0100 +++ mozart-1.4.0/contrib/ap/configure.in 1998-11-23 08:31:40.000000000 +0000 @@ -0,0 +1,9 @@ +AC_INIT(OptionSheet.oz) +OZ_CONTRIB_INIT +AC_OUTPUT(Makefile) + +errprint(ifdef([OZ_INIT], + [autoconf succeeded. +], + [autoconf failed: use 'autoconf -l ../..' to include ../aclocal.m4. +])) diff -Nru /tmp/OaXG1gSwbK/mozart-1.3.2.20060615+dfsg/contrib/ap/Makefile.in /tmp/efLMu3Nlpk/mozart-1.4.0/contrib/ap/Makefile.in --- mozart-1.3.2.20060615+dfsg/contrib/ap/Makefile.in 1970-01-01 01:00:00.000000000 +0100 +++ mozart-1.4.0/contrib/ap/Makefile.in 2009-04-29 14:24:55.000000000 +0100 @@ -0,0 +1,51 @@ +@SET_MAKE@ +BUILDTOP = @BUILDTOP@ +SRCTOP = @SRCTOP@ +PREFIX = @prefix@ +SRCDIR = @srcdir@ +VPATH = @srcdir@ +HOMEURL = @HOMEURL@ +LIB_DIR = $(PREFIX)/contrib/ap +OZC = @OZC@ +INSTALL = @INSTALL@ +INSTALL_DIR = @INSTALL_DIR@ +INSTALL_LIB = $(INSTALL) -m 444 +FUNCTORS = OptionSheet.ozf +NEWCACHEDIR = $(PREFIX)/cache/x-oz/contrib/ap +NEW_FUNCTORS = $(addprefix $(NEWCACHEDIR)/,$(FUNCTORS)) +PLATFORM = @PLATFORM@ +CYGPATH = $(SRCTOP)/share/lib/cygpath.sh + +all: $(FUNCTORS) +%.ozf: %.oz + $(OZC) -z 9 -c $(shell $(CYGPATH) "$<") -o $@ +install: $(NEWCACHEDIR) $(NEW_FUNCTORS) + +$(NEW_FUNCTORS): $(NEWCACHEDIR) + +$(LIB_DIR) $(NEWCACHEDIR): + $(INSTALL_DIR) $@ +$(LIB_DIR)/%.ozf: %.ozf + $(INSTALL_LIB) $< $@ +$(NEWCACHEDIR)/% : % + $(INSTALL_LIB) $< $@ + +clean veryclean: + -rm -f *~ *.ozf + +distclean: veryclean + -rm -f Makefile config.* + +include $(BUILDTOP)/share/Makefile.boot + +bootstrap: boot-all + +#--------------------------------------------------------------------- +# Automatic Makefile update +#--------------------------------------------------------------------- + +Makefile: Makefile.in config.status + ./config.status + +config.status: configure + ./config.status --recheck diff -Nru /tmp/OaXG1gSwbK/mozart-1.3.2.20060615+dfsg/contrib/ap/makefile.oz /tmp/efLMu3Nlpk/mozart-1.4.0/contrib/ap/makefile.oz --- mozart-1.3.2.20060615+dfsg/contrib/ap/makefile.oz 1970-01-01 01:00:00.000000000 +0100 +++ mozart-1.4.0/contrib/ap/makefile.oz 2001-09-27 23:38:26.000000000 +0100 @@ -0,0 +1,3 @@ +makefile( + lib : ['OptionSheet.ozf'] + ) \ No newline at end of file diff -Nru /tmp/OaXG1gSwbK/mozart-1.3.2.20060615+dfsg/contrib/ap/OptionSheet.oz /tmp/efLMu3Nlpk/mozart-1.4.0/contrib/ap/OptionSheet.oz --- mozart-1.3.2.20060615+dfsg/contrib/ap/OptionSheet.oz 1970-01-01 01:00:00.000000000 +0100 +++ mozart-1.4.0/contrib/ap/OptionSheet.oz 2006-08-24 15:21:07.000000000 +0100 @@ -0,0 +1,965 @@ +functor +import + Application(postProcess exit) + CB(checkBox:CheckBox) at 'x-oz://contrib/tk/CheckBox.ozf' + SF(scrollFrame:ScrollFrame) at 'x-oz://contrib/tk/ScrollFrame.ozf' + Tk TkTools +export + GetGuiCmdArgs + AddHandler + OptionSheet +define +NONE = {NewName} + +%% ------------------------------------------------------------------- +%% {ProcessOptionSpec +SPEC ?NEWSPEC} +%% given an option SPEC as expected by the usual option parser, +%% build a record of all information necessary for an OptionManager. +%% ------------------------------------------------------------------- + +fun {ProcessOptionSpec Spec} + if {IsAtom {CondSelect Spec alias 0}} then unit + else + Option = {Label Spec} + Text = if {HasFeature Spec text} then Spec.text + else '--'#Option end + Type = if {HasFeature Spec alias} then alias + else {CondSelect Spec type bool} end + Default = {CondSelect Spec default NONE} + Optional = {CondSelect Spec optional true} + Aliases = case {CondSelect Spec alias NONE} + of !NONE then nil + [] O#V then [O#V] + [] L then L end + Clonable = ({CondSelect Spec 1 multiple}==multiple orelse + {Label Type}==list) + Collecting = ({CondSelect Spec 1 multiple}\=multiple andthen + {Label Type}==list) + EditorClass= {GetEditor Type} + Help = {CondSelect Spec help unit} + in + option(option : Option + text : Text + type : Type + default : Default + optional : Optional + aliases : Aliases + clonable : Clonable + collecting : Collecting + editorClass : EditorClass + help : Help) + end +end + +ArgumentSpec = +argument(option : NONE + text : 'Argument' + type : string + default : nil + optional : true + aliases : nil + clonable : true + collecting : false + editorClass : StringOptionEditor + help : unit + ) + +%% ------------------------------------------------------------------- +%% There is one OptionManager for each option understood by the +%% application. It manages all editable occurrences of this option, +%% which are represented by individual OptionRows. +%% ------------------------------------------------------------------- + +class OptionManager + feat frame spec sheet + attr rows:nil + meth init(frame:Frame spec:Spec sheet:Sheet) + self.frame = Frame + self.spec = Spec + self.sheet = Sheet + end + %% deactivateAlias is called when (1) this option is an alias, + %% (2) it is currently aliasing some other options, (3) one of + %% these options is being again selected by the user or aliased + %% by an other option. + meth deactivateAlias + {ForAll @rows proc {$ R} {R exclude} end} + end + meth createRow(R) + {New OptionRow init(manager:self) R} + rows <- R|@rows + end + meth alias(O) {ForAll @rows proc {$ R} {R alias(O)} end} end + meth unalias {ForAll @rows proc {$ R} {R unalias} end} end + meth userSelectNotify(R) {self.sheet userSelectNotify(R)} end + meth userDeSelectNotify(R) {self.sheet userDeSelectNotify(R)} end + meth atLeastTwoIncluded($) + {Length {Filter @rows fun {$ R} {R isIncluded($)} end}} + > 1 + end + meth collect(I $) + %% check that I is the 1st included row + %% collect is only called if I is included + if try + {ForAll @rows + proc {$ R} + if {R isIncluded($)} andthen + {R getRowIndex($)}1 end + meth userDeleteNotify(R) + rows <- {Filter @rows fun {$ R2} R\=R2 end} + end +end + +%% ------------------------------------------------------------------- +%% an OptionRow represents an editable occurrence of an option. +%% It can be in one of the following states: +%% +%% [exclude] +%% The row is in an inactive state; it does not contribute +%% to the set of options. The editor is not visible. +%% [include] +%% The row is in an active state; it contributes to the set +%% of options. The editor is visible. +%% [alias(O)] +%% The alias option O is currently selected which sets the +%% present option to a certain value. The row is in an inactive +%% state. The editor is not visible; instead a label is shown +%% explaining that option O sets it to another value (also shown). +%% -- it should just say: "overriden by alias --O" +%% +%% if it is discovered that an option row contains an illegal value +%% then the option name should be displayed e.g. in red; as soon as +%% it is edited in some fashion, the color of the option name (label) +%% should revert to the default. +%% ------------------------------------------------------------------- + +class OptionRow + prop locking + feat manager check label editor info + attr index state:unit stateUndo:exclude selected:false + meth init(manager:M) + self.manager = M + self.check = {New OptionCheck init(row:self)} + self.label = {New OptionLabel init(row:self)} + self.editor = {New M.spec.editorClass init(row:self)} + self.info = {New OptionInfo init(row:self)} + end + meth setRowIndex(I) + lock + index <- I + {self.check rowChangeNotify(I)} + {self.label rowChangeNotify(I)} + {self.editor rowChangeNotify(I)} + {self.info rowChangeNotify(I)} + end + end + meth getRowIndex($) @index end + meth stateChangeNotify(Old New) + {self.check stateChangeNotify(Old New)} + {self.label stateChangeNotify(Old New)} + {self.editor stateChangeNotify(Old New)} + {self.info stateChangeNotify(Old New)} + end + meth userEditNotify(...) + {self.check userEditNotify} + {self.label userEditNotify} + {self.editor userEditNotify} + {self.info userEditNotify} + end + meth valueErrorNotify + {self.check valueErrorNotify} + {self.label valueErrorNotify} + {self.editor valueErrorNotify} + {self.info valueErrorNotify} + end + meth exclude + if @state\=exclude then + {self stateChangeNotify(@state exclude)} + state <- exclude + end + end + meth include + if @state\=include then + case @state of alias(X) then {X deactivateAlias} + else skip end + {self stateChangeNotify(@state include)} + state <- include + end + end + meth alias(O) + if @state\=alias(O) then + case @state of alias(X) then {X deactivateAlias} + else skip end + stateUndo <- @state + {self stateChangeNotify(@state alias(O))} + state <- alias(O) + end + end + meth unalias S=@state in + case S of alias(_) then + {self stateChangeNotify(S @stateUndo)} + state <- @stateUndo + else skip end + end + meth get($) + if @state==include then + if self.manager.spec.collecting then + {self.manager collect(@index $)} + elseif self.manager.spec.type==alias then + alias(self.manager.spec.aliases) + else + try + V = {self.editor getValue($)} + in + self.manager.spec.option + #if {Label self.manager.spec.type}==list + then [V] else V end + catch _ then + {self valueErrorNotify} + bad(self.manager.spec.option) + end + end + else omit end + end + meth collectValue($) + if @state==include then + try {self.editor getValue($)} + catch _ then + {self valueErrorNotify} + raise system(ap(illegalOptionValue + self.manager.spec.option)) end + end + else NONE end + end + meth userSelectNotify + selected <- true + {self.manager userSelectNotify(self)} + {self.check userSelectNotify} + {self.label userSelectNotify} + {self.editor userSelectNotify} + {self.info userSelectNotify} + end + meth userDeSelectNotify + selected <- false + {self.manager userDeSelectNotify(self)} + {self.check userDeSelectNotify} + {self.label userDeSelectNotify} + {self.editor userDeSelectNotify} + {self.info userDeSelectNotify} + end + meth toggleSelect + {self if @selected + then userDeSelectNotify + else userSelectNotify end} + end + meth userCheckNotify(B) + if self.manager.spec.optional then + {self if B then include else exclude end} + elseif B then {self include} + elseif {self.manager atLeastTwoIncluded($)} then + {self exclude} + end + end + meth isIncluded($) @state==include end + meth userDeleteNotify + {self.manager userDeleteNotify(self)} + {self.check userDeleteNotify} + {self.label userDeleteNotify} + {self.editor userDeleteNotify} + {self.info userDeleteNotify} + end + meth setEditorFrom(R) + {self.editor setEditorFrom(R.editor)} + end + meth userHelpNotify + Help = self.manager.spec.help + Clonable = self.manager.spec.clonable + in + {New OptionHelp + if self.manager.spec.option==NONE then + init( + 'This stands for an ordinary argument rather than an option\n'# + 'type: '#{self.editor userHelpNotify($)}# + '\n\nMultiple occurrences are allowed\n'# + 'select this row by clicking Mouse-1 on the Argument label\n'# + 'then choose \`Clone\' from the menu or press Control-o') + else + init('option: --'#self.manager.spec.option#'\n'# + 'type : '#{self.editor userHelpNotify($)}# + if Clonable then + '\n\nMultiple occurrences of this option are allowed\n'# + 'select the option by clicking Mouse-1 on its name\n'# + 'then choose \`Clone\' from the menu or press Control-o' + else nil end # + if Help==unit then nil else '\n\n'#Help end) + end + _} + end +end + +class OptionCheck from CheckBox + feat row + meth init(row:Row) + self.row = Row + CheckBox,init(parent:Row.manager.frame) + end + meth userEditNotify skip end + meth valueErrorNotify skip end + meth stateChangeNotify(Old New) + CheckBox,set(New==include) + end + meth rowChangeNotify(I) + {Tk.send grid(self row:I column:0 sticky:nswe)} + end + meth action(B) {self.row userCheckNotify(B)} end + meth userSelectNotify skip end + meth userDeSelectNotify skip end + meth userDeleteNotify CheckBox,tkClose end +end + +class OptionLabel from Tk.label + feat row + attr ok:true + meth init(row:Row) + self.row = Row + Tk.label,tkInit(parent : Row.manager.frame + text : Row.manager.spec.text + anchor :nw + fg :black + highlightcolor:red + highlightthickness:1) + Tk.label,tkBind(event :'<1>' + action:Row#toggleSelect) + Tk.label,tkBind(event :'<3>' + action:Row#userHelpNotify) + end + meth Normal + if {Not @ok} then + ok <- true + Tk.label,tk(configure fg:black) + end + end + meth Error + if @ok then + ok <- false + Tk.label,tk(configure fg:red) + end + end + meth userEditNotify OptionLabel,Normal end + meth valueErrorNotify OptionLabel,Error end + meth stateChangeNotify(_ _) OptionLabel,Normal end + meth rowChangeNotify(I) + {Tk.send grid(self row:I column:1 sticky:nswe)} + end + meth userSelectNotify + Tk.label,tk(configure relief:groove) + end + meth userDeSelectNotify + Tk.label,tk(configure relief:flat) + end + meth userDeleteNotify Tk.label,tkClose end +end + +InfoFont = {New Tk.font tkInit(family:helvetica size:10 weight:normal + slant:italic)} + +class OptionInfo from Tk.label + feat row + attr clear:true hidden:true + meth init(row:Row) + self.row = Row + Tk.label,tkInit(parent: Row.manager.frame font:InfoFont) + end + meth Clear + if {Not @clear} then + clear <- true + Tk.label,tk(configure text:'') + end + end + meth Hide + if {Not @hidden} then + hidden <- true + {Tk.send grid(forget self)} + end + end + meth Show + if @hidden then + hidden <- false + {Tk.send grid(self + row:{self.row getRowIndex($)} + column:2 + sticky:nswe)} + end + end + meth Alias(O) + clear <- false + Tk.label,tk(configure + text:'overriden by '#O.spec.text) + end + meth userEditNotify OptionInfo,Clear end + meth valueErrorNotify skip end + meth stateChangeNotify(Old New) + case New + of include then + OptionInfo,Hide + [] exclude then + OptionInfo,Clear + OptionInfo,Show + [] alias(O) then + OptionInfo,Alias(O) + OptionInfo,Show + end + end + meth rowChangeNotify(I) + if {Not @hidden} then + {Tk.send grid(self row:I column:2 sticky:nswe)} + end + end + meth userSelectNotify skip end + meth userDeSelectNotify skip end + meth userDeleteNotify Tk.label,tkClose end +end + +class OptionEditor + feat sticky:nw row + attr Hidden:true + meth init(row:Row) self.row=Row end + meth userEditNotify skip end + meth valueErrorNotify skip end + meth stateChangeNotify(Old New) + case New + of include then OptionEditor,Show + [] exclude then OptionEditor,Hide + [] alias(_) then OptionEditor,Hide + end + end + meth rowChangeNotify(I) + if {Not @Hidden} then + {Tk.send grid(self row:I column:2 sticky:self.sticky)} + end + end + meth Hide + if {Not @Hidden} then + Hidden <- true + {Tk.send grid(forget self)} + end + end + meth Show + if @Hidden then + Hidden <- false + {Tk.send grid(self row:{self.row getRowIndex($)} + column:2 sticky:self.sticky)} + end + end + meth userSelectNotify skip end + meth userDeSelectNotify skip end + meth userDeleteNotify {self tkClose} end + meth setEditorFrom(E) + try {self setValue({E getValue($)})} + catch _ then skip end + end + meth userHelpNotify($) + case @row.manager.spec.type + of list(X) then X + elseof X then {Label X} end + end +end + +class BoolOptionEditor from Tk.checkbutton OptionEditor + feat Var + meth init(row:Row) + OptionEditor,init(row:Row) + self.Var = {New Tk.variable tkInit} + Tk.checkbutton,tkInit(parent : Row.manager.frame + variable : self.Var) + Tk.checkbutton,tkAction(action : Row#userEditNotify) + end + meth getValue($) {self.Var tkReturnInt($)}==1 end + meth setValue(V) {self.Var tkSet(V)} end + meth userHelpNotify($) 'boolean' end +end + +class StringOptionEditor from Tk.entry OptionEditor + feat sticky:nwe + meth init(row:Row) + OptionEditor,init(row:Row) + Tk.entry,tkInit(parent : Row.manager.frame) + Tk.entry,tkBind(event : '' + append : true + action : Row#userEditNotify) + end + meth getValue($) Tk.entry,tkReturn(get $) end + meth setValue(V) + Tk.entry,tk(delete 0 'end') + Tk.entry,tk(insert 0 V) + end + meth userHelpNotify($) 'string' end +end + +class AtomOptionEditor from StringOptionEditor + meth getValue($) + {String.toAtom StringOptionEditor,getValue($)} + end + meth userHelpNotify($) 'atom' end +end + +class IntOptionEditor from TkTools.numberentry OptionEditor + meth init(row:Row) + OptionEditor,init(row:Row) + TkTools.numberentry,tkInit(parent: Row.manager.frame + min : {CondSelect + Row.manager.spec.type + min unit} + max : {CondSelect + Row.manager.spec.type + max unit} + action: Row#userEditNotify) + end + meth getValue($) TkTools.numberentry,tkGet($) end + meth setValue(V) + {self.entry tk(delete 1 'end')} + TkTools.numberentry,tkSet(V) + end + meth userHelpNotify($) + 'integer' + # case {CondSelect self.row.manager.spec.type min unit} + of unit then nil + [] X then ' (>= '#X#')' end + # case {CondSelect self.row.manager.spec.type max unit} + of unit then nil + [] X then ' (=< '#X#')' end + end +end + +class FloatOptionEditor from Tk.entry OptionEditor + feat sticky:nwe + meth init(row:Row) + OptionEditor,init(row:Row) + Tk.entry,tkInit(parent: Row.manager.frame) + Tk.entry,tkBind(event : '' + append: true + action: Row#userEditNotify) + end + meth getValue($) + S = {self tkReturn(get $)} + in + try {String.toFloat S} + catch _ then {Int.toFloat {String.toInt S}} end + end + meth setValue(V) + Tk.entry,tk(delete 0 'end') + Tk.entry,tk(insert 0 V) + end + meth userHelpNotify($) + 'float' + # case {CondSelect self.row.manager.spec.type min unit} + of unit then nil + [] X then ' (>= '#X#')' end + # case {CondSelect self.row.manager.spec.type max unit} + of unit then nil + [] X then ' (=< '#X#')' end + end +end + +class AtomChoiceOptionEditor from Tk.frame OptionEditor + feat Choices Box + meth init(row:Row) + OptionEditor,init(row:Row) + Tk.frame,tkInit(parent: Row.manager.frame) + L = {Record.toList Row.manager.spec.type} + Size = {Length L} + Max = 5 + Height = {Min Max Size} + in + self.Box = {New Tk.listbox tkInit(parent:self height:Height)} + self.Choices = L + {ForAll L + proc {$ A} {self.Box tk(insert 'end' A)} end} + if Size>Max then + Bar = {New Tk.scrollbar tkInit(parent:self)} + in + {Tk.addYScrollbar self.Box Bar} + {Tk.send pack(self.Box Bar fill:y side:left)} + else + {Tk.send pack(self.Box fill:y side:left)} + end + {self.Box tkBind(event: '<1>' action: Row#userEditNotify)} + end + meth getValue($) + {Nth self.Choices 1+{self.Box tkReturnInt(curselection $)}} + end + meth setValue(V) + {self.Box tk(selection clear 0 'end')} + try + {List.forAllInd self.Choices + proc {$ I A} + if V==A then raise ok(I) end end + end} + catch ok(I) then + {self.Box tk(selection set I-1)} + end + end + meth userHelpNotify($) + 'atom (one of:'# + {FoldR {Record.toList self.row.manager.spec.type} + fun {$ A L} ' '#A#L end ')'} + end +end + +class AliasOptionEditor from Tk.frame OptionEditor + feat sticky:nwse + attr On:false + meth init(row:Row) + OptionEditor,init(row:Row) + Tk.frame,tkInit(parent: Row.manager.frame) + end + meth stateChangeNotify(Old New) + case New + of include then + On <- true + %% now, override aliases + {ForAll self.row.manager.spec.aliases + proc {$ A#_} + try {self.row.manager.sheet.map.A + alias(self.row.manager)} + catch _ then skip end + end} + else AliasOptionEditor,Off + end + OptionEditor,stateChangeNotify(Old New) + end + meth getValue($) @On end + meth Off + On <- false + {ForAll self.row.manager.spec.aliases + proc {$ A#_} + try {self.row.manager.sheet.map.A unalias} + catch _ then skip end + end} + end + meth userDeleteNotify + if @On then AliasOptionEditor,Off end + Tk.frame,tkClose + end + meth userHelpNotify($) + 'alias (overrides:'# + {FoldR self.row.manager.spec.aliases + fun {$ A#_ L} ' --'#A#L end ')'} + end +end + +proc {OptionEditorHandler Type} + E = + case Type + of alias then AliasOptionEditor + [] bool then BoolOptionEditor + [] string then StringOptionEditor + [] atom then AtomOptionEditor + [] int(...) then IntOptionEditor + [] float(...) then FloatOptionEditor + [] atom(...) then AtomChoiceOptionEditor + [] list(T) then {GetEditor T} + else unit end +in + if E\=unit then raise ok(E) end end +end + +OptionEditorHandlerAlist = {NewCell [OptionEditorHandler]} +fun {GetEditor Type} + try {ForAll {Access OptionEditorHandlerAlist} + proc {$ H} {H Type} end} + {Exception.raiseError ap(noEditor Type)} unit + catch ok(C) then C end +end +proc {AddHandler H} + L in {Exchange OptionEditorHandlerAlist L H|L} +end + +class OptionHelp from Tk.toplevel + meth init(Text) + Tk.toplevel,tkInit(withdraw:true title:'Option Help') + B = {New Tk.button tkInit(parent:self text:'Close' relief:groove + action:self#tkClose)} + M = {New Tk.label + tkInit(parent:self wraplength:0 text:Text justify:left)} + in + {Tk.batch + [ pack(M fill:both expand:true) + pack(B) + wm(deiconify self) ]} + end +end + +class OptionGlobalHelp from OptionHelp + meth init + HELP = + 'Every line represents an occurrence of an option, and\n'# + 'consists of 3 fields: (1) a check box, (2) the option\'s\n'# + 'name, and (3) an editor or info banner (usually empty).\n\n'# + 'The check box indicates whether the occurrence is active\n'# + 'or not (i.e. is it really included in the command line).\n'# + 'When the occurrence is active, an appropriate editor appears\n'# + 'in the 3rd field and allows you to edit the value of the\n'# + 'option. Note that an active occurrence of a boolean option\n'# + 'may well have value `false\'.\n\n'# + 'Some options support multiple occurrences: to obtain an\n'# + 'additional occurrence of option --foo, click on option\n'# + '--foo\'s name to select it (a box is drawn around it), then\n'# + 'choose `Clone\' from the menu or press Control-o. You can\n'# + 'also delete an occurrence with Control-g or `Delete\' from\n'# + 'the menu.\n\n'# + 'An occurrence of an option can also be moved up and down.\n'# + 'First select it, then use the up and down arrow keys.\n\n'# + 'To obtain help information on an option: click Mouse-3 on\n'# + 'the option\'s name or select it and choose `Option Help\'\n'# + 'from the menu.' + in + OptionHelp,init(HELP) + end +end + +class OptionSheet from Tk.toplevel + feat map frame list msg specs result sframe bar + attr rows selected:unit clear:true + meth init(Specs Result) + self.specs = Specs + self.result = Result + Tk.toplevel,tkInit + Tk.toplevel,tkBind(event:'' action:self#userUpNotify) + Tk.toplevel,tkBind(event:'' action:self#userDownNotify) + Tk.toplevel,tkBind(event:'' append:true action:self#Clear) + Tk.toplevel,tkBind(event:'