gtk should be used only on linux (for time being)

This commit is contained in:
yabause 2006-04-06 21:22:22 +00:00
parent 363ba63dc9
commit 637bc5bffa
1 changed files with 13 additions and 7 deletions

View File

@ -25,15 +25,21 @@ else
LIBS="$LIBS $SDL_LIBS"
fi
case $target in
*linux*)
AC_CHECK_TOOL(HAVE_PKG, pkg-config)
AC_CHECK_TOOL(HAVE_PKG, pkg-config)
if test ! x$HAVE_PKG = x ; then
GTK_CFLAGS=`$HAVE_PKG gtk+-2.0 --cflags`
GTK_LIBS=`$HAVE_PKG gtk+-2.0 --libs`
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
fi
if test ! x$HAVE_PKG = x ; then
GTK_CFLAGS=`$HAVE_PKG gtk+-2.0 --cflags`
GTK_LIBS=`$HAVE_PKG gtk+-2.0 --libs`
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
fi
UI_DIR=gtk
AC_SUBST([UI_DIR])
;;
esac
AC_CONFIG_FILES([Makefile
src/Makefile