2007-03-26 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 26 Mar 2007 15:40:00 +0000 (15:40 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 26 Mar 2007 15:40:00 +0000 (15:40 +0000)
* acx.m4 (ACX_BUGURL): Set BUGURL first. Quote $BUGURL first
when setting REPORT_BUGS_TEXI.

bfd/ChangeLog
bfd/configure
config/ChangeLog
config/acx.m4

index bc127a97e0812d1191e7f1d4c25d16e2cbb241ef..0f46403313c2757477f93ec76ce547f65a84e90b 100644 (file)
@@ -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.
index b32160b85a3d904a72c46dcb33b612a1e4d7ad5a..97a0d3d844f61fd5e0771b5e3a7d080f7a580755 100755 (executable)
@@ -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;
 
 
 
index 1b9b27356aeacc5e578a4147b756cec54044c3c5..7b1384daa48c60505fe3dabed681551c4ab2750c 100644 (file)
@@ -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
index b8676fc7af862da5dbafa29a4fe1ebbf4873ce94..bbe7b5e06fbfc82c684bff8c5416f6cbbd66bb43 100644 (file)
@@ -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)
 ])