]> granicus.if.org Git - postgresql/commitdiff
Add config.h to configure
authorMarc G. Fournier <scrappy@hub.org>
Thu, 23 Jan 1997 23:31:39 +0000 (23:31 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Thu, 23 Jan 1997 23:31:39 +0000 (23:31 +0000)
src/configure
src/configure.in
src/include/config.h.in [new file with mode: 0644]

index dac9cf5be1b31627473752996d2baa1637909878..74b99a904189744e43fb993f2dc1fd3a3d22cb40 100755 (executable)
@@ -2349,7 +2349,7 @@ done
 
 ac_given_srcdir=$srcdir
 
-trap 'rm -fr `echo "GNUmakefile Makefile.global" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "GNUmakefile Makefile.global include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 EOF
 cat >> $CONFIG_STATUS <<EOF
 
@@ -2445,7 +2445,7 @@ EOF
 
 cat >> $CONFIG_STATUS <<EOF
 
-CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile Makefile.global"}
+CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile Makefile.global include/config.h"}
 EOF
 cat >> $CONFIG_STATUS <<\EOF
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
index a3fb79383f1018b492a8bf7b399890437c3822ae..3e86ec49f6e0fd937b5815d97b7255b740c6ead0 100644 (file)
@@ -95,4 +95,4 @@ AC_CHECK_FUNCS(ftime getcwd gethostname gettimeofday putenv regcomp select socke
 
 #AC_OUTPUT(backend/optimizer/path/Makefile libpq++/man/Makefile backend/port/sparc_solaris/Makefile backend/utils/misc/Makefile backend/port/ultrix4/Makefile bin/psql/Makefile backend/utils/init/Makefile tutorial/C-code/Makefile test/examples/Makefile backend/utils/adt/Makefile bin/destroyuser/Makefile Makefile tutorial/Makefile bin/pg_dump/Makefile bin/cleardbdir/Makefile backend/optimizer/plan/Makefile backend/access/heap/Makefile backend/storage/page/Makefile backend/port/svr4/Makefile backend/optimizer/Makefile backend/utils/hash/Makefile backend/storage/large_object/Makefile backend/access/hash/Makefile test/Makefile backend/optimizer/prep/Makefile bin/initdb/Makefile bin/pg_version/Makefile bin/ipcclean/Makefile bin/pg4_dump/Makefile backend/postmaster/Makefile backend/access/Makefile test/regress/Makefile backend/storage/Makefile backend/port/bsdi/Makefile libpq++/Makefile backend/lib/Makefile backend/libpq/Makefile backend/access/gist/Makefile backend/nodes/Makefile libpgtcl/Makefile libpq/Makefile bin/destroydb/Makefile backend/access/nbtree/Makefile bin/Makefile bin/createuser/Makefile backend/port/Makefile backend/port/irix5/Makefile backend/utils/sort/Makefile backend/utils/error/Makefile backend/utils/time/Makefile backend/Makefile backend/utils/Makefile backend/commands/Makefile bin/pg_id/Makefile backend/tioga/Makefile backend/utils/cache/Makefile backend/port/aix/Makefile backend/storage/lmgr/Makefile test/bench/Makefile bin/monitor/Makefile backend/access/index/Makefile backend/port/hpux/Makefile utils/Makefile backend/port/i386_solaris/Makefile backend/catalog/Makefile backend/storage/smgr/Makefile backend/bootstrap/Makefile backend/storage/buffer/Makefile backend/storage/ipc/Makefile backend/rewrite/Makefile backend/access/rtree/Makefile backend/port/linux/Makefile backend/storage/file/Makefile man/Makefile libpq++/examples/Makefile backend/main/Makefile bin/pgtclsh/Makefile backend/access/common/Makefile bin/createdb/Makefile backend/port/dgux/Makefile backend/utils/fmgr/Makefile backend/parser/Makefile backend/port/sparc/Makefile backend/executor/Makefile backend/optimizer/util/Makefile tools/mkldexport/Makefile backend/utils/mmgr/Makefile backend/tcop/Makefile backend/port/BSD44_derived/Makefile backend/access/transam/Makefile backend/port/alpha/Makefile backend/regex/Makefile)
 
-AC_OUTPUT(GNUmakefile Makefile.global)
+AC_OUTPUT(GNUmakefile Makefile.global include/config.h)
diff --git a/src/include/config.h.in b/src/include/config.h.in
new file mode 100644 (file)
index 0000000..b705335
--- /dev/null
@@ -0,0 +1,391 @@
+/* the purpose of this file is to reduce the use of #ifdef's through
+ * the code base by those porting the software, and to facilitate the
+ * eventual use of autoconf to build the server 
+ */
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#define BLCKSZ 8192
+
+#if defined(aix)
+#define TERMIOS_H_LOCATION <termios.h>
+#else
+#define TERMIOS_H_LOCATION <sys/termios.h>
+#endif
+
+#if !defined(nextstep)
+#define USE_VALUES_H
+#endif
+
+#define HAVE_MEMMOVE
+
+#if defined(aix)
+#  define CLASS_CONFLICT 
+#  define DISABLE_XOPEN_NLS 
+#  define NEED_ISINF
+#  define NEED_UNION_SEMUN 
+#  define NEED_SYS_SELECT_H
+#  define HAVE_TZSET
+#  define HAVE_ANSI_CPP
+#  define HAS_TEST_AND_SET
+   typedef unsigned int slock_t;
+#endif
+
+#if defined(alpha)
+#  define USE_POSIX_TIME 
+#  define USE_POSIX_SIGNALS
+#  define DISABLE_XOPEN_NLS 
+#  define NEED_ISINF 
+#  define HAS_LONG_LONG
+#  define NEED_UNION_SEMUN 
+#  define HAS_TEST_AND_SET
+#  include <sys/mman.h>  /* for msemaphore */
+   typedef msemaphore slock_t;
+#endif
+
+#if defined(BSD44_derived)
+#  define USE_LIMITS_H
+#  define USE_POSIX_TIME
+#  define NEED_CBRT
+#  define NEED_I386_TAS_ASM
+#  define HAS_TEST_AND_SET
+#  if defined(__mips__)
+#    undef HAS_TEST_AND_SET
+#  endif
+   typedef unsigned char slock_t;
+#endif
+
+#if defined(bsdi)
+#  if defined(i386)
+#    define NEED_I386_TAS_ASM
+#  endif
+#  if defined(sparc)
+#    define NEED_SPARC_TAS_ASM
+#  endif
+#  if defined(PRE_BSDI_2_1)
+#    define NEED_UNION_SEMUN 
+#  endif
+#  define USE_LIMITS_H
+#  define USE_POSIX_TIME
+#  define NEED_CBRT
+#  define HAS_TEST_AND_SET
+   typedef unsigned char slock_t;
+#endif
+
+
+#if defined(dgux)
+#  define LINUX_ELF
+#  define NEED_UNION_SEMUN 
+#  define USE_POSIX_SIGNALS
+#endif
+
+#if defined(hpux)
+#  define JMP_BUF
+#  define USE_POSIX_TIME
+#  define HAVE_TZSET
+#  define NEED_CBRT
+#  define NEED_RINT
+#  define NEED_UNION_SEMUN 
+#  define HAS_TEST_AND_SET
+   typedef struct { int sem[4]; } slock_t;
+#endif
+
+#if defined(i386_solaris) 
+#  define USE_LIMITS_H
+#  define USE_POSIX_TIME 
+#  define USE_POSIX_SIGNALS
+#  define NEED_ISINF 
+#  define NEED_RUSAGE 
+#  define NO_EMPTY_STMTS
+#  define HAVE_TZSET
+#  define NEED_UNION_SEMUN 
+#  define SYSV_DIRENT
+#  define HAS_TEST_AND_SET
+   typedef unsigned char slock_t;
+#endif
+
+#if defined(irix5)
+#  define USE_POSIX_TIME 
+#  define USE_POSIX_SIGNALS
+#  define NEED_ISINF 
+#  define NO_EMPTY_STMTS
+#  define NO_VFORK
+#  define HAVE_TZSET
+#  define SYSV_DIRENT
+#  define HAS_TEST_AND_SET
+#  include <abi_mutex.h>
+   typedef abilock_t slock_t;
+#endif
+
+#if defined(linux)
+/* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either
+   here or with -D compile options, but __ macros should be set and used by C
+   library macros, not Postgres code.  __USE_POSIX is set by features.h,
+   __USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to
+   be used.
+*/
+#  define JMP_BUF
+#  define USE_POSIX_TIME
+#  define HAVE_TZSET
+#  define NEED_CBRT
+#  define NEED_I386_TAS_ASM
+#  define HAS_TEST_AND_SET
+   typedef unsigned char slock_t;
+#endif
+
+#if defined(nextstep)
+# include <sys/ioctl.h>
+# if defined(__STRICT_ANSI__)
+#  define isascii(c)  ((unsigned)(c)<=0177)
+# endif
+  extern char* strdup (const char* string);
+# ifndef _POSIX_SOURCE
+  typedef unsigned short mode_t;
+  typedef int sigset_t;
+#  define SIG_BLOCK    00
+#  define SIG_UNBLOCK  01
+#  define SIG_SETMASK  02
+#  define NO_SIGACTION
+#  define NO_SETSID
+#  define NO_SIGPROCMASK
+#  define NEED_SIG_JMP
+# endif
+
+# define USE_LIMITS_H
+# define JMP_BUF
+# define NO_WAITPID
+  typedef struct mutex slock_t;
+#endif
+
+#if defined(sequent) 
+#  define NEED_UNION_SEMUN 
+#endif
+
+#if defined(sparc_solaris)
+#  define USE_LIMITS_H
+#  define USE_POSIX_TIME 
+#  define USE_POSIX_SIGNALS
+#  define NEED_ISINF 
+#  define NEED_RUSAGE 
+#  define NO_EMPTY_STMTS
+#  define USE_POSIX_TIME
+#  define HAVE_TZSET
+#  define NEED_UNION_SEMUN 
+#  define SYSV_DIRENT
+#  define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
+#endif
+
+#if defined(sunos4)
+#  define USE_POSIX_TIME
+#  undef HAVE_MEMMOVE
+#endif
+
+#if defined(svr4) 
+#  define USE_POSIX_TIME 
+#  define USE_POSIX_SIGNALS
+#  define NEED_ISINF 
+#  define NEED_RUSAGE 
+#  define NO_EMPTY_STMTS
+#  define HAVE_TZSET
+#  define NEED_UNION_SEMUN 
+#  define SYSV_DIRENT
+#endif
+
+#if defined(win32)
+#  define JMP_BUF
+#  define NEED_SIG_JMP
+#  define NO_UNISTD_H
+#  define USES_WINSOCK 
+#  define NOFILE       100
+#  define NEED_UNION_SEMUN
+#  define HAVE_TZSET
+#  define NEED_CBRT
+#  define NEED_ISINF
+#  ifndef MAXPATHLEN
+#  define MAXPATHLEN    250
+#  endif
+#endif /* WIN32 */
+
+#if defined(ultrix4)
+#  define NEED_ISINF 
+#  define USE_POSIX_TIME
+#  define NEED_UNION_SEMUN 
+#  define NEED_STRDUP
+#endif
+
+/* This patch changes the behavior of aclcheck for groups. Currently an user
+ * can access a table only if he has the required permission for ALL the groups
+ * defined for that table. With my patch he can access a table if he has the
+ * permission for ONE of the groups, which seems to me a more useful thing.
+ * 
+ * Used in: src/backend/tcop/aclchk.c
+ * Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
+ */
+#define        ACLGROUP_PATCH
+
+
+/*
+ * The following is used as the arg list for signal handlers.  Any ports
+ * that take something other than an int argument should change this in
+ * the port specific makefile.  Note that variable names are required
+ * because it is used in both the prototypes as well as the definitions.
+ * Note also the long name.  We expect that this won't collide with
+ * other names causing compiler warnings.
+ */ 
+
+#ifndef       SIGNAL_ARGS
+#  define SIGNAL_ARGS int postgres_signal_arg
+#endif
+
+/* 
+ * DEF_PGPORT is the TCP port number on which the Postmaster listens by
+ * default.  This can be overriden by command options, environment variables,
+ * and the postconfig hook.
+ */ 
+
+#define DEF_PGPORT "5432"
+
+/* turn this on if you prefer European style dates instead of American
+ * style dates
+ */
+/* #define EUROPEAN_DATES  */
+
+/*
+ * If you do not plan to use Host based authentication,
+ * comment out the following line
+ */
+#define HBA
+
+/*
+ * On architectures for which we have not implemented spinlocks (or
+ * cannot do so), we use System V semaphores.  We also use them for
+ * long locks.  For some reason union semun is never defined in the
+ * System V header files so we must do it ourselves.
+ */
+
+/*  Debug and various "defines" that should be documented */
+
+/* found in function aclparse() in src/backend/utils/adt/acl.c */
+/* #define ACLDEBUG */
+
+/* found in src/backend/utils/adt/arrayfuncs.c
+   code seems broken without it, Bruce Momjian */
+/* #define LOARRAY */
+
+/* This is the time, in seconds, at which a given backend server
+ * will wait on a lock before deciding to abort the transaction
+ * (this is what we do in lieu of deadlock detection).
+ *
+ * Low numbers are not recommended as they will tend to cause
+ * false aborts if many transactions are long-lived.
+ */
+#define DEADLOCK_TIMEOUT 60
+
+/*
+ * This flag enables the use of idexes in plans generated for function
+ * executions which normally are always executed with sequential scans.
+ */
+#define INDEXSCAN_PATCH 
+
+/* #define DATEDEBUG */
+
+/*
+ * Define this if you want to use date constants with a short year
+ * like '01/05/96'.
+ */
+/* #define USE_SHORT_YEAR */
+
+/*
+ * defining unsafe floats's will make float4 and float8
+ * ops faster at the cost of safety, of course!        
+ */
+/* #define UNSAFE_FLOATS */
+
+/*
+ * There is a bug in the function executor. The backend crashes while trying to
+ * execute an sql function containing an utility command (create, notify, ...).
+ * The bug is part in the planner, which returns a number of plans different
+ * than the number of commands if there are utility commands in the query, and
+ * in part in the function executor which assumes that all commands are normal
+ * query commands and causes a SIGSEGV trying to execute commands without plan.
+ */
+#define FUNC_UTIL_PATCH
+
+/*
+ * Define this if you want to retrieve arrays attributes as Tcl lists instead
+ * of postgres C-like arrays, for example {{"a1" "a2"} {"b1" "b2"}} instead 
+ * of {{"a1","a2"},{"b1","b2"}}.
+ */
+#define TCL_ARRAYS
+
+/*
+ * The comparison routines for text and char data type give incorrect results
+ * if the input data contains characters greater than 127.  As these routines
+ * perform the comparison using signed char variables all character codes
+ * greater than 127 are interpreted as less than 0.  These codes are used to
+ * encode the iso8859 char sets.  Define this flag to correct the problem.
+ */
+#define UNSIGNED_CHAR_TEXT
+
+/*
+ * The following flag allows limiting the number of rows returned by a query.
+ * You will need the loadable module utils.c to use this feature.
+ */
+#define QUERY_LIMIT
+
+/*
+ * The following flag allows copying tables from files with number of columns
+ * different than the number of attributes setting missing attributes to NULL
+ * and ignoring extra columns.  This also avoids the shift of the attributes
+ * of the rest of the file if one line has a wrong column count.
+ */
+#define COPY_PATCH
+
+/*
+ * User locks are handled totally on the application side as long term
+ * cooperative locks which extend beyond the normal transaction boundaries.
+ * Their purpose is to indicate to an application that someone is `working'
+ * on an item.  Define this flag to enable user locks.  You will need the
+ * loadable module user-locks.c to use this feature.
+ */
+#define USER_LOCKS
+
+/* Debug #defines */
+/* #define IPORTAL_DEBUG  */
+/* #define HEAPDEBUGALL  */
+/* #define ISTRATDEBUG  */
+/* #define FASTBUILD_DEBUG */
+#define RTDEBUG 
+#define GISTDEBUG 
+/* #define PURGEDEBUG */
+/* #define DEBUG_RECIPE */
+/* #define ASYNC_DEBUG */
+/* #define COPY_DEBUG */
+/* #define VACUUM_DEBUG */
+/* #define NBTINSERT_PATCH_DEBUG */
+
+
+/* The following don't have any apparent purpose, but are in the
+ * code.  someday, will take them out altogether, but for now, 
+ * document them here
+ */
+/* #define OMIT_PARTIAL_INDEX */
+/* #define NO_BUFFERISVALID   */
+/* #define NO_SECURITY        */
+/* #define TIOGA              */
+/* #define OLD_REWRITE        */
+/* #define NOTYET             */
+
+
+/* Undocumented "features"? */
+#define FASTBUILD /* access/nbtree/nbtsort.c */
+
+
+
+
+
+
+#endif /* CONFIG_H */
+