case $CONFIG in
'')
if test -f config.sh; then TOP=.;
elif test -f ../config.sh; then TOP=..;
elif test -f ../../config.sh; then TOP=../..;
elif test -f ../../../config.sh; then TOP=../../..;
elif test -f ../../../../config.sh; then TOP=../../../..;
else
echo "Can't find config.sh."; exit 1
fi
. $TOP/config.sh
;;
esac
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
echo "Extracting config.h (with variable substitutions)"
sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!' -e 's!^#un-def!#undef!'
/*
* This file was produced by running the config_h.SH script, which
* gets its values from config.sh, which is generally produced by
* running Configure.
*
* Feel free to modify any of this as the need arises. Note, however,
* that running config.h.SH again will wipe out any changes you've made.
* For a more permanent change edit config.sh and rerun config.h.SH.
*
* \$Id: config_h.SH,v 3.0.3.4 1993/12/21 08:48:38 ram Exp $
*/
/* Configuration time: $cf_time
* Configured by: $cf_by
* Target system: $myuname
*/
#ifndef _config_h_
#define _config_h_
/* VMS:
* This symbol, if defined, indicates that the program is running under
* VMS. It is currently only set in conjunction with the EUNICE symbol.
*/
#$d_eunice VMS /**/
/* CHARSPRINTF:
* This symbol is defined if this system declares "char *sprintf()" in
* stdio.h. The trend seems to be to declare it as "int sprintf()". It
* is up to the package author to declare sprintf correctly based on the
* symbol.
*/
#$d_charsprf CHARSPRINTF /**/
/* HAS_CTERMID:
* This symbol, if defined, indicates that the ctermid routine is
* available to generate filename for terminal.
*/
#$d_ctermid HAS_CTERMID /**/
/* FLEXFILENAMES:
* This symbol, if defined, indicates that the system supports filenames
* longer than 14 characters.
*/
#$d_flexfnam FLEXFILENAMES /**/
/* HAS_GETHOSTNAME:
* This symbol, if defined, indicates that the C program may use the
* gethostname() routine to derive the host name. See also HAS_UNAME
* and PHOSTNAME.
*/
/* HAS_UNAME:
* This symbol, if defined, indicates that the C program may use the
* uname() routine to derive the host name. See also HAS_GETHOSTNAME
* and PHOSTNAME.
*/
#$d_gethname HAS_GETHOSTNAME /**/
#$d_uname HAS_UNAME /**/
/* HAS_GETOPT:
* This symbol, if defined, indicates that the getopt() routine exists.
*/
#$d_getopt HAS_GETOPT /**/
/* HAS_GETPWENT:
* This symbol, if defined, indicates that the getpwent() routine
* should be used instead of the getpw() routine.
*/
#$d_getpwent HAS_GETPWENT /**/
/* HAS_GETWD:
* This symbol, if defined, indicates that the getwd routine is
* available to get working directory. If not, you should
* probably use getcwd().
*/
#$d_getwd HAS_GETWD /**/
/* HAS_MKDIR:
* This symbol, if defined, indicates that the mkdir routine is available
* to create directories. Otherwise you should fork off a new process to
* exec /bin/mkdir.
*/
#$d_mkdir HAS_MKDIR /**/
/* HAS_POPEN:
* This symbol, if defined, indicates that the popen routine is
* available to open a pipe from a process.
*/
#$d_popen HAS_POPEN /**/
/* HAS_RENAME:
* This symbol, if defined, indicates that the rename routine is available
* to rename files. Otherwise you should do the unlink(), link(), unlink()
* trick.
*/
#$d_rename HAS_RENAME /**/
/* HAS_INDEX:
* This symbol is defined to indicate that the index()/rindex()
* functions are available for string searching.
*/
#$d_index HAS_INDEX /**/
/* HAS_SYS_ERRLIST:
* This symbol, if defined, indicates that the sys_errlist array is
* available to translate error numbers to strings. The extern int
* sys_nerr gives the size of that table.
*/
/* strerror:
* This preprocessor symbol is defined as a macro if strerror() is
* not available to translate error numbers to strings but sys_errlist[]
* array is there.
*/
#$d_syserrlst HAS_SYS_ERRLIST /**/
#$d_strerrm strerror(e) ((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e]) /**/
/* HAS_SYSTEM:
* This symbol, if defined, indicates that the system routine is
* available to issue a shell command.
*/
#$d_system HAS_SYSTEM /**/
/* Time_t:
* This symbol holds the type returned by time(). It can be long,
* or time_t on BSD sites (in which case <sys/types.h> should be
* included).
*/
#define Time_t $timetype /* Time type */
/* UNION_WAIT:
* This symbol if defined indicates to the C program that the argument
* for the wait() system call should be declared as 'union wait status'
* instead of 'int status'. You probably need to include <sys/wait.h>
* in the former case (see I_SYSWAIT).
*/
#$d_uwait UNION_WAIT /**/
/* HAS_VFORK:
* This symbol, if defined, indicates that vfork() exists.
*/
#$d_vfork HAS_VFORK /**/
/* VOIDSIG:
* This symbol is defined if this system declares "void (*signal(...))()" in
* signal.h. The old way was to declare it as "int (*signal(...))()". It
* is up to the package author to declare things correctly based on the
* symbol.
*/
#$d_voidsig VOIDSIG /**/
/* I_DIRENT:
* This symbol, if defined, indicates to the C program that it should
* include <dirent.h>.
*/
#$i_dirent I_DIRENT /**/
/* I_SYS_DIR:
* This symbol, if defined, indicates to the C program that it should
* include <sys/dir.h>.
*/
#$i_sysdir I_SYS_DIR /**/
/* I_SYS_NDIR:
* This symbol, if defined, indicates to the C program that it should
* include <sys/ndir.h>.
*/
#$i_sysndir I_SYS_NDIR /**/
/* I_SYS_WAIT:
* This symbol, if defined, indicates to the C program that it should
* include <sys/wait.h>.
*/
#$i_syswait I_SYS_WAIT /**/
/* I_WHOAMI:
* This symbol, if defined, indicates that the program may include
* <whoami.h>.
*/
#$i_whoami I_WHOAMI /**/
/* Off_t:
* This symbol holds the type used to declare offsets in the kernel.
* It can be int, long, off_t, etc... It may be necessary to include
* <sys/types.h> to get any typedef'ed information.
*/
#define Off_t $lseektype /* <offset> type */
/* MYHOSTNAME:
* This symbol contains name of the host the program is going to run on.
* The domain is not kept with hostname, but must be gotten from MYDOMAIN.
* The dot comes with MYDOMAIN, and need not be supplied by the program.
* If gethostname() or uname() exist, MYHOSTNAME may be ignored. If MYDOMAIN
* is not used, MYHOSTNAME will hold the name derived from PHOSTNAME.
*/
#define MYHOSTNAME "$myhostname" /**/
/* CAN_PROTOTYPE:
* If defined, this macro indicates that the C compiler can handle
* function prototypes.
*/
/* _:
* This macro is used to declare function parameters for folks who want
* to make declarations with prototypes using a different style than
* the above macros. Use double parentheses. For example:
*
* int main _((int argc, char *argv[]));
*/
#$prototype CAN_PROTOTYPE /**/
#ifdef CAN_PROTOTYPE
#define _(args) args
#else
#define _(args) ()
#endif
/* VOIDFLAGS:
* This symbol indicates how much support of the void type is given by this
* compiler. What various bits mean:
*
* 1 = supports declaration of void
* 2 = supports arrays of pointers to functions returning void
* 4 = supports comparisons between pointers to void functions and
* addresses of void functions
* 8 = suports declaration of generic void pointers
*
* The package designer should define VOIDUSED to indicate the requirements
* of the package. This can be done either by #defining VOIDUSED before
* including config.h, or by defining defvoidused in Myinit.U. If the
* latter approach is taken, only those flags will be tested. If the
* level of void support necessary is not present, defines void to int.
*/
#ifndef VOIDUSED
#define VOIDUSED $defvoidused
#endif
#define VOIDFLAGS $voidflags
#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
#define void int /* is void to be avoided? */
#define M_VOID /* Xenix strikes again */
#endif
/* CONFIGURE:
* This symbol is defined if Configure is used.
*/
#$d_configure CONFIGURE /* should be defined */
/* MAX_LEVELS:
* Levels for findsrc to walk.
*/
/* DEF_SAVEIT:
* is 1 if headers should be saved by default.
*/
/* BU_PREFIX:
* Holds the prefix you want when renaming files. If this is defined,
* symbol BU_SUFFIX must not be defined.
*/
/* BU_SUFFIX:
* Holds the suffix you want when renaming files. If this is defined,
* symbol BU_PREFIX must not be defined.
*/
#define MAX_LEVELS $max_levels
#define DEF_SAVEIT $def_saveit
#$d_bu_prefix BU_PREFIX "$bu_prefix" /**/
#$d_bu_suffix BU_SUFFIX "$bu_suffix" /**/
#endif
!GROK!THIS!