1 diff --git a/configure.ac.in b/configure.ac.in
2 index 13df721..1febc45 100644
7 ############################################################################
8 # Check for guile start
12 +# Check for pkg-config
13 +AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
14 +if test $PKG_CONFIG = no; then
15 + AC_MSG_ERROR([Cannot find pkg-config, make sure it is installed and in your PATH])
18 +PKG_CHECK_MODULES(GUILE, guile-1.8, GUILE_PC="yes", no_GUILE_PC="yes")
20 +if test "$GUILE_PC" = "yes"
23 + GUILE_VERSION=`$PKG_CONFIG guile-1.8 --modversion`
27 + # Find about the installed guile
29 + GUILE_VERSION=`$GUILE_CONFIG info guileversion`
35 @@ -99,7 +120,6 @@ guile_need_minor=6
36 guile_need_version="$guile_need_major[].$guile_need_minor.0"
38 AC_MSG_CHECKING([Guile version >= $guile_need_version])
39 -GUILE_VERSION=`$GUILE_CONFIG info guileversion`
41 guile_major=`echo "$GUILE_VERSION" | sed 's/\([[^.]][[^.]]*\).*/\1/'`
42 guile_minor=`echo "$GUILE_VERSION" | sed 's/[[^.]][[^.]]*.\([[^.]][[^.]]*\).*/\1/'`
43 @@ -234,12 +254,6 @@ fi
44 # Check for gtk+ 2.4 start
47 -# Check for pkg-config
48 -AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
49 -if test $PKG_CONFIG = no; then
50 - AC_MSG_ERROR([Cannot find pkg-config, make sure it is installed and in your PATH])
53 PKG_CHECK_MODULES(GTK24, gtk+-2.0 >= 2.4.0, GTK24="yes", no_GTK24="yes")
55 # This next bit of code figures out what gtk we need to use.