summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-03-20 06:24:33 +0000
committerTom Tromey <tromey@src.gnome.org>1998-03-20 06:24:33 +0000
commita08341cfa0679ed7934e5fe10991ff226306c4e5 (patch)
tree4746ed3c29ab7269ba002cc171d63f4a8c4bd786
parent1058ed2bbb23ade6f0be5d2272ef880a1c602b9a (diff)
downloadgnome-common-a08341cfa0679ed7934e5fe10991ff226306c4e5.tar.gz
An empty true branch of an `if' statement is not valid sh syntax. If
Thu Mar 19 23:23:30 1998 Tom Tromey <tromey@cygnus.com> * gnome.m4: An empty true branch of an `if' statement is not valid sh syntax. If GNOME_INIT_HOOK argument $1 is empty, use ":" instead. svn path=/trunk/; revision=154
-rw-r--r--macros/ChangeLog6
-rw-r--r--macros/gnome.m45
2 files changed, 9 insertions, 2 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index d2e57f7..3e899bc 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,9 @@
+Thu Mar 19 23:23:30 1998 Tom Tromey <tromey@cygnus.com>
+
+ * gnome.m4: An empty true branch of an `if' statement is not valid
+ sh syntax. If GNOME_INIT_HOOK argument $1 is empty, use ":"
+ instead.
+
1998-03-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome.m4 (GNOME_INIT_HOOK): Provide a way to hook some code to
diff --git a/macros/gnome.m4 b/macros/gnome.m4
index 283745c..aa6165f 100644
--- a/macros/gnome.m4
+++ b/macros/gnome.m4
@@ -37,7 +37,8 @@ AC_DEFUN([GNOME_INIT_HOOK],
AC_ARG_WITH(gnome,
[ --with-gnome Specify prefix for GNOME files],[
if test x$withval = xyes; then
- $1
+ dnl Note that an empty true branch is not valid sh syntax.
+ ifelse([$1], [], :, [$1])
else
LDFLAGS="$LDFLAGS -L$withval/lib"
CFLAGS="$CFLAGS -I$withval/include"
@@ -61,4 +62,4 @@ AC_DEFUN([GNOME_INIT_HOOK],
AC_DEFUN([GNOME_INIT],[
GNOME_INIT_HOOK([],fail)
-]) \ No newline at end of file
+])