summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>1998-07-19 00:54:31 +0000
committerElliot Lee <sopwith@src.gnome.org>1998-07-19 00:54:31 +0000
commit51082ab4534980ebd0eac3828afbfd27f0b2b867 (patch)
treecc8163342f19de102d2754278ba45c2c30eddcee
parentb342c094dea98e314067031d36e05c7292b44069 (diff)
downloadgnome-control-center-51082ab4534980ebd0eac3828afbfd27f0b2b867.tar.gz
Changes needed to get the panel to use ORBit.
Changes needed to get the panel to use ORBit. Please let me know if this breaks compilation with MICO - I'm not fond of MICO but I don't want to destabilize the panel by requiring ORBit, just yet :) If you want to try it with ORBit, just install the latest glib & ORBit out of CVS. There is a bug if you try to remove an applet from the panel - ideas wanted.
-rw-r--r--configure.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 20840212e..77d1b21da 100644
--- a/configure.in
+++ b/configure.in
@@ -37,6 +37,20 @@ AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
+for dir in `(IFS=:; for i in $PATH; do echo $i ; done)` ; do
+ if test -f $dir/orbit-idl ; then
+ orbit_prefix=`echo $dir | sed 's%/bin$%%' |sed 's%/bin/$%%'`
+ break
+ fi
+done
+AC_CHECK_PROG(ORBIT_CONFIG, orbit-config, orbit-config)
+if [ ! -z "$ORBIT_CONFIG" ]; then
+ ORBIT_LIBS="`orbit-config --libs client server`"
+ ORBIT_CFLAGS="`orbit-config --cflags client server`"
+fi
+AC_SUBST(ORBIT_LIBS)
+AM_CONDITIONAL(ORBIT_INSTALLED, test ! -z "$ORBIT_LIBS")
+
AC_CHECK_HEADERS(dlfcn.h dl.h)
AC_CHECK_LIB(dl, dlopen, DL_LIB="-ldl",[
AC_CHECK_LIB(dld, shl_load, DL_LIB="-ldld",[
@@ -53,6 +67,7 @@ AC_SUBST(XF86MISC_LIBS)
dnl MICO - Magic to extract the relevant information from
dnl various installed files
+if test -z "$ORBIT_LIBS"; then
AC_MSG_CHECKING(for MICO prefix)
for dir in `(IFS=:; for i in $PATH; do echo $i ; done)` ; do
if test -f $dir/mico-ld ; then
@@ -104,6 +119,10 @@ for flag in `grep '^eval' < $mico_prefix/bin/mico-ld | sed s%\"%%g` ; do
;;
esac
done
+else
+MICO_LIBS="$ORBIT_LIBS"
+MICO_VERS=""
+fi
AC_SUBST(MICO_LIBS)
AC_SUBST(MICO_VERS)