~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/ruby/app_templates/dcopservice/app-configure.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#MIN_CONFIG(3.0.0)
2
 
 
3
 
AM_INIT_AUTOMAKE(%{APPNAMELC}, 0.1)
4
 
AC_C_BIGENDIAN
5
 
AC_CHECK_KDEMAXPATHLEN
6
 
 
7
 
AC_PROG_MAKE_SET
8
 
 
9
 
# ruby interpreter check
10
 
AC_PATH_PROG([RUBY],[ruby])
11
 
if test -z "${RUBY}"  ; then
12
 
   AC_MSG_ERROR([you need Ruby to use this program])
13
 
fi
14
 
 
15
 
AC_CHECK_PROG(RUBY, ruby, ruby)
16
 
 
17
 
if test -z "$RUBY"; then
18
 
  DO_NOT_COMPILE="$DO_NOT_COMPILE qtruby"
19
 
else
20
 
  AC_MSG_CHECKING(for ruby dirs)
21
 
  RUBY_ARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"archdir"@:>@)'`
22
 
  RUBY_SITEARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitearchdir"@:>@)'`
23
 
  RUBY_SITEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitelibdir"@:>@)'`
24
 
  RUBY_LIBDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"libdir"@:>@)'`
25
 
  RUBY_LIBRUBYARG=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'`
26
 
  AC_MSG_RESULT([archdir $RUBY_ARCHDIR, sitearchdir $RUBY_SITEARCHDIR, sitedir $RUBY_SITEDIR, libdir $RUBY_LIBDIR, librubyarg $RUBY_LIBRUBYARG])
27
 
  AC_SUBST(RUBY_ARCHDIR)
28
 
  AC_SUBST(RUBY_SITEARCHDIR)
29
 
  AC_SUBST(RUBY_SITEDIR)
30
 
  AC_SUBST(RUBY_LIBDIR)
31
 
  AC_SUBST(RUBY_LIBRUBYARG)
32
 
fi
33
 
 
34
 
# Korundum check
35
 
AC_MSG_CHECKING([whether Korundum is installed])
36
 
korundum_present=no
37
 
cat >korundumtest.rb <<END
38
 
require 'Korundum'
39
 
END
40
 
${RUBY} korundumtest.rb >/dev/null 2>&1 && korundum_present=yes
41
 
AC_MSG_RESULT([$korundum_present])
42
 
 
43
 
# rbuic check
44
 
AC_PATH_PROG([RBUIC],[rbuic])
45
 
if test -z "${RBUIC}" ; then
46
 
   AC_MSG_ERROR([cannot find rbuic (part of the QtRuby package)])
47
 
fi
48
 
AC_SUBST([RBUIC])
49
 
AC_SUBST([RUBY])
50
 
 
51