mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	Substituted new configure test for types of accept()
Interfaced a lot of the custom tests to the config.cache, in the process made them separate macros and grouped them out into files. Made naming adjustments. Removed a couple of useless/unused configure tests. Disabled C++ by default. C++ is no more special than Perl, Python, and Tcl. And it breaks equally often. :(
This commit is contained in:
		| @@ -4,7 +4,7 @@ | ||||
| # | ||||
| # Copyright (c) 1994, Regents of the University of California | ||||
| # | ||||
| # $Header: /cvsroot/pgsql/src/interfaces/Attic/Makefile.in,v 1.1 2000/06/10 18:01:48 petere Exp $ | ||||
| # $Header: /cvsroot/pgsql/src/interfaces/Attic/Makefile.in,v 1.2 2000/06/11 11:39:59 petere Exp $ | ||||
| # | ||||
| #------------------------------------------------------------------------- | ||||
|  | ||||
| @@ -16,14 +16,14 @@ top_builddir = ../.. | ||||
|  | ||||
| USE_TCL = @USE_TCL@ | ||||
| USE_ODBC = @USE_ODBC@ | ||||
| WITH_CXX = @HAVECXX@ | ||||
| with_CXX = @with_CXX@ | ||||
| with_perl = @with_perl@ | ||||
| with_python = @with_python@ | ||||
|  | ||||
| all install clean dep depend: | ||||
| 	$(MAKE) -C libpq $@ | ||||
| 	$(MAKE) -C ecpg $@ | ||||
| ifeq ($(WITH_CXX), true) | ||||
| ifeq ($(with_CXX), yes) | ||||
| 	$(MAKE) -C libpq++ $@ | ||||
| endif | ||||
| 	$(MAKE) -C libpgeasy $@ | ||||
| @@ -41,12 +41,8 @@ ifeq ($(USE_ODBC), true) | ||||
| endif | ||||
|  | ||||
| distclean maintainer-clean: clean | ||||
| ifeq ($(with_perl), yes) | ||||
| 	-$(MAKE) -C perl5 $@ | ||||
| endif | ||||
| ifeq ($(with_python), yes) | ||||
| 	-$(MAKE) -C python $@ | ||||
| endif | ||||
| 	rm -f Makefile \ | ||||
| 	  libpq/Makefile \ | ||||
| 	  ecpg/lib/Makefile \ | ||||
|   | ||||
| @@ -8,7 +8,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * IDENTIFICATION | ||||
|  *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.128 2000/05/31 00:28:41 petere Exp $ | ||||
|  *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.129 2000/06/11 11:40:07 petere Exp $ | ||||
|  * | ||||
|  *------------------------------------------------------------------------- | ||||
|  */ | ||||
| @@ -1076,7 +1076,7 @@ keep_going:						/* We will come back to here until there | ||||
| 	{ | ||||
| 		case CONNECTION_STARTED: | ||||
| 			{ | ||||
| 				SOCKET_SIZE_TYPE laddrlen; | ||||
| 				ACCEPT_TYPE_ARG3 laddrlen; | ||||
|  | ||||
| #ifndef WIN32 | ||||
| 				int			optval; | ||||
| @@ -1085,7 +1085,7 @@ keep_going:						/* We will come back to here until there | ||||
| 				char		optval; | ||||
|  | ||||
| #endif | ||||
| 				SOCKET_SIZE_TYPE optlen = sizeof(optval); | ||||
| 				ACCEPT_TYPE_ARG3 optlen = sizeof(optval); | ||||
|  | ||||
| 				/* | ||||
| 				 * Write ready, since we've made it here, so the | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * IDENTIFICATION | ||||
|  *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/pqsignal.c,v 1.11 2000/01/26 05:58:46 momjian Exp $ | ||||
|  *	  $Header: /cvsroot/pgsql/src/interfaces/libpq/pqsignal.c,v 1.12 2000/06/11 11:40:07 petere Exp $ | ||||
|  * | ||||
|  * NOTES | ||||
|  *		This shouldn't be in libpq, but the monitor and some other | ||||
| @@ -25,7 +25,7 @@ | ||||
| pqsigfunc | ||||
| pqsignal(int signo, pqsigfunc func) | ||||
| { | ||||
| #if !defined(USE_POSIX_SIGNALS) | ||||
| #if !defined(HAVE_POSIX_SIGNALS) | ||||
| 	return signal(signo, func); | ||||
| #else | ||||
| 	struct sigaction act, | ||||
| @@ -39,5 +39,5 @@ pqsignal(int signo, pqsigfunc func) | ||||
| 	if (sigaction(signo, &act, &oact) < 0) | ||||
| 		return SIG_ERR; | ||||
| 	return oact.sa_handler; | ||||
| #endif	 /* !USE_POSIX_SIGNALS */ | ||||
| #endif	 /* !HAVE_POSIX_SIGNALS */ | ||||
| } | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| #define strcasecmp(a,b) stricmp(a,b) | ||||
| #define strncasecmp(a,b,c) _strnicmp(a,b,c) | ||||
|  | ||||
| #define SOCKET_SIZE_TYPE int | ||||
| #define ACCEPT_TYPE_ARG3 int | ||||
|  | ||||
| /* | ||||
|  * Some compat functions | ||||
|   | ||||
		Reference in New Issue
	
	Block a user