aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome.m4
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-03-20 14:24:33 +0800
committerTom Tromey <tromey@src.gnome.org>1998-03-20 14:24:33 +0800
commit5eaac213873ae075aeafe9d2fb4423afd57ab0b8 (patch)
tree3870c1e5c25e9f4d270f18473e34dcc0325397ea /macros/gnome.m4
parent1c388d981788a7706ef238c1aef6f9d3301b2718 (diff)
downloadgsoc2013-evolution-5eaac213873ae075aeafe9d2fb4423afd57ab0b8.tar
gsoc2013-evolution-5eaac213873ae075aeafe9d2fb4423afd57ab0b8.tar.gz
gsoc2013-evolution-5eaac213873ae075aeafe9d2fb4423afd57ab0b8.tar.bz2
gsoc2013-evolution-5eaac213873ae075aeafe9d2fb4423afd57ab0b8.tar.lz
gsoc2013-evolution-5eaac213873ae075aeafe9d2fb4423afd57ab0b8.tar.xz
gsoc2013-evolution-5eaac213873ae075aeafe9d2fb4423afd57ab0b8.tar.zst
gsoc2013-evolution-5eaac213873ae075aeafe9d2fb4423afd57ab0b8.zip
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
Diffstat (limited to 'macros/gnome.m4')
-rw-r--r--macros/gnome.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/macros/gnome.m4 b/macros/gnome.m4
index 283745c111..aa6165fad4 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
+])