build: Add escaping in AS_IF()

Based on a patch by: Owen W. Taylor <otaylor@fishsoup.net>
This commit is contained in:
Emmanuele Bassi 2010-09-07 16:17:51 +01:00
parent 287b3ba542
commit e678c746da

View File

@ -272,19 +272,18 @@ AS_CASE([$CLUTTER_FLAVOUR],
CLUTTER_SONAME_INFIX=cex100 CLUTTER_SONAME_INFIX=cex100
found_gdl=no found_gdl=no
AC_CHECK_HEADERS([libgdl.h], found_gdl=yes) AC_CHECK_HEADERS([libgdl.h], [found_gdl=yes])
AS_IF([test x"$found_gdl" = "xno"], AS_IF([test "x$found_gdl" = "xno"],
AC_CHECK_HEADERS([CE4100/libgdl.h], [AC_CHECK_HEADERS([CE4100/libgdl.h],
[ [
FLAVOUR_CFLAGS="-I/usr/include/CE4100" FLAVOUR_CFLAGS="-I/usr/include/CE4100"
found_gdl=yes found_gdl=yes
CLUTTER_CEX100_LIBGDL_PREFIX=CE4100/ CLUTTER_CEX100_LIBGDL_PREFIX=CE4100/
]) ])
) ])
AC_SUBST(CLUTTER_CEX100_LIBGDL_PREFIX) AC_SUBST(CLUTTER_CEX100_LIBGDL_PREFIX)
AS_IF([test x"$found_gdl" = "xno"], AS_IF([test x"$found_gdl" = "xno"], [AC_MSG_ERROR([libgdl.h not found])])
AC_MSG_ERROR([libgdl.h not found]))
FLAVOUR_LIBS="$FLAVOUR_LIBS -lgdl" FLAVOUR_LIBS="$FLAVOUR_LIBS -lgdl"
], ],