source: roaraudio/plugins/xmms/configure @ 5439:7950543cabbc

Last change on this file since 5439:7950543cabbc was 1742:4fbe8cb28680, checked in by phi, 15 years ago

moved a lot things to the common configure file

  • Property exe set to *
File size: 1.7 KB
Line 
1#!/bin/sh
2
3. ../configure.inc
4
5HAVE_ROAR=false
6
7while [ "$1" != '' ]
8do
9 case "$1" in
10  --install-dir|--inst-dir)
11   INSTALL_DIR="$2"
12   shift;
13  ;;
14  --pkg-config)
15   PKG_CONFIG="$2"
16   shift;
17  ;;
18  --force-have-roar)
19   HAVE_ROAR=true
20  ;;
21  --help|-h)
22    cat << EOF
23Usage: ./configure [OPTIONS]...
24
25Options:
26  --help               - Show this help
27  --inst-dir DIR       - Install dir
28  --force-have-roar    - Force to assume libroar is ok
29  --pkg-config PKGCONF - Set filename for pkg-config
30EOF
31    exit 0
32   ;;
33  *)
34    echo 'Unknown option. Try ./configure --help'
35    exit 2
36 esac
37 shift;
38done
39
40on_error () {
41 exit 1;
42}
43
44check_cc;
45check_pkg_config;
46
47echo -n 'testing for gtk... '
48#pkg-config
49
50#if [ "$PKG_CONFIG" != '' ]
51#then
52# GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0 2> /dev/null`
53# GTK_CFLAFS=`$PKG_CONFIG --cflags gtk+-2.0 2> /dev/null`
54#else
55 GTK_LIBS=`gtk-config --libs 2> /dev/null`
56 GTK_CFLAFS=`gtk-config --cflags 2> /dev/null`
57#fi
58
59if [ "$GTK_LIBS" = '' -a "$GTK_CFLAFS" = '' ]
60then
61 echo no.
62 on_error;
63else
64 echo yes
65fi
66
67echo -n 'testing for xmms... '
68XMMS_LIBS=`xmms-config --libs 2> /dev/null`
69XMMS_CFLAGS=`xmms-config --cflags 2> /dev/null`
70
71if [ "$XMMS_LIBS" = '' -a "$XMMS_CFLAGS" = '' ]
72then
73 echo no.
74 on_error;
75else
76 echo yes
77fi
78
79echo -n 'testing for xmms plugin dir... '
80if [ "$INSTALL_DIR" = '' ]
81then
82 INSTALL_DIR=`xmms-config --output-plugin-dir`
83
84 if [ "$INSTALL_DIR" = '' ]
85 then
86  echo not found.
87  on_error;
88 else
89  echo "$INSTALL_DIR"
90 fi
91else
92  echo "$INSTALL_DIR"
93fi
94
95check_libroar;
96
97rm -f tests tests.c
98
99echo creating Makefile.conf...
100{
101 echo "CC=$CC"
102 echo
103 echo "GTK_LIBS=$GTK_LIBS"
104 echo "GTK_CFLAFS=$GTK_CFLAFS"
105 echo
106 echo "XMMS_LIBS=$XMMS_LIBS"
107 echo "XMMS_CFLAGS=$XMMS_CFLAGS"
108 echo
109 echo "INSTALL_DIR=$INSTALL_DIR"
110} > Makefile.conf
111
112#ll
Note: See TracBrowser for help on using the repository browser.