~ubuntu-branches/ubuntu/precise/notify-osd/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-02-25 10:04:57 UTC
  • mfrom: (3.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20110225100457-09iyilml04zzpy2a
Tags: 0.9.30-0ubuntu1
* New upstream release
  - multi-monitor related fixes for correctly positioning the 
    notification-bubbles 
  - Notification borders are cut off on the right bottom side (LP: #724842)
  - Two notification bubbles at the same time (LP: #559109)
  - Fallback alert has leftmost button as default (LP: #353843)
  - should build without GTK deprecation (LP: #655232)
  - Black border in the notifications when effects are turned 
    off (LP: #654921)
  - Notify-osd needs to pause the timer during mouse-over (LP: #500663)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
 
[m4_warning([this file was generated for autoconf 2.65.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
 
17
[m4_warning([this file was generated for autoconf 2.67.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
410
410
])
411
411
 
412
412
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
413
# serial 1 (pkg-config-0.24)
413
414
414
415
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
415
416
#
437
438
AC_DEFUN([PKG_PROG_PKG_CONFIG],
438
439
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
439
440
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
440
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
441
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
442
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
443
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
444
 
441
445
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
442
446
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
443
447
fi
450
454
                AC_MSG_RESULT([no])
451
455
                PKG_CONFIG=""
452
456
        fi
453
 
                
454
457
fi[]dnl
455
458
])# PKG_PROG_PKG_CONFIG
456
459
 
459
462
# Check to see whether a particular set of modules exists.  Similar
460
463
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
461
464
#
462
 
#
463
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
464
 
# this or PKG_CHECK_MODULES is called, or make sure to call
465
 
# PKG_CHECK_EXISTS manually
 
465
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
466
# only at the first occurence in configure.ac, so if the first place
 
467
# it's called might be skipped (such as if it is within an "if", you
 
468
# have to call PKG_CHECK_EXISTS manually
466
469
# --------------------------------------------------------------
467
470
AC_DEFUN([PKG_CHECK_EXISTS],
468
471
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
469
472
if test -n "$PKG_CONFIG" && \
470
473
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
471
 
  m4_ifval([$2], [$2], [:])
 
474
  m4_default([$2], [:])
472
475
m4_ifvaln([$3], [else
473
476
  $3])dnl
474
477
fi])
475
478
 
476
 
 
477
479
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
478
480
# ---------------------------------------------
479
481
m4_define([_PKG_CONFIG],
480
 
[if test -n "$PKG_CONFIG"; then
481
 
    if test -n "$$1"; then
482
 
        pkg_cv_[]$1="$$1"
483
 
    else
484
 
        PKG_CHECK_EXISTS([$3],
485
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
486
 
                         [pkg_failed=yes])
487
 
    fi
488
 
else
489
 
        pkg_failed=untried
 
482
[if test -n "$$1"; then
 
483
    pkg_cv_[]$1="$$1"
 
484
 elif test -n "$PKG_CONFIG"; then
 
485
    PKG_CHECK_EXISTS([$3],
 
486
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
487
                     [pkg_failed=yes])
 
488
 else
 
489
    pkg_failed=untried
490
490
fi[]dnl
491
491
])# _PKG_CONFIG
492
492
 
528
528
See the pkg-config man page for more details.])
529
529
 
530
530
if test $pkg_failed = yes; then
 
531
        AC_MSG_RESULT([no])
531
532
        _PKG_SHORT_ERRORS_SUPPORTED
532
533
        if test $_pkg_short_errors_supported = yes; then
533
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
534
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
534
535
        else 
535
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
536
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
536
537
        fi
537
538
        # Put the nasty error message in config.log where it belongs
538
539
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
539
540
 
540
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
541
        m4_default([$4], [AC_MSG_ERROR(
541
542
[Package requirements ($2) were not met:
542
543
 
543
544
$$1_PKG_ERRORS
545
546
Consider adjusting the PKG_CONFIG_PATH environment variable if you
546
547
installed software in a non-standard prefix.
547
548
 
548
 
_PKG_TEXT
549
 
])],
550
 
                [AC_MSG_RESULT([no])
551
 
                $4])
 
549
_PKG_TEXT])[]dnl
 
550
        ])
552
551
elif test $pkg_failed = untried; then
553
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
552
        AC_MSG_RESULT([no])
 
553
        m4_default([$4], [AC_MSG_FAILURE(
554
554
[The pkg-config script could not be found or is too old.  Make sure it
555
555
is in your PATH or set the PKG_CONFIG environment variable to the full
556
556
path to pkg-config.
557
557
 
558
558
_PKG_TEXT
559
559
 
560
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
561
 
                [$4])
 
560
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
561
        ])
562
562
else
563
563
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
564
564
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
565
565
        AC_MSG_RESULT([yes])
566
 
        ifelse([$3], , :, [$3])
 
566
        $3
567
567
fi[]dnl
568
568
])# PKG_CHECK_MODULES
569
569