home *** CD-ROM | disk | FTP | other *** search
- case $CONFIG in
- '')
- if test ! -f config.sh; then
- ln ../config.sh . || \
- ln ../../config.sh . || \
- ln ../../../config.sh . || \
- (echo "Can't find config.sh."; exit 1)
- fi 2>/dev/null
- . ./config.sh
- ;;
- esac
- echo "Extracting config.h (with variable substitutions)"
- sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!'
- /*
- * 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 2.9 92/07/14 16:53:43 ram Exp $
- */
-
- #ifndef _config_h_
- #define _config_h_
-
- /* bcopy:
- * This symbol is maped to memcpy if the bcopy() routine is not
- * available to copy strings.
- */
- #$d_bcopy bcopy(s,d,l) memcpy((d),(s),(l)) /* mapped to memcpy */
-
- /* GETHOSTNAME:
- * This symbol, if defined, indicates that the C program may use the
- * gethostname() routine to derive the host name. See also UNAME
- * and PHOSTNAME.
- */
- /* UNAME:
- * This symbol, if defined, indicates that the C program may use the
- * uname() routine to derive the host name. See also GETHOSTNAME and
- * PHOSTNAME.
- */
- /* PHOSTNAME:
- * This symbol, if defined, indicates that the C program may use the
- * contents of PHOSTNAME as a command to feed to the popen() routine
- * to derive the host name. See also GETHOSTNAME and UNAME. Note that the
- * command uses a fully qualified path, so that it is safe even if used by
- * a process with super-user privileges.
- */
- #$d_gethname GETHOSTNAME /**/
- #$d_uname UNAME /**/
- #$d_phostname PHOSTNAME "$aphostname" /* How to get the host name */
-
- /* index:
- * This preprocessor symbol is defined, along with rindex, if the system
- * uses the strchr and strrchr routines instead.
- */
- /* rindex:
- * This preprocessor symbol is defined, along with index, if the system
- * uses the strchr and strrchr routines instead.
- */
- #$d_index index strchr /**/
- #$d_index rindex strrchr /**/
-
- /* 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 RENAME /**/
-
- /* STRERROR:
- * This symbol, if defined, indicates that the strerror routine is
- * available to translate error numbers to strings.
- */
- /* SYSERRLIST:
- * 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.
- */
- /* SYSERRNOLIST:
- * This symbol, if defined, indicates that the sys_errnolist array is
- * available to translate an errno code into its symbolic name (e.g.
- * ENOENT). The extern int sys_nerrno 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_strerror STRERROR /**/
- #$d_syserrlst SYSERRLIST /**/
- #$d_sysernlst SYSERRNOLIST /**/
- #$d_strerrm strerror(e) ((e)<0||(e)>=sys_nerr?"(unknown)":sys_errlist[e]) /**/
-
- /* Time_t:
- * This symbol holds the time type, which 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 /**/
-
- /* vfork:
- * This symbol, if defined, remaps the vfork routine to fork if the
- * vfork() routine isn't supported here.
- */
- #$d_vfork vfork fork /**/
-
- /* Signal_t:
- * This symbol's value is either "void" or "int", corresponding to the
- * appropriate return type of a signal handler. Thus, you can declare
- * a signal handler using "Signal_t (*handler())()", and define the
- * handler using "Signal_t handler(sig)".
- */
- #define Signal_t $signal_t /* Signal handler's return type */
-
- /* HOSTNAME:
- * 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, HOSTNAME may be ignored. If MYDOMAIN
- * is not used, HOSTNAME will hold the name derived from PHOSTNAME.
- */
- #define HOSTNAME "$hostname" /**/
-
- /* I_FCNTL:
- * This symbol, if defined, indicates to the C program that it should
- * include <fcntl.h>.
- */
- #$i_fcntl I_FCNTL /**/
-
- /* I_STRING:
- * This symbol, if defined, indicates to the C program that it should
- * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
- */
- #$i_string I_STRING /**/
-
- /* I_SYSFILE:
- * This symbol, if defined, indicates to the C program that it should
- * include <sys/file.h> to get definition of R_OK and friends.
- */
- #$i_sysfile I_SYSFILE /**/
-
- /* I_SYSWAIT:
- * This symbol, if defined, indicates to the C program that it should
- * include <sys/wait.h>.
- */
- #$i_syswait I_SYSWAIT /**/
-
- /* I_TIME:
- * This symbol, if defined, indicates to the C program that it should
- * include <time.h>.
- */
- /* I_SYSTIME:
- * This symbol, if defined, indicates to the C program that it should
- * include <sys/time.h>.
- */
- /* I_SYSTIMEKERNEL:
- * This symbol, if defined, indicates to the C program that it should
- * include <sys/time.h> with KERNEL defined.
- */
- #$i_time I_TIME /**/
- #$i_systime I_SYSTIME /**/
- #$i_systimek I_SYSTIMEKERNEL /**/
-
- /* INTSIZE:
- * This symbol contains the size of an int, so that the C preprocessor
- * can make decisions based on it.
- */
- #define INTSIZE $intsize /**/
-
- /* PERLPATH:
- * This symbol contains the absolute location of the perl interpeter.
- */
- #define PERLPATH "$perlpath" /**/
-
- /* Pid_t:
- * This symbol holds the type used to declare process ids in the kernel.
- * It can be int, uint, pid_t, etc... It may be necessary to include
- * <sys/types.h> to get any typedef'ed information.
- */
- #define Pid_t $pidtype /* PID type */
-
- /* register1:
- * This symbol, along with register2, register3, etc. is either the word
- * "register" or null, depending on whether the C compiler pays attention
- * to this many register declarations. The intent is that you don't have
- * to order your register declarations in the order of importance, so you
- * can freely declare register variables in sub-blocks of code and as
- * function parameters. Do not use register<n> more than once per routine.
- */
- #define register1 $reg1 /**/
- #define register2 $reg2 /**/
- #define register3 $reg3 /**/
- #define register4 $reg4 /**/
- #define register5 $reg5 /**/
- #define register6 $reg6 /**/
-
- /* Uid_t:
- * This symbol holds the type used to declare user ids in the kernel.
- * It can be int, ushort, uid_t, etc... It may be necessary to include
- * <sys/types.h> to get any typedef'ed information.
- */
- #define Uid_t $uidtype /* UID type */
-
- #endif
- !GROK!THIS!
-