aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2007-03-26 15:37:47 +0000
committerH.J. Lu <hongjiu.lu@intel.com>2007-03-26 15:37:47 +0000
commit611a210c813e7521b867d6feefe02b4fcb5292e3 (patch)
tree23d764549d1b191a69eb4e07270cbfd6a030b995 /config
parente1f39af8a75b647178415badf217c48c74202d83 (diff)
2007-03-26 H.J. Lu <hongjiu.lu@intel.com>
* acx.m4 (ACX_BUGURL): Set BUGURL first. Quote $BUGURL first when setting REPORT_BUGS_TEXI. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@123218 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog5
-rw-r--r--config/acx.m419
2 files changed, 18 insertions, 6 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 1b9b27356ae..7b1384daa48 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ * acx.m4 (ACX_BUGURL): Set BUGURL first. Quote $BUGURL first
+ when setting REPORT_BUGS_TEXI.
+
2007-03-23 H.J. Lu <hongjiu.lu@intel.com>
* acx.m4 (ACX_BUGURL): Replace "@" with "@@" for
diff --git a/config/acx.m4 b/config/acx.m4
index b8676fc7af8..bbe7b5e06fb 100644
--- a/config/acx.m4
+++ b/config/acx.m4
@@ -577,16 +577,23 @@ AC_DEFUN([ACX_BUGURL],[
[Direct users to URL to report a bug]),
[case "$withval" in
yes) AC_MSG_ERROR([bug URL not specified]) ;;
- no) REPORT_BUGS_TO="";
- REPORT_BUGS_TEXI=""
+ no) BUGURL=
;;
- *) REPORT_BUGS_TO="<$withval>"
- REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}"
+ *) BUGURL="$withval"
;;
esac],
- REPORT_BUGS_TO="<$1>"
- REPORT_BUGS_TEXI="@uref{`echo $1 | sed 's/@/@@/g'`}"
+ BUGURL="$1"
)
+ case ${BUGURL} in
+ "")
+ REPORT_BUGS_TO=
+ REPORT_BUGS_TEXI=
+ ;;
+ *)
+ REPORT_BUGS_TO="<$BUGURL>"
+ REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
+ ;;
+ esac;
AC_SUBST(REPORT_BUGS_TO)
AC_SUBST(REPORT_BUGS_TEXI)
])