1998-02-10 21:22:12 +00:00
|
|
|
AC_INIT(desktop-properties)
|
|
|
|
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
1998-08-17 19:38:00 +00:00
|
|
|
AM_INIT_AUTOMAKE(gnome-core, 0.28)
|
1998-02-10 21:22:12 +00:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
1998-02-12 00:11:49 +00:00
|
|
|
AM_ACLOCAL_INCLUDE(macros)
|
|
|
|
|
1998-02-25 13:54:11 +00:00
|
|
|
dnl
|
|
|
|
dnl let applications configure for gnome
|
|
|
|
dnl
|
|
|
|
gnome_cv_use_gnome=yes
|
|
|
|
|
1998-02-11 01:39:34 +00:00
|
|
|
GNOME_INIT
|
1998-02-10 21:22:12 +00:00
|
|
|
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_STDC_HEADERS
|
|
|
|
AC_ARG_PROGRAM
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
AC_PROG_CXX
|
1998-04-26 15:16:43 +00:00
|
|
|
AM_PROG_LEX
|
|
|
|
AC_PROG_YACC
|
1998-02-10 21:22:12 +00:00
|
|
|
|
1998-02-14 06:06:56 +00:00
|
|
|
GNOME_X_CHECKS
|
|
|
|
|
1998-05-30 16:23:22 +00:00
|
|
|
dnl utility conditional
|
|
|
|
AM_CONDITIONAL(FALSE, test "x" = "y")
|
|
|
|
|
1998-08-14 22:18:02 +00:00
|
|
|
ALL_LINGUAS="it ko fr de es no ga sv pt ja fi"
|
1998-02-10 21:22:12 +00:00
|
|
|
AM_GNU_GETTEXT
|
|
|
|
|
1998-02-14 08:44:23 +00:00
|
|
|
AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
|
|
|
|
|
1998-02-10 21:22:12 +00:00
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(CPPFLAGS)
|
|
|
|
AC_SUBST(LDFLAGS)
|
|
|
|
|
1998-07-19 00:54:31 +00:00
|
|
|
|
1998-02-11 22:22:32 +00:00
|
|
|
AC_CHECK_HEADERS(dlfcn.h dl.h)
|
|
|
|
AC_CHECK_LIB(dl, dlopen, DL_LIB="-ldl",[
|
|
|
|
AC_CHECK_LIB(dld, shl_load, DL_LIB="-ldld",[
|
|
|
|
AC_CHECK_FUNCS(dlopen, DL_LIB="",
|
|
|
|
AC_MSG_ERROR(Dynamic linking is not available on this platform. Some
|
|
|
|
apps, like panel, will not run properly.))
|
|
|
|
])])
|
|
|
|
AC_SUBST(DL_LIB)
|
|
|
|
|
1998-02-10 21:22:12 +00:00
|
|
|
dnl properties-keyboard
|
|
|
|
AC_CHECK_HEADERS(X11/extensions/xf86misc.h, XF86MISC_LIBS="-lXxf86misc")
|
|
|
|
AC_SUBST(XF86MISC_LIBS)
|
|
|
|
|
1998-06-10 15:48:25 +00:00
|
|
|
for dir in `(IFS=:; for i in $PATH; do echo $i ; done)` ; do
|
1998-07-19 05:29:43 +00:00
|
|
|
if test -f $dir/orbit-idl ; then
|
|
|
|
orbit_prefix=`echo $dir | sed 's%/bin$%%' |sed 's%/bin/$%%'`
|
1998-07-13 17:30:57 +00:00
|
|
|
break
|
1998-06-10 15:48:25 +00:00
|
|
|
fi
|
|
|
|
done
|
1998-07-19 05:29:43 +00:00
|
|
|
AC_CHECK_PROG(ORBIT_CONFIG, orbit-config, orbit-config)
|
|
|
|
if test -n "$ORBIT_CONFIG"; then
|
|
|
|
ORBIT_LIBS="`orbit-config --libs client server`"
|
|
|
|
ORBIT_CFLAGS="`orbit-config --cflags client server`"
|
1998-06-10 15:48:25 +00:00
|
|
|
fi
|
1998-07-19 05:29:43 +00:00
|
|
|
AC_SUBST(ORBIT_CFLAGS)
|
|
|
|
AC_SUBST(ORBIT_LIBS)
|
|
|
|
AM_CONDITIONAL(ORBIT_INSTALLED, test -n "$ORBIT_LIBS")
|
1998-06-10 15:48:25 +00:00
|
|
|
|
1998-07-19 05:29:43 +00:00
|
|
|
ORB_LIBS="$ORBIT_LIBS"
|
|
|
|
ORB_CFLAGS="$ORBIT_CFLAGS"
|
1998-06-10 15:48:25 +00:00
|
|
|
|
1998-07-19 05:29:43 +00:00
|
|
|
dnl MICO - Magic to extract the relevant information from
|
|
|
|
dnl various installed files
|
|
|
|
MICO_LIBS= MICO_CFLAGS=
|
|
|
|
if test -z "$ORB_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
|
|
|
|
mico_prefix=`echo $dir | sed 's%/bin$%%' |sed 's%/bin/$%%'`
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if test x${mico_prefix+set} = xset ; then
|
|
|
|
AC_MSG_RESULT($mico_prefix)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(not found)
|
|
|
|
AC_MSG_ERROR(MICO not found)
|
|
|
|
fi
|
1998-06-10 15:48:25 +00:00
|
|
|
|
1998-07-19 05:29:43 +00:00
|
|
|
AC_MSG_CHECKING(for MICO version)
|
|
|
|
if test -f "$mico_prefix/lib/mico-setup.sh"; then
|
|
|
|
MICO_VERS=`(. $mico_prefix/lib/mico-setup.sh ; echo $MICOVERSION)`
|
|
|
|
else
|
|
|
|
# Sometimes mico-setup.sh is installed in doc.
|
|
|
|
files="`echo $mico_prefix/doc/mico-*/mico-setup.sh`"
|
|
|
|
if test "$files" != "$mico_prefix/doc/mico-*/mico-setup.sh"; then
|
|
|
|
MICO_VERS=`(set X $files; . $2; echo $MICOVERSION)`
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(unknown)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($MICO_VERS)
|
1998-06-10 15:48:25 +00:00
|
|
|
|
1998-07-19 05:29:43 +00:00
|
|
|
# We assume here, to keep things simple, that nobody has MICO older
|
|
|
|
# than 2.0.3. 2.0.4 is not checked for since nobody seems to use it.
|
|
|
|
|
|
|
|
if test $MICO_VERS = 2.0.3 || test $MICO_VERS = 2.0.5; then
|
|
|
|
MICO_LIBS="-lmicoaux$MICO_VERS -lmico$MICO_VERS -lmicocoss$MICO_VERS -lXt"
|
|
|
|
else
|
|
|
|
MICO_LIBS="-lmico$MICO_VERS -lmicogtk$MICO_VERS"
|
|
|
|
AC_DEFINE(HAVE_MICO_ORB_RUN)
|
|
|
|
fi
|
|
|
|
|
|
|
|
for flag in `grep '^eval' < $mico_prefix/bin/mico-ld | sed s%\"%%g` ; do
|
|
|
|
case $flag in
|
|
|
|
-L*)
|
|
|
|
MICO_LIBS="$flag $MICO_LIBS"
|
|
|
|
;;
|
|
|
|
-lm|-ldl|-ldld|-lbsd)
|
|
|
|
;;
|
|
|
|
-l*)
|
|
|
|
MICO_LIBS="$MICO_LIBS $flag"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
ORB_LIBS="$MICO_LIBS"
|
|
|
|
ORB_CFLAGS="$MICO_CFLAGS"
|
1998-07-19 00:54:31 +00:00
|
|
|
fi
|
1998-07-19 05:29:43 +00:00
|
|
|
AC_SUBST(ORB_LIBS)
|
|
|
|
AC_SUBST(ORB_CFLAGS)
|
1998-06-10 15:48:25 +00:00
|
|
|
|
1998-02-26 19:45:07 +00:00
|
|
|
dnl gnome-session
|
1998-02-26 21:14:55 +00:00
|
|
|
dnl $GNOME_HAVE_SM comes from GNOME_X_CHECKS
|
1998-03-02 22:35:56 +00:00
|
|
|
AM_CONDITIONAL(SESSION, test "$GNOME_HAVE_SM" = true)
|
1998-04-26 22:33:49 +00:00
|
|
|
AC_ARG_WITH(window-manager,
|
|
|
|
[ --with-window-manager=NAME
|
|
|
|
Specify default window manager],[
|
1998-07-22 01:02:45 +00:00
|
|
|
WINDOW_MANAGER="$with_window_manager"], [
|
|
|
|
dnl icewm is the default because it supports session management
|
|
|
|
dnl and other Gnome requirements.
|
|
|
|
WINDOW_MANAGER=icewm])
|
|
|
|
AC_SUBST(WINDOW_MANAGER)
|
1998-04-26 22:33:49 +00:00
|
|
|
|
1998-08-23 14:33:48 +00:00
|
|
|
dnl Check for libgtop
|
|
|
|
GNOME_INIT_LIBGTOP
|
|
|
|
|
1998-02-10 21:22:12 +00:00
|
|
|
dnl panel/cdplayer
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
case "$host" in
|
|
|
|
*linux*) CDROM_HOST=linux;;
|
|
|
|
*solaris*) CDROM_HOST=solaris;;
|
|
|
|
esac
|
1998-08-02 23:22:03 +00:00
|
|
|
AM_CONDITIONAL(APPLET_CDPLAYER, test -n "$CDROM_HOST")
|
1998-02-10 21:22:12 +00:00
|
|
|
AC_SUBST(CDROM_HOST)
|
|
|
|
|
1998-04-27 03:15:44 +00:00
|
|
|
dnl panel/mixer
|
1998-08-02 23:22:03 +00:00
|
|
|
P_MIXER=
|
|
|
|
AC_CHECK_HEADERS(linux/soundcard.h,[P_MIXER=mixer],[
|
|
|
|
AC_CHECK_HEADERS(machine/soundcard.h, [P_MIXER=mixer])])
|
|
|
|
AM_CONDITIONAL(APPLET_MIXER, test "$P_MIXER" = "mixer")
|
1998-05-26 11:44:30 +00:00
|
|
|
|
|
|
|
dnl panel/modemlights
|
1998-08-02 23:22:03 +00:00
|
|
|
P_MODEMLIGHTS=
|
|
|
|
AC_CHECK_HEADERS(net/ppp_defs.h,[P_MODEMLIGHTS=modemlights])
|
|
|
|
AM_CONDITIONAL(APPLET_MODEMLIGHTS, test "$P_MODEMLIGHTS" = "modemlights")
|
1998-04-27 03:15:44 +00:00
|
|
|
|
1998-03-13 07:31:35 +00:00
|
|
|
dnl help-browser
|
|
|
|
dnl I found `inet_aton' in -lresolv on solaris
|
|
|
|
oLIBS="$LIBS"
|
|
|
|
RES_LIBS=
|
|
|
|
# the following two are covered by X11 too. If inet_aton is found in
|
|
|
|
# plain libc, -lsocket or -lnsl, RES_LIBS will be empty.
|
|
|
|
AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect)])
|
|
|
|
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
|
|
|
|
AC_CHECK_FUNC(inet_aton,,[AC_CHECK_LIB(resolv,inet_aton,RES_LIBS="-lresolv")])
|
|
|
|
AC_SUBST(RES_LIBS)
|
|
|
|
LIBS="$oLIBS"
|
|
|
|
|
1998-05-16 01:11:49 +00:00
|
|
|
dnl AC_CONFIG_SUBDIRS(gemvt)
|
1998-02-25 13:54:11 +00:00
|
|
|
|
1998-07-19 07:41:38 +00:00
|
|
|
dnl gmenu requires ctree in the devel GTK 1.1, this is a simple check
|
|
|
|
dnl for gtk/gtkctree.h
|
1998-08-02 23:22:03 +00:00
|
|
|
P_GMENU=
|
|
|
|
AC_CHECK_HEADERS(gtk/gtkctree.h,[P_GMENU=gmenu])
|
|
|
|
AM_CONDITIONAL(PROGRAM_GMENU, test "$P_GMENU" = "gmenu")
|
1998-07-19 07:41:38 +00:00
|
|
|
|
1998-02-10 21:22:12 +00:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
po/Makefile.in
|
1998-02-14 06:06:56 +00:00
|
|
|
macros/Makefile
|
1998-02-10 21:22:12 +00:00
|
|
|
panel/Makefile
|
1998-03-18 07:33:16 +00:00
|
|
|
applets/Makefile
|
1998-03-18 09:11:57 +00:00
|
|
|
applets/applet-dirs/Makefile
|
1998-08-24 22:40:28 +00:00
|
|
|
applets/asclock/Makefile
|
1998-05-23 23:35:35 +00:00
|
|
|
applets/gen_util/Makefile
|
1998-03-18 07:33:16 +00:00
|
|
|
applets/batmon/Makefile
|
1998-05-14 01:50:43 +00:00
|
|
|
applets/bussign/Makefile
|
1998-03-18 07:33:16 +00:00
|
|
|
applets/cdplayer/Makefile
|
1998-04-27 03:15:44 +00:00
|
|
|
applets/mixer/Makefile
|
1998-05-17 17:46:48 +00:00
|
|
|
applets/modemlights/Makefile
|
1998-08-23 14:33:48 +00:00
|
|
|
applets/multiload/Makefile
|
1998-04-21 07:00:51 +00:00
|
|
|
applets/cpuload/Makefile
|
1998-05-08 06:21:35 +00:00
|
|
|
applets/netload/Makefile
|
1998-04-22 15:29:31 +00:00
|
|
|
applets/cpumemusage/Makefile
|
1998-05-08 03:09:49 +00:00
|
|
|
applets/fish/Makefile
|
1998-08-21 04:26:44 +00:00
|
|
|
applets/gkb/Makefile
|
1998-05-22 22:35:15 +00:00
|
|
|
applets/diskusage/Makefile
|
1998-05-24 20:20:36 +00:00
|
|
|
applets/icewm-pager/Makefile
|
1998-05-25 20:20:40 +00:00
|
|
|
applets/drivemount/Makefile
|
|
|
|
applets/clockmail/Makefile
|
1998-05-30 02:47:48 +00:00
|
|
|
applets/webcontrol/Makefile
|
1998-05-27 17:55:37 +00:00
|
|
|
applets/dialer/Makefile
|
1998-07-09 00:09:34 +00:00
|
|
|
applets/fifteen/Makefile
|
1998-07-13 08:09:18 +00:00
|
|
|
applets/battery/Makefile
|
1998-08-19 09:48:43 +00:00
|
|
|
applets/winlist/Makefile
|
1998-05-05 07:21:09 +00:00
|
|
|
core-docs/Makefile
|
1998-02-10 21:22:12 +00:00
|
|
|
desktop-links/Makefile
|
1998-02-11 05:22:02 +00:00
|
|
|
desktop-properties/Makefile
|
1998-04-28 06:09:42 +00:00
|
|
|
gnome-terminal/Makefile
|
1998-02-13 23:35:03 +00:00
|
|
|
help-browser/Makefile
|
1998-02-20 20:51:18 +00:00
|
|
|
help-browser/gnome-man2html/Makefile
|
1998-02-23 19:05:48 +00:00
|
|
|
help-browser/gnome-info2html/Makefile
|
1998-06-12 01:40:26 +00:00
|
|
|
gmenu/Makefile
|
1998-08-11 03:18:37 +00:00
|
|
|
control-center/Makefile
|
1998-02-10 21:22:12 +00:00
|
|
|
pixmaps/Makefile
|
|
|
|
gsm/Makefile
|
1998-07-17 00:21:06 +00:00
|
|
|
smproxy/Makefile
|
1998-03-11 05:35:32 +00:00
|
|
|
intl/Makefile],
|
|
|
|
[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
|