aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar laaz <laaz@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-26 19:54:43 +0000
committerGravatar laaz <laaz@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-26 19:54:43 +0000
commit90adf4b5308b2ea3ea2e3008309e2780d33d41a9 (patch)
tree9515f59cd575be79df7f8ad0d494a5cc6ef70d21 /configure
parent1e7d31cc88d28a64a7f94f5c31b942a1f5179370 (diff)
gtk12-config detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2491 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 15 insertions, 6 deletions
diff --git a/configure b/configure
index 857ff301f5..5d341385f2 100755
--- a/configure
+++ b/configure
@@ -1776,35 +1776,44 @@ echo "Extra headers : $_extraincdir"
if test "$_gui" = yes ; then
# --------------- GUI begin -------------------
+test -z `which gtk-config` || _gtkconfig="gtk-config"
+test -z `which gtk12-config` || _gtkconfig="gtk12-config"
+test -z $_gtkconfig && die "gtk-config not found"
+
+test -z `which glib-config` || _glibconfig="glib-config"
+test -z `which glib12-config` || _glibconfig="glib12-config"
+test -z $_glibconfig && die "glib-config not found"
+
echo
+#echo "gtk-config binary: $_gtkconfig"
echo $_echo_n "Checking for gtk version ... $_echo_c"
-_gtk=`gtk-config --version 2>&1`
+_gtk=`$_gtkconfig --version 2>&1`
test -z "$_gtk" && die "gtk not found."
echo "$_gtk"
echo $_echo_n "Checking for gtk includes ... $_echo_c"
-_gtkinc=`gtk-config --cflags 2>&1`
+_gtkinc=`$_gtkconfig --cflags 2>&1`
test -z "$_gtkinc" && die "gtk not found."
echo "done"
echo $_echo_n "Checking for gtk libs ... $_echo_c"
-_gtklib=`gtk-config --libs 2>&1`
+_gtklib=`$_gtkconfig --libs 2>&1`
test -z "$_gtklib" && die "gtk not found."
echo "done"
echo
echo $_echo_n "Checking for glib version ... $_echo_c"
-_glib=`glib-config --version 2>&1`
+_glib=`$_glibconfig --version 2>&1`
test -z "$_glib" && die "glib not found."
echo "$_glib"
echo $_echo_n "Checking for glib includes ... $_echo_c"
-_glibinc=`glib-config --cflags 2>&1`
+_glibinc=`$_glibconfig --cflags 2>&1`
test -z "$_glibinc" && die "glib not found."
echo "done"
echo $_echo_n "Checking for glib libs ... $_echo_c"
-_gliblib=`glib-config --libs 2>&1`
+_gliblib=`$_glibconfig --libs 2>&1`
test -z "$_gliblib" && die "glib not found."
echo "done"