mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	More modifications to make building more interactive:
Allow installer to change DEF_PGPORT Allow installer to disable HBA
This commit is contained in:
		
							
								
								
									
										27
									
								
								src/build
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								src/build
									
									
									
									
									
								
							| @@ -42,14 +42,37 @@ fi | ||||
|  | ||||
| USE_LOCALE=no | ||||
| echo "Define USE_LOCALE to get Postgres work (sort, search)" | ||||
| $ECHO_N "with national alphabet. [no]: $ECHO_C" | ||||
| $ECHO_N "with national alphabet. [$USE_LOCALE]: $ECHO_C" | ||||
| read a | ||||
| if [ "$a." != "." ] | ||||
| then | ||||
| 	USE_LOCALE=${a} | ||||
| fi | ||||
|  | ||||
| export BUILDRUN USE_LOCALE | ||||
| DEF_PGPORT=5432 | ||||
| echo "" | ||||
| echo "DEF_PGPORT is the TCP port number on which the Postmaster listens by" | ||||
| echo "default.  This can be overriden by command options, environment " | ||||
| echo "variables, and the postconfig hook." | ||||
| echo "" | ||||
|  | ||||
| $ECHO_N "Define DEF_PGPORT to [$DEF_PGPORT]: $ECHO_C" | ||||
| read a | ||||
| if [ "$a." != "." ] | ||||
| then | ||||
|         DEF_PGPORT=${a} | ||||
| fi | ||||
|  | ||||
| NOHBA=no | ||||
| echo "" | ||||
| $ECHO_N "Do you wish to disable Host Based Authentication(HBA) [no]: $ECHO_C" | ||||
| read a | ||||
| if [ "$a." != "." ] | ||||
| then | ||||
|         NOHBA=${a} | ||||
| fi | ||||
|  | ||||
| export BUILDRUN USE_LOCALE DEF_PGPORT NOHBA | ||||
|  | ||||
| ./configure --prefix=${IDIR} | ||||
|  | ||||
|   | ||||
							
								
								
									
										358
									
								
								src/configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										358
									
								
								src/configure
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -91,12 +91,6 @@ AC_SUBST(INSTLOPTS) | ||||
| AC_SUBST(INSTL_LIB_OPTS) | ||||
| AC_SUBST(INSTL_EXE_OPTS) | ||||
|  | ||||
| if test "$USE_LOCALE" = "yes" | ||||
| then | ||||
| 	AC_MSG_RESULT(setting USE_LOCALE) | ||||
| 	AC_DEFINE(USE_LOCALE) | ||||
| fi | ||||
|  | ||||
| dnl Check the option to echo to inhibit newlines. | ||||
| ECHO_N_OUT=`echo -n "" | wc -c` | ||||
| ECHO_C_OUT=`echo "\c" | wc -c` | ||||
| @@ -194,4 +188,25 @@ AC_SUBST(STRERROR) | ||||
| AC_CHECK_FUNC(cbrt, AC_DEFINE(HAVE_CBRT), AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT))) | ||||
| AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT), AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT))) | ||||
|  | ||||
| AC_MSG_CHECKING(setting USE_LOCALE) | ||||
| if test "$USE_LOCALE" = "yes" | ||||
| then | ||||
| 	AC_MSG_RESULT(enabled) | ||||
| 	AC_DEFINE(USE_LOCALE) | ||||
| else | ||||
| 	AC_MSG_RESULT(disabled) | ||||
| fi | ||||
| AC_MSG_CHECKING(setting DEF_PGPORT) | ||||
| AC_DEFINE_UNQUOTED(DEF_PGPORT, "${DEF_PGPORT}") | ||||
| AC_MSG_RESULT($DEF_PGPORT) | ||||
| AC_MSG_CHECKING(setting HBA) | ||||
| if test "$NOHBA" = "no" | ||||
| then | ||||
|         AC_MSG_RESULT(enabled) | ||||
|         AC_DEFINE(HBA) | ||||
| else | ||||
|         AC_MSG_RESULT(disabled) | ||||
| fi  | ||||
|  | ||||
|  | ||||
| AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh)  | ||||
|   | ||||
| @@ -129,16 +129,16 @@ | ||||
| /*  | ||||
|  * 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. | ||||
|  * and the postconfig hook. (set by build script) | ||||
|  */  | ||||
|  | ||||
| #define DEF_PGPORT "5432" | ||||
| #undef DEF_PGPORT  | ||||
|  | ||||
| /* | ||||
|  * If you do not plan to use Host based authentication, | ||||
|  * comment out the following line | ||||
|  * comment out the following line (set by build script) | ||||
|  */ | ||||
| #define HBA | ||||
| #undef HBA | ||||
|  | ||||
| /* | ||||
|  * On architectures for which we have not implemented spinlocks (or | ||||
|   | ||||
		Reference in New Issue
	
	Block a user