X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=configure.ac;h=721c5c0c16b982af7d4f01257968fb192a9fd6d8;hb=b7e0e1bd8483f630104bd7457bb47d18143cd89d;hp=6b1439293fa334831c73c4e87f991f8302c3c8f5;hpb=34dd40a9067df6ca4fe18424b73e0a968be65f6c;p=paraslash.git diff --git a/configure.ac b/configure.ac index 6b143929..721c5c0c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -AC_PREREQ(2.53) +AC_PREREQ(2.60) AC_INIT(paraslash, [git], maan@systemlinux.org) @@ -182,11 +182,16 @@ fi ########################################################################### gtk2 pkg_modules="gtk+-2.0 >= 2.0.0" -PKG_CHECK_MODULES(GTK, [$pkg_modules], [extras="$extras para_krell.so"], [ - AC_MSG_WARN([gtk+-2 not found, can not build para_krell]) -]) -AC_SUBST(GTK_CFLAGS) -AC_SUBST(GTK_LIBS) +build_para_krell="yes" +PKG_CHECK_MODULES(GTK, [$pkg_modules], [], [build_para_krell="no"]) +AC_CHECK_HEADER(gkrellm2/gkrellm.h, [], [build_para_krell="no"]) +if test build_para_krell = "yes"; then + AC_SUBST(GTK_CFLAGS) + AC_SUBST(GTK_LIBS) + extras="$extras para_krell.so" +else + AC_MSG_WARN([can not build para_krell]) +fi ########################################################################### sdl AC_CHECK_LIB([SDL_image], [SDL_Init], [extras="$extras para_sdl_gui"], [