diff options
| author | Peter Eisentraut | 2019-01-18 07:29:42 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2019-01-18 07:38:34 +0000 |
| commit | 29b3ac75462625b78eec0a92a49a22c5e2c7a01f (patch) | |
| tree | 275646c4350d065c7dff658aaa1896beab57e41e /config | |
| parent | 80971bc206b06deebe71e722f49949f6df4ce642 (diff) | |
configure: More use of AC_ARG_VAR
AC_ARG_VAR is necessary if an environment variable influences a
configure result that is then used by other tests that are cached.
With AC_ARG_VAR, a change in the variable is detected on subsequent
configure runs and the user is then advised to remove the cache.
This adds AC_ARG_VAR calls for: MSGFMT, PERL, PYTHON, TCLSH, XML2_CONFIG
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/30672.1546816567@sss.pgh.pa.us
Diffstat (limited to 'config')
| -rw-r--r-- | config/perl.m4 | 1 | ||||
| -rw-r--r-- | config/programs.m4 | 1 | ||||
| -rw-r--r-- | config/python.m4 | 1 | ||||
| -rw-r--r-- | config/tcl.m4 | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/config/perl.m4 b/config/perl.m4 index caefb0705e7..059e31c4766 100644 --- a/config/perl.m4 +++ b/config/perl.m4 @@ -5,6 +5,7 @@ # -------------- AC_DEFUN([PGAC_PATH_PERL], [PGAC_PATH_PROGS(PERL, perl) +AC_ARG_VAR(PERL, [Perl program])dnl if test "$PERL"; then pgac_perl_version=`$PERL -v 2>/dev/null | sed -n ['s/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p']` diff --git a/config/programs.m4 b/config/programs.m4 index aa84bfdb9e4..21888cb68fb 100644 --- a/config/programs.m4 +++ b/config/programs.m4 @@ -245,6 +245,7 @@ AC_DEFUN([PGAC_CHECK_GETTEXT], AC_CHECK_HEADER([libintl.h], [], [AC_MSG_ERROR([header file <libintl.h> is required for NLS])]) PGAC_PATH_PROGS(MSGFMT, msgfmt) + AC_ARG_VAR(MSGFMT, [msgfmt program for NLS])dnl if test -z "$MSGFMT"; then AC_MSG_ERROR([msgfmt is required for NLS]) fi diff --git a/config/python.m4 b/config/python.m4 index 9a4d12112e1..c51aa4e332e 100644 --- a/config/python.m4 +++ b/config/python.m4 @@ -17,6 +17,7 @@ # newer version. AC_DEFUN([PGAC_PATH_PYTHON], [PGAC_PATH_PROGS(PYTHON, [python python3 python2]) +AC_ARG_VAR(PYTHON, [Python program])dnl if test x"$PYTHON" = x""; then AC_MSG_ERROR([Python not found]) fi diff --git a/config/tcl.m4 b/config/tcl.m4 index 581471f3384..9de31a57156 100644 --- a/config/tcl.m4 +++ b/config/tcl.m4 @@ -5,6 +5,7 @@ AC_DEFUN([PGAC_PATH_TCLSH], [PGAC_PATH_PROGS(TCLSH, [tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84]) +AC_ARG_VAR(TCLSH, [Tcl interpreter program (tclsh)])dnl if test x"$TCLSH" = x""; then AC_MSG_ERROR([Tcl shell not found]) fi |
