~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib_artsplug/configure.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
MPEGLIB_ARTS_MAJOR_VERSION=0
 
4
MPEGLIB_ARTS_MINOR_VERSION=3
 
5
MPEGLIB_ARTS_MICRO_VERSION=0
 
6
 
 
7
MPEGLIB_ARTS_VERSION=$MPEGLIB_ARTS_MAJOR_VERSION.$MPEGLIB_ARTS_MINOR_VERSION.$MPEGLIB_ARTS_MICRO_VERSION
 
8
 
 
9
 
 
10
AC_SUBST(MPEGLIB_ARTS_MAJOR_VERSION)
 
11
AC_SUBST(MPEGLIB_ARTS_MINOR_VERSION)
 
12
AC_SUBST(MPEGLIB_ARTS_MICRO_VERSION)
 
13
AC_SUBST(MPEGLIB_ARTS_VERSION)
 
14
 
 
15
 
 
16
dnl build search PATH
 
17
artsc_config_test_path=$prefix/bin:$exec_prefix/bin:$KDEDIR/bin:$PATH
 
18
AC_PATH_PROG(kde_artsplug_compiles,artsc-config,no,$artsc_config_test_path)
 
19
 
 
20
dnl if we found it here set variable
 
21
if test x$kde_artsplug_compiles != xno; then
 
22
   ARTSC_CONFIG=$kde_artsplug_compiles;
 
23
   kde_artsplug_compiles=yes
 
24
fi
 
25
 
 
26
dnl this is needed for a standalone mpeglib
 
27
dnl it should compile without KDE installed
 
28
dnl but if we find arts we need the include
 
29
dnl path for it.
 
30
 
 
31
if test x$kde_artsplug_compiles = xyes; then
 
32
   ARTSC_INCLUDE=`${ARTSC_CONFIG} --cflags`
 
33
   AC_MSG_RESULT([arts includes... $ARTSC_INCLUDE])
 
34
   AC_SUBST(ARTSC_INCLUDE)
 
35
   ARTSC_LIBS=`${ARTSC_CONFIG} --libs`
 
36
   AC_MSG_RESULT([arts libraries... $ARTSC_LIBS])
 
37
   AC_SUBST(ARTSC_LIBS) 
 
38
   AC_SUBST(LIBDL)
 
39
fi
 
40
 
 
41
if test x$kde_mpeglib_compiles = xno; then
 
42
  AC_MSG_RESULT([** mpeglib disabled we disable artsplug **])
 
43
  kde_artsplug_compiles=no;
 
44
fi
 
45
 
 
46
if test x$kde_artsplug_compiles = xno; then
 
47
  AC_MSG_RESULT([** DO NOT COMPILE mpeglib_artsplug **])
 
48
  DO_NOT_COMPILE="$DO_NOT_COMPILE mpeglib_artsplug"
 
49
fi
 
50
 
 
51
 
 
52
 
 
53