On Tue, 2008-10-07 at 18:45 -0700, Dan Nicholson wrote: > On Tue, Oct 7, 2008 at 5:23 PM, Victor Lowther <[EMAIL PROTECTED]> wrote: > > > > Along those lines, how does pkgconfig and autoconf interact? The docs > > that I have been able to find have been of little assistance, and I have > > made little progress in trying to understand by example using > > NetworkManager. > > You mean, how do you check during the network manager build if > pm-utils is installed? I would do something like this for NM: > > # configure.ac > HAVE_PM_UTILS=no > PM_HOOKS_DIR="" > PKG_CHECK_EXISTS([pm-utils],[ > HAVE_PM_UTILS=yes > PM_HOOKS_DIR="`$PKG_CONFIG --variable=pm_libdir pm-utils`/sleep.d" > ]) > AC_SUBST([PM_HOOKS_DIR]) > AM_CONDITIONAL([HAVE_PM_UTILS],[test "$HAVE_PM_UTILS" = yes]) > > # Makefile.am > if HAVE_PM_UTILS > pmhooksdir = $(PM_HOOKS_DIR) > pmhooks_DATA = 10NetworkManager > endif
Nice. I forsee a wave of patches to various projects that have sleep hooks in the near future. > It would be nice if we exported the sleep.d directory directly in the > pm-utils.pc file instead of always assuming that it's at > $pm_libdir/sleep.d. That can be arranged. :) Looks like it is time to start working on splitting the sleep hooks off into their own project. > -- > Dan -- Victor Lowther Ubuntu Certified Professional _______________________________________________ Pm-utils mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/pm-utils
