aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-03-26 15:40:00 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-03-26 15:40:00 +0000
commit5bd8253dbb48e833946cae3a4fda58037b1f0b48 (patch)
treea90df6ffd6859b5f85be780e25f27278b0ac8767
parentd52fb0e920a7aaf9c04d5f4741b1ad1510c18c69 (diff)
downloadgdb-5bd8253dbb48e833946cae3a4fda58037b1f0b48.zip
gdb-5bd8253dbb48e833946cae3a4fda58037b1f0b48.tar.gz
gdb-5bd8253dbb48e833946cae3a4fda58037b1f0b48.tar.bz2
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.
-rw-r--r--bfd/ChangeLog4
-rwxr-xr-xbfd/configure19
-rw-r--r--config/ChangeLog5
-rw-r--r--config/acx.m419
4 files changed, 35 insertions, 12 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index bc127a9..0f46403 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ * configure: Regenerated.
+
2007-03-26 Alan Modra <amodra@bigpond.net.au>
* elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
diff --git a/bfd/configure b/bfd/configure
index b32160b..97a0d3d 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -4415,18 +4415,25 @@ if test "${with_bugurl+set}" = set; then
yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
echo "$as_me: error: bug URL not specified" >&2;}
{ (exit 1); exit 1; }; } ;;
- 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
else
- REPORT_BUGS_TO="<http://www.sourceware.org/bugzilla/>"
- REPORT_BUGS_TEXI="@uref{`echo http://www.sourceware.org/bugzilla/ | sed 's/@/@@/g'`}"
+ BUGURL="http://www.sourceware.org/bugzilla/"
fi;
+ case ${BUGURL} in
+ "")
+ REPORT_BUGS_TO=
+ REPORT_BUGS_TEXI=
+ ;;
+ *)
+ REPORT_BUGS_TO="<$BUGURL>"
+ REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
+ ;;
+ esac;
diff --git a/config/ChangeLog b/config/ChangeLog
index 1b9b273..7b1384d 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 b8676fc..bbe7b5e 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)
])