aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome.m4
diff options
context:
space:
mode:
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
+])