Newsgroups: comp.sources.unix From: how%milhow1@uunet.uu.net (Mike Howard) Subject: v28i132: simple_menu-3.1 - a simple shell-level menu system, V3.1, Part08/09 References: <1.781345221.914@gw.home.vix.com> Sender: unix-sources-moderator@gw.home.vix.com Approved: vixie@gw.home.vix.com Submitted-By: how%milhow1@uunet.uu.net (Mike Howard) Posting-Number: Volume 28, Issue 132 Archive-Name: simple_menu-3.1/part08 #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh './configure' <<'END_OF_FILE' X#!/bin/sh X# Guess values for system-dependent variables and create Makefiles. X# Generated automatically using autoconf version 1.11 X# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc. X X# This configure script is free software; you can redistribute it and/or X# modify it under the terms of the GNU General Public License as published X# by the Free Software Foundation; either version 2, or (at your option) X# any later version. X X# This script is distributed in the hope that it will be useful, but X# WITHOUT ANY WARRANTY; without even the implied warranty of X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General X# Public License for more details. X X# You should have received a copy of the GNU General Public License X# along with this program; if not, write to the Free Software X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. X X# Save the original args to write them into config.status later. Xconfigure_args="$*" X X# Only options that might do something get documented. Xac_usage="Usage: configure [options] [host] XOptions: [defaults in brackets after descriptions] X--build=BUILD configure for building on BUILD [BUILD=HOST] X--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) X--enable-FEATURE[=ARG] include FEATURE [ARG=yes] X--exec-prefix=PREFIX install host dependent files in PREFIX [/usr/local] X--help print this message X--host=HOST configure for HOST [guessed] X--prefix=PREFIX install host independent files in PREFIX [/usr/local] X--quiet, --silent do not print \`checking for...' messages X--srcdir=DIR find the sources in DIR [configure dir or ..] X--target=TARGET configure for TARGET [TARGET=HOST] X--verbose print results of checks X--version print the version of autoconf that created configure X--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] X--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) X--x-includes=DIR X include files are in DIR X--x-libraries=DIR X library files are in DIR" X X# Initialize some variables set by options. X# The variables have the same names as the options, with X# dashes changed to underlines. Xbuild=NONE Xexec_prefix= Xhost=NONE Xno_create= Xnonopt=NONE Xnorecursion= Xprefix= Xprogram_prefix= Xprogram_suffix= Xprogram_transform_name= Xsilent= Xsrcdir= Xtarget=NONE Xverbose= Xx_includes= Xx_libraries= X Xac_prev= Xfor ac_option Xdo X X # If the previous option needs an argument, assign it. X if test -n "$ac_prev"; then X eval "$ac_prev=\$ac_option" X ac_prev= X continue X fi X X # Accept (but ignore some of) the important Cygnus configure X # options, so we can diagnose typos. X X case "$ac_option" in X -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; X *) ac_optarg= ;; X esac X X case "$ac_option" in X X -build | --build | --buil | --bui | --bu | --b) X ac_prev=build ;; X -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) X build="$ac_optarg" ;; X X -disable-* | --disable-*) X ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` X # Reject names that aren't valid shell variable names. X if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then X echo "configure: $ac_feature: invalid feature name" >&2; exit 1 X fi X ac_feature=`echo $ac_feature| sed 's/-/_/g'` X eval "enable_${ac_feature}=no" ;; X X -enable-* | --enable-*) X ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` X # Reject names that aren't valid shell variable names. X if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then X echo "configure: $ac_feature: invalid feature name" >&2; exit 1 X fi X ac_feature=`echo $ac_feature| sed 's/-/_/g'` X case "$ac_option" in X *=*) ;; X *) ac_optarg=yes ;; X esac X eval "enable_${ac_feature}='$ac_optarg'" ;; X X # For backward compatibility, recognize -exec-prefix and --exec_prefix. X -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ X | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ X | --exec | --exe | --ex) X ac_prev=exec_prefix ;; X -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ X | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ X | --exec=* | --exe=* | --ex=*) X exec_prefix="$ac_optarg" ;; X X -gas | --gas | --ga | --g) X with_gas=yes ;; # Obsolete; use --with-gas. X X -help | --help | --hel | --he) X cat << EOF X$ac_usage XEOF X exit 0 ;; X X -host | --host | --hos | --ho) X ac_prev=host ;; X -host=* | --host=* | --hos=* | --ho=*) X host="$ac_optarg" ;; X X -nfp | --nfp | --nf) X with_fp=no ;; # Obsolete; use --without-fp. X X -no-create | --no-create | --no-creat | --no-crea | --no-cre \ X | --no-cr | --no-c) X no_create=yes ;; X X -norecursion | --norecursion | --norecursio | --norecursi \ X | --norecurs | --norecur | --norecu | --norec | --nore | --nor) X norecursion=yes ;; X X -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) X ac_prev=prefix ;; X -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) X prefix="$ac_optarg" ;; X X -program-prefix | --program-prefix | --program-prefi | --program-pref \ X | --program-pre | --program-pr | --program-p) X ac_prev=program_prefix ;; X -program-prefix=* | --program-prefix=* | --program-prefi=* \ X | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) X program_prefix="$ac_optarg" ;; X X -program-suffix | --program-suffix | --program-suffi | --program-suff \ X | --program-suf | --program-su | --program-s) X ac_prev=program_suffix ;; X -program-suffix=* | --program-suffix=* | --program-suffi=* \ X | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) X program_suffix="$ac_optarg" ;; X X -program-transform-name | --program-transform-name \ X | --program-transform-nam | --program-transform-na \ X | --program-transform-n | --program-transform- \ X | --program-transform | --program-transfor \ X | --program-transfo | --program-transf \ X | --program-trans | --program-tran \ X | --progr-tra | --program-tr | --program-t) X ac_prev=program_transform_name ;; X -program-transform-name=* | --program-transform-name=* \ X | --program-transform-nam=* | --program-transform-na=* \ X | --program-transform-n=* | --program-transform-=* \ X | --program-transform=* | --program-transfor=* \ X | --program-transfo=* | --program-transf=* \ X | --program-trans=* | --program-tran=* \ X | --progr-tra=* | --program-tr=* | --program-t=*) X program_transform_name="$ac_optarg" ;; X X -q | -quiet | --quiet | --quie | --qui | --qu | --q \ X | -silent | --silent | --silen | --sile | --sil) X silent=yes ;; X X -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) X ac_prev=srcdir ;; X -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) X srcdir="$ac_optarg" ;; X X -target | --target | --targe | --targ | --tar | --ta | --t) X ac_prev=target ;; X -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) X target="$ac_optarg" ;; X X -v | -verbose | --verbose | --verbos | --verbo | --verb) X verbose=yes ;; X X -version | --version | --versio | --versi | --vers) X echo "configure generated by autoconf version 1.11" X exit 0 ;; X X -with-* | --with-*) X ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` X # Reject names that aren't valid shell variable names. X if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then X echo "configure: $ac_package: invalid package name" >&2; exit 1 X fi X ac_package=`echo $ac_package| sed 's/-/_/g'` X case "$ac_option" in X *=*) ;; X *) ac_optarg=yes ;; X esac X eval "with_${ac_package}='$ac_optarg'" ;; X X -without-* | --without-*) X ac_package=`echo $ac_option|sed -e 's/-*without-//'` X # Reject names that aren't valid shell variable names. X if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then X echo "configure: $ac_package: invalid package name" >&2; exit 1 X fi X ac_package=`echo $ac_package| sed 's/-/_/g'` X eval "with_${ac_package}=no" ;; X X --x) with_x=yes ;; # Obsolete; use --with-x. X X -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ X | --x-incl | --x-inc | --x-in | --x-i) X ac_prev=x_includes ;; X -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ X | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) X x_includes="$ac_optarg" ;; X X -x-libraries | --x-libraries | --x-librarie | --x-librari \ X | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) X ac_prev=x_libraries ;; X -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ X | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) X x_libraries="$ac_optarg" ;; X X -*) echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1 X ;; X X *) X if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then X echo "configure: warning: $ac_option: invalid host type" >&2 X fi X if test "x$nonopt" != xNONE; then X echo "configure: can only configure for one host and one target at a time" >&2; exit 1 X fi X nonopt="$ac_option" X ;; X X esac Xdone X Xif test -n "$ac_prev"; then X echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1 Xfi X Xtrap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15 Xtrap 'rm -fr confdefs* $ac_clean_files' 0 X X# Save the original args if we used an alternate arg parser. Xac_configure_temp="${configure_args-$*}" X# Strip out --no-create and --norecursion so they don't pile up. Xconfigure_args= Xfor ac_arg in $ac_configure_temp; do X case "$ac_arg" in X -no-create | --no-create | --no-creat | --no-crea | --no-cre \ X | --no-cr | --no-c) ;; X -norecursion | --norecursion | --norecursio | --norecursi \ X | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;; X *) configure_args="$configure_args $ac_arg" ;; X esac Xdone X X# NLS nuisances. X# These must not be set unconditionally because not all systems understand X# e.g. LANG=C (notably SCO). Xif test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi Xif test "${LANG+set}" = 'set'; then LANG=C; export LANG; fi X X# confdefs.h avoids OS command line length limits that DEFS can exceed. Xrm -rf conftest* confdefs.h X# AIX cpp loses on an empty file, so make sure it contains at least a newline. Xecho > confdefs.h X X# A filename unique to this package, relative to the directory that X# configure is in, which we can look for to find out if srcdir is correct. Xac_unique_file=common_src/simple_menu.c X X# Find the source files, if location was not specified. Xif test -z "$srcdir"; then X ac_srcdir_defaulted=yes X # Try the directory containing this script, then `..'. X ac_prog=$0 X ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` X test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. X srcdir=$ac_confdir X if test ! -r $srcdir/$ac_unique_file; then X srcdir=.. X fi Xfi Xif test ! -r $srcdir/$ac_unique_file; then X if test x$ac_srcdir_defaulted = xyes; then X echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1 X else X echo "configure: can not find sources in ${srcdir}" >&2; exit 1 X fi Xfi Xac_ext=c X# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. Xac_cpp='${CPP}' Xac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1' X X X XPROGS="" Xfor ac_prog in 'bison -y' byacc Xdo Xif test -z "$YACC"; then X # Extract the first word of `$ac_prog', so it can be a program name with args. X set ac_dummy $ac_prog; ac_word=$2 X test -n "$silent" || echo "checking for $ac_word" X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X YACC="$ac_prog" X break X fi X done X IFS="$ac_save_ifs" Xfi X Xtest -n "$YACC" && test -n "$verbose" && echo " setting YACC to $YACC" X Xtest -n "$YACC" && break Xdone Xtest -n "$YACC" || YACC="yacc" X Xif test -z "$CC"; then X # Extract the first word of `gcc', so it can be a program name with args. X set ac_dummy gcc; ac_word=$2 X test -n "$silent" || echo "checking for $ac_word" X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X CC="gcc" X break X fi X done X IFS="$ac_save_ifs" Xfi Xtest -z "$CC" && CC="cc" Xtest -n "$CC" && test -n "$verbose" && echo " setting CC to $CC" X X# Find out if we are using GNU C, under whatever name. Xcat > conftest.c < conftest.out 2>&1 Xif egrep yes conftest.out >/dev/null 2>&1; then X GCC=1 # For later tests. Xfi Xrm -f conftest* X Xtest -n "$silent" || echo "checking how to run the C preprocessor" Xif test -z "$CPP"; then X # This must be in double quotes, not single quotes, because CPP may get X # substituted into the Makefile and ``${CC-cc}'' will simply confuse X # make. It must be expanded now. X CPP="${CC-cc} -E" X cat > conftest.${ac_ext} < XSyntax Error XEOF X# Some shells (Coherent) do redirections in the wrong order, so need X# the parens. Xac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` Xif test -z "$ac_err"; then X : Xelse X rm -rf conftest* X CPP="${CC-cc} -E -traditional-cpp" X cat > conftest.${ac_ext} < XSyntax Error XEOF X# Some shells (Coherent) do redirections in the wrong order, so need X# the parens. Xac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` Xif test -z "$ac_err"; then X : Xelse X rm -rf conftest* X CPP=/lib/cpp Xfi Xrm -f conftest* Xfi Xrm -f conftest* Xfi Xtest -n "$verbose" && echo " setting CPP to $CPP" X Xfor ac_prog in mawk gawk nawk awk Xdo Xif test -z "$AWK"; then X # Extract the first word of `$ac_prog', so it can be a program name with args. X set ac_dummy $ac_prog; ac_word=$2 X test -n "$silent" || echo "checking for $ac_word" X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X AWK="$ac_prog" X break X fi X done X IFS="$ac_save_ifs" Xfi X Xtest -n "$AWK" && test -n "$verbose" && echo " setting AWK to $AWK" X Xtest -n "$AWK" && break Xdone X X# Make sure to not get the incompatible SysV /etc/install and X# /usr/sbin/install, which might be in PATH before a BSD-like install, X# or the SunOS /usr/etc/install directory, or the AIX /bin/install, X# or the AFS install, which mishandles nonexistent args, or X# /usr/ucb/install on SVR4, which tries to use the nonexistent group X# `staff', or /sbin/install on IRIX which has incompatible command-line X# syntax. Sigh. X# X# On most BSDish systems install is in /usr/bin, not /usr/ucb X# anyway. X# This turns out not to be true, so the mere pathname isn't an indication X# of whether the program works. What we really need is a set of tests for X# the install program to see if it actually works in all the required ways. X# X# Avoid using ./install, which might have been erroneously created X# by make from ./install.sh. Xif test -z "${INSTALL}"; then X test -n "$silent" || echo "checking for a BSD compatible install" X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X case "$ac_dir" in X ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;; X *) X # OSF1 and SCO ODT 3.0 have their own names for install. X for ac_prog in installbsd scoinst install; do X if test -f $ac_dir/$ac_prog; then X if test $ac_prog = install && X grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then X # AIX install. It has an incompatible calling convention. X # OSF/1 installbsd also uses dspmsg, but is usable. X : X else X INSTALL="$ac_dir/$ac_prog -c" X break 2 X fi X fi X done X ;; X esac X done X IFS="$ac_save_ifs" Xfi X Xif test -z "$INSTALL"; then X # As a last resort, use the slow shell script. X for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do X if test -f $ac_dir/install.sh; then X INSTALL="$ac_dir/install.sh -c"; break X fi X done Xfi Xif test -z "$INSTALL"; then X echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1 Xfi Xtest -n "$verbose" && echo " setting INSTALL to $INSTALL" X X# Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}. X# It thinks the first close brace ends the variable substitution. Xtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' Xtest -n "$verbose" && echo " setting INSTALL_PROGRAM to $INSTALL_PROGRAM" X Xtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' Xtest -n "$verbose" && echo " setting INSTALL_DATA to $INSTALL_DATA" X Xfor ac_prog in etags ctags Xdo Xif test -z "$TAGS_PROG"; then X # Extract the first word of `$ac_prog', so it can be a program name with args. X set ac_dummy $ac_prog; ac_word=$2 X test -n "$silent" || echo "checking for $ac_word" X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X TAGS_PROG="$ac_prog" X break X fi X done X IFS="$ac_save_ifs" Xfi X Xtest -n "$TAGS_PROG" && test -n "$verbose" && echo " setting TAGS_PROG to $TAGS_PROG" X Xtest -n "$TAGS_PROG" && break Xdone X X Xtest -n "$silent" || echo "checking for ANSI C header files" Xcat > conftest.${ac_ext} < X#include X#include X#include XEOF X# Some shells (Coherent) do redirections in the wrong order, so need X# the parens. Xac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` Xif test -z "$ac_err"; then X rm -rf conftest* X # SunOS 4.x string.h does not declare mem*, contrary to ANSI. Xecho '#include "confdefs.h" X#include ' > conftest.${ac_ext} Xeval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" Xif egrep "memchr" conftest.out >/dev/null 2>&1; then X rm -rf conftest* X # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. Xcat > conftest.${ac_ext} < X#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') X#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) X#define XOR(e,f) (((e) && !(f)) || (!(e) && (f))) Xint main () { int i; for (i = 0; i < 256; i++) Xif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); Xexit (0); } X XEOF Xeval $ac_compile Xif test -s conftest && (./conftest; exit) 2>/dev/null; then X # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. Xecho '#include "confdefs.h" X#include ' > conftest.${ac_ext} Xeval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" Xif egrep "free" conftest.out >/dev/null 2>&1; then X rm -rf conftest* X X{ Xtest -n "$verbose" && \ Xecho " defining STDC_HEADERS" Xecho "#define" STDC_HEADERS "1" >> confdefs.h XDEFS="$DEFS -DSTDC_HEADERS=1" Xac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD} X\${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD} X\${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD} X" X} X X Xfi Xrm -f conftest* X X Xfi Xrm -fr conftest* X Xfi Xrm -f conftest* X X Xfi Xrm -f conftest* X Xfor ac_hdr in unistd.h termio.h sgtty.h memory.h string.h Xdo Xac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` Xtest -n "$silent" || echo "checking for ${ac_hdr}" Xcat > conftest.${ac_ext} < XEOF X# Some shells (Coherent) do redirections in the wrong order, so need X# the parens. Xac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` Xif test -z "$ac_err"; then X rm -rf conftest* X X{ Xtest -n "$verbose" && \ Xecho " defining ${ac_tr_hdr}" Xecho "#define" ${ac_tr_hdr} "1" >> confdefs.h XDEFS="$DEFS -D${ac_tr_hdr}=1" Xac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD} X\${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD} X\${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD} X" X} X X Xfi Xrm -f conftest* Xdone X Xtest -n "$silent" || echo "checking for pid_t in sys/types.h" Xecho '#include "confdefs.h" X#include ' > conftest.${ac_ext} Xeval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" Xif egrep "pid_t" conftest.out >/dev/null 2>&1; then X : Xelse X rm -rf conftest* X X{ Xtest -n "$verbose" && \ Xecho " defining" pid_t to be "int" Xecho "#define" pid_t "int" >> confdefs.h XDEFS="$DEFS -Dpid_t=int" Xac_sed_defs="${ac_sed_defs}\${ac_dA}pid_t\${ac_dB}pid_t\${ac_dC}int\${ac_dD} X\${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD} X\${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD} X" X} X Xfi Xrm -f conftest* X Xtest -n "$silent" || echo "checking for uid_t in sys/types.h" Xecho '#include "confdefs.h" X#include ' > conftest.${ac_ext} Xeval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" Xif egrep "uid_t" conftest.out >/dev/null 2>&1; then X : Xelse X rm -rf conftest* X X{ Xtest -n "$verbose" && \ Xecho " defining" uid_t to be "int" Xecho "#define" uid_t "int" >> confdefs.h XDEFS="$DEFS -Duid_t=int" Xac_sed_defs="${ac_sed_defs}\${ac_dA}uid_t\${ac_dB}uid_t\${ac_dC}int\${ac_dD} X\${ac_uA}uid_t\${ac_uB}uid_t\${ac_uC}int\${ac_uD} X\${ac_eA}uid_t\${ac_eB}uid_t\${ac_eC}int\${ac_eD} X" X} X X{ Xtest -n "$verbose" && \ Xecho " defining" gid_t to be "int" Xecho "#define" gid_t "int" >> confdefs.h XDEFS="$DEFS -Dgid_t=int" Xac_sed_defs="${ac_sed_defs}\${ac_dA}gid_t\${ac_dB}gid_t\${ac_dC}int\${ac_dD} X\${ac_uA}gid_t\${ac_uB}gid_t\${ac_uC}int\${ac_uD} X\${ac_eA}gid_t\${ac_eB}gid_t\${ac_eC}int\${ac_eD} X" X} X Xfi Xrm -f conftest* X Xtest -n "$silent" || echo "checking for return type of signal handlers" Xcat > conftest.${ac_ext} < X#include X#ifdef signal X#undef signal X#endif Xextern void (*signal ()) (); Xint main() { return 0; } Xint t() { int i;; return 0; } XEOF Xif eval $ac_compile; then X rm -rf conftest* X X{ Xtest -n "$verbose" && \ Xecho " defining" RETSIGTYPE to be "void" Xecho "#define" RETSIGTYPE "void" >> confdefs.h XDEFS="$DEFS -DRETSIGTYPE=void" Xac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD} X\${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD} X\${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD} X" X} X X Xelse X rm -rf conftest* X X{ Xtest -n "$verbose" && \ Xecho " defining" RETSIGTYPE to be "int" Xecho "#define" RETSIGTYPE "int" >> confdefs.h XDEFS="$DEFS -DRETSIGTYPE=int" Xac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD} X\${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD} X\${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD} X" X} X Xfi Xrm -f conftest* X X Xtest -n "$silent" || echo "checking for void datatypes" Xcat > conftest.${ac_ext} <> confdefs.h XDEFS="$DEFS -DVOID_TYPE=void" Xac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_TYPE\${ac_dB}VOID_TYPE\${ac_dC}void\${ac_dD} X\${ac_uA}VOID_TYPE\${ac_uB}VOID_TYPE\${ac_uC}void\${ac_uD} X\${ac_eA}VOID_TYPE\${ac_eB}VOID_TYPE\${ac_eC}void\${ac_eD} X" X} X X Xelse X rm -rf conftest* X X{ Xtest -n "$verbose" && \ Xecho " defining" VOID_TYPE to be "int" Xecho "#define" VOID_TYPE "int" >> confdefs.h XDEFS="$DEFS -DVOID_TYPE=int" Xac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_TYPE\${ac_dB}VOID_TYPE\${ac_dC}int\${ac_dD} X\${ac_uA}VOID_TYPE\${ac_uB}VOID_TYPE\${ac_uC}int\${ac_uD} X\${ac_eA}VOID_TYPE\${ac_eB}VOID_TYPE\${ac_eC}int\${ac_eD} X" X} X Xfi Xrm -f conftest* X Xfor ac_func in tempnam Xdo Xac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` Xtest -n "$silent" || echo "checking for ${ac_func}" Xcat > conftest.${ac_ext} < Xint main() { return 0; } Xint t() { X/* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ X#if defined (__stub_${ac_func}) || defined (__stub___${ac_func}) Xchoke me X#else X/* Override any gcc2 internal prototype to avoid an error. */ Xextern char ${ac_func}(); ${ac_func}(); X#endif X; return 0; } XEOF Xif eval $ac_compile; then X rm -rf conftest* X { Xtest -n "$verbose" && \ Xecho " defining ${ac_tr_func}" Xecho "#define" ${ac_tr_func} "1" >> confdefs.h XDEFS="$DEFS -D${ac_tr_func}=1" Xac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD} X\${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD} X\${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD} X" X} X X Xfi Xrm -f conftest* Xdone X Xtest -n "$silent" || echo "checking for restartable system calls" Xcat > conftest.${ac_ext} < X#include Xucatch (isig) { } Xmain () { X int i = fork (), status; X if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); } X signal (SIGINT, ucatch); X status = wait(&i); X if (status == -1) wait(&i); X exit (status == -1); X} X XEOF Xeval $ac_compile Xif test -s conftest && (./conftest; exit) 2>/dev/null; then X X{ Xtest -n "$verbose" && \ Xecho " defining HAVE_RESTARTABLE_SYSCALLS" Xecho "#define" HAVE_RESTARTABLE_SYSCALLS "1" >> confdefs.h XDEFS="$DEFS -DHAVE_RESTARTABLE_SYSCALLS=1" Xac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_RESTARTABLE_SYSCALLS\${ac_dB}HAVE_RESTARTABLE_SYSCALLS\${ac_dC}1\${ac_dD} X\${ac_uA}HAVE_RESTARTABLE_SYSCALLS\${ac_uB}HAVE_RESTARTABLE_SYSCALLS\${ac_uC}1\${ac_uD} X\${ac_eA}HAVE_RESTARTABLE_SYSCALLS\${ac_eB}HAVE_RESTARTABLE_SYSCALLS\${ac_eC}1\${ac_eD} X" X} X X Xfi Xrm -fr conftest* X XLIBS_SAVE=$LIBS XTERMLIBS= XLIBS=-lcurses Xtest -n "$silent" || echo "checking for terminfo" Xcat > conftest.${ac_ext} < Xint main() { return 0; } Xint t() { X { initscr(); } ; return 0; } XEOF Xif eval $ac_compile; then X rm -rf conftest* X TERMLIBS=TERMINFO X Xfi Xrm -f conftest* X Xif test -z "$TERMLIBS" ; then XLIBS='-ltermcap' Xtest -n "$silent" || echo "checking for termcap" Xcat > conftest.${ac_ext} < Xint main() { return 0; } Xint t() { X { char *bp, *tm; tgetent(bp, tm); } X ; return 0; } XEOF Xif eval $ac_compile; then X rm -rf conftest* X TERMLIBS=TERMCAP X Xfi Xrm -f conftest* X Xfi Xcase $TERMLIBS in X TERMCAP) X X{ Xtest -n "$verbose" && \ Xecho " defining" CURSESLIBS to be "-lcurses -ltermcap" Xecho "#define" CURSESLIBS "-lcurses -ltermcap" >> confdefs.h XDEFS="$DEFS -DCURSESLIBS=-lcurses -ltermcap" Xac_sed_defs="${ac_sed_defs}\${ac_dA}CURSESLIBS\${ac_dB}CURSESLIBS\${ac_dC}-lcurses -ltermcap\${ac_dD} X\${ac_uA}CURSESLIBS\${ac_uB}CURSESLIBS\${ac_uC}-lcurses -ltermcap\${ac_uD} X\${ac_eA}CURSESLIBS\${ac_eB}CURSESLIBS\${ac_eC}-lcurses -ltermcap\${ac_eD} X" X} X X CURSESLIBS='-lcurses -ltermcap' X X{ Xtest -n "$verbose" && \ Xecho " defining" TERMLIB to be "-ltermcap" Xecho "#define" TERMLIB "-ltermcap" >> confdefs.h XDEFS="$DEFS -DTERMLIB=-ltermcap" Xac_sed_defs="${ac_sed_defs}\${ac_dA}TERMLIB\${ac_dB}TERMLIB\${ac_dC}-ltermcap\${ac_dD} X\${ac_uA}TERMLIB\${ac_uB}TERMLIB\${ac_uC}-ltermcap\${ac_uD} X\${ac_eA}TERMLIB\${ac_eB}TERMLIB\${ac_eC}-ltermcap\${ac_eD} X" X} X X TERMLIB='-ltermcap' X X{ Xtest -n "$verbose" && \ Xecho " defining HAVE_TERMCAP" Xecho "#define" HAVE_TERMCAP "1" >> confdefs.h XDEFS="$DEFS -DHAVE_TERMCAP=1" Xac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMCAP\${ac_dB}HAVE_TERMCAP\${ac_dC}1\${ac_dD} X\${ac_uA}HAVE_TERMCAP\${ac_uB}HAVE_TERMCAP\${ac_uC}1\${ac_uD} X\${ac_eA}HAVE_TERMCAP\${ac_eB}HAVE_TERMCAP\${ac_eC}1\${ac_eD} X" X} X X ;; X TERMINFO) X for ac_hdr in term.h Xdo Xac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` Xtest -n "$silent" || echo "checking for ${ac_hdr}" Xcat > conftest.${ac_ext} < XEOF X# Some shells (Coherent) do redirections in the wrong order, so need X# the parens. Xac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` Xif test -z "$ac_err"; then X rm -rf conftest* X X{ Xtest -n "$verbose" && \ Xecho " defining ${ac_tr_hdr}" Xecho "#define" ${ac_tr_hdr} "1" >> confdefs.h XDEFS="$DEFS -D${ac_tr_hdr}=1" Xac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD} X\${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD} X\${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD} X" X} X X Xfi Xrm -f conftest* Xdone X X X{ Xtest -n "$verbose" && \ Xecho " defining" CURSESLIBS to be "-lcurses" Xecho "#define" CURSESLIBS "-lcurses" >> confdefs.h XDEFS="$DEFS -DCURSESLIBS=-lcurses" Xac_sed_defs="${ac_sed_defs}\${ac_dA}CURSESLIBS\${ac_dB}CURSESLIBS\${ac_dC}-lcurses\${ac_dD} X\${ac_uA}CURSESLIBS\${ac_uB}CURSESLIBS\${ac_uC}-lcurses\${ac_uD} X\${ac_eA}CURSESLIBS\${ac_eB}CURSESLIBS\${ac_eC}-lcurses\${ac_eD} X" X} X X CURSESLIBS='-lcurses' X X{ Xtest -n "$verbose" && \ Xecho " defining" TERMLIB to be "-lcurses" Xecho "#define" TERMLIB "-lcurses" >> confdefs.h XDEFS="$DEFS -DTERMLIB=-lcurses" Xac_sed_defs="${ac_sed_defs}\${ac_dA}TERMLIB\${ac_dB}TERMLIB\${ac_dC}-lcurses\${ac_dD} X\${ac_uA}TERMLIB\${ac_uB}TERMLIB\${ac_uC}-lcurses\${ac_uD} X\${ac_eA}TERMLIB\${ac_eB}TERMLIB\${ac_eC}-lcurses\${ac_eD} X" X} X X TERMLIB='-lcurses' X X{ Xtest -n "$verbose" && \ Xecho " defining HAVE_TERMINFO" Xecho "#define" HAVE_TERMINFO "1" >> confdefs.h XDEFS="$DEFS -DHAVE_TERMINFO=1" Xac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMINFO\${ac_dB}HAVE_TERMINFO\${ac_dC}1\${ac_dD} X\${ac_uA}HAVE_TERMINFO\${ac_uB}HAVE_TERMINFO\${ac_uC}1\${ac_uD} X\${ac_eA}HAVE_TERMINFO\${ac_eB}HAVE_TERMINFO\${ac_eC}1\${ac_eD} X" X} X X ;; X *) X echo "Must have either TERMCAP or TERMINFO" X exit 1 X ;; Xesac XLIBS="$LIBS_SAVE" X X X X# The preferred way to propogate these variables is regular @ substitutions. Xif test -n "$prefix"; then X ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%" Xelse X prefix=/usr/local Xfi Xif test -n "$exec_prefix"; then X ac_prsub="$ac_prsub Xs%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%" Xelse X exec_prefix='${prefix}' # Let make expand it. Xfi X X# Any assignment to VPATH causes Sun make to only execute X# the first set of double-colon rules, so remove it if not needed. X# If there is a colon in the path, we need to keep it. Xif test "x$srcdir" = x.; then X ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' Xfi X X# Quote sed substitution magic chars in DEFS. Xcat >conftest.def < config.status </dev/null | sed 1q`: X# X# $0 $configure_args X Xac_cs_usage="Usage: config.status [--recheck] [--version] [--help]" Xfor ac_option Xdo X case "\$ac_option" in X -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) X echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create X exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;; X -version | --version | --versio | --versi | --vers | --ver | --ve | --v) X echo "config.status generated by autoconf version 1.11" X exit 0 ;; X -help | --help | --hel | --he | --h) X echo "\$ac_cs_usage"; exit 0 ;; X *) echo "\$ac_cs_usage"; exit 1 ;; X esac Xdone X Xtrap 'rm -fr Makefile \ X common_src/Makefile \ X tty_src/Makefile \ X curses_src/Makefile \ X Xaw_src/Makefile \ X doc/Makefile \ X incl/Makefile incl/config.h conftest*; exit 1' 1 2 15 XPROGS='$PROGS' XYACC='$YACC' XCC='$CC' XCPP='$CPP' XAWK='$AWK' XINSTALL='$INSTALL' XINSTALL_PROGRAM='$INSTALL_PROGRAM' XINSTALL_DATA='$INSTALL_DATA' XTAGS_PROG='$TAGS_PROG' XCURSESLIBS='$CURSESLIBS' XTERMLIB='$TERMLIB' XLIBS='$LIBS' Xsrcdir='$srcdir' Xtop_srcdir='$top_srcdir' Xprefix='$prefix' Xexec_prefix='$exec_prefix' Xac_prsub='$ac_prsub' Xac_vpsub='$ac_vpsub' Xextrasub='$extrasub' XEOF Xcat >> config.status <<\EOF X Xac_given_srcdir=$srcdir X XCONFIG_FILES=${CONFIG_FILES-"Makefile \ X common_src/Makefile \ X tty_src/Makefile \ X curses_src/Makefile \ X Xaw_src/Makefile \ X doc/Makefile \ X incl/Makefile"} Xfor ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then X # Remove last slash and all that follows it. Not all systems have dirname. X ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` X if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then X # The file is in a subdirectory. X test ! -d "$ac_dir" && mkdir "$ac_dir" X ac_dir_suffix="/$ac_dir" X else X ac_dir_suffix= X fi X X # A "../" for each directory in $ac_dir_suffix. X ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` X case "$ac_given_srcdir" in X .) srcdir=. X if test -z "$ac_dir_suffix"; then top_srcdir=. X else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; X /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; X *) # Relative path. X srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" X top_srcdir="$ac_dots$ac_given_srcdir" ;; X esac X X echo creating "$ac_file" X rm -f "$ac_file" X comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure." X case "$ac_file" in X *.c | *.h | *.C | *.cc | *.m ) echo "/* $comment_str */" > "$ac_file" ;; X * ) echo "# $comment_str" > "$ac_file" ;; X esac X sed -e " X$ac_prsub X$ac_vpsub X$extrasub Xs%@PROGS@%$PROGS%g Xs%@YACC@%$YACC%g Xs%@CC@%$CC%g Xs%@CPP@%$CPP%g Xs%@AWK@%$AWK%g Xs%@INSTALL@%$INSTALL%g Xs%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g Xs%@INSTALL_DATA@%$INSTALL_DATA%g Xs%@TAGS_PROG@%$TAGS_PROG%g Xs%@CURSESLIBS@%$CURSESLIBS%g Xs%@TERMLIB@%$TERMLIB%g Xs%@LIBS@%$LIBS%g Xs%@srcdir@%$srcdir%g Xs%@top_srcdir@%$top_srcdir%g Xs%@prefix@%$prefix%g Xs%@exec_prefix@%$exec_prefix%g Xs%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file Xfi; done X X# These sed commands are put into ac_sed_defs when defining a macro. X# They are broken into pieces to make the sed script easier to manage. X# They are passed to sed as "A NAME B NAME C VALUE D", where NAME X# is the cpp macro being defined and VALUE is the value it is being given. X# Each defining turns into a single global substitution command. X# Hopefully no one uses "!" as a variable value. X# Other candidates for the sed separators, like , and @, do get used. X# X# ac_d sets the value in "#define NAME VALUE" lines. Xac_dA='s!^\([ ]*\)#\([ ]*define[ ][ ]*\)' Xac_dB='\([ ][ ]*\)[^ ]*!\1#\2' Xac_dC='\3' Xac_dD='!g' X# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". Xac_uA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' Xac_uB='\([ ]\)!\1#\2define\3' Xac_uC=' ' Xac_uD='\4!g' X# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". Xac_eA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' Xac_eB='$!\1#\2define\3' Xac_eC=' ' Xac_eD='!g' Xrm -f conftest.sed XEOF X# Turn off quoting long enough to insert the sed commands. Xrm -f conftest.sh Xcat > conftest.sh < conftest.s1 # Like head -9. X sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10. X # Write a limited-size here document to append to conftest.sed. X echo 'cat >> conftest.sed <> config.status X cat conftest.s1 >> config.status X echo 'CONFEOF' >> config.status X rm -f conftest.s1 conftest.sh X mv conftest.s2 conftest.sh Xdone Xrm -f conftest.sh X X# Now back to your regularly scheduled config.status. Xcat >> config.status <<\EOF X# This sed command replaces #undef's with comments. This is necessary, for X# example, in the case of _POSIX_SOURCE, which is predefined and required X# on some systems where configure will not decide to define it in X# incl/config.h. Xcat >> conftest.sed <<\CONFEOF Xs,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, XCONFEOF Xrm -f conftest.h X# Break up the sed commands because old seds have small limits. Xac_max_sed_lines=20 X XCONFIG_HEADERS=${CONFIG_HEADERS-"incl/config.h"} Xfor ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then X echo creating $ac_file X X cp $ac_given_srcdir/$ac_file.in conftest.h1 X cp conftest.sed conftest.stm X while : X do X ac_lines=`grep -c . conftest.stm` X if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi X rm -f conftest.s1 conftest.s2 conftest.h2 X sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20. X sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21. X sed -f conftest.s1 < conftest.h1 > conftest.h2 X rm -f conftest.s1 conftest.h1 conftest.stm X mv conftest.h2 conftest.h1 X mv conftest.s2 conftest.stm X done X rm -f conftest.stm conftest.h X echo "/* $ac_file. Generated automatically by configure. */" > conftest.h X cat conftest.h1 >> conftest.h X rm -f conftest.h1 X if cmp -s $ac_file conftest.h 2>/dev/null; then X # The file exists and we would not be changing it. X echo "$ac_file is unchanged" X rm -f conftest.h X else X rm -f $ac_file X mv conftest.h $ac_file X fi Xfi; done Xrm -f conftest.sed X X X Xexit 0 XEOF Xchmod +x config.status X# Some shells look in PATH for config.status without the "./". Xtest -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status X END_OF_FILE if test 37694 -ne `wc -c <'./configure'`; then echo shar: \"'./configure'\" unpacked with wrong size! fi chmod +x './configure' # end of './configure' fi echo shar: End of archive 8 \(of 9\). cp /dev/null ark8isdone MISSING="" for I in 1 2 3 4 5 6 7 8 9 ; do if test ! -f ark${I}isdone ; then MISSING="${MISSING} ${I}" fi done if test "${MISSING}" = "" ; then echo You have unpacked all 9 archives. rm -f ark[1-9]isdone ark[1-9][0-9]isdone else echo You still need to unpack the following archives: echo " " ${MISSING} fi ## End of shell archive. exit 0