1998-02-10 21:22:12 +00:00
|
|
|
AC_INIT(desktop-properties)
|
|
|
|
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
1998-09-23 05:29:43 +00:00
|
|
|
AM_INIT_AUTOMAKE(gnome-core, 0.30)
|
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-09-07 00:45:02 +00:00
|
|
|
GNOME_COMPILE_WARNINGS
|
|
|
|
|
1998-02-14 06:06:56 +00:00
|
|
|
GNOME_X_CHECKS
|
1998-08-27 19:53:02 +00:00
|
|
|
GNOME_GHTTP_CHECK
|
|
|
|
|
1998-05-30 16:23:22 +00:00
|
|
|
dnl utility conditional
|
|
|
|
AM_CONDITIONAL(FALSE, test "x" = "y")
|
|
|
|
|
1998-08-30 14:21:21 +00:00
|
|
|
ALL_LINGUAS="it ko fr de es no ga sv pt ja fi cs"
|
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-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
|
|
|
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
|
1998-09-29 22:55:47 +00:00
|
|
|
GNOME_LIBGTOP_HOOK(,applets_libgtop=yes)
|
|
|
|
|
|
|
|
if test x$applets_libgtop != xyes; then
|
|
|
|
AC_MSG_WARN([*** \`cpuload' applet will not be built ***])
|
|
|
|
AC_MSG_WARN([*** \`cpumemusage' applet will not be built ***])
|
|
|
|
AC_MSG_WARN([*** \`diskusage' applet will not be built ***])
|
|
|
|
AC_MSG_WARN([*** \`multiload' applet will not be built ***])
|
|
|
|
fi
|
1998-08-23 14:33:48 +00:00
|
|
|
|
1998-08-27 19:53:02 +00:00
|
|
|
dnl Check for ghttp library
|
|
|
|
AM_CONDITIONAL(HAVE_LIBGHTTP, test -n "$GHTTP_LIB")
|
|
|
|
AC_SUBST(GHTTP_LIB)
|
1998-09-27 21:04:54 +00:00
|
|
|
if test -z "$GHTTP_LIB"; then
|
|
|
|
AC_MSG_WARN([*** \`bussign' applet will not be built ***])
|
|
|
|
fi
|
1998-08-27 19:53:02 +00:00
|
|
|
|
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-09-27 21:04:54 +00:00
|
|
|
if test -z "$CDROM_HOST"; then
|
|
|
|
AC_MSG_WARN([*** \`cdplayer' applet will not be built ***])
|
|
|
|
fi
|
1998-02-10 21:22:12 +00:00
|
|
|
|
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-09-27 21:04:54 +00:00
|
|
|
if test "$P_MIXER" != "mixer"; then
|
|
|
|
AC_MSG_WARN([*** \`mixer' applet will not be built ***])
|
|
|
|
fi
|
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-09-27 21:04:54 +00:00
|
|
|
if test "$P_MODEMLIGHTS" != "modemlights"; then
|
|
|
|
AC_MSG_WARN([*** \`modemlights' applet will not be built ***])
|
|
|
|
fi
|
1998-09-23 12:26:21 +00:00
|
|
|
|
|
|
|
dnl fvwm-pager
|
|
|
|
dnl we need the fvwm sources to build it
|
|
|
|
AC_ARG_WITH(fvwm2,
|
1998-09-27 21:04:54 +00:00
|
|
|
[ --with-fvwm2=DIRECTORY top level dir of fvwm2 with libs and includes],
|
|
|
|
[FVWM_PAGER="fvwm-pager"], [FVWM_PAGER=""])
|
1998-09-23 12:26:21 +00:00
|
|
|
|
1998-09-27 21:04:54 +00:00
|
|
|
AM_CONDITIONAL(APPLET_FVWM_PAGER, test ! -z "$FVWM_PAGER")
|
|
|
|
if test ! -z "$FVWM_PAGER"
|
1998-09-23 12:26:21 +00:00
|
|
|
then
|
|
|
|
for x_dir in /usr/local/src/fvwm2 /usr/local/src/fvwm-2.0.46 /disk/compiles/fvwm-2.0.46 ${with_fvwm2}
|
|
|
|
do
|
|
|
|
AC_MSG_CHECKING("for fvwm include files in ${x_dir}")
|
|
|
|
if test -f "${x_dir}/fvwm/module.h"
|
|
|
|
then
|
|
|
|
AC_MSG_RESULT("found");
|
|
|
|
break;
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT("not found");
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
AC_MSG_CHECKING("for fvwm library ${x_dir}/libs/libfvwm2.a")
|
|
|
|
if test -f ${x_dir}/libs/libfvwm2.a
|
|
|
|
then
|
|
|
|
AC_MSG_RESULT("found")
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(["You have to compile fvwm2 so that we can use the fvwm2 library.\
|
|
|
|
This library is neceassry to compile fvwm-pager"])
|
|
|
|
fi
|
|
|
|
|
|
|
|
FVWM2INCLUDE="-I${x_dir}/"
|
|
|
|
FVWM2LIBS="-L${x_dir}/libs -lfvwm2"
|
|
|
|
AC_SUBST(FVWM2INCLUDE)
|
|
|
|
AC_SUBST(FVWM2LIBS)
|
|
|
|
fi
|
|
|
|
|
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-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-10-08 21:02:40 +00:00
|
|
|
applets/gnome-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-09-11 20:41:12 +00:00
|
|
|
applets/charpick/Makefile
|
1998-08-19 09:48:43 +00:00
|
|
|
applets/winlist/Makefile
|
1998-09-23 12:26:21 +00:00
|
|
|
applets/fvwm-pager/Makefile
|
1998-09-28 16:37:50 +00:00
|
|
|
applets/slashapp/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-08-25 22:14:30 +00:00
|
|
|
capplets/Makefile
|
|
|
|
capplets/mouse-properties/Makefile
|
1998-09-21 23:32:58 +00:00
|
|
|
capplets/keyboard-properties/Makefile
|
1998-08-25 22:14:30 +00:00
|
|
|
capplets/desktop-links/Makefile
|
1998-09-29 21:53:56 +00:00
|
|
|
capplets/background-properties/Makefile
|
1998-09-23 21:35:52 +00:00
|
|
|
capplets/screensaver-properties/Makefile
|
|
|
|
capplets/screensaver-properties/screensaver-desktops/Makefile
|
1998-10-07 22:15:49 +00:00
|
|
|
capplets/sound-properties/Makefile
|
1998-10-08 21:02:40 +00:00
|
|
|
capplets/e-conf/Makefile
|
1998-09-23 05:29:43 +00:00
|
|
|
idl/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])
|