summaryrefslogtreecommitdiff
path: root/config/general.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/general.m4')
-rw-r--r--config/general.m419
1 files changed, 1 insertions, 18 deletions
diff --git a/config/general.m4 b/config/general.m4
index aa3413b316..52f850ea25 100644
--- a/config/general.m4
+++ b/config/general.m4
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/config/general.m4,v 1.10 2008/10/29 09:27:24 petere Exp $
+# $PostgreSQL: pgsql/config/general.m4,v 1.11 2009/07/02 18:55:40 petere Exp $
# This file defines new macros to process configure command line
# arguments, to replace the brain-dead AC_ARG_WITH and AC_ARG_ENABLE.
@@ -33,7 +33,6 @@ m4_define([pgac_arg_to_variable],
AC_DEFUN([PGAC_ARG],
[
-pgac_args="$pgac_args pgac_arg_to_variable([$1],[$2])"
m4_case([$1],
enable, [
@@ -74,22 +73,6 @@ AC_ARG_WITH([$2], [AS_HELP_STRING([--]m4_if($3, -, without, with)[-$2]m4_if($3,
)
])# PGAC_ARG
-# PGAC_ARG_CHECK()
-# ----------------
-# Checks if the user passed any --with/without/enable/disable
-# arguments that were not defined. Just prints out a warning message,
-# so this should be called near the end, so the user will see it.
-
-AC_DEFUN([PGAC_ARG_CHECK],
-[for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
- for pgac_arg in $pgac_args with_gnu_ld; do
- if test "$pgac_var" = "$pgac_arg"; then
- continue 2
- fi
- done
- pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
- AC_MSG_WARN([option ignored: --$pgac_txt])
-done])# PGAC_ARG_CHECK
# PGAC_ARG_BOOL(TYPE, NAME, DEFAULT, HELP-STRING-RHS,
# [ACTION-IF-YES], [ACTION-IF-NO])