dnl Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. dnl dnl Process this file with autoconf to produce a configure script. dnl The order you want to use is: dnl aclocal (only need this once) dnl autoconf dnl autoheader dnl automake -v --add-missing dnl ./configure dnl make dnl dnl *NOTE* Red Hat 5.2 (and later?) comes with a libtool-1.2b rpm which dnl WILL NOT WORK with some combination of automake-1.3 or autoconf-2.13 dnl or libtool-1.2. You should download libtool-1.2, rpm -e libtool, and dnl install 1.2 (use "configure --prefix=/usr" to keep it from going in dnl /usr/local). The other way to go (which I have not tried) is getting dnl libtool-1.2b from http://www.profitpress.com/gord/src/ and installing dnl it on Irix. dnl dnl The inst'able version of libtool-1.3, autoconf-2.13, and automake-1.4 dnl are at orchietta.boston:/d2/dist (they will be in the freeware distribution dnl later). One problem with using those is that they're newer than the dnl versions you have on Linux! The libtool-1.2 tarball works with autoconf dnl 2.12 and automake 1.3. dnl dnl XXX rusty add notes on changing compiler flags etc. dnl dnl THINGS WHICH ARE STILL BROKEN dnl dnl makedepends. The generated Makefiles don't include the Makedepends dnl files, so I removed the makedepends flags. We should figure out how dnl to fix that & put them back. (g++ I think wants to put each file's dnl dependencies in a separate file.d instead of a single directory-wide dnl Makedepend file, too.) dnl dnl Uncomment to keep from using the cache file. (It was causing problems dnl with GCC and GXX being set to "yes" even when the compilers aren't GNU.) dnl define([AC_CACHE_LOAD], )dnl dnl define([AC_CACHE_SAVE], )dnl AC_INIT(category/cluster/ClusterCategory.c++) AM_INIT_AUTOMAKE(sysadm_failsafe, 1.0.0) dnl Put configuration #defines in config.h. AM_CONFIG_HEADER(include/fsmgr/config.h) dnl ********************************************************************** dnl ** dnl ** Command-line arguments dnl ** dnl ********************************************************************** dnl This is sort of a perversion of the AC_ARGS_WITH macro, but I want dnl people to be able to set their CFLAGS on the command line. AC_ARG_WITH(CFLAGS, [ --with-CFLAGS=\"flags\" set CFLAGS and CXXFLAGS to the given value], [CFLAGS=$withval; CXXFLAGS=$withval]) AC_ARG_WITH(EXTRA_INCS, [ --with-EXTRA_INCS=\"flags\" set EXTRA_INCS to the given value. For example: --with-EXTRA_INCS=\"-I/path/to/failsafe/includes\"], [EXTRA_INCS=$withval]) AC_ARG_WITH(EXTRA_LIBS, [ --with-EXTRA_LIBS=\"flags\" set EXTRA_LIBS to the given value. For example: --with-EXTRA_LIBS=\"-L/path/to/failsafe/libs\"], [EXTRA_LIBS=$withval]) dnl ********************************************************************** dnl ** dnl ** Installation directories dnl ** dnl ********************************************************************** SGI_PATH_RHINO dnl FSPRODDIR is the directory where some product-specific stuff goes, dnl like the installed product version number. FSPRODDIR="$RHPRODDIR/com.sgi.fsmgr" AC_SUBST(FSPRODDIR) dnl BOGODIR is a bogus directory which we'll use because we don't dnl want to install our .java files, but automake doesn't handle dnl noinst_JAVA correctly. BOGODIR="/var/tmp/bogus/XXXremove.me" AC_SUBST(BOGODIR) dnl OK, now *this* is bogus. icondir=/usr/share/icons miniicondir=/usr/share/icons/mini AC_SUBST(icondir) AC_SUBST(miniicondir) KdeMenuFilesApplicationsdir=/usr/share/applnk/Applications GnomeMenuFilesApplicationsdir=/usr/share/gnome/apps/Applications AC_SUBST(KdeMenuFilesApplicationsdir) AC_SUBST(GnomeMenuFilesApplicationsdir) LSYSADMCATEGORY=-lsysadmCategory AC_SUBST(LSYSADMCATEGORY) LSYSADMUTIL=-lsysadmUtil AC_SUBST(LSYSADMUTIL) LSYSADMPARAM=-lsysadmParam AC_SUBST(LSYSADMPARAM) LSYSADMFILEBASEDCATEGORY=-lsysadmFileBasedCategory AC_SUBST(LSYSADMFILEBASEDCATEGORY) LFAM=-lfam AC_SUBST(LFAM) LFSCXCAMCATEGORY='$(top_srcdir)/lib/libfscxCamCategory/libfscxCamCategory.la' AC_SUBST(LFSCXCAMCATEGORY) dnl dnl Checks for programs. dnl SGI_PROG_CC SGI_PROG_CXX AC_PROG_CXXCPP AC_PROG_RANLIB AC_PROG_INSTALL dnl I don't know why, but automake wants to use ./mkinstalldirs. dnl AC_PATH_PROG(MKINSTALLDIRS, mkinstalldirs) AC_PROG_MAKE_SET dnl AC_PROG_AWK dnl AC_PATH_PROG(LIBTOOL, libtool) dnl AC_LIBTOOL_DLOPEN AM_PROG_LIBTOOL ALL_LINGUAS="en_US.dude" AM_GNU_GETTEXT SGI_PROG_GNU_TAR SGI_PROG_JARLINKS dnl The RhinoExample configure.in should set this to its own dnl packages subdir, and then the rest of the stuff below. dnl RHCLASSPATH='$(top_srcdir)/packages:$(top_srcdir)/packages/swingall.jar' dnl AC_SUBST(RHCLASSPATH) dnl CLASSPATH='$(top_srcdir)/packages:$(RHJARDIR)/sysadm.jar:$(RHJARDIR)/sysadmP.jar:$(RHJARDIR)/swingall.jar' SGI_PROG_JAVA SGI_PROG_JAVAC SGI_PROG_JAR SGI_PROG_FTRJAVA dnl This should be determined by a test! FAILSAFELIBDIR=/usr/lib/failsafe/lib AC_SUBST(FAILSAFELIBDIR) LCAM=-lcam AC_SUBST(LCAM) dnl dnl See if "echo" needs -e flag. dnl AC_PATH_PROG(ECHO, echo) AC_MSG_CHECKING([for echo -e flag]) if test "`$ECHO -e foo`" = 'foo'; then ECHO="$ECHO -e" fi AC_SUBST(ECHO) AC_MSG_RESULT($ECHO) SGI_PATH_WEBROOTDIR SGI_OUTPUT_GMAKE dnl dnl The list of files to generate. dnl AC_OUTPUT( Makefile association/Makefile association/clustersAssocWithMachine/Makefile association/logGroupsAssocWithCluster/Makefile association/machinesAssocWithCluster/Makefile association/machinesAssocWithFailoverPolicy/Makefile association/resourceGroupsAssocWithCluster/Makefile association/resourceGroupsAssocWithFailoverPolicy/Makefile association/resourceGroupsAssocWithMachine/Makefile association/resourceGroupsAssocWithResource/Makefile association/resourcesAssocWithCluster/Makefile association/resourcesAssocWithMachine/Makefile association/resourcesAssocWithResourceGroup/Makefile association/resourcesAssocWithResourceType/Makefile association/resourcesAssocWithResource/Makefile association/resourceTypesAssocWithCluster/Makefile association/resourceTypesAssocWithMachine/Makefile association/resourceTypesAssocWithResourceType/Makefile build/Makefile build/rpm/Makefile build/rpm/rpm.spec category/Makefile category/cluster/Makefile category/cluster-fake/Makefile category/enumerate/Makefile category/failoverPolicy/Makefile category/failoverPolicy-fake/Makefile category/filesystem/Makefile category/globalParameters/Makefile category/haEnumerate/Makefile category/logGroup/Makefile category/logGroup-fake/Makefile category/machine/Makefile category/machine-fake/Makefile category/resourceGroup/Makefile category/resourceGroup-fake/Makefile category/resourceType/Makefile category/resourceType-fake/Makefile category/resource/Makefile category/resource-fake/Makefile cmd/Makefile cmd/fsdetail/Makefile cmd/fsdetail/fsdetail.desktop cmd/fsdetail/fsdetail.kdelnk cmd/fsdetail/fsdetail.sh cmd/fstask/Makefile cmd/fstask/fstask.desktop cmd/fstask/fstask.kdelnk cmd/fstask/fstask.sh include/Makefile include/fsmgr/Makefile intl/Makefile lib/Makefile lib/libfscxCamCategory/Makefile man/Makefile man/fsrelnotes/Makefile man/relnotes/Makefile misc/Makefile packages/Makefile packages/com/Makefile packages/com/sgi/Makefile packages/com/sgi/fsmgr/Makefile packages/com/sgi/fsmgr/category/Makefile packages/com/sgi/fsmgr/detailView/Makefile packages/com/sgi/fsmgr/detailView/images/Makefile packages/com/sgi/fsmgr/ftr/Makefile packages/com/sgi/fsmgr/ftr/iconlib/Makefile packages/com/sgi/fsmgr/fsPackageP.properties packages/com/sgi/fsmgr/fsPackageP_en_US.dude.properties packages/com/sgi/fsmgr/metatask/Makefile packages/com/sgi/fsmgr/plugin/Makefile packages/com/sgi/fsmgr/task/Makefile packages/com/sgi/fsmgr/task/images/Makefile po/Makefile.in taskRegistry/Makefile taskRegistry/BalanceLoadTaskGroup/Makefile taskRegistry/ClusterCategory/Makefile taskRegistry/ClusterTaskGroup/Makefile taskRegistry/CLServicesTaskGroup/Makefile taskRegistry/DiagnosticsTaskGroup/Makefile taskRegistry/FailoverPolicyCategory/Makefile taskRegistry/FailoverPolicyTaskGroup/Makefile taskRegistry/FilesystemCategory/Makefile taskRegistry/FilesystemTaskGroup/Makefile taskRegistry/FixProblemsTaskGroup/Makefile taskRegistry/HAServicesTaskGroup/Makefile taskRegistry/MachineCategory/Makefile taskRegistry/MachineTaskGroup/Makefile taskRegistry/MaintainResourceGroupTaskGroup/Makefile taskRegistry/ManageResourceGroupTaskGroup/Makefile taskRegistry/PreventAutoFailoverTaskGroup/Makefile taskRegistry/ResourceCategory/Makefile taskRegistry/ResourceGroupCategory/Makefile taskRegistry/ResourceGroupTaskGroup/Makefile taskRegistry/ResourceTaskGroup/Makefile taskRegistry/ResourceTypeCategory/Makefile taskRegistry/ResourceTypeTaskGroup/Makefile taskRegistry/SmartMetatasksTaskGroup/Makefile util/Makefile util/clikeys/Makefile dnl util/htmlhelp/Makefile web/Makefile web/FailSafeManager/Makefile web/FailSafeManager/fsmgrhtml.sh )