1 # Configure paths for GNOME--
2 # Modified from GTK--.m4
4 dnl Test for GNOMEMM, and define GNOMEMM_INCLUDEDIR, GNOMEMM_LIBDIR, GNOMEMM_LIBS
5 dnl to be used as follows:
6 dnl AM_PATH_GNOMEMM([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
8 AC_DEFUN([AM_PATH_GNOMEMM],
11 dnl Get the cflags and libraries from the gtkmm-config script
13 AC_ARG_WITH(gnomemm-config-path,[ --with-gnomemm-config-path=PREFIX
14 Path to GNOME-- configuration file gnomemmConf.sh (optional)],
15 gnomemm_config_prefix="$withval", gnome_config_prefix="")
17 AC_MSG_CHECKING(for GNOME-- gnomemmConf.sh)
19 if test x$gnomemm_config_prefix != x; then
20 if test -r $gnomemm_config_prefix; then
21 source $gnomemm_config_prefix
26 if test -r /usr/lib/gnomemmConf.sh ; then
27 source /usr/lib/gnomemmConf.sh
28 elif test -r /opt/gnome/lib/gnomemmConf.sh ; then
29 source /opt/gnome/lib/gnomemmConf.sh
30 elif test -r /usr/local/lib/gnomemmConf.sh ; then
31 source /usr/local/lib/gnomemmConf.sh
37 if test "x$no_gnomemm" = x ; then
39 ifelse([$2], , :, [$2])
42 AC_MSG_ERROR(Cannot find GNOME-- configuration file gnomemmConf.sh)
45 AC_SUBST(GNOMEMM_INCLUDEDIR)
46 AC_SUBST(GNOMEMM_LIBDIR)
47 AC_SUBST(GNOMEMM_LIBS)