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=73
This commit is contained in:
Tom Tromey
1998-03-20 06:24:33 +00:00
committed by Tom Tromey
parent 1c388d9817
commit 5eaac21387
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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)
])
])