aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEskil Heyn Olsen <eskil@src.gnome.org>1999-09-08 18:49:12 +0800
committerEskil Heyn Olsen <eskil@src.gnome.org>1999-09-08 18:49:12 +0800
commit58b233790e34380b6c548ac07f7082ccafaf643f (patch)
tree0902c496ac53d536cec467daff69942f56b0b263
parent0c1cbcdb398a2c49da44811575e7036164cebf91 (diff)
downloadgsoc2013-evolution-58b233790e34380b6c548ac07f7082ccafaf643f.tar.gz
gsoc2013-evolution-58b233790e34380b6c548ac07f7082ccafaf643f.tar.zst
gsoc2013-evolution-58b233790e34380b6c548ac07f7082ccafaf643f.zip
corrected my email added db_handle, the "file descriptor" for an opened
* conduits/*/*control-applet.c: corrected my email * gpilotd/gnome-pilot-dbinfo.h: added db_handle, the "file descriptor" for an opened db. * gpilotd/gnome-pilot-conduit-standard-abs.c: uses dbi->db_handle instead of ->index. svn path=/trunk/; revision=1194
-rw-r--r--macros/gnome-pilot.m438
1 files changed, 38 insertions, 0 deletions
diff --git a/macros/gnome-pilot.m4 b/macros/gnome-pilot.m4
new file mode 100644
index 0000000000..a497b51a39
--- /dev/null
+++ b/macros/gnome-pilot.m4
@@ -0,0 +1,38 @@
+dnl
+dnl GNOME_PILOT_HOOK(script if found, fail)
+dnl if fail = "failure", abort if gnome-pilot not found
+dnl
+
+AC_DEFUN([GNOME_PILOT_HOOK],[
+ AC_PATH_PROG(GNOME_PILOT_CONFIG,gnome-pilot-config,no)
+ AC_CACHE_CHECK([for gnome-pilot environment],gnome_cv_pilot_found,[
+ if test x$GNOME_PILOT_CONFIG = xno; then
+ gnome_cv_pilot_found=no
+ else
+ gnome_cv_pilot_found=yes
+ fi
+ ])
+ AM_CONDITIONAL(HAVE_GNOME_PILOT,test x$gnome_cv_pilot_found = xyes)
+ if test x$gnome_cv_pilot_found = xyes; then
+ $1
+ AC_CHECK_HEADER(pi-version.h, [PISOCK_INCLUDEDIR=""], [
+ AC_CHECK_HEADER(libpisock/pi-version.h, [PISOCK_INCLUDEDIR="-I/usr/include/libpisock"])])
+ AC_CHECK_LIB(pisock, pi_accept, [ PISOCK_LIBS="-lpisock" ])
+ GNOME_PILOT_CFLAGS=`gnome-pilot-config --cflags client conduitmgmt`
+ GNOME_PILOT_LIBS=`gnome-pilot-config --libs client conduitmgmt`
+ AC_SUBST(GNOME_PILOT_CFLAGS)
+ AC_SUBST(GNOME_PILOT_LIBS)
+ AC_SUBST(PISOCK_INCLUDEDIR)
+ AC_SUBST(PISOCK_LIBS)
+ AC_SUBST(PILOT_BINS)
+ AC_SUBST(PILOT_LIBS)
+ else
+ if test x$2 = xfailure; then
+ AC_MSG_ERROR(Gnome-pilot not installed or installation problem)
+ fi
+ fi
+])
+
+AC_DEFUN([GNOME_PILOT_CHECK],[
+ GNOME_PILOT_HOOK([],nofailure)
+])