~ubuntu-branches/debian/sid/link-monitor-applet/sid

« back to all changes in this revision

Viewing changes to m4/gnome.m4

  • Committer: Bazaar Package Importer
  • Author(s): Adriaan Peeters
  • Date: 2008-03-30 22:26:13 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080330222613-5aubcuo9mgg2n7st
Tags: upstream-3.0
ImportĀ upstreamĀ versionĀ 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This file is part of Link Monitor Applet
2
 
#
3
 
# Copyright (C) 2006 Jean-Yves Lefort.
4
 
#
5
 
# As a special exception to the Link Monitor Applet licensing terms,
6
 
# Jean-Yves Lefort gives unlimited permission to copy, distribute and
7
 
# modify this file.
8
 
 
9
 
dnl AM_PATH_GNOME_PREFIX([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
10
 
dnl
11
 
AC_DEFUN([AM_PATH_GNOME_PREFIX],
12
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
13
 
 
14
 
AC_MSG_CHECKING([for the GNOME installation prefix])
15
 
 
16
 
gnome_prefix=""
17
 
if test -n "$PKG_CONFIG"; then
18
 
        gnome_prefix=`$PKG_CONFIG --variable prefix libgnome-2.0 2>/dev/null`
19
 
fi
20
 
 
21
 
if test -n "$gnome_prefix"; then
22
 
        AC_MSG_RESULT([$gnome_prefix])
23
 
        ifelse([$1],, :, [$1])
24
 
else
25
 
        AC_MSG_RESULT([not found])
26
 
        ifelse([$2],, :, [$2])
27
 
fi
28
 
 
29
 
AC_SUBST(gnome_prefix)])